From cfa93b28db6bf4e5fafb20b1584a081543b1cd02 Mon Sep 17 00:00:00 2001 From: Justin Orringer Date: Wed, 13 Nov 2024 16:23:22 -0500 Subject: [PATCH 1/2] Adding hours estimate --- .../src/components/DashboardComponent.tsx | 10 ++ .../{index-litxiLRg.js => index-Cq3OpZlG.js} | 154 +++++++++--------- internal/public/index.html | 2 +- 3 files changed, 88 insertions(+), 78 deletions(-) rename internal/public/assets/{index-litxiLRg.js => index-Cq3OpZlG.js} (71%) diff --git a/internal-ui/src/components/DashboardComponent.tsx b/internal-ui/src/components/DashboardComponent.tsx index 11b43ab5..dc4458ad 100644 --- a/internal-ui/src/components/DashboardComponent.tsx +++ b/internal-ui/src/components/DashboardComponent.tsx @@ -48,6 +48,8 @@ const TRACKING_INTENTS = [ "intent_services_offline", ] +const TIME_TO_LOOK_UP_ORG_ADMIN = .25 // quarter hour + const ONE_WEEK_AGO = new Date(); ONE_WEEK_AGO.setDate(ONE_WEEK_AGO.getDate() - 6); @@ -409,6 +411,14 @@ export const DashboardComponent = () => { /> } + {contactAdminUsage > 0 && + }>{contactAdminUsage * TIME_TO_LOOK_UP_ORG_ADMIN} Engineering Hours Saved + + + } diff --git a/internal/public/assets/index-litxiLRg.js b/internal/public/assets/index-Cq3OpZlG.js similarity index 71% rename from internal/public/assets/index-litxiLRg.js rename to internal/public/assets/index-Cq3OpZlG.js index 1f58232d..0db186f3 100644 --- a/internal/public/assets/index-litxiLRg.js +++ b/internal/public/assets/index-Cq3OpZlG.js @@ -1,4 +1,4 @@ -var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Oe=(e,t,n,r)=>(Y0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Jd=(e,t,n,r)=>({set _(a){Oe(e,t,a,n)},get _(){return V(e,t,r)}}),et=(e,t,n)=>(Y0(e,t,"access private method"),n);function qP(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GP={exports:{}},mg={},KP={exports:{}},Qe={};/** +var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Oe=(e,t,n,r)=>(Y0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Jd=(e,t,n,r)=>({set _(a){Oe(e,t,a,n)},get _(){return V(e,t,r)}}),et=(e,t,n)=>(Y0(e,t,"access private method"),n);function KP(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var XP={exports:{}},mg={},YP={exports:{}},Qe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pd=Symbol.for("react.element"),nj=Symbol.for("react.portal"),rj=Symbol.for("react.fragment"),aj=Symbol.for("react.strict_mode"),ij=Symbol.for("react.profiler"),oj=Symbol.for("react.provider"),lj=Symbol.for("react.context"),sj=Symbol.for("react.forward_ref"),uj=Symbol.for("react.suspense"),cj=Symbol.for("react.memo"),fj=Symbol.for("react.lazy"),$w=Symbol.iterator;function dj(e){return e===null||typeof e!="object"?null:(e=$w&&e[$w]||e["@@iterator"],typeof e=="function"?e:null)}var XP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},YP=Object.assign,QP={};function Pu(e,t,n){this.props=e,this.context=t,this.refs=QP,this.updater=n||XP}Pu.prototype.isReactComponent={};Pu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Pu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JP(){}JP.prototype=Pu.prototype;function G5(e,t,n){this.props=e,this.context=t,this.refs=QP,this.updater=n||XP}var K5=G5.prototype=new JP;K5.constructor=G5;YP(K5,Pu.prototype);K5.isPureReactComponent=!0;var Lw=Array.isArray,ZP=Object.prototype.hasOwnProperty,X5={current:null},e7={key:!0,ref:!0,__self:!0,__source:!0};function t7(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)ZP.call(t,r)&&!e7.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var yj=y,bj=Symbol.for("react.element"),_j=Symbol.for("react.fragment"),xj=Object.prototype.hasOwnProperty,wj=yj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sj={key:!0,ref:!0,__self:!0,__source:!0};function n7(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)xj.call(t,r)&&!Sj.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:bj,type:e,key:i,ref:o,props:a,_owner:wj.current}}mg.Fragment=_j;mg.jsx=n7;mg.jsxs=n7;GP.exports=mg;var j=GP.exports,Ty={},r7={exports:{}},mr={},a7={exports:{}},i7={};/** + */var _j=y,xj=Symbol.for("react.element"),wj=Symbol.for("react.fragment"),Sj=Object.prototype.hasOwnProperty,Oj=_j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cj={key:!0,ref:!0,__self:!0,__source:!0};function a7(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Sj.call(t,r)&&!Cj.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:xj,type:e,key:i,ref:o,props:a,_owner:Oj.current}}mg.Fragment=wj;mg.jsx=a7;mg.jsxs=a7;XP.exports=mg;var j=XP.exports,Ty={},i7={exports:{}},gr={},o7={exports:{}},l7={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t($,F){var k=$.length;$.push(F);e:for(;0>>1,te=$[X];if(0>>1;Xa(ae,k))uea(ve,ae)?($[X]=ve,$[ue]=k,X=ue):($[X]=ae,$[J]=k,X=J);else if(uea(ve,k))$[X]=ve,$[ue]=k,X=ue;else break e}}return F}function a($,F){var k=$.sortIndex-F.sortIndex;return k!==0?k:$.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=$)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function x($){if(g=!1,_($),!p)if(n(s)!==null)p=!0,U(O);else{var F=n(u);F!==null&&W(x,F.startTime-$)}}function O($,F){p=!1,g&&(g=!1,m(C),C=-1),h=!0;var k=d;try{for(_(F),f=n(s);f!==null&&(!(f.expirationTime>F)||$&&!P());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var te=X(f.expirationTime<=F);F=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(s)&&r(s),_(F)}else r(s);f=n(s)}if(f!==null)var R=!0;else{var J=n(u);J!==null&&W(x,J.startTime-F),R=!1}return R}finally{f=null,d=k,h=!1}}var S=!1,w=null,C=-1,A=5,I=-1;function P(){return!(e.unstable_now()-I$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var k=d;d=F;try{return $()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var k=d;d=$;try{return F()}finally{d=k}},e.unstable_scheduleCallback=function($,F,k){var X=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0X?($.sortIndex=k,t(u,$),n(s)===null&&$===n(u)&&(g?(m(C),C=-1):g=!0,W(x,k-X))):($.sortIndex=te,t(s,$),p||h||(p=!0,U(O))),$},e.unstable_shouldYield=P,e.unstable_wrapCallback=function($){var F=d;return function(){var k=d;d=F;try{return $.apply(this,arguments)}finally{d=k}}}})(i7);a7.exports=i7;var Oj=a7.exports;/** + */(function(e){function t($,F){var k=$.length;$.push(F);e:for(;0>>1,te=$[X];if(0>>1;Xa(ae,k))uea(ve,ae)?($[X]=ve,$[ue]=k,X=ue):($[X]=ae,$[J]=k,X=J);else if(uea(ve,k))$[X]=ve,$[ue]=k,X=ue;else break e}}return F}function a($,F){var k=$.sortIndex-F.sortIndex;return k!==0?k:$.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=$)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function x($){if(g=!1,_($),!p)if(n(s)!==null)p=!0,U(O);else{var F=n(u);F!==null&&W(x,F.startTime-$)}}function O($,F){p=!1,g&&(g=!1,m(C),C=-1),h=!0;var k=d;try{for(_(F),f=n(s);f!==null&&(!(f.expirationTime>F)||$&&!P());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var te=X(f.expirationTime<=F);F=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(s)&&r(s),_(F)}else r(s);f=n(s)}if(f!==null)var R=!0;else{var J=n(u);J!==null&&W(x,J.startTime-F),R=!1}return R}finally{f=null,d=k,h=!1}}var S=!1,w=null,C=-1,A=5,I=-1;function P(){return!(e.unstable_now()-I$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var k=d;d=F;try{return $()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var k=d;d=$;try{return F()}finally{d=k}},e.unstable_scheduleCallback=function($,F,k){var X=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0X?($.sortIndex=k,t(u,$),n(s)===null&&$===n(u)&&(g?(m(C),C=-1):g=!0,W(x,k-X))):($.sortIndex=te,t(s,$),p||h||(p=!0,U(O))),$},e.unstable_shouldYield=P,e.unstable_wrapCallback=function($){var F=d;return function(){var k=d;d=F;try{return $.apply(this,arguments)}finally{d=k}}}})(l7);o7.exports=l7;var Ej=o7.exports;/** * @license React * react-dom.production.min.js * @@ -30,20 +30,20 @@ var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var o7=y,hr=Oj;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ay=Object.prototype.hasOwnProperty,Cj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dw={},Nw={};function Ej(e){return Ay.call(Nw,e)?!0:Ay.call(Dw,e)?!1:Cj.test(e)?Nw[e]=!0:(Dw[e]=!0,!1)}function kj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pj(e,t,n,r){if(t===null||typeof t>"u"||kj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fn(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yn[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q5=/[\-:]([a-z])/g;function J5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z5(e,t,n,r){var a=yn.hasOwnProperty(t)?yn[t]:null;(a!==null?a.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ay=Object.prototype.hasOwnProperty,kj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dw={},Nw={};function Pj(e){return Ay.call(Nw,e)?!0:Ay.call(Dw,e)?!1:kj.test(e)?Nw[e]=!0:(Dw[e]=!0,!1)}function Tj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Aj(e,t,n,r){if(t===null||typeof t>"u"||Tj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fn(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yn[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q5=/[\-:]([a-z])/g;function J5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z5(e,t,n,r){var a=yn.hasOwnProperty(t)?yn[t]:null;(a!==null?a.type!==0:r||!(2l||a[o]!==i[l]){var s=` -`+a[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Z0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cc(e):""}function Tj(e){switch(e.tag){case 5:return Cc(e.type);case 16:return Cc("Lazy");case 13:return Cc("Suspense");case 19:return Cc("SuspenseList");case 0:case 2:case 15:return e=ev(e.type,!1),e;case 11:return e=ev(e.type.render,!1),e;case 1:return e=ev(e.type,!0),e;default:return""}}function $y(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fs:return"Fragment";case cs:return"Portal";case My:return"Profiler";case e2:return"StrictMode";case Iy:return"Suspense";case Ry:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u7:return(e.displayName||"Context")+".Consumer";case s7:return(e._context.displayName||"Context")+".Provider";case t2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case n2:return t=e.displayName||null,t!==null?t:$y(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return $y(e(t))}catch{}}return null}function Aj(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $y(t);case 8:return t===e2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function f7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mj(e){var t=f7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){e._valueTracker||(e._valueTracker=Mj(e))}function d7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=f7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ly(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function h7(e,t){t=t.checked,t!=null&&Z5(e,"checked",t,!1)}function jy(e,t){h7(e,t);var n=wo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dy(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dy(e,t.type,wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dy(e,t,n){(t!=="number"||bp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function Ms(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ij=["Webkit","ms","Moz","O"];Object.keys(Nc).forEach(function(e){Ij.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nc[t]=Nc[e]})});function v7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nc.hasOwnProperty(e)&&Nc[e]?(""+t).trim():t+"px"}function y7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=v7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var Rj=jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zy(e,t){if(t){if(Rj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function By(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uy=null;function r2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hy=null,Is=null,Rs=null;function Ww(e){if(e=vd(e)){if(typeof Hy!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=_g(t),Hy(e.stateNode,e.type,t))}}function b7(e){Is?Rs?Rs.push(e):Rs=[e]:Is=e}function _7(){if(Is){var e=Is,t=Rs;if(Rs=Is=null,Ww(e),t)for(e=0;e>>=0,e===0?32:31-(Wj(e)/Vj|0)|0}var rh=64,ah=4194304;function kc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=kc(l):(i&=o,i!==0&&(r=kc(i)))}else o=n&~a,o!==0?r=kc(o):i!==0&&(r=kc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function md(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ua(t),e[t]=n}function Xj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zc),Zw=" ",eS=!1;function z7(e,t){switch(e){case"keyup":return SD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function CD(e,t){switch(e){case"compositionend":return B7(t);case"keypress":return t.which!==32?null:(eS=!0,Zw);case"textInput":return e=t.data,e===Zw&&eS?null:e;default:return null}}function ED(e,t){if(ds)return e==="compositionend"||!f2&&z7(e,t)?(e=N7(),Jh=s2=oo=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aS(n)}}function V7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q7(){for(var e=window,t=bp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bp(e.document)}return t}function d2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function LD(e){var t=q7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&V7(n.ownerDocument.documentElement,n)){if(r!==null&&d2(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=iS(n,i);var o=iS(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hs=null,Xy=null,Uc=null,Yy=!1;function oS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yy||hs==null||hs!==bp(r)||(r=hs,"selectionStart"in r&&d2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uc&&pf(Uc,r)||(Uc=r,r=Ep(Xy,"onSelect"),0gs||(e.current=nb[gs],nb[gs]=null,gs--)}function yt(e,t){gs++,nb[gs]=e.current,e.current=t}var So={},Cn=Ro(So),Yn=Ro(!1),bl=So;function su(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Qn(e){return e=e.childContextTypes,e!=null}function Pp(){Ot(Yn),Ot(Cn)}function hS(e,t,n){if(Cn.current!==So)throw Error(ce(168));yt(Cn,t),yt(Yn,n)}function t4(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ce(108,Aj(e)||"Unknown",a));return jt({},n,r)}function Tp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,bl=Cn.current,yt(Cn,e),yt(Yn,Yn.current),!0}function pS(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=t4(e,t,bl),r.__reactInternalMemoizedMergedChildContext=e,Ot(Yn),Ot(Cn),yt(Cn,e)):Ot(Yn),yt(Yn,n)}var oi=null,xg=!1,pv=!1;function n4(e){oi===null?oi=[e]:oi.push(e)}function GD(e){xg=!0,n4(e)}function $o(){if(!pv&&oi!==null){pv=!0;var e=0,t=ct;try{var n=oi;for(ct=1;e>=o,a-=o,ci=1<<32-ua(t)+a|n<C?(A=w,w=null):A=w.sibling;var I=d(m,w,_[C],x);if(I===null){w===null&&(w=A);break}e&&w&&I.alternate===null&&t(m,w),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I,w=A}if(C===_.length)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;C<_.length;C++)w=f(m,_[C],x),w!==null&&(v=i(w,v,C),S===null?O=w:S.sibling=w,S=w);return At&&Ho(m,C),O}for(w=r(m,w);C<_.length;C++)A=h(w,m,C,_[C],x),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?C:A.key),v=i(A,v,C),S===null?O=A:S.sibling=A,S=A);return e&&w.forEach(function(P){return t(m,P)}),At&&Ho(m,C),O}function g(m,v,_,x){var O=Yu(_);if(typeof O!="function")throw Error(ce(150));if(_=O.call(_),_==null)throw Error(ce(151));for(var S=O=null,w=v,C=v=0,A=null,I=_.next();w!==null&&!I.done;C++,I=_.next()){w.index>C?(A=w,w=null):A=w.sibling;var P=d(m,w,I.value,x);if(P===null){w===null&&(w=A);break}e&&w&&P.alternate===null&&t(m,w),v=i(P,v,C),S===null?O=P:S.sibling=P,S=P,w=A}if(I.done)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;!I.done;C++,I=_.next())I=f(m,I.value,x),I!==null&&(v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return At&&Ho(m,C),O}for(w=r(m,w);!I.done;C++,I=_.next())I=h(w,m,C,I.value,x),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?C:I.key),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return e&&w.forEach(function(T){return t(m,T)}),At&&Ho(m,C),O}function b(m,v,_,x){if(typeof _=="object"&&_!==null&&_.type===fs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case eh:e:{for(var O=_.key,S=v;S!==null;){if(S.key===O){if(O=_.type,O===fs){if(S.tag===7){n(m,S.sibling),v=a(S,_.props.children),v.return=m,m=v;break e}}else if(S.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yi&&xS(O)===S.type){n(m,S.sibling),v=a(S,_.props),v.ref=tc(m,S,_),v.return=m,m=v;break e}n(m,S);break}else t(m,S);S=S.sibling}_.type===fs?(v=pl(_.props.children,m.mode,x,_.key),v.return=m,m=v):(x=op(_.type,_.key,_.props,null,m.mode,x),x.ref=tc(m,v,_),x.return=m,m=x)}return o(m);case cs:e:{for(S=_.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(m,v.sibling),v=a(v,_.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=wv(_,m.mode,x),v.return=m,m=v}return o(m);case Yi:return S=_._init,b(m,v,S(_._payload),x)}if(Ec(_))return p(m,v,_,x);if(Yu(_))return g(m,v,_,x);fh(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(m,v.sibling),v=a(v,_),v.return=m,m=v):(n(m,v),v=xv(_,m.mode,x),v.return=m,m=v),o(m)):n(m,v)}return b}var cu=c4(!0),f4=c4(!1),yd={},Na=Ro(yd),yf=Ro(yd),bf=Ro(yd);function Jo(e){if(e===yd)throw Error(ce(174));return e}function x2(e,t){switch(yt(bf,t),yt(yf,e),yt(Na,yd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fy(t,e)}Ot(Na),yt(Na,t)}function fu(){Ot(Na),Ot(yf),Ot(bf)}function d4(e){Jo(bf.current);var t=Jo(Na.current),n=Fy(t,e.type);t!==n&&(yt(yf,e),yt(Na,n))}function w2(e){yf.current===e&&(Ot(Na),Ot(yf))}var $t=Ro(0);function Lp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mv=[];function S2(){for(var e=0;en?n:4,e(!0);var r=gv.transition;gv.transition={};try{e(!1),t()}finally{ct=n,gv.transition=r}}function P4(){return Br().memoizedState}function QD(e,t,n){var r=vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},T4(e))A4(t,n);else if(n=o4(e,t,n,r),n!==null){var a=jn();ca(n,e,r,a),M4(n,t,r)}}function JD(e,t,n){var r=vo(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(T4(e))A4(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,fa(l,o)){var s=t.interleaved;s===null?(a.next=a,b2(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=o4(e,t,a,r),n!==null&&(a=jn(),ca(n,e,r,a),M4(n,t,r))}}function T4(e){var t=e.alternate;return e===Lt||t!==null&&t===Lt}function A4(e,t){Hc=jp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function M4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,i2(e,n)}}var Dp={readContext:zr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},ZD={readContext:zr,useCallback:function(e,t){return wa().memoizedState=[e,t===void 0?null:t],e},useContext:zr,useEffect:SS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,np(4194308,4,S4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return np(4194308,4,e,t)},useInsertionEffect:function(e,t){return np(4,2,e,t)},useMemo:function(e,t){var n=wa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=QD.bind(null,Lt,e),[r.memoizedState,e]},useRef:function(e){var t=wa();return e={current:e},t.memoizedState=e},useState:wS,useDebugValue:P2,useDeferredValue:function(e){return wa().memoizedState=e},useTransition:function(){var e=wS(!1),t=e[0];return e=YD.bind(null,e[1]),wa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Lt,a=wa();if(At){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),an===null)throw Error(ce(349));xl&30||m4(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,SS(v4.bind(null,r,i,e),[e]),r.flags|=2048,wf(9,g4.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wa(),t=an.identifierPrefix;if(At){var n=fi,r=ci;n=(r&~(1<<32-ua(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_f++,0")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Z0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cc(e):""}function Mj(e){switch(e.tag){case 5:return Cc(e.type);case 16:return Cc("Lazy");case 13:return Cc("Suspense");case 19:return Cc("SuspenseList");case 0:case 2:case 15:return e=ev(e.type,!1),e;case 11:return e=ev(e.type.render,!1),e;case 1:return e=ev(e.type,!0),e;default:return""}}function $y(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fs:return"Fragment";case cs:return"Portal";case My:return"Profiler";case e2:return"StrictMode";case Iy:return"Suspense";case Ry:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f7:return(e.displayName||"Context")+".Consumer";case c7:return(e._context.displayName||"Context")+".Provider";case t2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case n2:return t=e.displayName||null,t!==null?t:$y(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return $y(e(t))}catch{}}return null}function Ij(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $y(t);case 8:return t===e2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function h7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rj(e){var t=h7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){e._valueTracker||(e._valueTracker=Rj(e))}function p7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=h7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ly(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m7(e,t){t=t.checked,t!=null&&Z5(e,"checked",t,!1)}function jy(e,t){m7(e,t);var n=wo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dy(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dy(e,t.type,wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dy(e,t,n){(t!=="number"||bp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function Ms(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$j=["Webkit","ms","Moz","O"];Object.keys(Nc).forEach(function(e){$j.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nc[t]=Nc[e]})});function b7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nc.hasOwnProperty(e)&&Nc[e]?(""+t).trim():t+"px"}function _7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=b7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var Lj=jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zy(e,t){if(t){if(Lj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function By(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uy=null;function r2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hy=null,Is=null,Rs=null;function Ww(e){if(e=vd(e)){if(typeof Hy!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=_g(t),Hy(e.stateNode,e.type,t))}}function x7(e){Is?Rs?Rs.push(e):Rs=[e]:Is=e}function w7(){if(Is){var e=Is,t=Rs;if(Rs=Is=null,Ww(e),t)for(e=0;e>>=0,e===0?32:31-(qj(e)/Gj|0)|0}var rh=64,ah=4194304;function kc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=kc(l):(i&=o,i!==0&&(r=kc(i)))}else o=n&~a,o!==0?r=kc(o):i!==0&&(r=kc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function md(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ua(t),e[t]=n}function Qj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zc),Zw=" ",eS=!1;function U7(e,t){switch(e){case"keyup":return CD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function kD(e,t){switch(e){case"compositionend":return H7(t);case"keypress":return t.which!==32?null:(eS=!0,Zw);case"textInput":return e=t.data,e===Zw&&eS?null:e;default:return null}}function PD(e,t){if(ds)return e==="compositionend"||!f2&&U7(e,t)?(e=z7(),Jh=s2=oo=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aS(n)}}function G7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?G7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function K7(){for(var e=window,t=bp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bp(e.document)}return t}function d2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function DD(e){var t=K7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&G7(n.ownerDocument.documentElement,n)){if(r!==null&&d2(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=iS(n,i);var o=iS(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hs=null,Xy=null,Uc=null,Yy=!1;function oS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yy||hs==null||hs!==bp(r)||(r=hs,"selectionStart"in r&&d2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uc&&pf(Uc,r)||(Uc=r,r=Ep(Xy,"onSelect"),0gs||(e.current=nb[gs],nb[gs]=null,gs--)}function yt(e,t){gs++,nb[gs]=e.current,e.current=t}var So={},Cn=Ro(So),Yn=Ro(!1),bl=So;function su(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Qn(e){return e=e.childContextTypes,e!=null}function Pp(){Ot(Yn),Ot(Cn)}function hS(e,t,n){if(Cn.current!==So)throw Error(ce(168));yt(Cn,t),yt(Yn,n)}function r4(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ce(108,Ij(e)||"Unknown",a));return jt({},n,r)}function Tp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,bl=Cn.current,yt(Cn,e),yt(Yn,Yn.current),!0}function pS(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=r4(e,t,bl),r.__reactInternalMemoizedMergedChildContext=e,Ot(Yn),Ot(Cn),yt(Cn,e)):Ot(Yn),yt(Yn,n)}var oi=null,xg=!1,pv=!1;function a4(e){oi===null?oi=[e]:oi.push(e)}function XD(e){xg=!0,a4(e)}function $o(){if(!pv&&oi!==null){pv=!0;var e=0,t=ct;try{var n=oi;for(ct=1;e>=o,a-=o,ci=1<<32-ua(t)+a|n<C?(A=w,w=null):A=w.sibling;var I=d(m,w,_[C],x);if(I===null){w===null&&(w=A);break}e&&w&&I.alternate===null&&t(m,w),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I,w=A}if(C===_.length)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;C<_.length;C++)w=f(m,_[C],x),w!==null&&(v=i(w,v,C),S===null?O=w:S.sibling=w,S=w);return At&&Ho(m,C),O}for(w=r(m,w);C<_.length;C++)A=h(w,m,C,_[C],x),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?C:A.key),v=i(A,v,C),S===null?O=A:S.sibling=A,S=A);return e&&w.forEach(function(P){return t(m,P)}),At&&Ho(m,C),O}function g(m,v,_,x){var O=Yu(_);if(typeof O!="function")throw Error(ce(150));if(_=O.call(_),_==null)throw Error(ce(151));for(var S=O=null,w=v,C=v=0,A=null,I=_.next();w!==null&&!I.done;C++,I=_.next()){w.index>C?(A=w,w=null):A=w.sibling;var P=d(m,w,I.value,x);if(P===null){w===null&&(w=A);break}e&&w&&P.alternate===null&&t(m,w),v=i(P,v,C),S===null?O=P:S.sibling=P,S=P,w=A}if(I.done)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;!I.done;C++,I=_.next())I=f(m,I.value,x),I!==null&&(v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return At&&Ho(m,C),O}for(w=r(m,w);!I.done;C++,I=_.next())I=h(w,m,C,I.value,x),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?C:I.key),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return e&&w.forEach(function(T){return t(m,T)}),At&&Ho(m,C),O}function b(m,v,_,x){if(typeof _=="object"&&_!==null&&_.type===fs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case eh:e:{for(var O=_.key,S=v;S!==null;){if(S.key===O){if(O=_.type,O===fs){if(S.tag===7){n(m,S.sibling),v=a(S,_.props.children),v.return=m,m=v;break e}}else if(S.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yi&&xS(O)===S.type){n(m,S.sibling),v=a(S,_.props),v.ref=tc(m,S,_),v.return=m,m=v;break e}n(m,S);break}else t(m,S);S=S.sibling}_.type===fs?(v=pl(_.props.children,m.mode,x,_.key),v.return=m,m=v):(x=op(_.type,_.key,_.props,null,m.mode,x),x.ref=tc(m,v,_),x.return=m,m=x)}return o(m);case cs:e:{for(S=_.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(m,v.sibling),v=a(v,_.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=wv(_,m.mode,x),v.return=m,m=v}return o(m);case Yi:return S=_._init,b(m,v,S(_._payload),x)}if(Ec(_))return p(m,v,_,x);if(Yu(_))return g(m,v,_,x);fh(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(m,v.sibling),v=a(v,_),v.return=m,m=v):(n(m,v),v=xv(_,m.mode,x),v.return=m,m=v),o(m)):n(m,v)}return b}var cu=d4(!0),h4=d4(!1),yd={},Na=Ro(yd),yf=Ro(yd),bf=Ro(yd);function Jo(e){if(e===yd)throw Error(ce(174));return e}function x2(e,t){switch(yt(bf,t),yt(yf,e),yt(Na,yd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fy(t,e)}Ot(Na),yt(Na,t)}function fu(){Ot(Na),Ot(yf),Ot(bf)}function p4(e){Jo(bf.current);var t=Jo(Na.current),n=Fy(t,e.type);t!==n&&(yt(yf,e),yt(Na,n))}function w2(e){yf.current===e&&(Ot(Na),Ot(yf))}var $t=Ro(0);function Lp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mv=[];function S2(){for(var e=0;en?n:4,e(!0);var r=gv.transition;gv.transition={};try{e(!1),t()}finally{ct=n,gv.transition=r}}function A4(){return Br().memoizedState}function ZD(e,t,n){var r=vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},M4(e))I4(t,n);else if(n=s4(e,t,n,r),n!==null){var a=jn();ca(n,e,r,a),R4(n,t,r)}}function eN(e,t,n){var r=vo(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(M4(e))I4(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,fa(l,o)){var s=t.interleaved;s===null?(a.next=a,b2(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=s4(e,t,a,r),n!==null&&(a=jn(),ca(n,e,r,a),R4(n,t,r))}}function M4(e){var t=e.alternate;return e===Lt||t!==null&&t===Lt}function I4(e,t){Hc=jp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function R4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,i2(e,n)}}var Dp={readContext:zr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},tN={readContext:zr,useCallback:function(e,t){return wa().memoizedState=[e,t===void 0?null:t],e},useContext:zr,useEffect:SS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,np(4194308,4,C4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return np(4194308,4,e,t)},useInsertionEffect:function(e,t){return np(4,2,e,t)},useMemo:function(e,t){var n=wa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ZD.bind(null,Lt,e),[r.memoizedState,e]},useRef:function(e){var t=wa();return e={current:e},t.memoizedState=e},useState:wS,useDebugValue:P2,useDeferredValue:function(e){return wa().memoizedState=e},useTransition:function(){var e=wS(!1),t=e[0];return e=JD.bind(null,e[1]),wa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Lt,a=wa();if(At){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),an===null)throw Error(ce(349));xl&30||v4(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,SS(b4.bind(null,r,i,e),[e]),r.flags|=2048,wf(9,y4.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wa(),t=an.identifierPrefix;if(At){var n=fi,r=ci;n=(r&~(1<<32-ua(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_f++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ma]=t,e[vf]=r,z4(e,t,!1,!1),t.stateNode=e;e:{switch(o=By(n,r),n){case"dialog":wt("cancel",e),wt("close",e),a=r;break;case"iframe":case"object":case"embed":wt("load",e),a=r;break;case"video":case"audio":for(a=0;ahu&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lp(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),nc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!At)return _n(t),null}else 2*Ht()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ht(),t.sibling=null,n=$t.current,yt($t,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return $2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?or&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function lN(e,t){switch(p2(t),t.tag){case 1:return Qn(t.type)&&Pp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fu(),Ot(Yn),Ot(Cn),S2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w2(t),null;case 13:if(Ot($t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));uu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot($t),null;case 4:return fu(),null;case 10:return y2(t.type._context),null;case 22:case 23:return $2(),null;case 24:return null;default:return null}}var hh=!1,On=!1,sN=typeof WeakSet=="function"?WeakSet:Set,we=null;function _s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ft(e,t,r)}else n.current=null}function pb(e,t,n){try{n()}catch(r){Ft(e,t,r)}}var IS=!1;function uN(e,t){if(Qy=Op,e=q7(),d2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===a&&(l=o),d===i&&++c===r&&(s=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jy={focusedElem:e,selectionRange:n},Op=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:ea(t.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(x){Ft(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=IS,IS=!1,p}function Wc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&pb(t,n,i)}a=a.next}while(a!==r)}}function Og(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function H4(e){var t=e.alternate;t!==null&&(e.alternate=null,H4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ma],delete t[vf],delete t[tb],delete t[VD],delete t[qD])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function W4(e){return e.tag===5||e.tag===3||e.tag===4}function RS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||W4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kp));else if(r!==4&&(e=e.child,e!==null))for(gb(e,t,n),e=e.sibling;e!==null;)gb(e,t,n),e=e.sibling}function vb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vb(e,t,n),e=e.sibling;e!==null;)vb(e,t,n),e=e.sibling}var hn=null,na=!1;function Hi(e,t,n){for(n=n.child;n!==null;)V4(e,t,n),n=n.sibling}function V4(e,t,n){if(Da&&typeof Da.onCommitFiberUnmount=="function")try{Da.onCommitFiberUnmount(gg,n)}catch{}switch(n.tag){case 5:On||_s(n,t);case 6:var r=hn,a=na;hn=null,Hi(e,t,n),hn=r,na=a,hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):hn.removeChild(n.stateNode));break;case 18:hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?hv(e.parentNode,n):e.nodeType===1&&hv(e,n),df(e)):hv(hn,n.stateNode));break;case 4:r=hn,a=na,hn=n.stateNode.containerInfo,na=!0,Hi(e,t,n),hn=r,na=a;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&pb(n,t,o),a=a.next}while(a!==r)}Hi(e,t,n);break;case 1:if(!On&&(_s(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ft(n,t,l)}Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,Hi(e,t,n),On=r):Hi(e,t,n);break;default:Hi(e,t,n)}}function $S(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sN),t.forEach(function(r){var a=yN.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*fN(r/1960))-r,10e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,zp=0,ot&6)throw Error(ce(331));var a=ot;for(ot|=4,we=e.current;we!==null;){var i=we,o=i.child;if(we.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sHt()-I2?hl(e,0):M2|=n),Jn(e,t)}function Z4(e,t){t===0&&(e.mode&1?(t=ah,ah<<=1,!(ah&130023424)&&(ah=4194304)):t=1);var n=jn();e=Si(e,t),e!==null&&(md(e,t,n),Jn(e,n))}function vN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Z4(e,n)}function yN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),Z4(e,n)}var eT;eT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yn.current)Gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gn=!1,iN(e,t,n);Gn=!!(e.flags&131072)}else Gn=!1,At&&t.flags&1048576&&r4(t,Mp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rp(e,t),e=t.pendingProps;var a=su(t,Cn.current);Ls(t,n),a=C2(null,t,r,e,a,n);var i=E2();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qn(r)?(i=!0,Tp(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,_2(t),a.updater=wg,t.stateNode=a,a._reactInternals=t,lb(t,r,e,n),t=cb(null,t,r,!0,i,n)):(t.tag=0,At&&i&&h2(t),Rn(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rp(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=_N(r),e=ea(r,e),a){case 0:t=ub(null,t,r,e,n);break e;case 1:t=TS(null,t,r,e,n);break e;case 11:t=kS(null,t,r,e,n);break e;case 14:t=PS(null,t,r,ea(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),ub(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),TS(e,t,r,a,n);case 3:e:{if(D4(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,a=i.element,l4(e,t),$p(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=du(Error(ce(423)),t),t=AS(e,t,r,n,a);break e}else if(r!==a){a=du(Error(ce(424)),t),t=AS(e,t,r,n,a);break e}else for(lr=po(t.stateNode.containerInfo.firstChild),fr=t,At=!0,oa=null,n=f4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uu(),r===a){t=Oi(e,t,n);break e}Rn(e,t,r,n)}t=t.child}return t;case 5:return d4(t),e===null&&ab(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Zy(r,a)?o=null:i!==null&&Zy(r,i)&&(t.flags|=32),j4(e,t),Rn(e,t,o,n),t.child;case 6:return e===null&&ab(t),null;case 13:return N4(e,t,n);case 4:return x2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cu(t,null,r,n):Rn(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),kS(e,t,r,a,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,yt(Ip,r._currentValue),r._currentValue=o,i!==null)if(fa(i.value,o)){if(i.children===a.children&&!Yn.current){t=Oi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=mi(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ib(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ce(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ib(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Rn(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ls(t,n),a=zr(a),r=r(a),t.flags|=1,Rn(e,t,r,n),t.child;case 14:return r=t.type,a=ea(r,t.pendingProps),a=ea(r.type,a),PS(e,t,r,a,n);case 15:return $4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),rp(e,t),t.tag=1,Qn(r)?(e=!0,Tp(t)):e=!1,Ls(t,n),u4(t,r,a),lb(t,r,a,n),cb(null,t,r,!0,e,n);case 19:return F4(e,t,n);case 22:return L4(e,t,n)}throw Error(ce(156,t.tag))};function tT(e,t){return k7(e,t)}function bN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,n,r){return new bN(e,t,n,r)}function j2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _N(e){if(typeof e=="function")return j2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===t2)return 11;if(e===n2)return 14}return 2}function yo(e,t){var n=e.alternate;return n===null?(n=$r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function op(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")j2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case fs:return pl(n.children,a,i,t);case e2:o=8,a|=8;break;case My:return e=$r(12,n,t,a|2),e.elementType=My,e.lanes=i,e;case Iy:return e=$r(13,n,t,a),e.elementType=Iy,e.lanes=i,e;case Ry:return e=$r(19,n,t,a),e.elementType=Ry,e.lanes=i,e;case c7:return Eg(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case s7:o=10;break e;case u7:o=9;break e;case t2:o=11;break e;case n2:o=14;break e;case Yi:o=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=$r(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function pl(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function Eg(e,t,n,r){return e=$r(22,e,r,t),e.elementType=c7,e.lanes=n,e.stateNode={isHidden:!1},e}function xv(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function wv(e,t,n){return t=$r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xN(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nv(0),this.expirationTimes=nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nv(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function D2(e,t,n,r,a,i,o,l,s){return e=new xN(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$r(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_2(i),e}function wN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iT)}catch(e){console.error(e)}}iT(),r7.exports=mr;var Mg=r7.exports;const kN=at(Mg),PN=qP({__proto__:null,default:kN},[Mg]);var US=Mg;Ty.createRoot=US.createRoot,Ty.hydrateRoot=US.hydrateRoot;function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const i=D(...r);i&&t.push(i)}else if(a==="object")for(const i in r)n.call(r,i)&&r[i]&&t.push(i)}),t.join(" ")}const wb={content:"pf-v5-c-content",modifiers:{visited:"pf-m-visited",plain:"pf-m-plain"}},TN={name:"--pf-v5-global--breakpoint--sm",value:"576px",var:"var(--pf-v5-global--breakpoint--sm)"},AN=TN,MN={name:"--pf-v5-global--breakpoint--md",value:"768px",var:"var(--pf-v5-global--breakpoint--md)"},IN=MN,RN={name:"--pf-v5-global--breakpoint--lg",value:"992px",var:"var(--pf-v5-global--breakpoint--lg)"},$N=RN,oT={name:"--pf-v5-global--breakpoint--xl",value:"1200px",var:"var(--pf-v5-global--breakpoint--xl)"},LN={name:"--pf-v5-global--breakpoint--2xl",value:"1450px",var:"var(--pf-v5-global--breakpoint--2xl)"},jN=LN,DN={name:"--pf-v5-global--height-breakpoint--sm",value:"0",var:"var(--pf-v5-global--height-breakpoint--sm)"},NN=DN,FN={name:"--pf-v5-global--height-breakpoint--md",value:"40rem",var:"var(--pf-v5-global--height-breakpoint--md)"},zN=FN,BN={name:"--pf-v5-global--height-breakpoint--lg",value:"48rem",var:"var(--pf-v5-global--height-breakpoint--lg)"},UN=BN,HN={name:"--pf-v5-global--height-breakpoint--xl",value:"60rem",var:"var(--pf-v5-global--height-breakpoint--xl)"},WN=HN,VN={name:"--pf-v5-global--height-breakpoint--2xl",value:"80rem",var:"var(--pf-v5-global--height-breakpoint--2xl)"},qN=VN;var Sb;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(Sb||(Sb={}));const Hp={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"},ac={sm:parseInt(AN.value),md:parseInt(IN.value),lg:parseInt($N.value),xl:parseInt(oT.value),"2xl":parseInt(jN.value)},ic={sm:parseInt(NN.value),md:parseInt(zN.value),lg:parseInt(UN.value),xl:parseInt(WN.value),"2xl":parseInt(qN.value)};/*! +`+i.stack}return{value:e,source:t,stack:a,digest:null}}function bv(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function sb(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var aN=typeof WeakMap=="function"?WeakMap:Map;function $4(e,t,n){n=mi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fp||(Fp=!0,yb=r),sb(e,t)},n}function L4(e,t,n){n=mi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){sb(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){sb(e,t),typeof r!="function"&&(go===null?go=new Set([this]):go.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function OS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new aN;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=yN.bind(null,e,t,n),t.then(e,e))}function CS(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ES(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mi(-1,1),t.tag=2,mo(n,t,1))),n.lanes|=1),e)}var iN=Mi.ReactCurrentOwner,Gn=!1;function Rn(e,t,n,r){t.child=e===null?h4(t,null,n,r):cu(t,e.child,n,r)}function kS(e,t,n,r,a){n=n.render;var i=t.ref;return Ls(t,a),r=C2(e,t,n,r,i,a),n=E2(),e!==null&&!Gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Oi(e,t,a)):(At&&n&&h2(t),t.flags|=1,Rn(e,t,r,a),t.child)}function PS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!j2(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,j4(e,t,i,r,a)):(e=op(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:pf,n(o,r)&&e.ref===t.ref)return Oi(e,t,a)}return t.flags|=1,e=yo(i,r),e.ref=t.ref,e.return=t,t.child=e}function j4(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(pf(i,r)&&e.ref===t.ref)if(Gn=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(Gn=!0);else return t.lanes=e.lanes,Oi(e,t,a)}return ub(e,t,n,r,a)}function D4(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(xs,lr),lr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,yt(xs,lr),lr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,yt(xs,lr),lr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,yt(xs,lr),lr|=r;return Rn(e,t,a,n),t.child}function N4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ub(e,t,n,r,a){var i=Qn(n)?bl:Cn.current;return i=su(t,i),Ls(t,a),n=C2(e,t,n,r,i,a),r=E2(),e!==null&&!Gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Oi(e,t,a)):(At&&r&&h2(t),t.flags|=1,Rn(e,t,n,a),t.child)}function TS(e,t,n,r,a){if(Qn(n)){var i=!0;Tp(t)}else i=!1;if(Ls(t,a),t.stateNode===null)rp(e,t),f4(t,n,r),lb(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=zr(u):(u=Qn(n)?bl:Cn.current,u=su(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||s!==u)&&_S(t,o,r,u),Qi=!1;var d=t.memoizedState;o.state=d,$p(t,r,o,a),s=t.memoizedState,l!==r||d!==s||Yn.current||Qi?(typeof c=="function"&&(ob(t,n,c,r),s=t.memoizedState),(l=Qi||bS(t,n,l,r,d,s,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,u4(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ea(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=zr(s):(s=Qn(n)?bl:Cn.current,s=su(t,s));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==s)&&_S(t,o,r,s),Qi=!1,d=t.memoizedState,o.state=d,$p(t,r,o,a);var p=t.memoizedState;l!==f||d!==p||Yn.current||Qi?(typeof h=="function"&&(ob(t,n,h,r),p=t.memoizedState),(u=Qi||bS(t,n,u,r,d,p,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return cb(e,t,n,r,i,a)}function cb(e,t,n,r,a,i){N4(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&pS(t,n,!1),Oi(e,t,i);r=t.stateNode,iN.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=cu(t,e.child,null,i),t.child=cu(t,null,l,i)):Rn(e,t,l,i),t.memoizedState=r.state,a&&pS(t,n,!0),t.child}function F4(e){var t=e.stateNode;t.pendingContext?hS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hS(e,t.context,!1),x2(e,t.containerInfo)}function AS(e,t,n,r,a){return uu(),m2(a),t.flags|=256,Rn(e,t,n,r),t.child}var fb={dehydrated:null,treeContext:null,retryLane:0};function db(e){return{baseLanes:e,cachePool:null,transitions:null}}function z4(e,t,n){var r=t.pendingProps,a=$t.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),yt($t,a&1),e===null)return ab(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Eg(o,r,0,null),e=pl(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=db(n),t.memoizedState=fb,e):T2(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return oN(e,t,o,r,l,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,l=a.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=yo(a,s),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=yo(l,i):(i=pl(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?db(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=fb,r}return i=e.child,e=i.sibling,r=yo(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function T2(e,t){return t=Eg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function dh(e,t,n,r){return r!==null&&m2(r),cu(t,e.child,null,n),e=T2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oN(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=bv(Error(ce(422))),dh(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Eg({mode:"visible",children:r.children},a,0,null),i=pl(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&cu(t,e.child,null,o),t.child.memoizedState=db(o),t.memoizedState=fb,i);if(!(t.mode&1))return dh(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(ce(419)),r=bv(i,r,void 0),dh(e,t,o,r)}if(l=(o&e.childLanes)!==0,Gn||l){if(r=an,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Si(e,a),ca(r,e,a,-1))}return L2(),r=bv(Error(ce(421))),dh(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=bN.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,sr=po(a.nextSibling),dr=t,At=!0,oa=null,e!==null&&(Ar[Mr++]=ci,Ar[Mr++]=fi,Ar[Mr++]=_l,ci=e.id,fi=e.overflow,_l=t),t=T2(t,r.children),t.flags|=4096,t)}function MS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ib(e.return,t,n)}function _v(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function B4(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Rn(e,t,r.children,n),r=$t.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&MS(e,n,t);else if(e.tag===19)MS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yt($t,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Lp(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),_v(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Lp(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}_v(t,!0,n,null,i);break;case"together":_v(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=yo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function lN(e,t,n){switch(t.tag){case 3:F4(t),uu();break;case 5:p4(t);break;case 1:Qn(t.type)&&Tp(t);break;case 4:x2(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;yt(Ip,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(yt($t,$t.current&1),t.flags|=128,null):n&t.child.childLanes?z4(e,t,n):(yt($t,$t.current&1),e=Oi(e,t,n),e!==null?e.sibling:null);yt($t,$t.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return B4(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),yt($t,$t.current),r)break;return null;case 22:case 23:return t.lanes=0,D4(e,t,n)}return Oi(e,t,n)}var U4,hb,H4,W4;U4=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};hb=function(){};H4=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Jo(Na.current);var i=null;switch(n){case"input":a=Ly(e,a),r=Ly(e,r),i=[];break;case"select":a=jt({},a,{value:void 0}),r=jt({},r,{value:void 0}),i=[];break;case"textarea":a=Ny(e,a),r=Ny(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=kp)}zy(n,r);var o;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(lf.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(lf.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&wt("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};W4=function(e,t,n,r){n!==r&&(t.flags|=4)};function nc(e,t){if(!At)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sN(e,t,n){var r=t.pendingProps;switch(p2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(t),null;case 1:return Qn(t.type)&&Pp(),_n(t),null;case 3:return r=t.stateNode,fu(),Ot(Yn),Ot(Cn),S2(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ch(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,oa!==null&&(xb(oa),oa=null))),hb(e,t),_n(t),null;case 5:w2(t);var a=Jo(bf.current);if(n=t.type,e!==null&&t.stateNode!=null)H4(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return _n(t),null}if(e=Jo(Na.current),ch(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ma]=t,r[vf]=i,e=(t.mode&1)!==0,n){case"dialog":wt("cancel",r),wt("close",r);break;case"iframe":case"object":case"embed":wt("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ma]=t,e[vf]=r,U4(e,t,!1,!1),t.stateNode=e;e:{switch(o=By(n,r),n){case"dialog":wt("cancel",e),wt("close",e),a=r;break;case"iframe":case"object":case"embed":wt("load",e),a=r;break;case"video":case"audio":for(a=0;ahu&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lp(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),nc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!At)return _n(t),null}else 2*Ht()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ht(),t.sibling=null,n=$t.current,yt($t,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return $2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lr&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function uN(e,t){switch(p2(t),t.tag){case 1:return Qn(t.type)&&Pp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fu(),Ot(Yn),Ot(Cn),S2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w2(t),null;case 13:if(Ot($t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));uu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot($t),null;case 4:return fu(),null;case 10:return y2(t.type._context),null;case 22:case 23:return $2(),null;case 24:return null;default:return null}}var hh=!1,On=!1,cN=typeof WeakSet=="function"?WeakSet:Set,we=null;function _s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ft(e,t,r)}else n.current=null}function pb(e,t,n){try{n()}catch(r){Ft(e,t,r)}}var IS=!1;function fN(e,t){if(Qy=Op,e=K7(),d2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===a&&(l=o),d===i&&++c===r&&(s=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jy={focusedElem:e,selectionRange:n},Op=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:ea(t.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(x){Ft(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=IS,IS=!1,p}function Wc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&pb(t,n,i)}a=a.next}while(a!==r)}}function Og(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V4(e){var t=e.alternate;t!==null&&(e.alternate=null,V4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ma],delete t[vf],delete t[tb],delete t[GD],delete t[KD])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function q4(e){return e.tag===5||e.tag===3||e.tag===4}function RS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kp));else if(r!==4&&(e=e.child,e!==null))for(gb(e,t,n),e=e.sibling;e!==null;)gb(e,t,n),e=e.sibling}function vb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vb(e,t,n),e=e.sibling;e!==null;)vb(e,t,n),e=e.sibling}var hn=null,na=!1;function Hi(e,t,n){for(n=n.child;n!==null;)G4(e,t,n),n=n.sibling}function G4(e,t,n){if(Da&&typeof Da.onCommitFiberUnmount=="function")try{Da.onCommitFiberUnmount(gg,n)}catch{}switch(n.tag){case 5:On||_s(n,t);case 6:var r=hn,a=na;hn=null,Hi(e,t,n),hn=r,na=a,hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):hn.removeChild(n.stateNode));break;case 18:hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?hv(e.parentNode,n):e.nodeType===1&&hv(e,n),df(e)):hv(hn,n.stateNode));break;case 4:r=hn,a=na,hn=n.stateNode.containerInfo,na=!0,Hi(e,t,n),hn=r,na=a;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&pb(n,t,o),a=a.next}while(a!==r)}Hi(e,t,n);break;case 1:if(!On&&(_s(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ft(n,t,l)}Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,Hi(e,t,n),On=r):Hi(e,t,n);break;default:Hi(e,t,n)}}function $S(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cN),t.forEach(function(r){var a=_N.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hN(r/1960))-r,10e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,zp=0,ot&6)throw Error(ce(331));var a=ot;for(ot|=4,we=e.current;we!==null;){var i=we,o=i.child;if(we.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sHt()-I2?hl(e,0):M2|=n),Jn(e,t)}function tT(e,t){t===0&&(e.mode&1?(t=ah,ah<<=1,!(ah&130023424)&&(ah=4194304)):t=1);var n=jn();e=Si(e,t),e!==null&&(md(e,t,n),Jn(e,n))}function bN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tT(e,n)}function _N(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),tT(e,n)}var nT;nT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yn.current)Gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gn=!1,lN(e,t,n);Gn=!!(e.flags&131072)}else Gn=!1,At&&t.flags&1048576&&i4(t,Mp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rp(e,t),e=t.pendingProps;var a=su(t,Cn.current);Ls(t,n),a=C2(null,t,r,e,a,n);var i=E2();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qn(r)?(i=!0,Tp(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,_2(t),a.updater=wg,t.stateNode=a,a._reactInternals=t,lb(t,r,e,n),t=cb(null,t,r,!0,i,n)):(t.tag=0,At&&i&&h2(t),Rn(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rp(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=wN(r),e=ea(r,e),a){case 0:t=ub(null,t,r,e,n);break e;case 1:t=TS(null,t,r,e,n);break e;case 11:t=kS(null,t,r,e,n);break e;case 14:t=PS(null,t,r,ea(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),ub(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),TS(e,t,r,a,n);case 3:e:{if(F4(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,a=i.element,u4(e,t),$p(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=du(Error(ce(423)),t),t=AS(e,t,r,n,a);break e}else if(r!==a){a=du(Error(ce(424)),t),t=AS(e,t,r,n,a);break e}else for(sr=po(t.stateNode.containerInfo.firstChild),dr=t,At=!0,oa=null,n=h4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uu(),r===a){t=Oi(e,t,n);break e}Rn(e,t,r,n)}t=t.child}return t;case 5:return p4(t),e===null&&ab(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Zy(r,a)?o=null:i!==null&&Zy(r,i)&&(t.flags|=32),N4(e,t),Rn(e,t,o,n),t.child;case 6:return e===null&&ab(t),null;case 13:return z4(e,t,n);case 4:return x2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cu(t,null,r,n):Rn(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),kS(e,t,r,a,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,yt(Ip,r._currentValue),r._currentValue=o,i!==null)if(fa(i.value,o)){if(i.children===a.children&&!Yn.current){t=Oi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=mi(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ib(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ce(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ib(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Rn(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ls(t,n),a=zr(a),r=r(a),t.flags|=1,Rn(e,t,r,n),t.child;case 14:return r=t.type,a=ea(r,t.pendingProps),a=ea(r.type,a),PS(e,t,r,a,n);case 15:return j4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),rp(e,t),t.tag=1,Qn(r)?(e=!0,Tp(t)):e=!1,Ls(t,n),f4(t,r,a),lb(t,r,a,n),cb(null,t,r,!0,e,n);case 19:return B4(e,t,n);case 22:return D4(e,t,n)}throw Error(ce(156,t.tag))};function rT(e,t){return T7(e,t)}function xN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,n,r){return new xN(e,t,n,r)}function j2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wN(e){if(typeof e=="function")return j2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===t2)return 11;if(e===n2)return 14}return 2}function yo(e,t){var n=e.alternate;return n===null?(n=$r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function op(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")j2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case fs:return pl(n.children,a,i,t);case e2:o=8,a|=8;break;case My:return e=$r(12,n,t,a|2),e.elementType=My,e.lanes=i,e;case Iy:return e=$r(13,n,t,a),e.elementType=Iy,e.lanes=i,e;case Ry:return e=$r(19,n,t,a),e.elementType=Ry,e.lanes=i,e;case d7:return Eg(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c7:o=10;break e;case f7:o=9;break e;case t2:o=11;break e;case n2:o=14;break e;case Yi:o=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=$r(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function pl(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function Eg(e,t,n,r){return e=$r(22,e,r,t),e.elementType=d7,e.lanes=n,e.stateNode={isHidden:!1},e}function xv(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function wv(e,t,n){return t=$r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SN(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nv(0),this.expirationTimes=nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nv(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function D2(e,t,n,r,a,i,o,l,s){return e=new SN(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$r(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_2(i),e}function ON(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lT)}catch(e){console.error(e)}}lT(),i7.exports=gr;var Mg=i7.exports;const TN=at(Mg),AN=KP({__proto__:null,default:TN},[Mg]);var US=Mg;Ty.createRoot=US.createRoot,Ty.hydrateRoot=US.hydrateRoot;function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const i=D(...r);i&&t.push(i)}else if(a==="object")for(const i in r)n.call(r,i)&&r[i]&&t.push(i)}),t.join(" ")}const wb={content:"pf-v5-c-content",modifiers:{visited:"pf-m-visited",plain:"pf-m-plain"}},MN={name:"--pf-v5-global--breakpoint--sm",value:"576px",var:"var(--pf-v5-global--breakpoint--sm)"},IN=MN,RN={name:"--pf-v5-global--breakpoint--md",value:"768px",var:"var(--pf-v5-global--breakpoint--md)"},$N=RN,LN={name:"--pf-v5-global--breakpoint--lg",value:"992px",var:"var(--pf-v5-global--breakpoint--lg)"},jN=LN,sT={name:"--pf-v5-global--breakpoint--xl",value:"1200px",var:"var(--pf-v5-global--breakpoint--xl)"},DN={name:"--pf-v5-global--breakpoint--2xl",value:"1450px",var:"var(--pf-v5-global--breakpoint--2xl)"},NN=DN,FN={name:"--pf-v5-global--height-breakpoint--sm",value:"0",var:"var(--pf-v5-global--height-breakpoint--sm)"},zN=FN,BN={name:"--pf-v5-global--height-breakpoint--md",value:"40rem",var:"var(--pf-v5-global--height-breakpoint--md)"},UN=BN,HN={name:"--pf-v5-global--height-breakpoint--lg",value:"48rem",var:"var(--pf-v5-global--height-breakpoint--lg)"},WN=HN,VN={name:"--pf-v5-global--height-breakpoint--xl",value:"60rem",var:"var(--pf-v5-global--height-breakpoint--xl)"},qN=VN,GN={name:"--pf-v5-global--height-breakpoint--2xl",value:"80rem",var:"var(--pf-v5-global--height-breakpoint--2xl)"},KN=GN;var Sb;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(Sb||(Sb={}));const Hp={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"},ac={sm:parseInt(IN.value),md:parseInt($N.value),lg:parseInt(jN.value),xl:parseInt(sT.value),"2xl":parseInt(NN.value)},ic={sm:parseInt(zN.value),md:parseInt(UN.value),lg:parseInt(WN.value),xl:parseInt(qN.value),"2xl":parseInt(KN.value)};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var lT=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Wp=lT.join(","),sT=typeof Element>"u",Ol=sT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vp=!sT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},qp=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=a===""||a==="true",o=i||n&&t&&e(t.parentNode);return o},GN=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},uT=function(t,n,r){if(qp(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(Wp));return n&&Ol.call(t,Wp)&&a.unshift(t),a=a.filter(r),a},cT=function e(t,n,r){for(var a=[],i=Array.from(t);i.length;){var o=i.shift();if(!qp(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:o,candidates:u})}else{var c=Ol.call(o,Wp);c&&r.filter(o)&&(n||!t.includes(o))&&a.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!qp(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var h=e(f===!0?o.children:f.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:o,candidates:h})}else i.unshift.apply(i,o.children)}}return a},fT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Go=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||GN(t))&&!fT(t)?0:t.tabIndex},KN=function(t,n){var r=Go(t);return r<0&&n&&!fT(t)?0:r},XN=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},dT=function(t){return t.tagName==="INPUT"},YN=function(t){return dT(t)&&t.type==="hidden"},QN=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},JN=function(t,n){for(var r=0;rsummary:first-of-type"),o=i?t.parentElement:t;if(Ol.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var l=t;t;){var s=t.parentElement,u=Vp(t);if(s&&!s.shadowRoot&&a(s)===!0)return HS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(n9(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return HS(t);return!1},a9=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},o9=function e(t){var n=[],r=[];return t.forEach(function(a,i){var o=!!a.scopeParent,l=o?a.scopeParent:a,s=KN(l,o),u=o?e(a.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:i,tabIndex:s,item:a,isScope:o,content:u})}),r.sort(XN).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(n)},l9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=cT([t],n.includeContainer,{filter:Ob.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:i9}):r=uT(t,n.includeContainer,Ob.bind(null,n)),o9(r)},s9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=cT([t],n.includeContainer,{filter:Gp.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=uT(t,n.includeContainer,Gp.bind(null,n)),r},ts=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,Wp)===!1?!1:Ob(n,t)},u9=lT.concat("iframe").join(","),Sv=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,u9)===!1?!1:Gp(n,t)};/*! +*/var uT=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Wp=uT.join(","),cT=typeof Element>"u",Ol=cT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vp=!cT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},qp=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=a===""||a==="true",o=i||n&&t&&e(t.parentNode);return o},XN=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},fT=function(t,n,r){if(qp(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(Wp));return n&&Ol.call(t,Wp)&&a.unshift(t),a=a.filter(r),a},dT=function e(t,n,r){for(var a=[],i=Array.from(t);i.length;){var o=i.shift();if(!qp(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:o,candidates:u})}else{var c=Ol.call(o,Wp);c&&r.filter(o)&&(n||!t.includes(o))&&a.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!qp(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var h=e(f===!0?o.children:f.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:o,candidates:h})}else i.unshift.apply(i,o.children)}}return a},hT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Go=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||XN(t))&&!hT(t)?0:t.tabIndex},YN=function(t,n){var r=Go(t);return r<0&&n&&!hT(t)?0:r},QN=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},pT=function(t){return t.tagName==="INPUT"},JN=function(t){return pT(t)&&t.type==="hidden"},ZN=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},e9=function(t,n){for(var r=0;rsummary:first-of-type"),o=i?t.parentElement:t;if(Ol.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var l=t;t;){var s=t.parentElement,u=Vp(t);if(s&&!s.shadowRoot&&a(s)===!0)return HS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(a9(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return HS(t);return!1},o9=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},s9=function e(t){var n=[],r=[];return t.forEach(function(a,i){var o=!!a.scopeParent,l=o?a.scopeParent:a,s=YN(l,o),u=o?e(a.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:i,tabIndex:s,item:a,isScope:o,content:u})}),r.sort(QN).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(n)},u9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=dT([t],n.includeContainer,{filter:Ob.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:l9}):r=fT(t,n.includeContainer,Ob.bind(null,n)),s9(r)},c9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=dT([t],n.includeContainer,{filter:Gp.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=fT(t,n.includeContainer,Gp.bind(null,n)),r},ts=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,Wp)===!1?!1:Ob(n,t)},f9=uT.concat("iframe").join(","),Sv=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,f9)===!1?!1:Gp(n,t)};/*! * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VS(e){for(var t=1;t0){var r=t[t.length-1];r!==n&&r.pause()}var a=t.indexOf(n);a===-1||t.splice(a,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},h9=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},p9=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Gc=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},m9=function(t){return Gc(t)&&!t.shiftKey},g9=function(t){return Gc(t)&&t.shiftKey},GS=function(t){return setTimeout(t,0)},KS=function(t,n){var r=-1;return t.every(function(a,i){return n(a)?(r=i,!1):!0}),r},oc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?L-1:0),U=1;U=0)T=r.activeElement;else{var E=o.tabbableGroups[0],L=E&&E.firstTabbableNode;T=L||c("fallbackFocus")}if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},d=function(){if(o.containerGroups=o.containers.map(function(T){var E=l9(T,i.tabbableOptions),L=s9(T,i.tabbableOptions),N=E.length>0?E[0]:void 0,U=E.length>0?E[E.length-1]:void 0,W=L.find(function(k){return ts(k)}),$=L.slice().reverse().find(function(k){return ts(k)}),F=!!E.find(function(k){return Go(k)>0});return{container:T,tabbableNodes:E,focusableNodes:L,posTabIndexesFound:F,firstTabbableNode:N,lastTabbableNode:U,firstDomTabbableNode:W,lastDomTabbableNode:$,nextTabbableNode:function(X){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=E.indexOf(X);return R<0?te?L.slice(L.indexOf(X)+1).find(function(J){return ts(J)}):L.slice(0,L.indexOf(X)).reverse().find(function(J){return ts(J)}):E[R+(te?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(T){return T.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function P(T){var E=T.activeElement;if(E)return E.shadowRoot&&E.shadowRoot.activeElement!==null?P(E.shadowRoot):E},p=function P(T){if(T!==!1&&T!==h(document)){if(!T||!T.focus){P(f());return}T.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=T,h9(T)&&T.select()}},g=function(T){var E=c("setReturnFocus",T);return E||(E===!1?!1:T)},b=function(T){var E=T.target,L=T.event,N=T.isBackward,U=N===void 0?!1:N;E=E||gh(L),d();var W=null;if(o.tabbableGroups.length>0){var $=u(E,L),F=$>=0?o.containerGroups[$]:void 0;if($<0)U?W=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:W=o.tabbableGroups[0].firstTabbableNode;else if(U){var k=KS(o.tabbableGroups,function(ue){var ve=ue.firstTabbableNode;return E===ve});if(k<0&&(F.container===E||Sv(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E,!1))&&(k=$),k>=0){var X=k===0?o.tabbableGroups.length-1:k-1,te=o.tabbableGroups[X];W=Go(E)>=0?te.lastTabbableNode:te.lastDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E,!1))}else{var R=KS(o.tabbableGroups,function(ue){var ve=ue.lastTabbableNode;return E===ve});if(R<0&&(F.container===E||Sv(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E))&&(R=$),R>=0){var J=R===o.tabbableGroups.length-1?0:R+1,ae=o.tabbableGroups[J];W=Go(E)>=0?ae.firstTabbableNode:ae.firstDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E))}}else W=c("fallbackFocus");return W},m=function(T){var E=gh(T);if(!(u(E,T)>=0)){if(oc(i.clickOutsideDeactivates,T)){l.deactivate({returnFocus:i.returnFocusOnDeactivate});return}oc(i.allowOutsideClick,T)||T.preventDefault()}},v=function(T){var E=gh(T),L=u(E,T)>=0;if(L||E instanceof Document)L&&(o.mostRecentlyFocusedNode=E);else{T.stopImmediatePropagation();var N,U=!0;if(o.mostRecentlyFocusedNode)if(Go(o.mostRecentlyFocusedNode)>0){var W=u(o.mostRecentlyFocusedNode),$=o.containerGroups[W].tabbableNodes;if($.length>0){var F=$.findIndex(function(k){return k===o.mostRecentlyFocusedNode});F>=0&&(i.isKeyForward(o.recentNavEvent)?F+1<$.length&&(N=$[F+1],U=!1):F-1>=0&&(N=$[F-1],U=!1))}}else o.containerGroups.some(function(k){return k.tabbableNodes.some(function(X){return Go(X)>0})})||(U=!1);else U=!1;U&&(N=b({target:o.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(o.recentNavEvent)})),p(N||o.mostRecentlyFocusedNode||f())}o.recentNavEvent=void 0},_=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=T;var L=b({event:T,isBackward:E});L&&(Gc(T)&&T.preventDefault(),p(L))},x=function(T){if(p9(T)&&oc(i.escapeDeactivates,T)!==!1){T.preventDefault(),l.deactivate();return}(i.isKeyForward(T)||i.isKeyBackward(T))&&_(T,i.isKeyBackward(T))},O=function(T){var E=gh(T);u(E,T)>=0||oc(i.clickOutsideDeactivates,T)||oc(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},S=function(){if(o.active)return qS.activateTrap(a,l),o.delayInitialFocusTimer=i.delayInitialFocus?GS(function(){p(f())}):p(f()),r.addEventListener("focusin",v,!0),r.addEventListener("mousedown",m,{capture:!0,passive:!1}),r.addEventListener("touchstart",m,{capture:!0,passive:!1}),r.addEventListener("click",O,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),l},w=function(){if(o.active)return r.removeEventListener("focusin",v,!0),r.removeEventListener("mousedown",m,!0),r.removeEventListener("touchstart",m,!0),r.removeEventListener("click",O,!0),r.removeEventListener("keydown",x,!0),l},C=function(T){var E=T.some(function(L){var N=Array.from(L.removedNodes);return N.some(function(U){return U===o.mostRecentlyFocusedNode})});E&&p(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(C):void 0,I=function(){A&&(A.disconnect(),o.active&&!o.paused&&o.containers.map(function(T){A.observe(T,{subtree:!0,childList:!0})}))};return l={get active(){return o.active},get paused(){return o.paused},activate:function(T){if(o.active)return this;var E=s(T,"onActivate"),L=s(T,"onPostActivate"),N=s(T,"checkCanFocusTrap");N||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,E==null||E();var U=function(){N&&d(),S(),I(),L==null||L()};return N?(N(o.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(T){if(!o.active)return this;var E=VS({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,w(),o.active=!1,o.paused=!1,I(),qS.deactivateTrap(a,l);var L=s(E,"onDeactivate"),N=s(E,"onPostDeactivate"),U=s(E,"checkCanReturnFocus"),W=s(E,"returnFocus","returnFocusOnDeactivate");L==null||L();var $=function(){GS(function(){W&&p(g(o.nodeFocusedBeforeActivation)),N==null||N()})};return W&&U?(U(g(o.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(T){if(o.paused||!o.active)return this;var E=s(T,"onPause"),L=s(T,"onPostPause");return o.paused=!0,E==null||E(),w(),I(),L==null||L(),this},unpause:function(T){if(!o.paused||!o.active)return this;var E=s(T,"onUnpause"),L=s(T,"onPostUnpause");return o.paused=!1,E==null||E(),d(),S(),I(),L==null||L(),this},updateContainerElements:function(T){var E=[].concat(T).filter(Boolean);return o.containers=E.map(function(L){return typeof L=="string"?r.querySelector(L):L}),o.active&&d(),I(),this}},l.updateContainerElements(t),l};function b9(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>()=>{t.current()},[])}const B2=y.forwardRef(function(t,n){var{active:r=!0,paused:a=!1,focusTrapOptions:i={},preventScrollOnDeactivate:o=!1}=t,l=Q(t,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const s=y.useRef(null);y.useImperativeHandle(n,()=>s.current);const u=y.useRef(null);y.useEffect(()=>{const f=y9(s.current,Object.assign(Object.assign({},i),{returnFocusOnDeactivate:!1}));return u.current=f,()=>{f.deactivate()}},[]),y.useEffect(()=>{const f=u.current;r?f==null||f.activate():f==null||f.deactivate()},[r]),y.useEffect(()=>{const f=u.current;a?f==null||f.pause():f==null||f.unpause()},[a]);const c=y.useRef(typeof document<"u"?document.activeElement:null);return b9(()=>{i.returnFocusOnDeactivate!==!1&&c.current instanceof HTMLElement&&c.current.focus({preventScroll:o})}),M.createElement("div",Object.assign({ref:s},l))});B2.displayName="FocusTrap";function U2(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function _9(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function vh(e,t,n,r=!1){if(!e||!t)return!1;const a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=Math.ceil(a.left),l=Math.floor(a.right),s=Math.ceil(i.left),u=Math.floor(i.right),c=s>=o&&u<=l,f=(n||!r&&a.widtho||u>l&&sObject.entries(e||{}).reduce((n,[r,a])=>r==="default"?Object.assign(Object.assign({},n),{[t]:a}):Object.assign(Object.assign({},n),{[`${t}-on-${r}`]:a}),{}),Ci=(e,t,n="",r,a)=>{if(!e)return"";if(r&&!a){if(r in e)return t.modifiers[Ov(`${n}${e[r]}`)];const i=["2xl","xl","lg","md","sm","default"],o=i.indexOf(r);for(let l=o;l`${n}${o}${i!=="default"?`-on-${i}`:""}${a&&i!=="default"?"-height":""}`).map(Ov).map(i=>i.replace(/-?(\dxl)/gi,(o,l)=>`_${l}`)).map(i=>t.modifiers[i]).filter(Boolean).join(" ")},pT=e=>e===null?null:e>=ic["2xl"]?"2xl":e>=ic.xl?"xl":e>=ic.lg?"lg":e>=ic.md?"md":e>=ic.sm?"sm":"default",mT=e=>e===null?null:e>=ac["2xl"]?"2xl":e>=ac.xl?"xl":e>=ac.lg?"lg":e>=ac.md?"md":e>=ac.sm?"sm":"default",x9=e=>e.toUpperCase().replace("-","").replace("_",""),Ov=e=>e.replace(/([-_][a-z])/gi,x9),Oo=!!(typeof window<"u"&&window.document&&window.document.createElement),XS=(e,t)=>{const n=getComputedStyle(t),r=()=>{let o="";const l={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let s;return n.fontStretch in l?s=l[n.fontStretch]:s="normal",o=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+s+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,o},i=document.createElement("canvas").getContext("2d");return i.font=n.font||r(),i.measureText(e).width},w9=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},S9=(e,t)=>{const n=w9(e).width;let r=t;if(XS(t,e)>n){for(;XS(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},yh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},Ds=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let O9=0;function C9(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():U2()}class Mu extends y.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?C9():O9++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Mu.displayName="GenerateId";Mu.defaultProps={prefix:"pf-random-id-",isRandom:!1};const gT="*";let E9=0;const YS="OUIA-Generated-",Cv={};function Ll(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ii=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":k9(e,t,r)}),k9=(e,t,n)=>{const r=y.useMemo(()=>Lo(e,n),[e,n]);return t??r};function Lo(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,Cv[n]||(Cv[n]=0),`${YS}${e}-${t?`${t}-`:""}${++Cv[n]}`}catch{return`${YS}${e}-${t?`${t}-`:""}${++E9}`}}function Of(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 qa(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function H2(e){const t=qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cf(e){const t=qa(e).Element;return e instanceof t||e instanceof Element}function Ua(e){const t=qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function P9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function T9(e){return e===qa(e)||!Ua(e)?H2(e):P9(e)}function ma(e){return e?(e.nodeName||"").toLowerCase():null}function Ri(e){return(Cf(e)?e.ownerDocument:e.document).documentElement}function W2(e){return Of(Ri(e)).left+H2(e).scrollLeft}function gi(e){return qa(e).getComputedStyle(e)}function V2(e){const{overflow:t,overflowX:n,overflowY:r}=gi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function A9(e,t,n=!1){const r=Ri(t),a=Of(e),i=Ua(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((ma(t)!=="body"||V2(r))&&(o=T9(t)),Ua(t)?(l=Of(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=W2(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function q2(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Ig(e){return ma(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Ri(e)}function vT(e){return["html","body","#document"].indexOf(ma(e))>=0?e.ownerDocument.body:Ua(e)&&V2(e)?e:vT(Ig(e))}function Kc(e,t=[]){const n=vT(e),r=ma(n)==="body",a=qa(n),i=r?[a].concat(a.visualViewport||[],V2(n)?n:[]):n,o=t.concat(i);return r?o:o.concat(Kc(Ig(i)))}function M9(e){return["table","td","th"].indexOf(ma(e))>=0}function QS(e){if(!Ua(e)||gi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Ri(t);if(ma(t)==="body"&&gi(t).position==="static"&&gi(n).position!=="static")return n}return t}function I9(e){let t=Ig(e);for(;Ua(t)&&["html","body"].indexOf(ma(t))<0;){const n=gi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function bd(e){const t=qa(e);let n=QS(e);for(;n&&M9(n)&&gi(n).position==="static";)n=QS(n);return n&&ma(n)==="body"&&gi(n).position==="static"?t:n||I9(e)||t}const Ur="top",da="bottom",ha="right",Hr="left",G2="auto",_d=[Ur,da,ha,Hr],pu="start",K2="end",R9="clippingParents",yT="viewport",lc="popper",$9="reference",JS=_d.reduce((e,t)=>e.concat([`${t}-${pu}`,`${t}-${K2}`]),[]),bT=[..._d,G2].reduce((e,t)=>e.concat([t,`${t}-${pu}`,`${t}-${K2}`]),[]),L9="beforeRead",j9="read",D9="afterRead",N9="beforeMain",F9="main",z9="afterMain",B9="beforeWrite",U9="write",H9="afterWrite",W9=[L9,j9,D9,N9,F9,z9,B9,U9,H9];function V9(e){const t=new Map,n=new Set,r=[];e.forEach(i=>{t.set(i.name,i)});function a(i){n.add(i.name),[...i.requires||[],...i.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&a(s)}}),r.push(i)}return e.forEach(i=>{n.has(i.name)||a(i)}),r}function q9(e){const t=V9(e);return W9.reduce((n,r)=>n.concat(t.filter(a=>a.phase===r)),[])}function G9(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function Fa(e){return e.split("-")[0]}function K9(e){const t=e.reduce((n,r)=>{const a=n[r.name];return n[r.name]=a?Object.assign(Object.assign(Object.assign({},a),r),{options:Object.assign(Object.assign({},a.options),r.options),data:Object.assign(Object.assign({},a.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function X9(e){const t=qa(e),n=Ri(e),r=t.visualViewport;let a=n.clientWidth,i=n.clientHeight,o=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:o+W2(e),y:l}}function Y9(e){const t=Ri(e),n=H2(e),r=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+W2(e);const l=-n.scrollTop;return gi(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:o,y:l}}function _T(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 Cb(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Q9(e){const t=Of(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 ZS(e,t){return t===yT?Cb(X9(e)):Ua(t)?Q9(t):Cb(Y9(Ri(e)))}function J9(e){const t=Kc(Ig(e)),r=["absolute","fixed"].indexOf(gi(e).position)>=0&&Ua(e)?bd(e):e;return Cf(r)?t.filter(a=>Cf(a)&&_T(a,r)&&ma(a)!=="body"):[]}function Z9(e,t,n){const a=[...t==="clippingParents"?J9(e):[].concat(t),n],i=a[0],o=a.reduce((l,s)=>{const u=ZS(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},ZS(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ef(e){return e.split("-")[1]}function X2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xT({reference:e,element:t,placement:n}){const r=n?Fa(n):null,a=n?Ef(n):null,i=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case Ur:l={x:i,y:e.y-t.height};break;case da:l={x:i,y:e.y+e.height};break;case ha:l={x:e.x+e.width,y:o};break;case Hr:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?X2(r):null;if(s!=null){const u=s==="y"?"height":"width";switch(a){case pu:l[s]=Math.floor(l[s])-Math.floor(e[u]/2-t[u]/2);break;case K2:l[s]=Math.floor(l[s])+Math.ceil(e[u]/2-t[u]/2);break}}return l}function wT(){return{top:0,right:0,bottom:0,left:0}}function ST(e){return Object.assign(Object.assign({},wT()),e)}function OT(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function kf(e,t={}){const{placement:n=e.placement,boundary:r=R9,rootBoundary:a=yT,elementContext:i=lc,altBoundary:o=!1,padding:l=0}=t,s=ST(typeof l!="number"?l:OT(l,_d)),u=i===lc?$9:lc,c=e.elements.reference,f=e.rects.popper,d=e.elements[o?u:i],h=Z9(Cf(d)?d:d.contextElement||Ri(e.elements.popper),r,a),p=Of(c),g=xT({reference:p,element:f,strategy:"absolute",placement:n}),b=Cb(Object.assign(Object.assign({},f),g)),m=i===lc?b:p,v={top:h.top-m.top+s.top,bottom:m.bottom-h.bottom+s.bottom,left:h.left-m.left+s.left,right:m.right-h.right+s.right},_=e.modifiersData.offset;if(i===lc&&_){const x=_[n];Object.keys(v).forEach(O=>{const S=[ha,da].indexOf(O)>=0?1:-1,w=[Ur,da].indexOf(O)>=0?"y":"x";v[O]+=x[w]*S})}return v}const eO={placement:"bottom",modifiers:[],strategy:"absolute"};function tO(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function eF(e={}){const{defaultModifiers:t=[],defaultOptions:n=eO}=e;return function(a,i,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},eO),n),modifiersData:{},elements:{reference:a,popper:i},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:Cf(a)?Kc(a):a.contextElement?Kc(a.contextElement):[],popper:Kc(i)};const p=q9(K9([...t,...l.options.modifiers]));return l.orderedModifiers=p.filter(g=>g.enabled),f(),c.update()},forceUpdate(){if(u)return;const{reference:h,popper:p}=l.elements;if(tO(h,p)){l.rects={reference:A9(h,bd(p),l.options.strategy==="fixed"),popper:q2(p)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(g=>l.modifiersData[g.name]=Object.assign({},g.data));for(let g=0;gnew Promise(h=>{c.forceUpdate(),h(l)})),destroy(){d(),u=!0}};if(!tO(a,i))return c;c.setOptions(o).then(h=>{!u&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:p={},effect:g})=>{if(typeof g=="function"){const b=g({state:l,name:h,instance:c,options:p}),m=()=>{};s.push(b||m)}})}function d(){s.forEach(h=>h()),s=[]}return c}}const bh={passive:!0};function tF({state:e,instance:t,options:n}){const{scroll:r=!0,resize:a=!0}=n,i=qa(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,bh)}),a&&i.addEventListener("resize",t.update,bh),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,bh)}),a&&i.removeEventListener("resize",t.update,bh)}}const nF={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:tF,data:{}};function rF({state:e,name:t}){e.modifiersData[t]=xT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const aF={name:"popperOffsets",enabled:!0,phase:"read",fn:rF,data:{}},iF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oF({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 nO({popper:e,popperRect:t,placement:n,offsets:r,position:a,gpuAcceleration:i,adaptive:o}){let{x:l,y:s}=oF(r);const u=r.hasOwnProperty("x"),c=r.hasOwnProperty("y");let f=Hr,d=Ur;const h=window;if(o){let g=bd(e);g===qa(e)&&(g=Ri(e)),n===Ur&&(d=da,s-=g.clientHeight-t.height,s*=i?1:-1),n===Hr&&(f=ha,l-=g.clientWidth-t.width,l*=i?1:-1)}const p=Object.assign({position:a},o&&iF);return i?Object.assign(Object.assign({},p),{[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({},p),{[d]:c?`${s}px`:"",[f]:u?`${l}px`:"",transform:""})}function lF({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,a={placement:Fa(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),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const sF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lF,data:{}};function uF({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},a=e.elements[t];!Ua(a)||!ma(a)||(Object.assign(a.style,n),Object.keys(r).forEach(i=>{const o=r[i];o===!1?a.removeAttribute(i):a.setAttribute(i,o===!0?"":o)}))})}function cF({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],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Ua(r)||!ma(r)||(Object.assign(r.style,o),Object.keys(a).forEach(l=>{r.removeAttribute(l)}))})}}const fF={name:"applyStyles",enabled:!0,phase:"write",fn:uF,effect:cF,requires:["computeStyles"]};function dF(e,t,n){const r=Fa(e),a=[Hr,Ur].indexOf(r)>=0?-1:1;let[i,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return i=i||0,o=(o||0)*a,[Hr,ha].indexOf(r)>=0?{x:o,y:i}:{x:i,y:o}}function hF({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,a=bT.reduce((l,s)=>(l[s]=dF(s,e.rects,r),l),{}),{x:i,y:o}=a[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=a}const pF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hF},mF={left:"right",right:"left",bottom:"top",top:"bottom"};function lp(e){return e.replace(/left|right|bottom|top/g,t=>mF[t])}const gF={start:"end",end:"start"};function rO(e){return e.replace(/start|end/g,t=>gF[t])}function vF(e,t={}){const{placement:n,boundary:r,rootBoundary:a,padding:i,flipVariations:o,allowedAutoPlacements:l=bT}=t,s=Ef(n),u=s?o?JS:JS.filter(d=>Ef(d)===s):_d;let c=u.filter(d=>l.indexOf(d)>=0);c.length===0&&(c=u);const f=c.reduce((d,h)=>(d[h]=kf(e,{placement:h,boundary:r,rootBoundary:a,padding:i})[Fa(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function yF(e){if(Fa(e)===G2)return[];const t=lp(e);return[rO(e),t,rO(t)]}function bF({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:a=!0,fallbackPlacements:i,padding:o,boundary:l,rootBoundary:s,altBoundary:u,flipVariations:c=!0,allowedAutoPlacements:f}=t,d=e.options.placement,p=Fa(d)===d,g=i||(p||!c?[lp(d)]:yF(d)),b=[d,...g].reduce((S,w)=>S.concat(Fa(w)===G2?vF(e,{placement:w,boundary:l,rootBoundary:s,padding:o,flipVariations:c,allowedAutoPlacements:f}):w),[]),m=e.rects.reference,v=e.rects.popper,_=new Map;let x=!0,O=b[0];for(let S=0;S=0,P=I?"width":"height",T=kf(e,{placement:w,boundary:l,rootBoundary:s,altBoundary:u,padding:o});let E=I?A?ha:Hr:A?da:Ur;m[P]>v[P]&&(E=lp(E));const L=lp(E),N=[];if(r&&N.push(T[C]<=0),a&&N.push(T[E]<=0,T[L]<=0),N.every(U=>U)){O=w,x=!1;break}_.set(w,N)}if(x){const S=c?3:1;for(let w=S;w>0;w--){const C=b.find(A=>{const I=_.get(A);if(I)return I.slice(0,w).every(P=>P)});if(C){O=C;break}}}e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}const _F={name:"flip",enabled:!0,phase:"main",fn:bF,requiresIfExists:["offset"],data:{_skip:!1}};function xF(e){return e==="x"?"y":"x"}function sp(e,t,n){return Math.max(e,Math.min(t,n))}function wF({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:a=!1,boundary:i,rootBoundary:o,altBoundary:l,padding:s,tether:u=!0,tetherOffset:c=0}=t,f=kf(e,{boundary:i,rootBoundary:o,padding:s,altBoundary:l}),d=Fa(e.placement),h=Ef(e.placement),p=!h,g=X2(d),b=xF(g),m=e.modifiersData.popperOffsets,v=e.rects.reference,_=e.rects.popper,x=typeof c=="function"?c(Object.assign(Object.assign({},e.rects),{placement:e.placement})):c,O={x:0,y:0};if(m){if(r){const S=g==="y"?Ur:Hr,w=g==="y"?da:ha,C=g==="y"?"height":"width",A=m[g],I=m[g]+f[S],P=m[g]-f[w],T=u?-_[C]/2:0,E=h===pu?v[C]:_[C],L=h===pu?-_[C]:-v[C],N=e.elements.arrow,U=u&&N?q2(N):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:wT(),$=W[S],F=W[w],k=sp(0,v[C],U[C]),X=p?v[C]/2-T-k-$-x:E-k-$-x,te=p?-v[C]/2+T+k+F+x:L+k+F+x,R=e.elements.arrow&&bd(e.elements.arrow),J=R?g==="y"?R.clientTop||0:R.clientLeft||0:0,ae=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,ue=m[g]+X-ae-J,ve=m[g]+te-ae,ke=sp(u?Math.min(I,ue):I,A,u?Math.max(P,ve):P);m[g]=ke,O[g]=ke-A}if(a){const S=g==="x"?Ur:Hr,w=g==="x"?da:ha,C=m[b],A=C+f[S],I=C-f[w],P=sp(A,C,I);m[b]=P,O[b]=P-C}e.modifiersData[n]=O}}const SF={name:"preventOverflow",enabled:!0,phase:"main",fn:wF,requiresIfExists:["offset"]};function OF({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Fa(e.placement),i=X2(a),l=[Hr,ha].indexOf(a)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,u=q2(n),c=i==="y"?Ur:Hr,f=i==="y"?da:ha,d=e.rects.reference[l]+e.rects.reference[i]-r[i]-e.rects.popper[l],h=r[i]-e.rects.reference[i],p=bd(n),g=p?i==="y"?p.clientHeight||0:p.clientWidth||0:0,b=d/2-h/2,m=s[c],v=g-u[l]-s[f],_=g/2-u[l]/2+b,x=sp(m,_,v),O=i;e.modifiersData[t]={[O]:x,centerOffset:x-_}}function CF({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:a=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||_T(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:ST(typeof a!="number"?a:OT(a,_d))}))}const EF={name:"arrow",enabled:!0,phase:"main",fn:OF,effect:CF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aO(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 iO(e){return[Ur,ha,da,Hr].some(t=>e[t]>=0)}function kF({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=kf(e,{elementContext:"reference"}),o=kf(e,{altBoundary:!0}),l=aO(i,n),s=aO(o,r,a),u=iO(l),c=iO(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 PF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kF},TF=[nF,aF,sF,fF,pF,_F,SF,EF,PF],AF=eF({defaultModifiers:TF}),Eb=Oo?y.useLayoutEffect:y.useEffect,MF=(e,t)=>JSON.stringify(e)===JSON.stringify(t),oO=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),IF=[],RF=(e,t,n={})=>{const r=y.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||IF},[i,o]=y.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=y.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const f=Object.keys(c.elements);o({styles:oO(f.map(d=>[d,c.styles[d]||{}])),attributes:oO(f.map(d=>[d,c.attributes[d]]))})},requires:["computeStyles"]}),[]),s=y.useMemo(()=>{const c={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return MF(r.current,c)?r.current||c:(r.current=c,c)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),u=y.useRef();return Eb(()=>{u&&u.current&&u.current.setOptions(s)},[s]),Eb(()=>{if(e==null||t==null)return;const f=(n.createPopper||AF)(e,t,s);return u.current=f,()=>{f.destroy(),u.current=null}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:i.styles,attributes:i.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},$F={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"},LF=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=>$F[t]),jF=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,jl=({trigger:e,popper:t,direction:n="down",position:r="start",placement:a,width:i,minWidth:o="trigger",maxWidth:l,appendTo:s="inline",zIndex:u=9999,isVisible:c=!0,positionModifiers:f,distance:d=0,onMouseEnter:h,onMouseLeave:p,onFocus:g,onBlur:b,onDocumentClick:m,onTriggerClick:v,onTriggerEnter:_,onPopperClick:x,onPopperMouseEnter:O,onPopperMouseLeave:S,onDocumentKeyDown:w,enableFlip:C=!0,flipBehavior:A="flip",triggerRef:I,popperRef:P,animationDuration:T=0,entryDelay:E=0,exitDelay:L=0,onHidden:N=()=>{},onHide:U=()=>{},onMount:W=()=>{},onShow:$=()=>{},onShown:F=()=>{},preventOverflow:k=!1})=>{var X;const[te,R]=y.useState(null),[J,ae]=y.useState(null),[ue,ve]=y.useState(null),[ke,q]=y.useState(null),[Z,ie]=y.useState(!1),[K,Te]=y.useState(0),[ye,Ae]=y.useState(c),Ce=y.useRef(null),Re=y.useRef(null),Ge=y.useRef(null),_e=y.useRef(),re=J||te,oe=c||ye,xe=(X=(I==null?void 0:I.current)||te)===null||X===void 0?void 0:X.parentElement,De=Ds(xe),Je=y.useMemo(()=>{const Fe={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Fe),rtl:Object.assign({start:"right",end:"left"},Fe)}[De][r]},[r,De]),z=y.useCallback(Fe=>m(Fe,re,ue),[oe,te,J,ue,m]);y.useEffect(()=>{ie(!0),W()},[]),y.useEffect(()=>()=>{yh([Ce,Ge,Re])},[]),y.useEffect(()=>{I&&(I.current?ae(I.current):typeof I=="function"&&ae(I()))},[I,e]),y.useEffect(()=>{P&&(P.current?ve(P.current):typeof P=="function"&&ve(P()))},[oe,P]),y.useEffect(()=>{const Fe=new MutationObserver(()=>{Bt&&Bt()});return ue&&Fe.observe(ue,{attributes:!0,childList:!0,subtree:!0}),()=>{Fe.disconnect()}},[ue]);const Y=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.addEventListener(Za,Fe,{capture:H})},he=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.removeEventListener(Za,Fe,{capture:H})};y.useEffect(()=>(Y(h,re,"mouseenter"),Y(p,re,"mouseleave"),Y(g,re,"focus"),Y(b,re,"blur"),Y(v,re,"click"),Y(_,re,"keydown"),Y(x,ue,"click"),Y(O,ue,"mouseenter"),Y(S,ue,"mouseleave"),m&&Y(z,document,"click",!0),Y(w,document,"keydown",!0),()=>{he(h,re,"mouseenter"),he(p,re,"mouseleave"),he(g,re,"focus"),he(b,re,"blur"),he(v,re,"click"),he(_,re,"keydown"),he(x,ue,"click"),he(O,ue,"mouseenter"),he(S,ue,"mouseleave"),m&&he(z,document,"click",!0),he(w,document,"keydown",!0)}),[te,ue,h,p,g,b,v,_,x,O,S,m,w,J]);const se=()=>{if(a)return a;let Fe=n==="up"?"top":"bottom";return Je!=="center"&&(Fe=`${Fe}-${Je==="right"?"end":"start"}`),Fe},pe=y.useMemo(se,[n,Je,a]),He=y.useMemo(()=>LF(se()),[n,Je,a]),ge=y.useMemo(()=>({name:"widthMods",enabled:i!==void 0||o!==void 0||l!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Fe})=>{const xt=Fe.rects.reference.width;i&&(Fe.styles.popper.width=i==="trigger"?`${xt}px`:i),o&&(Fe.styles.popper.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.styles.popper.maxWidth=l==="trigger"?`${xt}px`:l)},effect:({state:Fe})=>{const xt=Fe.elements.reference.offsetWidth;return i&&(Fe.elements.popper.style.width=i==="trigger"?`${xt}px`:i),o&&(Fe.elements.popper.style.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.elements.popper.style.maxWidth=l==="trigger"?`${xt}px`:l),()=>{}}}),[i,o,l]),{styles:Pe,attributes:Ke,update:Bt,forceUpdate:$e}=RF(re,ue,{placement:pe,modifiers:[{name:"offset",options:{offset:[0,d]}},{name:"preventOverflow",enabled:k},{name:"hide",enabled:!0},{name:"flip",enabled:pe.startsWith("auto")||C,options:{fallbackPlacements:A==="flip"?[He]:A}},ge]});y.useEffect(()=>{var Fe,xt,Za,H,G,ee,de;const be=((H=(Za=(xt=(Fe=t==null?void 0:t.props)===null||Fe===void 0?void 0:Fe.children)===null||xt===void 0?void 0:xt[1])===null||Za===void 0?void 0:Za.props)===null||H===void 0?void 0:H.children)||((de=(ee=(G=t==null?void 0:t.props)===null||G===void 0?void 0:G.children)===null||ee===void 0?void 0:ee.props)===null||de===void 0?void 0:de.children);q(be),be&&ke&&be!==ke&&$e&&$e()},[t]),y.useEffect(()=>{_e.current{Ce.current=setTimeout(()=>{Ae(!1)},T)},L)),_e.current=L},[L]);const Ze=()=>{$(),yh([Ce,Ge]),Re.current=setTimeout(()=>{Ae(!0),Te(1),F()},E)},dt=()=>{U(),yh([Re]),Ge.current=setTimeout(()=>{Te(0),Ce.current=setTimeout(()=>{Ae(!1),N()},T)},L)};y.useEffect(()=>{c?Ze():dt()},[c]);const Gt=()=>{if(Ke&&Ke.popper&&Ke.popper["data-popper-placement"]){const Fe=Ke.popper["data-popper-placement"];return f[Fe]}return f.top},ya=Object.assign({className:D(t.props&&t.props.className,f&&Gt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Pe.popper),{zIndex:u,opacity:K,transition:jF(T)})},Ke.popper),Bi=()=>{const Fe=y.cloneElement(t,ya);return P?Fe:y.createElement("div",{style:{display:"contents"},ref:xt=>ve(xt==null?void 0:xt.firstElementChild)},Fe)},Kd=()=>{if(s==="inline")return Bi();{const Fe=typeof s=="function"?s():s;return Mg.createPortal(Bi(),Fe)}};return y.createElement(y.Fragment,null,!I&&e&&y.isValidElement(e)&&y.createElement("div",{style:{display:"contents"},ref:Fe=>R(Fe==null?void 0:Fe.firstElementChild)},e),I&&e&&y.isValidElement(e)&&e,Z&&oe&&Kd())};jl.displayName="Popper";const CT=(e,t,n=u=>document.activeElement.contains(u),r=u=>u,a=["A","BUTTON","INPUT"],i=!1,o=!1,l=!0,s=!0)=>{const u=document.activeElement,c=e.key;let f=null;if(!i&&["ArrowUp","ArrowDown"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){let g=0;for(;!f&&g=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,p)=>{if(n(h)){const g=t[p].querySelectorAll(a.join(","));if(!g.length||s){let b=u;for(;b;)if(b=c==="ArrowLeft"?b.previousElementSibling:b.nextElementSibling,b&&a.includes(b.tagName)){f=b;break}}else g.forEach((b,m)=>{e.target===b&&(d=m+(c==="ArrowLeft"?-1:1),d>=g.length&&(d=0),d<0&&(d=g.length-1),f=g[d])})}})}f&&(l&&(u.tabIndex=-1,f.tabIndex=0),f.focus())},DF=e=>{e&&e.length>0&&(e.forEach(t=>{t.tabIndex=-1}),e[0].tabIndex=0)};class Y2 extends y.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:a,noVerticalArrowHandling:i,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:u,validSiblingTags:c,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const p=d();if(!p){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const g=t.key;l||g==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||g===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),CT(t,p,r,a,c,i,o,u,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Oo&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Oo&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Y2.displayName="KeyboardHandler";Y2.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 Q2=(e,t,n)=>{let r;if(Oo){const{ResizeObserver:a}=window;if(e&&a){const i=new a(o=>{n?window.requestAnimationFrame(()=>{Array.isArray(o)&&o.length>0}):Array.isArray(o)&&o.length>0&&t()});i.observe(e),r=()=>i.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},Sa=e=>!!(e&&!isNaN(e)),nn={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},_h={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},NF={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var kb;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(kb||(kb={}));const Rg=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:a,isInline:i=!1,"aria-label":o,"aria-labelledBy":l}=e,s=Q(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return y.createElement("svg",Object.assign({className:D(_h.spinner,i?_h.modifiers.inline:_h.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},a&&{style:{[NF.name]:a}},o&&{"aria-label":o},l&&{"aria-labelledBy":l},!o&&!l&&{"aria-label":"Contents"},s),y.createElement("circle",{className:_h.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Rg.displayName="Spinner";const Ev={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},J2=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:a}=e,i=Q(e,["isRead","className","children","screenReaderText"]);return y.createElement("span",Object.assign({},i,{className:D(Ev.badge,t?Ev.modifiers.read:Ev.modifiers.unread,n)}),r,a&&y.createElement("span",{className:"pf-v5-screen-reader"},a))};J2.displayName="Badge";var pn;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(pn||(pn={}));var Pb;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Pb||(Pb={}));var Xc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Xc||(Xc={}));const FF=e=>{var{children:t=null,className:n="",component:r="button",isActive:a=!1,isBlock:i=!1,isDisabled:o=!1,isAriaDisabled:l=!1,isLoading:s=null,isDanger:u=!1,spinnerAriaValueText:c,spinnerAriaLabelledBy:f,spinnerAriaLabel:d,size:h=Xc.default,inoperableEvents:p=["onClick","onKeyPress"],isInline:g=!1,type:b=Pb.button,variant:m=pn.primary,iconPosition:v="start","aria-label":_=null,icon:x=null,ouiaId:O,ouiaSafe:S=!0,tabIndex:w=null,innerRef:C,countOptions:A}=e,I=Q(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const P=Ii(gt.displayName,O,S,m),T=r,E=T==="button",L=g&&T==="span",N=p.reduce((W,$)=>Object.assign(Object.assign({},W),{[$]:F=>{F.preventDefault()}}),{}),U=()=>{if(o)return E?null:-1;if(l)return null;if(L)return 0};return y.createElement(T,Object.assign({},I,l?N:null,{"aria-disabled":o||l,"aria-label":_,className:D(nn.button,nn.modifiers[m],i&&nn.modifiers.block,o&&nn.modifiers.disabled,l&&nn.modifiers.ariaDisabled,a&&nn.modifiers.active,g&&m===pn.link&&nn.modifiers.inline,u&&(m===pn.secondary||m===pn.link)&&nn.modifiers.danger,s!==null&&m!==pn.plain&&nn.modifiers.progress,s&&nn.modifiers.inProgress,h===Xc.sm&&nn.modifiers.small,h===Xc.lg&&nn.modifiers.displayLg,n),disabled:E?o:null,tabIndex:w!==null?w:U(),type:E||L?b:null,role:L?"button":null,ref:C},P),s&&y.createElement("span",{className:D(nn.buttonProgress)},y.createElement(Rg,{size:kb.md,isInline:g,"aria-valuetext":c,"aria-label":d,"aria-labelledby":f})),m===pn.plain&&t===null&&x?x:null,m!==pn.plain&&x&&(v==="start"||v==="left")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.start)},x),t,m!==pn.plain&&x&&(v==="end"||v==="right")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.end)},x),A&&y.createElement("span",{className:D(nn.buttonCount,A.className)},y.createElement(J2,{isRead:A.isRead},A.count)))},gt=y.forwardRef((e,t)=>y.createElement(FF,Object.assign({innerRef:t},e)));gt.displayName="Button";let zF=0;function ht({name:e,xOffset:t=0,yOffset:n=0,width:r,height:a,svgPath:i}){var o;return o=class extends y.Component{constructor(){super(...arguments),this.id=`icon-title-${zF++}`}render(){const s=this.props,{title:u,className:c}=s,f=Q(s,["title","className"]),d=c?`pf-v5-svg ${c}`:"pf-v5-svg",h=!!u,p=[t,n,r,a].join(" ");return y.createElement("svg",Object.assign({className:d,viewBox:p,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},f),h&&y.createElement("title",{id:this.id},u),y.createElement("path",{d:i}))}},o.displayName=e,o}const BF={name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0},UF=ht(BF),Tb=UF,HF={bullseye:"pf-v5-l-bullseye"},wn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},ET=e=>{var{className:t,children:n,isLeftAligned:r}=e,a=Q(e,["className","children","isLeftAligned"]);return y.createElement("div",Object.assign({className:D(wn.tooltipContent,r&&wn.modifiers.textAlignLeft,t)},a),n)};ET.displayName="TooltipContent";const kT=e=>{var{className:t}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(wn.tooltipArrow,t)},n))};kT.displayName="TooltipArrow";const lO={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var sO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(sO||(sO={}));let WF=1;const $i=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:a=!1,isContentLeftAligned:i=!1,enableFlip:o=!0,className:l="",entryDelay:s=300,exitDelay:u=300,appendTo:c=()=>document.body,zIndex:f=9999,minWidth:d,maxWidth:h=lO.value,distance:p=15,aria:g="describedby",flipBehavior:b=["top","right","bottom","left","top","right","bottom"],id:m=`pf-tooltip-${WF++}`,children:v,animationDuration:_=300,triggerRef:x,"aria-live":O=x?"polite":"off",onTooltipHidden:S=()=>{}}=e,w=Q(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const C=r.includes("mouseenter"),A=r.includes("focus"),I=r.includes("click"),P=r==="manual",[T,E]=y.useState(!1),L=y.createRef(),N=J=>{P||J.key===Hp.Escape&&T&&$()},U=J=>{J.key===Hp.Enter&&(T?$():W())};y.useEffect(()=>{a?W():$()},[a]);const W=()=>{E(!0)},$=()=>{E(!1)},F={top:wn.modifiers.top,bottom:wn.modifiers.bottom,left:wn.modifiers.left,right:wn.modifiers.right,"top-start":wn.modifiers.topLeft,"top-end":wn.modifiers.topRight,"bottom-start":wn.modifiers.bottomLeft,"bottom-end":wn.modifiers.bottomRight,"left-start":wn.modifiers.leftTop,"left-end":wn.modifiers.leftBottom,"right-start":wn.modifiers.rightTop,"right-end":wn.modifiers.rightBottom},k=h!==lO.value,X=y.createElement("div",Object.assign({"aria-live":O,className:D(wn.tooltip,l),role:"tooltip",id:m,style:{maxWidth:k?h:null},ref:L},w),y.createElement(kT,null),y.createElement(ET,{isLeftAligned:i},t)),te=(J,ae)=>{T?$():J.target===ae&&W()},R=()=>g==="describedby"&&v&&v.props&&!v.props["aria-describedby"]?y.cloneElement(v,{"aria-describedby":m}):g==="labelledby"&&v.props&&!v.props["aria-labelledby"]?y.cloneElement(v,{"aria-labelledby":m}):v;return y.createElement(jl,{trigger:g!=="none"&&T?R():v,triggerRef:x,popper:X,popperRef:L,minWidth:d!==void 0?d:"revert",appendTo:c,isVisible:T,positionModifiers:F,distance:p,placement:n,onMouseEnter:C&&W,onMouseLeave:C&&$,onPopperMouseEnter:C&&W,onPopperMouseLeave:C&&$,onFocus:A&&W,onBlur:A&&$,onDocumentClick:I&&te,onDocumentKeyDown:P?null:N,onTriggerEnter:P?null:U,enableFlip:o,zIndex:f,flipBehavior:b,animationDuration:_,entryDelay:s,exitDelay:u,onHidden:S})};$i.displayName="Tooltip";const VF={name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0},Z2=ht(VF),qF={name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},PT=ht(qF),GF={name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},TT=ht(GF),KF={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},XF=ht(KF),Iu=XF,YF={name:"AngleUpIcon",height:512,width:320,svgPath:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z",yOffset:0,xOffset:0},QF=ht(YF),JF=QF,Ia={breadcrumb:"pf-v5-c-breadcrumb",breadcrumbDropdown:"pf-v5-c-breadcrumb__dropdown",breadcrumbHeading:"pf-v5-c-breadcrumb__heading",breadcrumbItem:"pf-v5-c-breadcrumb__item",breadcrumbItemDivider:"pf-v5-c-breadcrumb__item-divider",breadcrumbLink:"pf-v5-c-breadcrumb__link",breadcrumbList:"pf-v5-c-breadcrumb__list",dirRtl:"pf-v5-m-dir-rtl",dropdownToggle:"pf-v5-c-dropdown__toggle",modifiers:{current:"pf-m-current"}},Dl=e=>{var{children:t=null,className:n="","aria-label":r="Breadcrumb",ouiaId:a,ouiaSafe:i=!0}=e,o=Q(e,["children","className","aria-label","ouiaId","ouiaSafe"]);const l=Ii(Dl.displayName,a,i);return y.createElement("nav",Object.assign({},o,{"aria-label":r,className:D(Ia.breadcrumb,n)},l),y.createElement("ol",{className:Ia.breadcrumbList,role:"list"},y.Children.map(t,(s,u)=>{const c=u>0;return y.isValidElement(s)?y.cloneElement(s,{showDivider:c}):s})))};Dl.displayName="Breadcrumb";const Dr=e=>{var{children:t=null,className:n="",to:r=void 0,isActive:a=!1,isDropdown:i=!1,showDivider:o,target:l=void 0,component:s="a",render:u=void 0}=e,c=Q(e,["children","className","to","isActive","isDropdown","showDivider","target","component","render"]);const f=s,d=a?"page":void 0,h=D(Ia.breadcrumbLink,a&&Ia.modifiers.current);return y.createElement("li",Object.assign({},c,{className:D(Ia.breadcrumbItem,n)}),o&&y.createElement("span",{className:Ia.breadcrumbItemDivider},y.createElement(Iu,null)),s==="button"&&y.createElement("button",{className:h,"aria-current":d,type:"button"},t),i&&y.createElement("span",{className:D(Ia.breadcrumbDropdown)},t),u&&u({className:h,ariaCurrent:d}),r&&!u&&y.createElement(f,{href:r,target:l,className:h,"aria-current":d},t),!r&&s!=="button"&&!i&&t)};Dr.displayName="BreadcrumbItem";const Oa={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},ZF={success:Z2,error:PT,warning:TT},uO=e=>{var{status:t,customIcon:n,className:r}=e,a=Q(e,["status","customIcon","className"]);const i=t&&ZF[t];return y.createElement("span",Object.assign({className:D(Oa.formControlIcon,t&&Oa.modifiers.status,r)},a),n||y.createElement(i,null))};var Ab;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(Ab||(Ab={}));var cO;(function(e){e.default="default",e.plain="plain"})(cO||(cO={}));class xd extends y.Component{constructor(t){super(t),this.inputRef=y.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&S9(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:a,onFocus:i}=this.props;(r||a)&&this.restoreText(),i&&i(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:a,onBlur:i}=this.props;(r||a)&&this.handleResize(),i&&i(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:Lo(xd.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=Q2(t.current,this.handleResize,!0),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:a,value:i,placeholder:o,validated:l,onChange:s,onFocus:u,onBlur:c,isLeftTruncated:f,isStartTruncated:d,isExpanded:h,expandedProps:p,readOnly:g,readOnlyVariant:b,isRequired:m,isDisabled:v,customIcon:_,ouiaId:x,ouiaSafe:O}=t,S=Q(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),w=["success","error","warning"].includes(l),C=p?{"aria-expanded":p==null?void 0:p.isExpanded,"aria-controls":p==null?void 0:p.ariaControls,role:"combobox"}:{};return y.createElement("span",{className:D(Oa.formControl,b&&Oa.modifiers.readonly,b==="plain"&&Oa.modifiers.plain,v&&Oa.modifiers.disabled,(h||(p==null?void 0:p.isExpanded))&&Oa.modifiers.expanded,_&&Oa.modifiers.icon,w&&Oa.modifiers[l],r)},y.createElement("input",Object.assign({},S,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:a,value:this.sanitizeInputValue(i),"aria-invalid":S["aria-invalid"]?S["aria-invalid"]:l===Sb.error},C,{required:m,disabled:v,readOnly:!!b||g,ref:n||this.inputRef,placeholder:o},Ll(Ns.displayName,x!==void 0?x:this.state.ouiaStateId,O))),(_||w)&&y.createElement("span",{className:D(Oa.formControlUtilities)},_&&y.createElement(uO,{customIcon:_}),w&&y.createElement(uO,{status:l})))}}xd.displayName="TextInputBase";xd.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Ab.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const Ns=y.forwardRef((e,t)=>y.createElement(xd,Object.assign({},e,{innerRef:t})));Ns.displayName="TextInput";const Le={breadcrumb:"pf-v5-c-breadcrumb",check:"pf-v5-c-check",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuBreadcrumb:"pf-v5-c-menu__breadcrumb",menuContent:"pf-v5-c-menu__content",menuFooter:"pf-v5-c-menu__footer",menuGroup:"pf-v5-c-menu__group",menuGroupTitle:"pf-v5-c-menu__group-title",menuHeader:"pf-v5-c-menu__header",menuItem:"pf-v5-c-menu__item",menuItemAction:"pf-v5-c-menu__item-action",menuItemActionIcon:"pf-v5-c-menu__item-action-icon",menuItemCheck:"pf-v5-c-menu__item-check",menuItemDescription:"pf-v5-c-menu__item-description",menuItemExternalIcon:"pf-v5-c-menu__item-external-icon",menuItemIcon:"pf-v5-c-menu__item-icon",menuItemMain:"pf-v5-c-menu__item-main",menuItemSelectIcon:"pf-v5-c-menu__item-select-icon",menuItemText:"pf-v5-c-menu__item-text",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuList:"pf-v5-c-menu__list",menuListItem:"pf-v5-c-menu__list-item",menuSearch:"pf-v5-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",ariaDisabled:"pf-m-aria-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-v5-theme-dark"},fO={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},Cl=y.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"}),AT=y.createContext({itemId:null,isDisabled:!1});class $g extends y.Component{constructor(t){super(t),this.menuRef=y.createRef(),this.activeMenu=null,this.state={ouiaStateId:Lo(Pf.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(`.${Le.menu}`)&&!Array.from(r.getElementsByClassName(Le.menu)).includes(n.target.closest(`.${Le.menu}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const a=r.querySelector("#"+this.props.activeMenu)||r||null,i=a.getElementsByTagName("UL");if(i.length===0)return;const o=Array.from(i[0].children);if(!this.state.currentDrilldownMenuId||a.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:a.id});else return;const l=o.filter(s=>!(s.classList.contains("pf-m-disabled")||s.classList.contains(Le.divider)))[0].firstChild;l.focus(),l.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,a=document.activeElement;if(n.target.closest(`.${Le.menu}`)!==this.activeMenu&&!n.target.classList.contains(Ia.breadcrumbLink)&&(this.activeMenu=n.target.closest(`.${Le.menu}`),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const i=this.activeMenu,o=n.key,l=a.classList.contains(Ia.breadcrumbLink)||a.classList.contains(fO.dropdownToggle);if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(a.closest("li").classList.contains("pf-m-current-path")&&i.parentElement.tagName==="LI")a.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(a.nextElementSibling&&a.nextElementSibling.classList.contains(Le.menu)){const u=Array.from(a.nextElementSibling.getElementsByTagName("UL")[0].children).filter(c=>!(c.classList.contains("pf-m-disabled")||c.classList.contains(Le.divider)));a.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(Le.divider))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains(Le.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}),Oo&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Oo&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{id:n,children:r,className:a,onSelect:i,selected:o=null,onActionClick:l,ouiaId:s,ouiaSafe:u,containsFlyout:c,isNavFlyout:f,containsDrilldown:d,isMenuDrilledIn:h,isPlain:p,isScrollable:g,drilldownItemPath:b,drilledInMenus:m,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,parentMenu:O=null,activeItemId:S=null,innerRef:w,isRootMenu:C,activeMenu:A,role:I}=t,P=Q(t,["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"]),T=h||m&&m.includes(n)||!1;return y.createElement(Cl.Provider,{value:{menuId:n,parentMenu:O||n,onSelect:i,onActionClick:l,activeItemId:S,selected:o,drilledInMenus:m,drilldownItemPath:b,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,flyoutRef:this.state.flyoutRef,setFlyoutRef:E=>this.setState({flyoutRef:E}),disableHover:this.state.disableHover,role:I}},C&&y.createElement(Y2,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:E=>document.activeElement.closest("li")===E||document.activeElement.parentElement===E||document.activeElement.closest(`.${Le.menuSearch}`)===E||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===E,getFocusableElement:E=>{var L,N;return(E==null?void 0:E.tagName)==="DIV"&&E.querySelector("input")||((L=E.firstChild)===null||L===void 0?void 0:L.tagName)==="LABEL"&&E.querySelector("input")||((N=E.firstChild)===null||N===void 0?void 0:N.tagName)==="DIV"&&E.querySelector("a, button, input")||E.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(Ia.breadcrumbLink)||document.activeElement.classList.contains(fO.dropdownToggle)||document.activeElement.tagName==="INPUT"),noEnterHandling:!0,noSpaceHandling:!0}),y.createElement("div",Object.assign({id:n,className:D(Le.menu,p&&Le.modifiers.plain,g&&Le.modifiers.scrollable,c&&Le.modifiers.flyout,f&&Le.modifiers.nav,d&&Le.modifiers.drilldown,T&&Le.modifiers.drilledIn,a),ref:this.menuRef},Ll(Pf.displayName,s!==void 0?s:this.state.ouiaStateId,u),P),r))}}$g.displayName="Menu";$g.contextType=Cl;$g.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Pf=y.forwardRef((e,t)=>y.createElement($g,Object.assign({},e,{innerRef:t})));Pf.displayName="Menu";const ez={name:"--pf-v5-c-menu__content--Height",value:"auto",var:"var(--pf-v5-c-menu__content--Height)"},tz={name:"--pf-v5-c-menu__content--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-menu__content--MaxHeight)"},e_=y.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:a,maxMenuHeight:i}=e,o=Q(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=y.createRef(),s=(u,c,f)=>{if(u){let d=u.clientHeight,h=null,p=u.closest(`.${Le.menuList}`);for(;p!==null&&p.nodeType===1;)p.classList.contains(Le.menuList)&&(h=p),p=p.parentElement;if(h){const g=getComputedStyle(h),b=parseFloat(g.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(g.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+b}f&&f(c,d),n&&n(d.toString())}return t||l};return y.createElement(Cl.Consumer,null,({menuId:u,onGetMenuHeight:c})=>y.createElement("div",Object.assign({},o,{className:D(Le.menuContent,e.className),ref:f=>s(f,u,c),style:Object.assign(Object.assign({},a&&{[ez.name]:a}),i&&{[tz.name]:i})}),r))});e_.displayName="MenuContent";const nz={name:"--pf-v5-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--top-offset)"},rz={name:"--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--m-left--right-offset)"},az={name:"--pf-v5-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--left-offset)"},iz={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},oz=ht(iz),lz=oz,sz={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},t_=ht(sz),uz={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},cz=ht(uz),fz=cz,ti={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},MT=()=>{};class sr extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},this.state={ouiaStateId:Lo(sr.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,inputClassName:a,onChange:i,isLabelWrapped:o,isLabelBeforeButton:l,isValid:s,isDisabled:u,isRequired:c,isChecked:f,label:d,checked:h,defaultChecked:p,description:g,body:b,ouiaId:m,ouiaSafe:v,component:_}=t,x=Q(t,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);x.id||console.error("Checkbox:","id is required to make input accessible");const O={};([!0,!1].includes(h)||f===!0)&&(O.checked=h||f),i!==MT&&(O.checked=f),[!1,!0].includes(p)&&(O.defaultChecked=p);const S=y.createElement("input",Object.assign({},x,{className:D(ti.checkInput,a),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":n,disabled:u,required:c,ref:P=>P&&(P.indeterminate=f===null)},O,Ll(sr.displayName,m!==void 0?m:this.state.ouiaStateId,v))),w=o&&!_||_==="label",C=w?"span":"label",A=d?y.createElement(C,{className:D(ti.checkLabel,u&&ti.modifiers.disabled),htmlFor:w?void 0:x.id},d,c&&y.createElement("span",{className:D(ti.checkLabelRequired),"aria-hidden":"true"},gT)):null,I=_??(w?"label":"div");return O.checked=O.checked===null?!1:O.checked,y.createElement(I,{className:D(ti.check,!d&&ti.modifiers.standalone,r),htmlFor:w?x.id:void 0},l?y.createElement(y.Fragment,null,A,S):y.createElement(y.Fragment,null,S,A),g&&y.createElement("span",{className:D(ti.checkDescription)},g),b&&y.createElement("span",{className:D(ti.checkBody)},b))}}sr.displayName="Checkbox";sr.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:MT,ouiaSafe:!0};const dz={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},hz=ht(dz),n_=hz,pz=e=>{var{className:t="",icon:n,onClick:r,"aria-label":a,isFavorited:i=null,isDisabled:o,actionId:l,innerRef:s}=e,u=Q(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return y.createElement(Cl.Consumer,null,({onActionClick:c})=>y.createElement(AT.Consumer,null,({itemId:f,isDisabled:d})=>{const h=p=>{r&&r(p),c&&c(p,f,l)};return y.createElement("button",Object.assign({className:D(Le.menuItemAction,i!==null&&Le.modifiers.favorite,i&&Le.modifiers.favorited,t),"aria-label":a,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},u),y.createElement("span",{className:D(Le.menuItemActionIcon)},n==="favorites"||i!==null?y.createElement(n_,{"aria-hidden":!0}):n))}))},IT=y.forwardRef((e,t)=>y.createElement(pz,Object.assign({},e,{innerRef:t})));IT.displayName="MenuItemAction";const dO=y.createContext({direction:"right"}),mz=e=>{var{children:t,className:n,itemId:r=null,to:a,hasCheckbox:i=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:u=!1,flyoutMenu:c,direction:f,description:d=null,onClick:h=()=>{},component:p="button",isDisabled:g=!1,isAriaDisabled:b=!1,isExternalLink:m=!1,isSelected:v=null,isFocused:_,isDanger:x=!1,icon:O,actions:S,onShowFlyout:w,drilldownMenu:C,isOnPath:A,innerRef:I,id:P,"aria-label":T,tooltipProps:E,rel:L,target:N,download:U}=e,W=Q(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:$,parentMenu:F,onSelect:k,onActionClick:X,activeItemId:te,selected:R,drilldownItemPath:J,onDrillIn:ae,onDrillOut:ue,flyoutRef:ve,setFlyoutRef:ke,disableHover:q,role:Z}=y.useContext(Cl);let ie=a?"a":p;i&&!a&&(ie="label");const[K,Te]=y.useState(null),ye=y.useContext(dO),[Ae,Ce]=y.useState(ye.direction),Re=y.useRef(),Ge=Re===ve,_e=c!==void 0,re=ge=>{!Ge&&ge?ke(Re):Ge&&!ge&&ke(null),w&&ge&&w()};Eb(()=>{if(_e&&Re.current&&Oo){const ge=Re.current.lastElementChild;if(ge&&ge.classList.contains(Le.menu)){const Pe=Re.current.getClientRects()[0],Ke=ge.getClientRects()[0];if(Pe&&Ke){const Bt=Pe.x-Ke.width,$e=window.innerWidth-Pe.x-Pe.width-Ke.width;let Ze=Ae;$e<0&&Ze!=="left"?(Ce("left"),Ze="left"):Bt<0&&Ze!=="right"&&(Ce("right"),Ze="right");let dt=0;Bt<0&&$e<0&&(dt=Ze==="right"?-$e:-Bt),Ze==="left"?(ge.classList.add(Le.modifiers.left),ge.style.setProperty(rz.name,`-${dt}px`)):ge.style.setProperty(az.name,`-${dt}px`);const Gt=window.innerHeight-Pe.y-Ke.height;window.innerHeight-Ke.height<0&&Gt<0||Gt<0&&ge.style.setProperty(nz.name,`${Gt}px`)}}}},[Ge,c]),y.useEffect(()=>{Ce(ye.direction)},[ye]),y.useEffect(()=>{if(K)if(Ge){const ge=K.nextElementSibling;Array.from(ge.getElementsByTagName("UL")[0].children).filter(Ke=>!(Ke.classList.contains("pf-m-disabled")||Ke.classList.contains(Le.divider)))[0].firstChild.focus()}else K.focus()},[Ge,K]);const oe=ge=>{const Pe=ge.key,Ke=ge.target,Bt=ge.type;(Pe===" "||Pe==="Enter"||Pe==="ArrowRight"||Bt==="click")&&(ge.stopPropagation(),ge.preventDefault(),Ge||(re(!0),Te(Ke))),(Pe==="Escape"||Pe==="ArrowLeft")&&Ge&&(ge.stopPropagation(),re(!1))},xe=(ge,Pe)=>{b||(Pe&&Pe(ge,r),h&&h(ge))},De=A&&A||J&&J.includes(r)||!1;let Je;f&&(f==="down"?Je=ge=>ae&&ae(ge,$,typeof C=="function"?C().props.id:C.props.id,r):Je=ge=>ue&&ue(ge,F,r));let z={};ie==="a"?z={href:a,"aria-disabled":g||b?!0:null,disabled:null,target:m?"_blank":N,rel:L,download:U}:ie==="button"&&(z={type:"button","aria-disabled":b?!0:null}),A?z["aria-expanded"]=!0:_e&&(z["aria-haspopup"]="menu",z["aria-expanded"]=Ge);const Y=()=>o!==null?o?"page":null:r!==null&&te!==null?r===te:null,he=()=>v!==null?v:R!==null&&r!==null?Array.isArray(R)&&R.includes(r)||r===R:!1,se=()=>{q||(_e?re(!0):ke(null))};y.useEffect(()=>{if(_&&Re.current){const ge=Re.current,Pe=ge.parentElement;if(Pe){const Ke=ge.offsetTop-Pe.offsetTopy.createElement(ie,Object.assign({id:P,tabIndex:-1,className:D(Le.menuItem,he()&&!i&&Le.modifiers.selected,n),"aria-current":Y()},!i&&{disabled:g,"aria-label":T},!i&&!c&&{role:pe?"option":"menuitem"},!i&&!c&&pe&&{"aria-selected":he()},{ref:I},!i&&{onClick:Pe=>{b?Pe.preventDefault():(xe(Pe,k),Je&&Je(Pe),c&&oe(Pe))}},i&&{htmlFor:ge},z),y.createElement("span",{className:D(Le.menuItemMain)},f==="up"&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(t_,{"aria-hidden":!0})),O&&y.createElement("span",{className:D(Le.menuItemIcon)},O),i&&y.createElement("span",{className:D(Le.menuItemCheck)},y.createElement(sr,{id:ge,component:"span",isChecked:v||!1,onChange:Pe=>xe(Pe,k),isDisabled:g,"aria-disabled":b})),y.createElement("span",{className:D(Le.menuItemText)},t),m&&y.createElement("span",{className:D(Le.menuItemExternalIcon)},y.createElement(lz,{"aria-hidden":!0})),(c||f==="down")&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(Iu,{"aria-hidden":!0})),he()&&y.createElement("span",{className:D(Le.menuItemSelectIcon)},y.createElement(fz,{"aria-hidden":!0}))),d&&f!=="up"&&y.createElement("span",{className:D(Le.menuItemDescription)},y.createElement("span",null,d)))),Ge&&y.createElement(Cl.Provider,{value:{disableHover:q}},y.createElement(dO.Provider,{value:{direction:Ae}},c)),typeof C=="function"?C():C,y.createElement(AT.Provider,{value:{itemId:r,isDisabled:g}},S,l!==null&&y.createElement(IT,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:ge=>X(ge,r),tabIndex:-1,actionId:"fav"})));return y.createElement("li",Object.assign({className:D(Le.menuListItem,g&&Le.modifiers.disabled,b&&Le.modifiers.ariaDisabled,De&&Le.modifiers.currentPath,s&&Le.modifiers.load,u&&Le.modifiers.loading,_&&Le.modifiers.focus,x&&Le.modifiers.danger,n),onMouseOver:()=>{b||se()}},c&&!b&&{onKeyDown:oe},{ref:Re,role:i?"menuitem":"none"},i&&{"aria-label":T},W),E?y.createElement($i,Object.assign({},E),He):He)},r_=y.forwardRef((e,t)=>y.createElement(mz,Object.assign({},e,{innerRef:t})));r_.displayName="MenuItem";const a_=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1,"aria-label":a}=e,i=Q(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:o}=y.useContext(Cl);return y.createElement("ul",Object.assign({role:o},o==="listbox"&&{"aria-multiselectable":r},{className:D(Le.menuList,n),"aria-label":a},i),t)};a_.displayName="MenuList";const gz=e=>{var{children:t,className:n,onSelect:r,isOpen:a,selected:i,toggle:o,shouldFocusToggleOnSelect:l=!1,shouldFocusFirstItemOnOpen:s=!0,onOpenChange:u,onOpenChangeKeys:c=["Escape","Tab"],isPlain:f,innerRef:d,zIndex:h=9999,role:p="listbox",popperProps:g,menuHeight:b,maxMenuHeight:m,isScrollable:v}=e,_=Q(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable"]);const x=M.useRef(),O=M.useRef(),S=d||x,w=typeof o=="function"||typeof o!="function"&&!o.toggleRef?O:o==null?void 0:o.toggleRef;M.useEffect(()=>{const A=P=>{var T,E,L;a&&u&&(!((T=S.current)===null||T===void 0)&&T.contains(P.target)||!((E=w.current)===null||E===void 0)&&E.contains(P.target))&&c.includes(P.key)&&(P.preventDefault(),u(!1),(L=w.current)===null||L===void 0||L.focus())},I=P=>{var T,E,L;a&&s&&(!((T=w.current)===null||T===void 0)&&T.contains(P.target))&&setTimeout(()=>{var N;const U=(N=S==null?void 0:S.current)===null||N===void 0?void 0:N.querySelector("li button:not(:disabled),li input:not(:disabled)");U&&U.focus()},0),a&&u&&!(!((E=w==null?void 0:w.current)===null||E===void 0)&&E.contains(P.target))&&a&&!(!((L=S.current)===null||L===void 0)&&L.contains(P.target))&&u(!1)};return window.addEventListener("keydown",A),window.addEventListener("click",I),()=>{window.removeEventListener("keydown",A),window.removeEventListener("click",I)}},[a,S,w,u,c]);const C=M.createElement(Pf,Object.assign({role:p,className:D(n),ref:S,onSelect:(A,I)=>{r&&r(A,I),l&&w.current.focus()},isPlain:f,selected:i,isScrollable:v??(b!==void 0||m!==void 0)},Ll(Tf.displayName,_.ouiaId!==void 0?_.ouiaId:Lo(Tf.displayName),_.ouiaSafe!==void 0?_.ouiaSafe:!0),_),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof o=="function"?o(w):o.toggleNode,triggerRef:w,popper:C,popperRef:S,isVisible:a,zIndex:h},g))},Tf=M.forwardRef((e,t)=>M.createElement(gz,Object.assign({innerRef:t},e)));Tf.displayName="Select";const i_=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,a=Q(e,["children","className","isAriaMultiselectable"]);return M.createElement(a_,Object.assign({isAriaMultiselectable:r,className:D(n)},a),t)};i_.displayName="SelectList";const vz=e=>{var{children:t,className:n,innerRef:r,value:a}=e,i=Q(e,["children","className","innerRef","value"]);return M.createElement(r_,Object.assign({itemId:a,ref:r,className:D(n)},i),t)},o_=M.forwardRef((e,t)=>M.createElement(vz,Object.assign({},e,{innerRef:t})));o_.displayName="SelectOption";const It={check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",menuToggle:"pf-v5-c-menu-toggle",menuToggleButton:"pf-v5-c-menu-toggle__button",menuToggleControls:"pf-v5-c-menu-toggle__controls",menuToggleCount:"pf-v5-c-menu-toggle__count",menuToggleIcon:"pf-v5-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v5-c-menu-toggle__status-icon",menuToggleText:"pf-v5-c-menu-toggle__text",menuToggleToggleIcon:"pf-v5-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",expanded:"pf-m-expanded",plain:"pf-m-plain",text:"pf-m-text",fullHeight:"pf-m-full-height",disabled:"pf-m-disabled",typeahead:"pf-m-typeahead",splitButton:"pf-m-split-button",action:"pf-m-action",active:"pf-m-active",fullWidth:"pf-m-full-width",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger"},textInputGroup:"pf-v5-c-text-input-group",themeDark:"pf-v5-theme-dark"},yz={name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0},bz=ht(yz),RT=bz;var Yc;(function(e){e.success="success",e.danger="danger",e.warning="warning"})(Yc||(Yc={}));class $T extends y.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Lo(mu.displayName,this.props.variant)}}render(){const t=this.props,{children:n,className:r,icon:a,badge:i,isExpanded:o,isDisabled:l,isFullHeight:s,isFullWidth:u,splitButtonOptions:c,variant:f,status:d,statusIcon:h,innerRef:p,onClick:g,"aria-label":b,ouiaId:m,ouiaSafe:v}=t,_=Q(t,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","splitButtonOptions","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe"]),x=f==="plain",O=f==="plainText",S=f==="typeahead",w=Ll(mu.displayName,m??this.state.ouiaStateId,v);let C=h;if(!h)switch(d){case Yc.success:C=y.createElement(Z2,{"aria-hidden":"true"});break;case Yc.warning:C=y.createElement(TT,{"aria-hidden":"true"});break;case Yc.danger:C=y.createElement(PT,{"aria-hidden":"true"});break}const A=y.createElement("span",{className:D(It.menuToggleControls)},d!==void 0&&y.createElement("span",{className:D(It.menuToggleStatusIcon)},C),y.createElement("span",{className:D(It.menuToggleToggleIcon)},y.createElement(RT,{"aria-hidden":!0}))),I=y.createElement(y.Fragment,null,a&&y.createElement("span",{className:D(It.menuToggleIcon)},a),S?n:y.createElement("span",{className:D(It.menuToggleText)},n),y.isValidElement(i)&&y.createElement("span",{className:D(It.menuToggleCount)},i),S?y.createElement("button",Object.assign({type:"button",className:D(It.menuToggleButton),"aria-expanded":o,onClick:g,"aria-label":b||"Menu toggle",tabIndex:-1},w),A):A),P=D(It.menuToggle,o&&It.modifiers.expanded,f==="primary"&&It.modifiers.primary,f==="secondary"&&It.modifiers.secondary,d&&It.modifiers[d],(x||O)&&It.modifiers.plain,O&&It.modifiers.text,s&&It.modifiers.fullHeight,u&&It.modifiers.fullWidth,l&&It.modifiers.disabled,r),T=Object.assign(Object.assign({children:x?n:I},l&&{disabled:!0}),_);return S?y.createElement("div",Object.assign({ref:p,className:D(P,It.modifiers.typeahead)},T)):c?y.createElement("div",{ref:p,className:D(P,It.modifiers.splitButton,(c==null?void 0:c.variant)==="action"&&It.modifiers.action)},c==null?void 0:c.items,y.createElement("button",Object.assign({className:D(It.menuToggleButton,n&&It.modifiers.text),type:"button","aria-expanded":o,"aria-label":b,disabled:l,onClick:g},_,w),n&&y.createElement("span",{className:D(It.menuToggleText)},n),A)):y.createElement("button",Object.assign({className:D(P),type:"button","aria-label":b,"aria-expanded":o,ref:p,disabled:l,onClick:g},T,w))}}$T.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,ouiaSafe:!0};const mu=y.forwardRef((e,t)=>y.createElement($T,Object.assign({innerRef:t},e)));mu.displayName="MenuToggle";const ss={inputGroup:"pf-v5-c-input-group",inputGroupItem:"pf-v5-c-input-group__item",inputGroupText:"pf-v5-c-input-group__text",modifiers:{box:"pf-m-box",plain:"pf-m-plain",disabled:"pf-m-disabled",fill:"pf-m-fill"},themeDark:"pf-v5-theme-dark"},LT=e=>{var{className:t,children:n,innerRef:r}=e,a=Q(e,["className","children","innerRef"]);const i=y.useRef(null),o=r||i;return y.createElement("div",Object.assign({ref:o,className:D(ss.inputGroup,t)},a),n)};LT.displayName="InputGroupBase";const Qc=y.forwardRef((e,t)=>y.createElement(LT,Object.assign({innerRef:t},e)));Qc.displayName="InputGroup";const Ea=e=>{var{className:t,children:n,isFill:r=!1,isBox:a=!1,isPlain:i,isDisabled:o}=e,l=Q(e,["className","children","isFill","isBox","isPlain","isDisabled"]);return y.createElement("div",Object.assign({className:D(ss.inputGroupItem,r&&ss.modifiers.fill,a&&ss.modifiers.box,i&&ss.modifiers.plain,o&&ss.modifiers.disabled,t)},l),n)};Ea.displayName="InputGroupItem";const Rt={calendarMonth:"pf-v5-c-calendar-month",calendarMonthCalendar:"pf-v5-c-calendar-month__calendar",calendarMonthDate:"pf-v5-c-calendar-month__date",calendarMonthDatesCell:"pf-v5-c-calendar-month__dates-cell",calendarMonthDatesRow:"pf-v5-c-calendar-month__dates-row",calendarMonthDay:"pf-v5-c-calendar-month__day",calendarMonthDays:"pf-v5-c-calendar-month__days",calendarMonthHeader:"pf-v5-c-calendar-month__header",calendarMonthHeaderMonth:"pf-v5-c-calendar-month__header-month",calendarMonthHeaderNavControl:"pf-v5-c-calendar-month__header-nav-control",calendarMonthHeaderYear:"pf-v5-c-calendar-month__header-year",dirRtl:"pf-v5-m-dir-rtl",modifiers:{prevMonth:"pf-m-prev-month",nextMonth:"pf-m-next-month",current:"pf-m-current",inRange:"pf-m-in-range",startRange:"pf-m-start-range",endRange:"pf-m-end-range",adjacentMonth:"pf-m-adjacent-month",selected:"pf-m-selected",disabled:"pf-m-disabled",hover:"pf-m-hover",focus:"pf-m-focus"},themeDark:"pf-v5-theme-dark"};var hO;(function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"})(hO||(hO={}));const _z=(e,t,n,r)=>{const a=new Date(e,t),i=new Date(a);i.setDate(i.getDate()-i.getDay()+n);const o=[];i.getMonth()===a.getMonth()&&i.getDate()!==1&&i.setDate(i.getDate()-7);for(let l=0;l<6;l++){const s=[];for(let u=0;u<7;u++){const c=new Date(i);s.push({date:c,isValid:r.every(f=>f(c))}),i.setDate(i.getDate()+1)}if(o.push(s),i.getMonth()!==a.getMonth())break}return o},ns=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),kv=new Date,jT=e=>{var{date:t,locale:n=void 0,monthFormat:r=re=>re.toLocaleDateString(n,{month:"long"}),weekdayFormat:a=re=>re.toLocaleDateString(n,{weekday:"narrow"}),longWeekdayFormat:i=re=>re.toLocaleDateString(n,{weekday:"long"}),dayFormat:o=re=>re.getDate(),weekStart:l=0,onChange:s=()=>{},validators:u=[()=>!0],className:c,onSelectToggle:f=()=>{},onMonthChange:d=()=>{},rangeStart:h,prevMonthAriaLabel:p="Previous month",nextMonthAriaLabel:g="Next month",yearInputAriaLabel:b="Select year",cellAriaLabel:m,isDateFocused:v=!1,inlineProps:_}=e,x=Q(e,["date","locale","monthFormat","weekdayFormat","longWeekdayFormat","dayFormat","weekStart","onChange","validators","className","onSelectToggle","onMonthChange","rangeStart","prevMonthAriaLabel","nextMonthAriaLabel","yearInputAriaLabel","cellAriaLabel","isDateFocused","inlineProps"]);const O=[0,1,2,3,4,5,6,7,8,9,10,11].map(re=>new Date(1990,re)).map(r),[S,w]=M.useState(!1),A=Sa(t)?t:Sa(h)?h:kv,[I,P]=M.useState(A),T=re=>re.getFullYear(),E=T(I),[L,N]=M.useState(E.toString()),[U,W]=M.useState(void 0),$=M.useRef(),[F]=M.useState(U2("hidden-month-span")),[k,X]=M.useState(!1),te=re=>u.every(oe=>oe(re)),R=te(I);y.useEffect(()=>{Sa(t)&&!ns(I,t)?P(t):t||P(kv)},[t]),y.useEffect(()=>{(k||v)&&R&&$.current&&$.current.focus()},[I,v,R,$]);const J=(re,oe)=>{P(oe),X(!1),d(re,oe),N(T(oe).toString())},ae=re=>{const oe=new Date(I);re.key==="ArrowUp"?oe.setDate(oe.getDate()-7):re.key==="ArrowRight"?oe.setDate(oe.getDate()+1):re.key==="ArrowDown"?oe.setDate(oe.getDate()+7):re.key==="ArrowLeft"&&oe.setDate(oe.getDate()-1),oe.getTime()!==I.getTime()&&te(oe)&&(re.preventDefault(),P(oe),X(!0))},ue=re=>ve(I.getMonth(),re),ve=(re,oe)=>new Date(oe??I.getFullYear(),re,1),ke=1900,q=2100,Z=(re,oe)=>{if(/^\d{0,4}$/.test(oe)&&(N(oe),oe.length===4)){const xe=Number(oe);if(xe>=ke&&xe<=q){const De=ue(xe);P(De),X(!1),re.target.focus(),d(re,De)}else N(E.toString())}},ie=re=>{let oe=I.getMonth()+re,xe=I.getFullYear();return oe===-1?(oe=11,xe--):oe===12&&(oe=0,xe++),ve(oe,xe)},K=ie(-1),Te=ie(1),ye=I.getFullYear(),Ae=I.getMonth(),Ce=M.useMemo(()=>_z(ye,Ae,l,u),[ye,Ae,l,u]);if(!R){const re=Ce.reduce((oe,xe)=>[...oe,...xe],[]).filter(({date:oe,isValid:xe})=>xe&&oe.getMonth()===Ae).map(({date:oe})=>({date:oe,days:Math.abs(I.getTime()-oe.getTime())})).sort((oe,xe)=>oe.days-xe.days).map(({date:oe})=>oe)[0];re&&P(re)}const Re=U&&te(U),Ge=r(I),_e=M.createElement("div",Object.assign({className:D(Rt.calendarMonth,c)},x),M.createElement("div",{className:Rt.calendarMonthHeader},M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.prevMonth)},M.createElement(gt,{variant:"plain","aria-label":p,onClick:re=>J(re,K)},M.createElement(t_,{"aria-hidden":!0}))),M.createElement(Qc,null,M.createElement(Ea,{isFill:!0},M.createElement("div",{className:Rt.calendarMonthHeaderMonth},M.createElement("span",{id:F,hidden:!0},"Month"),M.createElement(Tf,{toggle:re=>M.createElement(mu,{ref:re,onClick:()=>w(!S),isExpanded:S,style:{width:"140px"}},Ge),"aria-labelledby":F,isOpen:S,onOpenChange:re=>{w(re),f(re)},onSelect:(re,oe)=>{setTimeout(()=>{w(!1),f(!1);const xe=ve(Number(oe));P(xe),X(!1),d(re,xe)},0)},selected:Ge},M.createElement(i_,null,O.map((re,oe)=>M.createElement(o_,{key:oe,value:oe,isSelected:re===Ge},re)))))),M.createElement(Ea,null,M.createElement("div",{className:Rt.calendarMonthHeaderYear},M.createElement(Ns,{"aria-label":b,type:"number",value:L,onChange:Z})))),M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.nextMonth)},M.createElement(gt,{variant:"plain","aria-label":g,onClick:re=>J(re,Te)},M.createElement(Iu,{"aria-hidden":!0})))),M.createElement("table",{className:Rt.calendarMonthCalendar,onMouseLeave:()=>W(void 0)},M.createElement("thead",{className:Rt.calendarMonthDays},M.createElement("tr",null,Ce[0].map(({date:re},oe)=>M.createElement("th",{key:oe,className:Rt.calendarMonthDay,scope:"col"},M.createElement("span",{className:"pf-v5-screen-reader"},i(re)),M.createElement("span",{"aria-hidden":!0},a(re)))))),M.createElement("tbody",{onKeyDown:ae},Ce.map((re,oe)=>M.createElement("tr",{key:oe,className:Rt.calendarMonthDatesRow},re.map(({date:xe,isValid:De},Je)=>{const z=o(xe),Y=ns(xe,kv),he=Sa(t)&&ns(xe,t),se=ns(xe,I),pe=xe.getMonth()!==I.getMonth(),He=Sa(h)&&ns(xe,h);let ge=!1,Pe=!1;if(Sa(h)){let Ke;Sa(t)&&(Ke=t),Re&&(!Sa(t)||U>t)&&(Ke=U),Ke&&(ge=xe>=h&&xe<=Ke,Pe=ns(xe,Ke))}return M.createElement("td",{key:Je,className:D(Rt.calendarMonthDatesCell,pe&&Rt.modifiers.adjacentMonth,Y&&Rt.modifiers.current,(he||He)&&Rt.modifiers.selected,!De&&!(ge||He||Pe||he)&&Rt.modifiers.disabled,ge&&Rt.modifiers.inRange,He&&Rt.modifiers.startRange,Pe&&Rt.modifiers.endRange)},M.createElement("button",Object.assign({className:D(Rt.calendarMonthDate,Pe&&Rt.modifiers.hover,!De&&Rt.modifiers.disabled),type:"button",onClick:Ke=>s(Ke,xe),onMouseOver:()=>W(xe),tabIndex:se?0:-1,disabled:!De,"aria-label":m?m(xe):`${o(xe)} ${r(xe)} ${T(xe)}`},se&&{ref:$}),z))}))))));if(_!==void 0){const re=_.component?_.component:"article";return M.createElement(re,Object.assign({},_.ariaLabelledby&&{"aria-labelledby":_.ariaLabelledby}),_.title,_e)}return _e};jT.displayName="CalendarMonth";const it={card:"pf-v5-c-card",cardActions:"pf-v5-c-card__actions",cardBody:"pf-v5-c-card__body",cardExpandableContent:"pf-v5-c-card__expandable-content",cardFooter:"pf-v5-c-card__footer",cardHeader:"pf-v5-c-card__header",cardHeaderMain:"pf-v5-c-card__header-main",cardHeaderToggle:"pf-v5-c-card__header-toggle",cardHeaderToggleIcon:"pf-v5-c-card__header-toggle-icon",cardSelectableActions:"pf-v5-c-card__selectable-actions",cardSrInput:"pf-v5-c-card__sr-input",cardTitle:"pf-v5-c-card__title",cardTitleText:"pf-v5-c-card__title-text",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",modifiers:{selectable:"pf-m-selectable",clickable:"pf-m-clickable",selected:"pf-m-selected",current:"pf-m-current",disabled:"pf-m-disabled",hoverableRaised:"pf-m-hoverable-raised",selectableRaised:"pf-m-selectable-raised",nonSelectableRaised:"pf-m-non-selectable-raised",selectedRaised:"pf-m-selected-raised",compact:"pf-m-compact",displayLg:"pf-m-display-lg",flat:"pf-m-flat",plain:"pf-m-plain",rounded:"pf-m-rounded",expanded:"pf-m-expanded",fullHeight:"pf-m-full-height",toggleRight:"pf-m-toggle-right",noOffset:"pf-m-no-offset",noFill:"pf-m-no-fill"},radio:"pf-v5-c-radio",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label",themeDark:"pf-v5-theme-dark"},Lg=y.createContext({cardId:"",registerTitleId:()=>{},isExpanded:!1,isClickable:!1,isSelectable:!1,isSelected:!1,isClicked:!1,isDisabled:!1}),ra=e=>{var{children:t,id:n="",className:r,component:a="div",isCompact:i=!1,isSelectable:o=!1,isClickable:l=!1,isDisabled:s=!1,isSelectableRaised:u=!1,isSelected:c=!1,isClicked:f=!1,isDisabledRaised:d=!1,isFlat:h=!1,isExpanded:p=!1,isRounded:g=!1,isLarge:b=!1,isFullHeight:m=!1,isPlain:v=!1,ouiaId:_,ouiaSafe:x=!0,hasSelectableInput:O=!1,selectableInputAriaLabel:S,onSelectableInputChange:w=()=>{}}=e,C=Q(e,["children","id","className","component","isCompact","isSelectable","isClickable","isDisabled","isSelectableRaised","isSelected","isClicked","isDisabledRaised","isFlat","isExpanded","isRounded","isLarge","isFullHeight","isPlain","ouiaId","ouiaSafe","hasSelectableInput","selectableInputAriaLabel","onSelectableInputChange"]);const A=a,I=Ii(ra.displayName,_,x),[P,T]=y.useState(""),[E,L]=y.useState();i&&b&&(console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"),b=!1);const N=()=>d?D(it.modifiers.nonSelectableRaised):u?D(it.modifiers.selectableRaised,c&&it.modifiers.selectedRaised):o&&l?D(it.modifiers.selectable,it.modifiers.clickable,(c||f)&&it.modifiers.current):o?D(it.modifiers.selectable,c&&it.modifiers.selected):l?D(it.modifiers.clickable,f&&it.modifiers.current):"",U=y.useRef(!1),W=$=>{T($),U.current=!!$};return y.useEffect(()=>{S?L({"aria-label":S}):P?L({"aria-labelledby":P}):O&&!U.current&&(L({}),console.warn("If no CardTitle component is passed as a child of Card the selectableInputAriaLabel prop must be passed"))},[O,S,P]),y.createElement(Lg.Provider,{value:{cardId:n,registerTitleId:W,isExpanded:p,isClickable:l,isSelectable:o,isSelected:c,isClicked:f,isDisabled:s,hasSelectableInput:O}},O&&y.createElement("input",Object.assign({className:"pf-v5-screen-reader",id:`${n}-input`},E,{type:"checkbox",checked:c,onChange:$=>w($,n),disabled:d,tabIndex:-1})),y.createElement(A,Object.assign({id:n,className:D(it.card,i&&it.modifiers.compact,p&&it.modifiers.expanded,h&&it.modifiers.flat,g&&it.modifiers.rounded,b&&it.modifiers.displayLg,m&&it.modifiers.fullHeight,v&&it.modifiers.plain,N(),s&&it.modifiers.disabled,r),tabIndex:u?"0":void 0},C,I),t))};ra.displayName="Card";const Af=e=>{var{children:t,className:n,component:r="div",isFilled:a=!0}=e,i=Q(e,["children","className","component","isFilled"]);const o=r;return y.createElement(o,Object.assign({className:D(it.cardBody,!a&&it.modifiers.noFill,n)},i),t)};Af.displayName="CardBody";const DT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement(Lg.Consumer,null,({isExpanded:a})=>a?y.createElement("div",Object.assign({className:D(it.cardExpandableContent,n)},r),t):null)};DT.displayName="CardExpandableContent";const NT=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(it.cardFooter,n)},a),t)};NT.displayName="CardFooter";const Fs=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const{cardId:i,registerTitleId:o}=y.useContext(Lg),l=r,s=i?`${i}-title`:"";return y.useEffect(()=>(o(s),()=>o("")),[o,s]),y.createElement("div",{className:D(it.cardTitle)},y.createElement(l,Object.assign({className:D(it.cardTitleText,n),id:s||void 0},a),t))};Fs.displayName="CardTitle";const FT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardHeaderMain,n)},r),t)};FT.displayName="CardHeaderMain";const zT=e=>{var{children:t,className:n,hasNoOffset:r=!1}=e,a=Q(e,["children","className","hasNoOffset"]);return y.createElement("div",Object.assign({className:D(it.cardActions,r&&it.modifiers.noOffset,n)},a),t)};zT.displayName="CardActions";const BT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardSelectableActions,n)},r),t)};BT.displayName="CardSelectableActions";const zo={modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"},radio:"pf-v5-c-radio",radioBody:"pf-v5-c-radio__body",radioDescription:"pf-v5-c-radio__description",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label"};class gu extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},!t.label&&!t["aria-label"]&&console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Lo(gu.displayName)}}render(){const t=this.props,{"aria-label":n,checked:r,className:a,inputClassName:i,defaultChecked:o,isLabelWrapped:l,isLabelBeforeButton:s,isChecked:u,isDisabled:c,isValid:f,label:d,onChange:h,description:p,body:g,ouiaId:b,ouiaSafe:m=!0,component:v}=t,_=Q(t,["aria-label","checked","className","inputClassName","defaultChecked","isLabelWrapped","isLabelBeforeButton","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Radio:","id is required to make input accessible");const x=y.createElement("input",Object.assign({},_,{className:D(zo.radioInput,i),type:"radio",onChange:this.handleChange,"aria-invalid":!f,disabled:c,checked:r||u},r===void 0&&{defaultChecked:o},!d&&{"aria-label":n},Ll(gu.displayName,b!==void 0?b:this.state.ouiaStateId,m))),O=l&&!v||v==="label",S=O?"span":"label",w=d?y.createElement(S,{className:D(zo.radioLabel,c&&zo.modifiers.disabled),htmlFor:O?void 0:_.id},d):null,C=v??(O?"label":"div");return y.createElement(C,{className:D(zo.radio,!d&&zo.modifiers.standalone,a),htmlFor:O?_.id:void 0},s?y.createElement(y.Fragment,null,w,x):y.createElement(y.Fragment,null,x,w),p&&y.createElement("span",{className:D(zo.radioDescription)},p),g&&y.createElement("span",{className:D(zo.radioBody)},g))}}gu.displayName="Radio";gu.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}};const UT=e=>{var{children:t,className:n,actions:r,selectableActions:a,id:i,onExpand:o,toggleButtonProps:l,isToggleRightAligned:s}=e,u=Q(e,["children","className","actions","selectableActions","id","onExpand","toggleButtonProps","isToggleRightAligned"]);return y.createElement(Lg.Consumer,null,({cardId:c,isClickable:f,isSelectable:d,isSelected:h,isClicked:p,isDisabled:g,hasSelectableInput:b})=>{const m=y.createElement("div",{className:D(it.cardHeaderToggle)},y.createElement(gt,Object.assign({variant:"plain",type:"button",onClick:S=>{o(S,c)}},l),y.createElement("span",{className:D(it.cardHeaderToggleIcon)},y.createElement(Iu,{"aria-hidden":"true"})))),v=f&&!d||d&&!f,_=b;r!=null&&r.actions&&v&&!_&&console.warn(`${f?"Clickable":"Selectable"} only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card.`);const x=S=>{a!=null&&a.onClickAction?a.onClickAction(S):a!=null&&a.to&&window.open(a.to,a.isExternalLink?"_blank":"_self")},O=()=>{var S;const w={className:"pf-m-standalone",inputClassName:f&&!d&&"pf-v5-screen-reader",label:y.createElement(y.Fragment,null),"aria-label":a.selectableActionAriaLabel,"aria-labelledby":a.selectableActionAriaLabelledby,id:a.selectableActionId,name:a.name,isDisabled:g},C=(S=a.isChecked)!==null&&S!==void 0?S:h;return f&&!d?Object.assign(Object.assign({},w),{onClick:x,isChecked:p}):d?Object.assign(Object.assign({},w),{onChange:a.onChange,isChecked:C}):w};return y.createElement("div",Object.assign({className:D(it.cardHeader,s&&it.modifiers.toggleRight,n),id:i},u),o&&!s&&m,(r||a&&(f||d))&&y.createElement(zT,{className:r==null?void 0:r.className,hasNoOffset:(r==null?void 0:r.hasNoOffset)||(a==null?void 0:a.hasNoOffset)},r==null?void 0:r.actions,a&&(f||d)&&y.createElement(BT,{className:a==null?void 0:a.className},(a==null?void 0:a.variant)==="single"||f&&!d?y.createElement(gu,Object.assign({},O())):y.createElement(sr,Object.assign({},O())))),t&&y.createElement(FT,null,t),o&&s&&m)})};UT.displayName="CardHeader";const xz={name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0},wz=ht(xz),Sz=wz,ut={modifiers:{noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",custom:"pf-m-custom",info:"pf-m-info"},popover:"pf-v5-c-popover",popoverArrow:"pf-v5-c-popover__arrow",popoverBody:"pf-v5-c-popover__body",popoverClose:"pf-v5-c-popover__close",popoverContent:"pf-v5-c-popover__content",popoverFooter:"pf-v5-c-popover__footer",popoverHeader:"pf-v5-c-popover__header",popoverTitle:"pf-v5-c-popover__title",popoverTitleIcon:"pf-v5-c-popover__title-icon",popoverTitleText:"pf-v5-c-popover__title-text",themeDark:"pf-v5-theme-dark"},Oz=y.createContext({}),HT=e=>{var{className:t=null,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ut.popoverContent,t)},r),n)};HT.displayName="PopoverContent";const WT=e=>{var{children:t,id:n,className:r}=e,a=Q(e,["children","id","className"]);return y.createElement("div",Object.assign({className:D(ut.popoverBody,r),id:n},a),t)};WT.displayName="PopoverBody";const VT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(ut.popoverTitleIcon,n)},r),t)};VT.displayName="PopoverHeaderIcon";const qT=e=>{var{children:t,className:n,headingLevel:r}=e,a=Q(e,["children","className","headingLevel"]);const i=r;return y.createElement(i,Object.assign({className:D(ut.popoverTitleText,n)},a),t)};qT.displayName="PopoverHeaderText";const GT=e=>{var{children:t,icon:n,className:r,titleHeadingLevel:a="h6",alertSeverityVariant:i,id:o,alertSeverityScreenReaderText:l}=e,s=Q(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return y.createElement("header",Object.assign({className:D(ut.popoverHeader,r)},s),y.createElement("div",{className:D(ut.popoverTitle),id:o},n&&y.createElement(VT,null,n),y.createElement(qT,{headingLevel:a},i&&l&&y.createElement("span",{className:"pf-v5-screen-reader"},l),t)))};GT.displayName="PopoverHeader";const KT=e=>{var{children:t,className:n=""}=e,r=Q(e,["children","className"]);return y.createElement("footer",Object.assign({className:D(ut.popoverFooter,n)},r),t)};KT.displayName="PopoverFooter";const XT=e=>{var{onClose:t=()=>{}}=e,n=Q(e,["onClose"]);return y.createElement("div",{className:D(ut.popoverClose)},y.createElement(gt,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),y.createElement(Tb,null)))};XT.displayName="PopoverCloseButton";const YT=e=>{var{className:t=""}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(ut.popoverArrow,t)},n))};YT.displayName="PopoverArrow";const Pv={name:"--pf-v5-c-popover--MaxWidth",value:"none",var:"var(--pf-v5-c-popover--MaxWidth)"},Tv={name:"--pf-v5-c-popover--MinWidth",value:"auto",var:"var(--pf-v5-c-popover--MinWidth)"};var pO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(pO||(pO={}));const Cz={custom:ut.modifiers.custom,info:ut.modifiers.info,success:ut.modifiers.success,warning:ut.modifiers.warning,danger:ut.modifiers.danger},l_=e=>{var{children:t,position:n="top",enableFlip:r=!0,className:a="",isVisible:i=null,shouldClose:o=()=>null,shouldOpen:l=()=>null,"aria-label":s="",bodyContent:u,headerContent:c=null,headerComponent:f="h6",headerIcon:d=null,alertSeverityVariant:h,alertSeverityScreenReaderText:p,footerContent:g=null,appendTo:b=()=>document.body,hideOnOutsideClick:m=!0,onHide:v=()=>null,onHidden:_=()=>null,onShow:x=()=>null,onShown:O=()=>null,onMount:S=()=>null,zIndex:w=9999,triggerAction:C="click",minWidth:A=Tv&&Tv.value,maxWidth:I=Pv&&Pv.value,closeBtnAriaLabel:P="Close",showClose:T=!0,distance:E=25,flipBehavior:L=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:N=300,id:U,withFocusTrap:W,triggerRef:$,hasNoPadding:F=!1,hasAutoWidth:k=!1,elementToFocus:X}=e,te=Q(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const R=U||U2(),J=i!==null,[ae,ue]=y.useState(!1),[ve,ke]=y.useState(!!W),q=y.useRef(null);y.useEffect(()=>{S()},[]),y.useEffect(()=>{J&&(i?Z(void 0,!0):ie())},[i,J]);const Z=(z,Y)=>{z&&x(z),ue(!0),W!==!1&&Y&&ke(!0)},ie=z=>{z&&v(z),ue(!1)},K={top:ut.modifiers.top,bottom:ut.modifiers.bottom,left:ut.modifiers.left,right:ut.modifiers.right,"top-start":ut.modifiers.topLeft,"top-end":ut.modifiers.topRight,"bottom-start":ut.modifiers.bottomLeft,"bottom-end":ut.modifiers.bottomRight,"left-start":ut.modifiers.leftTop,"left-end":ut.modifiers.leftBottom,"right-start":ut.modifiers.rightTop,"right-end":ut.modifiers.rightBottom},Te=A!==Tv.value,ye=I!==Pv.value,Ae=z=>{z.key===Hp.Escape&&ae&&(J?o(z,ie):ie(z))},Ce=(z,Y,he)=>{if(m&&ae){const se=he&&he.contains(z.target),pe=Y&&Y.contains(z.target);if(se||pe)return;J?o(z,ie):ie(z)}},Re=z=>{J?ae?o(z,ie):l(z,Z):ae?ie(z):Z(z,!0)},Ge=()=>{ve&&ke(!1)},_e=z=>{J?l(z,Z):Z(z,!1)},re=z=>{J?o(z,ie):ie(z)},oe=z=>{J?l(z,Z):Z(z,!1)},xe=z=>{J?o(z,ie):ie(z)},De=z=>{z.stopPropagation(),J?o(z,ie):ie(z)},Je=y.createElement(B2,Object.assign({ref:q,active:ve,focusTrapOptions:{returnFocusOnDeactivate:W!==!1,clickOutsideDeactivates:!0,initialFocus:X||void 0,checkCanFocusTrap:z=>new Promise(Y=>{const he=setInterval(()=>{z.every(se=>getComputedStyle(se).visibility!=="hidden")&&(Y(),clearInterval(he))},10)}),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let z=null;return document&&document.activeElement&&(z=document.activeElement),z}},preventScrollOnDeactivate:!0,className:D(ut.popover,h&&Cz[h],F&&ut.modifiers.noPadding,k&&ut.modifiers.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":c?void 0:s,"aria-labelledby":c?`popover-${R}-header`:void 0,"aria-describedby":`popover-${R}-body`,onMouseDown:Ge,style:{minWidth:Te?A:null,maxWidth:ye?I:null}},te),y.createElement(YT,null),y.createElement(HT,null,T&&C==="click"&&y.createElement(XT,{onClose:De,"aria-label":P}),c&&y.createElement(GT,{id:`popover-${R}-header`,icon:d,alertSeverityVariant:h,alertSeverityScreenReaderText:p||`${h} alert:`,titleHeadingLevel:f},typeof c=="function"?c(ie):c),y.createElement(WT,{id:`popover-${R}-body`},typeof u=="function"?u(ie):u),g&&y.createElement(KT,{id:`popover-${R}-footer`},typeof g=="function"?g(ie):g)));return y.createElement(Oz.Provider,{value:{headerComponent:f}},y.createElement(jl,{trigger:t,triggerRef:$,popper:Je,popperRef:q,minWidth:A,appendTo:b,isVisible:ae,onMouseEnter:C==="hover"&&_e,onMouseLeave:C==="hover"&&re,onPopperMouseEnter:C==="hover"&&_e,onPopperMouseLeave:C==="hover"&&re,onFocus:C==="hover"&&oe,onBlur:C==="hover"&&xe,positionModifiers:K,distance:E,placement:n,onTriggerClick:C==="click"&&Re,onDocumentClick:Ce,onDocumentKeyDown:Ae,enableFlip:r,zIndex:w,flipBehavior:L,animationDuration:N,onHidden:_,onShown:O,onHide:()=>ke(!1)}))};l_.displayName="Popover";const Av={divider:"pf-v5-c-divider",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",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var Mb;(function(e){e.hr="hr",e.li="li",e.div="div"})(Mb||(Mb={}));const QT=e=>{var{className:t,component:n=Mb.hr,inset:r,orientation:a}=e,i=Q(e,["className","component","inset","orientation"]);const o=n;return y.createElement(o,Object.assign({className:D(Av.divider,Ci(r,Av),Ci(a,Av),t)},n!=="hr"&&{role:"separator"},i))};QT.displayName="Divider";const kt={dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",drawerActions:"pf-v5-c-drawer__actions",drawerBody:"pf-v5-c-drawer__body",drawerClose:"pf-v5-c-drawer__close",drawerContent:"pf-v5-c-drawer__content",drawerHead:"pf-v5-c-drawer__head",drawerMain:"pf-v5-c-drawer__main",drawerPanel:"pf-v5-c-drawer__panel",drawerPanelMain:"pf-v5-c-drawer__panel-main",drawerSection:"pf-v5-c-drawer__section",drawerSplitter:"pf-v5-c-drawer__splitter",drawerSplitterHandle:"pf-v5-c-drawer__splitter-handle",modifiers:{panelBottom:"pf-m-panel-bottom",inline:"pf-m-inline",noBorder:"pf-m-no-border",resizable:"pf-m-resizable",static:"pf-m-static",panelLeft:"pf-m-panel-left",expanded:"pf-m-expanded",resizing:"pf-m-resizing",noBackground:"pf-m-no-background",light_200:"pf-m-light-200",noPadding:"pf-m-no-padding",padding:"pf-m-padding",vertical:"pf-m-vertical",width_25:"pf-m-width-25",width_33:"pf-m-width-33",width_50:"pf-m-width-50",width_66:"pf-m-width-66",width_75:"pf-m-width-75",width_100:"pf-m-width-100",width_25OnLg:"pf-m-width-25-on-lg",width_33OnLg:"pf-m-width-33-on-lg",width_50OnLg:"pf-m-width-50-on-lg",width_66OnLg:"pf-m-width-66-on-lg",width_75OnLg:"pf-m-width-75-on-lg",width_100OnLg:"pf-m-width-100-on-lg",width_25OnXl:"pf-m-width-25-on-xl",width_33OnXl:"pf-m-width-33-on-xl",width_50OnXl:"pf-m-width-50-on-xl",width_66OnXl:"pf-m-width-66-on-xl",width_75OnXl:"pf-m-width-75-on-xl",width_100OnXl:"pf-m-width-100-on-xl",width_25On_2xl:"pf-m-width-25-on-2xl",width_33On_2xl:"pf-m-width-33-on-2xl",width_50On_2xl:"pf-m-width-50-on-2xl",width_66On_2xl:"pf-m-width-66-on-2xl",width_75On_2xl:"pf-m-width-75-on-2xl",width_100On_2xl:"pf-m-width-100-on-2xl",inlineOnLg:"pf-m-inline-on-lg",staticOnLg:"pf-m-static-on-lg",inlineOnXl:"pf-m-inline-on-xl",staticOnXl:"pf-m-static-on-xl",inlineOn_2xl:"pf-m-inline-on-2xl",staticOn_2xl:"pf-m-static-on-2xl"},pageMain:"pf-v5-c-page__main",themeDark:"pf-v5-theme-dark"};var bo;(function(e){e.default="default",e.light200="light-200",e.noBackground="no-background"})(bo||(bo={}));const s_=y.createContext({isExpanded:!1,isStatic:!1,onExpand:()=>{},position:"end",drawerRef:null,drawerContentRef:null,isInline:!1}),JT=e=>{var{className:t="",children:n,isExpanded:r=!1,isInline:a=!1,isStatic:i=!1,position:o="end",onExpand:l=()=>{}}=e,s=Q(e,["className","children","isExpanded","isInline","isStatic","position","onExpand"]);const u=y.useRef(),c=y.useRef();return y.createElement(s_.Provider,{value:{isExpanded:r,isStatic:i,onExpand:l,position:o,drawerRef:u,drawerContentRef:c,isInline:a}},y.createElement("div",Object.assign({className:D(kt.drawer,r&&kt.modifiers.expanded,a&&kt.modifiers.inline,i&&kt.modifiers.static,(o==="left"||o==="start")&&kt.modifiers.panelLeft,o==="bottom"&&kt.modifiers.panelBottom,t),ref:u},s),n))};JT.displayName="Drawer";const ZT=e=>{var{className:t="",children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(kt.drawerMain,t)},r),n)};ZT.displayName="DrawerMain";const eA=e=>{var{className:t="",children:n,panelContent:r,colorVariant:a=bo.default}=e,i=Q(e,["className","children","panelContent","colorVariant"]);const{drawerContentRef:o}=y.useContext(s_);return y.createElement(ZT,null,y.createElement("div",Object.assign({className:D(kt.drawerContent,a===bo.light200&&kt.modifiers.light_200,a===bo.noBackground&&kt.modifiers.noBackground,t),ref:o},i),n),r)};eA.displayName="DrawerContent";const tA=e=>{var{className:t="",children:n,hasPadding:r=!1}=e,a=Q(e,["className","children","hasPadding"]);return y.createElement("div",Object.assign({className:D(kt.drawerBody,r&&kt.modifiers.padding,t)},a),n)};tA.displayName="DrawerContentBody";const Mv={name:"--pf-v5-c-drawer__panel--md--FlexBasis",value:"50%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis)"},Ez={name:"--pf-v5-c-drawer__panel--md--FlexBasis--min",value:"1.5rem",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--min)"},kz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--max",value:"100%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--max)"};let Wi=null,sc=0;const nA=e=>{var{className:t="",id:n,children:r,hasNoBorder:a=!1,isResizable:i=!1,onResize:o,minSize:l,defaultSize:s,maxSize:u,increment:c=5,resizeAriaLabel:f="Resize",widths:d,colorVariant:h=bo.default,focusTrap:p}=e,g=Q(e,["className","id","children","hasNoBorder","isResizable","onResize","minSize","defaultSize","maxSize","increment","resizeAriaLabel","widths","colorVariant","focusTrap"]);const b=y.useRef(),m=y.useRef(),[v,_]=y.useState(0),{position:x,isExpanded:O,isStatic:S,onExpand:w,drawerRef:C,drawerContentRef:A,isInline:I}=y.useContext(s_),P=S?!1:!O,[T,E]=y.useState(!P),[L,N]=y.useState(!1),U=y.useRef(null);let W=0,$,F,k,X,te=!0;S&&(p!=null&&p.enabled)&&console.warn("DrawerPanelContent: The focusTrap.enabled prop cannot be true if the Drawer's isStatic prop is true. This will cause a permanent focus trap."),y.useEffect(()=>{!S&&O&&E(O)},[S,O]);const R=()=>{let _e,re;const oe=Ds(b.current)==="rtl";I&&(x==="end"||x==="right")?oe?(_e=b.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=b.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):I&&(x==="start"||x==="left")?oe?(_e=m.current.getBoundingClientRect().left-b.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-b.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):x==="end"||x==="right"?oe?(_e=A.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=A.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="start"||x==="left"?oe?(_e=m.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="bottom"&&(_e=A.current.getBoundingClientRect().bottom-m.current.getBoundingClientRect().top,re=A.current.getBoundingClientRect().bottom-A.current.getBoundingClientRect().top);const xe=_e/re*100;return Math.round((xe+Number.EPSILON)*100)/100},J=_e=>{_e.stopPropagation(),document.addEventListener("touchmove",Te,{passive:!1}),document.addEventListener("touchend",K),Wi=!0},ae=_e=>{_e.stopPropagation(),_e.preventDefault(),document.addEventListener("mousemove",ie),document.addEventListener("mouseup",ye),C.current.classList.add(D(kt.modifiers.resizing)),Wi=!0,te=!0},ue=_e=>{const re=x==="bottom"?_e.clientY:_e.clientX;ke(_e,re)},ve=_e=>{_e.preventDefault(),_e.stopImmediatePropagation();const re=x==="bottom"?_e.touches[0].clientY:_e.touches[0].clientX;ke(_e,re)},ke=(_e,re)=>{const oe=Ds(b.current)==="rtl";if(_e.stopPropagation(),!Wi)return;te&&($=b.current.getBoundingClientRect(),oe?(k=$.right,F=$.left):(F=$.right,k=$.left),X=$.bottom,te=!1);const xe=re;let De=0;x==="end"||x==="right"?De=oe?xe-F:F-xe:x==="start"||x==="left"?De=oe?k-xe:xe-k:De=X-xe,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Mv.name,De+"px"),W=De,_(R())},q=_e=>{Wi&&(C.current.classList.remove(D(kt.modifiers.resizing)),Wi=!1,o&&o(_e,W,n),te=!0,document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",ye))},Z=_e=>{_e.stopPropagation(),Wi&&(Wi=!1,o&&o(_e,W,n),document.removeEventListener("touchmove",Te),document.removeEventListener("touchend",K))},ie=y.useCallback(ue,[]),K=y.useCallback(Z,[]),Te=y.useCallback(ve,[]),ye=y.useCallback(q,[]),Ae=_e=>{const re=Ds(b.current)==="rtl",oe=_e.key;if(oe!=="Escape"&&oe!=="Enter"&&oe!=="ArrowUp"&&oe!=="ArrowDown"&&oe!=="ArrowLeft"&&oe!=="ArrowRight"){Wi&&_e.preventDefault();return}_e.preventDefault(),(oe==="Escape"||oe==="Enter")&&o&&o(_e,W,n);const xe=b.current.getBoundingClientRect();sc=x==="bottom"?xe.height:xe.width;let De=0;oe==="ArrowRight"?re?De=x==="left"||x==="start"?-c:c:De=x==="left"||x==="start"?c:-c:oe==="ArrowLeft"?re?De=x==="left"||x==="start"?c:-c:De=x==="left"||x==="start"?-c:c:oe==="ArrowUp"?De=c:oe==="ArrowDown"&&(De=-c),sc=sc+De,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Mv.name,sc+"px"),W=sc,_(R())},Ce={};s&&(Ce[Mv.name]=s),l&&(Ce[Ez.name]=l),u&&(Ce[kz.name]=u);const Re=(p==null?void 0:p.enabled)&&!S,Ge=Re?B2:"div";return y.createElement(Mu,{prefix:"pf-drawer-panel-"},_e=>{const re={tabIndex:-1,"aria-modal":!0,role:"dialog",active:L,"aria-labelledby":(p==null?void 0:p["aria-labelledby"])||n||_e,focusTrapOptions:{fallbackFocus:()=>b.current,onActivate:()=>{U.current!==document.activeElement&&(U.current=document.activeElement)},onDeactivate:()=>{U.current&&U.current.focus&&U.current.focus()},clickOutsideDeactivates:!0,returnFocusOnDeactivate:!1,initialFocus:(p==null?void 0:p.elementToFocusOnExpand)||void 0,escapeDeactivates:!1}};return y.createElement(Ge,Object.assign({},Re&&re,{id:n||_e,className:D(kt.drawerPanel,i&&kt.modifiers.resizable,a&&kt.modifiers.noBorder,Ci(d,kt),h===bo.light200&&kt.modifiers.light_200,h===bo.noBackground&&kt.modifiers.noBackground,t),onTransitionEnd:oe=>{oe.target===b.current&&(!P&&oe.nativeEvent.propertyName==="transform"&&w(oe),E(!P),Re&&oe.nativeEvent.propertyName==="transform"&&N(xe=>!xe))},hidden:P},(s||l||u)&&{style:Ce},g,{ref:b}),T&&y.createElement(y.Fragment,null,i&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(kt.drawerSplitter,x!=="bottom"&&kt.modifiers.vertical),role:"separator",tabIndex:0,"aria-orientation":x==="bottom"?"horizontal":"vertical","aria-label":f,"aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,"aria-controls":n||_e,onMouseDown:ae,onKeyDown:Ae,onTouchStart:J,ref:m},y.createElement("div",{className:D(kt.drawerSplitterHandle),"aria-hidden":!0})),y.createElement("div",{className:D(kt.drawerPanelMain)},r)),!i&&r))})};nA.displayName="DrawerPanelContent";const Pz=e=>{var{children:t,className:n,onSelect:r,isOpen:a,toggle:i,shouldFocusToggleOnSelect:o=!1,onOpenChange:l,isPlain:s,isScrollable:u,innerRef:c,ouiaId:f,ouiaSafe:d=!0,zIndex:h=9999,popperProps:p,onOpenChangeKeys:g=["Escape","Tab"],menuHeight:b,maxMenuHeight:m,shouldFocusFirstItemOnOpen:v=!0}=e,_=Q(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen"]);const x=M.useRef(),O=M.useRef(),S=Ii(u_.displayName,f,d),w=c||x,C=typeof i=="function"||typeof i!="function"&&!i.toggleRef?O:i==null?void 0:i.toggleRef;M.useEffect(()=>{const P=E=>{var L,N,U;a&&l&&(!((L=w.current)===null||L===void 0)&&L.contains(E.target)||!((N=C.current)===null||N===void 0)&&N.contains(E.target))&&g.includes(E.key)&&(l(!1),(U=C.current)===null||U===void 0||U.focus())},T=E=>{var L,N,U;a&&v&&(!((L=C.current)===null||L===void 0)&&L.contains(E.target))&&setTimeout(()=>{var W;const $=(W=w==null?void 0:w.current)===null||W===void 0?void 0:W.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');$&&$.focus()},0),a&&l&&!(!((N=C==null?void 0:C.current)===null||N===void 0)&&N.contains(E.target))&&a&&!(!((U=w.current)===null||U===void 0)&&U.contains(E.target))&&l(!1)};return window.addEventListener("keydown",P),window.addEventListener("click",T),()=>{window.removeEventListener("keydown",P),window.removeEventListener("click",T)}},[a,w,C,l,g]);const A=m!==void 0||b!==void 0||u,I=M.createElement(Pf,Object.assign({className:D(n),ref:w,onSelect:(P,T)=>{r&&r(P,T),o&&C.current.focus()},isPlain:s,isScrollable:A},_,S),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof i=="function"?i(C):i.toggleNode,triggerRef:C,popper:I,popperRef:w,isVisible:a,zIndex:h},p))},u_=M.forwardRef((e,t)=>M.createElement(Pz,Object.assign({innerRef:t},e)));u_.displayName="Dropdown";const Tz=e=>{var{children:t,className:n,description:r,isDisabled:a,isAriaDisabled:i,value:o,onClick:l,ouiaId:s,ouiaSafe:u,innerRef:c,tooltipProps:f}=e,d=Q(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const h=Ii(c_.displayName,s,u);return M.createElement(r_,Object.assign({className:D(n),description:r,isDisabled:a,isAriaDisabled:i,itemId:o,onClick:l,tooltipProps:f,ref:c},h,d),t)},c_=M.forwardRef((e,t)=>M.createElement(Tz,Object.assign({},e,{innerRef:t})));c_.displayName="DropdownItem";const rA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return M.createElement(a_,Object.assign({className:D(n)},r),t)};rA.displayName="DropdownList";const ei={icon:"pf-v5-c-icon",iconContent:"pf-v5-c-icon__content",iconProgress:"pf-v5-c-icon__progress",modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl",inProgress:"pf-m-in-progress",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",info:"pf-m-info",custom:"pf-m-custom"},spinner:"pf-v5-c-spinner"},aA=e=>{var{children:t,className:n,progressIcon:r,size:a,iconSize:i,progressIconSize:o,status:l,isInline:s=!1,isInProgress:u=!1,defaultProgressArialabel:c="Loading...",shouldMirrorRTL:f=!1}=e,d=Q(e,["children","className","progressIcon","size","iconSize","progressIconSize","status","isInline","isInProgress","defaultProgressArialabel","shouldMirrorRTL"]);const h=r??y.createElement(Rg,{diameter:"1em","aria-label":c});return y.createElement("span",Object.assign({className:D(ei.icon,s&&ei.modifiers.inline,u&&ei.modifiers.inProgress,ei.modifiers[a],n)},d),y.createElement("span",{className:D(ei.iconContent,ei.modifiers[i],ei.modifiers[l],f&&"pf-v5-m-mirror-inline-rtl")},t),u&&y.createElement("span",{className:D(ei.iconProgress,ei.modifiers[o],n)},h))};aA.displayName="Icon";const Az={name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0},Mz=ht(Az),f_=Mz,Iz={name:"SearchIcon",height:512,width:512,svgPath:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z",yOffset:0,xOffset:0},Rz=ht(Iz),mO=Rz,$z={name:"ArrowRightIcon",height:512,width:448,svgPath:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",yOffset:0,xOffset:0},Lz=ht($z),jz=Lz,Yt={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},iA=e=>{var{children:t=null,className:n=""}=e,r=Q(e,["children","className"]);const a=D(Yt.formGroup,Yt.modifiers.action,n),i=y.createElement("div",{className:D(Yt.formActions)},t);return y.createElement("div",Object.assign({},r,{className:a}),y.createElement("div",{className:D(Yt.formGroupControl)},i))};iA.displayName="ActionGroup";const Dz={name:"--pf-v5-c-form--m-limit-width--MaxWidth",value:"55rem",var:"var(--pf-v5-c-form--m-limit-width--MaxWidth)"},Nz=e=>{var{children:t=null,className:n="",isHorizontal:r=!1,isWidthLimited:a=!1,maxWidth:i="",innerRef:o}=e,l=Q(e,["children","className","isHorizontal","isWidthLimited","maxWidth","innerRef"]);return y.createElement("form",Object.assign({noValidate:!0},i&&{style:Object.assign({[Dz.name]:i},l.style)},l,{className:D(Yt.form,r&&Yt.modifiers.horizontal,(a||i)&&Yt.modifiers.limitWidth,n),ref:o}),t)},oA=y.forwardRef((e,t)=>y.createElement(Nz,Object.assign({innerRef:t},e)));oA.displayName="Form";const up=e=>{var{children:t=null,className:n="",label:r,labelInfo:a,labelIcon:i,isRequired:o=!1,isInline:l=!1,hasNoPaddingTop:s=!1,isStack:u=!1,fieldId:c,role:f}=e,d=Q(e,["children","className","label","labelInfo","labelIcon","isRequired","isInline","hasNoPaddingTop","isStack","fieldId","role"]);const h=f==="group"||f==="radiogroup",p=h?"span":"label",g=y.createElement(y.Fragment,null,y.createElement(p,Object.assign({className:D(Yt.formLabel)},!h&&{htmlFor:c}),y.createElement("span",{className:D(Yt.formLabelText)},r),o&&y.createElement("span",{className:D(Yt.formLabelRequired),"aria-hidden":"true"}," ",gT))," ",y.isValidElement(i)&&i);return y.createElement(Mu,null,b=>y.createElement("div",Object.assign({className:D(Yt.formGroup,n)},f&&{role:f},h&&{"aria-labelledby":`${c||b}-legend`},d),r&&y.createElement("div",Object.assign({className:D(Yt.formGroupLabel,a&&Yt.modifiers.info,s&&Yt.modifiers.noPaddingTop)},h&&{id:`${c||b}-legend`}),a&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(Yt.formGroupLabelMain)},g),y.createElement("div",{className:D(Yt.formGroupLabelInfo)},a)),!a&&g),y.createElement("div",{className:D(Yt.formGroupControl,l&&Yt.modifiers.inline,u&&Yt.modifiers.stack)},t)))};up.displayName="FormGroup";const ws={modifiers:{bordered:"pf-m-bordered",raised:"pf-m-raised",scrollable:"pf-m-scrollable"},panel:"pf-v5-c-panel",panelFooter:"pf-v5-c-panel__footer",panelHeader:"pf-v5-c-panel__header",panelMain:"pf-v5-c-panel__main",panelMainBody:"pf-v5-c-panel__main-body",themeDark:"pf-v5-theme-dark"},Fz=e=>{var{className:t,children:n,variant:r,isScrollable:a,innerRef:i}=e,o=Q(e,["className","children","variant","isScrollable","innerRef"]);return y.createElement("div",Object.assign({className:D(ws.panel,r==="raised"&&ws.modifiers.raised,r==="bordered"&&ws.modifiers.bordered,a&&ws.modifiers.scrollable,t),ref:i},o),n)},lA=y.forwardRef((e,t)=>y.createElement(Fz,Object.assign({innerRef:t},e)));lA.displayName="Panel";const zz={name:"--pf-v5-c-panel__main--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-panel__main--MaxHeight)"},sA=e=>{var{className:t,children:n,maxHeight:r}=e,a=Q(e,["className","children","maxHeight"]);return y.createElement("div",Object.assign({className:D(ws.panelMain,t),style:{[zz.name]:r}},a),n)};sA.displayName="PanelMain";const uA=e=>{var{className:t,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ws.panelMainBody,t)},r),n)};uA.displayName="PanelMainBody";const cA=({className:e,parentRef:t,parentInputRef:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,getAttrValueMap:s,onChange:u,onSearch:c,onClear:f,resetButtonLabel:d="Reset",submitSearchButtonLabel:h="Search",isSearchMenuOpen:p,onToggleAdvancedMenu:g})=>{const b=y.useRef(null),[m,v]=y.useState(!1);y.useEffect(()=>{a.length>0&&!l&&console.error("AdvancedSearchMenu: An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{p&&b&&b.current?(b.current.focus(),v(!0)):!p&&m&&n&&n.current&&n.current.focus()},[p]),y.useEffect(()=>(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",x),function(){document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",x)}));const _=A=>{const I=t&&t.current.contains(A.target);p&&!I&&g(A)},x=A=>{p&&A.key===Hp.Escape&&t&&t.current.contains(A.target)&&(g(A),n&&n.current.focus())},O=A=>{A.preventDefault(),c&&c(A,r,s()),p&&g(A)},S=(A,I,P)=>{const T=s();T[A]=I;let E="";Object.entries(T).forEach(([L,N])=>{if(N.trim()!==""){const U=N.includes(" ")?`'${N.replace(/(^'|'$)/g,"")}'`:N;L!=="haswords"?E=`${E} ${L}${l}${U}`:E=`${E} ${U}`}}),u&&u(P,E.replace(/^\s+/g,""))},w=A=>{const I=s();return I.hasOwnProperty(A)?I[A]:""},C=()=>{const A=[];return a.forEach((I,P)=>{const T=typeof I=="string"?I:I.display,E=typeof I=="string"?I:I.attr;P===0?A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{ref:b,type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)}))):A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)})))}),A.push(y.createElement(Mu,{key:"hasWords"},I=>y.createElement(up,{label:o,fieldId:I},y.createElement(Ns,{type:"text",id:I,value:w("haswords"),onChange:(P,T)=>S("haswords",T,P)})))),A};return p?y.createElement(lA,{variant:"raised",className:D(e)},y.createElement(sA,null,y.createElement(uA,null,y.createElement(oA,null,C(),i||null,y.createElement(iA,null,y.createElement(gt,{variant:"primary",type:"submit",onClick:O,isDisabled:!r},h),!!f&&y.createElement(gt,{variant:"link",type:"reset",onClick:f},d)))))):null};cA.displayName="SearchInput";const Tr={button:"pf-v5-c-button",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{disabled:"pf-m-disabled",plain:"pf-m-plain",icon:"pf-m-icon",hint:"pf-m-hint"},textInputGroup:"pf-v5-c-text-input-group",textInputGroupGroup:"pf-v5-c-text-input-group__group",textInputGroupIcon:"pf-v5-c-text-input-group__icon",textInputGroupMain:"pf-v5-c-text-input-group__main",textInputGroupText:"pf-v5-c-text-input-group__text",textInputGroupTextInput:"pf-v5-c-text-input-group__text-input",textInputGroupUtilities:"pf-v5-c-text-input-group__utilities",themeDark:"pf-v5-theme-dark"},fA=y.createContext({isDisabled:!1}),dA=e=>{var{children:t,className:n,isDisabled:r,isPlain:a,innerRef:i}=e,o=Q(e,["children","className","isDisabled","isPlain","innerRef"]);const l=y.useRef(null),s=i||l;return y.createElement(fA.Provider,{value:{isDisabled:r}},y.createElement("div",Object.assign({ref:s,className:D(Tr.textInputGroup,r&&Tr.modifiers.disabled,a&&Tr.modifiers.plain,n)},o),t))};dA.displayName="TextInputGroup";const Bz=e=>{var{children:t,className:n,icon:r,type:a="text",hint:i,onChange:o=()=>{},onFocus:l,onBlur:s,"aria-label":u="Type to filter",value:c,placeholder:f,innerRef:d,name:h,"aria-activedescendant":p,role:g,isExpanded:b,"aria-controls":m,inputId:v}=e,_=Q(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId"]);const{isDisabled:x}=y.useContext(fA),O=y.useRef(null),S=d||O,w=C=>{o(C,C.currentTarget.value)};return y.createElement("div",Object.assign({className:D(Tr.textInputGroupMain,r&&Tr.modifiers.icon,n)},_),t,y.createElement("span",{className:D(Tr.textInputGroupText)},i&&y.createElement("input",{className:D(Tr.textInputGroupTextInput,Tr.modifiers.hint),type:"text",disabled:!0,"aria-hidden":"true",value:i,id:v}),r&&y.createElement("span",{className:D(Tr.textInputGroupIcon)},r),y.createElement("input",Object.assign({ref:S,type:a,className:D(Tr.textInputGroupTextInput),"aria-label":u,disabled:x,onChange:w,onFocus:l,onBlur:s,value:c||"",placeholder:f,name:h,"aria-activedescendant":p,id:v},g&&{role:g},b!==void 0&&{"aria-expanded":b},m&&{"aria-controls":m}))))},hA=y.forwardRef((e,t)=>y.createElement(Bz,Object.assign({innerRef:t},e)));hA.displayName="TextInputGroupMain";const pA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(Tr.textInputGroupUtilities,n)},r),t)};pA.displayName="TextInputGroupUtilities";const mA=e=>{var{className:t,searchInputId:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,placeholder:s,hint:u,onChange:c,onSearch:f,onClear:d,onToggleAdvancedSearch:h,isAdvancedSearchOpen:p,resultsCount:g,onNextClick:b,onPreviousClick:m,innerRef:v,expandableInput:_,"aria-label":x="Search input",resetButtonLabel:O="Reset",openMenuButtonAriaLabel:S="Open advanced search",previousNavigationButtonAriaLabel:w="Previous",isPreviousNavigationButtonDisabled:C=!1,isNextNavigationButtonDisabled:A=!1,nextNavigationButtonAriaLabel:I="Next",submitSearchButtonLabel:P="Search",isDisabled:T=!1,appendTo:E,zIndex:L=9999,name:N,areUtilitiesDisplayed:U}=e,W=Q(e,["className","searchInputId","value","attributes","formAdditionalItems","hasWordsAttrLabel","advancedSearchDelimiter","placeholder","hint","onChange","onSearch","onClear","onToggleAdvancedSearch","isAdvancedSearchOpen","resultsCount","onNextClick","onPreviousClick","innerRef","expandableInput","aria-label","resetButtonLabel","openMenuButtonAriaLabel","previousNavigationButtonAriaLabel","isPreviousNavigationButtonDisabled","isNextNavigationButtonDisabled","nextNavigationButtonAriaLabel","submitSearchButtonLabel","isDisabled","appendTo","zIndex","name","areUtilitiesDisplayed"]);const[$,F]=y.useState(!1),[k,X]=y.useState(r),te=y.useRef(null),R=y.useRef(null),J=v||R,ae=y.useRef(null),ue=y.useRef(null),ve=y.useRef(null),[ke,q]=y.useState(!1),{isExpanded:Z,onToggleExpand:ie,toggleAriaLabel:K}=_||{};y.useEffect(()=>{var se,pe;if(ke)Z?(se=J==null?void 0:J.current)===null||se===void 0||se.focus():(pe=ae==null?void 0:ae.current)===null||pe===void 0||pe.focus();else return;q(!1)},[ke,Z,J,ae]),y.useEffect(()=>{X(r)},[r]),y.useEffect(()=>{a.length>0&&!l&&console.error("An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{F(p)},[p]);const Te=(se,pe)=>{c&&c(se,pe),X(pe)},ye=se=>{const pe=!$;F(pe),h&&h(se,pe)},Ae=se=>{se.preventDefault(),f&&f(se,r,Re()),F(!1)},Ce=se=>{let pe;return se.match(/\\?.|^$/g).reduce((He,ge)=>(ge==="'"||ge==='"'?(pe||(pe=ge),ge===pe&&(He.quote=!He.quote)):!He.quote&&ge===" "?He.a.push(""):He.a[He.a.length-1]+=ge.replace(/\\(.)/,"$1"),He),{a:[""]}).a},Re=()=>{const se={};return Ce(k).map(He=>{const ge=He.split(l);ge.length===2?se[ge[0]]=ge[1].replace(/(^'|'$)/g,""):ge.length===1&&(se.haswords=se.hasOwnProperty("haswords")?`${se.haswords} ${ge[0]}`:ge[0])}),se},Ge=se=>{se.key==="Enter"&&Ae(se)},_e=se=>{d&&d(se),J&&J.current&&J.current.focus()},re=se=>{X(""),ie(se,Z),q(!0)},oe=r&&(g||!!b&&!!m||!!d&&!_),xe=(se={})=>{var pe=Q(se,[]);return y.createElement(dA,Object.assign({isDisabled:T},pe),y.createElement(hA,{hint:u,icon:y.createElement(mO,null),innerRef:J,value:k,placeholder:s,"aria-label":x,onKeyDown:Ge,onChange:Te,name:N,inputId:n}),(oe||U)&&y.createElement(pA,null,g&&y.createElement(J2,{isRead:!0},g),!!b&&!!m&&y.createElement("div",{className:Tr.textInputGroupGroup},y.createElement(gt,{variant:pn.plain,"aria-label":w,isDisabled:T||C,onClick:m},y.createElement(JF,null)),y.createElement(gt,{variant:pn.plain,"aria-label":I,isDisabled:T||A,onClick:b},y.createElement(f_,null))),!!d&&!_&&y.createElement(gt,{variant:pn.plain,isDisabled:T,"aria-label":O,onClick:_e},y.createElement(Tb,null))))},De=y.createElement(gt,{variant:pn.plain,"aria-label":K,"aria-expanded":Z,icon:Z?y.createElement(Tb,null):y.createElement(mO,null),onClick:re,ref:ae}),Je=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({},pe),y.createElement(Ea,{isFill:!0},xe()," "),y.createElement(Ea,{isPlain:!0},De))},z=(se={})=>{var pe=Q(se,[]);return _?Je(Object.assign({},pe)):xe(Object.assign({},pe))},Y=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({ref:ue},pe),y.createElement(Ea,{isFill:!0},xe()),(a.length>0||h)&&y.createElement(Ea,{isPlain:!0},y.createElement(gt,{className:$&&"pf-m-expanded",variant:pn.control,"aria-label":S,onClick:ye,isDisabled:T,"aria-expanded":$},y.createElement(RT,null))),!!f&&y.createElement(Ea,null,y.createElement(gt,{type:"submit",variant:pn.control,"aria-label":P,onClick:Ae,isDisabled:T},y.createElement(aA,{shouldMirrorRTL:!0},y.createElement(jz,null)))),_&&y.createElement(Ea,null,De))},he=Object.assign(Object.assign({},W),{className:t&&D(t),innerRef:te});if(_&&!Z)return y.createElement(Qc,Object.assign({},he),y.createElement(Ea,null,De));if(f||a.length>0||h){if(a.length>0){const se=y.createElement("div",{ref:ve},y.createElement(cA,{value:r,parentRef:te,parentInputRef:J,onSearch:f,onClear:d,onChange:c,onToggleAdvancedMenu:ye,resetButtonLabel:O,submitSearchButtonLabel:P,attributes:a,formAdditionalItems:i,hasWordsAttrLabel:o,advancedSearchDelimiter:l,getAttrValueMap:Re,isSearchMenuOpen:$})),pe=y.createElement("div",Object.assign({className:D(t),ref:te},W),y.createElement(jl,{trigger:Y(),triggerRef:ue,popper:se,popperRef:ve,isVisible:$,enableFlip:!0,appendTo:()=>E||te.current,zIndex:L})),He=y.createElement("div",Object.assign({className:D(t),ref:te},W),Y(),se);return E!=="inline"?pe:He}return Y(Object.assign({},he))}return z(he)};mA.displayName="SearchInputBase";const gA=y.forwardRef((e,t)=>y.createElement(mA,Object.assign({},e,{innerRef:t})));gA.displayName="SearchInput";var vA={exports:{}},Uz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Hz=Uz,Wz=Hz;function yA(){}function bA(){}bA.resetWarningCache=yA;var Vz=function(){function e(r,a,i,o,l,s){if(s!==Wz){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:bA,resetWarningCache:yA};return n.PropTypes=n,n};vA.exports=Vz();var qz=vA.exports;const tt=at(qz),Sr={list:"pf-v5-c-list",listItem:"pf-v5-c-list__item",listItemIcon:"pf-v5-c-list__item-icon",modifiers:{iconLg:"pf-m-icon-lg",plain:"pf-m-plain",inline:"pf-m-inline",bordered:"pf-m-bordered"}};var Ib;(function(e){e.number="1",e.lowercaseLetter="a",e.uppercaseLetter="A",e.lowercaseRomanNumber="i",e.uppercaseRomanNumber="I"})(Ib||(Ib={}));var Rb;(function(e){e.inline="inline"})(Rb||(Rb={}));var Kp;(function(e){e.ol="ol",e.ul="ul"})(Kp||(Kp={}));const Xp=e=>{var{className:t="",children:n=null,variant:r=null,isBordered:a=!1,isPlain:i=!1,iconSize:o="default",type:l=Ib.number,ref:s=null,component:u=Kp.ul}=e,c=Q(e,["className","children","variant","isBordered","isPlain","iconSize","type","ref","component"]);return u===Kp.ol?y.createElement("ol",Object.assign({ref:s,type:l},i&&{role:"list"},c,{className:D(Sr.list,r&&Sr.modifiers[r],a&&Sr.modifiers.bordered,i&&Sr.modifiers.plain,o&&o==="large"&&Sr.modifiers.iconLg,t)}),n):y.createElement("ul",Object.assign({ref:s},i&&{role:"list"},c,{className:D(Sr.list,r&&Sr.modifiers[r],a&&Sr.modifiers.bordered,i&&Sr.modifiers.plain,o&&o==="large"&&Sr.modifiers.iconLg,t)}),n)};Xp.displayName="List";const Er=e=>{var{icon:t=null,children:n=null}=e,r=Q(e,["icon","children"]);return y.createElement("li",Object.assign({className:D(t&&Sr.listItem)},r),t&&y.createElement("span",{className:D(Sr.listItemIcon)},t),n)};Er.displayName="ListItem";const us={button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dropdown:"pf-v5-c-dropdown",masthead:"pf-v5-c-masthead",mastheadBrand:"pf-v5-c-masthead__brand",mastheadContent:"pf-v5-c-masthead__content",mastheadMain:"pf-v5-c-masthead__main",mastheadToggle:"pf-v5-c-masthead__toggle",menuToggle:"pf-v5-c-menu-toggle",modifiers:{light_200:"pf-m-light-200",light:"pf-m-light",plain:"pf-m-plain",resizeObserver:"pf-m-resize-observer",fullHeight:"pf-m-full-height",horizontal:"pf-m-horizontal",displayStack:"pf-m-display-stack",displayInline:"pf-m-display-inline",insetNone:"pf-m-inset-none",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",displayStackOnSm:"pf-m-display-stack-on-sm",displayInlineOnSm:"pf-m-display-inline-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",displayStackOnMd:"pf-m-display-stack-on-md",displayInlineOnMd:"pf-m-display-inline-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",displayStackOnLg:"pf-m-display-stack-on-lg",displayInlineOnLg:"pf-m-display-inline-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",displayStackOnXl:"pf-m-display-stack-on-xl",displayInlineOnXl:"pf-m-display-inline-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",displayStackOn_2xl:"pf-m-display-stack-on-2xl",displayInlineOn_2xl:"pf-m-display-inline-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl"},nav:"pf-v5-c-nav",page:"pf-v5-c-page",themeDark:"pf-v5-theme-dark",toolbar:"pf-v5-c-toolbar",toolbarContentSection:"pf-v5-c-toolbar__content-section",toolbarExpandableContent:"pf-v5-c-toolbar__expandable-content"},Gz={isManagedSidebar:!1,isSidebarOpen:!1,onSidebarToggle:()=>null,width:null,height:null,getBreakpoint:mT,getVerticalBreakpoint:pT},wd=y.createContext(Gz),Kz=wd.Provider,_A=wd.Consumer,xA=e=>{var{children:t,className:n,backgroundColor:r="dark",display:a={md:"inline"},inset:i}=e,o=Q(e,["children","className","backgroundColor","display","inset"]);const{width:l,getBreakpoint:s}=y.useContext(wd);return y.createElement("header",Object.assign({className:D(us.masthead,Ci(a,us,"display-",s(l)),Ci(i,us,"",s(l)),r==="light"&&us.modifiers.light,r==="light200"&&us.modifiers.light_200,n)},o),t)};xA.displayName="Masthead";const wA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(us.mastheadToggle,n)},r),t)};wA.displayName="MastheadToggle";const Nt={dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuContent:"pf-v5-c-menu__content",menuItem:"pf-v5-c-menu__item",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuListItem:"pf-v5-c-menu__list-item",modifiers:{flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",current:"pf-m-current",drillUp:"pf-m-drill-up",horizontal:"pf-m-horizontal",tertiary:"pf-m-tertiary",horizontalSubnav:"pf-m-horizontal-subnav",light:"pf-m-light",scrollable:"pf-m-scrollable",overflowHidden:"pf-m-overflow-hidden",expandable:"pf-m-expandable",expanded:"pf-m-expanded",drilldown:"pf-m-drilldown",hover:"pf-m-hover",start:"pf-m-start"},nav:"pf-v5-c-nav",navItem:"pf-v5-c-nav__item",navLink:"pf-v5-c-nav__link",navList:"pf-v5-c-nav__list",navScrollButton:"pf-v5-c-nav__scroll-button",navSection:"pf-v5-c-nav__section",navSectionTitle:"pf-v5-c-nav__section-title",navSubnav:"pf-v5-c-nav__subnav",navToggle:"pf-v5-c-nav__toggle",navToggleIcon:"pf-v5-c-nav__toggle-icon",themeDark:"pf-v5-theme-dark"},Xz={},Mf=y.createContext(Xz);class vu extends y.Component{constructor(){super(...arguments),this.state={isScrollable:!1,ouiaStateId:Lo(vu.displayName,this.props.variant),flyoutRef:null},this.navRef=y.createRef()}onSelect(t,n,r,a,i,o){i&&t.preventDefault(),this.props.onSelect(t,{groupId:n,itemId:r,to:a}),o&&o(t,r,n,a)}onToggle(t,n,r){this.props.onToggle(t,{groupId:n,isExpanded:r})}render(){const t=this.props,{"aria-label":n,children:r,className:a,onSelect:i,onToggle:o,theme:l,ouiaId:s,ouiaSafe:u,variant:c}=t,f=Q(t,["aria-label","children","className","onSelect","onToggle","theme","ouiaId","ouiaSafe","variant"]),d=["horizontal","tertiary"].includes(c);return y.createElement(Mf.Provider,{value:{onSelect:(h,p,g,b,m,v)=>this.onSelect(h,p,g,b,m,v),onToggle:(h,p,g)=>this.onToggle(h,p,g),updateIsScrollable:h=>this.setState({isScrollable:h}),isHorizontal:["horizontal","tertiary","horizontal-subnav"].includes(c),flyoutRef:this.state.flyoutRef,setFlyoutRef:h=>this.setState({flyoutRef:h}),navRef:this.navRef}},y.createElement("nav",Object.assign({className:D(Nt.nav,l==="light"&&Nt.modifiers.light,d&&Nt.modifiers.horizontal,c==="tertiary"&&Nt.modifiers.tertiary,c==="horizontal-subnav"&&Nt.modifiers.horizontalSubnav,this.state.isScrollable&&Nt.modifiers.scrollable,a),"aria-label":n||(["tertiary","horizontal-subnav"].includes(c)?"Local":"Global"),ref:this.navRef},Ll(vu.displayName,s!==void 0?s:this.state.ouiaStateId,u),f),r))}}vu.displayName="Nav";vu.defaultProps={onSelect:()=>{},onToggle:()=>{},theme:"dark",ouiaSafe:!0};const Ue={avatar:"pf-v5-c-avatar",brand:"pf-v5-c-brand",button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",masthead:"pf-v5-c-masthead",modifiers:{light:"pf-m-light",menu:"pf-m-menu",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",read:"pf-m-read",selected:"pf-m-selected",unread:"pf-m-unread",attention:"pf-m-attention",expanded:"pf-m-expanded",collapsed:"pf-m-collapsed",pageInsets:"pf-m-page-insets",insetNone:"pf-m-inset-none",fill:"pf-m-fill",noFill:"pf-m-no-fill",limitWidth:"pf-m-limit-width",alignCenter:"pf-m-align-center",overflowScroll:"pf-m-overflow-scroll",shadowBottom:"pf-m-shadow-bottom",shadowTop:"pf-m-shadow-top",stickyTop:"pf-m-sticky-top",stickyBottom:"pf-m-sticky-bottom",stickyTopOnSmHeight:"pf-m-sticky-top-on-sm-height",stickyBottomOnSmHeight:"pf-m-sticky-bottom-on-sm-height",stickyTopOnMdHeight:"pf-m-sticky-top-on-md-height",stickyBottomOnMdHeight:"pf-m-sticky-bottom-on-md-height",stickyTopOnLgHeight:"pf-m-sticky-top-on-lg-height",stickyBottomOnLgHeight:"pf-m-sticky-bottom-on-lg-height",stickyTopOnXlHeight:"pf-m-sticky-top-on-xl-height",stickyBottomOnXlHeight:"pf-m-sticky-bottom-on-xl-height",stickyTopOn_2xlHeight:"pf-m-sticky-top-on-2xl-height",stickyBottomOn_2xlHeight:"pf-m-sticky-bottom-on-2xl-height",light_100:"pf-m-light-100",dark_100:"pf-m-dark-100",dark_200:"pf-m-dark-200",padding:"pf-m-padding",noPadding:"pf-m-no-padding",paddingOnSm:"pf-m-padding-on-sm",noPaddingOnSm:"pf-m-no-padding-on-sm",paddingOnMd:"pf-m-padding-on-md",noPaddingOnMd:"pf-m-no-padding-on-md",paddingOnLg:"pf-m-padding-on-lg",noPaddingOnLg:"pf-m-no-padding-on-lg",paddingOnXl:"pf-m-padding-on-xl",noPaddingOnXl:"pf-m-no-padding-on-xl",paddingOn_2xl:"pf-m-padding-on-2xl",noPaddingOn_2xl:"pf-m-no-padding-on-2xl",light_200:"pf-m-light-200"},nav:"pf-v5-c-nav",notificationBadge:"pf-v5-c-notification-badge",page:"pf-v5-c-page",pageDrawer:"pf-v5-c-page__drawer",pageHeader:"pf-v5-c-page__header",pageHeaderBrand:"pf-v5-c-page__header-brand",pageHeaderBrandLink:"pf-v5-c-page__header-brand-link",pageHeaderBrandToggle:"pf-v5-c-page__header-brand-toggle",pageHeaderNav:"pf-v5-c-page__header-nav",pageHeaderTools:"pf-v5-c-page__header-tools",pageHeaderToolsGroup:"pf-v5-c-page__header-tools-group",pageHeaderToolsItem:"pf-v5-c-page__header-tools-item",pageMain:"pf-v5-c-page__main",pageMainBody:"pf-v5-c-page__main-body",pageMainBreadcrumb:"pf-v5-c-page__main-breadcrumb",pageMainDrawer:"pf-v5-c-page__main-drawer",pageMainGroup:"pf-v5-c-page__main-group",pageMainNav:"pf-v5-c-page__main-nav",pageMainSection:"pf-v5-c-page__main-section",pageMainSubnav:"pf-v5-c-page__main-subnav",pageMainTabs:"pf-v5-c-page__main-tabs",pageMainWizard:"pf-v5-c-page__main-wizard",pageSidebar:"pf-v5-c-page__sidebar",pageSidebarBody:"pf-v5-c-page__sidebar-body",themeDark:"pf-v5-theme-dark"},Yz={isSidebarOpen:!0},d_=y.createContext(Yz),SA=e=>{var{className:t="",children:n,isSidebarOpen:r=!0,theme:a="dark",id:i="page-sidebar"}=e,o=Q(e,["className","children","isSidebarOpen","theme","id"]);return y.createElement(_A,null,({isManagedSidebar:l,isSidebarOpen:s})=>{const u=l?s:r;return y.createElement("div",Object.assign({id:i,className:D(Ue.pageSidebar,a==="light"&&Ue.modifiers.light,u&&Ue.modifiers.expanded,!u&&Ue.modifiers.collapsed,t),"aria-hidden":!u},o),y.createElement(d_.Provider,{value:{isSidebarOpen:u}},n))})};SA.displayName="PageSidebar";class jg extends y.Component{constructor(){super(...arguments),this.direction="ltr",this.state={scrollViewAtStart:!1,scrollViewAtEnd:!1},this.navList=y.createRef(),this.observer=()=>{},this.handleScrollButtons=()=>{const t=this.navList.current;if(t){const n=vh(t,t.firstChild,!1),r=vh(t,t.lastChild,!1);this.setState({scrollViewAtStart:n,scrollViewAtEnd:r}),this.context.updateIsScrollable(!n||!r)}},this.scrollBack=()=>{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=0;i{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=n.length-1;i>=0&&!r;i--)vh(t,n[i],!1)&&(r=n[i],a=n[i+1]);a&&(this.direction==="ltr"?t.scrollLeft+=a.scrollWidth:t.scrollLeft-=a.scrollWidth),this.handleScrollButtons()}}}componentDidMount(){this.observer=Q2(this.navList.current,this.handleScrollButtons,!0),this.direction=Ds(this.navList.current),this.handleScrollButtons()}componentWillUnmount(){this.observer()}componentDidUpdate(){this.direction=Ds(this.navList.current)}render(){const t=this.props,{children:n,className:r,ariaLeftScroll:a,ariaRightScroll:i,backScrollAriaLabel:o,forwardScrollAriaLabel:l}=t,s=Q(t,["children","className","ariaLeftScroll","ariaRightScroll","backScrollAriaLabel","forwardScrollAriaLabel"]),{scrollViewAtStart:u,scrollViewAtEnd:c}=this.state;return y.createElement(Mf.Consumer,null,({isHorizontal:f})=>y.createElement(d_.Consumer,null,({isSidebarOpen:d})=>y.createElement(y.Fragment,null,f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":o||a,onClick:this.scrollBack,disabled:u,tabIndex:d?null:-1},y.createElement(t_,null)),y.createElement("ul",Object.assign({ref:this.navList,className:D(Nt.navList,r),onScroll:this.handleScrollButtons,role:"list"},s),n),f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":l||i,onClick:this.scrollForward,disabled:c,tabIndex:d?null:-1},y.createElement(Iu,null)))))}}jg.displayName="NavList";jg.contextType=Mf;jg.defaultProps={ariaLeftScroll:"Scroll left",backScrollAriaLabel:"Scroll back",ariaRightScroll:"Scroll right",forwardScrollAriaLabel:"Scroll foward"};const Ss=e=>{var{children:t,styleChildren:n=!0,className:r,to:a,isActive:i=!1,groupId:o=null,itemId:l=null,preventDefault:s=!1,onClick:u,component:c="a",flyout:f,onShowFlyout:d,ouiaId:h,ouiaSafe:p,zIndex:g=9999,hasNavLinkWrapper:b}=e,m=Q(e,["children","styleChildren","className","to","isActive","groupId","itemId","preventDefault","onClick","component","flyout","onShowFlyout","ouiaId","ouiaSafe","zIndex","hasNavLinkWrapper"]);const{flyoutRef:v,setFlyoutRef:_,navRef:x}=y.useContext(Mf),{isSidebarOpen:O}=y.useContext(d_),[S,w]=y.useState(null),[C,A]=y.useState(!1),I=y.useRef(),P=I===v,T=y.useRef(),E=f!==void 0,L=E?"button":c;a&&E&&console.error('NavItem cannot have both "to" and "flyout" props.');const N=(q,Z)=>{(!P||Z)&&q?_(I):(P||Z)&&!q&&_(null),d&&q&&d()},U=q=>{const Z=q.target.closest(`.${Nt.navItem}.pf-m-flyout`);E&&!P?N(!0):v!==null&&!Z&&_(null)},W=q=>{q.target.closest(".pf-m-flyout")||(E?N(!1,!0):v!==null&&_(null))},$=q=>{var Z,ie;const K=q.key,Te=q.target;(K===" "||K==="Enter"||K==="ArrowRight")&&E&&(!((Z=I==null?void 0:I.current)===null||Z===void 0)&&Z.contains(Te))&&(q.stopPropagation(),q.preventDefault(),P||(N(!0),w(Te))),(K==="Escape"||K==="ArrowLeft")&&((ie=T==null?void 0:T.current)===null||ie===void 0?void 0:ie.querySelectorAll(`.${Nt.menu}`).length)===1&&P&&(q.stopPropagation(),q.preventDefault(),N(!1))};y.useEffect(()=>(E&&window.addEventListener("click",W),()=>{E&&window.removeEventListener("click",W)}),[]),y.useEffect(()=>{S&&(P?Array.from(T.current.getElementsByTagName("UL")[0].children).filter(Z=>!(Z.classList.contains("pf-m-disabled")||Z.classList.contains(Nt.divider)))[0].firstChild.focus():S.focus())},[P,S]);const F=y.createElement("span",{className:D(Nt.navToggle)},y.createElement("span",{className:D(Nt.navToggleIcon)},y.createElement(Iu,{"aria-hidden":!0}))),k={"aria-haspopup":"menu","aria-expanded":P},X=O?null:-1,te=q=>{const Z=s||!a;return y.createElement(L,Object.assign({href:a,onClick:ie=>q.onSelect(ie,o,l,a,Z,u),className:D(Nt.navLink,i&&Nt.modifiers.current,C&&Nt.modifiers.hover,r),"aria-current":i?"page":null,tabIndex:X},E&&Object.assign({},k),m),b?y.createElement("span",{className:D(`${Nt.nav}__link-text`)},t):t,f&&F)},R=(q,Z)=>y.cloneElement(Z,Object.assign(Object.assign({onClick:ie=>q.onSelect(ie,o,l,a,s,u),"aria-current":i?"page":null},n&&{className:D(Nt.navLink,i&&Nt.modifiers.current,Z.props&&Z.props.className)}),{tabIndex:Z.props.tabIndex||X,children:E?y.createElement(y.Fragment,null,Z.props.children,F):Z.props.children})),J=Ii(Ss.displayName,h,p),ae=()=>{A(!0)},ue=()=>{A(!1)},ve=y.createElement(jl,{triggerRef:I,popper:y.createElement("div",{ref:T,onMouseEnter:ae,onMouseLeave:ue},f),popperRef:T,placement:"right-start",isVisible:P,onDocumentKeyDown:$,zIndex:g,appendTo:x==null?void 0:x.current});return y.createElement(y.Fragment,null,y.createElement("li",Object.assign({onMouseOver:U,className:D(Nt.navItem,E&&Nt.modifiers.flyout,r),ref:I},J),y.createElement(Mf.Consumer,null,q=>y.isValidElement(t)?R(q,t):te(q))),f&&ve)};Ss.displayName="NavItem";const Dg=e=>{var{children:t,className:n="",isVisited:r=!1}=e,a=Q(e,["children","className","isVisited"]);return y.createElement("div",Object.assign({},a,{className:D(wb.content,r&&wb.modifiers.visited,n)}),t)};Dg.displayName="TextContent";var El;(function(e){e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.p="p",e.a="a",e.small="small",e.blockquote="blockquote",e.pre="pre"})(El||(El={}));const Sd=e=>{var{children:t=null,className:n="",component:r=El.p,isVisitedLink:a=!1,ouiaId:i,ouiaSafe:o=!0}=e,l=Q(e,["children","className","component","isVisitedLink","ouiaId","ouiaSafe"]);const s=r,u=Ii(Sd.displayName,i,o);return y.createElement(s,Object.assign({},u,l,{"data-pf-content":!0,className:D(a&&r===El.a&&wb.modifiers.visited,n)}),t)};Sd.displayName="Text";const OA=e=>{var{className:t="",children:n,stickyOnBreakpoint:r,hasShadowTop:a=!1,hasShadowBottom:i=!1,hasOverflowScroll:o=!1,"aria-label":l}=e,s=Q(e,["className","children","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label"]);const{height:u,getVerticalBreakpoint:c}=y.useContext(wd);return y.useEffect(()=>{o&&!l&&console.warn("PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.")},[o,l]),y.createElement("div",Object.assign({},s,{className:D(Ue.pageMainGroup,Ci(r,Ue,"sticky-",c(u),!0),a&&Ue.modifiers.shadowTop,i&&Ue.modifiers.shadowBottom,o&&Ue.modifiers.overflowScroll,t)},o&&{tabIndex:0,role:"region","aria-label":l}),n)};OA.displayName="PageGroup";var gO;(function(e){e.vertical="vertical",e.horizontal="horizontal"})(gO||(gO={}));class h_ extends y.Component{constructor(t){super(t),this.mainRef=y.createRef(),this.pageRef=y.createRef(),this.observer=()=>{},this.getWindowWidth=()=>Oo?this.pageRef.current?this.pageRef.current.clientWidth:window.innerWidth:1200,this.isMobile=()=>this.getWindowWidth(){var o;const{onPageResize:l}=this.props,s=this.isMobile();if(l&&l(i,{mobileView:s,windowSize:this.getWindowWidth()}),s!==this.state.mobileView&&this.setState({mobileView:s}),!((o=this.pageRef)===null||o===void 0)&&o.current){const u=this.pageRef.current.clientWidth,c=this.pageRef.current.clientHeight;this.state.width!==u&&this.setState({width:u}),this.state.height!==c&&this.setState({height:c})}},this.handleResize=_9(this.resize,250),this.handleMainClick=()=>{this.isMobile()&&this.state.mobileIsSidebarOpen&&this.mainRef.current&&this.setState({mobileIsSidebarOpen:!1})},this.onSidebarToggleMobile=()=>{this.setState(i=>({mobileIsSidebarOpen:!i.mobileIsSidebarOpen}))},this.onSidebarToggleDesktop=()=>{this.setState(i=>({desktopIsSidebarOpen:!i.desktopIsSidebarOpen}))};const{isManagedSidebar:n,defaultManagedSidebarIsOpen:r}=t,a=n?r:!0;this.state={desktopIsSidebarOpen:a,mobileIsSidebarOpen:!1,mobileView:!1,width:null,height:null}}componentDidMount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer=Q2(this.pageRef.current,this.handleResize);const r=this.mainRef.current;r&&(r.addEventListener("mousedown",this.handleMainClick),r.addEventListener("touchstart",this.handleMainClick)),this.resize()}}componentWillUnmount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer();const r=this.mainRef.current;r&&(r.removeEventListener("mousedown",this.handleMainClick),r.removeEventListener("touchstart",this.handleMainClick))}}render(){const t=this.props,{breadcrumb:n,isBreadcrumbWidthLimited:r,className:a,children:i,header:o,sidebar:l,notificationDrawer:s,isNotificationDrawerExpanded:u,onNotificationDrawerExpand:c,drawerDefaultSize:f,drawerMinSize:d,drawerMaxSize:h,isTertiaryNavWidthLimited:p,skipToContent:g,role:b,mainContainerId:m,isManagedSidebar:v,defaultManagedSidebarIsOpen:_,onPageResize:x,getBreakpoint:O,getVerticalBreakpoint:S,mainAriaLabel:w,mainTabIndex:C,mainComponent:A,tertiaryNav:I,isTertiaryNavGrouped:P,isBreadcrumbGrouped:T,additionalGroupedContent:E,groupProps:L,breadcrumbProps:N}=t,U=Q(t,["breadcrumb","isBreadcrumbWidthLimited","className","children","header","sidebar","notificationDrawer","isNotificationDrawerExpanded","onNotificationDrawerExpand","drawerDefaultSize","drawerMinSize","drawerMaxSize","isTertiaryNavWidthLimited","skipToContent","role","mainContainerId","isManagedSidebar","defaultManagedSidebarIsOpen","onPageResize","getBreakpoint","getVerticalBreakpoint","mainAriaLabel","mainTabIndex","mainComponent","tertiaryNav","isTertiaryNavGrouped","isBreadcrumbGrouped","additionalGroupedContent","groupProps","breadcrumbProps"]),{mobileView:W,mobileIsSidebarOpen:$,desktopIsSidebarOpen:F,width:k,height:X}=this.state,te={isManagedSidebar:v,onSidebarToggle:W?this.onSidebarToggleMobile:this.onSidebarToggleDesktop,isSidebarOpen:W?$:F,width:k,height:X,getBreakpoint:O,getVerticalBreakpoint:S};let R=null;I&&p?R=y.createElement("div",{className:D(Ue.pageMainNav,Ue.modifiers.limitWidth)},y.createElement("div",{className:D(Ue.pageMainBody)},I)):I&&(R=y.createElement("div",{className:D(Ue.pageMainNav)},I));const J=n?y.createElement("section",{className:D(Ue.pageMainBreadcrumb,r&&Ue.modifiers.limitWidth,Ci(N==null?void 0:N.stickyOnBreakpoint,Ue,"sticky-",S(X),!0))},r?y.createElement("div",{className:D(Ue.pageMainBody)},n):n):null,ue=P||T||E?y.createElement(OA,Object.assign({},L),P&&R,T&&J,E):null,ve=A,ke=y.createElement(ve,{ref:this.mainRef,role:b,id:m,className:D(Ue.pageMain),tabIndex:C,"aria-label":w},ue,!P&&R,!T&&J,i),q=y.createElement(nA,{defaultSize:f,minSize:d,maxSize:h},s);return y.createElement(Kz,{value:te},y.createElement("div",Object.assign({ref:this.pageRef},U,{className:D(Ue.page,k!==null&&X!==null&&"pf-m-resize-observer",k!==null&&`pf-m-breakpoint-${O(k)}`,X!==null&&`pf-m-height-breakpoint-${S(X)}`,a)}),g,o,l,s&&y.createElement("div",{className:D(Ue.pageDrawer)},y.createElement(JT,{isExpanded:u,onExpand:Z=>c(Z)},y.createElement(eA,{panelContent:q},y.createElement(tA,null,ke)))),!s&&ke))}}h_.displayName="Page";h_.defaultProps={isManagedSidebar:!1,isBreadcrumbWidthLimited:!1,defaultManagedSidebarIsOpen:!0,mainTabIndex:-1,isNotificationDrawerExpanded:!1,onNotificationDrawerExpand:()=>null,mainComponent:"main",getBreakpoint:mT,getVerticalBreakpoint:pT};const CA=e=>{var{children:t,className:n,usePageInsets:r,isFilled:a}=e,i=Q(e,["children","className","usePageInsets","isFilled"]);return y.createElement("div",Object.assign({className:D(Ue.pageSidebarBody,r&&Ue.modifiers.pageInsets,a===!1&&Ue.modifiers.noFill,a===!0&&Ue.modifiers.fill,n)},i),t)};CA.displayName="PageSidebarBody";var so;(function(e){e.default="default",e.light="light",e.dark="dark",e.darker="darker"})(so||(so={}));var li;(function(e){e.default="default",e.nav="nav",e.subNav="subnav",e.breadcrumb="breadcrumb",e.tabs="tabs",e.wizard="wizard"})(li||(li={}));const Qz={[li.default]:Ue.pageMainSection,[li.nav]:Ue.pageMainNav,[li.subNav]:Ue.pageMainSubnav,[li.breadcrumb]:Ue.pageMainBreadcrumb,[li.tabs]:Ue.pageMainTabs,[li.wizard]:Ue.pageMainWizard},Jz={[so.default]:"",[so.light]:Ue.modifiers.light,[so.dark]:Ue.modifiers.dark_200,[so.darker]:Ue.modifiers.dark_100},dr=e=>{var{className:t="",children:n,variant:r="default",type:a="default",padding:i,isFilled:o,isWidthLimited:l=!1,isCenterAligned:s=!1,stickyOnBreakpoint:u,hasShadowTop:c=!1,hasShadowBottom:f=!1,hasOverflowScroll:d=!1,"aria-label":h,component:p="section"}=e,g=Q(e,["className","children","variant","type","padding","isFilled","isWidthLimited","isCenterAligned","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label","component"]);const{height:b,getVerticalBreakpoint:m}=y.useContext(wd);y.useEffect(()=>{d&&!h&&console.warn("PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.")},[d,h]);const v=p;return y.createElement(v,Object.assign({},g,{className:D(Qz[a],Ci(i,Ue),Ci(u,Ue,"sticky-",m(b),!0),Jz[r],o===!1&&Ue.modifiers.noFill,o===!0&&Ue.modifiers.fill,l&&Ue.modifiers.limitWidth,l&&s&&a!==li.subNav&&Ue.modifiers.alignCenter,c&&Ue.modifiers.shadowTop,f&&Ue.modifiers.shadowBottom,d&&Ue.modifiers.overflowScroll,t)},d&&{tabIndex:0},{"aria-label":h}),l&&y.createElement("div",{className:D(Ue.pageMainBody)},n),!l&&n)};dr.displayName="PageSection";const EA=e=>{var{children:t,isSidebarOpen:n=!0,onSidebarToggle:r=()=>{},id:a="nav-toggle"}=e,i=Q(e,["children","isSidebarOpen","onSidebarToggle","id"]);return y.createElement(_A,null,({isManagedSidebar:o,onSidebarToggle:l,isSidebarOpen:s})=>{const u=o?l:r,c=o?s:n;return y.createElement(gt,Object.assign({id:a,onClick:u,"aria-label":"Side navigation toggle","aria-expanded":c?"true":"false",variant:pn.plain},i),t)})};EA.displayName="PageToggleButton";const Zz={name:"OutlinedClockIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z",yOffset:0,xOffset:0},eB=ht(Zz),Iv={modifiers:{helpText:"pf-m-help-text"},timestamp:"pf-v5-c-timestamp"};var vO;(function(e){e.full="full",e.long="long",e.medium="medium",e.short="short"})(vO||(vO={}));var $b;(function(e){e.default="default",e.custom="custom"})($b||($b={}));const p_=e=>{var{children:t,className:n,customFormat:r,date:a,dateFormat:i,displaySuffix:o="",is12Hour:l,locale:s,shouldDisplayUTC:u,timeFormat:c,tooltip:f}=e,d=Q(e,["children","className","customFormat","date","dateFormat","displaySuffix","is12Hour","locale","shouldDisplayUTC","timeFormat","tooltip"]);const[h,p]=y.useState(()=>{const P=new Date(a);return Sa(P)?P:new Date});y.useEffect(()=>{const P=new Date(a);Sa(P)&&P.toString()!==new Date(h).toString()?p(P):a||p(new Date)},[a]);const g=c&&!r,b=Object.assign(Object.assign(Object.assign({},i&&!r&&{dateStyle:i}),r&&Object.assign({},r)),l!==void 0&&{hour12:l}),m=new Date(h).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:c})),v=c!=="short"?"medium":"short",_=P=>new Date(P).toUTCString().slice(0,-3),x=new Date(_(h)).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:v})),O=c==="full"?"Coordinated Universal Time":"UTC",S=P=>`${x} ${P||O}`,w=u?S(o):`${m}${o?" "+o:""}`,{dateTime:C}=d,A=Q(d,["dateTime"]),I=y.createElement("span",Object.assign({className:D(Iv.timestamp,f&&Iv.modifiers.helpText,n)},f&&{tabIndex:0},A),y.createElement("time",{className:`${Iv.timestamp}__text`,dateTime:C||new Date(h).toISOString()},t||w));return f?y.createElement($i,Object.assign({content:f.variant===$b.default?S(f.suffix):f.content},f.tooltipProps),I):I};p_.displayName="Timestamp";const kA=e=>{var{children:t=null,className:n="",component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(HF.bullseye,n)},a),t)};kA.displayName="Bullseye";const aa={grid:"pf-v5-l-grid",gridItem:"pf-v5-l-grid__item",modifiers:{all_1Col:"pf-m-all-1-col",all_2Col:"pf-m-all-2-col",all_3Col:"pf-m-all-3-col",all_4Col:"pf-m-all-4-col",all_5Col:"pf-m-all-5-col",all_6Col:"pf-m-all-6-col",all_7Col:"pf-m-all-7-col",all_8Col:"pf-m-all-8-col",all_9Col:"pf-m-all-9-col",all_10Col:"pf-m-all-10-col",all_11Col:"pf-m-all-11-col",all_12Col:"pf-m-all-12-col",all_1ColOnSm:"pf-m-all-1-col-on-sm",all_2ColOnSm:"pf-m-all-2-col-on-sm",all_3ColOnSm:"pf-m-all-3-col-on-sm",all_4ColOnSm:"pf-m-all-4-col-on-sm",all_5ColOnSm:"pf-m-all-5-col-on-sm",all_6ColOnSm:"pf-m-all-6-col-on-sm",all_7ColOnSm:"pf-m-all-7-col-on-sm",all_8ColOnSm:"pf-m-all-8-col-on-sm",all_9ColOnSm:"pf-m-all-9-col-on-sm",all_10ColOnSm:"pf-m-all-10-col-on-sm",all_11ColOnSm:"pf-m-all-11-col-on-sm",all_12ColOnSm:"pf-m-all-12-col-on-sm",all_1ColOnMd:"pf-m-all-1-col-on-md",all_2ColOnMd:"pf-m-all-2-col-on-md",all_3ColOnMd:"pf-m-all-3-col-on-md",all_4ColOnMd:"pf-m-all-4-col-on-md",all_5ColOnMd:"pf-m-all-5-col-on-md",all_6ColOnMd:"pf-m-all-6-col-on-md",all_7ColOnMd:"pf-m-all-7-col-on-md",all_8ColOnMd:"pf-m-all-8-col-on-md",all_9ColOnMd:"pf-m-all-9-col-on-md",all_10ColOnMd:"pf-m-all-10-col-on-md",all_11ColOnMd:"pf-m-all-11-col-on-md",all_12ColOnMd:"pf-m-all-12-col-on-md",all_1ColOnLg:"pf-m-all-1-col-on-lg",all_2ColOnLg:"pf-m-all-2-col-on-lg",all_3ColOnLg:"pf-m-all-3-col-on-lg",all_4ColOnLg:"pf-m-all-4-col-on-lg",all_5ColOnLg:"pf-m-all-5-col-on-lg",all_6ColOnLg:"pf-m-all-6-col-on-lg",all_7ColOnLg:"pf-m-all-7-col-on-lg",all_8ColOnLg:"pf-m-all-8-col-on-lg",all_9ColOnLg:"pf-m-all-9-col-on-lg",all_10ColOnLg:"pf-m-all-10-col-on-lg",all_11ColOnLg:"pf-m-all-11-col-on-lg",all_12ColOnLg:"pf-m-all-12-col-on-lg",all_1ColOnXl:"pf-m-all-1-col-on-xl",all_2ColOnXl:"pf-m-all-2-col-on-xl",all_3ColOnXl:"pf-m-all-3-col-on-xl",all_4ColOnXl:"pf-m-all-4-col-on-xl",all_5ColOnXl:"pf-m-all-5-col-on-xl",all_6ColOnXl:"pf-m-all-6-col-on-xl",all_7ColOnXl:"pf-m-all-7-col-on-xl",all_8ColOnXl:"pf-m-all-8-col-on-xl",all_9ColOnXl:"pf-m-all-9-col-on-xl",all_10ColOnXl:"pf-m-all-10-col-on-xl",all_11ColOnXl:"pf-m-all-11-col-on-xl",all_12ColOnXl:"pf-m-all-12-col-on-xl",all_1ColOn_2xl:"pf-m-all-1-col-on-2xl",all_2ColOn_2xl:"pf-m-all-2-col-on-2xl",all_3ColOn_2xl:"pf-m-all-3-col-on-2xl",all_4ColOn_2xl:"pf-m-all-4-col-on-2xl",all_5ColOn_2xl:"pf-m-all-5-col-on-2xl",all_6ColOn_2xl:"pf-m-all-6-col-on-2xl",all_7ColOn_2xl:"pf-m-all-7-col-on-2xl",all_8ColOn_2xl:"pf-m-all-8-col-on-2xl",all_9ColOn_2xl:"pf-m-all-9-col-on-2xl",all_10ColOn_2xl:"pf-m-all-10-col-on-2xl",all_11ColOn_2xl:"pf-m-all-11-col-on-2xl",all_12ColOn_2xl:"pf-m-all-12-col-on-2xl","1Col":"pf-m-1-col","2Col":"pf-m-2-col","3Col":"pf-m-3-col","4Col":"pf-m-4-col","5Col":"pf-m-5-col","6Col":"pf-m-6-col","7Col":"pf-m-7-col","8Col":"pf-m-8-col","9Col":"pf-m-9-col","10Col":"pf-m-10-col","11Col":"pf-m-11-col","12Col":"pf-m-12-col",offset_1Col:"pf-m-offset-1-col",offset_2Col:"pf-m-offset-2-col",offset_3Col:"pf-m-offset-3-col",offset_4Col:"pf-m-offset-4-col",offset_5Col:"pf-m-offset-5-col",offset_6Col:"pf-m-offset-6-col",offset_7Col:"pf-m-offset-7-col",offset_8Col:"pf-m-offset-8-col",offset_9Col:"pf-m-offset-9-col",offset_10Col:"pf-m-offset-10-col",offset_11Col:"pf-m-offset-11-col",offset_12Col:"pf-m-offset-12-col","1Row":"pf-m-1-row","2Row":"pf-m-2-row","3Row":"pf-m-3-row","4Row":"pf-m-4-row","5Row":"pf-m-5-row","6Row":"pf-m-6-row","7Row":"pf-m-7-row","8Row":"pf-m-8-row","9Row":"pf-m-9-row","10Row":"pf-m-10-row","11Row":"pf-m-11-row","12Row":"pf-m-12-row","1ColOnSm":"pf-m-1-col-on-sm","2ColOnSm":"pf-m-2-col-on-sm","3ColOnSm":"pf-m-3-col-on-sm","4ColOnSm":"pf-m-4-col-on-sm","5ColOnSm":"pf-m-5-col-on-sm","6ColOnSm":"pf-m-6-col-on-sm","7ColOnSm":"pf-m-7-col-on-sm","8ColOnSm":"pf-m-8-col-on-sm","9ColOnSm":"pf-m-9-col-on-sm","10ColOnSm":"pf-m-10-col-on-sm","11ColOnSm":"pf-m-11-col-on-sm","12ColOnSm":"pf-m-12-col-on-sm",offset_1ColOnSm:"pf-m-offset-1-col-on-sm",offset_2ColOnSm:"pf-m-offset-2-col-on-sm",offset_3ColOnSm:"pf-m-offset-3-col-on-sm",offset_4ColOnSm:"pf-m-offset-4-col-on-sm",offset_5ColOnSm:"pf-m-offset-5-col-on-sm",offset_6ColOnSm:"pf-m-offset-6-col-on-sm",offset_7ColOnSm:"pf-m-offset-7-col-on-sm",offset_8ColOnSm:"pf-m-offset-8-col-on-sm",offset_9ColOnSm:"pf-m-offset-9-col-on-sm",offset_10ColOnSm:"pf-m-offset-10-col-on-sm",offset_11ColOnSm:"pf-m-offset-11-col-on-sm",offset_12ColOnSm:"pf-m-offset-12-col-on-sm","1RowOnSm":"pf-m-1-row-on-sm","2RowOnSm":"pf-m-2-row-on-sm","3RowOnSm":"pf-m-3-row-on-sm","4RowOnSm":"pf-m-4-row-on-sm","5RowOnSm":"pf-m-5-row-on-sm","6RowOnSm":"pf-m-6-row-on-sm","7RowOnSm":"pf-m-7-row-on-sm","8RowOnSm":"pf-m-8-row-on-sm","9RowOnSm":"pf-m-9-row-on-sm","10RowOnSm":"pf-m-10-row-on-sm","11RowOnSm":"pf-m-11-row-on-sm","12RowOnSm":"pf-m-12-row-on-sm","1ColOnMd":"pf-m-1-col-on-md","2ColOnMd":"pf-m-2-col-on-md","3ColOnMd":"pf-m-3-col-on-md","4ColOnMd":"pf-m-4-col-on-md","5ColOnMd":"pf-m-5-col-on-md","6ColOnMd":"pf-m-6-col-on-md","7ColOnMd":"pf-m-7-col-on-md","8ColOnMd":"pf-m-8-col-on-md","9ColOnMd":"pf-m-9-col-on-md","10ColOnMd":"pf-m-10-col-on-md","11ColOnMd":"pf-m-11-col-on-md","12ColOnMd":"pf-m-12-col-on-md",offset_1ColOnMd:"pf-m-offset-1-col-on-md",offset_2ColOnMd:"pf-m-offset-2-col-on-md",offset_3ColOnMd:"pf-m-offset-3-col-on-md",offset_4ColOnMd:"pf-m-offset-4-col-on-md",offset_5ColOnMd:"pf-m-offset-5-col-on-md",offset_6ColOnMd:"pf-m-offset-6-col-on-md",offset_7ColOnMd:"pf-m-offset-7-col-on-md",offset_8ColOnMd:"pf-m-offset-8-col-on-md",offset_9ColOnMd:"pf-m-offset-9-col-on-md",offset_10ColOnMd:"pf-m-offset-10-col-on-md",offset_11ColOnMd:"pf-m-offset-11-col-on-md",offset_12ColOnMd:"pf-m-offset-12-col-on-md","1RowOnMd":"pf-m-1-row-on-md","2RowOnMd":"pf-m-2-row-on-md","3RowOnMd":"pf-m-3-row-on-md","4RowOnMd":"pf-m-4-row-on-md","5RowOnMd":"pf-m-5-row-on-md","6RowOnMd":"pf-m-6-row-on-md","7RowOnMd":"pf-m-7-row-on-md","8RowOnMd":"pf-m-8-row-on-md","9RowOnMd":"pf-m-9-row-on-md","10RowOnMd":"pf-m-10-row-on-md","11RowOnMd":"pf-m-11-row-on-md","12RowOnMd":"pf-m-12-row-on-md","1ColOnLg":"pf-m-1-col-on-lg","2ColOnLg":"pf-m-2-col-on-lg","3ColOnLg":"pf-m-3-col-on-lg","4ColOnLg":"pf-m-4-col-on-lg","5ColOnLg":"pf-m-5-col-on-lg","6ColOnLg":"pf-m-6-col-on-lg","7ColOnLg":"pf-m-7-col-on-lg","8ColOnLg":"pf-m-8-col-on-lg","9ColOnLg":"pf-m-9-col-on-lg","10ColOnLg":"pf-m-10-col-on-lg","11ColOnLg":"pf-m-11-col-on-lg","12ColOnLg":"pf-m-12-col-on-lg",offset_1ColOnLg:"pf-m-offset-1-col-on-lg",offset_2ColOnLg:"pf-m-offset-2-col-on-lg",offset_3ColOnLg:"pf-m-offset-3-col-on-lg",offset_4ColOnLg:"pf-m-offset-4-col-on-lg",offset_5ColOnLg:"pf-m-offset-5-col-on-lg",offset_6ColOnLg:"pf-m-offset-6-col-on-lg",offset_7ColOnLg:"pf-m-offset-7-col-on-lg",offset_8ColOnLg:"pf-m-offset-8-col-on-lg",offset_9ColOnLg:"pf-m-offset-9-col-on-lg",offset_10ColOnLg:"pf-m-offset-10-col-on-lg",offset_11ColOnLg:"pf-m-offset-11-col-on-lg",offset_12ColOnLg:"pf-m-offset-12-col-on-lg","1RowOnLg":"pf-m-1-row-on-lg","2RowOnLg":"pf-m-2-row-on-lg","3RowOnLg":"pf-m-3-row-on-lg","4RowOnLg":"pf-m-4-row-on-lg","5RowOnLg":"pf-m-5-row-on-lg","6RowOnLg":"pf-m-6-row-on-lg","7RowOnLg":"pf-m-7-row-on-lg","8RowOnLg":"pf-m-8-row-on-lg","9RowOnLg":"pf-m-9-row-on-lg","10RowOnLg":"pf-m-10-row-on-lg","11RowOnLg":"pf-m-11-row-on-lg","12RowOnLg":"pf-m-12-row-on-lg","1ColOnXl":"pf-m-1-col-on-xl","2ColOnXl":"pf-m-2-col-on-xl","3ColOnXl":"pf-m-3-col-on-xl","4ColOnXl":"pf-m-4-col-on-xl","5ColOnXl":"pf-m-5-col-on-xl","6ColOnXl":"pf-m-6-col-on-xl","7ColOnXl":"pf-m-7-col-on-xl","8ColOnXl":"pf-m-8-col-on-xl","9ColOnXl":"pf-m-9-col-on-xl","10ColOnXl":"pf-m-10-col-on-xl","11ColOnXl":"pf-m-11-col-on-xl","12ColOnXl":"pf-m-12-col-on-xl",offset_1ColOnXl:"pf-m-offset-1-col-on-xl",offset_2ColOnXl:"pf-m-offset-2-col-on-xl",offset_3ColOnXl:"pf-m-offset-3-col-on-xl",offset_4ColOnXl:"pf-m-offset-4-col-on-xl",offset_5ColOnXl:"pf-m-offset-5-col-on-xl",offset_6ColOnXl:"pf-m-offset-6-col-on-xl",offset_7ColOnXl:"pf-m-offset-7-col-on-xl",offset_8ColOnXl:"pf-m-offset-8-col-on-xl",offset_9ColOnXl:"pf-m-offset-9-col-on-xl",offset_10ColOnXl:"pf-m-offset-10-col-on-xl",offset_11ColOnXl:"pf-m-offset-11-col-on-xl",offset_12ColOnXl:"pf-m-offset-12-col-on-xl","1RowOnXl":"pf-m-1-row-on-xl","2RowOnXl":"pf-m-2-row-on-xl","3RowOnXl":"pf-m-3-row-on-xl","4RowOnXl":"pf-m-4-row-on-xl","5RowOnXl":"pf-m-5-row-on-xl","6RowOnXl":"pf-m-6-row-on-xl","7RowOnXl":"pf-m-7-row-on-xl","8RowOnXl":"pf-m-8-row-on-xl","9RowOnXl":"pf-m-9-row-on-xl","10RowOnXl":"pf-m-10-row-on-xl","11RowOnXl":"pf-m-11-row-on-xl","12RowOnXl":"pf-m-12-row-on-xl","1ColOn_2xl":"pf-m-1-col-on-2xl","2ColOn_2xl":"pf-m-2-col-on-2xl","3ColOn_2xl":"pf-m-3-col-on-2xl","4ColOn_2xl":"pf-m-4-col-on-2xl","5ColOn_2xl":"pf-m-5-col-on-2xl","6ColOn_2xl":"pf-m-6-col-on-2xl","7ColOn_2xl":"pf-m-7-col-on-2xl","8ColOn_2xl":"pf-m-8-col-on-2xl","9ColOn_2xl":"pf-m-9-col-on-2xl","10ColOn_2xl":"pf-m-10-col-on-2xl","11ColOn_2xl":"pf-m-11-col-on-2xl","12ColOn_2xl":"pf-m-12-col-on-2xl",offset_1ColOn_2xl:"pf-m-offset-1-col-on-2xl",offset_2ColOn_2xl:"pf-m-offset-2-col-on-2xl",offset_3ColOn_2xl:"pf-m-offset-3-col-on-2xl",offset_4ColOn_2xl:"pf-m-offset-4-col-on-2xl",offset_5ColOn_2xl:"pf-m-offset-5-col-on-2xl",offset_6ColOn_2xl:"pf-m-offset-6-col-on-2xl",offset_7ColOn_2xl:"pf-m-offset-7-col-on-2xl",offset_8ColOn_2xl:"pf-m-offset-8-col-on-2xl",offset_9ColOn_2xl:"pf-m-offset-9-col-on-2xl",offset_10ColOn_2xl:"pf-m-offset-10-col-on-2xl",offset_11ColOn_2xl:"pf-m-offset-11-col-on-2xl",offset_12ColOn_2xl:"pf-m-offset-12-col-on-2xl","1RowOn_2xl":"pf-m-1-row-on-2xl","2RowOn_2xl":"pf-m-2-row-on-2xl","3RowOn_2xl":"pf-m-3-row-on-2xl","4RowOn_2xl":"pf-m-4-row-on-2xl","5RowOn_2xl":"pf-m-5-row-on-2xl","6RowOn_2xl":"pf-m-6-row-on-2xl","7RowOn_2xl":"pf-m-7-row-on-2xl","8RowOn_2xl":"pf-m-8-row-on-2xl","9RowOn_2xl":"pf-m-9-row-on-2xl","10RowOn_2xl":"pf-m-10-row-on-2xl","11RowOn_2xl":"pf-m-11-row-on-2xl","12RowOn_2xl":"pf-m-12-row-on-2xl",gutter:"pf-m-gutter"}};var yO;(function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"})(yO||(yO={}));var Yp;(function(e){e.sm="Sm",e.md="Md",e.lg="Lg",e.xl="Xl",e.xl2="_2xl"})(Yp||(Yp={}));const PA={name:"--pf-v5-l-grid--item--Order",value:"0",var:"var(--pf-v5-l-grid--item--Order)"},TA=e=>{var{children:t=null,className:n="",component:r="div",hasGutter:a,span:i=null,order:o,style:l}=e,s=Q(e,["children","className","component","hasGutter","span","order","style"]);const u=[aa.grid,i&&aa.modifiers[`all_${i}Col`]],c=r;return Object.entries(Yp).forEach(([f,d])=>{const h=f,p=s[h];p&&u.push(aa.modifiers[`all_${p}ColOn${d}`]),delete s[h]}),y.createElement(c,Object.assign({className:D(...u,a&&aa.modifiers.gutter,n),style:l||o?Object.assign(Object.assign({},l),hT(o,PA.name)):void 0},s),t)};TA.displayName="Grid";const Gi=e=>{var{children:t=null,className:n="",component:r="div",span:a=null,rowSpan:i=null,offset:o=null,order:l,style:s}=e,u=Q(e,["children","className","component","span","rowSpan","offset","order","style"]);const c=[aa.gridItem,a&&aa.modifiers[`${a}Col`],i&&aa.modifiers[`${i}Row`],o&&aa.modifiers[`offset_${o}Col`]],f=r;return Object.entries(Yp).forEach(([d,h])=>{const p=d,g=`${p}RowSpan`,b=`${p}Offset`,m=u[p],v=u[g],_=u[b];m&&c.push(aa.modifiers[`${m}ColOn${h}`]),v&&c.push(aa.modifiers[`${v}RowOn${h}`]),_&&c.push(aa.modifiers[`offset_${_}ColOn${h}`]),delete u[p],delete u[g],delete u[b]}),y.createElement(f,Object.assign({className:D(...c,n),style:s||l?Object.assign(Object.assign({},s),hT(l,PA.name)):void 0},u),t)};Gi.displayName="GridItem";const Jc={modifiers:{wrap:"pf-m-wrap",fill:"pf-m-fill",gutter:"pf-m-gutter"},split:"pf-v5-l-split",splitItem:"pf-v5-l-split__item"},AA=e=>{var{hasGutter:t=!1,isWrappable:n=!1,className:r="",children:a=null,component:i="div"}=e,o=Q(e,["hasGutter","isWrappable","className","children","component"]);const l=i;return y.createElement(l,Object.assign({},o,{className:D(Jc.split,t&&Jc.modifiers.gutter,n&&Jc.modifiers.wrap,r)}),a)};AA.displayName="Split";const cp=e=>{var{isFilled:t=!1,className:n="",children:r=null}=e,a=Q(e,["isFilled","className","children"]);return y.createElement("div",Object.assign({},a,{className:D(Jc.splitItem,t&&Jc.modifiers.fill,n)}),r)};cp.displayName="SplitItem";const tB={name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0},nB=ht(tB),rB=nB,aB={name:"BalanceScaleIcon",height:512,width:640,svgPath:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z",yOffset:0,xOffset:0},iB=ht(aB),oB={name:"BarsIcon",height:512,width:448,svgPath:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z",yOffset:0,xOffset:0},lB=ht(oB),sB={name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0},uB=ht(sB),cB=uB,fB={name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0},dB=ht(fB),hB=dB,pB={name:"FilterIcon",height:512,width:512,svgPath:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z",yOffset:0,xOffset:0},mB=ht(pB),gB={name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0},vB=ht(gB),bO=vB,yB={name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0},bB=ht(yB),_B=bB,xB={name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0},wB=ht(xB),SB=wB,OB={name:"OutlinedQuestionCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z",yOffset:0,xOffset:0},CB=ht(OB),EB={name:"PowerOffIcon",height:512,width:512,svgPath:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z",yOffset:0,xOffset:0},kB=ht(EB),PB={name:"UserIcon",height:512,width:448,svgPath:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z",yOffset:0,xOffset:0},TB=ht(PB);/** +*/function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VS(e){for(var t=1;t0){var r=t[t.length-1];r!==n&&r.pause()}var a=t.indexOf(n);a===-1||t.splice(a,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},m9=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},g9=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Gc=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},v9=function(t){return Gc(t)&&!t.shiftKey},y9=function(t){return Gc(t)&&t.shiftKey},GS=function(t){return setTimeout(t,0)},KS=function(t,n){var r=-1;return t.every(function(a,i){return n(a)?(r=i,!1):!0}),r},oc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?L-1:0),U=1;U=0)T=r.activeElement;else{var E=o.tabbableGroups[0],L=E&&E.firstTabbableNode;T=L||c("fallbackFocus")}if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},d=function(){if(o.containerGroups=o.containers.map(function(T){var E=u9(T,i.tabbableOptions),L=c9(T,i.tabbableOptions),N=E.length>0?E[0]:void 0,U=E.length>0?E[E.length-1]:void 0,W=L.find(function(k){return ts(k)}),$=L.slice().reverse().find(function(k){return ts(k)}),F=!!E.find(function(k){return Go(k)>0});return{container:T,tabbableNodes:E,focusableNodes:L,posTabIndexesFound:F,firstTabbableNode:N,lastTabbableNode:U,firstDomTabbableNode:W,lastDomTabbableNode:$,nextTabbableNode:function(X){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=E.indexOf(X);return R<0?te?L.slice(L.indexOf(X)+1).find(function(J){return ts(J)}):L.slice(0,L.indexOf(X)).reverse().find(function(J){return ts(J)}):E[R+(te?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(T){return T.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function P(T){var E=T.activeElement;if(E)return E.shadowRoot&&E.shadowRoot.activeElement!==null?P(E.shadowRoot):E},p=function P(T){if(T!==!1&&T!==h(document)){if(!T||!T.focus){P(f());return}T.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=T,m9(T)&&T.select()}},g=function(T){var E=c("setReturnFocus",T);return E||(E===!1?!1:T)},b=function(T){var E=T.target,L=T.event,N=T.isBackward,U=N===void 0?!1:N;E=E||gh(L),d();var W=null;if(o.tabbableGroups.length>0){var $=u(E,L),F=$>=0?o.containerGroups[$]:void 0;if($<0)U?W=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:W=o.tabbableGroups[0].firstTabbableNode;else if(U){var k=KS(o.tabbableGroups,function(ue){var ve=ue.firstTabbableNode;return E===ve});if(k<0&&(F.container===E||Sv(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E,!1))&&(k=$),k>=0){var X=k===0?o.tabbableGroups.length-1:k-1,te=o.tabbableGroups[X];W=Go(E)>=0?te.lastTabbableNode:te.lastDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E,!1))}else{var R=KS(o.tabbableGroups,function(ue){var ve=ue.lastTabbableNode;return E===ve});if(R<0&&(F.container===E||Sv(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E))&&(R=$),R>=0){var J=R===o.tabbableGroups.length-1?0:R+1,ae=o.tabbableGroups[J];W=Go(E)>=0?ae.firstTabbableNode:ae.firstDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E))}}else W=c("fallbackFocus");return W},m=function(T){var E=gh(T);if(!(u(E,T)>=0)){if(oc(i.clickOutsideDeactivates,T)){l.deactivate({returnFocus:i.returnFocusOnDeactivate});return}oc(i.allowOutsideClick,T)||T.preventDefault()}},v=function(T){var E=gh(T),L=u(E,T)>=0;if(L||E instanceof Document)L&&(o.mostRecentlyFocusedNode=E);else{T.stopImmediatePropagation();var N,U=!0;if(o.mostRecentlyFocusedNode)if(Go(o.mostRecentlyFocusedNode)>0){var W=u(o.mostRecentlyFocusedNode),$=o.containerGroups[W].tabbableNodes;if($.length>0){var F=$.findIndex(function(k){return k===o.mostRecentlyFocusedNode});F>=0&&(i.isKeyForward(o.recentNavEvent)?F+1<$.length&&(N=$[F+1],U=!1):F-1>=0&&(N=$[F-1],U=!1))}}else o.containerGroups.some(function(k){return k.tabbableNodes.some(function(X){return Go(X)>0})})||(U=!1);else U=!1;U&&(N=b({target:o.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(o.recentNavEvent)})),p(N||o.mostRecentlyFocusedNode||f())}o.recentNavEvent=void 0},_=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=T;var L=b({event:T,isBackward:E});L&&(Gc(T)&&T.preventDefault(),p(L))},x=function(T){if(g9(T)&&oc(i.escapeDeactivates,T)!==!1){T.preventDefault(),l.deactivate();return}(i.isKeyForward(T)||i.isKeyBackward(T))&&_(T,i.isKeyBackward(T))},O=function(T){var E=gh(T);u(E,T)>=0||oc(i.clickOutsideDeactivates,T)||oc(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},S=function(){if(o.active)return qS.activateTrap(a,l),o.delayInitialFocusTimer=i.delayInitialFocus?GS(function(){p(f())}):p(f()),r.addEventListener("focusin",v,!0),r.addEventListener("mousedown",m,{capture:!0,passive:!1}),r.addEventListener("touchstart",m,{capture:!0,passive:!1}),r.addEventListener("click",O,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),l},w=function(){if(o.active)return r.removeEventListener("focusin",v,!0),r.removeEventListener("mousedown",m,!0),r.removeEventListener("touchstart",m,!0),r.removeEventListener("click",O,!0),r.removeEventListener("keydown",x,!0),l},C=function(T){var E=T.some(function(L){var N=Array.from(L.removedNodes);return N.some(function(U){return U===o.mostRecentlyFocusedNode})});E&&p(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(C):void 0,I=function(){A&&(A.disconnect(),o.active&&!o.paused&&o.containers.map(function(T){A.observe(T,{subtree:!0,childList:!0})}))};return l={get active(){return o.active},get paused(){return o.paused},activate:function(T){if(o.active)return this;var E=s(T,"onActivate"),L=s(T,"onPostActivate"),N=s(T,"checkCanFocusTrap");N||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,E==null||E();var U=function(){N&&d(),S(),I(),L==null||L()};return N?(N(o.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(T){if(!o.active)return this;var E=VS({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,w(),o.active=!1,o.paused=!1,I(),qS.deactivateTrap(a,l);var L=s(E,"onDeactivate"),N=s(E,"onPostDeactivate"),U=s(E,"checkCanReturnFocus"),W=s(E,"returnFocus","returnFocusOnDeactivate");L==null||L();var $=function(){GS(function(){W&&p(g(o.nodeFocusedBeforeActivation)),N==null||N()})};return W&&U?(U(g(o.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(T){if(o.paused||!o.active)return this;var E=s(T,"onPause"),L=s(T,"onPostPause");return o.paused=!0,E==null||E(),w(),I(),L==null||L(),this},unpause:function(T){if(!o.paused||!o.active)return this;var E=s(T,"onUnpause"),L=s(T,"onPostUnpause");return o.paused=!1,E==null||E(),d(),S(),I(),L==null||L(),this},updateContainerElements:function(T){var E=[].concat(T).filter(Boolean);return o.containers=E.map(function(L){return typeof L=="string"?r.querySelector(L):L}),o.active&&d(),I(),this}},l.updateContainerElements(t),l};function x9(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>()=>{t.current()},[])}const B2=y.forwardRef(function(t,n){var{active:r=!0,paused:a=!1,focusTrapOptions:i={},preventScrollOnDeactivate:o=!1}=t,l=Q(t,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const s=y.useRef(null);y.useImperativeHandle(n,()=>s.current);const u=y.useRef(null);y.useEffect(()=>{const f=_9(s.current,Object.assign(Object.assign({},i),{returnFocusOnDeactivate:!1}));return u.current=f,()=>{f.deactivate()}},[]),y.useEffect(()=>{const f=u.current;r?f==null||f.activate():f==null||f.deactivate()},[r]),y.useEffect(()=>{const f=u.current;a?f==null||f.pause():f==null||f.unpause()},[a]);const c=y.useRef(typeof document<"u"?document.activeElement:null);return x9(()=>{i.returnFocusOnDeactivate!==!1&&c.current instanceof HTMLElement&&c.current.focus({preventScroll:o})}),M.createElement("div",Object.assign({ref:s},l))});B2.displayName="FocusTrap";function U2(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function w9(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function vh(e,t,n,r=!1){if(!e||!t)return!1;const a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=Math.ceil(a.left),l=Math.floor(a.right),s=Math.ceil(i.left),u=Math.floor(i.right),c=s>=o&&u<=l,f=(n||!r&&a.widtho||u>l&&sObject.entries(e||{}).reduce((n,[r,a])=>r==="default"?Object.assign(Object.assign({},n),{[t]:a}):Object.assign(Object.assign({},n),{[`${t}-on-${r}`]:a}),{}),Ci=(e,t,n="",r,a)=>{if(!e)return"";if(r&&!a){if(r in e)return t.modifiers[Ov(`${n}${e[r]}`)];const i=["2xl","xl","lg","md","sm","default"],o=i.indexOf(r);for(let l=o;l`${n}${o}${i!=="default"?`-on-${i}`:""}${a&&i!=="default"?"-height":""}`).map(Ov).map(i=>i.replace(/-?(\dxl)/gi,(o,l)=>`_${l}`)).map(i=>t.modifiers[i]).filter(Boolean).join(" ")},gT=e=>e===null?null:e>=ic["2xl"]?"2xl":e>=ic.xl?"xl":e>=ic.lg?"lg":e>=ic.md?"md":e>=ic.sm?"sm":"default",vT=e=>e===null?null:e>=ac["2xl"]?"2xl":e>=ac.xl?"xl":e>=ac.lg?"lg":e>=ac.md?"md":e>=ac.sm?"sm":"default",S9=e=>e.toUpperCase().replace("-","").replace("_",""),Ov=e=>e.replace(/([-_][a-z])/gi,S9),Oo=!!(typeof window<"u"&&window.document&&window.document.createElement),XS=(e,t)=>{const n=getComputedStyle(t),r=()=>{let o="";const l={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let s;return n.fontStretch in l?s=l[n.fontStretch]:s="normal",o=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+s+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,o},i=document.createElement("canvas").getContext("2d");return i.font=n.font||r(),i.measureText(e).width},O9=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},C9=(e,t)=>{const n=O9(e).width;let r=t;if(XS(t,e)>n){for(;XS(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},yh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},Ds=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let E9=0;function k9(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():U2()}class Mu extends y.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?k9():E9++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Mu.displayName="GenerateId";Mu.defaultProps={prefix:"pf-random-id-",isRandom:!1};const yT="*";let P9=0;const YS="OUIA-Generated-",Cv={};function Ll(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ii=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":T9(e,t,r)}),T9=(e,t,n)=>{const r=y.useMemo(()=>Lo(e,n),[e,n]);return t??r};function Lo(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,Cv[n]||(Cv[n]=0),`${YS}${e}-${t?`${t}-`:""}${++Cv[n]}`}catch{return`${YS}${e}-${t?`${t}-`:""}${++P9}`}}function Of(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 qa(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function H2(e){const t=qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cf(e){const t=qa(e).Element;return e instanceof t||e instanceof Element}function Ua(e){const t=qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function M9(e){return e===qa(e)||!Ua(e)?H2(e):A9(e)}function ma(e){return e?(e.nodeName||"").toLowerCase():null}function Ri(e){return(Cf(e)?e.ownerDocument:e.document).documentElement}function W2(e){return Of(Ri(e)).left+H2(e).scrollLeft}function gi(e){return qa(e).getComputedStyle(e)}function V2(e){const{overflow:t,overflowX:n,overflowY:r}=gi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function I9(e,t,n=!1){const r=Ri(t),a=Of(e),i=Ua(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((ma(t)!=="body"||V2(r))&&(o=M9(t)),Ua(t)?(l=Of(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=W2(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function q2(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Ig(e){return ma(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Ri(e)}function bT(e){return["html","body","#document"].indexOf(ma(e))>=0?e.ownerDocument.body:Ua(e)&&V2(e)?e:bT(Ig(e))}function Kc(e,t=[]){const n=bT(e),r=ma(n)==="body",a=qa(n),i=r?[a].concat(a.visualViewport||[],V2(n)?n:[]):n,o=t.concat(i);return r?o:o.concat(Kc(Ig(i)))}function R9(e){return["table","td","th"].indexOf(ma(e))>=0}function QS(e){if(!Ua(e)||gi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Ri(t);if(ma(t)==="body"&&gi(t).position==="static"&&gi(n).position!=="static")return n}return t}function $9(e){let t=Ig(e);for(;Ua(t)&&["html","body"].indexOf(ma(t))<0;){const n=gi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function bd(e){const t=qa(e);let n=QS(e);for(;n&&R9(n)&&gi(n).position==="static";)n=QS(n);return n&&ma(n)==="body"&&gi(n).position==="static"?t:n||$9(e)||t}const Ur="top",da="bottom",ha="right",Hr="left",G2="auto",_d=[Ur,da,ha,Hr],pu="start",K2="end",L9="clippingParents",_T="viewport",lc="popper",j9="reference",JS=_d.reduce((e,t)=>e.concat([`${t}-${pu}`,`${t}-${K2}`]),[]),xT=[..._d,G2].reduce((e,t)=>e.concat([t,`${t}-${pu}`,`${t}-${K2}`]),[]),D9="beforeRead",N9="read",F9="afterRead",z9="beforeMain",B9="main",U9="afterMain",H9="beforeWrite",W9="write",V9="afterWrite",q9=[D9,N9,F9,z9,B9,U9,H9,W9,V9];function G9(e){const t=new Map,n=new Set,r=[];e.forEach(i=>{t.set(i.name,i)});function a(i){n.add(i.name),[...i.requires||[],...i.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&a(s)}}),r.push(i)}return e.forEach(i=>{n.has(i.name)||a(i)}),r}function K9(e){const t=G9(e);return q9.reduce((n,r)=>n.concat(t.filter(a=>a.phase===r)),[])}function X9(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function Fa(e){return e.split("-")[0]}function Y9(e){const t=e.reduce((n,r)=>{const a=n[r.name];return n[r.name]=a?Object.assign(Object.assign(Object.assign({},a),r),{options:Object.assign(Object.assign({},a.options),r.options),data:Object.assign(Object.assign({},a.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Q9(e){const t=qa(e),n=Ri(e),r=t.visualViewport;let a=n.clientWidth,i=n.clientHeight,o=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:o+W2(e),y:l}}function J9(e){const t=Ri(e),n=H2(e),r=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+W2(e);const l=-n.scrollTop;return gi(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:o,y:l}}function wT(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 Cb(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z9(e){const t=Of(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 ZS(e,t){return t===_T?Cb(Q9(e)):Ua(t)?Z9(t):Cb(J9(Ri(e)))}function eF(e){const t=Kc(Ig(e)),r=["absolute","fixed"].indexOf(gi(e).position)>=0&&Ua(e)?bd(e):e;return Cf(r)?t.filter(a=>Cf(a)&&wT(a,r)&&ma(a)!=="body"):[]}function tF(e,t,n){const a=[...t==="clippingParents"?eF(e):[].concat(t),n],i=a[0],o=a.reduce((l,s)=>{const u=ZS(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},ZS(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ef(e){return e.split("-")[1]}function X2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ST({reference:e,element:t,placement:n}){const r=n?Fa(n):null,a=n?Ef(n):null,i=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case Ur:l={x:i,y:e.y-t.height};break;case da:l={x:i,y:e.y+e.height};break;case ha:l={x:e.x+e.width,y:o};break;case Hr:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?X2(r):null;if(s!=null){const u=s==="y"?"height":"width";switch(a){case pu:l[s]=Math.floor(l[s])-Math.floor(e[u]/2-t[u]/2);break;case K2:l[s]=Math.floor(l[s])+Math.ceil(e[u]/2-t[u]/2);break}}return l}function OT(){return{top:0,right:0,bottom:0,left:0}}function CT(e){return Object.assign(Object.assign({},OT()),e)}function ET(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function kf(e,t={}){const{placement:n=e.placement,boundary:r=L9,rootBoundary:a=_T,elementContext:i=lc,altBoundary:o=!1,padding:l=0}=t,s=CT(typeof l!="number"?l:ET(l,_d)),u=i===lc?j9:lc,c=e.elements.reference,f=e.rects.popper,d=e.elements[o?u:i],h=tF(Cf(d)?d:d.contextElement||Ri(e.elements.popper),r,a),p=Of(c),g=ST({reference:p,element:f,strategy:"absolute",placement:n}),b=Cb(Object.assign(Object.assign({},f),g)),m=i===lc?b:p,v={top:h.top-m.top+s.top,bottom:m.bottom-h.bottom+s.bottom,left:h.left-m.left+s.left,right:m.right-h.right+s.right},_=e.modifiersData.offset;if(i===lc&&_){const x=_[n];Object.keys(v).forEach(O=>{const S=[ha,da].indexOf(O)>=0?1:-1,w=[Ur,da].indexOf(O)>=0?"y":"x";v[O]+=x[w]*S})}return v}const eO={placement:"bottom",modifiers:[],strategy:"absolute"};function tO(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function nF(e={}){const{defaultModifiers:t=[],defaultOptions:n=eO}=e;return function(a,i,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},eO),n),modifiersData:{},elements:{reference:a,popper:i},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:Cf(a)?Kc(a):a.contextElement?Kc(a.contextElement):[],popper:Kc(i)};const p=K9(Y9([...t,...l.options.modifiers]));return l.orderedModifiers=p.filter(g=>g.enabled),f(),c.update()},forceUpdate(){if(u)return;const{reference:h,popper:p}=l.elements;if(tO(h,p)){l.rects={reference:I9(h,bd(p),l.options.strategy==="fixed"),popper:q2(p)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(g=>l.modifiersData[g.name]=Object.assign({},g.data));for(let g=0;gnew Promise(h=>{c.forceUpdate(),h(l)})),destroy(){d(),u=!0}};if(!tO(a,i))return c;c.setOptions(o).then(h=>{!u&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:p={},effect:g})=>{if(typeof g=="function"){const b=g({state:l,name:h,instance:c,options:p}),m=()=>{};s.push(b||m)}})}function d(){s.forEach(h=>h()),s=[]}return c}}const bh={passive:!0};function rF({state:e,instance:t,options:n}){const{scroll:r=!0,resize:a=!0}=n,i=qa(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,bh)}),a&&i.addEventListener("resize",t.update,bh),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,bh)}),a&&i.removeEventListener("resize",t.update,bh)}}const aF={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:rF,data:{}};function iF({state:e,name:t}){e.modifiersData[t]=ST({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const oF={name:"popperOffsets",enabled:!0,phase:"read",fn:iF,data:{}},lF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sF({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 nO({popper:e,popperRect:t,placement:n,offsets:r,position:a,gpuAcceleration:i,adaptive:o}){let{x:l,y:s}=sF(r);const u=r.hasOwnProperty("x"),c=r.hasOwnProperty("y");let f=Hr,d=Ur;const h=window;if(o){let g=bd(e);g===qa(e)&&(g=Ri(e)),n===Ur&&(d=da,s-=g.clientHeight-t.height,s*=i?1:-1),n===Hr&&(f=ha,l-=g.clientWidth-t.width,l*=i?1:-1)}const p=Object.assign({position:a},o&&lF);return i?Object.assign(Object.assign({},p),{[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({},p),{[d]:c?`${s}px`:"",[f]:u?`${l}px`:"",transform:""})}function uF({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,a={placement:Fa(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),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const cF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uF,data:{}};function fF({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},a=e.elements[t];!Ua(a)||!ma(a)||(Object.assign(a.style,n),Object.keys(r).forEach(i=>{const o=r[i];o===!1?a.removeAttribute(i):a.setAttribute(i,o===!0?"":o)}))})}function dF({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],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Ua(r)||!ma(r)||(Object.assign(r.style,o),Object.keys(a).forEach(l=>{r.removeAttribute(l)}))})}}const hF={name:"applyStyles",enabled:!0,phase:"write",fn:fF,effect:dF,requires:["computeStyles"]};function pF(e,t,n){const r=Fa(e),a=[Hr,Ur].indexOf(r)>=0?-1:1;let[i,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return i=i||0,o=(o||0)*a,[Hr,ha].indexOf(r)>=0?{x:o,y:i}:{x:i,y:o}}function mF({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,a=xT.reduce((l,s)=>(l[s]=pF(s,e.rects,r),l),{}),{x:i,y:o}=a[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=a}const gF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mF},vF={left:"right",right:"left",bottom:"top",top:"bottom"};function lp(e){return e.replace(/left|right|bottom|top/g,t=>vF[t])}const yF={start:"end",end:"start"};function rO(e){return e.replace(/start|end/g,t=>yF[t])}function bF(e,t={}){const{placement:n,boundary:r,rootBoundary:a,padding:i,flipVariations:o,allowedAutoPlacements:l=xT}=t,s=Ef(n),u=s?o?JS:JS.filter(d=>Ef(d)===s):_d;let c=u.filter(d=>l.indexOf(d)>=0);c.length===0&&(c=u);const f=c.reduce((d,h)=>(d[h]=kf(e,{placement:h,boundary:r,rootBoundary:a,padding:i})[Fa(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function _F(e){if(Fa(e)===G2)return[];const t=lp(e);return[rO(e),t,rO(t)]}function xF({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:a=!0,fallbackPlacements:i,padding:o,boundary:l,rootBoundary:s,altBoundary:u,flipVariations:c=!0,allowedAutoPlacements:f}=t,d=e.options.placement,p=Fa(d)===d,g=i||(p||!c?[lp(d)]:_F(d)),b=[d,...g].reduce((S,w)=>S.concat(Fa(w)===G2?bF(e,{placement:w,boundary:l,rootBoundary:s,padding:o,flipVariations:c,allowedAutoPlacements:f}):w),[]),m=e.rects.reference,v=e.rects.popper,_=new Map;let x=!0,O=b[0];for(let S=0;S=0,P=I?"width":"height",T=kf(e,{placement:w,boundary:l,rootBoundary:s,altBoundary:u,padding:o});let E=I?A?ha:Hr:A?da:Ur;m[P]>v[P]&&(E=lp(E));const L=lp(E),N=[];if(r&&N.push(T[C]<=0),a&&N.push(T[E]<=0,T[L]<=0),N.every(U=>U)){O=w,x=!1;break}_.set(w,N)}if(x){const S=c?3:1;for(let w=S;w>0;w--){const C=b.find(A=>{const I=_.get(A);if(I)return I.slice(0,w).every(P=>P)});if(C){O=C;break}}}e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}const wF={name:"flip",enabled:!0,phase:"main",fn:xF,requiresIfExists:["offset"],data:{_skip:!1}};function SF(e){return e==="x"?"y":"x"}function sp(e,t,n){return Math.max(e,Math.min(t,n))}function OF({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:a=!1,boundary:i,rootBoundary:o,altBoundary:l,padding:s,tether:u=!0,tetherOffset:c=0}=t,f=kf(e,{boundary:i,rootBoundary:o,padding:s,altBoundary:l}),d=Fa(e.placement),h=Ef(e.placement),p=!h,g=X2(d),b=SF(g),m=e.modifiersData.popperOffsets,v=e.rects.reference,_=e.rects.popper,x=typeof c=="function"?c(Object.assign(Object.assign({},e.rects),{placement:e.placement})):c,O={x:0,y:0};if(m){if(r){const S=g==="y"?Ur:Hr,w=g==="y"?da:ha,C=g==="y"?"height":"width",A=m[g],I=m[g]+f[S],P=m[g]-f[w],T=u?-_[C]/2:0,E=h===pu?v[C]:_[C],L=h===pu?-_[C]:-v[C],N=e.elements.arrow,U=u&&N?q2(N):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:OT(),$=W[S],F=W[w],k=sp(0,v[C],U[C]),X=p?v[C]/2-T-k-$-x:E-k-$-x,te=p?-v[C]/2+T+k+F+x:L+k+F+x,R=e.elements.arrow&&bd(e.elements.arrow),J=R?g==="y"?R.clientTop||0:R.clientLeft||0:0,ae=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,ue=m[g]+X-ae-J,ve=m[g]+te-ae,ke=sp(u?Math.min(I,ue):I,A,u?Math.max(P,ve):P);m[g]=ke,O[g]=ke-A}if(a){const S=g==="x"?Ur:Hr,w=g==="x"?da:ha,C=m[b],A=C+f[S],I=C-f[w],P=sp(A,C,I);m[b]=P,O[b]=P-C}e.modifiersData[n]=O}}const CF={name:"preventOverflow",enabled:!0,phase:"main",fn:OF,requiresIfExists:["offset"]};function EF({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Fa(e.placement),i=X2(a),l=[Hr,ha].indexOf(a)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,u=q2(n),c=i==="y"?Ur:Hr,f=i==="y"?da:ha,d=e.rects.reference[l]+e.rects.reference[i]-r[i]-e.rects.popper[l],h=r[i]-e.rects.reference[i],p=bd(n),g=p?i==="y"?p.clientHeight||0:p.clientWidth||0:0,b=d/2-h/2,m=s[c],v=g-u[l]-s[f],_=g/2-u[l]/2+b,x=sp(m,_,v),O=i;e.modifiersData[t]={[O]:x,centerOffset:x-_}}function kF({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:a=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||wT(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:CT(typeof a!="number"?a:ET(a,_d))}))}const PF={name:"arrow",enabled:!0,phase:"main",fn:EF,effect:kF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aO(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 iO(e){return[Ur,ha,da,Hr].some(t=>e[t]>=0)}function TF({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=kf(e,{elementContext:"reference"}),o=kf(e,{altBoundary:!0}),l=aO(i,n),s=aO(o,r,a),u=iO(l),c=iO(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 AF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:TF},MF=[aF,oF,cF,hF,gF,wF,CF,PF,AF],IF=nF({defaultModifiers:MF}),Eb=Oo?y.useLayoutEffect:y.useEffect,RF=(e,t)=>JSON.stringify(e)===JSON.stringify(t),oO=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),$F=[],LF=(e,t,n={})=>{const r=y.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||$F},[i,o]=y.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=y.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const f=Object.keys(c.elements);o({styles:oO(f.map(d=>[d,c.styles[d]||{}])),attributes:oO(f.map(d=>[d,c.attributes[d]]))})},requires:["computeStyles"]}),[]),s=y.useMemo(()=>{const c={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return RF(r.current,c)?r.current||c:(r.current=c,c)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),u=y.useRef();return Eb(()=>{u&&u.current&&u.current.setOptions(s)},[s]),Eb(()=>{if(e==null||t==null)return;const f=(n.createPopper||IF)(e,t,s);return u.current=f,()=>{f.destroy(),u.current=null}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:i.styles,attributes:i.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},jF={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"},DF=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=>jF[t]),NF=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,jl=({trigger:e,popper:t,direction:n="down",position:r="start",placement:a,width:i,minWidth:o="trigger",maxWidth:l,appendTo:s="inline",zIndex:u=9999,isVisible:c=!0,positionModifiers:f,distance:d=0,onMouseEnter:h,onMouseLeave:p,onFocus:g,onBlur:b,onDocumentClick:m,onTriggerClick:v,onTriggerEnter:_,onPopperClick:x,onPopperMouseEnter:O,onPopperMouseLeave:S,onDocumentKeyDown:w,enableFlip:C=!0,flipBehavior:A="flip",triggerRef:I,popperRef:P,animationDuration:T=0,entryDelay:E=0,exitDelay:L=0,onHidden:N=()=>{},onHide:U=()=>{},onMount:W=()=>{},onShow:$=()=>{},onShown:F=()=>{},preventOverflow:k=!1})=>{var X;const[te,R]=y.useState(null),[J,ae]=y.useState(null),[ue,ve]=y.useState(null),[ke,q]=y.useState(null),[Z,ie]=y.useState(!1),[K,Te]=y.useState(0),[ye,Ae]=y.useState(c),Ce=y.useRef(null),Re=y.useRef(null),Ge=y.useRef(null),_e=y.useRef(),re=J||te,oe=c||ye,xe=(X=(I==null?void 0:I.current)||te)===null||X===void 0?void 0:X.parentElement,De=Ds(xe),Je=y.useMemo(()=>{const Fe={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Fe),rtl:Object.assign({start:"right",end:"left"},Fe)}[De][r]},[r,De]),z=y.useCallback(Fe=>m(Fe,re,ue),[oe,te,J,ue,m]);y.useEffect(()=>{ie(!0),W()},[]),y.useEffect(()=>()=>{yh([Ce,Ge,Re])},[]),y.useEffect(()=>{I&&(I.current?ae(I.current):typeof I=="function"&&ae(I()))},[I,e]),y.useEffect(()=>{P&&(P.current?ve(P.current):typeof P=="function"&&ve(P()))},[oe,P]),y.useEffect(()=>{const Fe=new MutationObserver(()=>{Bt&&Bt()});return ue&&Fe.observe(ue,{attributes:!0,childList:!0,subtree:!0}),()=>{Fe.disconnect()}},[ue]);const Y=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.addEventListener(Za,Fe,{capture:H})},he=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.removeEventListener(Za,Fe,{capture:H})};y.useEffect(()=>(Y(h,re,"mouseenter"),Y(p,re,"mouseleave"),Y(g,re,"focus"),Y(b,re,"blur"),Y(v,re,"click"),Y(_,re,"keydown"),Y(x,ue,"click"),Y(O,ue,"mouseenter"),Y(S,ue,"mouseleave"),m&&Y(z,document,"click",!0),Y(w,document,"keydown",!0),()=>{he(h,re,"mouseenter"),he(p,re,"mouseleave"),he(g,re,"focus"),he(b,re,"blur"),he(v,re,"click"),he(_,re,"keydown"),he(x,ue,"click"),he(O,ue,"mouseenter"),he(S,ue,"mouseleave"),m&&he(z,document,"click",!0),he(w,document,"keydown",!0)}),[te,ue,h,p,g,b,v,_,x,O,S,m,w,J]);const se=()=>{if(a)return a;let Fe=n==="up"?"top":"bottom";return Je!=="center"&&(Fe=`${Fe}-${Je==="right"?"end":"start"}`),Fe},pe=y.useMemo(se,[n,Je,a]),He=y.useMemo(()=>DF(se()),[n,Je,a]),ge=y.useMemo(()=>({name:"widthMods",enabled:i!==void 0||o!==void 0||l!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Fe})=>{const xt=Fe.rects.reference.width;i&&(Fe.styles.popper.width=i==="trigger"?`${xt}px`:i),o&&(Fe.styles.popper.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.styles.popper.maxWidth=l==="trigger"?`${xt}px`:l)},effect:({state:Fe})=>{const xt=Fe.elements.reference.offsetWidth;return i&&(Fe.elements.popper.style.width=i==="trigger"?`${xt}px`:i),o&&(Fe.elements.popper.style.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.elements.popper.style.maxWidth=l==="trigger"?`${xt}px`:l),()=>{}}}),[i,o,l]),{styles:Pe,attributes:Ke,update:Bt,forceUpdate:$e}=LF(re,ue,{placement:pe,modifiers:[{name:"offset",options:{offset:[0,d]}},{name:"preventOverflow",enabled:k},{name:"hide",enabled:!0},{name:"flip",enabled:pe.startsWith("auto")||C,options:{fallbackPlacements:A==="flip"?[He]:A}},ge]});y.useEffect(()=>{var Fe,xt,Za,H,G,ee,de;const be=((H=(Za=(xt=(Fe=t==null?void 0:t.props)===null||Fe===void 0?void 0:Fe.children)===null||xt===void 0?void 0:xt[1])===null||Za===void 0?void 0:Za.props)===null||H===void 0?void 0:H.children)||((de=(ee=(G=t==null?void 0:t.props)===null||G===void 0?void 0:G.children)===null||ee===void 0?void 0:ee.props)===null||de===void 0?void 0:de.children);q(be),be&&ke&&be!==ke&&$e&&$e()},[t]),y.useEffect(()=>{_e.current{Ce.current=setTimeout(()=>{Ae(!1)},T)},L)),_e.current=L},[L]);const Ze=()=>{$(),yh([Ce,Ge]),Re.current=setTimeout(()=>{Ae(!0),Te(1),F()},E)},dt=()=>{U(),yh([Re]),Ge.current=setTimeout(()=>{Te(0),Ce.current=setTimeout(()=>{Ae(!1),N()},T)},L)};y.useEffect(()=>{c?Ze():dt()},[c]);const Gt=()=>{if(Ke&&Ke.popper&&Ke.popper["data-popper-placement"]){const Fe=Ke.popper["data-popper-placement"];return f[Fe]}return f.top},ya=Object.assign({className:D(t.props&&t.props.className,f&&Gt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Pe.popper),{zIndex:u,opacity:K,transition:NF(T)})},Ke.popper),Bi=()=>{const Fe=y.cloneElement(t,ya);return P?Fe:y.createElement("div",{style:{display:"contents"},ref:xt=>ve(xt==null?void 0:xt.firstElementChild)},Fe)},Kd=()=>{if(s==="inline")return Bi();{const Fe=typeof s=="function"?s():s;return Mg.createPortal(Bi(),Fe)}};return y.createElement(y.Fragment,null,!I&&e&&y.isValidElement(e)&&y.createElement("div",{style:{display:"contents"},ref:Fe=>R(Fe==null?void 0:Fe.firstElementChild)},e),I&&e&&y.isValidElement(e)&&e,Z&&oe&&Kd())};jl.displayName="Popper";const kT=(e,t,n=u=>document.activeElement.contains(u),r=u=>u,a=["A","BUTTON","INPUT"],i=!1,o=!1,l=!0,s=!0)=>{const u=document.activeElement,c=e.key;let f=null;if(!i&&["ArrowUp","ArrowDown"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){let g=0;for(;!f&&g=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,p)=>{if(n(h)){const g=t[p].querySelectorAll(a.join(","));if(!g.length||s){let b=u;for(;b;)if(b=c==="ArrowLeft"?b.previousElementSibling:b.nextElementSibling,b&&a.includes(b.tagName)){f=b;break}}else g.forEach((b,m)=>{e.target===b&&(d=m+(c==="ArrowLeft"?-1:1),d>=g.length&&(d=0),d<0&&(d=g.length-1),f=g[d])})}})}f&&(l&&(u.tabIndex=-1,f.tabIndex=0),f.focus())},FF=e=>{e&&e.length>0&&(e.forEach(t=>{t.tabIndex=-1}),e[0].tabIndex=0)};class Y2 extends y.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:a,noVerticalArrowHandling:i,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:u,validSiblingTags:c,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const p=d();if(!p){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const g=t.key;l||g==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||g===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),kT(t,p,r,a,c,i,o,u,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Oo&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Oo&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Y2.displayName="KeyboardHandler";Y2.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 Q2=(e,t,n)=>{let r;if(Oo){const{ResizeObserver:a}=window;if(e&&a){const i=new a(o=>{n?window.requestAnimationFrame(()=>{Array.isArray(o)&&o.length>0}):Array.isArray(o)&&o.length>0&&t()});i.observe(e),r=()=>i.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},Sa=e=>!!(e&&!isNaN(e)),nn={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},_h={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},zF={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var kb;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(kb||(kb={}));const Rg=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:a,isInline:i=!1,"aria-label":o,"aria-labelledBy":l}=e,s=Q(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return y.createElement("svg",Object.assign({className:D(_h.spinner,i?_h.modifiers.inline:_h.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},a&&{style:{[zF.name]:a}},o&&{"aria-label":o},l&&{"aria-labelledBy":l},!o&&!l&&{"aria-label":"Contents"},s),y.createElement("circle",{className:_h.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Rg.displayName="Spinner";const Ev={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},J2=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:a}=e,i=Q(e,["isRead","className","children","screenReaderText"]);return y.createElement("span",Object.assign({},i,{className:D(Ev.badge,t?Ev.modifiers.read:Ev.modifiers.unread,n)}),r,a&&y.createElement("span",{className:"pf-v5-screen-reader"},a))};J2.displayName="Badge";var pn;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(pn||(pn={}));var Pb;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Pb||(Pb={}));var Xc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Xc||(Xc={}));const BF=e=>{var{children:t=null,className:n="",component:r="button",isActive:a=!1,isBlock:i=!1,isDisabled:o=!1,isAriaDisabled:l=!1,isLoading:s=null,isDanger:u=!1,spinnerAriaValueText:c,spinnerAriaLabelledBy:f,spinnerAriaLabel:d,size:h=Xc.default,inoperableEvents:p=["onClick","onKeyPress"],isInline:g=!1,type:b=Pb.button,variant:m=pn.primary,iconPosition:v="start","aria-label":_=null,icon:x=null,ouiaId:O,ouiaSafe:S=!0,tabIndex:w=null,innerRef:C,countOptions:A}=e,I=Q(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const P=Ii(gt.displayName,O,S,m),T=r,E=T==="button",L=g&&T==="span",N=p.reduce((W,$)=>Object.assign(Object.assign({},W),{[$]:F=>{F.preventDefault()}}),{}),U=()=>{if(o)return E?null:-1;if(l)return null;if(L)return 0};return y.createElement(T,Object.assign({},I,l?N:null,{"aria-disabled":o||l,"aria-label":_,className:D(nn.button,nn.modifiers[m],i&&nn.modifiers.block,o&&nn.modifiers.disabled,l&&nn.modifiers.ariaDisabled,a&&nn.modifiers.active,g&&m===pn.link&&nn.modifiers.inline,u&&(m===pn.secondary||m===pn.link)&&nn.modifiers.danger,s!==null&&m!==pn.plain&&nn.modifiers.progress,s&&nn.modifiers.inProgress,h===Xc.sm&&nn.modifiers.small,h===Xc.lg&&nn.modifiers.displayLg,n),disabled:E?o:null,tabIndex:w!==null?w:U(),type:E||L?b:null,role:L?"button":null,ref:C},P),s&&y.createElement("span",{className:D(nn.buttonProgress)},y.createElement(Rg,{size:kb.md,isInline:g,"aria-valuetext":c,"aria-label":d,"aria-labelledby":f})),m===pn.plain&&t===null&&x?x:null,m!==pn.plain&&x&&(v==="start"||v==="left")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.start)},x),t,m!==pn.plain&&x&&(v==="end"||v==="right")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.end)},x),A&&y.createElement("span",{className:D(nn.buttonCount,A.className)},y.createElement(J2,{isRead:A.isRead},A.count)))},gt=y.forwardRef((e,t)=>y.createElement(BF,Object.assign({innerRef:t},e)));gt.displayName="Button";let UF=0;function ht({name:e,xOffset:t=0,yOffset:n=0,width:r,height:a,svgPath:i}){var o;return o=class extends y.Component{constructor(){super(...arguments),this.id=`icon-title-${UF++}`}render(){const s=this.props,{title:u,className:c}=s,f=Q(s,["title","className"]),d=c?`pf-v5-svg ${c}`:"pf-v5-svg",h=!!u,p=[t,n,r,a].join(" ");return y.createElement("svg",Object.assign({className:d,viewBox:p,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},f),h&&y.createElement("title",{id:this.id},u),y.createElement("path",{d:i}))}},o.displayName=e,o}const HF={name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0},WF=ht(HF),Tb=WF,VF={bullseye:"pf-v5-l-bullseye"},wn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},PT=e=>{var{className:t,children:n,isLeftAligned:r}=e,a=Q(e,["className","children","isLeftAligned"]);return y.createElement("div",Object.assign({className:D(wn.tooltipContent,r&&wn.modifiers.textAlignLeft,t)},a),n)};PT.displayName="TooltipContent";const TT=e=>{var{className:t}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(wn.tooltipArrow,t)},n))};TT.displayName="TooltipArrow";const lO={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var sO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(sO||(sO={}));let qF=1;const $i=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:a=!1,isContentLeftAligned:i=!1,enableFlip:o=!0,className:l="",entryDelay:s=300,exitDelay:u=300,appendTo:c=()=>document.body,zIndex:f=9999,minWidth:d,maxWidth:h=lO.value,distance:p=15,aria:g="describedby",flipBehavior:b=["top","right","bottom","left","top","right","bottom"],id:m=`pf-tooltip-${qF++}`,children:v,animationDuration:_=300,triggerRef:x,"aria-live":O=x?"polite":"off",onTooltipHidden:S=()=>{}}=e,w=Q(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const C=r.includes("mouseenter"),A=r.includes("focus"),I=r.includes("click"),P=r==="manual",[T,E]=y.useState(!1),L=y.createRef(),N=J=>{P||J.key===Hp.Escape&&T&&$()},U=J=>{J.key===Hp.Enter&&(T?$():W())};y.useEffect(()=>{a?W():$()},[a]);const W=()=>{E(!0)},$=()=>{E(!1)},F={top:wn.modifiers.top,bottom:wn.modifiers.bottom,left:wn.modifiers.left,right:wn.modifiers.right,"top-start":wn.modifiers.topLeft,"top-end":wn.modifiers.topRight,"bottom-start":wn.modifiers.bottomLeft,"bottom-end":wn.modifiers.bottomRight,"left-start":wn.modifiers.leftTop,"left-end":wn.modifiers.leftBottom,"right-start":wn.modifiers.rightTop,"right-end":wn.modifiers.rightBottom},k=h!==lO.value,X=y.createElement("div",Object.assign({"aria-live":O,className:D(wn.tooltip,l),role:"tooltip",id:m,style:{maxWidth:k?h:null},ref:L},w),y.createElement(TT,null),y.createElement(PT,{isLeftAligned:i},t)),te=(J,ae)=>{T?$():J.target===ae&&W()},R=()=>g==="describedby"&&v&&v.props&&!v.props["aria-describedby"]?y.cloneElement(v,{"aria-describedby":m}):g==="labelledby"&&v.props&&!v.props["aria-labelledby"]?y.cloneElement(v,{"aria-labelledby":m}):v;return y.createElement(jl,{trigger:g!=="none"&&T?R():v,triggerRef:x,popper:X,popperRef:L,minWidth:d!==void 0?d:"revert",appendTo:c,isVisible:T,positionModifiers:F,distance:p,placement:n,onMouseEnter:C&&W,onMouseLeave:C&&$,onPopperMouseEnter:C&&W,onPopperMouseLeave:C&&$,onFocus:A&&W,onBlur:A&&$,onDocumentClick:I&&te,onDocumentKeyDown:P?null:N,onTriggerEnter:P?null:U,enableFlip:o,zIndex:f,flipBehavior:b,animationDuration:_,entryDelay:s,exitDelay:u,onHidden:S})};$i.displayName="Tooltip";const GF={name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0},Z2=ht(GF),KF={name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},AT=ht(KF),XF={name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},MT=ht(XF),YF={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},QF=ht(YF),Iu=QF,JF={name:"AngleUpIcon",height:512,width:320,svgPath:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z",yOffset:0,xOffset:0},ZF=ht(JF),ez=ZF,Ia={breadcrumb:"pf-v5-c-breadcrumb",breadcrumbDropdown:"pf-v5-c-breadcrumb__dropdown",breadcrumbHeading:"pf-v5-c-breadcrumb__heading",breadcrumbItem:"pf-v5-c-breadcrumb__item",breadcrumbItemDivider:"pf-v5-c-breadcrumb__item-divider",breadcrumbLink:"pf-v5-c-breadcrumb__link",breadcrumbList:"pf-v5-c-breadcrumb__list",dirRtl:"pf-v5-m-dir-rtl",dropdownToggle:"pf-v5-c-dropdown__toggle",modifiers:{current:"pf-m-current"}},Dl=e=>{var{children:t=null,className:n="","aria-label":r="Breadcrumb",ouiaId:a,ouiaSafe:i=!0}=e,o=Q(e,["children","className","aria-label","ouiaId","ouiaSafe"]);const l=Ii(Dl.displayName,a,i);return y.createElement("nav",Object.assign({},o,{"aria-label":r,className:D(Ia.breadcrumb,n)},l),y.createElement("ol",{className:Ia.breadcrumbList,role:"list"},y.Children.map(t,(s,u)=>{const c=u>0;return y.isValidElement(s)?y.cloneElement(s,{showDivider:c}):s})))};Dl.displayName="Breadcrumb";const Dr=e=>{var{children:t=null,className:n="",to:r=void 0,isActive:a=!1,isDropdown:i=!1,showDivider:o,target:l=void 0,component:s="a",render:u=void 0}=e,c=Q(e,["children","className","to","isActive","isDropdown","showDivider","target","component","render"]);const f=s,d=a?"page":void 0,h=D(Ia.breadcrumbLink,a&&Ia.modifiers.current);return y.createElement("li",Object.assign({},c,{className:D(Ia.breadcrumbItem,n)}),o&&y.createElement("span",{className:Ia.breadcrumbItemDivider},y.createElement(Iu,null)),s==="button"&&y.createElement("button",{className:h,"aria-current":d,type:"button"},t),i&&y.createElement("span",{className:D(Ia.breadcrumbDropdown)},t),u&&u({className:h,ariaCurrent:d}),r&&!u&&y.createElement(f,{href:r,target:l,className:h,"aria-current":d},t),!r&&s!=="button"&&!i&&t)};Dr.displayName="BreadcrumbItem";const Oa={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},tz={success:Z2,error:AT,warning:MT},uO=e=>{var{status:t,customIcon:n,className:r}=e,a=Q(e,["status","customIcon","className"]);const i=t&&tz[t];return y.createElement("span",Object.assign({className:D(Oa.formControlIcon,t&&Oa.modifiers.status,r)},a),n||y.createElement(i,null))};var Ab;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(Ab||(Ab={}));var cO;(function(e){e.default="default",e.plain="plain"})(cO||(cO={}));class xd extends y.Component{constructor(t){super(t),this.inputRef=y.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&C9(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:a,onFocus:i}=this.props;(r||a)&&this.restoreText(),i&&i(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:a,onBlur:i}=this.props;(r||a)&&this.handleResize(),i&&i(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:Lo(xd.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=Q2(t.current,this.handleResize,!0),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:a,value:i,placeholder:o,validated:l,onChange:s,onFocus:u,onBlur:c,isLeftTruncated:f,isStartTruncated:d,isExpanded:h,expandedProps:p,readOnly:g,readOnlyVariant:b,isRequired:m,isDisabled:v,customIcon:_,ouiaId:x,ouiaSafe:O}=t,S=Q(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),w=["success","error","warning"].includes(l),C=p?{"aria-expanded":p==null?void 0:p.isExpanded,"aria-controls":p==null?void 0:p.ariaControls,role:"combobox"}:{};return y.createElement("span",{className:D(Oa.formControl,b&&Oa.modifiers.readonly,b==="plain"&&Oa.modifiers.plain,v&&Oa.modifiers.disabled,(h||(p==null?void 0:p.isExpanded))&&Oa.modifiers.expanded,_&&Oa.modifiers.icon,w&&Oa.modifiers[l],r)},y.createElement("input",Object.assign({},S,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:a,value:this.sanitizeInputValue(i),"aria-invalid":S["aria-invalid"]?S["aria-invalid"]:l===Sb.error},C,{required:m,disabled:v,readOnly:!!b||g,ref:n||this.inputRef,placeholder:o},Ll(Ns.displayName,x!==void 0?x:this.state.ouiaStateId,O))),(_||w)&&y.createElement("span",{className:D(Oa.formControlUtilities)},_&&y.createElement(uO,{customIcon:_}),w&&y.createElement(uO,{status:l})))}}xd.displayName="TextInputBase";xd.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Ab.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const Ns=y.forwardRef((e,t)=>y.createElement(xd,Object.assign({},e,{innerRef:t})));Ns.displayName="TextInput";const Le={breadcrumb:"pf-v5-c-breadcrumb",check:"pf-v5-c-check",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuBreadcrumb:"pf-v5-c-menu__breadcrumb",menuContent:"pf-v5-c-menu__content",menuFooter:"pf-v5-c-menu__footer",menuGroup:"pf-v5-c-menu__group",menuGroupTitle:"pf-v5-c-menu__group-title",menuHeader:"pf-v5-c-menu__header",menuItem:"pf-v5-c-menu__item",menuItemAction:"pf-v5-c-menu__item-action",menuItemActionIcon:"pf-v5-c-menu__item-action-icon",menuItemCheck:"pf-v5-c-menu__item-check",menuItemDescription:"pf-v5-c-menu__item-description",menuItemExternalIcon:"pf-v5-c-menu__item-external-icon",menuItemIcon:"pf-v5-c-menu__item-icon",menuItemMain:"pf-v5-c-menu__item-main",menuItemSelectIcon:"pf-v5-c-menu__item-select-icon",menuItemText:"pf-v5-c-menu__item-text",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuList:"pf-v5-c-menu__list",menuListItem:"pf-v5-c-menu__list-item",menuSearch:"pf-v5-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",ariaDisabled:"pf-m-aria-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-v5-theme-dark"},fO={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},Cl=y.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"}),IT=y.createContext({itemId:null,isDisabled:!1});class $g extends y.Component{constructor(t){super(t),this.menuRef=y.createRef(),this.activeMenu=null,this.state={ouiaStateId:Lo(Pf.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(`.${Le.menu}`)&&!Array.from(r.getElementsByClassName(Le.menu)).includes(n.target.closest(`.${Le.menu}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const a=r.querySelector("#"+this.props.activeMenu)||r||null,i=a.getElementsByTagName("UL");if(i.length===0)return;const o=Array.from(i[0].children);if(!this.state.currentDrilldownMenuId||a.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:a.id});else return;const l=o.filter(s=>!(s.classList.contains("pf-m-disabled")||s.classList.contains(Le.divider)))[0].firstChild;l.focus(),l.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,a=document.activeElement;if(n.target.closest(`.${Le.menu}`)!==this.activeMenu&&!n.target.classList.contains(Ia.breadcrumbLink)&&(this.activeMenu=n.target.closest(`.${Le.menu}`),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const i=this.activeMenu,o=n.key,l=a.classList.contains(Ia.breadcrumbLink)||a.classList.contains(fO.dropdownToggle);if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(a.closest("li").classList.contains("pf-m-current-path")&&i.parentElement.tagName==="LI")a.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(a.nextElementSibling&&a.nextElementSibling.classList.contains(Le.menu)){const u=Array.from(a.nextElementSibling.getElementsByTagName("UL")[0].children).filter(c=>!(c.classList.contains("pf-m-disabled")||c.classList.contains(Le.divider)));a.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(Le.divider))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains(Le.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}),Oo&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Oo&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{id:n,children:r,className:a,onSelect:i,selected:o=null,onActionClick:l,ouiaId:s,ouiaSafe:u,containsFlyout:c,isNavFlyout:f,containsDrilldown:d,isMenuDrilledIn:h,isPlain:p,isScrollable:g,drilldownItemPath:b,drilledInMenus:m,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,parentMenu:O=null,activeItemId:S=null,innerRef:w,isRootMenu:C,activeMenu:A,role:I}=t,P=Q(t,["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"]),T=h||m&&m.includes(n)||!1;return y.createElement(Cl.Provider,{value:{menuId:n,parentMenu:O||n,onSelect:i,onActionClick:l,activeItemId:S,selected:o,drilledInMenus:m,drilldownItemPath:b,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,flyoutRef:this.state.flyoutRef,setFlyoutRef:E=>this.setState({flyoutRef:E}),disableHover:this.state.disableHover,role:I}},C&&y.createElement(Y2,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:E=>document.activeElement.closest("li")===E||document.activeElement.parentElement===E||document.activeElement.closest(`.${Le.menuSearch}`)===E||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===E,getFocusableElement:E=>{var L,N;return(E==null?void 0:E.tagName)==="DIV"&&E.querySelector("input")||((L=E.firstChild)===null||L===void 0?void 0:L.tagName)==="LABEL"&&E.querySelector("input")||((N=E.firstChild)===null||N===void 0?void 0:N.tagName)==="DIV"&&E.querySelector("a, button, input")||E.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(Ia.breadcrumbLink)||document.activeElement.classList.contains(fO.dropdownToggle)||document.activeElement.tagName==="INPUT"),noEnterHandling:!0,noSpaceHandling:!0}),y.createElement("div",Object.assign({id:n,className:D(Le.menu,p&&Le.modifiers.plain,g&&Le.modifiers.scrollable,c&&Le.modifiers.flyout,f&&Le.modifiers.nav,d&&Le.modifiers.drilldown,T&&Le.modifiers.drilledIn,a),ref:this.menuRef},Ll(Pf.displayName,s!==void 0?s:this.state.ouiaStateId,u),P),r))}}$g.displayName="Menu";$g.contextType=Cl;$g.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Pf=y.forwardRef((e,t)=>y.createElement($g,Object.assign({},e,{innerRef:t})));Pf.displayName="Menu";const nz={name:"--pf-v5-c-menu__content--Height",value:"auto",var:"var(--pf-v5-c-menu__content--Height)"},rz={name:"--pf-v5-c-menu__content--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-menu__content--MaxHeight)"},e_=y.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:a,maxMenuHeight:i}=e,o=Q(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=y.createRef(),s=(u,c,f)=>{if(u){let d=u.clientHeight,h=null,p=u.closest(`.${Le.menuList}`);for(;p!==null&&p.nodeType===1;)p.classList.contains(Le.menuList)&&(h=p),p=p.parentElement;if(h){const g=getComputedStyle(h),b=parseFloat(g.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(g.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+b}f&&f(c,d),n&&n(d.toString())}return t||l};return y.createElement(Cl.Consumer,null,({menuId:u,onGetMenuHeight:c})=>y.createElement("div",Object.assign({},o,{className:D(Le.menuContent,e.className),ref:f=>s(f,u,c),style:Object.assign(Object.assign({},a&&{[nz.name]:a}),i&&{[rz.name]:i})}),r))});e_.displayName="MenuContent";const az={name:"--pf-v5-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--top-offset)"},iz={name:"--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--m-left--right-offset)"},oz={name:"--pf-v5-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--left-offset)"},lz={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},sz=ht(lz),uz=sz,cz={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},t_=ht(cz),fz={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},dz=ht(fz),hz=dz,ti={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},RT=()=>{};class ur extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},this.state={ouiaStateId:Lo(ur.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,inputClassName:a,onChange:i,isLabelWrapped:o,isLabelBeforeButton:l,isValid:s,isDisabled:u,isRequired:c,isChecked:f,label:d,checked:h,defaultChecked:p,description:g,body:b,ouiaId:m,ouiaSafe:v,component:_}=t,x=Q(t,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);x.id||console.error("Checkbox:","id is required to make input accessible");const O={};([!0,!1].includes(h)||f===!0)&&(O.checked=h||f),i!==RT&&(O.checked=f),[!1,!0].includes(p)&&(O.defaultChecked=p);const S=y.createElement("input",Object.assign({},x,{className:D(ti.checkInput,a),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":n,disabled:u,required:c,ref:P=>P&&(P.indeterminate=f===null)},O,Ll(ur.displayName,m!==void 0?m:this.state.ouiaStateId,v))),w=o&&!_||_==="label",C=w?"span":"label",A=d?y.createElement(C,{className:D(ti.checkLabel,u&&ti.modifiers.disabled),htmlFor:w?void 0:x.id},d,c&&y.createElement("span",{className:D(ti.checkLabelRequired),"aria-hidden":"true"},yT)):null,I=_??(w?"label":"div");return O.checked=O.checked===null?!1:O.checked,y.createElement(I,{className:D(ti.check,!d&&ti.modifiers.standalone,r),htmlFor:w?x.id:void 0},l?y.createElement(y.Fragment,null,A,S):y.createElement(y.Fragment,null,S,A),g&&y.createElement("span",{className:D(ti.checkDescription)},g),b&&y.createElement("span",{className:D(ti.checkBody)},b))}}ur.displayName="Checkbox";ur.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:RT,ouiaSafe:!0};const pz={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},mz=ht(pz),n_=mz,gz=e=>{var{className:t="",icon:n,onClick:r,"aria-label":a,isFavorited:i=null,isDisabled:o,actionId:l,innerRef:s}=e,u=Q(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return y.createElement(Cl.Consumer,null,({onActionClick:c})=>y.createElement(IT.Consumer,null,({itemId:f,isDisabled:d})=>{const h=p=>{r&&r(p),c&&c(p,f,l)};return y.createElement("button",Object.assign({className:D(Le.menuItemAction,i!==null&&Le.modifiers.favorite,i&&Le.modifiers.favorited,t),"aria-label":a,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},u),y.createElement("span",{className:D(Le.menuItemActionIcon)},n==="favorites"||i!==null?y.createElement(n_,{"aria-hidden":!0}):n))}))},$T=y.forwardRef((e,t)=>y.createElement(gz,Object.assign({},e,{innerRef:t})));$T.displayName="MenuItemAction";const dO=y.createContext({direction:"right"}),vz=e=>{var{children:t,className:n,itemId:r=null,to:a,hasCheckbox:i=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:u=!1,flyoutMenu:c,direction:f,description:d=null,onClick:h=()=>{},component:p="button",isDisabled:g=!1,isAriaDisabled:b=!1,isExternalLink:m=!1,isSelected:v=null,isFocused:_,isDanger:x=!1,icon:O,actions:S,onShowFlyout:w,drilldownMenu:C,isOnPath:A,innerRef:I,id:P,"aria-label":T,tooltipProps:E,rel:L,target:N,download:U}=e,W=Q(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:$,parentMenu:F,onSelect:k,onActionClick:X,activeItemId:te,selected:R,drilldownItemPath:J,onDrillIn:ae,onDrillOut:ue,flyoutRef:ve,setFlyoutRef:ke,disableHover:q,role:Z}=y.useContext(Cl);let ie=a?"a":p;i&&!a&&(ie="label");const[K,Te]=y.useState(null),ye=y.useContext(dO),[Ae,Ce]=y.useState(ye.direction),Re=y.useRef(),Ge=Re===ve,_e=c!==void 0,re=ge=>{!Ge&&ge?ke(Re):Ge&&!ge&&ke(null),w&&ge&&w()};Eb(()=>{if(_e&&Re.current&&Oo){const ge=Re.current.lastElementChild;if(ge&&ge.classList.contains(Le.menu)){const Pe=Re.current.getClientRects()[0],Ke=ge.getClientRects()[0];if(Pe&&Ke){const Bt=Pe.x-Ke.width,$e=window.innerWidth-Pe.x-Pe.width-Ke.width;let Ze=Ae;$e<0&&Ze!=="left"?(Ce("left"),Ze="left"):Bt<0&&Ze!=="right"&&(Ce("right"),Ze="right");let dt=0;Bt<0&&$e<0&&(dt=Ze==="right"?-$e:-Bt),Ze==="left"?(ge.classList.add(Le.modifiers.left),ge.style.setProperty(iz.name,`-${dt}px`)):ge.style.setProperty(oz.name,`-${dt}px`);const Gt=window.innerHeight-Pe.y-Ke.height;window.innerHeight-Ke.height<0&&Gt<0||Gt<0&&ge.style.setProperty(az.name,`${Gt}px`)}}}},[Ge,c]),y.useEffect(()=>{Ce(ye.direction)},[ye]),y.useEffect(()=>{if(K)if(Ge){const ge=K.nextElementSibling;Array.from(ge.getElementsByTagName("UL")[0].children).filter(Ke=>!(Ke.classList.contains("pf-m-disabled")||Ke.classList.contains(Le.divider)))[0].firstChild.focus()}else K.focus()},[Ge,K]);const oe=ge=>{const Pe=ge.key,Ke=ge.target,Bt=ge.type;(Pe===" "||Pe==="Enter"||Pe==="ArrowRight"||Bt==="click")&&(ge.stopPropagation(),ge.preventDefault(),Ge||(re(!0),Te(Ke))),(Pe==="Escape"||Pe==="ArrowLeft")&&Ge&&(ge.stopPropagation(),re(!1))},xe=(ge,Pe)=>{b||(Pe&&Pe(ge,r),h&&h(ge))},De=A&&A||J&&J.includes(r)||!1;let Je;f&&(f==="down"?Je=ge=>ae&&ae(ge,$,typeof C=="function"?C().props.id:C.props.id,r):Je=ge=>ue&&ue(ge,F,r));let z={};ie==="a"?z={href:a,"aria-disabled":g||b?!0:null,disabled:null,target:m?"_blank":N,rel:L,download:U}:ie==="button"&&(z={type:"button","aria-disabled":b?!0:null}),A?z["aria-expanded"]=!0:_e&&(z["aria-haspopup"]="menu",z["aria-expanded"]=Ge);const Y=()=>o!==null?o?"page":null:r!==null&&te!==null?r===te:null,he=()=>v!==null?v:R!==null&&r!==null?Array.isArray(R)&&R.includes(r)||r===R:!1,se=()=>{q||(_e?re(!0):ke(null))};y.useEffect(()=>{if(_&&Re.current){const ge=Re.current,Pe=ge.parentElement;if(Pe){const Ke=ge.offsetTop-Pe.offsetTopy.createElement(ie,Object.assign({id:P,tabIndex:-1,className:D(Le.menuItem,he()&&!i&&Le.modifiers.selected,n),"aria-current":Y()},!i&&{disabled:g,"aria-label":T},!i&&!c&&{role:pe?"option":"menuitem"},!i&&!c&&pe&&{"aria-selected":he()},{ref:I},!i&&{onClick:Pe=>{b?Pe.preventDefault():(xe(Pe,k),Je&&Je(Pe),c&&oe(Pe))}},i&&{htmlFor:ge},z),y.createElement("span",{className:D(Le.menuItemMain)},f==="up"&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(t_,{"aria-hidden":!0})),O&&y.createElement("span",{className:D(Le.menuItemIcon)},O),i&&y.createElement("span",{className:D(Le.menuItemCheck)},y.createElement(ur,{id:ge,component:"span",isChecked:v||!1,onChange:Pe=>xe(Pe,k),isDisabled:g,"aria-disabled":b})),y.createElement("span",{className:D(Le.menuItemText)},t),m&&y.createElement("span",{className:D(Le.menuItemExternalIcon)},y.createElement(uz,{"aria-hidden":!0})),(c||f==="down")&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(Iu,{"aria-hidden":!0})),he()&&y.createElement("span",{className:D(Le.menuItemSelectIcon)},y.createElement(hz,{"aria-hidden":!0}))),d&&f!=="up"&&y.createElement("span",{className:D(Le.menuItemDescription)},y.createElement("span",null,d)))),Ge&&y.createElement(Cl.Provider,{value:{disableHover:q}},y.createElement(dO.Provider,{value:{direction:Ae}},c)),typeof C=="function"?C():C,y.createElement(IT.Provider,{value:{itemId:r,isDisabled:g}},S,l!==null&&y.createElement($T,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:ge=>X(ge,r),tabIndex:-1,actionId:"fav"})));return y.createElement("li",Object.assign({className:D(Le.menuListItem,g&&Le.modifiers.disabled,b&&Le.modifiers.ariaDisabled,De&&Le.modifiers.currentPath,s&&Le.modifiers.load,u&&Le.modifiers.loading,_&&Le.modifiers.focus,x&&Le.modifiers.danger,n),onMouseOver:()=>{b||se()}},c&&!b&&{onKeyDown:oe},{ref:Re,role:i?"menuitem":"none"},i&&{"aria-label":T},W),E?y.createElement($i,Object.assign({},E),He):He)},r_=y.forwardRef((e,t)=>y.createElement(vz,Object.assign({},e,{innerRef:t})));r_.displayName="MenuItem";const a_=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1,"aria-label":a}=e,i=Q(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:o}=y.useContext(Cl);return y.createElement("ul",Object.assign({role:o},o==="listbox"&&{"aria-multiselectable":r},{className:D(Le.menuList,n),"aria-label":a},i),t)};a_.displayName="MenuList";const yz=e=>{var{children:t,className:n,onSelect:r,isOpen:a,selected:i,toggle:o,shouldFocusToggleOnSelect:l=!1,shouldFocusFirstItemOnOpen:s=!0,onOpenChange:u,onOpenChangeKeys:c=["Escape","Tab"],isPlain:f,innerRef:d,zIndex:h=9999,role:p="listbox",popperProps:g,menuHeight:b,maxMenuHeight:m,isScrollable:v}=e,_=Q(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable"]);const x=M.useRef(),O=M.useRef(),S=d||x,w=typeof o=="function"||typeof o!="function"&&!o.toggleRef?O:o==null?void 0:o.toggleRef;M.useEffect(()=>{const A=P=>{var T,E,L;a&&u&&(!((T=S.current)===null||T===void 0)&&T.contains(P.target)||!((E=w.current)===null||E===void 0)&&E.contains(P.target))&&c.includes(P.key)&&(P.preventDefault(),u(!1),(L=w.current)===null||L===void 0||L.focus())},I=P=>{var T,E,L;a&&s&&(!((T=w.current)===null||T===void 0)&&T.contains(P.target))&&setTimeout(()=>{var N;const U=(N=S==null?void 0:S.current)===null||N===void 0?void 0:N.querySelector("li button:not(:disabled),li input:not(:disabled)");U&&U.focus()},0),a&&u&&!(!((E=w==null?void 0:w.current)===null||E===void 0)&&E.contains(P.target))&&a&&!(!((L=S.current)===null||L===void 0)&&L.contains(P.target))&&u(!1)};return window.addEventListener("keydown",A),window.addEventListener("click",I),()=>{window.removeEventListener("keydown",A),window.removeEventListener("click",I)}},[a,S,w,u,c]);const C=M.createElement(Pf,Object.assign({role:p,className:D(n),ref:S,onSelect:(A,I)=>{r&&r(A,I),l&&w.current.focus()},isPlain:f,selected:i,isScrollable:v??(b!==void 0||m!==void 0)},Ll(Tf.displayName,_.ouiaId!==void 0?_.ouiaId:Lo(Tf.displayName),_.ouiaSafe!==void 0?_.ouiaSafe:!0),_),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof o=="function"?o(w):o.toggleNode,triggerRef:w,popper:C,popperRef:S,isVisible:a,zIndex:h},g))},Tf=M.forwardRef((e,t)=>M.createElement(yz,Object.assign({innerRef:t},e)));Tf.displayName="Select";const i_=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,a=Q(e,["children","className","isAriaMultiselectable"]);return M.createElement(a_,Object.assign({isAriaMultiselectable:r,className:D(n)},a),t)};i_.displayName="SelectList";const bz=e=>{var{children:t,className:n,innerRef:r,value:a}=e,i=Q(e,["children","className","innerRef","value"]);return M.createElement(r_,Object.assign({itemId:a,ref:r,className:D(n)},i),t)},o_=M.forwardRef((e,t)=>M.createElement(bz,Object.assign({},e,{innerRef:t})));o_.displayName="SelectOption";const It={check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",menuToggle:"pf-v5-c-menu-toggle",menuToggleButton:"pf-v5-c-menu-toggle__button",menuToggleControls:"pf-v5-c-menu-toggle__controls",menuToggleCount:"pf-v5-c-menu-toggle__count",menuToggleIcon:"pf-v5-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v5-c-menu-toggle__status-icon",menuToggleText:"pf-v5-c-menu-toggle__text",menuToggleToggleIcon:"pf-v5-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",expanded:"pf-m-expanded",plain:"pf-m-plain",text:"pf-m-text",fullHeight:"pf-m-full-height",disabled:"pf-m-disabled",typeahead:"pf-m-typeahead",splitButton:"pf-m-split-button",action:"pf-m-action",active:"pf-m-active",fullWidth:"pf-m-full-width",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger"},textInputGroup:"pf-v5-c-text-input-group",themeDark:"pf-v5-theme-dark"},_z={name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0},xz=ht(_z),LT=xz;var Yc;(function(e){e.success="success",e.danger="danger",e.warning="warning"})(Yc||(Yc={}));class jT extends y.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Lo(mu.displayName,this.props.variant)}}render(){const t=this.props,{children:n,className:r,icon:a,badge:i,isExpanded:o,isDisabled:l,isFullHeight:s,isFullWidth:u,splitButtonOptions:c,variant:f,status:d,statusIcon:h,innerRef:p,onClick:g,"aria-label":b,ouiaId:m,ouiaSafe:v}=t,_=Q(t,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","splitButtonOptions","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe"]),x=f==="plain",O=f==="plainText",S=f==="typeahead",w=Ll(mu.displayName,m??this.state.ouiaStateId,v);let C=h;if(!h)switch(d){case Yc.success:C=y.createElement(Z2,{"aria-hidden":"true"});break;case Yc.warning:C=y.createElement(MT,{"aria-hidden":"true"});break;case Yc.danger:C=y.createElement(AT,{"aria-hidden":"true"});break}const A=y.createElement("span",{className:D(It.menuToggleControls)},d!==void 0&&y.createElement("span",{className:D(It.menuToggleStatusIcon)},C),y.createElement("span",{className:D(It.menuToggleToggleIcon)},y.createElement(LT,{"aria-hidden":!0}))),I=y.createElement(y.Fragment,null,a&&y.createElement("span",{className:D(It.menuToggleIcon)},a),S?n:y.createElement("span",{className:D(It.menuToggleText)},n),y.isValidElement(i)&&y.createElement("span",{className:D(It.menuToggleCount)},i),S?y.createElement("button",Object.assign({type:"button",className:D(It.menuToggleButton),"aria-expanded":o,onClick:g,"aria-label":b||"Menu toggle",tabIndex:-1},w),A):A),P=D(It.menuToggle,o&&It.modifiers.expanded,f==="primary"&&It.modifiers.primary,f==="secondary"&&It.modifiers.secondary,d&&It.modifiers[d],(x||O)&&It.modifiers.plain,O&&It.modifiers.text,s&&It.modifiers.fullHeight,u&&It.modifiers.fullWidth,l&&It.modifiers.disabled,r),T=Object.assign(Object.assign({children:x?n:I},l&&{disabled:!0}),_);return S?y.createElement("div",Object.assign({ref:p,className:D(P,It.modifiers.typeahead)},T)):c?y.createElement("div",{ref:p,className:D(P,It.modifiers.splitButton,(c==null?void 0:c.variant)==="action"&&It.modifiers.action)},c==null?void 0:c.items,y.createElement("button",Object.assign({className:D(It.menuToggleButton,n&&It.modifiers.text),type:"button","aria-expanded":o,"aria-label":b,disabled:l,onClick:g},_,w),n&&y.createElement("span",{className:D(It.menuToggleText)},n),A)):y.createElement("button",Object.assign({className:D(P),type:"button","aria-label":b,"aria-expanded":o,ref:p,disabled:l,onClick:g},T,w))}}jT.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,ouiaSafe:!0};const mu=y.forwardRef((e,t)=>y.createElement(jT,Object.assign({innerRef:t},e)));mu.displayName="MenuToggle";const ss={inputGroup:"pf-v5-c-input-group",inputGroupItem:"pf-v5-c-input-group__item",inputGroupText:"pf-v5-c-input-group__text",modifiers:{box:"pf-m-box",plain:"pf-m-plain",disabled:"pf-m-disabled",fill:"pf-m-fill"},themeDark:"pf-v5-theme-dark"},DT=e=>{var{className:t,children:n,innerRef:r}=e,a=Q(e,["className","children","innerRef"]);const i=y.useRef(null),o=r||i;return y.createElement("div",Object.assign({ref:o,className:D(ss.inputGroup,t)},a),n)};DT.displayName="InputGroupBase";const Qc=y.forwardRef((e,t)=>y.createElement(DT,Object.assign({innerRef:t},e)));Qc.displayName="InputGroup";const Ea=e=>{var{className:t,children:n,isFill:r=!1,isBox:a=!1,isPlain:i,isDisabled:o}=e,l=Q(e,["className","children","isFill","isBox","isPlain","isDisabled"]);return y.createElement("div",Object.assign({className:D(ss.inputGroupItem,r&&ss.modifiers.fill,a&&ss.modifiers.box,i&&ss.modifiers.plain,o&&ss.modifiers.disabled,t)},l),n)};Ea.displayName="InputGroupItem";const Rt={calendarMonth:"pf-v5-c-calendar-month",calendarMonthCalendar:"pf-v5-c-calendar-month__calendar",calendarMonthDate:"pf-v5-c-calendar-month__date",calendarMonthDatesCell:"pf-v5-c-calendar-month__dates-cell",calendarMonthDatesRow:"pf-v5-c-calendar-month__dates-row",calendarMonthDay:"pf-v5-c-calendar-month__day",calendarMonthDays:"pf-v5-c-calendar-month__days",calendarMonthHeader:"pf-v5-c-calendar-month__header",calendarMonthHeaderMonth:"pf-v5-c-calendar-month__header-month",calendarMonthHeaderNavControl:"pf-v5-c-calendar-month__header-nav-control",calendarMonthHeaderYear:"pf-v5-c-calendar-month__header-year",dirRtl:"pf-v5-m-dir-rtl",modifiers:{prevMonth:"pf-m-prev-month",nextMonth:"pf-m-next-month",current:"pf-m-current",inRange:"pf-m-in-range",startRange:"pf-m-start-range",endRange:"pf-m-end-range",adjacentMonth:"pf-m-adjacent-month",selected:"pf-m-selected",disabled:"pf-m-disabled",hover:"pf-m-hover",focus:"pf-m-focus"},themeDark:"pf-v5-theme-dark"};var hO;(function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"})(hO||(hO={}));const wz=(e,t,n,r)=>{const a=new Date(e,t),i=new Date(a);i.setDate(i.getDate()-i.getDay()+n);const o=[];i.getMonth()===a.getMonth()&&i.getDate()!==1&&i.setDate(i.getDate()-7);for(let l=0;l<6;l++){const s=[];for(let u=0;u<7;u++){const c=new Date(i);s.push({date:c,isValid:r.every(f=>f(c))}),i.setDate(i.getDate()+1)}if(o.push(s),i.getMonth()!==a.getMonth())break}return o},ns=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),kv=new Date,NT=e=>{var{date:t,locale:n=void 0,monthFormat:r=re=>re.toLocaleDateString(n,{month:"long"}),weekdayFormat:a=re=>re.toLocaleDateString(n,{weekday:"narrow"}),longWeekdayFormat:i=re=>re.toLocaleDateString(n,{weekday:"long"}),dayFormat:o=re=>re.getDate(),weekStart:l=0,onChange:s=()=>{},validators:u=[()=>!0],className:c,onSelectToggle:f=()=>{},onMonthChange:d=()=>{},rangeStart:h,prevMonthAriaLabel:p="Previous month",nextMonthAriaLabel:g="Next month",yearInputAriaLabel:b="Select year",cellAriaLabel:m,isDateFocused:v=!1,inlineProps:_}=e,x=Q(e,["date","locale","monthFormat","weekdayFormat","longWeekdayFormat","dayFormat","weekStart","onChange","validators","className","onSelectToggle","onMonthChange","rangeStart","prevMonthAriaLabel","nextMonthAriaLabel","yearInputAriaLabel","cellAriaLabel","isDateFocused","inlineProps"]);const O=[0,1,2,3,4,5,6,7,8,9,10,11].map(re=>new Date(1990,re)).map(r),[S,w]=M.useState(!1),A=Sa(t)?t:Sa(h)?h:kv,[I,P]=M.useState(A),T=re=>re.getFullYear(),E=T(I),[L,N]=M.useState(E.toString()),[U,W]=M.useState(void 0),$=M.useRef(),[F]=M.useState(U2("hidden-month-span")),[k,X]=M.useState(!1),te=re=>u.every(oe=>oe(re)),R=te(I);y.useEffect(()=>{Sa(t)&&!ns(I,t)?P(t):t||P(kv)},[t]),y.useEffect(()=>{(k||v)&&R&&$.current&&$.current.focus()},[I,v,R,$]);const J=(re,oe)=>{P(oe),X(!1),d(re,oe),N(T(oe).toString())},ae=re=>{const oe=new Date(I);re.key==="ArrowUp"?oe.setDate(oe.getDate()-7):re.key==="ArrowRight"?oe.setDate(oe.getDate()+1):re.key==="ArrowDown"?oe.setDate(oe.getDate()+7):re.key==="ArrowLeft"&&oe.setDate(oe.getDate()-1),oe.getTime()!==I.getTime()&&te(oe)&&(re.preventDefault(),P(oe),X(!0))},ue=re=>ve(I.getMonth(),re),ve=(re,oe)=>new Date(oe??I.getFullYear(),re,1),ke=1900,q=2100,Z=(re,oe)=>{if(/^\d{0,4}$/.test(oe)&&(N(oe),oe.length===4)){const xe=Number(oe);if(xe>=ke&&xe<=q){const De=ue(xe);P(De),X(!1),re.target.focus(),d(re,De)}else N(E.toString())}},ie=re=>{let oe=I.getMonth()+re,xe=I.getFullYear();return oe===-1?(oe=11,xe--):oe===12&&(oe=0,xe++),ve(oe,xe)},K=ie(-1),Te=ie(1),ye=I.getFullYear(),Ae=I.getMonth(),Ce=M.useMemo(()=>wz(ye,Ae,l,u),[ye,Ae,l,u]);if(!R){const re=Ce.reduce((oe,xe)=>[...oe,...xe],[]).filter(({date:oe,isValid:xe})=>xe&&oe.getMonth()===Ae).map(({date:oe})=>({date:oe,days:Math.abs(I.getTime()-oe.getTime())})).sort((oe,xe)=>oe.days-xe.days).map(({date:oe})=>oe)[0];re&&P(re)}const Re=U&&te(U),Ge=r(I),_e=M.createElement("div",Object.assign({className:D(Rt.calendarMonth,c)},x),M.createElement("div",{className:Rt.calendarMonthHeader},M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.prevMonth)},M.createElement(gt,{variant:"plain","aria-label":p,onClick:re=>J(re,K)},M.createElement(t_,{"aria-hidden":!0}))),M.createElement(Qc,null,M.createElement(Ea,{isFill:!0},M.createElement("div",{className:Rt.calendarMonthHeaderMonth},M.createElement("span",{id:F,hidden:!0},"Month"),M.createElement(Tf,{toggle:re=>M.createElement(mu,{ref:re,onClick:()=>w(!S),isExpanded:S,style:{width:"140px"}},Ge),"aria-labelledby":F,isOpen:S,onOpenChange:re=>{w(re),f(re)},onSelect:(re,oe)=>{setTimeout(()=>{w(!1),f(!1);const xe=ve(Number(oe));P(xe),X(!1),d(re,xe)},0)},selected:Ge},M.createElement(i_,null,O.map((re,oe)=>M.createElement(o_,{key:oe,value:oe,isSelected:re===Ge},re)))))),M.createElement(Ea,null,M.createElement("div",{className:Rt.calendarMonthHeaderYear},M.createElement(Ns,{"aria-label":b,type:"number",value:L,onChange:Z})))),M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.nextMonth)},M.createElement(gt,{variant:"plain","aria-label":g,onClick:re=>J(re,Te)},M.createElement(Iu,{"aria-hidden":!0})))),M.createElement("table",{className:Rt.calendarMonthCalendar,onMouseLeave:()=>W(void 0)},M.createElement("thead",{className:Rt.calendarMonthDays},M.createElement("tr",null,Ce[0].map(({date:re},oe)=>M.createElement("th",{key:oe,className:Rt.calendarMonthDay,scope:"col"},M.createElement("span",{className:"pf-v5-screen-reader"},i(re)),M.createElement("span",{"aria-hidden":!0},a(re)))))),M.createElement("tbody",{onKeyDown:ae},Ce.map((re,oe)=>M.createElement("tr",{key:oe,className:Rt.calendarMonthDatesRow},re.map(({date:xe,isValid:De},Je)=>{const z=o(xe),Y=ns(xe,kv),he=Sa(t)&&ns(xe,t),se=ns(xe,I),pe=xe.getMonth()!==I.getMonth(),He=Sa(h)&&ns(xe,h);let ge=!1,Pe=!1;if(Sa(h)){let Ke;Sa(t)&&(Ke=t),Re&&(!Sa(t)||U>t)&&(Ke=U),Ke&&(ge=xe>=h&&xe<=Ke,Pe=ns(xe,Ke))}return M.createElement("td",{key:Je,className:D(Rt.calendarMonthDatesCell,pe&&Rt.modifiers.adjacentMonth,Y&&Rt.modifiers.current,(he||He)&&Rt.modifiers.selected,!De&&!(ge||He||Pe||he)&&Rt.modifiers.disabled,ge&&Rt.modifiers.inRange,He&&Rt.modifiers.startRange,Pe&&Rt.modifiers.endRange)},M.createElement("button",Object.assign({className:D(Rt.calendarMonthDate,Pe&&Rt.modifiers.hover,!De&&Rt.modifiers.disabled),type:"button",onClick:Ke=>s(Ke,xe),onMouseOver:()=>W(xe),tabIndex:se?0:-1,disabled:!De,"aria-label":m?m(xe):`${o(xe)} ${r(xe)} ${T(xe)}`},se&&{ref:$}),z))}))))));if(_!==void 0){const re=_.component?_.component:"article";return M.createElement(re,Object.assign({},_.ariaLabelledby&&{"aria-labelledby":_.ariaLabelledby}),_.title,_e)}return _e};NT.displayName="CalendarMonth";const it={card:"pf-v5-c-card",cardActions:"pf-v5-c-card__actions",cardBody:"pf-v5-c-card__body",cardExpandableContent:"pf-v5-c-card__expandable-content",cardFooter:"pf-v5-c-card__footer",cardHeader:"pf-v5-c-card__header",cardHeaderMain:"pf-v5-c-card__header-main",cardHeaderToggle:"pf-v5-c-card__header-toggle",cardHeaderToggleIcon:"pf-v5-c-card__header-toggle-icon",cardSelectableActions:"pf-v5-c-card__selectable-actions",cardSrInput:"pf-v5-c-card__sr-input",cardTitle:"pf-v5-c-card__title",cardTitleText:"pf-v5-c-card__title-text",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",modifiers:{selectable:"pf-m-selectable",clickable:"pf-m-clickable",selected:"pf-m-selected",current:"pf-m-current",disabled:"pf-m-disabled",hoverableRaised:"pf-m-hoverable-raised",selectableRaised:"pf-m-selectable-raised",nonSelectableRaised:"pf-m-non-selectable-raised",selectedRaised:"pf-m-selected-raised",compact:"pf-m-compact",displayLg:"pf-m-display-lg",flat:"pf-m-flat",plain:"pf-m-plain",rounded:"pf-m-rounded",expanded:"pf-m-expanded",fullHeight:"pf-m-full-height",toggleRight:"pf-m-toggle-right",noOffset:"pf-m-no-offset",noFill:"pf-m-no-fill"},radio:"pf-v5-c-radio",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label",themeDark:"pf-v5-theme-dark"},Lg=y.createContext({cardId:"",registerTitleId:()=>{},isExpanded:!1,isClickable:!1,isSelectable:!1,isSelected:!1,isClicked:!1,isDisabled:!1}),ra=e=>{var{children:t,id:n="",className:r,component:a="div",isCompact:i=!1,isSelectable:o=!1,isClickable:l=!1,isDisabled:s=!1,isSelectableRaised:u=!1,isSelected:c=!1,isClicked:f=!1,isDisabledRaised:d=!1,isFlat:h=!1,isExpanded:p=!1,isRounded:g=!1,isLarge:b=!1,isFullHeight:m=!1,isPlain:v=!1,ouiaId:_,ouiaSafe:x=!0,hasSelectableInput:O=!1,selectableInputAriaLabel:S,onSelectableInputChange:w=()=>{}}=e,C=Q(e,["children","id","className","component","isCompact","isSelectable","isClickable","isDisabled","isSelectableRaised","isSelected","isClicked","isDisabledRaised","isFlat","isExpanded","isRounded","isLarge","isFullHeight","isPlain","ouiaId","ouiaSafe","hasSelectableInput","selectableInputAriaLabel","onSelectableInputChange"]);const A=a,I=Ii(ra.displayName,_,x),[P,T]=y.useState(""),[E,L]=y.useState();i&&b&&(console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"),b=!1);const N=()=>d?D(it.modifiers.nonSelectableRaised):u?D(it.modifiers.selectableRaised,c&&it.modifiers.selectedRaised):o&&l?D(it.modifiers.selectable,it.modifiers.clickable,(c||f)&&it.modifiers.current):o?D(it.modifiers.selectable,c&&it.modifiers.selected):l?D(it.modifiers.clickable,f&&it.modifiers.current):"",U=y.useRef(!1),W=$=>{T($),U.current=!!$};return y.useEffect(()=>{S?L({"aria-label":S}):P?L({"aria-labelledby":P}):O&&!U.current&&(L({}),console.warn("If no CardTitle component is passed as a child of Card the selectableInputAriaLabel prop must be passed"))},[O,S,P]),y.createElement(Lg.Provider,{value:{cardId:n,registerTitleId:W,isExpanded:p,isClickable:l,isSelectable:o,isSelected:c,isClicked:f,isDisabled:s,hasSelectableInput:O}},O&&y.createElement("input",Object.assign({className:"pf-v5-screen-reader",id:`${n}-input`},E,{type:"checkbox",checked:c,onChange:$=>w($,n),disabled:d,tabIndex:-1})),y.createElement(A,Object.assign({id:n,className:D(it.card,i&&it.modifiers.compact,p&&it.modifiers.expanded,h&&it.modifiers.flat,g&&it.modifiers.rounded,b&&it.modifiers.displayLg,m&&it.modifiers.fullHeight,v&&it.modifiers.plain,N(),s&&it.modifiers.disabled,r),tabIndex:u?"0":void 0},C,I),t))};ra.displayName="Card";const Af=e=>{var{children:t,className:n,component:r="div",isFilled:a=!0}=e,i=Q(e,["children","className","component","isFilled"]);const o=r;return y.createElement(o,Object.assign({className:D(it.cardBody,!a&&it.modifiers.noFill,n)},i),t)};Af.displayName="CardBody";const FT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement(Lg.Consumer,null,({isExpanded:a})=>a?y.createElement("div",Object.assign({className:D(it.cardExpandableContent,n)},r),t):null)};FT.displayName="CardExpandableContent";const zT=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(it.cardFooter,n)},a),t)};zT.displayName="CardFooter";const Fs=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const{cardId:i,registerTitleId:o}=y.useContext(Lg),l=r,s=i?`${i}-title`:"";return y.useEffect(()=>(o(s),()=>o("")),[o,s]),y.createElement("div",{className:D(it.cardTitle)},y.createElement(l,Object.assign({className:D(it.cardTitleText,n),id:s||void 0},a),t))};Fs.displayName="CardTitle";const BT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardHeaderMain,n)},r),t)};BT.displayName="CardHeaderMain";const UT=e=>{var{children:t,className:n,hasNoOffset:r=!1}=e,a=Q(e,["children","className","hasNoOffset"]);return y.createElement("div",Object.assign({className:D(it.cardActions,r&&it.modifiers.noOffset,n)},a),t)};UT.displayName="CardActions";const HT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardSelectableActions,n)},r),t)};HT.displayName="CardSelectableActions";const zo={modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"},radio:"pf-v5-c-radio",radioBody:"pf-v5-c-radio__body",radioDescription:"pf-v5-c-radio__description",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label"};class gu extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},!t.label&&!t["aria-label"]&&console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Lo(gu.displayName)}}render(){const t=this.props,{"aria-label":n,checked:r,className:a,inputClassName:i,defaultChecked:o,isLabelWrapped:l,isLabelBeforeButton:s,isChecked:u,isDisabled:c,isValid:f,label:d,onChange:h,description:p,body:g,ouiaId:b,ouiaSafe:m=!0,component:v}=t,_=Q(t,["aria-label","checked","className","inputClassName","defaultChecked","isLabelWrapped","isLabelBeforeButton","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Radio:","id is required to make input accessible");const x=y.createElement("input",Object.assign({},_,{className:D(zo.radioInput,i),type:"radio",onChange:this.handleChange,"aria-invalid":!f,disabled:c,checked:r||u},r===void 0&&{defaultChecked:o},!d&&{"aria-label":n},Ll(gu.displayName,b!==void 0?b:this.state.ouiaStateId,m))),O=l&&!v||v==="label",S=O?"span":"label",w=d?y.createElement(S,{className:D(zo.radioLabel,c&&zo.modifiers.disabled),htmlFor:O?void 0:_.id},d):null,C=v??(O?"label":"div");return y.createElement(C,{className:D(zo.radio,!d&&zo.modifiers.standalone,a),htmlFor:O?_.id:void 0},s?y.createElement(y.Fragment,null,w,x):y.createElement(y.Fragment,null,x,w),p&&y.createElement("span",{className:D(zo.radioDescription)},p),g&&y.createElement("span",{className:D(zo.radioBody)},g))}}gu.displayName="Radio";gu.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}};const WT=e=>{var{children:t,className:n,actions:r,selectableActions:a,id:i,onExpand:o,toggleButtonProps:l,isToggleRightAligned:s}=e,u=Q(e,["children","className","actions","selectableActions","id","onExpand","toggleButtonProps","isToggleRightAligned"]);return y.createElement(Lg.Consumer,null,({cardId:c,isClickable:f,isSelectable:d,isSelected:h,isClicked:p,isDisabled:g,hasSelectableInput:b})=>{const m=y.createElement("div",{className:D(it.cardHeaderToggle)},y.createElement(gt,Object.assign({variant:"plain",type:"button",onClick:S=>{o(S,c)}},l),y.createElement("span",{className:D(it.cardHeaderToggleIcon)},y.createElement(Iu,{"aria-hidden":"true"})))),v=f&&!d||d&&!f,_=b;r!=null&&r.actions&&v&&!_&&console.warn(`${f?"Clickable":"Selectable"} only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card.`);const x=S=>{a!=null&&a.onClickAction?a.onClickAction(S):a!=null&&a.to&&window.open(a.to,a.isExternalLink?"_blank":"_self")},O=()=>{var S;const w={className:"pf-m-standalone",inputClassName:f&&!d&&"pf-v5-screen-reader",label:y.createElement(y.Fragment,null),"aria-label":a.selectableActionAriaLabel,"aria-labelledby":a.selectableActionAriaLabelledby,id:a.selectableActionId,name:a.name,isDisabled:g},C=(S=a.isChecked)!==null&&S!==void 0?S:h;return f&&!d?Object.assign(Object.assign({},w),{onClick:x,isChecked:p}):d?Object.assign(Object.assign({},w),{onChange:a.onChange,isChecked:C}):w};return y.createElement("div",Object.assign({className:D(it.cardHeader,s&&it.modifiers.toggleRight,n),id:i},u),o&&!s&&m,(r||a&&(f||d))&&y.createElement(UT,{className:r==null?void 0:r.className,hasNoOffset:(r==null?void 0:r.hasNoOffset)||(a==null?void 0:a.hasNoOffset)},r==null?void 0:r.actions,a&&(f||d)&&y.createElement(HT,{className:a==null?void 0:a.className},(a==null?void 0:a.variant)==="single"||f&&!d?y.createElement(gu,Object.assign({},O())):y.createElement(ur,Object.assign({},O())))),t&&y.createElement(BT,null,t),o&&s&&m)})};WT.displayName="CardHeader";const Sz={name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0},Oz=ht(Sz),Cz=Oz,ut={modifiers:{noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",custom:"pf-m-custom",info:"pf-m-info"},popover:"pf-v5-c-popover",popoverArrow:"pf-v5-c-popover__arrow",popoverBody:"pf-v5-c-popover__body",popoverClose:"pf-v5-c-popover__close",popoverContent:"pf-v5-c-popover__content",popoverFooter:"pf-v5-c-popover__footer",popoverHeader:"pf-v5-c-popover__header",popoverTitle:"pf-v5-c-popover__title",popoverTitleIcon:"pf-v5-c-popover__title-icon",popoverTitleText:"pf-v5-c-popover__title-text",themeDark:"pf-v5-theme-dark"},Ez=y.createContext({}),VT=e=>{var{className:t=null,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ut.popoverContent,t)},r),n)};VT.displayName="PopoverContent";const qT=e=>{var{children:t,id:n,className:r}=e,a=Q(e,["children","id","className"]);return y.createElement("div",Object.assign({className:D(ut.popoverBody,r),id:n},a),t)};qT.displayName="PopoverBody";const GT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(ut.popoverTitleIcon,n)},r),t)};GT.displayName="PopoverHeaderIcon";const KT=e=>{var{children:t,className:n,headingLevel:r}=e,a=Q(e,["children","className","headingLevel"]);const i=r;return y.createElement(i,Object.assign({className:D(ut.popoverTitleText,n)},a),t)};KT.displayName="PopoverHeaderText";const XT=e=>{var{children:t,icon:n,className:r,titleHeadingLevel:a="h6",alertSeverityVariant:i,id:o,alertSeverityScreenReaderText:l}=e,s=Q(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return y.createElement("header",Object.assign({className:D(ut.popoverHeader,r)},s),y.createElement("div",{className:D(ut.popoverTitle),id:o},n&&y.createElement(GT,null,n),y.createElement(KT,{headingLevel:a},i&&l&&y.createElement("span",{className:"pf-v5-screen-reader"},l),t)))};XT.displayName="PopoverHeader";const YT=e=>{var{children:t,className:n=""}=e,r=Q(e,["children","className"]);return y.createElement("footer",Object.assign({className:D(ut.popoverFooter,n)},r),t)};YT.displayName="PopoverFooter";const QT=e=>{var{onClose:t=()=>{}}=e,n=Q(e,["onClose"]);return y.createElement("div",{className:D(ut.popoverClose)},y.createElement(gt,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),y.createElement(Tb,null)))};QT.displayName="PopoverCloseButton";const JT=e=>{var{className:t=""}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(ut.popoverArrow,t)},n))};JT.displayName="PopoverArrow";const Pv={name:"--pf-v5-c-popover--MaxWidth",value:"none",var:"var(--pf-v5-c-popover--MaxWidth)"},Tv={name:"--pf-v5-c-popover--MinWidth",value:"auto",var:"var(--pf-v5-c-popover--MinWidth)"};var pO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(pO||(pO={}));const kz={custom:ut.modifiers.custom,info:ut.modifiers.info,success:ut.modifiers.success,warning:ut.modifiers.warning,danger:ut.modifiers.danger},l_=e=>{var{children:t,position:n="top",enableFlip:r=!0,className:a="",isVisible:i=null,shouldClose:o=()=>null,shouldOpen:l=()=>null,"aria-label":s="",bodyContent:u,headerContent:c=null,headerComponent:f="h6",headerIcon:d=null,alertSeverityVariant:h,alertSeverityScreenReaderText:p,footerContent:g=null,appendTo:b=()=>document.body,hideOnOutsideClick:m=!0,onHide:v=()=>null,onHidden:_=()=>null,onShow:x=()=>null,onShown:O=()=>null,onMount:S=()=>null,zIndex:w=9999,triggerAction:C="click",minWidth:A=Tv&&Tv.value,maxWidth:I=Pv&&Pv.value,closeBtnAriaLabel:P="Close",showClose:T=!0,distance:E=25,flipBehavior:L=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:N=300,id:U,withFocusTrap:W,triggerRef:$,hasNoPadding:F=!1,hasAutoWidth:k=!1,elementToFocus:X}=e,te=Q(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const R=U||U2(),J=i!==null,[ae,ue]=y.useState(!1),[ve,ke]=y.useState(!!W),q=y.useRef(null);y.useEffect(()=>{S()},[]),y.useEffect(()=>{J&&(i?Z(void 0,!0):ie())},[i,J]);const Z=(z,Y)=>{z&&x(z),ue(!0),W!==!1&&Y&&ke(!0)},ie=z=>{z&&v(z),ue(!1)},K={top:ut.modifiers.top,bottom:ut.modifiers.bottom,left:ut.modifiers.left,right:ut.modifiers.right,"top-start":ut.modifiers.topLeft,"top-end":ut.modifiers.topRight,"bottom-start":ut.modifiers.bottomLeft,"bottom-end":ut.modifiers.bottomRight,"left-start":ut.modifiers.leftTop,"left-end":ut.modifiers.leftBottom,"right-start":ut.modifiers.rightTop,"right-end":ut.modifiers.rightBottom},Te=A!==Tv.value,ye=I!==Pv.value,Ae=z=>{z.key===Hp.Escape&&ae&&(J?o(z,ie):ie(z))},Ce=(z,Y,he)=>{if(m&&ae){const se=he&&he.contains(z.target),pe=Y&&Y.contains(z.target);if(se||pe)return;J?o(z,ie):ie(z)}},Re=z=>{J?ae?o(z,ie):l(z,Z):ae?ie(z):Z(z,!0)},Ge=()=>{ve&&ke(!1)},_e=z=>{J?l(z,Z):Z(z,!1)},re=z=>{J?o(z,ie):ie(z)},oe=z=>{J?l(z,Z):Z(z,!1)},xe=z=>{J?o(z,ie):ie(z)},De=z=>{z.stopPropagation(),J?o(z,ie):ie(z)},Je=y.createElement(B2,Object.assign({ref:q,active:ve,focusTrapOptions:{returnFocusOnDeactivate:W!==!1,clickOutsideDeactivates:!0,initialFocus:X||void 0,checkCanFocusTrap:z=>new Promise(Y=>{const he=setInterval(()=>{z.every(se=>getComputedStyle(se).visibility!=="hidden")&&(Y(),clearInterval(he))},10)}),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let z=null;return document&&document.activeElement&&(z=document.activeElement),z}},preventScrollOnDeactivate:!0,className:D(ut.popover,h&&kz[h],F&&ut.modifiers.noPadding,k&&ut.modifiers.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":c?void 0:s,"aria-labelledby":c?`popover-${R}-header`:void 0,"aria-describedby":`popover-${R}-body`,onMouseDown:Ge,style:{minWidth:Te?A:null,maxWidth:ye?I:null}},te),y.createElement(JT,null),y.createElement(VT,null,T&&C==="click"&&y.createElement(QT,{onClose:De,"aria-label":P}),c&&y.createElement(XT,{id:`popover-${R}-header`,icon:d,alertSeverityVariant:h,alertSeverityScreenReaderText:p||`${h} alert:`,titleHeadingLevel:f},typeof c=="function"?c(ie):c),y.createElement(qT,{id:`popover-${R}-body`},typeof u=="function"?u(ie):u),g&&y.createElement(YT,{id:`popover-${R}-footer`},typeof g=="function"?g(ie):g)));return y.createElement(Ez.Provider,{value:{headerComponent:f}},y.createElement(jl,{trigger:t,triggerRef:$,popper:Je,popperRef:q,minWidth:A,appendTo:b,isVisible:ae,onMouseEnter:C==="hover"&&_e,onMouseLeave:C==="hover"&&re,onPopperMouseEnter:C==="hover"&&_e,onPopperMouseLeave:C==="hover"&&re,onFocus:C==="hover"&&oe,onBlur:C==="hover"&&xe,positionModifiers:K,distance:E,placement:n,onTriggerClick:C==="click"&&Re,onDocumentClick:Ce,onDocumentKeyDown:Ae,enableFlip:r,zIndex:w,flipBehavior:L,animationDuration:N,onHidden:_,onShown:O,onHide:()=>ke(!1)}))};l_.displayName="Popover";const Av={divider:"pf-v5-c-divider",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",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var Mb;(function(e){e.hr="hr",e.li="li",e.div="div"})(Mb||(Mb={}));const ZT=e=>{var{className:t,component:n=Mb.hr,inset:r,orientation:a}=e,i=Q(e,["className","component","inset","orientation"]);const o=n;return y.createElement(o,Object.assign({className:D(Av.divider,Ci(r,Av),Ci(a,Av),t)},n!=="hr"&&{role:"separator"},i))};ZT.displayName="Divider";const kt={dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",drawerActions:"pf-v5-c-drawer__actions",drawerBody:"pf-v5-c-drawer__body",drawerClose:"pf-v5-c-drawer__close",drawerContent:"pf-v5-c-drawer__content",drawerHead:"pf-v5-c-drawer__head",drawerMain:"pf-v5-c-drawer__main",drawerPanel:"pf-v5-c-drawer__panel",drawerPanelMain:"pf-v5-c-drawer__panel-main",drawerSection:"pf-v5-c-drawer__section",drawerSplitter:"pf-v5-c-drawer__splitter",drawerSplitterHandle:"pf-v5-c-drawer__splitter-handle",modifiers:{panelBottom:"pf-m-panel-bottom",inline:"pf-m-inline",noBorder:"pf-m-no-border",resizable:"pf-m-resizable",static:"pf-m-static",panelLeft:"pf-m-panel-left",expanded:"pf-m-expanded",resizing:"pf-m-resizing",noBackground:"pf-m-no-background",light_200:"pf-m-light-200",noPadding:"pf-m-no-padding",padding:"pf-m-padding",vertical:"pf-m-vertical",width_25:"pf-m-width-25",width_33:"pf-m-width-33",width_50:"pf-m-width-50",width_66:"pf-m-width-66",width_75:"pf-m-width-75",width_100:"pf-m-width-100",width_25OnLg:"pf-m-width-25-on-lg",width_33OnLg:"pf-m-width-33-on-lg",width_50OnLg:"pf-m-width-50-on-lg",width_66OnLg:"pf-m-width-66-on-lg",width_75OnLg:"pf-m-width-75-on-lg",width_100OnLg:"pf-m-width-100-on-lg",width_25OnXl:"pf-m-width-25-on-xl",width_33OnXl:"pf-m-width-33-on-xl",width_50OnXl:"pf-m-width-50-on-xl",width_66OnXl:"pf-m-width-66-on-xl",width_75OnXl:"pf-m-width-75-on-xl",width_100OnXl:"pf-m-width-100-on-xl",width_25On_2xl:"pf-m-width-25-on-2xl",width_33On_2xl:"pf-m-width-33-on-2xl",width_50On_2xl:"pf-m-width-50-on-2xl",width_66On_2xl:"pf-m-width-66-on-2xl",width_75On_2xl:"pf-m-width-75-on-2xl",width_100On_2xl:"pf-m-width-100-on-2xl",inlineOnLg:"pf-m-inline-on-lg",staticOnLg:"pf-m-static-on-lg",inlineOnXl:"pf-m-inline-on-xl",staticOnXl:"pf-m-static-on-xl",inlineOn_2xl:"pf-m-inline-on-2xl",staticOn_2xl:"pf-m-static-on-2xl"},pageMain:"pf-v5-c-page__main",themeDark:"pf-v5-theme-dark"};var bo;(function(e){e.default="default",e.light200="light-200",e.noBackground="no-background"})(bo||(bo={}));const s_=y.createContext({isExpanded:!1,isStatic:!1,onExpand:()=>{},position:"end",drawerRef:null,drawerContentRef:null,isInline:!1}),eA=e=>{var{className:t="",children:n,isExpanded:r=!1,isInline:a=!1,isStatic:i=!1,position:o="end",onExpand:l=()=>{}}=e,s=Q(e,["className","children","isExpanded","isInline","isStatic","position","onExpand"]);const u=y.useRef(),c=y.useRef();return y.createElement(s_.Provider,{value:{isExpanded:r,isStatic:i,onExpand:l,position:o,drawerRef:u,drawerContentRef:c,isInline:a}},y.createElement("div",Object.assign({className:D(kt.drawer,r&&kt.modifiers.expanded,a&&kt.modifiers.inline,i&&kt.modifiers.static,(o==="left"||o==="start")&&kt.modifiers.panelLeft,o==="bottom"&&kt.modifiers.panelBottom,t),ref:u},s),n))};eA.displayName="Drawer";const tA=e=>{var{className:t="",children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(kt.drawerMain,t)},r),n)};tA.displayName="DrawerMain";const nA=e=>{var{className:t="",children:n,panelContent:r,colorVariant:a=bo.default}=e,i=Q(e,["className","children","panelContent","colorVariant"]);const{drawerContentRef:o}=y.useContext(s_);return y.createElement(tA,null,y.createElement("div",Object.assign({className:D(kt.drawerContent,a===bo.light200&&kt.modifiers.light_200,a===bo.noBackground&&kt.modifiers.noBackground,t),ref:o},i),n),r)};nA.displayName="DrawerContent";const rA=e=>{var{className:t="",children:n,hasPadding:r=!1}=e,a=Q(e,["className","children","hasPadding"]);return y.createElement("div",Object.assign({className:D(kt.drawerBody,r&&kt.modifiers.padding,t)},a),n)};rA.displayName="DrawerContentBody";const Mv={name:"--pf-v5-c-drawer__panel--md--FlexBasis",value:"50%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis)"},Pz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--min",value:"1.5rem",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--min)"},Tz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--max",value:"100%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--max)"};let Wi=null,sc=0;const aA=e=>{var{className:t="",id:n,children:r,hasNoBorder:a=!1,isResizable:i=!1,onResize:o,minSize:l,defaultSize:s,maxSize:u,increment:c=5,resizeAriaLabel:f="Resize",widths:d,colorVariant:h=bo.default,focusTrap:p}=e,g=Q(e,["className","id","children","hasNoBorder","isResizable","onResize","minSize","defaultSize","maxSize","increment","resizeAriaLabel","widths","colorVariant","focusTrap"]);const b=y.useRef(),m=y.useRef(),[v,_]=y.useState(0),{position:x,isExpanded:O,isStatic:S,onExpand:w,drawerRef:C,drawerContentRef:A,isInline:I}=y.useContext(s_),P=S?!1:!O,[T,E]=y.useState(!P),[L,N]=y.useState(!1),U=y.useRef(null);let W=0,$,F,k,X,te=!0;S&&(p!=null&&p.enabled)&&console.warn("DrawerPanelContent: The focusTrap.enabled prop cannot be true if the Drawer's isStatic prop is true. This will cause a permanent focus trap."),y.useEffect(()=>{!S&&O&&E(O)},[S,O]);const R=()=>{let _e,re;const oe=Ds(b.current)==="rtl";I&&(x==="end"||x==="right")?oe?(_e=b.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=b.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):I&&(x==="start"||x==="left")?oe?(_e=m.current.getBoundingClientRect().left-b.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-b.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):x==="end"||x==="right"?oe?(_e=A.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=A.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="start"||x==="left"?oe?(_e=m.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="bottom"&&(_e=A.current.getBoundingClientRect().bottom-m.current.getBoundingClientRect().top,re=A.current.getBoundingClientRect().bottom-A.current.getBoundingClientRect().top);const xe=_e/re*100;return Math.round((xe+Number.EPSILON)*100)/100},J=_e=>{_e.stopPropagation(),document.addEventListener("touchmove",Te,{passive:!1}),document.addEventListener("touchend",K),Wi=!0},ae=_e=>{_e.stopPropagation(),_e.preventDefault(),document.addEventListener("mousemove",ie),document.addEventListener("mouseup",ye),C.current.classList.add(D(kt.modifiers.resizing)),Wi=!0,te=!0},ue=_e=>{const re=x==="bottom"?_e.clientY:_e.clientX;ke(_e,re)},ve=_e=>{_e.preventDefault(),_e.stopImmediatePropagation();const re=x==="bottom"?_e.touches[0].clientY:_e.touches[0].clientX;ke(_e,re)},ke=(_e,re)=>{const oe=Ds(b.current)==="rtl";if(_e.stopPropagation(),!Wi)return;te&&($=b.current.getBoundingClientRect(),oe?(k=$.right,F=$.left):(F=$.right,k=$.left),X=$.bottom,te=!1);const xe=re;let De=0;x==="end"||x==="right"?De=oe?xe-F:F-xe:x==="start"||x==="left"?De=oe?k-xe:xe-k:De=X-xe,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Mv.name,De+"px"),W=De,_(R())},q=_e=>{Wi&&(C.current.classList.remove(D(kt.modifiers.resizing)),Wi=!1,o&&o(_e,W,n),te=!0,document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",ye))},Z=_e=>{_e.stopPropagation(),Wi&&(Wi=!1,o&&o(_e,W,n),document.removeEventListener("touchmove",Te),document.removeEventListener("touchend",K))},ie=y.useCallback(ue,[]),K=y.useCallback(Z,[]),Te=y.useCallback(ve,[]),ye=y.useCallback(q,[]),Ae=_e=>{const re=Ds(b.current)==="rtl",oe=_e.key;if(oe!=="Escape"&&oe!=="Enter"&&oe!=="ArrowUp"&&oe!=="ArrowDown"&&oe!=="ArrowLeft"&&oe!=="ArrowRight"){Wi&&_e.preventDefault();return}_e.preventDefault(),(oe==="Escape"||oe==="Enter")&&o&&o(_e,W,n);const xe=b.current.getBoundingClientRect();sc=x==="bottom"?xe.height:xe.width;let De=0;oe==="ArrowRight"?re?De=x==="left"||x==="start"?-c:c:De=x==="left"||x==="start"?c:-c:oe==="ArrowLeft"?re?De=x==="left"||x==="start"?c:-c:De=x==="left"||x==="start"?-c:c:oe==="ArrowUp"?De=c:oe==="ArrowDown"&&(De=-c),sc=sc+De,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Mv.name,sc+"px"),W=sc,_(R())},Ce={};s&&(Ce[Mv.name]=s),l&&(Ce[Pz.name]=l),u&&(Ce[Tz.name]=u);const Re=(p==null?void 0:p.enabled)&&!S,Ge=Re?B2:"div";return y.createElement(Mu,{prefix:"pf-drawer-panel-"},_e=>{const re={tabIndex:-1,"aria-modal":!0,role:"dialog",active:L,"aria-labelledby":(p==null?void 0:p["aria-labelledby"])||n||_e,focusTrapOptions:{fallbackFocus:()=>b.current,onActivate:()=>{U.current!==document.activeElement&&(U.current=document.activeElement)},onDeactivate:()=>{U.current&&U.current.focus&&U.current.focus()},clickOutsideDeactivates:!0,returnFocusOnDeactivate:!1,initialFocus:(p==null?void 0:p.elementToFocusOnExpand)||void 0,escapeDeactivates:!1}};return y.createElement(Ge,Object.assign({},Re&&re,{id:n||_e,className:D(kt.drawerPanel,i&&kt.modifiers.resizable,a&&kt.modifiers.noBorder,Ci(d,kt),h===bo.light200&&kt.modifiers.light_200,h===bo.noBackground&&kt.modifiers.noBackground,t),onTransitionEnd:oe=>{oe.target===b.current&&(!P&&oe.nativeEvent.propertyName==="transform"&&w(oe),E(!P),Re&&oe.nativeEvent.propertyName==="transform"&&N(xe=>!xe))},hidden:P},(s||l||u)&&{style:Ce},g,{ref:b}),T&&y.createElement(y.Fragment,null,i&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(kt.drawerSplitter,x!=="bottom"&&kt.modifiers.vertical),role:"separator",tabIndex:0,"aria-orientation":x==="bottom"?"horizontal":"vertical","aria-label":f,"aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,"aria-controls":n||_e,onMouseDown:ae,onKeyDown:Ae,onTouchStart:J,ref:m},y.createElement("div",{className:D(kt.drawerSplitterHandle),"aria-hidden":!0})),y.createElement("div",{className:D(kt.drawerPanelMain)},r)),!i&&r))})};aA.displayName="DrawerPanelContent";const Az=e=>{var{children:t,className:n,onSelect:r,isOpen:a,toggle:i,shouldFocusToggleOnSelect:o=!1,onOpenChange:l,isPlain:s,isScrollable:u,innerRef:c,ouiaId:f,ouiaSafe:d=!0,zIndex:h=9999,popperProps:p,onOpenChangeKeys:g=["Escape","Tab"],menuHeight:b,maxMenuHeight:m,shouldFocusFirstItemOnOpen:v=!0}=e,_=Q(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen"]);const x=M.useRef(),O=M.useRef(),S=Ii(u_.displayName,f,d),w=c||x,C=typeof i=="function"||typeof i!="function"&&!i.toggleRef?O:i==null?void 0:i.toggleRef;M.useEffect(()=>{const P=E=>{var L,N,U;a&&l&&(!((L=w.current)===null||L===void 0)&&L.contains(E.target)||!((N=C.current)===null||N===void 0)&&N.contains(E.target))&&g.includes(E.key)&&(l(!1),(U=C.current)===null||U===void 0||U.focus())},T=E=>{var L,N,U;a&&v&&(!((L=C.current)===null||L===void 0)&&L.contains(E.target))&&setTimeout(()=>{var W;const $=(W=w==null?void 0:w.current)===null||W===void 0?void 0:W.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');$&&$.focus()},0),a&&l&&!(!((N=C==null?void 0:C.current)===null||N===void 0)&&N.contains(E.target))&&a&&!(!((U=w.current)===null||U===void 0)&&U.contains(E.target))&&l(!1)};return window.addEventListener("keydown",P),window.addEventListener("click",T),()=>{window.removeEventListener("keydown",P),window.removeEventListener("click",T)}},[a,w,C,l,g]);const A=m!==void 0||b!==void 0||u,I=M.createElement(Pf,Object.assign({className:D(n),ref:w,onSelect:(P,T)=>{r&&r(P,T),o&&C.current.focus()},isPlain:s,isScrollable:A},_,S),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof i=="function"?i(C):i.toggleNode,triggerRef:C,popper:I,popperRef:w,isVisible:a,zIndex:h},p))},u_=M.forwardRef((e,t)=>M.createElement(Az,Object.assign({innerRef:t},e)));u_.displayName="Dropdown";const Mz=e=>{var{children:t,className:n,description:r,isDisabled:a,isAriaDisabled:i,value:o,onClick:l,ouiaId:s,ouiaSafe:u,innerRef:c,tooltipProps:f}=e,d=Q(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const h=Ii(c_.displayName,s,u);return M.createElement(r_,Object.assign({className:D(n),description:r,isDisabled:a,isAriaDisabled:i,itemId:o,onClick:l,tooltipProps:f,ref:c},h,d),t)},c_=M.forwardRef((e,t)=>M.createElement(Mz,Object.assign({},e,{innerRef:t})));c_.displayName="DropdownItem";const iA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return M.createElement(a_,Object.assign({className:D(n)},r),t)};iA.displayName="DropdownList";const ei={icon:"pf-v5-c-icon",iconContent:"pf-v5-c-icon__content",iconProgress:"pf-v5-c-icon__progress",modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl",inProgress:"pf-m-in-progress",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",info:"pf-m-info",custom:"pf-m-custom"},spinner:"pf-v5-c-spinner"},oA=e=>{var{children:t,className:n,progressIcon:r,size:a,iconSize:i,progressIconSize:o,status:l,isInline:s=!1,isInProgress:u=!1,defaultProgressArialabel:c="Loading...",shouldMirrorRTL:f=!1}=e,d=Q(e,["children","className","progressIcon","size","iconSize","progressIconSize","status","isInline","isInProgress","defaultProgressArialabel","shouldMirrorRTL"]);const h=r??y.createElement(Rg,{diameter:"1em","aria-label":c});return y.createElement("span",Object.assign({className:D(ei.icon,s&&ei.modifiers.inline,u&&ei.modifiers.inProgress,ei.modifiers[a],n)},d),y.createElement("span",{className:D(ei.iconContent,ei.modifiers[i],ei.modifiers[l],f&&"pf-v5-m-mirror-inline-rtl")},t),u&&y.createElement("span",{className:D(ei.iconProgress,ei.modifiers[o],n)},h))};oA.displayName="Icon";const Iz={name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0},Rz=ht(Iz),f_=Rz,$z={name:"SearchIcon",height:512,width:512,svgPath:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z",yOffset:0,xOffset:0},Lz=ht($z),mO=Lz,jz={name:"ArrowRightIcon",height:512,width:448,svgPath:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",yOffset:0,xOffset:0},Dz=ht(jz),Nz=Dz,Yt={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},lA=e=>{var{children:t=null,className:n=""}=e,r=Q(e,["children","className"]);const a=D(Yt.formGroup,Yt.modifiers.action,n),i=y.createElement("div",{className:D(Yt.formActions)},t);return y.createElement("div",Object.assign({},r,{className:a}),y.createElement("div",{className:D(Yt.formGroupControl)},i))};lA.displayName="ActionGroup";const Fz={name:"--pf-v5-c-form--m-limit-width--MaxWidth",value:"55rem",var:"var(--pf-v5-c-form--m-limit-width--MaxWidth)"},zz=e=>{var{children:t=null,className:n="",isHorizontal:r=!1,isWidthLimited:a=!1,maxWidth:i="",innerRef:o}=e,l=Q(e,["children","className","isHorizontal","isWidthLimited","maxWidth","innerRef"]);return y.createElement("form",Object.assign({noValidate:!0},i&&{style:Object.assign({[Fz.name]:i},l.style)},l,{className:D(Yt.form,r&&Yt.modifiers.horizontal,(a||i)&&Yt.modifiers.limitWidth,n),ref:o}),t)},sA=y.forwardRef((e,t)=>y.createElement(zz,Object.assign({innerRef:t},e)));sA.displayName="Form";const up=e=>{var{children:t=null,className:n="",label:r,labelInfo:a,labelIcon:i,isRequired:o=!1,isInline:l=!1,hasNoPaddingTop:s=!1,isStack:u=!1,fieldId:c,role:f}=e,d=Q(e,["children","className","label","labelInfo","labelIcon","isRequired","isInline","hasNoPaddingTop","isStack","fieldId","role"]);const h=f==="group"||f==="radiogroup",p=h?"span":"label",g=y.createElement(y.Fragment,null,y.createElement(p,Object.assign({className:D(Yt.formLabel)},!h&&{htmlFor:c}),y.createElement("span",{className:D(Yt.formLabelText)},r),o&&y.createElement("span",{className:D(Yt.formLabelRequired),"aria-hidden":"true"}," ",yT))," ",y.isValidElement(i)&&i);return y.createElement(Mu,null,b=>y.createElement("div",Object.assign({className:D(Yt.formGroup,n)},f&&{role:f},h&&{"aria-labelledby":`${c||b}-legend`},d),r&&y.createElement("div",Object.assign({className:D(Yt.formGroupLabel,a&&Yt.modifiers.info,s&&Yt.modifiers.noPaddingTop)},h&&{id:`${c||b}-legend`}),a&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(Yt.formGroupLabelMain)},g),y.createElement("div",{className:D(Yt.formGroupLabelInfo)},a)),!a&&g),y.createElement("div",{className:D(Yt.formGroupControl,l&&Yt.modifiers.inline,u&&Yt.modifiers.stack)},t)))};up.displayName="FormGroup";const ws={modifiers:{bordered:"pf-m-bordered",raised:"pf-m-raised",scrollable:"pf-m-scrollable"},panel:"pf-v5-c-panel",panelFooter:"pf-v5-c-panel__footer",panelHeader:"pf-v5-c-panel__header",panelMain:"pf-v5-c-panel__main",panelMainBody:"pf-v5-c-panel__main-body",themeDark:"pf-v5-theme-dark"},Bz=e=>{var{className:t,children:n,variant:r,isScrollable:a,innerRef:i}=e,o=Q(e,["className","children","variant","isScrollable","innerRef"]);return y.createElement("div",Object.assign({className:D(ws.panel,r==="raised"&&ws.modifiers.raised,r==="bordered"&&ws.modifiers.bordered,a&&ws.modifiers.scrollable,t),ref:i},o),n)},uA=y.forwardRef((e,t)=>y.createElement(Bz,Object.assign({innerRef:t},e)));uA.displayName="Panel";const Uz={name:"--pf-v5-c-panel__main--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-panel__main--MaxHeight)"},cA=e=>{var{className:t,children:n,maxHeight:r}=e,a=Q(e,["className","children","maxHeight"]);return y.createElement("div",Object.assign({className:D(ws.panelMain,t),style:{[Uz.name]:r}},a),n)};cA.displayName="PanelMain";const fA=e=>{var{className:t,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ws.panelMainBody,t)},r),n)};fA.displayName="PanelMainBody";const dA=({className:e,parentRef:t,parentInputRef:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,getAttrValueMap:s,onChange:u,onSearch:c,onClear:f,resetButtonLabel:d="Reset",submitSearchButtonLabel:h="Search",isSearchMenuOpen:p,onToggleAdvancedMenu:g})=>{const b=y.useRef(null),[m,v]=y.useState(!1);y.useEffect(()=>{a.length>0&&!l&&console.error("AdvancedSearchMenu: An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{p&&b&&b.current?(b.current.focus(),v(!0)):!p&&m&&n&&n.current&&n.current.focus()},[p]),y.useEffect(()=>(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",x),function(){document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",x)}));const _=A=>{const I=t&&t.current.contains(A.target);p&&!I&&g(A)},x=A=>{p&&A.key===Hp.Escape&&t&&t.current.contains(A.target)&&(g(A),n&&n.current.focus())},O=A=>{A.preventDefault(),c&&c(A,r,s()),p&&g(A)},S=(A,I,P)=>{const T=s();T[A]=I;let E="";Object.entries(T).forEach(([L,N])=>{if(N.trim()!==""){const U=N.includes(" ")?`'${N.replace(/(^'|'$)/g,"")}'`:N;L!=="haswords"?E=`${E} ${L}${l}${U}`:E=`${E} ${U}`}}),u&&u(P,E.replace(/^\s+/g,""))},w=A=>{const I=s();return I.hasOwnProperty(A)?I[A]:""},C=()=>{const A=[];return a.forEach((I,P)=>{const T=typeof I=="string"?I:I.display,E=typeof I=="string"?I:I.attr;P===0?A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{ref:b,type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)}))):A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)})))}),A.push(y.createElement(Mu,{key:"hasWords"},I=>y.createElement(up,{label:o,fieldId:I},y.createElement(Ns,{type:"text",id:I,value:w("haswords"),onChange:(P,T)=>S("haswords",T,P)})))),A};return p?y.createElement(uA,{variant:"raised",className:D(e)},y.createElement(cA,null,y.createElement(fA,null,y.createElement(sA,null,C(),i||null,y.createElement(lA,null,y.createElement(gt,{variant:"primary",type:"submit",onClick:O,isDisabled:!r},h),!!f&&y.createElement(gt,{variant:"link",type:"reset",onClick:f},d)))))):null};dA.displayName="SearchInput";const Tr={button:"pf-v5-c-button",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{disabled:"pf-m-disabled",plain:"pf-m-plain",icon:"pf-m-icon",hint:"pf-m-hint"},textInputGroup:"pf-v5-c-text-input-group",textInputGroupGroup:"pf-v5-c-text-input-group__group",textInputGroupIcon:"pf-v5-c-text-input-group__icon",textInputGroupMain:"pf-v5-c-text-input-group__main",textInputGroupText:"pf-v5-c-text-input-group__text",textInputGroupTextInput:"pf-v5-c-text-input-group__text-input",textInputGroupUtilities:"pf-v5-c-text-input-group__utilities",themeDark:"pf-v5-theme-dark"},hA=y.createContext({isDisabled:!1}),pA=e=>{var{children:t,className:n,isDisabled:r,isPlain:a,innerRef:i}=e,o=Q(e,["children","className","isDisabled","isPlain","innerRef"]);const l=y.useRef(null),s=i||l;return y.createElement(hA.Provider,{value:{isDisabled:r}},y.createElement("div",Object.assign({ref:s,className:D(Tr.textInputGroup,r&&Tr.modifiers.disabled,a&&Tr.modifiers.plain,n)},o),t))};pA.displayName="TextInputGroup";const Hz=e=>{var{children:t,className:n,icon:r,type:a="text",hint:i,onChange:o=()=>{},onFocus:l,onBlur:s,"aria-label":u="Type to filter",value:c,placeholder:f,innerRef:d,name:h,"aria-activedescendant":p,role:g,isExpanded:b,"aria-controls":m,inputId:v}=e,_=Q(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId"]);const{isDisabled:x}=y.useContext(hA),O=y.useRef(null),S=d||O,w=C=>{o(C,C.currentTarget.value)};return y.createElement("div",Object.assign({className:D(Tr.textInputGroupMain,r&&Tr.modifiers.icon,n)},_),t,y.createElement("span",{className:D(Tr.textInputGroupText)},i&&y.createElement("input",{className:D(Tr.textInputGroupTextInput,Tr.modifiers.hint),type:"text",disabled:!0,"aria-hidden":"true",value:i,id:v}),r&&y.createElement("span",{className:D(Tr.textInputGroupIcon)},r),y.createElement("input",Object.assign({ref:S,type:a,className:D(Tr.textInputGroupTextInput),"aria-label":u,disabled:x,onChange:w,onFocus:l,onBlur:s,value:c||"",placeholder:f,name:h,"aria-activedescendant":p,id:v},g&&{role:g},b!==void 0&&{"aria-expanded":b},m&&{"aria-controls":m}))))},mA=y.forwardRef((e,t)=>y.createElement(Hz,Object.assign({innerRef:t},e)));mA.displayName="TextInputGroupMain";const gA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(Tr.textInputGroupUtilities,n)},r),t)};gA.displayName="TextInputGroupUtilities";const vA=e=>{var{className:t,searchInputId:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,placeholder:s,hint:u,onChange:c,onSearch:f,onClear:d,onToggleAdvancedSearch:h,isAdvancedSearchOpen:p,resultsCount:g,onNextClick:b,onPreviousClick:m,innerRef:v,expandableInput:_,"aria-label":x="Search input",resetButtonLabel:O="Reset",openMenuButtonAriaLabel:S="Open advanced search",previousNavigationButtonAriaLabel:w="Previous",isPreviousNavigationButtonDisabled:C=!1,isNextNavigationButtonDisabled:A=!1,nextNavigationButtonAriaLabel:I="Next",submitSearchButtonLabel:P="Search",isDisabled:T=!1,appendTo:E,zIndex:L=9999,name:N,areUtilitiesDisplayed:U}=e,W=Q(e,["className","searchInputId","value","attributes","formAdditionalItems","hasWordsAttrLabel","advancedSearchDelimiter","placeholder","hint","onChange","onSearch","onClear","onToggleAdvancedSearch","isAdvancedSearchOpen","resultsCount","onNextClick","onPreviousClick","innerRef","expandableInput","aria-label","resetButtonLabel","openMenuButtonAriaLabel","previousNavigationButtonAriaLabel","isPreviousNavigationButtonDisabled","isNextNavigationButtonDisabled","nextNavigationButtonAriaLabel","submitSearchButtonLabel","isDisabled","appendTo","zIndex","name","areUtilitiesDisplayed"]);const[$,F]=y.useState(!1),[k,X]=y.useState(r),te=y.useRef(null),R=y.useRef(null),J=v||R,ae=y.useRef(null),ue=y.useRef(null),ve=y.useRef(null),[ke,q]=y.useState(!1),{isExpanded:Z,onToggleExpand:ie,toggleAriaLabel:K}=_||{};y.useEffect(()=>{var se,pe;if(ke)Z?(se=J==null?void 0:J.current)===null||se===void 0||se.focus():(pe=ae==null?void 0:ae.current)===null||pe===void 0||pe.focus();else return;q(!1)},[ke,Z,J,ae]),y.useEffect(()=>{X(r)},[r]),y.useEffect(()=>{a.length>0&&!l&&console.error("An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{F(p)},[p]);const Te=(se,pe)=>{c&&c(se,pe),X(pe)},ye=se=>{const pe=!$;F(pe),h&&h(se,pe)},Ae=se=>{se.preventDefault(),f&&f(se,r,Re()),F(!1)},Ce=se=>{let pe;return se.match(/\\?.|^$/g).reduce((He,ge)=>(ge==="'"||ge==='"'?(pe||(pe=ge),ge===pe&&(He.quote=!He.quote)):!He.quote&&ge===" "?He.a.push(""):He.a[He.a.length-1]+=ge.replace(/\\(.)/,"$1"),He),{a:[""]}).a},Re=()=>{const se={};return Ce(k).map(He=>{const ge=He.split(l);ge.length===2?se[ge[0]]=ge[1].replace(/(^'|'$)/g,""):ge.length===1&&(se.haswords=se.hasOwnProperty("haswords")?`${se.haswords} ${ge[0]}`:ge[0])}),se},Ge=se=>{se.key==="Enter"&&Ae(se)},_e=se=>{d&&d(se),J&&J.current&&J.current.focus()},re=se=>{X(""),ie(se,Z),q(!0)},oe=r&&(g||!!b&&!!m||!!d&&!_),xe=(se={})=>{var pe=Q(se,[]);return y.createElement(pA,Object.assign({isDisabled:T},pe),y.createElement(mA,{hint:u,icon:y.createElement(mO,null),innerRef:J,value:k,placeholder:s,"aria-label":x,onKeyDown:Ge,onChange:Te,name:N,inputId:n}),(oe||U)&&y.createElement(gA,null,g&&y.createElement(J2,{isRead:!0},g),!!b&&!!m&&y.createElement("div",{className:Tr.textInputGroupGroup},y.createElement(gt,{variant:pn.plain,"aria-label":w,isDisabled:T||C,onClick:m},y.createElement(ez,null)),y.createElement(gt,{variant:pn.plain,"aria-label":I,isDisabled:T||A,onClick:b},y.createElement(f_,null))),!!d&&!_&&y.createElement(gt,{variant:pn.plain,isDisabled:T,"aria-label":O,onClick:_e},y.createElement(Tb,null))))},De=y.createElement(gt,{variant:pn.plain,"aria-label":K,"aria-expanded":Z,icon:Z?y.createElement(Tb,null):y.createElement(mO,null),onClick:re,ref:ae}),Je=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({},pe),y.createElement(Ea,{isFill:!0},xe()," "),y.createElement(Ea,{isPlain:!0},De))},z=(se={})=>{var pe=Q(se,[]);return _?Je(Object.assign({},pe)):xe(Object.assign({},pe))},Y=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({ref:ue},pe),y.createElement(Ea,{isFill:!0},xe()),(a.length>0||h)&&y.createElement(Ea,{isPlain:!0},y.createElement(gt,{className:$&&"pf-m-expanded",variant:pn.control,"aria-label":S,onClick:ye,isDisabled:T,"aria-expanded":$},y.createElement(LT,null))),!!f&&y.createElement(Ea,null,y.createElement(gt,{type:"submit",variant:pn.control,"aria-label":P,onClick:Ae,isDisabled:T},y.createElement(oA,{shouldMirrorRTL:!0},y.createElement(Nz,null)))),_&&y.createElement(Ea,null,De))},he=Object.assign(Object.assign({},W),{className:t&&D(t),innerRef:te});if(_&&!Z)return y.createElement(Qc,Object.assign({},he),y.createElement(Ea,null,De));if(f||a.length>0||h){if(a.length>0){const se=y.createElement("div",{ref:ve},y.createElement(dA,{value:r,parentRef:te,parentInputRef:J,onSearch:f,onClear:d,onChange:c,onToggleAdvancedMenu:ye,resetButtonLabel:O,submitSearchButtonLabel:P,attributes:a,formAdditionalItems:i,hasWordsAttrLabel:o,advancedSearchDelimiter:l,getAttrValueMap:Re,isSearchMenuOpen:$})),pe=y.createElement("div",Object.assign({className:D(t),ref:te},W),y.createElement(jl,{trigger:Y(),triggerRef:ue,popper:se,popperRef:ve,isVisible:$,enableFlip:!0,appendTo:()=>E||te.current,zIndex:L})),He=y.createElement("div",Object.assign({className:D(t),ref:te},W),Y(),se);return E!=="inline"?pe:He}return Y(Object.assign({},he))}return z(he)};vA.displayName="SearchInputBase";const yA=y.forwardRef((e,t)=>y.createElement(vA,Object.assign({},e,{innerRef:t})));yA.displayName="SearchInput";var bA={exports:{}},Wz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vz=Wz,qz=Vz;function _A(){}function xA(){}xA.resetWarningCache=_A;var Gz=function(){function e(r,a,i,o,l,s){if(s!==qz){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xA,resetWarningCache:_A};return n.PropTypes=n,n};bA.exports=Gz();var Kz=bA.exports;const tt=at(Kz),Or={list:"pf-v5-c-list",listItem:"pf-v5-c-list__item",listItemIcon:"pf-v5-c-list__item-icon",modifiers:{iconLg:"pf-m-icon-lg",plain:"pf-m-plain",inline:"pf-m-inline",bordered:"pf-m-bordered"}};var Ib;(function(e){e.number="1",e.lowercaseLetter="a",e.uppercaseLetter="A",e.lowercaseRomanNumber="i",e.uppercaseRomanNumber="I"})(Ib||(Ib={}));var Rb;(function(e){e.inline="inline"})(Rb||(Rb={}));var Kp;(function(e){e.ol="ol",e.ul="ul"})(Kp||(Kp={}));const Xp=e=>{var{className:t="",children:n=null,variant:r=null,isBordered:a=!1,isPlain:i=!1,iconSize:o="default",type:l=Ib.number,ref:s=null,component:u=Kp.ul}=e,c=Q(e,["className","children","variant","isBordered","isPlain","iconSize","type","ref","component"]);return u===Kp.ol?y.createElement("ol",Object.assign({ref:s,type:l},i&&{role:"list"},c,{className:D(Or.list,r&&Or.modifiers[r],a&&Or.modifiers.bordered,i&&Or.modifiers.plain,o&&o==="large"&&Or.modifiers.iconLg,t)}),n):y.createElement("ul",Object.assign({ref:s},i&&{role:"list"},c,{className:D(Or.list,r&&Or.modifiers[r],a&&Or.modifiers.bordered,i&&Or.modifiers.plain,o&&o==="large"&&Or.modifiers.iconLg,t)}),n)};Xp.displayName="List";const or=e=>{var{icon:t=null,children:n=null}=e,r=Q(e,["icon","children"]);return y.createElement("li",Object.assign({className:D(t&&Or.listItem)},r),t&&y.createElement("span",{className:D(Or.listItemIcon)},t),n)};or.displayName="ListItem";const us={button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dropdown:"pf-v5-c-dropdown",masthead:"pf-v5-c-masthead",mastheadBrand:"pf-v5-c-masthead__brand",mastheadContent:"pf-v5-c-masthead__content",mastheadMain:"pf-v5-c-masthead__main",mastheadToggle:"pf-v5-c-masthead__toggle",menuToggle:"pf-v5-c-menu-toggle",modifiers:{light_200:"pf-m-light-200",light:"pf-m-light",plain:"pf-m-plain",resizeObserver:"pf-m-resize-observer",fullHeight:"pf-m-full-height",horizontal:"pf-m-horizontal",displayStack:"pf-m-display-stack",displayInline:"pf-m-display-inline",insetNone:"pf-m-inset-none",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",displayStackOnSm:"pf-m-display-stack-on-sm",displayInlineOnSm:"pf-m-display-inline-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",displayStackOnMd:"pf-m-display-stack-on-md",displayInlineOnMd:"pf-m-display-inline-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",displayStackOnLg:"pf-m-display-stack-on-lg",displayInlineOnLg:"pf-m-display-inline-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",displayStackOnXl:"pf-m-display-stack-on-xl",displayInlineOnXl:"pf-m-display-inline-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",displayStackOn_2xl:"pf-m-display-stack-on-2xl",displayInlineOn_2xl:"pf-m-display-inline-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl"},nav:"pf-v5-c-nav",page:"pf-v5-c-page",themeDark:"pf-v5-theme-dark",toolbar:"pf-v5-c-toolbar",toolbarContentSection:"pf-v5-c-toolbar__content-section",toolbarExpandableContent:"pf-v5-c-toolbar__expandable-content"},Xz={isManagedSidebar:!1,isSidebarOpen:!1,onSidebarToggle:()=>null,width:null,height:null,getBreakpoint:vT,getVerticalBreakpoint:gT},wd=y.createContext(Xz),Yz=wd.Provider,wA=wd.Consumer,SA=e=>{var{children:t,className:n,backgroundColor:r="dark",display:a={md:"inline"},inset:i}=e,o=Q(e,["children","className","backgroundColor","display","inset"]);const{width:l,getBreakpoint:s}=y.useContext(wd);return y.createElement("header",Object.assign({className:D(us.masthead,Ci(a,us,"display-",s(l)),Ci(i,us,"",s(l)),r==="light"&&us.modifiers.light,r==="light200"&&us.modifiers.light_200,n)},o),t)};SA.displayName="Masthead";const OA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(us.mastheadToggle,n)},r),t)};OA.displayName="MastheadToggle";const Nt={dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuContent:"pf-v5-c-menu__content",menuItem:"pf-v5-c-menu__item",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuListItem:"pf-v5-c-menu__list-item",modifiers:{flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",current:"pf-m-current",drillUp:"pf-m-drill-up",horizontal:"pf-m-horizontal",tertiary:"pf-m-tertiary",horizontalSubnav:"pf-m-horizontal-subnav",light:"pf-m-light",scrollable:"pf-m-scrollable",overflowHidden:"pf-m-overflow-hidden",expandable:"pf-m-expandable",expanded:"pf-m-expanded",drilldown:"pf-m-drilldown",hover:"pf-m-hover",start:"pf-m-start"},nav:"pf-v5-c-nav",navItem:"pf-v5-c-nav__item",navLink:"pf-v5-c-nav__link",navList:"pf-v5-c-nav__list",navScrollButton:"pf-v5-c-nav__scroll-button",navSection:"pf-v5-c-nav__section",navSectionTitle:"pf-v5-c-nav__section-title",navSubnav:"pf-v5-c-nav__subnav",navToggle:"pf-v5-c-nav__toggle",navToggleIcon:"pf-v5-c-nav__toggle-icon",themeDark:"pf-v5-theme-dark"},Qz={},Mf=y.createContext(Qz);class vu extends y.Component{constructor(){super(...arguments),this.state={isScrollable:!1,ouiaStateId:Lo(vu.displayName,this.props.variant),flyoutRef:null},this.navRef=y.createRef()}onSelect(t,n,r,a,i,o){i&&t.preventDefault(),this.props.onSelect(t,{groupId:n,itemId:r,to:a}),o&&o(t,r,n,a)}onToggle(t,n,r){this.props.onToggle(t,{groupId:n,isExpanded:r})}render(){const t=this.props,{"aria-label":n,children:r,className:a,onSelect:i,onToggle:o,theme:l,ouiaId:s,ouiaSafe:u,variant:c}=t,f=Q(t,["aria-label","children","className","onSelect","onToggle","theme","ouiaId","ouiaSafe","variant"]),d=["horizontal","tertiary"].includes(c);return y.createElement(Mf.Provider,{value:{onSelect:(h,p,g,b,m,v)=>this.onSelect(h,p,g,b,m,v),onToggle:(h,p,g)=>this.onToggle(h,p,g),updateIsScrollable:h=>this.setState({isScrollable:h}),isHorizontal:["horizontal","tertiary","horizontal-subnav"].includes(c),flyoutRef:this.state.flyoutRef,setFlyoutRef:h=>this.setState({flyoutRef:h}),navRef:this.navRef}},y.createElement("nav",Object.assign({className:D(Nt.nav,l==="light"&&Nt.modifiers.light,d&&Nt.modifiers.horizontal,c==="tertiary"&&Nt.modifiers.tertiary,c==="horizontal-subnav"&&Nt.modifiers.horizontalSubnav,this.state.isScrollable&&Nt.modifiers.scrollable,a),"aria-label":n||(["tertiary","horizontal-subnav"].includes(c)?"Local":"Global"),ref:this.navRef},Ll(vu.displayName,s!==void 0?s:this.state.ouiaStateId,u),f),r))}}vu.displayName="Nav";vu.defaultProps={onSelect:()=>{},onToggle:()=>{},theme:"dark",ouiaSafe:!0};const Ue={avatar:"pf-v5-c-avatar",brand:"pf-v5-c-brand",button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",masthead:"pf-v5-c-masthead",modifiers:{light:"pf-m-light",menu:"pf-m-menu",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",read:"pf-m-read",selected:"pf-m-selected",unread:"pf-m-unread",attention:"pf-m-attention",expanded:"pf-m-expanded",collapsed:"pf-m-collapsed",pageInsets:"pf-m-page-insets",insetNone:"pf-m-inset-none",fill:"pf-m-fill",noFill:"pf-m-no-fill",limitWidth:"pf-m-limit-width",alignCenter:"pf-m-align-center",overflowScroll:"pf-m-overflow-scroll",shadowBottom:"pf-m-shadow-bottom",shadowTop:"pf-m-shadow-top",stickyTop:"pf-m-sticky-top",stickyBottom:"pf-m-sticky-bottom",stickyTopOnSmHeight:"pf-m-sticky-top-on-sm-height",stickyBottomOnSmHeight:"pf-m-sticky-bottom-on-sm-height",stickyTopOnMdHeight:"pf-m-sticky-top-on-md-height",stickyBottomOnMdHeight:"pf-m-sticky-bottom-on-md-height",stickyTopOnLgHeight:"pf-m-sticky-top-on-lg-height",stickyBottomOnLgHeight:"pf-m-sticky-bottom-on-lg-height",stickyTopOnXlHeight:"pf-m-sticky-top-on-xl-height",stickyBottomOnXlHeight:"pf-m-sticky-bottom-on-xl-height",stickyTopOn_2xlHeight:"pf-m-sticky-top-on-2xl-height",stickyBottomOn_2xlHeight:"pf-m-sticky-bottom-on-2xl-height",light_100:"pf-m-light-100",dark_100:"pf-m-dark-100",dark_200:"pf-m-dark-200",padding:"pf-m-padding",noPadding:"pf-m-no-padding",paddingOnSm:"pf-m-padding-on-sm",noPaddingOnSm:"pf-m-no-padding-on-sm",paddingOnMd:"pf-m-padding-on-md",noPaddingOnMd:"pf-m-no-padding-on-md",paddingOnLg:"pf-m-padding-on-lg",noPaddingOnLg:"pf-m-no-padding-on-lg",paddingOnXl:"pf-m-padding-on-xl",noPaddingOnXl:"pf-m-no-padding-on-xl",paddingOn_2xl:"pf-m-padding-on-2xl",noPaddingOn_2xl:"pf-m-no-padding-on-2xl",light_200:"pf-m-light-200"},nav:"pf-v5-c-nav",notificationBadge:"pf-v5-c-notification-badge",page:"pf-v5-c-page",pageDrawer:"pf-v5-c-page__drawer",pageHeader:"pf-v5-c-page__header",pageHeaderBrand:"pf-v5-c-page__header-brand",pageHeaderBrandLink:"pf-v5-c-page__header-brand-link",pageHeaderBrandToggle:"pf-v5-c-page__header-brand-toggle",pageHeaderNav:"pf-v5-c-page__header-nav",pageHeaderTools:"pf-v5-c-page__header-tools",pageHeaderToolsGroup:"pf-v5-c-page__header-tools-group",pageHeaderToolsItem:"pf-v5-c-page__header-tools-item",pageMain:"pf-v5-c-page__main",pageMainBody:"pf-v5-c-page__main-body",pageMainBreadcrumb:"pf-v5-c-page__main-breadcrumb",pageMainDrawer:"pf-v5-c-page__main-drawer",pageMainGroup:"pf-v5-c-page__main-group",pageMainNav:"pf-v5-c-page__main-nav",pageMainSection:"pf-v5-c-page__main-section",pageMainSubnav:"pf-v5-c-page__main-subnav",pageMainTabs:"pf-v5-c-page__main-tabs",pageMainWizard:"pf-v5-c-page__main-wizard",pageSidebar:"pf-v5-c-page__sidebar",pageSidebarBody:"pf-v5-c-page__sidebar-body",themeDark:"pf-v5-theme-dark"},Jz={isSidebarOpen:!0},d_=y.createContext(Jz),CA=e=>{var{className:t="",children:n,isSidebarOpen:r=!0,theme:a="dark",id:i="page-sidebar"}=e,o=Q(e,["className","children","isSidebarOpen","theme","id"]);return y.createElement(wA,null,({isManagedSidebar:l,isSidebarOpen:s})=>{const u=l?s:r;return y.createElement("div",Object.assign({id:i,className:D(Ue.pageSidebar,a==="light"&&Ue.modifiers.light,u&&Ue.modifiers.expanded,!u&&Ue.modifiers.collapsed,t),"aria-hidden":!u},o),y.createElement(d_.Provider,{value:{isSidebarOpen:u}},n))})};CA.displayName="PageSidebar";class jg extends y.Component{constructor(){super(...arguments),this.direction="ltr",this.state={scrollViewAtStart:!1,scrollViewAtEnd:!1},this.navList=y.createRef(),this.observer=()=>{},this.handleScrollButtons=()=>{const t=this.navList.current;if(t){const n=vh(t,t.firstChild,!1),r=vh(t,t.lastChild,!1);this.setState({scrollViewAtStart:n,scrollViewAtEnd:r}),this.context.updateIsScrollable(!n||!r)}},this.scrollBack=()=>{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=0;i{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=n.length-1;i>=0&&!r;i--)vh(t,n[i],!1)&&(r=n[i],a=n[i+1]);a&&(this.direction==="ltr"?t.scrollLeft+=a.scrollWidth:t.scrollLeft-=a.scrollWidth),this.handleScrollButtons()}}}componentDidMount(){this.observer=Q2(this.navList.current,this.handleScrollButtons,!0),this.direction=Ds(this.navList.current),this.handleScrollButtons()}componentWillUnmount(){this.observer()}componentDidUpdate(){this.direction=Ds(this.navList.current)}render(){const t=this.props,{children:n,className:r,ariaLeftScroll:a,ariaRightScroll:i,backScrollAriaLabel:o,forwardScrollAriaLabel:l}=t,s=Q(t,["children","className","ariaLeftScroll","ariaRightScroll","backScrollAriaLabel","forwardScrollAriaLabel"]),{scrollViewAtStart:u,scrollViewAtEnd:c}=this.state;return y.createElement(Mf.Consumer,null,({isHorizontal:f})=>y.createElement(d_.Consumer,null,({isSidebarOpen:d})=>y.createElement(y.Fragment,null,f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":o||a,onClick:this.scrollBack,disabled:u,tabIndex:d?null:-1},y.createElement(t_,null)),y.createElement("ul",Object.assign({ref:this.navList,className:D(Nt.navList,r),onScroll:this.handleScrollButtons,role:"list"},s),n),f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":l||i,onClick:this.scrollForward,disabled:c,tabIndex:d?null:-1},y.createElement(Iu,null)))))}}jg.displayName="NavList";jg.contextType=Mf;jg.defaultProps={ariaLeftScroll:"Scroll left",backScrollAriaLabel:"Scroll back",ariaRightScroll:"Scroll right",forwardScrollAriaLabel:"Scroll foward"};const Ss=e=>{var{children:t,styleChildren:n=!0,className:r,to:a,isActive:i=!1,groupId:o=null,itemId:l=null,preventDefault:s=!1,onClick:u,component:c="a",flyout:f,onShowFlyout:d,ouiaId:h,ouiaSafe:p,zIndex:g=9999,hasNavLinkWrapper:b}=e,m=Q(e,["children","styleChildren","className","to","isActive","groupId","itemId","preventDefault","onClick","component","flyout","onShowFlyout","ouiaId","ouiaSafe","zIndex","hasNavLinkWrapper"]);const{flyoutRef:v,setFlyoutRef:_,navRef:x}=y.useContext(Mf),{isSidebarOpen:O}=y.useContext(d_),[S,w]=y.useState(null),[C,A]=y.useState(!1),I=y.useRef(),P=I===v,T=y.useRef(),E=f!==void 0,L=E?"button":c;a&&E&&console.error('NavItem cannot have both "to" and "flyout" props.');const N=(q,Z)=>{(!P||Z)&&q?_(I):(P||Z)&&!q&&_(null),d&&q&&d()},U=q=>{const Z=q.target.closest(`.${Nt.navItem}.pf-m-flyout`);E&&!P?N(!0):v!==null&&!Z&&_(null)},W=q=>{q.target.closest(".pf-m-flyout")||(E?N(!1,!0):v!==null&&_(null))},$=q=>{var Z,ie;const K=q.key,Te=q.target;(K===" "||K==="Enter"||K==="ArrowRight")&&E&&(!((Z=I==null?void 0:I.current)===null||Z===void 0)&&Z.contains(Te))&&(q.stopPropagation(),q.preventDefault(),P||(N(!0),w(Te))),(K==="Escape"||K==="ArrowLeft")&&((ie=T==null?void 0:T.current)===null||ie===void 0?void 0:ie.querySelectorAll(`.${Nt.menu}`).length)===1&&P&&(q.stopPropagation(),q.preventDefault(),N(!1))};y.useEffect(()=>(E&&window.addEventListener("click",W),()=>{E&&window.removeEventListener("click",W)}),[]),y.useEffect(()=>{S&&(P?Array.from(T.current.getElementsByTagName("UL")[0].children).filter(Z=>!(Z.classList.contains("pf-m-disabled")||Z.classList.contains(Nt.divider)))[0].firstChild.focus():S.focus())},[P,S]);const F=y.createElement("span",{className:D(Nt.navToggle)},y.createElement("span",{className:D(Nt.navToggleIcon)},y.createElement(Iu,{"aria-hidden":!0}))),k={"aria-haspopup":"menu","aria-expanded":P},X=O?null:-1,te=q=>{const Z=s||!a;return y.createElement(L,Object.assign({href:a,onClick:ie=>q.onSelect(ie,o,l,a,Z,u),className:D(Nt.navLink,i&&Nt.modifiers.current,C&&Nt.modifiers.hover,r),"aria-current":i?"page":null,tabIndex:X},E&&Object.assign({},k),m),b?y.createElement("span",{className:D(`${Nt.nav}__link-text`)},t):t,f&&F)},R=(q,Z)=>y.cloneElement(Z,Object.assign(Object.assign({onClick:ie=>q.onSelect(ie,o,l,a,s,u),"aria-current":i?"page":null},n&&{className:D(Nt.navLink,i&&Nt.modifiers.current,Z.props&&Z.props.className)}),{tabIndex:Z.props.tabIndex||X,children:E?y.createElement(y.Fragment,null,Z.props.children,F):Z.props.children})),J=Ii(Ss.displayName,h,p),ae=()=>{A(!0)},ue=()=>{A(!1)},ve=y.createElement(jl,{triggerRef:I,popper:y.createElement("div",{ref:T,onMouseEnter:ae,onMouseLeave:ue},f),popperRef:T,placement:"right-start",isVisible:P,onDocumentKeyDown:$,zIndex:g,appendTo:x==null?void 0:x.current});return y.createElement(y.Fragment,null,y.createElement("li",Object.assign({onMouseOver:U,className:D(Nt.navItem,E&&Nt.modifiers.flyout,r),ref:I},J),y.createElement(Mf.Consumer,null,q=>y.isValidElement(t)?R(q,t):te(q))),f&&ve)};Ss.displayName="NavItem";const Dg=e=>{var{children:t,className:n="",isVisited:r=!1}=e,a=Q(e,["children","className","isVisited"]);return y.createElement("div",Object.assign({},a,{className:D(wb.content,r&&wb.modifiers.visited,n)}),t)};Dg.displayName="TextContent";var El;(function(e){e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.p="p",e.a="a",e.small="small",e.blockquote="blockquote",e.pre="pre"})(El||(El={}));const Sd=e=>{var{children:t=null,className:n="",component:r=El.p,isVisitedLink:a=!1,ouiaId:i,ouiaSafe:o=!0}=e,l=Q(e,["children","className","component","isVisitedLink","ouiaId","ouiaSafe"]);const s=r,u=Ii(Sd.displayName,i,o);return y.createElement(s,Object.assign({},u,l,{"data-pf-content":!0,className:D(a&&r===El.a&&wb.modifiers.visited,n)}),t)};Sd.displayName="Text";const EA=e=>{var{className:t="",children:n,stickyOnBreakpoint:r,hasShadowTop:a=!1,hasShadowBottom:i=!1,hasOverflowScroll:o=!1,"aria-label":l}=e,s=Q(e,["className","children","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label"]);const{height:u,getVerticalBreakpoint:c}=y.useContext(wd);return y.useEffect(()=>{o&&!l&&console.warn("PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.")},[o,l]),y.createElement("div",Object.assign({},s,{className:D(Ue.pageMainGroup,Ci(r,Ue,"sticky-",c(u),!0),a&&Ue.modifiers.shadowTop,i&&Ue.modifiers.shadowBottom,o&&Ue.modifiers.overflowScroll,t)},o&&{tabIndex:0,role:"region","aria-label":l}),n)};EA.displayName="PageGroup";var gO;(function(e){e.vertical="vertical",e.horizontal="horizontal"})(gO||(gO={}));class h_ extends y.Component{constructor(t){super(t),this.mainRef=y.createRef(),this.pageRef=y.createRef(),this.observer=()=>{},this.getWindowWidth=()=>Oo?this.pageRef.current?this.pageRef.current.clientWidth:window.innerWidth:1200,this.isMobile=()=>this.getWindowWidth(){var o;const{onPageResize:l}=this.props,s=this.isMobile();if(l&&l(i,{mobileView:s,windowSize:this.getWindowWidth()}),s!==this.state.mobileView&&this.setState({mobileView:s}),!((o=this.pageRef)===null||o===void 0)&&o.current){const u=this.pageRef.current.clientWidth,c=this.pageRef.current.clientHeight;this.state.width!==u&&this.setState({width:u}),this.state.height!==c&&this.setState({height:c})}},this.handleResize=w9(this.resize,250),this.handleMainClick=()=>{this.isMobile()&&this.state.mobileIsSidebarOpen&&this.mainRef.current&&this.setState({mobileIsSidebarOpen:!1})},this.onSidebarToggleMobile=()=>{this.setState(i=>({mobileIsSidebarOpen:!i.mobileIsSidebarOpen}))},this.onSidebarToggleDesktop=()=>{this.setState(i=>({desktopIsSidebarOpen:!i.desktopIsSidebarOpen}))};const{isManagedSidebar:n,defaultManagedSidebarIsOpen:r}=t,a=n?r:!0;this.state={desktopIsSidebarOpen:a,mobileIsSidebarOpen:!1,mobileView:!1,width:null,height:null}}componentDidMount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer=Q2(this.pageRef.current,this.handleResize);const r=this.mainRef.current;r&&(r.addEventListener("mousedown",this.handleMainClick),r.addEventListener("touchstart",this.handleMainClick)),this.resize()}}componentWillUnmount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer();const r=this.mainRef.current;r&&(r.removeEventListener("mousedown",this.handleMainClick),r.removeEventListener("touchstart",this.handleMainClick))}}render(){const t=this.props,{breadcrumb:n,isBreadcrumbWidthLimited:r,className:a,children:i,header:o,sidebar:l,notificationDrawer:s,isNotificationDrawerExpanded:u,onNotificationDrawerExpand:c,drawerDefaultSize:f,drawerMinSize:d,drawerMaxSize:h,isTertiaryNavWidthLimited:p,skipToContent:g,role:b,mainContainerId:m,isManagedSidebar:v,defaultManagedSidebarIsOpen:_,onPageResize:x,getBreakpoint:O,getVerticalBreakpoint:S,mainAriaLabel:w,mainTabIndex:C,mainComponent:A,tertiaryNav:I,isTertiaryNavGrouped:P,isBreadcrumbGrouped:T,additionalGroupedContent:E,groupProps:L,breadcrumbProps:N}=t,U=Q(t,["breadcrumb","isBreadcrumbWidthLimited","className","children","header","sidebar","notificationDrawer","isNotificationDrawerExpanded","onNotificationDrawerExpand","drawerDefaultSize","drawerMinSize","drawerMaxSize","isTertiaryNavWidthLimited","skipToContent","role","mainContainerId","isManagedSidebar","defaultManagedSidebarIsOpen","onPageResize","getBreakpoint","getVerticalBreakpoint","mainAriaLabel","mainTabIndex","mainComponent","tertiaryNav","isTertiaryNavGrouped","isBreadcrumbGrouped","additionalGroupedContent","groupProps","breadcrumbProps"]),{mobileView:W,mobileIsSidebarOpen:$,desktopIsSidebarOpen:F,width:k,height:X}=this.state,te={isManagedSidebar:v,onSidebarToggle:W?this.onSidebarToggleMobile:this.onSidebarToggleDesktop,isSidebarOpen:W?$:F,width:k,height:X,getBreakpoint:O,getVerticalBreakpoint:S};let R=null;I&&p?R=y.createElement("div",{className:D(Ue.pageMainNav,Ue.modifiers.limitWidth)},y.createElement("div",{className:D(Ue.pageMainBody)},I)):I&&(R=y.createElement("div",{className:D(Ue.pageMainNav)},I));const J=n?y.createElement("section",{className:D(Ue.pageMainBreadcrumb,r&&Ue.modifiers.limitWidth,Ci(N==null?void 0:N.stickyOnBreakpoint,Ue,"sticky-",S(X),!0))},r?y.createElement("div",{className:D(Ue.pageMainBody)},n):n):null,ue=P||T||E?y.createElement(EA,Object.assign({},L),P&&R,T&&J,E):null,ve=A,ke=y.createElement(ve,{ref:this.mainRef,role:b,id:m,className:D(Ue.pageMain),tabIndex:C,"aria-label":w},ue,!P&&R,!T&&J,i),q=y.createElement(aA,{defaultSize:f,minSize:d,maxSize:h},s);return y.createElement(Yz,{value:te},y.createElement("div",Object.assign({ref:this.pageRef},U,{className:D(Ue.page,k!==null&&X!==null&&"pf-m-resize-observer",k!==null&&`pf-m-breakpoint-${O(k)}`,X!==null&&`pf-m-height-breakpoint-${S(X)}`,a)}),g,o,l,s&&y.createElement("div",{className:D(Ue.pageDrawer)},y.createElement(eA,{isExpanded:u,onExpand:Z=>c(Z)},y.createElement(nA,{panelContent:q},y.createElement(rA,null,ke)))),!s&&ke))}}h_.displayName="Page";h_.defaultProps={isManagedSidebar:!1,isBreadcrumbWidthLimited:!1,defaultManagedSidebarIsOpen:!0,mainTabIndex:-1,isNotificationDrawerExpanded:!1,onNotificationDrawerExpand:()=>null,mainComponent:"main",getBreakpoint:vT,getVerticalBreakpoint:gT};const kA=e=>{var{children:t,className:n,usePageInsets:r,isFilled:a}=e,i=Q(e,["children","className","usePageInsets","isFilled"]);return y.createElement("div",Object.assign({className:D(Ue.pageSidebarBody,r&&Ue.modifiers.pageInsets,a===!1&&Ue.modifiers.noFill,a===!0&&Ue.modifiers.fill,n)},i),t)};kA.displayName="PageSidebarBody";var so;(function(e){e.default="default",e.light="light",e.dark="dark",e.darker="darker"})(so||(so={}));var li;(function(e){e.default="default",e.nav="nav",e.subNav="subnav",e.breadcrumb="breadcrumb",e.tabs="tabs",e.wizard="wizard"})(li||(li={}));const Zz={[li.default]:Ue.pageMainSection,[li.nav]:Ue.pageMainNav,[li.subNav]:Ue.pageMainSubnav,[li.breadcrumb]:Ue.pageMainBreadcrumb,[li.tabs]:Ue.pageMainTabs,[li.wizard]:Ue.pageMainWizard},eB={[so.default]:"",[so.light]:Ue.modifiers.light,[so.dark]:Ue.modifiers.dark_200,[so.darker]:Ue.modifiers.dark_100},hr=e=>{var{className:t="",children:n,variant:r="default",type:a="default",padding:i,isFilled:o,isWidthLimited:l=!1,isCenterAligned:s=!1,stickyOnBreakpoint:u,hasShadowTop:c=!1,hasShadowBottom:f=!1,hasOverflowScroll:d=!1,"aria-label":h,component:p="section"}=e,g=Q(e,["className","children","variant","type","padding","isFilled","isWidthLimited","isCenterAligned","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label","component"]);const{height:b,getVerticalBreakpoint:m}=y.useContext(wd);y.useEffect(()=>{d&&!h&&console.warn("PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.")},[d,h]);const v=p;return y.createElement(v,Object.assign({},g,{className:D(Zz[a],Ci(i,Ue),Ci(u,Ue,"sticky-",m(b),!0),eB[r],o===!1&&Ue.modifiers.noFill,o===!0&&Ue.modifiers.fill,l&&Ue.modifiers.limitWidth,l&&s&&a!==li.subNav&&Ue.modifiers.alignCenter,c&&Ue.modifiers.shadowTop,f&&Ue.modifiers.shadowBottom,d&&Ue.modifiers.overflowScroll,t)},d&&{tabIndex:0},{"aria-label":h}),l&&y.createElement("div",{className:D(Ue.pageMainBody)},n),!l&&n)};hr.displayName="PageSection";const PA=e=>{var{children:t,isSidebarOpen:n=!0,onSidebarToggle:r=()=>{},id:a="nav-toggle"}=e,i=Q(e,["children","isSidebarOpen","onSidebarToggle","id"]);return y.createElement(wA,null,({isManagedSidebar:o,onSidebarToggle:l,isSidebarOpen:s})=>{const u=o?l:r,c=o?s:n;return y.createElement(gt,Object.assign({id:a,onClick:u,"aria-label":"Side navigation toggle","aria-expanded":c?"true":"false",variant:pn.plain},i),t)})};PA.displayName="PageToggleButton";const tB={name:"OutlinedClockIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z",yOffset:0,xOffset:0},nB=ht(tB),Iv={modifiers:{helpText:"pf-m-help-text"},timestamp:"pf-v5-c-timestamp"};var vO;(function(e){e.full="full",e.long="long",e.medium="medium",e.short="short"})(vO||(vO={}));var $b;(function(e){e.default="default",e.custom="custom"})($b||($b={}));const p_=e=>{var{children:t,className:n,customFormat:r,date:a,dateFormat:i,displaySuffix:o="",is12Hour:l,locale:s,shouldDisplayUTC:u,timeFormat:c,tooltip:f}=e,d=Q(e,["children","className","customFormat","date","dateFormat","displaySuffix","is12Hour","locale","shouldDisplayUTC","timeFormat","tooltip"]);const[h,p]=y.useState(()=>{const P=new Date(a);return Sa(P)?P:new Date});y.useEffect(()=>{const P=new Date(a);Sa(P)&&P.toString()!==new Date(h).toString()?p(P):a||p(new Date)},[a]);const g=c&&!r,b=Object.assign(Object.assign(Object.assign({},i&&!r&&{dateStyle:i}),r&&Object.assign({},r)),l!==void 0&&{hour12:l}),m=new Date(h).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:c})),v=c!=="short"?"medium":"short",_=P=>new Date(P).toUTCString().slice(0,-3),x=new Date(_(h)).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:v})),O=c==="full"?"Coordinated Universal Time":"UTC",S=P=>`${x} ${P||O}`,w=u?S(o):`${m}${o?" "+o:""}`,{dateTime:C}=d,A=Q(d,["dateTime"]),I=y.createElement("span",Object.assign({className:D(Iv.timestamp,f&&Iv.modifiers.helpText,n)},f&&{tabIndex:0},A),y.createElement("time",{className:`${Iv.timestamp}__text`,dateTime:C||new Date(h).toISOString()},t||w));return f?y.createElement($i,Object.assign({content:f.variant===$b.default?S(f.suffix):f.content},f.tooltipProps),I):I};p_.displayName="Timestamp";const TA=e=>{var{children:t=null,className:n="",component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(VF.bullseye,n)},a),t)};TA.displayName="Bullseye";const aa={grid:"pf-v5-l-grid",gridItem:"pf-v5-l-grid__item",modifiers:{all_1Col:"pf-m-all-1-col",all_2Col:"pf-m-all-2-col",all_3Col:"pf-m-all-3-col",all_4Col:"pf-m-all-4-col",all_5Col:"pf-m-all-5-col",all_6Col:"pf-m-all-6-col",all_7Col:"pf-m-all-7-col",all_8Col:"pf-m-all-8-col",all_9Col:"pf-m-all-9-col",all_10Col:"pf-m-all-10-col",all_11Col:"pf-m-all-11-col",all_12Col:"pf-m-all-12-col",all_1ColOnSm:"pf-m-all-1-col-on-sm",all_2ColOnSm:"pf-m-all-2-col-on-sm",all_3ColOnSm:"pf-m-all-3-col-on-sm",all_4ColOnSm:"pf-m-all-4-col-on-sm",all_5ColOnSm:"pf-m-all-5-col-on-sm",all_6ColOnSm:"pf-m-all-6-col-on-sm",all_7ColOnSm:"pf-m-all-7-col-on-sm",all_8ColOnSm:"pf-m-all-8-col-on-sm",all_9ColOnSm:"pf-m-all-9-col-on-sm",all_10ColOnSm:"pf-m-all-10-col-on-sm",all_11ColOnSm:"pf-m-all-11-col-on-sm",all_12ColOnSm:"pf-m-all-12-col-on-sm",all_1ColOnMd:"pf-m-all-1-col-on-md",all_2ColOnMd:"pf-m-all-2-col-on-md",all_3ColOnMd:"pf-m-all-3-col-on-md",all_4ColOnMd:"pf-m-all-4-col-on-md",all_5ColOnMd:"pf-m-all-5-col-on-md",all_6ColOnMd:"pf-m-all-6-col-on-md",all_7ColOnMd:"pf-m-all-7-col-on-md",all_8ColOnMd:"pf-m-all-8-col-on-md",all_9ColOnMd:"pf-m-all-9-col-on-md",all_10ColOnMd:"pf-m-all-10-col-on-md",all_11ColOnMd:"pf-m-all-11-col-on-md",all_12ColOnMd:"pf-m-all-12-col-on-md",all_1ColOnLg:"pf-m-all-1-col-on-lg",all_2ColOnLg:"pf-m-all-2-col-on-lg",all_3ColOnLg:"pf-m-all-3-col-on-lg",all_4ColOnLg:"pf-m-all-4-col-on-lg",all_5ColOnLg:"pf-m-all-5-col-on-lg",all_6ColOnLg:"pf-m-all-6-col-on-lg",all_7ColOnLg:"pf-m-all-7-col-on-lg",all_8ColOnLg:"pf-m-all-8-col-on-lg",all_9ColOnLg:"pf-m-all-9-col-on-lg",all_10ColOnLg:"pf-m-all-10-col-on-lg",all_11ColOnLg:"pf-m-all-11-col-on-lg",all_12ColOnLg:"pf-m-all-12-col-on-lg",all_1ColOnXl:"pf-m-all-1-col-on-xl",all_2ColOnXl:"pf-m-all-2-col-on-xl",all_3ColOnXl:"pf-m-all-3-col-on-xl",all_4ColOnXl:"pf-m-all-4-col-on-xl",all_5ColOnXl:"pf-m-all-5-col-on-xl",all_6ColOnXl:"pf-m-all-6-col-on-xl",all_7ColOnXl:"pf-m-all-7-col-on-xl",all_8ColOnXl:"pf-m-all-8-col-on-xl",all_9ColOnXl:"pf-m-all-9-col-on-xl",all_10ColOnXl:"pf-m-all-10-col-on-xl",all_11ColOnXl:"pf-m-all-11-col-on-xl",all_12ColOnXl:"pf-m-all-12-col-on-xl",all_1ColOn_2xl:"pf-m-all-1-col-on-2xl",all_2ColOn_2xl:"pf-m-all-2-col-on-2xl",all_3ColOn_2xl:"pf-m-all-3-col-on-2xl",all_4ColOn_2xl:"pf-m-all-4-col-on-2xl",all_5ColOn_2xl:"pf-m-all-5-col-on-2xl",all_6ColOn_2xl:"pf-m-all-6-col-on-2xl",all_7ColOn_2xl:"pf-m-all-7-col-on-2xl",all_8ColOn_2xl:"pf-m-all-8-col-on-2xl",all_9ColOn_2xl:"pf-m-all-9-col-on-2xl",all_10ColOn_2xl:"pf-m-all-10-col-on-2xl",all_11ColOn_2xl:"pf-m-all-11-col-on-2xl",all_12ColOn_2xl:"pf-m-all-12-col-on-2xl","1Col":"pf-m-1-col","2Col":"pf-m-2-col","3Col":"pf-m-3-col","4Col":"pf-m-4-col","5Col":"pf-m-5-col","6Col":"pf-m-6-col","7Col":"pf-m-7-col","8Col":"pf-m-8-col","9Col":"pf-m-9-col","10Col":"pf-m-10-col","11Col":"pf-m-11-col","12Col":"pf-m-12-col",offset_1Col:"pf-m-offset-1-col",offset_2Col:"pf-m-offset-2-col",offset_3Col:"pf-m-offset-3-col",offset_4Col:"pf-m-offset-4-col",offset_5Col:"pf-m-offset-5-col",offset_6Col:"pf-m-offset-6-col",offset_7Col:"pf-m-offset-7-col",offset_8Col:"pf-m-offset-8-col",offset_9Col:"pf-m-offset-9-col",offset_10Col:"pf-m-offset-10-col",offset_11Col:"pf-m-offset-11-col",offset_12Col:"pf-m-offset-12-col","1Row":"pf-m-1-row","2Row":"pf-m-2-row","3Row":"pf-m-3-row","4Row":"pf-m-4-row","5Row":"pf-m-5-row","6Row":"pf-m-6-row","7Row":"pf-m-7-row","8Row":"pf-m-8-row","9Row":"pf-m-9-row","10Row":"pf-m-10-row","11Row":"pf-m-11-row","12Row":"pf-m-12-row","1ColOnSm":"pf-m-1-col-on-sm","2ColOnSm":"pf-m-2-col-on-sm","3ColOnSm":"pf-m-3-col-on-sm","4ColOnSm":"pf-m-4-col-on-sm","5ColOnSm":"pf-m-5-col-on-sm","6ColOnSm":"pf-m-6-col-on-sm","7ColOnSm":"pf-m-7-col-on-sm","8ColOnSm":"pf-m-8-col-on-sm","9ColOnSm":"pf-m-9-col-on-sm","10ColOnSm":"pf-m-10-col-on-sm","11ColOnSm":"pf-m-11-col-on-sm","12ColOnSm":"pf-m-12-col-on-sm",offset_1ColOnSm:"pf-m-offset-1-col-on-sm",offset_2ColOnSm:"pf-m-offset-2-col-on-sm",offset_3ColOnSm:"pf-m-offset-3-col-on-sm",offset_4ColOnSm:"pf-m-offset-4-col-on-sm",offset_5ColOnSm:"pf-m-offset-5-col-on-sm",offset_6ColOnSm:"pf-m-offset-6-col-on-sm",offset_7ColOnSm:"pf-m-offset-7-col-on-sm",offset_8ColOnSm:"pf-m-offset-8-col-on-sm",offset_9ColOnSm:"pf-m-offset-9-col-on-sm",offset_10ColOnSm:"pf-m-offset-10-col-on-sm",offset_11ColOnSm:"pf-m-offset-11-col-on-sm",offset_12ColOnSm:"pf-m-offset-12-col-on-sm","1RowOnSm":"pf-m-1-row-on-sm","2RowOnSm":"pf-m-2-row-on-sm","3RowOnSm":"pf-m-3-row-on-sm","4RowOnSm":"pf-m-4-row-on-sm","5RowOnSm":"pf-m-5-row-on-sm","6RowOnSm":"pf-m-6-row-on-sm","7RowOnSm":"pf-m-7-row-on-sm","8RowOnSm":"pf-m-8-row-on-sm","9RowOnSm":"pf-m-9-row-on-sm","10RowOnSm":"pf-m-10-row-on-sm","11RowOnSm":"pf-m-11-row-on-sm","12RowOnSm":"pf-m-12-row-on-sm","1ColOnMd":"pf-m-1-col-on-md","2ColOnMd":"pf-m-2-col-on-md","3ColOnMd":"pf-m-3-col-on-md","4ColOnMd":"pf-m-4-col-on-md","5ColOnMd":"pf-m-5-col-on-md","6ColOnMd":"pf-m-6-col-on-md","7ColOnMd":"pf-m-7-col-on-md","8ColOnMd":"pf-m-8-col-on-md","9ColOnMd":"pf-m-9-col-on-md","10ColOnMd":"pf-m-10-col-on-md","11ColOnMd":"pf-m-11-col-on-md","12ColOnMd":"pf-m-12-col-on-md",offset_1ColOnMd:"pf-m-offset-1-col-on-md",offset_2ColOnMd:"pf-m-offset-2-col-on-md",offset_3ColOnMd:"pf-m-offset-3-col-on-md",offset_4ColOnMd:"pf-m-offset-4-col-on-md",offset_5ColOnMd:"pf-m-offset-5-col-on-md",offset_6ColOnMd:"pf-m-offset-6-col-on-md",offset_7ColOnMd:"pf-m-offset-7-col-on-md",offset_8ColOnMd:"pf-m-offset-8-col-on-md",offset_9ColOnMd:"pf-m-offset-9-col-on-md",offset_10ColOnMd:"pf-m-offset-10-col-on-md",offset_11ColOnMd:"pf-m-offset-11-col-on-md",offset_12ColOnMd:"pf-m-offset-12-col-on-md","1RowOnMd":"pf-m-1-row-on-md","2RowOnMd":"pf-m-2-row-on-md","3RowOnMd":"pf-m-3-row-on-md","4RowOnMd":"pf-m-4-row-on-md","5RowOnMd":"pf-m-5-row-on-md","6RowOnMd":"pf-m-6-row-on-md","7RowOnMd":"pf-m-7-row-on-md","8RowOnMd":"pf-m-8-row-on-md","9RowOnMd":"pf-m-9-row-on-md","10RowOnMd":"pf-m-10-row-on-md","11RowOnMd":"pf-m-11-row-on-md","12RowOnMd":"pf-m-12-row-on-md","1ColOnLg":"pf-m-1-col-on-lg","2ColOnLg":"pf-m-2-col-on-lg","3ColOnLg":"pf-m-3-col-on-lg","4ColOnLg":"pf-m-4-col-on-lg","5ColOnLg":"pf-m-5-col-on-lg","6ColOnLg":"pf-m-6-col-on-lg","7ColOnLg":"pf-m-7-col-on-lg","8ColOnLg":"pf-m-8-col-on-lg","9ColOnLg":"pf-m-9-col-on-lg","10ColOnLg":"pf-m-10-col-on-lg","11ColOnLg":"pf-m-11-col-on-lg","12ColOnLg":"pf-m-12-col-on-lg",offset_1ColOnLg:"pf-m-offset-1-col-on-lg",offset_2ColOnLg:"pf-m-offset-2-col-on-lg",offset_3ColOnLg:"pf-m-offset-3-col-on-lg",offset_4ColOnLg:"pf-m-offset-4-col-on-lg",offset_5ColOnLg:"pf-m-offset-5-col-on-lg",offset_6ColOnLg:"pf-m-offset-6-col-on-lg",offset_7ColOnLg:"pf-m-offset-7-col-on-lg",offset_8ColOnLg:"pf-m-offset-8-col-on-lg",offset_9ColOnLg:"pf-m-offset-9-col-on-lg",offset_10ColOnLg:"pf-m-offset-10-col-on-lg",offset_11ColOnLg:"pf-m-offset-11-col-on-lg",offset_12ColOnLg:"pf-m-offset-12-col-on-lg","1RowOnLg":"pf-m-1-row-on-lg","2RowOnLg":"pf-m-2-row-on-lg","3RowOnLg":"pf-m-3-row-on-lg","4RowOnLg":"pf-m-4-row-on-lg","5RowOnLg":"pf-m-5-row-on-lg","6RowOnLg":"pf-m-6-row-on-lg","7RowOnLg":"pf-m-7-row-on-lg","8RowOnLg":"pf-m-8-row-on-lg","9RowOnLg":"pf-m-9-row-on-lg","10RowOnLg":"pf-m-10-row-on-lg","11RowOnLg":"pf-m-11-row-on-lg","12RowOnLg":"pf-m-12-row-on-lg","1ColOnXl":"pf-m-1-col-on-xl","2ColOnXl":"pf-m-2-col-on-xl","3ColOnXl":"pf-m-3-col-on-xl","4ColOnXl":"pf-m-4-col-on-xl","5ColOnXl":"pf-m-5-col-on-xl","6ColOnXl":"pf-m-6-col-on-xl","7ColOnXl":"pf-m-7-col-on-xl","8ColOnXl":"pf-m-8-col-on-xl","9ColOnXl":"pf-m-9-col-on-xl","10ColOnXl":"pf-m-10-col-on-xl","11ColOnXl":"pf-m-11-col-on-xl","12ColOnXl":"pf-m-12-col-on-xl",offset_1ColOnXl:"pf-m-offset-1-col-on-xl",offset_2ColOnXl:"pf-m-offset-2-col-on-xl",offset_3ColOnXl:"pf-m-offset-3-col-on-xl",offset_4ColOnXl:"pf-m-offset-4-col-on-xl",offset_5ColOnXl:"pf-m-offset-5-col-on-xl",offset_6ColOnXl:"pf-m-offset-6-col-on-xl",offset_7ColOnXl:"pf-m-offset-7-col-on-xl",offset_8ColOnXl:"pf-m-offset-8-col-on-xl",offset_9ColOnXl:"pf-m-offset-9-col-on-xl",offset_10ColOnXl:"pf-m-offset-10-col-on-xl",offset_11ColOnXl:"pf-m-offset-11-col-on-xl",offset_12ColOnXl:"pf-m-offset-12-col-on-xl","1RowOnXl":"pf-m-1-row-on-xl","2RowOnXl":"pf-m-2-row-on-xl","3RowOnXl":"pf-m-3-row-on-xl","4RowOnXl":"pf-m-4-row-on-xl","5RowOnXl":"pf-m-5-row-on-xl","6RowOnXl":"pf-m-6-row-on-xl","7RowOnXl":"pf-m-7-row-on-xl","8RowOnXl":"pf-m-8-row-on-xl","9RowOnXl":"pf-m-9-row-on-xl","10RowOnXl":"pf-m-10-row-on-xl","11RowOnXl":"pf-m-11-row-on-xl","12RowOnXl":"pf-m-12-row-on-xl","1ColOn_2xl":"pf-m-1-col-on-2xl","2ColOn_2xl":"pf-m-2-col-on-2xl","3ColOn_2xl":"pf-m-3-col-on-2xl","4ColOn_2xl":"pf-m-4-col-on-2xl","5ColOn_2xl":"pf-m-5-col-on-2xl","6ColOn_2xl":"pf-m-6-col-on-2xl","7ColOn_2xl":"pf-m-7-col-on-2xl","8ColOn_2xl":"pf-m-8-col-on-2xl","9ColOn_2xl":"pf-m-9-col-on-2xl","10ColOn_2xl":"pf-m-10-col-on-2xl","11ColOn_2xl":"pf-m-11-col-on-2xl","12ColOn_2xl":"pf-m-12-col-on-2xl",offset_1ColOn_2xl:"pf-m-offset-1-col-on-2xl",offset_2ColOn_2xl:"pf-m-offset-2-col-on-2xl",offset_3ColOn_2xl:"pf-m-offset-3-col-on-2xl",offset_4ColOn_2xl:"pf-m-offset-4-col-on-2xl",offset_5ColOn_2xl:"pf-m-offset-5-col-on-2xl",offset_6ColOn_2xl:"pf-m-offset-6-col-on-2xl",offset_7ColOn_2xl:"pf-m-offset-7-col-on-2xl",offset_8ColOn_2xl:"pf-m-offset-8-col-on-2xl",offset_9ColOn_2xl:"pf-m-offset-9-col-on-2xl",offset_10ColOn_2xl:"pf-m-offset-10-col-on-2xl",offset_11ColOn_2xl:"pf-m-offset-11-col-on-2xl",offset_12ColOn_2xl:"pf-m-offset-12-col-on-2xl","1RowOn_2xl":"pf-m-1-row-on-2xl","2RowOn_2xl":"pf-m-2-row-on-2xl","3RowOn_2xl":"pf-m-3-row-on-2xl","4RowOn_2xl":"pf-m-4-row-on-2xl","5RowOn_2xl":"pf-m-5-row-on-2xl","6RowOn_2xl":"pf-m-6-row-on-2xl","7RowOn_2xl":"pf-m-7-row-on-2xl","8RowOn_2xl":"pf-m-8-row-on-2xl","9RowOn_2xl":"pf-m-9-row-on-2xl","10RowOn_2xl":"pf-m-10-row-on-2xl","11RowOn_2xl":"pf-m-11-row-on-2xl","12RowOn_2xl":"pf-m-12-row-on-2xl",gutter:"pf-m-gutter"}};var yO;(function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"})(yO||(yO={}));var Yp;(function(e){e.sm="Sm",e.md="Md",e.lg="Lg",e.xl="Xl",e.xl2="_2xl"})(Yp||(Yp={}));const AA={name:"--pf-v5-l-grid--item--Order",value:"0",var:"var(--pf-v5-l-grid--item--Order)"},MA=e=>{var{children:t=null,className:n="",component:r="div",hasGutter:a,span:i=null,order:o,style:l}=e,s=Q(e,["children","className","component","hasGutter","span","order","style"]);const u=[aa.grid,i&&aa.modifiers[`all_${i}Col`]],c=r;return Object.entries(Yp).forEach(([f,d])=>{const h=f,p=s[h];p&&u.push(aa.modifiers[`all_${p}ColOn${d}`]),delete s[h]}),y.createElement(c,Object.assign({className:D(...u,a&&aa.modifiers.gutter,n),style:l||o?Object.assign(Object.assign({},l),mT(o,AA.name)):void 0},s),t)};MA.displayName="Grid";const Gi=e=>{var{children:t=null,className:n="",component:r="div",span:a=null,rowSpan:i=null,offset:o=null,order:l,style:s}=e,u=Q(e,["children","className","component","span","rowSpan","offset","order","style"]);const c=[aa.gridItem,a&&aa.modifiers[`${a}Col`],i&&aa.modifiers[`${i}Row`],o&&aa.modifiers[`offset_${o}Col`]],f=r;return Object.entries(Yp).forEach(([d,h])=>{const p=d,g=`${p}RowSpan`,b=`${p}Offset`,m=u[p],v=u[g],_=u[b];m&&c.push(aa.modifiers[`${m}ColOn${h}`]),v&&c.push(aa.modifiers[`${v}RowOn${h}`]),_&&c.push(aa.modifiers[`offset_${_}ColOn${h}`]),delete u[p],delete u[g],delete u[b]}),y.createElement(f,Object.assign({className:D(...c,n),style:s||l?Object.assign(Object.assign({},s),mT(l,AA.name)):void 0},u),t)};Gi.displayName="GridItem";const Jc={modifiers:{wrap:"pf-m-wrap",fill:"pf-m-fill",gutter:"pf-m-gutter"},split:"pf-v5-l-split",splitItem:"pf-v5-l-split__item"},IA=e=>{var{hasGutter:t=!1,isWrappable:n=!1,className:r="",children:a=null,component:i="div"}=e,o=Q(e,["hasGutter","isWrappable","className","children","component"]);const l=i;return y.createElement(l,Object.assign({},o,{className:D(Jc.split,t&&Jc.modifiers.gutter,n&&Jc.modifiers.wrap,r)}),a)};IA.displayName="Split";const cp=e=>{var{isFilled:t=!1,className:n="",children:r=null}=e,a=Q(e,["isFilled","className","children"]);return y.createElement("div",Object.assign({},a,{className:D(Jc.splitItem,t&&Jc.modifiers.fill,n)}),r)};cp.displayName="SplitItem";const rB={name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0},aB=ht(rB),iB=aB,oB={name:"BalanceScaleIcon",height:512,width:640,svgPath:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z",yOffset:0,xOffset:0},lB=ht(oB),sB={name:"BarsIcon",height:512,width:448,svgPath:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z",yOffset:0,xOffset:0},uB=ht(sB),cB={name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0},fB=ht(cB),dB=fB,hB={name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0},pB=ht(hB),mB=pB,gB={name:"FilterIcon",height:512,width:512,svgPath:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z",yOffset:0,xOffset:0},vB=ht(gB),yB={name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0},bB=ht(yB),bO=bB,_B={name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0},xB=ht(_B),wB=xB,SB={name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0},OB=ht(SB),CB=OB,EB={name:"OutlinedQuestionCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z",yOffset:0,xOffset:0},kB=ht(EB),PB={name:"PowerOffIcon",height:512,width:512,svgPath:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z",yOffset:0,xOffset:0},_O=ht(PB),TB={name:"UserIcon",height:512,width:448,svgPath:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z",yOffset:0,xOffset:0},AB=ht(TB);/** * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. @@ -52,8 +52,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function kl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function MB(){return Math.random().toString(36).substr(2,8)}function xO(e,t){return{usr:e.state,key:e.key,idx:t}}function If(e,t,n,r){return n===void 0&&(n=null),Pt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:n,key:t&&t.key||r||MB()})}function Pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ga(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function IB(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Ut.Pop,s=null,u=c();u==null&&(u=0,o.replaceState(Pt({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=Ut.Pop;let b=c(),m=b==null?null:b-u;u=b,s&&s({action:l,location:g.location,delta:m})}function d(b,m){l=Ut.Push;let v=If(g.location,b,m);n&&n(v,b),u=c()+1;let _=xO(v,u),x=g.createHref(v);try{o.pushState(_,"",x)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(x)}i&&s&&s({action:l,location:g.location,delta:1})}function h(b,m){l=Ut.Replace;let v=If(g.location,b,m);n&&n(v,b),u=c();let _=xO(v,u),x=g.createHref(v);o.replaceState(_,"",x),i&&s&&s({action:l,location:g.location,delta:0})}function p(b){let m=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof b=="string"?b:Pl(b);return v=v.replace(/ $/,"%20"),Ye(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return l},get location(){return e(a,o)},listen(b){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(_O,f),s=b,()=>{a.removeEventListener(_O,f),s=null}},createHref(b){return t(a,b)},createURL:p,encodeLocation(b){let m=p(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return o.go(b)}};return g}var Tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tt||(Tt={}));const RB=new Set(["lazy","caseSensitive","path","id","index","children"]);function $B(e){return e.index===!0}function Lb(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((a,i)=>{let o=[...n,i],l=typeof a.id=="string"?a.id:o.join("-");if(Ye(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ye(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),$B(a)){let s=Pt({},a,t(a),{id:l});return r[l]=s,s}else{let s=Pt({},a,t(a),{id:l,children:void 0});return r[l]=s,a.children&&(s.children=Lb(a.children,t,o,r)),s}})}function Os(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ga(t):t,a=Ru(r.pathname||"/",n);if(a==null)return null;let i=MA(e);jB(i);let o=null;for(let l=0;o==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(Ye(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=vi([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),MA(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:HB(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let s of IA(i.path))a(i,o,s)}),t}function IA(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=IA(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function jB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const DB=/^:[\w-]+$/,NB=3,FB=2,zB=1,BB=10,UB=-2,wO=e=>e==="*";function HB(e,t){let n=e.split("/"),r=n.length;return n.some(wO)&&(r+=UB),t&&(r+=FB),n.filter(a=>!wO(a)).reduce((a,i)=>a+(DB.test(i)?NB:i===""?zB:BB),r)}function WB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function VB(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o{let{paramName:d,isOptional:h}=c;if(d==="*"){let g=l[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=l[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function GB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function KB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ru(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function XB(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ga(e):e;return{pathname:n?n.startsWith("/")?n:YB(n,t):t,search:JB(r),hash:ZB(a)}}function YB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Rv(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function RA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m_(e,t){let n=RA(e);return t?n.map((r,a)=>a===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function g_(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Ga(e):(a=Pt({},e),Ye(!a.pathname||!a.pathname.includes("?"),Rv("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),Rv("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),Rv("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;a.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=XB(a,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const vi=e=>e.join("/").replace(/\/\/+/g,"/"),QB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),JB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ZB=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,eU=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let a=new Headers(r.headers);return a.set("Location",t),new Response(null,Pt({},r,{headers:a}))};class v_{constructor(t,n,r,a){a===void 0&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function y_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const $A=["post","put","patch","delete"],tU=new Set($A),nU=["get",...$A],rU=new Set(nU),aU=new Set([301,302,303,307,308]),iU=new Set([307,308]),$v={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},b_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lU=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),LA="remix-router-transitions";function sU(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ye(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;a=G=>({hasErrorBoundary:H(G)})}else a=lU;let i={},o=Lb(e.routes,a,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||dU,c=Pt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,d=new Set,h=null,p=null,g=null,b=e.hydrationData!=null,m=Os(o,e.history.location,s),v=null;if(m==null){let H=kr(404,{pathname:e.history.location.pathname}),{matches:G,route:ee}=IO(o);m=G,v={[ee.id]:H}}let _,x=m.some(H=>H.route.lazy),O=m.some(H=>H.route.loader);if(x)_=!1;else if(!O)_=!0;else if(c.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,G=e.hydrationData?e.hydrationData.errors:null,ee=de=>de.route.loader?typeof de.route.loader=="function"&&de.route.loader.hydrate===!0?!1:H&&H[de.route.id]!==void 0||G&&G[de.route.id]!==void 0:!0;if(G){let de=m.findIndex(be=>G[be.route.id]!==void 0);_=m.slice(0,de+1).every(ee)}else _=m.every(ee)}else _=e.hydrationData!=null;let S,w={historyAction:e.history.action,location:e.history.location,matches:m,initialized:_,navigation:$v,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=Ut.Pop,A=!1,I,P=!1,T=new Map,E=null,L=!1,N=!1,U=[],W=[],$=new Map,F=0,k=-1,X=new Map,te=new Set,R=new Map,J=new Map,ae=new Set,ue=new Map,ve=new Map,ke=!1;function q(){if(f=e.history.listen(H=>{let{action:G,location:ee,delta:de}=H;if(ke){ke=!1;return}kl(ve.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=Gt({currentLocation:w.location,nextLocation:ee,historyAction:G});if(be&&de!=null){ke=!0,e.history.go(de*-1),dt(be,{state:"blocked",location:ee,proceed(){dt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),e.history.go(de)},reset(){let We=new Map(w.blockers);We.set(be,uc),K({blockers:We})}});return}return Ce(G,ee)}),n){OU(t,T);let H=()=>CU(t,T);t.addEventListener("pagehide",H),E=()=>t.removeEventListener("pagehide",H)}return w.initialized||Ce(Ut.Pop,w.location,{initialHydration:!0}),S}function Z(){f&&f(),E&&E(),d.clear(),I&&I.abort(),w.fetchers.forEach((H,G)=>pe(G)),w.blockers.forEach((H,G)=>Ze(G))}function ie(H){return d.add(H),()=>d.delete(H)}function K(H,G){G===void 0&&(G={}),w=Pt({},w,H);let ee=[],de=[];c.v7_fetcherPersist&&w.fetchers.forEach((be,We)=>{be.state==="idle"&&(ae.has(We)?de.push(We):ee.push(We))}),[...d].forEach(be=>be(w,{deletedFetchers:de,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),c.v7_fetcherPersist&&(ee.forEach(be=>w.fetchers.delete(be)),de.forEach(be=>pe(be)))}function Te(H,G,ee){var de,be;let{flushSync:We}=ee===void 0?{}:ee,Ie=w.actionData!=null&&w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&w.navigation.state==="loading"&&((de=H.state)==null?void 0:de._isRedirect)!==!0,Se;G.actionData?Object.keys(G.actionData).length>0?Se=G.actionData:Se=null:Ie?Se=w.actionData:Se=null;let qe=G.loaderData?AO(w.loaderData,G.loaderData,G.matches||[],G.errors):w.loaderData,ze=w.blockers;ze.size>0&&(ze=new Map(ze),ze.forEach((Ne,Et)=>ze.set(Et,uc)));let cn=A===!0||w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&((be=H.state)==null?void 0:be._isRedirect)!==!0;l&&(o=l,l=void 0),L||C===Ut.Pop||(C===Ut.Push?e.history.push(H,H.state):C===Ut.Replace&&e.history.replace(H,H.state));let fn;if(C===Ut.Pop){let Ne=T.get(w.location.pathname);Ne&&Ne.has(H.pathname)?fn={currentLocation:w.location,nextLocation:H}:T.has(H.pathname)&&(fn={currentLocation:H,nextLocation:w.location})}else if(P){let Ne=T.get(w.location.pathname);Ne?Ne.add(H.pathname):(Ne=new Set([H.pathname]),T.set(w.location.pathname,Ne)),fn={currentLocation:w.location,nextLocation:H}}K(Pt({},G,{actionData:Se,loaderData:qe,historyAction:C,location:H,initialized:!0,navigation:$v,revalidation:"idle",restoreScrollPosition:xt(H,G.matches||w.matches),preventScrollReset:cn,blockers:ze}),{viewTransitionOpts:fn,flushSync:We===!0}),C=Ut.Pop,A=!1,P=!1,L=!1,N=!1,U=[],W=[]}async function ye(H,G){if(typeof H=="number"){e.history.go(H);return}let ee=jb(w.location,w.matches,s,c.v7_prependBasename,H,c.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:de,submission:be,error:We}=SO(c.v7_normalizeFormMethod,!1,ee,G),Ie=w.location,Se=If(w.location,de,G&&G.state);Se=Pt({},Se,e.history.encodeLocation(Se));let qe=G&&G.replace!=null?G.replace:void 0,ze=Ut.Push;qe===!0?ze=Ut.Replace:qe===!1||be!=null&&ia(be.formMethod)&&be.formAction===w.location.pathname+w.location.search&&(ze=Ut.Replace);let cn=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,fn=(G&&G.unstable_flushSync)===!0,Ne=Gt({currentLocation:Ie,nextLocation:Se,historyAction:ze});if(Ne){dt(Ne,{state:"blocked",location:Se,proceed(){dt(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),ye(H,G)},reset(){let Et=new Map(w.blockers);Et.set(Ne,uc),K({blockers:Et})}});return}return await Ce(ze,Se,{submission:be,pendingError:We,preventScrollReset:cn,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:fn})}function Ae(){if(z(),K({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Ce(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Ce(C||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Ce(H,G,ee){I&&I.abort(),I=null,C=H,L=(ee&&ee.startUninterruptedRevalidation)===!0,Fe(w.location,w.matches),A=(ee&&ee.preventScrollReset)===!0,P=(ee&&ee.enableViewTransition)===!0;let de=l||o,be=ee&&ee.overrideNavigation,We=Os(de,G,s),Ie=(ee&&ee.flushSync)===!0;if(!We){let Ne=kr(404,{pathname:G.pathname}),{matches:Et,route:tn}=IO(de);ya(),Te(G,{matches:Et,loaderData:{},errors:{[tn.id]:Ne}},{flushSync:Ie});return}if(w.initialized&&!N&&yU(w.location,G)&&!(ee&&ee.submission&&ia(ee.submission.formMethod))){Te(G,{matches:We},{flushSync:Ie});return}I=new AbortController;let Se=rs(e.history,G,I.signal,ee&&ee.submission),qe;if(ee&&ee.pendingError)qe=[Zc(We).route.id,{type:Tt.error,error:ee.pendingError}];else if(ee&&ee.submission&&ia(ee.submission.formMethod)){let Ne=await Re(Se,G,ee.submission,We,{replace:ee.replace,flushSync:Ie});if(Ne.shortCircuited)return;qe=Ne.pendingActionResult,be=Lv(G,ee.submission),Ie=!1,Se=rs(e.history,Se.url,Se.signal)}let{shortCircuited:ze,loaderData:cn,errors:fn}=await Ge(Se,G,We,be,ee&&ee.submission,ee&&ee.fetcherSubmission,ee&&ee.replace,ee&&ee.initialHydration===!0,Ie,qe);ze||(I=null,Te(G,Pt({matches:We},MO(qe),{loaderData:cn,errors:fn})))}async function Re(H,G,ee,de,be){be===void 0&&(be={}),z();let We=wU(G,ee);K({navigation:We},{flushSync:be.flushSync===!0});let Ie,Se=Nb(de,G);if(!Se.route.action&&!Se.route.lazy)Ie={type:Tt.error,error:kr(405,{method:H.method,pathname:G.pathname,routeId:Se.route.id})};else if(Ie=(await De("action",H,[Se],de))[0],H.signal.aborted)return{shortCircuited:!0};if(el(Ie)){let qe;return be&&be.replace!=null?qe=be.replace:qe=kO(Ie.response.headers.get("Location"),new URL(H.url),s)===w.location.pathname+w.location.search,await xe(H,Ie,{submission:ee,replace:qe}),{shortCircuited:!0}}if(Zo(Ie))throw kr(400,{type:"defer-action"});if(Ir(Ie)){let qe=Zc(de,Se.route.id);return(be&&be.replace)!==!0&&(C=Ut.Push),{pendingActionResult:[qe.route.id,Ie]}}return{pendingActionResult:[Se.route.id,Ie]}}async function Ge(H,G,ee,de,be,We,Ie,Se,qe,ze){let cn=de||Lv(G,be),fn=be||We||LO(cn),Ne=l||o,[Et,tn]=OO(e.history,w,ee,fn,G,c.v7_partialHydration&&Se===!0,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ne,s,ze);if(ya(nt=>!(ee&&ee.some(Pn=>Pn.route.id===nt))||Et&&Et.some(Pn=>Pn.route.id===nt)),k=++F,Et.length===0&&tn.length===0){let nt=Ke();return Te(G,Pt({matches:ee,loaderData:{},errors:ze&&Ir(ze[1])?{[ze[0]]:ze[1].error}:null},MO(ze),nt?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(!L&&(!c.v7_partialHydration||!Se)){tn.forEach(Pn=>{let br=w.fetchers.get(Pn.key),dn=cc(void 0,br?br.data:void 0);w.fetchers.set(Pn.key,dn)});let nt;ze&&!Ir(ze[1])?nt={[ze[0]]:ze[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?nt=null:nt=w.actionData),K(Pt({navigation:cn},nt!==void 0?{actionData:nt}:{},tn.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe})}tn.forEach(nt=>{$.has(nt.key)&&ge(nt.key),nt.controller&&$.set(nt.key,nt.controller)});let Ku=()=>tn.forEach(nt=>ge(nt.key));I&&I.signal.addEventListener("abort",Ku);let{loaderResults:Ui,fetcherResults:Ql}=await Je(w.matches,ee,Et,tn,H);if(H.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ku),tn.forEach(nt=>$.delete(nt.key));let Jl=RO([...Ui,...Ql]);if(Jl){if(Jl.idx>=Et.length){let nt=tn[Jl.idx-Et.length].key;te.add(nt)}return await xe(H,Jl.result,{replace:Ie}),{shortCircuited:!0}}let{loaderData:Zl,errors:ba}=TO(w,ee,Et,Ui,ze,tn,Ql,ue);ue.forEach((nt,Pn)=>{nt.subscribe(br=>{(br||nt.done)&&ue.delete(Pn)})}),c.v7_partialHydration&&Se&&w.errors&&Object.entries(w.errors).filter(nt=>{let[Pn]=nt;return!Et.some(br=>br.route.id===Pn)}).forEach(nt=>{let[Pn,br]=nt;ba=Object.assign(ba||{},{[Pn]:br})});let Xd=Ke(),Yd=Bt(k),Qd=Xd||Yd||tn.length>0;return Pt({loaderData:Zl,errors:ba},Qd?{fetchers:new Map(w.fetchers)}:{})}function _e(H,G,ee,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(H)&&ge(H);let be=(de&&de.unstable_flushSync)===!0,We=l||o,Ie=jb(w.location,w.matches,s,c.v7_prependBasename,ee,c.v7_relativeSplatPath,G,de==null?void 0:de.relative),Se=Os(We,Ie,s);if(!Se){he(H,G,kr(404,{pathname:Ie}),{flushSync:be});return}let{path:qe,submission:ze,error:cn}=SO(c.v7_normalizeFormMethod,!0,Ie,de);if(cn){he(H,G,cn,{flushSync:be});return}let fn=Nb(Se,qe);if(A=(de&&de.preventScrollReset)===!0,ze&&ia(ze.formMethod)){re(H,G,qe,fn,Se,be,ze);return}R.set(H,{routeId:G,path:qe}),oe(H,G,qe,fn,Se,be,ze)}async function re(H,G,ee,de,be,We,Ie){if(z(),R.delete(H),!de.route.action&&!de.route.lazy){let dn=kr(405,{method:Ie.formMethod,pathname:ee,routeId:G});he(H,G,dn,{flushSync:We});return}let Se=w.fetchers.get(H);Y(H,SU(Ie,Se),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal,Ie);$.set(H,qe);let cn=F,Ne=(await De("action",ze,[de],be))[0];if(ze.signal.aborted){$.get(H)===qe&&$.delete(H);return}if(c.v7_fetcherPersist&&ae.has(H)){if(el(Ne)||Ir(Ne)){Y(H,Ki(void 0));return}}else{if(el(Ne))if($.delete(H),k>cn){Y(H,Ki(void 0));return}else return te.add(H),Y(H,cc(Ie)),xe(ze,Ne,{fetcherSubmission:Ie});if(Ir(Ne)){he(H,G,Ne.error);return}}if(Zo(Ne))throw kr(400,{type:"defer-action"});let Et=w.navigation.location||w.location,tn=rs(e.history,Et,qe.signal),Ku=l||o,Ui=w.navigation.state!=="idle"?Os(Ku,w.navigation.location,s):w.matches;Ye(Ui,"Didn't find any matches after fetcher action");let Ql=++F;X.set(H,Ql);let Jl=cc(Ie,Ne.data);w.fetchers.set(H,Jl);let[Zl,ba]=OO(e.history,w,Ui,Ie,Et,!1,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ku,s,[de.route.id,Ne]);ba.filter(dn=>dn.key!==H).forEach(dn=>{let Xu=dn.key,Rw=w.fetchers.get(Xu),tj=cc(void 0,Rw?Rw.data:void 0);w.fetchers.set(Xu,tj),$.has(Xu)&&ge(Xu),dn.controller&&$.set(Xu,dn.controller)}),K({fetchers:new Map(w.fetchers)});let Xd=()=>ba.forEach(dn=>ge(dn.key));qe.signal.addEventListener("abort",Xd);let{loaderResults:Yd,fetcherResults:Qd}=await Je(w.matches,Ui,Zl,ba,tn);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",Xd),X.delete(H),$.delete(H),ba.forEach(dn=>$.delete(dn.key));let nt=RO([...Yd,...Qd]);if(nt){if(nt.idx>=Zl.length){let dn=ba[nt.idx-Zl.length].key;te.add(dn)}return xe(tn,nt.result)}let{loaderData:Pn,errors:br}=TO(w,w.matches,Zl,Yd,void 0,ba,Qd,ue);if(w.fetchers.has(H)){let dn=Ki(Ne.data);w.fetchers.set(H,dn)}Bt(Ql),w.navigation.state==="loading"&&Ql>k?(Ye(C,"Expected pending action"),I&&I.abort(),Te(w.navigation.location,{matches:Ui,loaderData:Pn,errors:br,fetchers:new Map(w.fetchers)})):(K({errors:br,loaderData:AO(w.loaderData,Pn,Ui,br),fetchers:new Map(w.fetchers)}),N=!1)}async function oe(H,G,ee,de,be,We,Ie){let Se=w.fetchers.get(H);Y(H,cc(Ie,Se?Se.data:void 0),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal);$.set(H,qe);let cn=F,Ne=(await De("loader",ze,[de],be))[0];if(Zo(Ne)&&(Ne=await FA(Ne,ze.signal,!0)||Ne),$.get(H)===qe&&$.delete(H),!ze.signal.aborted){if(ae.has(H)){Y(H,Ki(void 0));return}if(el(Ne))if(k>cn){Y(H,Ki(void 0));return}else{te.add(H),await xe(ze,Ne);return}if(Ir(Ne)){he(H,G,Ne.error);return}Ye(!Zo(Ne),"Unhandled fetcher deferred data"),Y(H,Ki(Ne.data))}}async function xe(H,G,ee){let{submission:de,fetcherSubmission:be,replace:We}=ee===void 0?{}:ee;G.response.headers.has("X-Remix-Revalidate")&&(N=!0);let Ie=G.response.headers.get("Location");Ye(Ie,"Expected a Location header on the redirect Response"),Ie=kO(Ie,new URL(H.url),s);let Se=If(w.location,Ie,{_isRedirect:!0});if(n){let Et=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Et=!0;else if(b_.test(Ie)){const tn=e.history.createURL(Ie);Et=tn.origin!==t.location.origin||Ru(tn.pathname,s)==null}if(Et){We?t.location.replace(Ie):t.location.assign(Ie);return}}I=null;let qe=We===!0?Ut.Replace:Ut.Push,{formMethod:ze,formAction:cn,formEncType:fn}=w.navigation;!de&&!be&&ze&&cn&&fn&&(de=LO(w.navigation));let Ne=de||be;if(iU.has(G.response.status)&&Ne&&ia(Ne.formMethod))await Ce(qe,Se,{submission:Pt({},Ne,{formAction:Ie}),preventScrollReset:A});else{let Et=Lv(Se,de);await Ce(qe,Se,{overrideNavigation:Et,fetcherSubmission:be,preventScrollReset:A})}}async function De(H,G,ee,de){try{let be=await hU(u,H,G,ee,de,i,a);return await Promise.all(be.map((We,Ie)=>{if(bU(We)){let Se=We.result;return{type:Tt.redirect,response:gU(Se,G,ee[Ie].route.id,de,s,c.v7_relativeSplatPath)}}return mU(We)}))}catch(be){return ee.map(()=>({type:Tt.error,error:be}))}}async function Je(H,G,ee,de,be){let[We,...Ie]=await Promise.all([ee.length?De("loader",be,ee,G):[],...de.map(Se=>{if(Se.matches&&Se.match&&Se.controller){let qe=rs(e.history,Se.path,Se.controller.signal);return De("loader",qe,[Se.match],Se.matches).then(ze=>ze[0])}else return Promise.resolve({type:Tt.error,error:kr(404,{pathname:Se.path})})})]);return await Promise.all([$O(H,ee,We,We.map(()=>be.signal),!1,w.loaderData),$O(H,de.map(Se=>Se.match),Ie,de.map(Se=>Se.controller?Se.controller.signal:null),!0)]),{loaderResults:We,fetcherResults:Ie}}function z(){N=!0,U.push(...ya()),R.forEach((H,G)=>{$.has(G)&&(W.push(G),ge(G))})}function Y(H,G,ee){ee===void 0&&(ee={}),w.fetchers.set(H,G),K({fetchers:new Map(w.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function he(H,G,ee,de){de===void 0&&(de={});let be=Zc(w.matches,G);pe(H),K({errors:{[be.route.id]:ee},fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function se(H){return c.v7_fetcherPersist&&(J.set(H,(J.get(H)||0)+1),ae.has(H)&&ae.delete(H)),w.fetchers.get(H)||oU}function pe(H){let G=w.fetchers.get(H);$.has(H)&&!(G&&G.state==="loading"&&X.has(H))&&ge(H),R.delete(H),X.delete(H),te.delete(H),ae.delete(H),w.fetchers.delete(H)}function He(H){if(c.v7_fetcherPersist){let G=(J.get(H)||0)-1;G<=0?(J.delete(H),ae.add(H)):J.set(H,G)}else pe(H);K({fetchers:new Map(w.fetchers)})}function ge(H){let G=$.get(H);Ye(G,"Expected fetch controller: "+H),G.abort(),$.delete(H)}function Pe(H){for(let G of H){let ee=se(G),de=Ki(ee.data);w.fetchers.set(G,de)}}function Ke(){let H=[],G=!1;for(let ee of te){let de=w.fetchers.get(ee);Ye(de,"Expected fetcher: "+ee),de.state==="loading"&&(te.delete(ee),H.push(ee),G=!0)}return Pe(H),G}function Bt(H){let G=[];for(let[ee,de]of X)if(de0}function $e(H,G){let ee=w.blockers.get(H)||uc;return ve.get(H)!==G&&ve.set(H,G),ee}function Ze(H){w.blockers.delete(H),ve.delete(H)}function dt(H,G){let ee=w.blockers.get(H)||uc;Ye(ee.state==="unblocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="proceeding"||ee.state==="blocked"&&G.state==="unblocked"||ee.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+ee.state+" -> "+G.state);let de=new Map(w.blockers);de.set(H,G),K({blockers:de})}function Gt(H){let{currentLocation:G,nextLocation:ee,historyAction:de}=H;if(ve.size===0)return;ve.size>1&&kl(!1,"A router only supports one blocker at a time");let be=Array.from(ve.entries()),[We,Ie]=be[be.length-1],Se=w.blockers.get(We);if(!(Se&&Se.state==="proceeding")&&Ie({currentLocation:G,nextLocation:ee,historyAction:de}))return We}function ya(H){let G=[];return ue.forEach((ee,de)=>{(!H||H(de))&&(ee.cancel(),G.push(de),ue.delete(de))}),G}function Bi(H,G,ee){if(h=H,g=G,p=ee||null,!b&&w.navigation===$v){b=!0;let de=xt(w.location,w.matches);de!=null&&K({restoreScrollPosition:de})}return()=>{h=null,g=null,p=null}}function Kd(H,G){return p&&p(H,G.map(de=>LB(de,w.loaderData)))||H.key}function Fe(H,G){if(h&&g){let ee=Kd(H,G);h[ee]=g()}}function xt(H,G){if(h){let ee=Kd(H,G),de=h[ee];if(typeof de=="number")return de}return null}function Za(H){i={},l=Lb(H,a,void 0,i)}return S={get basename(){return s},get future(){return c},get state(){return w},get routes(){return o},get window(){return t},initialize:q,subscribe:ie,enableScrollRestoration:Bi,navigate:ye,fetch:_e,revalidate:Ae,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:se,deleteFetcher:He,dispose:Z,getBlocker:$e,deleteBlocker:Ze,_internalFetchControllers:$,_internalActiveDeferreds:ue,_internalSetRoutes:Za},S}function uU(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function jb(e,t,n,r,a,i,o,l){let s,u;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){u=f;break}}else s=t,u=t[t.length-1];let c=g_(a||".",m_(s,i),Ru(e.pathname,n)||e.pathname,l==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&u&&u.route.index&&!__(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:vi([n,c.pathname])),Pl(c)}function SO(e,t,n,r){if(!r||!uU(r))return{path:n};if(r.formMethod&&!xU(r.formMethod))return{path:n,error:kr(405,{method:r.formMethod})};let a=()=>({path:n,error:kr(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),l=DA(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ia(o))return a();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[g,b]=p;return""+h+g+"="+b+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!ia(o))return a();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return a()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Db(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Db(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=PO(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=PO(s)}catch{return a()}let c={formMethod:o,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ia(c.formMethod))return{path:n,submission:c};let f=Ga(n);return t&&f.search&&__(f.search)&&s.append("index",""),f.search="?"+s,{path:Pl(f),submission:c}}function cU(e,t){let n=e;if(t){let r=e.findIndex(a=>a.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function OO(e,t,n,r,a,i,o,l,s,u,c,f,d,h,p,g){let b=g?Ir(g[1])?g[1].error:g[1].data:void 0,m=e.createURL(t.location),v=e.createURL(a),_=g&&Ir(g[1])?g[0]:void 0,x=_?cU(n,_):n,O=g?g[1].statusCode:void 0,S=o&&O&&O>=400,w=x.filter((A,I)=>{let{route:P}=A;if(P.lazy)return!0;if(P.loader==null)return!1;if(i)return typeof P.loader!="function"||P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(fU(t.loaderData,t.matches[I],A)||s.some(L=>L===A.route.id))return!0;let T=t.matches[I],E=A;return CO(A,Pt({currentUrl:m,currentParams:T.params,nextUrl:v,nextParams:E.params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l||m.pathname+m.search===v.pathname+v.search||m.search!==v.search||jA(T,E)}))}),C=[];return f.forEach((A,I)=>{if(i||!n.some(N=>N.route.id===A.routeId)||c.has(I))return;let P=Os(h,A.path,p);if(!P){C.push({key:I,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(I),E=Nb(P,A.path),L=!1;d.has(I)?L=!1:u.includes(I)?L=!0:T&&T.state!=="idle"&&T.data===void 0?L=l:L=CO(E,Pt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l})),L&&C.push({key:I,routeId:A.routeId,path:A.path,matches:P,match:E,controller:new AbortController})}),[w,C]}function fU(e,t,n){let r=!t||n.route.id!==t.route.id,a=e[n.route.id]===void 0;return r||a}function jA(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function CO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function EO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];Ye(a,"No route found in manifest");let i={};for(let o in r){let s=a[o]!==void 0&&o!=="hasErrorBoundary";kl(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!RB.has(o)&&(i[o]=r[o])}Object.assign(a,i),Object.assign(a,Pt({},t(a),{lazy:void 0}))}function dU(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function hU(e,t,n,r,a,i,o,l){let s=r.reduce((f,d)=>f.add(d.route.id),new Set),u=new Set,c=await e({matches:a.map(f=>{let d=s.has(f.route.id);return Pt({},f,{shouldLoad:d,resolve:p=>(u.add(f.route.id),d?pU(t,n,f,i,o,p,l):Promise.resolve({type:Tt.data,result:void 0}))})}),request:n,params:a[0].params,context:l});return a.forEach(f=>Ye(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,d)=>s.has(a[d].route.id))}async function pU(e,t,n,r,a,i,o){let l,s,u=c=>{let f,d=new Promise((g,b)=>f=b);s=()=>f(),t.signal.addEventListener("abort",s);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...g!==void 0?[g]:[]),p;return i?p=i(g=>h(g)):p=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([p,d])};try{let c=n.route[e];if(n.route.lazy)if(c){let f,[d]=await Promise.all([u(c).catch(h=>{f=h}),EO(n.route,a,r)]);if(f!==void 0)throw f;l=d}else if(await EO(n.route,a,r),c=n.route[e],c)l=await u(c);else if(e==="action"){let f=new URL(t.url),d=f.pathname+f.search;throw kr(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Tt.data,result:void 0};else if(c)l=await u(c);else{let f=new URL(t.url),d=f.pathname+f.search;throw kr(404,{pathname:d})}Ye(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Tt.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function mU(e){let{result:t,type:n,status:r}=e;if(NA(t)){let o;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?o=null:o=await t.json():o=await t.text()}catch(l){return{type:Tt.error,error:l}}return n===Tt.error?{type:Tt.error,error:new v_(t.status,t.statusText,o),statusCode:t.status,headers:t.headers}:{type:Tt.data,data:o,statusCode:t.status,headers:t.headers}}if(n===Tt.error)return{type:Tt.error,error:t,statusCode:y_(t)?t.status:r};if(_U(t)){var a,i;return{type:Tt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Tt.data,data:t,statusCode:r}}function gU(e,t,n,r,a,i){let o=e.headers.get("Location");if(Ye(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!b_.test(o)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);o=jb(new URL(t.url),l,a,!0,o,i),e.headers.set("Location",o)}return e}function kO(e,t,n){if(b_.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ru(a.pathname,n)!=null;if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}return e}function rs(e,t,n,r){let a=e.createURL(DA(t)).toString(),i={signal:n};if(r&&ia(r.formMethod)){let{formMethod:o,formEncType:l}=r;i.method=o.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Db(r.formData):i.body=r.formData}return new Request(a,i)}function Db(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function vU(e,t,n,r,a,i){let o={},l=null,s,u=!1,c={},f=r&&Ir(r[1])?r[1].error:void 0;return n.forEach((d,h)=>{let p=t[h].route.id;if(Ye(!el(d),"Cannot handle redirect results in processLoaderData"),Ir(d)){let g=d.error;if(f!==void 0&&(g=f,f=void 0),l=l||{},i)l[p]=g;else{let b=Zc(e,p);l[b.route.id]==null&&(l[b.route.id]=g)}o[p]=void 0,u||(u=!0,s=y_(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else Zo(d)?(a.set(p,d.deferredData),o[p]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers)):(o[p]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers))}),f!==void 0&&r&&(l={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:l,statusCode:s||200,loaderHeaders:c}}function TO(e,t,n,r,a,i,o,l){let{loaderData:s,errors:u}=vU(t,n,r,a,l,!1);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function IO(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function kr(e,t){let{pathname:n,routeId:r,method:a,type:i}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new v_(e||500,o,new Error(l),!0)}function RO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(el(n))return{result:n,idx:t}}}function DA(e){let t=typeof e=="string"?Ga(e):e;return Pl(Pt({},t,{hash:""}))}function yU(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function bU(e){return NA(e.result)&&aU.has(e.result.status)}function Zo(e){return e.type===Tt.deferred}function Ir(e){return e.type===Tt.error}function el(e){return(e&&e.type)===Tt.redirect}function _U(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function NA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function xU(e){return rU.has(e.toLowerCase())}function ia(e){return tU.has(e.toLowerCase())}async function $O(e,t,n,r,a,i){for(let o=0;of.route.id===s.route.id),c=u!=null&&!jA(u,s)&&(i&&i[s.route.id])!==void 0;if(Zo(l)&&(a||c)){let f=r[o];Ye(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await FA(l,f,a).then(d=>{d&&(n[o]=d||n[o])})}}}async function FA(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Tt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Tt.error,error:a}}return{type:Tt.data,data:e.deferredData.data}}}function __(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nb(e,t){let n=typeof t=="string"?Ga(t).search:t.search;if(e[e.length-1].route.index&&__(n||""))return e[e.length-1];let r=RA(e);return r[r.length-1]}function LO(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:o}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Lv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function wU(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function cc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function SU(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ki(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function OU(e,t){try{let n=e.sessionStorage.getItem(LA);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(a,new Set(i||[]))}}catch{}}function CU(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(LA,JSON.stringify(n))}catch(r){kl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function kl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IB(){return Math.random().toString(36).substr(2,8)}function wO(e,t){return{usr:e.state,key:e.key,idx:t}}function If(e,t,n,r){return n===void 0&&(n=null),Pt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:n,key:t&&t.key||r||IB()})}function Pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ga(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function RB(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Ut.Pop,s=null,u=c();u==null&&(u=0,o.replaceState(Pt({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=Ut.Pop;let b=c(),m=b==null?null:b-u;u=b,s&&s({action:l,location:g.location,delta:m})}function d(b,m){l=Ut.Push;let v=If(g.location,b,m);n&&n(v,b),u=c()+1;let _=wO(v,u),x=g.createHref(v);try{o.pushState(_,"",x)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(x)}i&&s&&s({action:l,location:g.location,delta:1})}function h(b,m){l=Ut.Replace;let v=If(g.location,b,m);n&&n(v,b),u=c();let _=wO(v,u),x=g.createHref(v);o.replaceState(_,"",x),i&&s&&s({action:l,location:g.location,delta:0})}function p(b){let m=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof b=="string"?b:Pl(b);return v=v.replace(/ $/,"%20"),Ye(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return l},get location(){return e(a,o)},listen(b){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(xO,f),s=b,()=>{a.removeEventListener(xO,f),s=null}},createHref(b){return t(a,b)},createURL:p,encodeLocation(b){let m=p(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return o.go(b)}};return g}var Tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tt||(Tt={}));const $B=new Set(["lazy","caseSensitive","path","id","index","children"]);function LB(e){return e.index===!0}function Lb(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((a,i)=>{let o=[...n,i],l=typeof a.id=="string"?a.id:o.join("-");if(Ye(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ye(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),LB(a)){let s=Pt({},a,t(a),{id:l});return r[l]=s,s}else{let s=Pt({},a,t(a),{id:l,children:void 0});return r[l]=s,a.children&&(s.children=Lb(a.children,t,o,r)),s}})}function Os(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ga(t):t,a=Ru(r.pathname||"/",n);if(a==null)return null;let i=RA(e);DB(i);let o=null;for(let l=0;o==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(Ye(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=vi([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),RA(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:WB(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let s of $A(i.path))a(i,o,s)}),t}function $A(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=$A(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function DB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:VB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const NB=/^:[\w-]+$/,FB=3,zB=2,BB=1,UB=10,HB=-2,SO=e=>e==="*";function WB(e,t){let n=e.split("/"),r=n.length;return n.some(SO)&&(r+=HB),t&&(r+=zB),n.filter(a=>!SO(a)).reduce((a,i)=>a+(NB.test(i)?FB:i===""?BB:UB),r)}function VB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function qB(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o{let{paramName:d,isOptional:h}=c;if(d==="*"){let g=l[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=l[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function KB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function XB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ru(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function YB(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ga(e):e;return{pathname:n?n.startsWith("/")?n:QB(n,t):t,search:ZB(r),hash:eU(a)}}function QB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Rv(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function LA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m_(e,t){let n=LA(e);return t?n.map((r,a)=>a===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function g_(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Ga(e):(a=Pt({},e),Ye(!a.pathname||!a.pathname.includes("?"),Rv("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),Rv("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),Rv("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;a.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=YB(a,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const vi=e=>e.join("/").replace(/\/\/+/g,"/"),JB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,tU=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let a=new Headers(r.headers);return a.set("Location",t),new Response(null,Pt({},r,{headers:a}))};class v_{constructor(t,n,r,a){a===void 0&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function y_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jA=["post","put","patch","delete"],nU=new Set(jA),rU=["get",...jA],aU=new Set(rU),iU=new Set([301,302,303,307,308]),oU=new Set([307,308]),$v={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},b_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sU=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),DA="remix-router-transitions";function uU(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ye(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;a=G=>({hasErrorBoundary:H(G)})}else a=sU;let i={},o=Lb(e.routes,a,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||hU,c=Pt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,d=new Set,h=null,p=null,g=null,b=e.hydrationData!=null,m=Os(o,e.history.location,s),v=null;if(m==null){let H=kr(404,{pathname:e.history.location.pathname}),{matches:G,route:ee}=RO(o);m=G,v={[ee.id]:H}}let _,x=m.some(H=>H.route.lazy),O=m.some(H=>H.route.loader);if(x)_=!1;else if(!O)_=!0;else if(c.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,G=e.hydrationData?e.hydrationData.errors:null,ee=de=>de.route.loader?typeof de.route.loader=="function"&&de.route.loader.hydrate===!0?!1:H&&H[de.route.id]!==void 0||G&&G[de.route.id]!==void 0:!0;if(G){let de=m.findIndex(be=>G[be.route.id]!==void 0);_=m.slice(0,de+1).every(ee)}else _=m.every(ee)}else _=e.hydrationData!=null;let S,w={historyAction:e.history.action,location:e.history.location,matches:m,initialized:_,navigation:$v,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=Ut.Pop,A=!1,I,P=!1,T=new Map,E=null,L=!1,N=!1,U=[],W=[],$=new Map,F=0,k=-1,X=new Map,te=new Set,R=new Map,J=new Map,ae=new Set,ue=new Map,ve=new Map,ke=!1;function q(){if(f=e.history.listen(H=>{let{action:G,location:ee,delta:de}=H;if(ke){ke=!1;return}kl(ve.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=Gt({currentLocation:w.location,nextLocation:ee,historyAction:G});if(be&&de!=null){ke=!0,e.history.go(de*-1),dt(be,{state:"blocked",location:ee,proceed(){dt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),e.history.go(de)},reset(){let We=new Map(w.blockers);We.set(be,uc),K({blockers:We})}});return}return Ce(G,ee)}),n){CU(t,T);let H=()=>EU(t,T);t.addEventListener("pagehide",H),E=()=>t.removeEventListener("pagehide",H)}return w.initialized||Ce(Ut.Pop,w.location,{initialHydration:!0}),S}function Z(){f&&f(),E&&E(),d.clear(),I&&I.abort(),w.fetchers.forEach((H,G)=>pe(G)),w.blockers.forEach((H,G)=>Ze(G))}function ie(H){return d.add(H),()=>d.delete(H)}function K(H,G){G===void 0&&(G={}),w=Pt({},w,H);let ee=[],de=[];c.v7_fetcherPersist&&w.fetchers.forEach((be,We)=>{be.state==="idle"&&(ae.has(We)?de.push(We):ee.push(We))}),[...d].forEach(be=>be(w,{deletedFetchers:de,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),c.v7_fetcherPersist&&(ee.forEach(be=>w.fetchers.delete(be)),de.forEach(be=>pe(be)))}function Te(H,G,ee){var de,be;let{flushSync:We}=ee===void 0?{}:ee,Ie=w.actionData!=null&&w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&w.navigation.state==="loading"&&((de=H.state)==null?void 0:de._isRedirect)!==!0,Se;G.actionData?Object.keys(G.actionData).length>0?Se=G.actionData:Se=null:Ie?Se=w.actionData:Se=null;let qe=G.loaderData?MO(w.loaderData,G.loaderData,G.matches||[],G.errors):w.loaderData,ze=w.blockers;ze.size>0&&(ze=new Map(ze),ze.forEach((Ne,Et)=>ze.set(Et,uc)));let cn=A===!0||w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&((be=H.state)==null?void 0:be._isRedirect)!==!0;l&&(o=l,l=void 0),L||C===Ut.Pop||(C===Ut.Push?e.history.push(H,H.state):C===Ut.Replace&&e.history.replace(H,H.state));let fn;if(C===Ut.Pop){let Ne=T.get(w.location.pathname);Ne&&Ne.has(H.pathname)?fn={currentLocation:w.location,nextLocation:H}:T.has(H.pathname)&&(fn={currentLocation:H,nextLocation:w.location})}else if(P){let Ne=T.get(w.location.pathname);Ne?Ne.add(H.pathname):(Ne=new Set([H.pathname]),T.set(w.location.pathname,Ne)),fn={currentLocation:w.location,nextLocation:H}}K(Pt({},G,{actionData:Se,loaderData:qe,historyAction:C,location:H,initialized:!0,navigation:$v,revalidation:"idle",restoreScrollPosition:xt(H,G.matches||w.matches),preventScrollReset:cn,blockers:ze}),{viewTransitionOpts:fn,flushSync:We===!0}),C=Ut.Pop,A=!1,P=!1,L=!1,N=!1,U=[],W=[]}async function ye(H,G){if(typeof H=="number"){e.history.go(H);return}let ee=jb(w.location,w.matches,s,c.v7_prependBasename,H,c.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:de,submission:be,error:We}=OO(c.v7_normalizeFormMethod,!1,ee,G),Ie=w.location,Se=If(w.location,de,G&&G.state);Se=Pt({},Se,e.history.encodeLocation(Se));let qe=G&&G.replace!=null?G.replace:void 0,ze=Ut.Push;qe===!0?ze=Ut.Replace:qe===!1||be!=null&&ia(be.formMethod)&&be.formAction===w.location.pathname+w.location.search&&(ze=Ut.Replace);let cn=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,fn=(G&&G.unstable_flushSync)===!0,Ne=Gt({currentLocation:Ie,nextLocation:Se,historyAction:ze});if(Ne){dt(Ne,{state:"blocked",location:Se,proceed(){dt(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),ye(H,G)},reset(){let Et=new Map(w.blockers);Et.set(Ne,uc),K({blockers:Et})}});return}return await Ce(ze,Se,{submission:be,pendingError:We,preventScrollReset:cn,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:fn})}function Ae(){if(z(),K({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Ce(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Ce(C||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Ce(H,G,ee){I&&I.abort(),I=null,C=H,L=(ee&&ee.startUninterruptedRevalidation)===!0,Fe(w.location,w.matches),A=(ee&&ee.preventScrollReset)===!0,P=(ee&&ee.enableViewTransition)===!0;let de=l||o,be=ee&&ee.overrideNavigation,We=Os(de,G,s),Ie=(ee&&ee.flushSync)===!0;if(!We){let Ne=kr(404,{pathname:G.pathname}),{matches:Et,route:tn}=RO(de);ya(),Te(G,{matches:Et,loaderData:{},errors:{[tn.id]:Ne}},{flushSync:Ie});return}if(w.initialized&&!N&&bU(w.location,G)&&!(ee&&ee.submission&&ia(ee.submission.formMethod))){Te(G,{matches:We},{flushSync:Ie});return}I=new AbortController;let Se=rs(e.history,G,I.signal,ee&&ee.submission),qe;if(ee&&ee.pendingError)qe=[Zc(We).route.id,{type:Tt.error,error:ee.pendingError}];else if(ee&&ee.submission&&ia(ee.submission.formMethod)){let Ne=await Re(Se,G,ee.submission,We,{replace:ee.replace,flushSync:Ie});if(Ne.shortCircuited)return;qe=Ne.pendingActionResult,be=Lv(G,ee.submission),Ie=!1,Se=rs(e.history,Se.url,Se.signal)}let{shortCircuited:ze,loaderData:cn,errors:fn}=await Ge(Se,G,We,be,ee&&ee.submission,ee&&ee.fetcherSubmission,ee&&ee.replace,ee&&ee.initialHydration===!0,Ie,qe);ze||(I=null,Te(G,Pt({matches:We},IO(qe),{loaderData:cn,errors:fn})))}async function Re(H,G,ee,de,be){be===void 0&&(be={}),z();let We=SU(G,ee);K({navigation:We},{flushSync:be.flushSync===!0});let Ie,Se=Nb(de,G);if(!Se.route.action&&!Se.route.lazy)Ie={type:Tt.error,error:kr(405,{method:H.method,pathname:G.pathname,routeId:Se.route.id})};else if(Ie=(await De("action",H,[Se],de))[0],H.signal.aborted)return{shortCircuited:!0};if(el(Ie)){let qe;return be&&be.replace!=null?qe=be.replace:qe=PO(Ie.response.headers.get("Location"),new URL(H.url),s)===w.location.pathname+w.location.search,await xe(H,Ie,{submission:ee,replace:qe}),{shortCircuited:!0}}if(Zo(Ie))throw kr(400,{type:"defer-action"});if(Ir(Ie)){let qe=Zc(de,Se.route.id);return(be&&be.replace)!==!0&&(C=Ut.Push),{pendingActionResult:[qe.route.id,Ie]}}return{pendingActionResult:[Se.route.id,Ie]}}async function Ge(H,G,ee,de,be,We,Ie,Se,qe,ze){let cn=de||Lv(G,be),fn=be||We||jO(cn),Ne=l||o,[Et,tn]=CO(e.history,w,ee,fn,G,c.v7_partialHydration&&Se===!0,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ne,s,ze);if(ya(nt=>!(ee&&ee.some(Pn=>Pn.route.id===nt))||Et&&Et.some(Pn=>Pn.route.id===nt)),k=++F,Et.length===0&&tn.length===0){let nt=Ke();return Te(G,Pt({matches:ee,loaderData:{},errors:ze&&Ir(ze[1])?{[ze[0]]:ze[1].error}:null},IO(ze),nt?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(!L&&(!c.v7_partialHydration||!Se)){tn.forEach(Pn=>{let _r=w.fetchers.get(Pn.key),dn=cc(void 0,_r?_r.data:void 0);w.fetchers.set(Pn.key,dn)});let nt;ze&&!Ir(ze[1])?nt={[ze[0]]:ze[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?nt=null:nt=w.actionData),K(Pt({navigation:cn},nt!==void 0?{actionData:nt}:{},tn.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe})}tn.forEach(nt=>{$.has(nt.key)&&ge(nt.key),nt.controller&&$.set(nt.key,nt.controller)});let Ku=()=>tn.forEach(nt=>ge(nt.key));I&&I.signal.addEventListener("abort",Ku);let{loaderResults:Ui,fetcherResults:Ql}=await Je(w.matches,ee,Et,tn,H);if(H.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ku),tn.forEach(nt=>$.delete(nt.key));let Jl=$O([...Ui,...Ql]);if(Jl){if(Jl.idx>=Et.length){let nt=tn[Jl.idx-Et.length].key;te.add(nt)}return await xe(H,Jl.result,{replace:Ie}),{shortCircuited:!0}}let{loaderData:Zl,errors:ba}=AO(w,ee,Et,Ui,ze,tn,Ql,ue);ue.forEach((nt,Pn)=>{nt.subscribe(_r=>{(_r||nt.done)&&ue.delete(Pn)})}),c.v7_partialHydration&&Se&&w.errors&&Object.entries(w.errors).filter(nt=>{let[Pn]=nt;return!Et.some(_r=>_r.route.id===Pn)}).forEach(nt=>{let[Pn,_r]=nt;ba=Object.assign(ba||{},{[Pn]:_r})});let Xd=Ke(),Yd=Bt(k),Qd=Xd||Yd||tn.length>0;return Pt({loaderData:Zl,errors:ba},Qd?{fetchers:new Map(w.fetchers)}:{})}function _e(H,G,ee,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(H)&&ge(H);let be=(de&&de.unstable_flushSync)===!0,We=l||o,Ie=jb(w.location,w.matches,s,c.v7_prependBasename,ee,c.v7_relativeSplatPath,G,de==null?void 0:de.relative),Se=Os(We,Ie,s);if(!Se){he(H,G,kr(404,{pathname:Ie}),{flushSync:be});return}let{path:qe,submission:ze,error:cn}=OO(c.v7_normalizeFormMethod,!0,Ie,de);if(cn){he(H,G,cn,{flushSync:be});return}let fn=Nb(Se,qe);if(A=(de&&de.preventScrollReset)===!0,ze&&ia(ze.formMethod)){re(H,G,qe,fn,Se,be,ze);return}R.set(H,{routeId:G,path:qe}),oe(H,G,qe,fn,Se,be,ze)}async function re(H,G,ee,de,be,We,Ie){if(z(),R.delete(H),!de.route.action&&!de.route.lazy){let dn=kr(405,{method:Ie.formMethod,pathname:ee,routeId:G});he(H,G,dn,{flushSync:We});return}let Se=w.fetchers.get(H);Y(H,OU(Ie,Se),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal,Ie);$.set(H,qe);let cn=F,Ne=(await De("action",ze,[de],be))[0];if(ze.signal.aborted){$.get(H)===qe&&$.delete(H);return}if(c.v7_fetcherPersist&&ae.has(H)){if(el(Ne)||Ir(Ne)){Y(H,Ki(void 0));return}}else{if(el(Ne))if($.delete(H),k>cn){Y(H,Ki(void 0));return}else return te.add(H),Y(H,cc(Ie)),xe(ze,Ne,{fetcherSubmission:Ie});if(Ir(Ne)){he(H,G,Ne.error);return}}if(Zo(Ne))throw kr(400,{type:"defer-action"});let Et=w.navigation.location||w.location,tn=rs(e.history,Et,qe.signal),Ku=l||o,Ui=w.navigation.state!=="idle"?Os(Ku,w.navigation.location,s):w.matches;Ye(Ui,"Didn't find any matches after fetcher action");let Ql=++F;X.set(H,Ql);let Jl=cc(Ie,Ne.data);w.fetchers.set(H,Jl);let[Zl,ba]=CO(e.history,w,Ui,Ie,Et,!1,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ku,s,[de.route.id,Ne]);ba.filter(dn=>dn.key!==H).forEach(dn=>{let Xu=dn.key,Rw=w.fetchers.get(Xu),rj=cc(void 0,Rw?Rw.data:void 0);w.fetchers.set(Xu,rj),$.has(Xu)&&ge(Xu),dn.controller&&$.set(Xu,dn.controller)}),K({fetchers:new Map(w.fetchers)});let Xd=()=>ba.forEach(dn=>ge(dn.key));qe.signal.addEventListener("abort",Xd);let{loaderResults:Yd,fetcherResults:Qd}=await Je(w.matches,Ui,Zl,ba,tn);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",Xd),X.delete(H),$.delete(H),ba.forEach(dn=>$.delete(dn.key));let nt=$O([...Yd,...Qd]);if(nt){if(nt.idx>=Zl.length){let dn=ba[nt.idx-Zl.length].key;te.add(dn)}return xe(tn,nt.result)}let{loaderData:Pn,errors:_r}=AO(w,w.matches,Zl,Yd,void 0,ba,Qd,ue);if(w.fetchers.has(H)){let dn=Ki(Ne.data);w.fetchers.set(H,dn)}Bt(Ql),w.navigation.state==="loading"&&Ql>k?(Ye(C,"Expected pending action"),I&&I.abort(),Te(w.navigation.location,{matches:Ui,loaderData:Pn,errors:_r,fetchers:new Map(w.fetchers)})):(K({errors:_r,loaderData:MO(w.loaderData,Pn,Ui,_r),fetchers:new Map(w.fetchers)}),N=!1)}async function oe(H,G,ee,de,be,We,Ie){let Se=w.fetchers.get(H);Y(H,cc(Ie,Se?Se.data:void 0),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal);$.set(H,qe);let cn=F,Ne=(await De("loader",ze,[de],be))[0];if(Zo(Ne)&&(Ne=await BA(Ne,ze.signal,!0)||Ne),$.get(H)===qe&&$.delete(H),!ze.signal.aborted){if(ae.has(H)){Y(H,Ki(void 0));return}if(el(Ne))if(k>cn){Y(H,Ki(void 0));return}else{te.add(H),await xe(ze,Ne);return}if(Ir(Ne)){he(H,G,Ne.error);return}Ye(!Zo(Ne),"Unhandled fetcher deferred data"),Y(H,Ki(Ne.data))}}async function xe(H,G,ee){let{submission:de,fetcherSubmission:be,replace:We}=ee===void 0?{}:ee;G.response.headers.has("X-Remix-Revalidate")&&(N=!0);let Ie=G.response.headers.get("Location");Ye(Ie,"Expected a Location header on the redirect Response"),Ie=PO(Ie,new URL(H.url),s);let Se=If(w.location,Ie,{_isRedirect:!0});if(n){let Et=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Et=!0;else if(b_.test(Ie)){const tn=e.history.createURL(Ie);Et=tn.origin!==t.location.origin||Ru(tn.pathname,s)==null}if(Et){We?t.location.replace(Ie):t.location.assign(Ie);return}}I=null;let qe=We===!0?Ut.Replace:Ut.Push,{formMethod:ze,formAction:cn,formEncType:fn}=w.navigation;!de&&!be&&ze&&cn&&fn&&(de=jO(w.navigation));let Ne=de||be;if(oU.has(G.response.status)&&Ne&&ia(Ne.formMethod))await Ce(qe,Se,{submission:Pt({},Ne,{formAction:Ie}),preventScrollReset:A});else{let Et=Lv(Se,de);await Ce(qe,Se,{overrideNavigation:Et,fetcherSubmission:be,preventScrollReset:A})}}async function De(H,G,ee,de){try{let be=await pU(u,H,G,ee,de,i,a);return await Promise.all(be.map((We,Ie)=>{if(_U(We)){let Se=We.result;return{type:Tt.redirect,response:vU(Se,G,ee[Ie].route.id,de,s,c.v7_relativeSplatPath)}}return gU(We)}))}catch(be){return ee.map(()=>({type:Tt.error,error:be}))}}async function Je(H,G,ee,de,be){let[We,...Ie]=await Promise.all([ee.length?De("loader",be,ee,G):[],...de.map(Se=>{if(Se.matches&&Se.match&&Se.controller){let qe=rs(e.history,Se.path,Se.controller.signal);return De("loader",qe,[Se.match],Se.matches).then(ze=>ze[0])}else return Promise.resolve({type:Tt.error,error:kr(404,{pathname:Se.path})})})]);return await Promise.all([LO(H,ee,We,We.map(()=>be.signal),!1,w.loaderData),LO(H,de.map(Se=>Se.match),Ie,de.map(Se=>Se.controller?Se.controller.signal:null),!0)]),{loaderResults:We,fetcherResults:Ie}}function z(){N=!0,U.push(...ya()),R.forEach((H,G)=>{$.has(G)&&(W.push(G),ge(G))})}function Y(H,G,ee){ee===void 0&&(ee={}),w.fetchers.set(H,G),K({fetchers:new Map(w.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function he(H,G,ee,de){de===void 0&&(de={});let be=Zc(w.matches,G);pe(H),K({errors:{[be.route.id]:ee},fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function se(H){return c.v7_fetcherPersist&&(J.set(H,(J.get(H)||0)+1),ae.has(H)&&ae.delete(H)),w.fetchers.get(H)||lU}function pe(H){let G=w.fetchers.get(H);$.has(H)&&!(G&&G.state==="loading"&&X.has(H))&&ge(H),R.delete(H),X.delete(H),te.delete(H),ae.delete(H),w.fetchers.delete(H)}function He(H){if(c.v7_fetcherPersist){let G=(J.get(H)||0)-1;G<=0?(J.delete(H),ae.add(H)):J.set(H,G)}else pe(H);K({fetchers:new Map(w.fetchers)})}function ge(H){let G=$.get(H);Ye(G,"Expected fetch controller: "+H),G.abort(),$.delete(H)}function Pe(H){for(let G of H){let ee=se(G),de=Ki(ee.data);w.fetchers.set(G,de)}}function Ke(){let H=[],G=!1;for(let ee of te){let de=w.fetchers.get(ee);Ye(de,"Expected fetcher: "+ee),de.state==="loading"&&(te.delete(ee),H.push(ee),G=!0)}return Pe(H),G}function Bt(H){let G=[];for(let[ee,de]of X)if(de0}function $e(H,G){let ee=w.blockers.get(H)||uc;return ve.get(H)!==G&&ve.set(H,G),ee}function Ze(H){w.blockers.delete(H),ve.delete(H)}function dt(H,G){let ee=w.blockers.get(H)||uc;Ye(ee.state==="unblocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="proceeding"||ee.state==="blocked"&&G.state==="unblocked"||ee.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+ee.state+" -> "+G.state);let de=new Map(w.blockers);de.set(H,G),K({blockers:de})}function Gt(H){let{currentLocation:G,nextLocation:ee,historyAction:de}=H;if(ve.size===0)return;ve.size>1&&kl(!1,"A router only supports one blocker at a time");let be=Array.from(ve.entries()),[We,Ie]=be[be.length-1],Se=w.blockers.get(We);if(!(Se&&Se.state==="proceeding")&&Ie({currentLocation:G,nextLocation:ee,historyAction:de}))return We}function ya(H){let G=[];return ue.forEach((ee,de)=>{(!H||H(de))&&(ee.cancel(),G.push(de),ue.delete(de))}),G}function Bi(H,G,ee){if(h=H,g=G,p=ee||null,!b&&w.navigation===$v){b=!0;let de=xt(w.location,w.matches);de!=null&&K({restoreScrollPosition:de})}return()=>{h=null,g=null,p=null}}function Kd(H,G){return p&&p(H,G.map(de=>jB(de,w.loaderData)))||H.key}function Fe(H,G){if(h&&g){let ee=Kd(H,G);h[ee]=g()}}function xt(H,G){if(h){let ee=Kd(H,G),de=h[ee];if(typeof de=="number")return de}return null}function Za(H){i={},l=Lb(H,a,void 0,i)}return S={get basename(){return s},get future(){return c},get state(){return w},get routes(){return o},get window(){return t},initialize:q,subscribe:ie,enableScrollRestoration:Bi,navigate:ye,fetch:_e,revalidate:Ae,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:se,deleteFetcher:He,dispose:Z,getBlocker:$e,deleteBlocker:Ze,_internalFetchControllers:$,_internalActiveDeferreds:ue,_internalSetRoutes:Za},S}function cU(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function jb(e,t,n,r,a,i,o,l){let s,u;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){u=f;break}}else s=t,u=t[t.length-1];let c=g_(a||".",m_(s,i),Ru(e.pathname,n)||e.pathname,l==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&u&&u.route.index&&!__(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:vi([n,c.pathname])),Pl(c)}function OO(e,t,n,r){if(!r||!cU(r))return{path:n};if(r.formMethod&&!wU(r.formMethod))return{path:n,error:kr(405,{method:r.formMethod})};let a=()=>({path:n,error:kr(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),l=FA(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ia(o))return a();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[g,b]=p;return""+h+g+"="+b+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!ia(o))return a();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return a()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Db(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Db(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=TO(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=TO(s)}catch{return a()}let c={formMethod:o,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ia(c.formMethod))return{path:n,submission:c};let f=Ga(n);return t&&f.search&&__(f.search)&&s.append("index",""),f.search="?"+s,{path:Pl(f),submission:c}}function fU(e,t){let n=e;if(t){let r=e.findIndex(a=>a.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function CO(e,t,n,r,a,i,o,l,s,u,c,f,d,h,p,g){let b=g?Ir(g[1])?g[1].error:g[1].data:void 0,m=e.createURL(t.location),v=e.createURL(a),_=g&&Ir(g[1])?g[0]:void 0,x=_?fU(n,_):n,O=g?g[1].statusCode:void 0,S=o&&O&&O>=400,w=x.filter((A,I)=>{let{route:P}=A;if(P.lazy)return!0;if(P.loader==null)return!1;if(i)return typeof P.loader!="function"||P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(dU(t.loaderData,t.matches[I],A)||s.some(L=>L===A.route.id))return!0;let T=t.matches[I],E=A;return EO(A,Pt({currentUrl:m,currentParams:T.params,nextUrl:v,nextParams:E.params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l||m.pathname+m.search===v.pathname+v.search||m.search!==v.search||NA(T,E)}))}),C=[];return f.forEach((A,I)=>{if(i||!n.some(N=>N.route.id===A.routeId)||c.has(I))return;let P=Os(h,A.path,p);if(!P){C.push({key:I,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(I),E=Nb(P,A.path),L=!1;d.has(I)?L=!1:u.includes(I)?L=!0:T&&T.state!=="idle"&&T.data===void 0?L=l:L=EO(E,Pt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l})),L&&C.push({key:I,routeId:A.routeId,path:A.path,matches:P,match:E,controller:new AbortController})}),[w,C]}function dU(e,t,n){let r=!t||n.route.id!==t.route.id,a=e[n.route.id]===void 0;return r||a}function NA(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function EO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function kO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];Ye(a,"No route found in manifest");let i={};for(let o in r){let s=a[o]!==void 0&&o!=="hasErrorBoundary";kl(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!$B.has(o)&&(i[o]=r[o])}Object.assign(a,i),Object.assign(a,Pt({},t(a),{lazy:void 0}))}function hU(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function pU(e,t,n,r,a,i,o,l){let s=r.reduce((f,d)=>f.add(d.route.id),new Set),u=new Set,c=await e({matches:a.map(f=>{let d=s.has(f.route.id);return Pt({},f,{shouldLoad:d,resolve:p=>(u.add(f.route.id),d?mU(t,n,f,i,o,p,l):Promise.resolve({type:Tt.data,result:void 0}))})}),request:n,params:a[0].params,context:l});return a.forEach(f=>Ye(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,d)=>s.has(a[d].route.id))}async function mU(e,t,n,r,a,i,o){let l,s,u=c=>{let f,d=new Promise((g,b)=>f=b);s=()=>f(),t.signal.addEventListener("abort",s);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...g!==void 0?[g]:[]),p;return i?p=i(g=>h(g)):p=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([p,d])};try{let c=n.route[e];if(n.route.lazy)if(c){let f,[d]=await Promise.all([u(c).catch(h=>{f=h}),kO(n.route,a,r)]);if(f!==void 0)throw f;l=d}else if(await kO(n.route,a,r),c=n.route[e],c)l=await u(c);else if(e==="action"){let f=new URL(t.url),d=f.pathname+f.search;throw kr(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Tt.data,result:void 0};else if(c)l=await u(c);else{let f=new URL(t.url),d=f.pathname+f.search;throw kr(404,{pathname:d})}Ye(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Tt.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function gU(e){let{result:t,type:n,status:r}=e;if(zA(t)){let o;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?o=null:o=await t.json():o=await t.text()}catch(l){return{type:Tt.error,error:l}}return n===Tt.error?{type:Tt.error,error:new v_(t.status,t.statusText,o),statusCode:t.status,headers:t.headers}:{type:Tt.data,data:o,statusCode:t.status,headers:t.headers}}if(n===Tt.error)return{type:Tt.error,error:t,statusCode:y_(t)?t.status:r};if(xU(t)){var a,i;return{type:Tt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Tt.data,data:t,statusCode:r}}function vU(e,t,n,r,a,i){let o=e.headers.get("Location");if(Ye(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!b_.test(o)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);o=jb(new URL(t.url),l,a,!0,o,i),e.headers.set("Location",o)}return e}function PO(e,t,n){if(b_.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ru(a.pathname,n)!=null;if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}return e}function rs(e,t,n,r){let a=e.createURL(FA(t)).toString(),i={signal:n};if(r&&ia(r.formMethod)){let{formMethod:o,formEncType:l}=r;i.method=o.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Db(r.formData):i.body=r.formData}return new Request(a,i)}function Db(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function TO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function yU(e,t,n,r,a,i){let o={},l=null,s,u=!1,c={},f=r&&Ir(r[1])?r[1].error:void 0;return n.forEach((d,h)=>{let p=t[h].route.id;if(Ye(!el(d),"Cannot handle redirect results in processLoaderData"),Ir(d)){let g=d.error;if(f!==void 0&&(g=f,f=void 0),l=l||{},i)l[p]=g;else{let b=Zc(e,p);l[b.route.id]==null&&(l[b.route.id]=g)}o[p]=void 0,u||(u=!0,s=y_(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else Zo(d)?(a.set(p,d.deferredData),o[p]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers)):(o[p]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers))}),f!==void 0&&r&&(l={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:l,statusCode:s||200,loaderHeaders:c}}function AO(e,t,n,r,a,i,o,l){let{loaderData:s,errors:u}=yU(t,n,r,a,l,!1);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function RO(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function kr(e,t){let{pathname:n,routeId:r,method:a,type:i}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new v_(e||500,o,new Error(l),!0)}function $O(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(el(n))return{result:n,idx:t}}}function FA(e){let t=typeof e=="string"?Ga(e):e;return Pl(Pt({},t,{hash:""}))}function bU(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _U(e){return zA(e.result)&&iU.has(e.result.status)}function Zo(e){return e.type===Tt.deferred}function Ir(e){return e.type===Tt.error}function el(e){return(e&&e.type)===Tt.redirect}function xU(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function zA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wU(e){return aU.has(e.toLowerCase())}function ia(e){return nU.has(e.toLowerCase())}async function LO(e,t,n,r,a,i){for(let o=0;of.route.id===s.route.id),c=u!=null&&!NA(u,s)&&(i&&i[s.route.id])!==void 0;if(Zo(l)&&(a||c)){let f=r[o];Ye(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await BA(l,f,a).then(d=>{d&&(n[o]=d||n[o])})}}}async function BA(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Tt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Tt.error,error:a}}return{type:Tt.data,data:e.deferredData.data}}}function __(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nb(e,t){let n=typeof t=="string"?Ga(t).search:t.search;if(e[e.length-1].route.index&&__(n||""))return e[e.length-1];let r=LA(e);return r[r.length-1]}function jO(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:o}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Lv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SU(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function cc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function OU(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ki(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function CU(e,t){try{let n=e.sessionStorage.getItem(DA);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(a,new Set(i||[]))}}catch{}}function EU(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(DA,JSON.stringify(n))}catch(r){kl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.23.0 * * Copyright (c) Remix Software Inc. @@ -62,7 +62,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=g_(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vi([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,i,e])}const TU=y.createContext(null);function AU(e){let t=y.useContext(Li).outlet;return t&&y.createElement(TU.Provider,{value:e},t)}function MU(){let{matches:e}=y.useContext(Li),t=e[e.length-1];return t?t.params:{}}function HA(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Nl),{matches:a}=y.useContext(Li),{pathname:i}=Cd(),o=JSON.stringify(m_(a,r.v7_relativeSplatPath));return y.useMemo(()=>g_(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function IU(e,t,n,r){Od()||Ye(!1);let{navigator:a}=y.useContext(Nl),{matches:i}=y.useContext(Li),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Cd(),c;if(t){var f;let b=typeof t=="string"?Ga(t):t;s==="/"||(f=b.pathname)!=null&&f.startsWith(s)||Ye(!1),c=b}else c=u;let d=c.pathname||"/",h=d;if(s!=="/"){let b=s.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=Os(e,{pathname:h}),g=DU(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:vi([s,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:vi([s,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&g?y.createElement(Fg.Provider,{value:{location:Rf({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ut.Pop}},g):g}function RU(){let e=BU(),t=y_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:a},n):null,null)}const $U=y.createElement(RU,null);class LU extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Li.Provider,{value:this.props.routeContext},y.createElement(BA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function jU(e){let{routeContext:t,match:n,children:r}=e,a=y.useContext(Ng);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Li.Provider,{value:t},r)}function DU(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Ye(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let h,p=!1,g=null,b=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||$U,s&&(u<0&&d===0?(HU("route-fallback",!1),p=!0,b=null):u===d&&(p=!0,b=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),v=()=>{let _;return h?_=g:p?_=b:f.route.Component?_=y.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=c,y.createElement(jU,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:_})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?y.createElement(LU,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var WA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(WA||{}),Qp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qp||{});function NU(e){let t=y.useContext(Ng);return t||Ye(!1),t}function FU(e){let t=y.useContext(zA);return t||Ye(!1),t}function zU(e){let t=y.useContext(Li);return t||Ye(!1),t}function VA(e){let t=zU(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function BU(){var e;let t=y.useContext(BA),n=FU(Qp.UseRouteError),r=VA(Qp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function UU(){let{router:e}=NU(WA.UseNavigateStable),t=VA(Qp.UseNavigateStable),n=y.useRef(!1);return UA(()=>{n.current=!0}),y.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Rf({fromRouteId:t},i)))},[e,t])}const jO={};function HU(e,t,n){!t&&!jO[e]&&(jO[e]=!0)}function WU(e){return AU(e.context)}function VU(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ut.Pop,navigator:i,static:o=!1,future:l}=e;Od()&&Ye(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:o,future:Rf({v7_relativeSplatPath:!1},l)}),[s,l,i,o]);typeof r=="string"&&(r=Ga(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=Ru(c,s);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p},navigationType:a}},[s,c,f,d,h,p,a]);return g==null?null:y.createElement(Nl.Provider,{value:u},y.createElement(Fg.Provider,{children:n,value:g}))}new Promise(()=>{});function qU(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=g_(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vi([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,i,e])}const AU=y.createContext(null);function MU(e){let t=y.useContext(Li).outlet;return t&&y.createElement(AU.Provider,{value:e},t)}function IU(){let{matches:e}=y.useContext(Li),t=e[e.length-1];return t?t.params:{}}function VA(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Nl),{matches:a}=y.useContext(Li),{pathname:i}=Cd(),o=JSON.stringify(m_(a,r.v7_relativeSplatPath));return y.useMemo(()=>g_(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function RU(e,t,n,r){Od()||Ye(!1);let{navigator:a}=y.useContext(Nl),{matches:i}=y.useContext(Li),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Cd(),c;if(t){var f;let b=typeof t=="string"?Ga(t):t;s==="/"||(f=b.pathname)!=null&&f.startsWith(s)||Ye(!1),c=b}else c=u;let d=c.pathname||"/",h=d;if(s!=="/"){let b=s.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=Os(e,{pathname:h}),g=NU(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:vi([s,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:vi([s,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&g?y.createElement(Fg.Provider,{value:{location:Rf({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ut.Pop}},g):g}function $U(){let e=UU(),t=y_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:a},n):null,null)}const LU=y.createElement($U,null);class jU extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Li.Provider,{value:this.props.routeContext},y.createElement(HA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DU(e){let{routeContext:t,match:n,children:r}=e,a=y.useContext(Ng);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Li.Provider,{value:t},r)}function NU(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Ye(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let h,p=!1,g=null,b=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||LU,s&&(u<0&&d===0?(WU("route-fallback",!1),p=!0,b=null):u===d&&(p=!0,b=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),v=()=>{let _;return h?_=g:p?_=b:f.route.Component?_=y.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=c,y.createElement(DU,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:_})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?y.createElement(jU,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var qA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qA||{}),Qp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qp||{});function FU(e){let t=y.useContext(Ng);return t||Ye(!1),t}function zU(e){let t=y.useContext(UA);return t||Ye(!1),t}function BU(e){let t=y.useContext(Li);return t||Ye(!1),t}function GA(e){let t=BU(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function UU(){var e;let t=y.useContext(HA),n=zU(Qp.UseRouteError),r=GA(Qp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function HU(){let{router:e}=FU(qA.UseNavigateStable),t=GA(Qp.UseNavigateStable),n=y.useRef(!1);return WA(()=>{n.current=!0}),y.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Rf({fromRouteId:t},i)))},[e,t])}const DO={};function WU(e,t,n){!t&&!DO[e]&&(DO[e]=!0)}function VU(e){return MU(e.context)}function qU(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ut.Pop,navigator:i,static:o=!1,future:l}=e;Od()&&Ye(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:o,future:Rf({v7_relativeSplatPath:!1},l)}),[s,l,i,o]);typeof r=="string"&&(r=Ga(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=Ru(c,s);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p},navigationType:a}},[s,c,f,d,h,p,a]);return g==null?null:y.createElement(Nl.Provider,{value:u},y.createElement(Fg.Provider,{children:n,value:g}))}new Promise(()=>{});function GU(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. @@ -71,49 +71,49 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function KU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function XU(e,t){return e.button===0&&(!t||t==="_self")&&!KU(e)}const YU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],QU="6";try{window.__reactRouterVersion=QU}catch{}function JU(e,t){return sU({basename:t==null?void 0:t.basename,future:$f({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:AB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||ZU(),routes:e,mapRouteProperties:qU,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function ZU(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=$f({},t,{errors:eH(t.errors)})),t}function eH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new v_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let o=new i(a.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}const tH=y.createContext({isTransitioning:!1}),nH=y.createContext(new Map),rH="startTransition",DO=vj[rH],aH="flushSync",NO=PN[aH];function iH(e){DO?DO(e):e()}function fc(e){NO?NO(e):e()}class oH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function lH(e){let{fallbackElement:t,router:n,future:r}=e,[a,i]=y.useState(n.state),[o,l]=y.useState(),[s,u]=y.useState({isTransitioning:!1}),[c,f]=y.useState(),[d,h]=y.useState(),[p,g]=y.useState(),b=y.useRef(new Map),{v7_startTransition:m}=r||{},v=y.useCallback(w=>{m?iH(w):w()},[m]),_=y.useCallback((w,C)=>{let{deletedFetchers:A,unstable_flushSync:I,unstable_viewTransitionOpts:P}=C;A.forEach(E=>b.current.delete(E)),w.fetchers.forEach((E,L)=>{E.data!==void 0&&b.current.set(L,E.data)});let T=n.window==null||typeof n.window.document.startViewTransition!="function";if(!P||T){I?fc(()=>i(w)):v(()=>i(w));return}if(I){fc(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let E=n.window.document.startViewTransition(()=>{fc(()=>i(w))});E.finished.finally(()=>{fc(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),fc(()=>h(E));return}d?(c&&c.resolve(),d.skipTransition(),g({state:w,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(l(w),u({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[n.window,d,c,b,v]);y.useLayoutEffect(()=>n.subscribe(_),[n,_]),y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new oH)},[s]),y.useEffect(()=>{if(c&&o&&n.window){let w=o,C=c.promise,A=n.window.document.startViewTransition(async()=>{v(()=>i(w)),await C});A.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(A)}},[v,o,c,n.window]),y.useEffect(()=>{c&&o&&a.location.key===o.location.key&&c.resolve()},[c,d,a.location,o]),y.useEffect(()=>{!s.isTransitioning&&p&&(l(p.state),u({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),g(void 0))},[s.isTransitioning,p]),y.useEffect(()=>{},[]);let x=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,C,A)=>n.navigate(w,{state:C,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,C,A)=>n.navigate(w,{replace:!0,state:C,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),O=n.basename||"/",S=y.useMemo(()=>({router:n,navigator:x,static:!1,basename:O}),[n,x,O]);return y.createElement(y.Fragment,null,y.createElement(Ng.Provider,{value:S},y.createElement(zA.Provider,{value:a},y.createElement(nH.Provider,{value:b.current},y.createElement(tH.Provider,{value:s},y.createElement(VU,{basename:O,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?y.createElement(sH,{routes:n.routes,future:n.future,state:a}):t))))),null)}function sH(e){let{routes:t,future:n,state:r}=e;return IU(t,void 0,r,n)}const uH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,di=y.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=GU(t,YU),{basename:h}=y.useContext(Nl),p,g=!1;if(typeof u=="string"&&cH.test(u)&&(p=u,uH))try{let _=new URL(window.location.href),x=u.startsWith("//")?new URL(_.protocol+u):new URL(u),O=Ru(x.pathname,h);x.origin===_.origin&&O!=null?u=O+x.search+x.hash:g=!0}catch{}let b=EU(u,{relative:a}),m=fH(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:a,unstable_viewTransition:f});function v(_){r&&r(_),_.defaultPrevented||m(_)}return y.createElement("a",$f({},d,{href:p||b,onClick:g||i?r:v,ref:n,target:s}))});var FO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(FO||(FO={}));var zO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zO||(zO={}));function fH(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l}=t===void 0?{}:t,s=kU(),u=Cd(),c=HA(e,{relative:o});return y.useCallback(f=>{if(XU(f,n)){f.preventDefault();let d=r!==void 0?r:Pl(u)===Pl(c);s(e,{replace:d,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l})}},[u,s,c,r,a,n,e,i,o,l])}function dH(){const[e,t]=y.useState(!0),n=()=>{t(!e)},r=Cd(),a=j.jsx(xA,{children:j.jsx(wA,{children:j.jsx(EA,{variant:"plain","aria-label":"Global navigation",isSidebarOpen:e,onSidebarToggle:n,id:"vertical-nav-toggle",children:j.jsx(lB,{})})})}),i=j.jsx(SA,{isSidebarOpen:e,id:"vertical-sidebar",children:j.jsx(CA,{children:j.jsx(vu,{children:j.jsxs(jg,{children:[j.jsx(Ss,{itemId:"dashboard",isActive:r.pathname.startsWith("/dashboard"),children:j.jsx(di,{to:"dashboard",children:"Dashboard"})}),j.jsx(Ss,{itemId:"timeline",isActive:r.pathname.startsWith("/timeline"),children:j.jsx(di,{to:"timeline",children:"Timeline"})}),j.jsx(Ss,{itemId:"conversations",isActive:r.pathname.startsWith("/senders"),children:j.jsx(di,{to:"senders",children:"Senders"})}),j.jsx(Ss,{itemId:"messages",isActive:r.pathname.startsWith("/messages"),children:j.jsx(di,{to:"messages",children:"Messages"})})]})})})});return j.jsx(h_,{header:a,sidebar:i,children:j.jsx(WU,{})})}function qA(e,t){return function(){return e.apply(t,arguments)}}const{toString:hH}=Object.prototype,{getPrototypeOf:x_}=Object,zg=(e=>t=>{const n=hH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>zg(t)===e),Bg=e=>t=>typeof t===e,{isArray:$u}=Array,Lf=Bg("undefined");function pH(e){return e!==null&&!Lf(e)&&e.constructor!==null&&!Lf(e.constructor)&&Nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const GA=Ka("ArrayBuffer");function mH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&GA(e.buffer),t}const gH=Bg("string"),Nr=Bg("function"),KA=Bg("number"),Ug=e=>e!==null&&typeof e=="object",vH=e=>e===!0||e===!1,fp=e=>{if(zg(e)!=="object")return!1;const t=x_(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},yH=Ka("Date"),bH=Ka("File"),_H=Ka("Blob"),xH=Ka("FileList"),wH=e=>Ug(e)&&Nr(e.pipe),SH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nr(e.append)&&((t=zg(e))==="formdata"||t==="object"&&Nr(e.toString)&&e.toString()==="[object FormData]"))},OH=Ka("URLSearchParams"),CH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ed(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),$u(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const YA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,QA=e=>!Lf(e)&&e!==YA;function Fb(){const{caseless:e}=QA(this)&&this||{},t={},n=(r,a)=>{const i=e&&XA(t,a)||a;fp(t[i])&&fp(r)?t[i]=Fb(t[i],r):fp(r)?t[i]=Fb({},r):$u(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(Ed(t,(a,i)=>{n&&Nr(a)?e[i]=qA(a,n):e[i]=a},{allOwnKeys:r}),e),kH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),PH=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},TH=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&x_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},AH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},MH=e=>{if(!e)return null;if($u(e))return e;let t=e.length;if(!KA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},IH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x_(Uint8Array)),RH=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},$H=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},LH=Ka("HTMLFormElement"),jH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),BO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),DH=Ka("RegExp"),JA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ed(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},NH=e=>{JA(e,(t,n)=>{if(Nr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},FH=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return $u(e)?r(e):r(String(e).split(t)),n},zH=()=>{},BH=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jv="abcdefghijklmnopqrstuvwxyz",UO="0123456789",ZA={DIGIT:UO,ALPHA:jv,ALPHA_DIGIT:jv+jv.toUpperCase()+UO},UH=(e=16,t=ZA.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function HH(e){return!!(e&&Nr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WH=e=>{const t=new Array(10),n=(r,a)=>{if(Ug(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=$u(r)?[]:{};return Ed(r,(o,l)=>{const s=n(o,a+1);!Lf(s)&&(i[l]=s)}),t[a]=void 0,i}}return r};return n(e,0)},VH=Ka("AsyncFunction"),qH=e=>e&&(Ug(e)||Nr(e))&&Nr(e.then)&&Nr(e.catch),ne={isArray:$u,isArrayBuffer:GA,isBuffer:pH,isFormData:SH,isArrayBufferView:mH,isString:gH,isNumber:KA,isBoolean:vH,isObject:Ug,isPlainObject:fp,isUndefined:Lf,isDate:yH,isFile:bH,isBlob:_H,isRegExp:DH,isFunction:Nr,isStream:wH,isURLSearchParams:OH,isTypedArray:IH,isFileList:xH,forEach:Ed,merge:Fb,extend:EH,trim:CH,stripBOM:kH,inherits:PH,toFlatObject:TH,kindOf:zg,kindOfTest:Ka,endsWith:AH,toArray:MH,forEachEntry:RH,matchAll:$H,isHTMLForm:LH,hasOwnProperty:BO,hasOwnProp:BO,reduceDescriptors:JA,freezeMethods:NH,toObjectSet:FH,toCamelCase:jH,noop:zH,toFiniteNumber:BH,findKey:XA,global:YA,isContextDefined:QA,ALPHABET:ZA,generateString:UH,isSpecCompliantForm:HH,toJSONObject:WH,isAsyncFn:VH,isThenable:qH};function rt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}ne.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const eM=rt.prototype,tM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{tM[e]={value:e}});Object.defineProperties(rt,tM);Object.defineProperty(eM,"isAxiosError",{value:!0});rt.from=(e,t,n,r,a,i)=>{const o=Object.create(eM);return ne.toFlatObject(e,o,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),rt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const GH=null;function zb(e){return ne.isPlainObject(e)||ne.isArray(e)}function nM(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function HO(e,t,n){return e?e.concat(t).map(function(a,i){return a=nM(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function KH(e){return ne.isArray(e)&&!e.some(zb)}const XH=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Hg(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!ne.isUndefined(b[g])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ne.isDate(p))return p.toISOString();if(!s&&ne.isBlob(p))throw new rt("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(p)||ne.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,g,b){let m=p;if(p&&!b&&typeof p=="object"){if(ne.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ne.isArray(p)&&KH(p)||(ne.isFileList(p)||ne.endsWith(g,"[]"))&&(m=ne.toArray(p)))return g=nM(g),m.forEach(function(_,x){!(ne.isUndefined(_)||_===null)&&t.append(o===!0?HO([g],x,i):o===null?g:g+"[]",u(_))}),!1}return zb(p)?!0:(t.append(HO(b,g,i),u(p)),!1)}const f=[],d=Object.assign(XH,{defaultVisitor:c,convertValue:u,isVisitable:zb});function h(p,g){if(!ne.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ne.forEach(p,function(m,v){(!(ne.isUndefined(m)||m===null)&&a.call(t,m,ne.isString(v)?v.trim():v,g,d))===!0&&h(m,g?g.concat(v):[v])}),f.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function WO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w_(e,t){this._pairs=[],e&&Hg(e,this,t)}const rM=w_.prototype;rM.append=function(t,n){this._pairs.push([t,n])};rM.toString=function(t){const n=t?function(r){return t.call(this,r,WO)}:WO;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function YH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function aM(e,t,n){if(!t)return e;const r=n&&n.encode||YH,a=n&&n.serialize;let i;if(a?i=a(t,n):i=ne.isURLSearchParams(t)?t.toString():new w_(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class VO{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const iM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QH=typeof URLSearchParams<"u"?URLSearchParams:w_,JH=typeof FormData<"u"?FormData:null,ZH=typeof Blob<"u"?Blob:null,eW={isBrowser:!0,classes:{URLSearchParams:QH,FormData:JH,Blob:ZH},protocols:["http","https","file","blob","url","data"]},oM=typeof window<"u"&&typeof document<"u",tW=(e=>oM&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),nW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:oM,hasStandardBrowserEnv:tW,hasStandardBrowserWebWorkerEnv:nW},Symbol.toStringTag,{value:"Module"})),La={...rW,...eW};function aW(e,t){return Hg(e,new La.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return La.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function iW(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function oW(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&ne.isArray(a)?a.length:o,s?(ne.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!l):((!a[o]||!ne.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&ne.isArray(a[o])&&(a[o]=oW(a[o])),!l)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,a)=>{t(iW(r),a,n,0)}),n}return null}function lW(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const S_={transitional:iM,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=ne.isObject(t);if(i&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return a?JSON.stringify(lM(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return aW(t,this.formSerializer).toString();if((l=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Hg(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),lW(t)):t}],transformResponse:[function(t){const n=this.transitional||S_.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&ne.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?rt.from(l,rt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:La.classes.FormData,Blob:La.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{S_.headers[e]={}});const O_=S_,sW=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),uW=e=>{const t={};let n,r,a;return e&&e.split(` -`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&sW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qO=Symbol("internals");function dc(e){return e&&String(e).trim().toLowerCase()}function dp(e){return e===!1||e==null?e:ne.isArray(e)?e.map(dp):String(e)}function cW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const fW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dv(e,t,n,r,a){if(ne.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function dW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hW(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class Wg{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const c=dc(s);if(!c)throw new Error("header name must be a non-empty string");const f=ne.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=dp(l))}const o=(l,s)=>ne.forEach(l,(u,c)=>i(u,c,s));return ne.isPlainObject(t)||t instanceof this.constructor?o(t,n):ne.isString(t)&&(t=t.trim())&&!fW(t)?o(uW(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return cW(a);if(ne.isFunction(n))return n.call(this,a,r);if(ne.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=dc(o),o){const l=ne.findKey(r,o);l&&(!n||Dv(r,r[l],l,n))&&(delete r[l],a=!0)}}return ne.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Dv(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return ne.forEach(this,(a,i)=>{const o=ne.findKey(r,i);if(o){n[o]=dp(a),delete n[i];return}const l=t?dW(i):String(i).trim();l!==i&&delete n[i],n[l]=dp(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[qO]=this[qO]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=dc(o);r[l]||(hW(a,o),r[l]=!0)}return ne.isArray(t)?t.forEach(i):i(t),this}}Wg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Wg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(Wg);const yi=Wg;function Nv(e,t){const n=this||O_,r=t||n,a=yi.from(r.headers);let i=r.data;return ne.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function sM(e){return!!(e&&e.__CANCEL__)}function kd(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(kd,rt,{__CANCEL__:!0});function pW(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const mW=La.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&o.push("path="+r),ne.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function gW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function uM(e,t){return e&&!gW(t)?vW(e,t):t}const yW=La.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const l=ne.isString(o)?a(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function bW(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _W(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,l=i-n,s=r(l),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&u?(o-i)/s:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const xW=typeof XMLHttpRequest<"u",wW=xW&&function(e){return new Promise(function(n,r){let a=e.data;const i=yi.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(ne.isFormData(a)){if(La.hasStandardBrowserEnv||La.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[g,...b]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=uM(e.baseURL,e.url);f.open(e.method.toUpperCase(),aM(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const g=yi.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};pW(function(_){n(_),u()},function(_){r(_),u()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new rt("Request aborted",rt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new rt("Network Error",rt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||iM;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new rt(b,m.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,f)),f=null},La.hasStandardBrowserEnv&&(l&&ne.isFunction(l)&&(l=l(e)),l||l!==!1&&yW(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&mW.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}a===void 0&&i.setContentType(null),"setRequestHeader"in f&&ne.forEach(i.toJSON(),function(b,m){f.setRequestHeader(m,b)}),ne.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",GO(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",GO(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{f&&(r(!g||g.type?new kd(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=bW(d);if(p&&La.protocols.indexOf(p)===-1){r(new rt("Unsupported protocol "+p+":",rt.ERR_BAD_REQUEST,e));return}f.send(a||null)})},Bb={http:GH,xhr:wW};ne.forEach(Bb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const KO=e=>`- ${e}`,SW=e=>ne.isFunction(e)||e===null||e===!1,cM={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : -`+i.map(KO).join(` -`):" "+KO(i[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Bb};function Fv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kd(null,e)}function XO(e){return Fv(e),e.headers=yi.from(e.headers),e.data=Nv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cM.getAdapter(e.adapter||O_.adapter)(e).then(function(r){return Fv(e),r.data=Nv.call(e,e.transformResponse,r),r.headers=yi.from(r.headers),r},function(r){return sM(r)||(Fv(e),r&&r.response&&(r.response.data=Nv.call(e,e.transformResponse,r.response),r.response.headers=yi.from(r.response.headers))),Promise.reject(r)})}const YO=e=>e instanceof yi?{...e}:e;function yu(e,t){t=t||{};const n={};function r(u,c,f){return ne.isPlainObject(u)&&ne.isPlainObject(c)?ne.merge.call({caseless:f},u,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function a(u,c,f){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!ne.isUndefined(c))return r(void 0,c)}function o(u,c){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,c)=>a(YO(u),YO(c),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,d=f(e[c],t[c],c);ne.isUndefined(d)&&f!==l||(n[c]=d)}),n}const fM="1.6.8",C_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const QO={};C_.transitional=function(t,n,r){function a(i,o){return"[Axios v"+fM+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new rt(a(o," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!QO[o]&&(QO[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};function OW(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new rt("option "+i+" must be "+s,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+i,rt.ERR_BAD_OPTION)}}const Ub={assertOptions:OW,validators:C_},Vi=Ub.validators;class Jp{constructor(t){this.defaults=t,this.interceptors={request:new VO,response:new VO}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Ub.assertOptions(r,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),a!=null&&(ne.isFunction(a)?n.paramsSerializer={serialize:a}:Ub.assertOptions(a,{encode:Vi.function,serialize:Vi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ne.merge(i.common,i[n.method]);i&&ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=yi.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!s){const p=[XO.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new kd(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new E_(function(a){t=a}),cancel:t}}}const CW=E_;function EW(e){return function(n){return e.apply(null,n)}}function kW(e){return ne.isObject(e)&&e.isAxiosError===!0}const Hb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hb).forEach(([e,t])=>{Hb[t]=e});const PW=Hb;function dM(e){const t=new hp(e),n=qA(hp.prototype.request,t);return ne.extend(n,hp.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return dM(yu(e,a))},n}const zt=dM(O_);zt.Axios=hp;zt.CanceledError=kd;zt.CancelToken=CW;zt.isCancel=sM;zt.VERSION=fM;zt.toFormData=Hg;zt.AxiosError=rt;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=EW;zt.isAxiosError=kW;zt.mergeConfig=yu;zt.AxiosHeaders=yi;zt.formToJSON=e=>lM(ne.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=cM.getAdapter;zt.HttpStatusCode=PW;zt.default=zt;var Pd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bu=typeof window>"u"||"Deno"in globalThis;function Pr(){}function TW(e,t){return typeof e=="function"?e(t):e}function Wb(e){return typeof e=="number"&&e>=0&&e!==1/0}function hM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function JO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==k_(o,t.options))return!1}else if(!Df(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function ZO(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(jf(t.options.mutationKey)!==jf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function k_(e,t){return((t==null?void 0:t.queryKeyHashFn)||jf)(e)}function jf(e){return JSON.stringify(e,(t,n)=>qb(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Df(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Df(e[n],t[n])):!1}function pM(e,t){if(e===t)return e;const n=eC(e)&&eC(t);if(n||qb(e)&&qb(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{};let s=0;for(let u=0;u{setTimeout(t,e)})}function Gb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?pM(e,t):t}function MW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function IW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var P_=Symbol(),il,eo,Ks,DP,RW=(DP=class extends Pd{constructor(){super();Me(this,il,void 0);Me(this,eo,void 0);Me(this,Ks,void 0);Oe(this,Ks,t=>{if(!bu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,eo)||this.setEventListener(V(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,eo))==null||t.call(this),Oe(this,eo,void 0))}setEventListener(t){var n;Oe(this,Ks,t),(n=V(this,eo))==null||n.call(this),Oe(this,eo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,il)!==t&&(Oe(this,il,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,il)=="boolean"?V(this,il):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},il=new WeakMap,eo=new WeakMap,Ks=new WeakMap,DP),T_=new RW,Xs,to,Ys,NP,$W=(NP=class extends Pd{constructor(){super();Me(this,Xs,!0);Me(this,to,void 0);Me(this,Ys,void 0);Oe(this,Ys,t=>{if(!bu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,to)||this.setEventListener(V(this,Ys))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,to))==null||t.call(this),Oe(this,to,void 0))}setEventListener(t){var n;Oe(this,Ys,t),(n=V(this,to))==null||n.call(this),Oe(this,to,t(this.setOnline.bind(this)))}setOnline(t){V(this,Xs)!==t&&(Oe(this,Xs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Xs)}},Xs=new WeakMap,to=new WeakMap,Ys=new WeakMap,NP),Zp=new $W;function LW(e){return Math.min(1e3*2**e,3e4)}function mM(e){return(e??"online")==="online"?Zp.isOnline():!0}var gM=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zv(e){return e instanceof gM}function vM(e){let t=!1,n=0,r=!1,a,i,o;const l=new Promise((m,v)=>{i=m,o=v}),s=m=>{var v;r||(p(new gM(m)),(v=e.abort)==null||v.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>T_.isFocused()&&(e.networkMode==="always"||Zp.isOnline())&&e.canRun(),d=()=>mM(e.networkMode)&&e.canRun(),h=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),a==null||a(),i(m))},p=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),a==null||a(),o(m))},g=()=>new Promise(m=>{var v;a=_=>{(r||f())&&m(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;a=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;try{m=e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var w;if(r)return;const _=e.retry??(bu?0:3),x=e.retryDelay??LW,O=typeof x=="function"?x(n,v):x,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!S){p(v);return}n++,(w=e.onFail)==null||w.call(e,n,v),AW(O).then(()=>f()?void 0:g()).then(()=>{t?p(v):b()})})};return{promise:l,cancel:s,continue:()=>(a==null||a(),l),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?b():g().then(b),l)}}function jW(){let e=[],t=0,n=d=>{d()},r=d=>{d()},a=d=>setTimeout(d,0);const i=d=>{a=d},o=d=>{let h;t++;try{h=d()}finally{t--,t||u()}return h},l=d=>{t?e.push(d):a(()=>{n(d)})},s=d=>(...h)=>{l(()=>{d(...h)})},u=()=>{const d=e;e=[],d.length&&a(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:o,batchCalls:s,schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:i}}var mn=jW(),ol,FP,yM=(FP=class{constructor(){Me(this,ol,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wb(this.gcTime)&&Oe(this,ol,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bu?1/0:5*60*1e3))}clearGcTimeout(){V(this,ol)&&(clearTimeout(V(this,ol)),Oe(this,ol,void 0))}},ol=new WeakMap,FP),Qs,Js,Cr,An,rd,ll,ta,ni,zP,DW=(zP=class extends yM{constructor(t){super();Me(this,ta);Me(this,Qs,void 0);Me(this,Js,void 0);Me(this,Cr,void 0);Me(this,An,void 0);Me(this,rd,void 0);Me(this,ll,void 0);Oe(this,ll,!1),Oe(this,rd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Oe(this,Cr,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Oe(this,Qs,t.state||NW(this.options)),this.state=V(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...V(this,rd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,Cr).remove(this)}setData(t,n){const r=Gb(this.state.data,t,this.options);return et(this,ta,ni).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,ta,ni).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=V(this,An))==null?void 0:r.promise;return(a=V(this,An))==null||a.cancel(t),n?n.then(Pr).catch(Pr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Qs))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!hM(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,Cr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,An)&&(V(this,ll)?V(this,An).cancel({revert:!0}):V(this,An).cancelRetry()),this.scheduleGc()),V(this,Cr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,ta,ni).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,An))return V(this,An).continueRetry(),V(this,An).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,a={queryKey:this.queryKey,meta:this.meta},i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Oe(this,ll,!0),r.signal)})};i(a);const o=()=>!this.options.queryFn||this.options.queryFn===P_?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(Oe(this,ll,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)),l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(u=this.options.behavior)==null||u.onFetch(l,this),Oe(this,Js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&et(this,ta,ni).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const s=d=>{var h,p,g,b;zv(d)&&d.silent||et(this,ta,ni).call(this,{type:"error",error:d}),zv(d)||((p=(h=V(this,Cr).config).onError)==null||p.call(h,d,this),(b=(g=V(this,Cr).config).onSettled)==null||b.call(g,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Oe(this,An,vM({fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var h,p,g,b;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(p=(h=V(this,Cr).config).onSuccess)==null||p.call(h,d,this),(b=(g=V(this,Cr).config).onSettled)==null||b.call(g,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,h)=>{et(this,ta,ni).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{et(this,ta,ni).call(this,{type:"pause"})},onContinue:()=>{et(this,ta,ni).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),V(this,An).start()}},Qs=new WeakMap,Js=new WeakMap,Cr=new WeakMap,An=new WeakMap,rd=new WeakMap,ll=new WeakMap,ta=new WeakSet,ni=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...bM(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return zv(a)&&a.revert&&V(this,Js)?{...V(this,Js),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,Cr).notify({query:this,type:"updated",action:t})})},zP);function bM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:mM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function NW(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ka,BP,FW=(BP=class extends Pd{constructor(t={}){super();Me(this,ka,void 0);this.config=t,Oe(this,ka,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??k_(a,n);let o=this.get(i);return o||(o=new DW({cache:this,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){V(this,ka).has(t.queryHash)||(V(this,ka).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ka).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ka).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ka).get(t)}getAll(){return[...V(this,ka).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>JO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>JO(t,r)):n}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ka=new WeakMap,BP),Pa,Mn,sl,Ta,Xi,UP,zW=(UP=class extends yM{constructor(t){super();Me(this,Ta);Me(this,Pa,void 0);Me(this,Mn,void 0);Me(this,sl,void 0);this.mutationId=t.mutationId,Oe(this,Mn,t.mutationCache),Oe(this,Pa,[]),this.state=t.state||BW(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Pa).includes(t)||(V(this,Pa).push(t),this.clearGcTimeout(),V(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Oe(this,Pa,V(this,Pa).filter(n=>n!==t)),this.scheduleGc(),V(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Pa).length||(this.state.status==="pending"?this.scheduleGc():V(this,Mn).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,l,s,u,c,f,d,h,p,g,b,m,v,_,x,O,S,w;Oe(this,sl,vM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{et(this,Ta,Xi).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{et(this,Ta,Xi).call(this,{type:"pause"})},onContinue:()=>{et(this,Ta,Xi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Mn).canRun(this)}));const n=this.state.status==="pending",r=!V(this,sl).canStart();try{if(!n){et(this,Ta,Xi).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(a=V(this,Mn).config).onMutate)==null?void 0:i.call(a,t,this));const A=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));A!==this.state.context&&et(this,Ta,Xi).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const C=await V(this,sl).start();return await((u=(s=V(this,Mn).config).onSuccess)==null?void 0:u.call(s,C,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,C,t,this.state.context)),await((h=(d=V(this,Mn).config).onSettled)==null?void 0:h.call(d,C,null,this.state.variables,this.state.context,this)),await((g=(p=this.options).onSettled)==null?void 0:g.call(p,C,null,t,this.state.context)),et(this,Ta,Xi).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=(b=V(this,Mn).config).onError)==null?void 0:m.call(b,C,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,C,t,this.state.context)),await((O=(x=V(this,Mn).config).onSettled)==null?void 0:O.call(x,void 0,C,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,C,t,this.state.context)),C}finally{et(this,Ta,Xi).call(this,{type:"error",error:C})}}finally{V(this,Mn).runNext(this)}}},Pa=new WeakMap,Mn=new WeakMap,sl=new WeakMap,Ta=new WeakSet,Xi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mn.batch(()=>{V(this,Pa).forEach(r=>{r.onMutationUpdate(t)}),V(this,Mn).notify({mutation:this,type:"updated",action:t})})},UP);function BW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ir,ad,HP,UW=(HP=class extends Pd{constructor(t={}){super();Me(this,ir,void 0);Me(this,ad,void 0);this.config=t,Oe(this,ir,new Map),Oe(this,ad,Date.now())}build(t,n,r){const a=new zW({mutationCache:this,mutationId:++Jd(this,ad)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){const n=xh(t),r=V(this,ir).get(n)??[];r.push(t),V(this,ir).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=xh(t);if(V(this,ir).has(n)){const a=(r=V(this,ir).get(n))==null?void 0:r.filter(i=>i!==t);a&&(a.length===0?V(this,ir).delete(n):V(this,ir).set(n,a))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,ir).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ZO(n,r))}findAll(t={}){return this.getAll().filter(n=>ZO(t,n))}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pr))))}},ir=new WeakMap,ad=new WeakMap,HP);function xh(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function HW(e){return{onFetch:(t,n)=>{const r=async()=>{var p,g,b,m,v;const a=t.options,i=(b=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],l=((v=t.state.data)==null?void 0:v.pageParams)||[],s={pages:[],pageParams:[]};let u=!1;const c=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn&&t.options.queryFn!==P_?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),d=async(_,x,O)=>{if(u)return Promise.reject();if(x==null&&_.pages.length)return Promise.resolve(_);const S={queryKey:t.queryKey,pageParam:x,direction:O?"backward":"forward",meta:t.options.meta};c(S);const w=await f(S),{maxPages:C}=t.options,A=O?IW:MW;return{pages:A(_.pages,w,C),pageParams:A(_.pageParams,x,C)}};let h;if(i&&o.length){const _=i==="backward",x=_?WW:nC,O={pages:o,pageParams:l},S=x(a,O);h=await d(O,S,_)}else{h=await d(s,l[0]??a.initialPageParam);const _=e??o.length;for(let x=1;x<_;x++){const O=nC(a,h);h=await d(h,O)}}return h};t.options.persister?t.fetchFn=()=>{var a,i;return(i=(a=t.options).persister)==null?void 0:i.call(a,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function nC(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function WW(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Dt,no,ro,Zs,eu,ao,tu,nu,WP,VW=(WP=class{constructor(e={}){Me(this,Dt,void 0);Me(this,no,void 0);Me(this,ro,void 0);Me(this,Zs,void 0);Me(this,eu,void 0);Me(this,ao,void 0);Me(this,tu,void 0);Me(this,nu,void 0);Oe(this,Dt,e.queryCache||new FW),Oe(this,no,e.mutationCache||new UW),Oe(this,ro,e.defaultOptions||{}),Oe(this,Zs,new Map),Oe(this,eu,new Map),Oe(this,ao,0)}mount(){Jd(this,ao)._++,V(this,ao)===1&&(Oe(this,tu,T_.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onFocus())})),Oe(this,nu,Zp.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onOnline())})))}unmount(){var e,t;Jd(this,ao)._--,V(this,ao)===0&&((e=V(this,tu))==null||e.call(this),Oe(this,tu,void 0),(t=V(this,nu))==null||t.call(this),Oe(this,nu,void 0))}isFetching(e){return V(this,Dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,no).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,Dt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,Dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=V(this,Dt).get(r.queryHash),i=a==null?void 0:a.state.data,o=TW(t,i);if(o!==void 0)return V(this,Dt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return mn.batch(()=>V(this,Dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,Dt);mn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,Dt),r={type:"active",...e};return mn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=mn.batch(()=>V(this,Dt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Pr).catch(Pr)}invalidateQueries(e={},t={}){return mn.batch(()=>{if(V(this,Dt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=mn.batch(()=>V(this,Dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,Dt).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pr).catch(Pr)}fetchInfiniteQuery(e){return e.behavior=HW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pr).catch(Pr)}resumePausedMutations(){return Zp.isOnline()?V(this,no).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Dt)}getMutationCache(){return V(this,no)}getDefaultOptions(){return V(this,ro)}setDefaultOptions(e){Oe(this,ro,e)}setQueryDefaults(e,t){V(this,Zs).set(jf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,Zs).values()];let n={};return t.forEach(r=>{Df(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,eu).set(jf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,eu).values()];let n={};return t.forEach(r=>{Df(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ro).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=k_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===P_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ro).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,Dt).clear(),V(this,no).clear()}},Dt=new WeakMap,no=new WeakMap,ro=new WeakMap,Zs=new WeakMap,eu=new WeakMap,ao=new WeakMap,tu=new WeakMap,nu=new WeakMap,WP),Hn,pt,id,In,ul,ru,Aa,od,au,iu,cl,fl,io,ou,dl,Tc,ld,Kb,sd,Xb,ud,Yb,cd,Qb,fd,Jb,dd,Zb,hd,e1,pg,_M,VP,qW=(VP=class extends Pd{constructor(t,n){super();Me(this,dl);Me(this,ld);Me(this,sd);Me(this,ud);Me(this,cd);Me(this,fd);Me(this,dd);Me(this,hd);Me(this,pg);Me(this,Hn,void 0);Me(this,pt,void 0);Me(this,id,void 0);Me(this,In,void 0);Me(this,ul,void 0);Me(this,ru,void 0);Me(this,Aa,void 0);Me(this,od,void 0);Me(this,au,void 0);Me(this,iu,void 0);Me(this,cl,void 0);Me(this,fl,void 0);Me(this,io,void 0);Me(this,ou,new Set);this.options=n,Oe(this,Hn,t),Oe(this,Aa,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,pt).addObserver(this),rC(V(this,pt),this.options)?et(this,dl,Tc).call(this):this.updateResult(),et(this,cd,Qb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return t1(V(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return t1(V(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,et(this,fd,Jb).call(this),et(this,dd,Zb).call(this),V(this,pt).removeObserver(this)}setOptions(t,n){const r=this.options,a=V(this,pt);if(this.options=V(this,Hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");et(this,hd,e1).call(this),V(this,pt).setOptions(this.options),r._defaulted&&!Vb(this.options,r)&&V(this,Hn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,pt),observer:this});const i=this.hasListeners();i&&aC(V(this,pt),a,this.options,r)&&et(this,dl,Tc).call(this),this.updateResult(n),i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&et(this,ld,Kb).call(this);const o=et(this,sd,Xb).call(this);i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||o!==V(this,io))&&et(this,ud,Yb).call(this,o)}getOptimisticResult(t){const n=V(this,Hn).getQueryCache().build(V(this,Hn),t),r=this.createResult(n,t);return KW(this,r)&&(Oe(this,In,r),Oe(this,ru,this.options),Oe(this,ul,V(this,pt).state)),r}getCurrentResult(){return V(this,In)}trackResult(t,n){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),n==null||n(a),t[a])})}),r}trackProp(t){V(this,ou).add(t)}getCurrentQuery(){return V(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,Hn).defaultQueryOptions(t),r=V(this,Hn).getQueryCache().build(V(this,Hn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return et(this,dl,Tc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,In)))}createResult(t,n){var w;const r=V(this,pt),a=this.options,i=V(this,In),o=V(this,ul),l=V(this,ru),u=t!==r?t.state:V(this,id),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const C=this.hasListeners(),A=!C&&rC(t,n),I=C&&aC(t,r,n,a);(A||I)&&(f={...f,...bM(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:g,status:b}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(o==null?void 0:o.data)&&n.select===V(this,od))h=V(this,au);else try{Oe(this,od,n.select),h=n.select(f.data),h=Gb(i==null?void 0:i.data,h,n),Oe(this,au,h),Oe(this,Aa,null)}catch(C){Oe(this,Aa,C)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let C;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=i.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((w=V(this,iu))==null?void 0:w.state.data,V(this,iu)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),Oe(this,Aa,null)}catch(A){Oe(this,Aa,A)}C!==void 0&&(b="success",h=Gb(i==null?void 0:i.data,C,n),d=!0)}V(this,Aa)&&(p=V(this,Aa),h=V(this,au),g=Date.now(),b="error");const m=f.fetchStatus==="fetching",v=b==="pending",_=b==="error",x=v&&m,O=h!==void 0;return{status:b,fetchStatus:f.fetchStatus,isPending:v,isSuccess:b==="success",isError:_,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:_&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:_&&O,isStale:A_(t,n),refetch:this.refetch}}updateResult(t){const n=V(this,In),r=this.createResult(V(this,pt),this.options);if(Oe(this,ul,V(this,pt).state),Oe(this,ru,this.options),V(this,ul).data!==void 0&&Oe(this,iu,V(this,pt)),Vb(r,n))return;Oe(this,In,r);const a={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!V(this,ou).size)return!0;const s=new Set(l??V(this,ou));return this.options.throwOnError&&s.add("error"),Object.keys(V(this,In)).some(u=>{const c=u;return V(this,In)[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),et(this,pg,_M).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,cd,Qb).call(this)}},Hn=new WeakMap,pt=new WeakMap,id=new WeakMap,In=new WeakMap,ul=new WeakMap,ru=new WeakMap,Aa=new WeakMap,od=new WeakMap,au=new WeakMap,iu=new WeakMap,cl=new WeakMap,fl=new WeakMap,io=new WeakMap,ou=new WeakMap,dl=new WeakSet,Tc=function(t){et(this,hd,e1).call(this);let n=V(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pr)),n},ld=new WeakSet,Kb=function(){if(et(this,fd,Jb).call(this),bu||V(this,In).isStale||!Wb(this.options.staleTime))return;const n=hM(V(this,In).dataUpdatedAt,this.options.staleTime)+1;Oe(this,cl,setTimeout(()=>{V(this,In).isStale||this.updateResult()},n))},sd=new WeakSet,Xb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,pt)):this.options.refetchInterval)??!1},ud=new WeakSet,Yb=function(t){et(this,dd,Zb).call(this),Oe(this,io,t),!(bu||this.options.enabled===!1||!Wb(V(this,io))||V(this,io)===0)&&Oe(this,fl,setInterval(()=>{(this.options.refetchIntervalInBackground||T_.isFocused())&&et(this,dl,Tc).call(this)},V(this,io)))},cd=new WeakSet,Qb=function(){et(this,ld,Kb).call(this),et(this,ud,Yb).call(this,et(this,sd,Xb).call(this))},fd=new WeakSet,Jb=function(){V(this,cl)&&(clearTimeout(V(this,cl)),Oe(this,cl,void 0))},dd=new WeakSet,Zb=function(){V(this,fl)&&(clearInterval(V(this,fl)),Oe(this,fl,void 0))},hd=new WeakSet,e1=function(){const t=V(this,Hn).getQueryCache().build(V(this,Hn),this.options);if(t===V(this,pt))return;const n=V(this,pt);Oe(this,pt,t),Oe(this,id,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pg=new WeakSet,_M=function(t){mn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,In))}),V(this,Hn).getQueryCache().notify({query:V(this,pt),type:"observerResultsUpdated"})})},VP);function GW(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rC(e,t){return GW(e,t)||e.state.data!==void 0&&t1(e,t,t.refetchOnMount)}function t1(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&A_(e,t)}return!1}function aC(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&A_(e,n)}function A_(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function KW(e,t){return!Vb(e.getCurrentResult(),t)}var xM=y.createContext(void 0),XW=e=>{const t=y.useContext(xM);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},YW=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),j.jsx(xM.Provider,{value:e,children:t})),wM=y.createContext(!1),QW=()=>y.useContext(wM);wM.Provider;function JW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ZW=y.createContext(JW()),eV=()=>y.useContext(ZW);function tV(e,t){return typeof e=="function"?e(...t):!!e}var nV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},rV=e=>{y.useEffect(()=>{e.clearReset()},[e])},aV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&tV(n,[e.error,r]),iV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},oV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,lV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function sV(e,t,n){const r=XW(n),a=QW(),i=eV(),o=r.defaultQueryOptions(e);o._optimisticResults=a?"isRestoring":"optimistic",iV(o),nV(o,i),rV(i);const[l]=y.useState(()=>new t(r,o)),s=l.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(u=>{const c=a?()=>{}:l.subscribe(mn.batchCalls(u));return l.updateResult(),c},[l,a]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),y.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),oV(o,s))throw lV(o,l,i);if(aV({result:s,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw s.error;return o.notifyOnChangeProps?s:l.trackResult(s)}function uV(e,t){return sV(e,qW,t)}const cV=async()=>{const e=await zt.get("/api/virtual-assistant/v1/senders");if(e.status===200)return e.data.senders;throw new Error("Invalid request")},fV=()=>uV({queryKey:["senders"],queryFn:cV}),dV=e=>{var{items:t,isDisabled:n,rowData:r,extraData:a,actionsToggle:i,popperProps:o={position:"end",direction:"down"},innerRef:l,firstActionItemRef:s,isOnOpenChangeDisabled:u=!1}=e,c=Q(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,d]=y.useState(!1),h=()=>{d(!f)},p=(g,b)=>{b&&(g.preventDefault(),b(g,a&&a.rowIndex,r,a))};return y.createElement(y.Fragment,null,t.filter(g=>g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,isOutsideDropdown:x}=g,O=Q(g,["title","itemKey","onClick","isOutsideDropdown"]);return typeof m=="string"?y.createElement(gt,Object.assign({onClick:S=>p(S,_)},O,{isDisabled:n,key:v||`outside_dropdown_${b}`,"data-key":v||`outside_dropdown_${b}`}),m):y.cloneElement(m,Object.assign({onClick:_,isDisabled:n},O))}),y.createElement(u_,Object.assign({isOpen:f,onOpenChange:u?void 0:g=>d(g),toggle:g=>i?i({onToggle:h,isOpen:f,isDisabled:n,toggleRef:g}):y.createElement(mu,{"aria-label":"Kebab toggle",ref:g,onClick:h,isExpanded:f,isDisabled:n,variant:"plain"},y.createElement(hB,null))},r&&r.actionProps,{ref:l},c,{popperProps:o}),y.createElement(rA,null,t.filter(g=>!g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,tooltipProps:x,isSeparator:O,shouldCloseOnClick:S=!0}=g,w=Q(g,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(O)return y.createElement(QT,{key:v||b,"data-key":v||b});const C=y.createElement(c_,Object.assign({onClick:A=>{p(A,_),S&&h()}},w,{key:v||b,"data-key":v||b,ref:b===0?s:void 0}),m);return x!=null&&x.content?y.createElement($i,Object.assign({key:v||b},x),C):C}))))},SM=y.forwardRef((e,t)=>y.createElement(dV,Object.assign({},e,{innerRef:t})));SM.displayName="ActionsColumn";const Ee={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",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",expanded:"pf-m-expanded",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",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",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-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"},OM=e=>{var{className:t="",children:n=null,isOpen:r,onToggle:a}=e,i=Q(e,["className","children","isOpen","onToggle"]);return y.createElement(y.Fragment,null,r!==void 0&&y.createElement(gt,Object.assign({className:D(t,r&&Ee.modifiers.expanded)},i,{variant:"plain","aria-label":i["aria-label"]||"Details",onClick:a,"aria-expanded":r}),y.createElement("div",{className:D(Ee.tableToggleIcon)},y.createElement(f_,null))),n)};OM.displayName="CollapseColumn";const CM=e=>{var{className:t,onClick:n,"aria-label":r,id:a}=e,i=Q(e,["className","onClick","aria-label","id"]);return y.createElement(gt,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":r||"Draggable row draggable button",onClick:n},i),y.createElement(Sz,{"aria-hidden":!0}))};CM.displayName="DraggableCell";const hV={button:"pf-v5-c-button",inlineEdit:"pf-v5-c-inline-edit",inlineEditAction:"pf-v5-c-inline-edit__action",inlineEditEditableText:"pf-v5-c-inline-edit__editable-text",inlineEditGroup:"pf-v5-c-inline-edit__group",inlineEditInput:"pf-v5-c-inline-edit__input",inlineEditLabel:"pf-v5-c-inline-edit__label",inlineEditValue:"pf-v5-c-inline-edit__value",modifiers:{iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"}};var iC;(function(e){e.div="div",e.nav="nav"})(iC||(iC={}));var oC;(function(e){e.wrap="wrap",e.nowrap="nowrap",e.truncate="truncate",e.breakWord="breakWord",e.fitContent="fitContent"})(oC||(oC={}));const Vg=e=>{var{children:t=null,className:n="",variant:r="span",wrapModifier:a=null,tooltip:i="",tooltipProps:o={},onMouseEnter:l=()=>{},focused:s=!1,tooltipHasDefaultBehavior:u=!1}=e,c=Q(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=r,d=y.createRef(),[h,p]=y.useState(i),g=v=>{v.target.offsetWidth{v.offsetWidth{u||(s?b(d.current):p(""))},[s,u]),h!==""?y.createElement($i,Object.assign({triggerRef:d,content:h},!u&&{isVisible:!0},o),m):m};Vg.displayName="TableText";const n1=({children:e,info:t,className:n,variant:r="tooltip",popoverProps:a,tooltipProps:i,ariaLabel:o})=>y.createElement("div",{className:D(Ee.tableColumnHelp,n)},typeof e=="string"?y.createElement(Vg,null,e):e,y.createElement("span",{className:D(Ee.tableColumnHelpAction)},r==="tooltip"?y.createElement($i,Object.assign({content:t},i),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null))):y.createElement(l_,Object.assign({bodyContent:t},a),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null)))));n1.displayName="HeaderCellInfoWrapper";const pV={button:"pf-v5-c-button",modifiers:{grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableCheck:"pf-v5-c-table__check",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr"},Vn={dirRtl:"pf-v5-m-dir-rtl",dropdown:"pf-v5-c-dropdown",modifiers:{treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableCheck:"pf-v5-c-table__check",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",tableTreeViewDetailsToggle:"pf-v5-c-table__tree-view-details-toggle",tableTreeViewIcon:"pf-v5-c-table__tree-view-icon",tableTreeViewMain:"pf-v5-c-table__tree-view-main",tableTreeViewText:"pf-v5-c-table__tree-view-text",tableTreeViewTitleCell:"pf-v5-c-table__tree-view-title-cell",tableTreeViewTitleHeaderCell:"pf-v5-c-table__tree-view-title-header-cell"};var r1;(function(e){e.radio="radio",e.checkbox="checkbox"})(r1||(r1={}));const EM=e=>{var{children:t=null,className:n,onSelect:r=null,selectVariant:a,tooltip:i,tooltipProps:o}=e,l=Q(e,["children","className","onSelect","selectVariant","tooltip","tooltipProps"]);const s=y.createRef(),u=y.createElement(y.Fragment,null,y.createElement("label",null,y.createElement("input",Object.assign({},l,{ref:s,type:a,onChange:r}))),t);return i?y.createElement($i,Object.assign({triggerRef:s,content:i},o),u):u};EM.displayName="SelectColumn";const kM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i,tooltip:o})=>{const{extraParams:{onSelect:l,selectVariant:s,allRowsSelected:u,isHeaderSelectDisabled:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.showSelect&&!r.fullWidth)return{component:"td",isVisible:!0};const d=t!==void 0?t:-1;function h(b){const m=t===void 0?b.currentTarget.checked:r&&!r.selected;l&&l(b,m,d,r,f)}const p=Object.assign(Object.assign(Object.assign({},d!==-1?{checked:r&&!!r.selected,"aria-label":`Select row ${t}`}:{checked:u,"aria-label":"Select all rows"}),r&&(r.disableCheckbox||r.disableSelection)&&{disabled:!0,className:ti.checkInput}),!r&&c&&{disabled:!0});let g="check-all";return d!==-1&&s===r1.checkbox?g=`checkrow${t}`:d!==-1&&(g="radioGroup"),{className:D(Ee.tableCheck),component:d!==-1?"td":"th",isVisible:!r||!r.fullWidth,children:y.createElement(EM,Object.assign({},p,{selectVariant:s,onSelect:h,name:g,tooltip:o}),e)}};var tl;(function(e){e.asc="asc",e.desc="desc"})(tl||(tl={}));const PM=e=>{var{children:t=null,className:n="",isSortedBy:r=!1,onSort:a=null,sortDirection:i="",type:o="button",tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u}=e,c=Q(e,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior"]);let f;const[d,h]=y.useState(!1);return r?f=i===tl.asc?SB:_B:f=rB,y.createElement("button",Object.assign({},c,{type:o,className:D(n,Ee.tableButton),onClick:p=>a&&a(p),onFocus:()=>h(!0),onBlur:()=>h(!1)}),y.createElement("div",{className:D(n,Ee.tableButtonContent)},y.createElement(Vg,{tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u,focused:d},t),y.createElement("span",{className:D(Ee.tableSortIndicator)},y.createElement(f,null))))};PM.displayName="SortColumn";const mV=e=>()=>TM(y.createElement(n_,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:Ee.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e==null?void 0:e.onSort}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0}),TM=(e,{columnIndex:t,column:n,property:r,className:a,ariaLabel:i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s})=>{const{extraParams:{sortBy:u,onSort:c}}=n,f={columnIndex:t,column:n,property:r},d=u&&t===u.index;function h(p){let g;d?g=u.direction===tl.asc?tl.desc:tl.asc:g=u.defaultDirection?u.defaultDirection:tl.asc,c&&c(p,t,g,f)}return{className:D(Ee.tableSort,d&&Ee.modifiers.selected,a),"aria-sort":d?`${u.direction}ending`:"none",children:y.createElement(PM,{isSortedBy:d,sortDirection:d?u.direction:"",onSort:h,"aria-label":i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s},e)}},lC=(e,t,n,r)=>typeof e=="function"?e(n,r):t,gV=(e,t,n)=>(r,{rowData:a,column:i,rowIndex:o,columnIndex:l,column:{extraParams:{actionsToggle:s,actionsPopperProps:u}},property:c})=>{const f={rowIndex:o,columnIndex:l,column:i,property:c},d=lC(t,e,a,f),h=lC(n,a&&a.disableActions,a,f),p=d&&d.length>0?{children:y.createElement(SM,{items:d,isDisabled:h,rowData:a,extraData:f,actionsToggle:s,popperProps:u},r)}:{};return Object.assign({className:D(Ee.tableAction),style:{paddingRight:0},isVisible:!0},p)},vV=e=>e.toUpperCase().replace("-","").replace("_",""),sC=e=>e.replace(/([-_][a-z])/gi,vV);function yV(e){return e[0].toUpperCase()+e.substring(1)}const AM=e=>()=>({className:D(Ee.modifiers[typeof e=="number"?`width_${e}`:`width${yV(e)}`])}),MM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onCollapse:o,rowLabeledBy:l="simple-node",expandId:s="expand-toggle",allRowsExpanded:u,collapseAllAriaLabel:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i},d=t!==void 0?t:-1,h=Object.assign({},d!==-1?{isOpen:r==null?void 0:r.isOpen,"aria-labelledby":`${l}${d} ${s}${d}`}:{isOpen:u,"aria-label":c||"Expand all rows"});function p(g){const b=r?!r.isOpen:!u;o&&o(g,t,b,r,f)}return{className:((r==null?void 0:r.isOpen)!==void 0||d===-1)&&D(Ee.tableToggle),isVisible:!(r!=null&&r.fullWidth),children:y.createElement(OM,Object.assign({"aria-labelledby":`${l}${d} ${s}${d}`,onToggle:p,id:s+d},h),e)}},bV=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{if(!e)return null;const{title:o,props:l}=e,{extraParams:{onExpand:s,expandId:u="expand-toggle"}}=a,c={rowIndex:t,columnIndex:n,column:a,property:i};function f(d){s&&s(d,t,n,l.isOpen,r,c)}return{className:D(Ee.tableCompoundExpansionToggle,l.isOpen&&Ee.modifiers.expanded),children:l.isOpen!==void 0&&y.createElement("button",{type:"button",className:D(Ee.tableButton),onClick:f,"aria-expanded":l.isOpen,"aria-controls":l.ariaControls,id:`${u}-${t}-${n}`},y.createElement(Vg,null,o))}},_V=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"],IM=_V.filter(e=>Ee.modifiers[e]).reduce((e,t)=>{const n=t.replace("_2xl","2Xl");return e[n]=Ee.modifiers[t],e},{}),RM=(...e)=>()=>({className:D(...e)}),xV=({tooltip:e,tooltipProps:t,popover:n,popoverProps:r,className:a,ariaLabel:i})=>l=>({className:Ee.modifiers.help,children:e?y.createElement(n1,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:i,className:a},l):y.createElement(n1,{variant:"popover",info:n,popoverProps:r,ariaLabel:i,className:a},l)}),$M=e=>{var{className:t="",onFavorite:n,isFavorited:r,rowIndex:a}=e,i=Q(e,["className","onFavorite","isFavorited","rowIndex"]);const o=a===void 0?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return y.createElement(gt,Object.assign({variant:"plain",className:t,type:"button","aria-label":r?"Starred":"Not starred",onClick:n},o,i),y.createElement(n_,{"aria-hidden":!0}))};$M.displayName="FavoritesCell";const wV=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onFavorite:o}}=a,l={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.fullWidth)return{component:"td",isVisible:!0};function s(c){o&&o(c,r&&!r.favorited,t,r,l)}const u=r.favoritesProps||{};return{className:D(Ee.tableFavorite,r&&r.favorited&&Ee.modifiers.favorited),isVisible:!r||!r.fullWidth,children:y.createElement($M,Object.assign({rowIndex:t,onFavorite:s,isFavorited:r&&r.favorited},u))}},SV=(e,t,n)=>(r,{rowIndex:a,rowData:i})=>{const{isExpanded:o,isDetailsExpanded:l,"aria-level":s,"aria-setsize":u,toggleAriaLabel:c,checkAriaLabel:f,showDetailsAriaLabel:d,isChecked:h,checkboxId:p,icon:g}=i.props,b=r.title||r,m=y.createElement("div",{className:D(Vn.tableTreeViewText),key:"tree-view-text"},g&&y.createElement("span",{className:D(Vn.tableTreeViewIcon),key:"tree-view-text-icon"},g),y.createElement("span",{className:Ee.tableText,key:"table-text"},b)),v=(_,x)=>{t(x,_,a,b,i)};return{component:"th",className:Vn.tableTreeViewTitleCell,children:s!==void 0?y.createElement("div",{className:D(Vn.tableTreeViewMain)},u>0&&y.createElement("span",{className:D(Vn.tableToggle),key:"table-toggle"},y.createElement(gt,{variant:"plain",onClick:_=>e&&e(_,a,b,i),className:D(o&&Ee.modifiers.expanded),"aria-expanded":o,"aria-label":c||`${o?"Collapse":"Expand"} row ${a}`},y.createElement("div",{className:D(Vn.tableToggleIcon)},y.createElement(f_,{"aria-hidden":"true"})))),!!t&&y.createElement("span",{className:D(Vn.tableCheck),key:"table-check"},y.createElement("label",{htmlFor:p||`checkbox_${a}`},y.createElement(sr,{id:p||`checkbox_${a}`,"aria-label":f||`Row ${a} checkbox`,isChecked:h,onChange:(_,x)=>v(x,_)}))),m,!!n&&y.createElement("span",{className:D(Vn.tableTreeViewDetailsToggle),key:"view-details-toggle"},y.createElement(gt,{variant:"plain","aria-expanded":l,"aria-label":d||"Show row details",onClick:_=>n&&n(_,a,b,i)},y.createElement("span",{className:`${Ee.table}__details-toggle-icon`},y.createElement(cB,{"aria-hidden":!0}))))):m}};var a1;(function(e){e.none="",e.grid="grid",e.gridMd="grid-md",e.gridLg="grid-lg",e.gridXl="grid-xl",e.grid2xl="grid-2xl"})(a1||(a1={}));var uC;(function(e){e.compact="compact"})(uC||(uC={}));const LM=y.createContext({registerSelectableRow:()=>{}}),OV=e=>{var t,n,{children:r,className:a,variant:i,borders:o=!0,isStickyHeader:l=!1,gridBreakPoint:s=a1.gridMd,"aria-label":u,role:c="grid",innerRef:f,ouiaId:d,ouiaSafe:h=!0,isTreeTable:p=!1,isNested:g=!1,isStriped:b=!1,isExpandable:m=!1,hasNoInset:v=!1,nestedHeaderColumnSpans:_,selectableRowCaptionText:x}=e,O=Q(e,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const S=y.useRef(null),w=f||S,[C,A]=y.useState(!1),[I,P]=y.useState();y.useEffect(()=>{if(document.addEventListener("keydown",U),w&&w.current&&w.current.classList.contains("pf-m-tree-view")){const $=w.current.querySelector("tbody");$&&DF(Array.from($.querySelectorAll("button, a, input")))}return function(){document.removeEventListener("keydown",U)}},[w,w.current]),y.useEffect(()=>{P(x?y.createElement("caption",null,x,y.createElement("div",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")):y.createElement("caption",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."))},[x]);const T=Ii("Table",d,h),E=(t=pV.modifiers)===null||t===void 0?void 0:t[sC(s||"").replace(/-?2xl/,"_2xl")],L=`treeView${s.charAt(0).toUpperCase()+s.slice(1)}`,N=(n=Vn.modifiers)===null||n===void 0?void 0:n[sC(L||"").replace(/-?2xl/,"_2xl")],U=$=>{if(g||!(w&&w.current&&w.current.classList.contains(Vn.modifiers.treeView))||w&&w.current!==$.target.closest(`.${Ee.table}:not(.pf-m-nested)`))return;const F=document.activeElement,k=$.key,X=Array.from(w.current.querySelectorAll("tbody tr")).filter(R=>!R.classList.contains("pf-m-disabled")&&!R.hidden);(k==="Space"||k==="Enter")&&(F.click(),$.preventDefault()),CT($,X,R=>R===F.closest("tr"),R=>R.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0],["button","input","a"],void 0,!1,!0,!1)},W=()=>{!C&&A(!0)};return y.createElement(LM.Provider,{value:{registerSelectableRow:W}},y.createElement("table",Object.assign({"aria-label":u,role:c,className:D(a,Ee.table,p?N:E,Ee.modifiers[i],!o&&Ee.modifiers.noBorderRows,l&&Ee.modifiers.stickyHeader,p&&Vn.modifiers.treeView,b&&Ee.modifiers.striped,m&&Ee.modifiers.expandable,v&&Vn.modifiers.noInset,g&&"pf-m-nested"),ref:w},p&&{role:"treegrid"},T,O),C&&I,r))},M_=y.forwardRef((e,t)=>y.createElement(OV,Object.assign({},e,{innerRef:t})));M_.displayName="Table";const CV=e=>{var{children:t,className:n,isExpanded:r,isEditable:a,isHidden:i=!1,isClickable:o=!1,isRowSelected:l=!1,isStriped:s=!1,isBorderRow:u=!1,innerRef:c,ouiaId:f,ouiaSafe:d=!0,resetOffset:h=!1,onRowClick:p,isSelectable:g,"aria-label":b}=e,m=Q(e,["children","className","isExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const v=Ii("TableRow",f,d),[_,x]=y.useState("");let O=null;p&&(O=A=>{(A.key==="Enter"||A.key===" ")&&(p(A),A.preventDefault())});const S=i||r!==void 0&&!r,{registerSelectableRow:w}=y.useContext(LM);y.useEffect(()=>{g&&!S?(x(`${l?"Row selected":""}`),w()):x(void 0)},[l,g,w,S]);const C=b||_;return y.createElement(y.Fragment,null,y.createElement("tr",Object.assign({className:D(Ee.tableTr,n,r!==void 0&&Ee.tableExpandableRow,r&&Ee.modifiers.expanded,a&&hV.modifiers.inlineEditable,o&&Ee.modifiers.clickable,l&&Ee.modifiers.selected,s&&Ee.modifiers.striped,u&&Ee.modifiers.borderRow,h&&Ee.modifiers.firstCellOffsetReset),hidden:S},o&&{tabIndex:0},{"aria-label":C,ref:c},p&&{onClick:p,onKeyDown:O},v,m),t))},Nf=y.forwardRef((e,t)=>y.createElement(CV,Object.assign({},e,{innerRef:t})));Nf.displayName="Tr";const EV=e=>{var{children:t,className:n,noWrap:r=!1,innerRef:a,hasNestedHeader:i}=e,o=Q(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return y.createElement("thead",Object.assign({className:D(Ee.tableThead,n,r&&Ee.modifiers.nowrap,i&&Ee.modifiers.nestedColumnHeader),ref:a},o),t)},I_=y.forwardRef((e,t)=>y.createElement(EV,Object.assign({},e,{innerRef:t})));I_.displayName="Thead";const kV=e=>{var{children:t,className:n,isExpanded:r,innerRef:a,isEvenStriped:i=!1,isOddStriped:o=!1}=e,l=Q(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return y.createElement("tbody",Object.assign({role:"rowgroup",className:D(Ee.tableTbody,n,r&&Ee.modifiers.expanded,o&&Ee.modifiers.striped,i&&Ee.modifiers.stripedEven),ref:a},l),t)},R_=y.forwardRef((e,t)=>y.createElement(kV,Object.assign({},e,{innerRef:t})));R_.displayName="Tbody";const zs={modifiers:{borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",right:"pf-m-right",inlineEnd:"pf-m-inline-end",left:"pf-m-left",inlineStart:"pf-m-inline-start"},scrollInnerWrapper:"pf-v5-c-scroll-inner-wrapper",scrollOuterWrapper:"pf-v5-c-scroll-outer-wrapper",table:"pf-v5-c-table",tableStickyCell:"pf-v5-c-table__sticky-cell"};function PV(){this.__data__=[],this.size=0}var TV=PV;function AV(e,t){return e===t||e!==e&&t!==t}var Fl=AV,MV=Fl;function IV(e,t){for(var n=e.length;n--;)if(MV(e[n][0],t))return n;return-1}var qg=IV,RV=qg,$V=Array.prototype,LV=$V.splice;function jV(e){var t=this.__data__,n=RV(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():LV.call(t,n,1),--this.size,!0}var DV=jV,NV=qg;function FV(e){var t=this.__data__,n=NV(t,e);return n<0?void 0:t[n][1]}var zV=FV,BV=qg;function UV(e){return BV(this.__data__,e)>-1}var HV=UV,WV=qg;function VV(e,t){var n=this.__data__,r=WV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var qV=VV,GV=TV,KV=DV,XV=zV,YV=HV,QV=qV;function Lu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=uX}var F_=cX,fX=$_,dX=F_;function hX(e){return e!=null&&dX(e.length)&&!fX(e)}var Bl=hX,pX=Bl,mX=ji;function gX(e){return mX(e)&&pX(e)}var vX=gX,tm={exports:{}};function yX(){return!1}var bX=yX;tm.exports;(function(e,t){var n=ga,r=bX,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(tm,tm.exports);var Jg=tm.exports,_X=jo,xX=N_,wX=ji,SX="[object Object]",OX=Function.prototype,CX=Object.prototype,VM=OX.toString,EX=CX.hasOwnProperty,kX=VM.call(Object);function PX(e){if(!wX(e)||_X(e)!=SX)return!1;var t=xX(e);if(t===null)return!0;var n=EX.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&VM.call(n)==kX}var qM=PX;const Zt=at(qM);var TX=jo,AX=F_,MX=ji,IX="[object Arguments]",RX="[object Array]",$X="[object Boolean]",LX="[object Date]",jX="[object Error]",DX="[object Function]",NX="[object Map]",FX="[object Number]",zX="[object Object]",BX="[object RegExp]",UX="[object Set]",HX="[object String]",WX="[object WeakMap]",VX="[object ArrayBuffer]",qX="[object DataView]",GX="[object Float32Array]",KX="[object Float64Array]",XX="[object Int8Array]",YX="[object Int16Array]",QX="[object Int32Array]",JX="[object Uint8Array]",ZX="[object Uint8ClampedArray]",eY="[object Uint16Array]",tY="[object Uint32Array]",St={};St[GX]=St[KX]=St[XX]=St[YX]=St[QX]=St[JX]=St[ZX]=St[eY]=St[tY]=!0;St[IX]=St[RX]=St[VX]=St[$X]=St[qX]=St[LX]=St[jX]=St[DX]=St[NX]=St[FX]=St[zX]=St[BX]=St[UX]=St[HX]=St[WX]=!1;function nY(e){return MX(e)&&AX(e.length)&&!!St[TX(e)]}var rY=nY;function aY(e){return function(t){return e(t)}}var Zg=aY,nm={exports:{}};nm.exports;(function(e,t){var n=jM,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(nm,nm.exports);var Ad=nm.exports,iY=rY,oY=Zg,_C=Ad,xC=_C&&_C.isTypedArray,lY=xC?oY(xC):iY,e0=lY;function sY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var GM=sY,uY=Yg,cY=Fl,fY=Object.prototype,dY=fY.hasOwnProperty;function hY(e,t,n){var r=e[t];(!(dY.call(e,t)&&cY(r,n))||n===void 0&&!(t in e))&&uY(e,t,n)}var KM=hY,pY=KM,mY=Yg;function gY(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=EQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var AQ=TQ,MQ=CQ,IQ=AQ,RQ=IQ(MQ),ZM=RQ,$Q=Md,LQ=JM,jQ=ZM;function DQ(e,t){return jQ(LQ(e,t,$Q),e+"")}var e8=DQ,NQ=Fl,FQ=Bl,zQ=t0,BQ=vr;function UQ(e,t,n){if(!BQ(n))return!1;var r=typeof t;return(r=="number"?FQ(n)&&zQ(t,n.length):r=="string"&&t in n)?NQ(n[t],e):!1}var z_=UQ,HQ=e8,WQ=z_;function VQ(e){return HQ(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&WQ(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r{if(i==="children")return r&&a?y.cloneElement(r,{children:a}):Object.assign(Object.assign({},a),r);if(i==="className")return D(r,a)}):Uv({},t)}const r8={name:"--pf-v5-c-table__sticky-cell--MinWidth",value:"12.5rem",var:"var(--pf-v5-c-table__sticky-cell--MinWidth)"},a8={name:"--pf-v5-c-table__sticky-cell--Left",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Left)"},i8={name:"--pf-v5-c-table__sticky-cell--Right",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Right)"},YQ=e=>{var{children:t,className:n,component:r="th",dataLabel:a,scope:i="col",textCenter:o=!1,sort:l=null,modifier:s,select:u=null,expand:c=null,tooltip:f="",tooltipProps:d,onMouseEnter:h=()=>{},width:p,visibility:g,innerRef:b,info:m,isStickyColumn:v=!1,hasRightBorder:_=!1,hasLeftBorder:x=!1,stickyMinWidth:O="120px",stickyLeftOffset:S,stickyRightOffset:w,isSubheader:C=!1,screenReaderText:A,"aria-label":I}=e,P=Q(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);!t&&!A&&!I&&console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=ye=>{ye.target.offsetWidthIM[ye]))():null;let R=($==null?void 0:$.children)||(F==null?void 0:F.children)||(k==null?void 0:k.children)||t,J=null;m&&(J=xV(m)(R),R=J.children);const ae=n8($,F,k,X,te,J),{children:ue=null,isVisible:ve=null,className:ke="",component:q=r}=ae,Z=Q(ae,["children","isVisible","className","component"]);y.useEffect(()=>{N(U.current.offsetWidthE(!1),"data-label":a,onMouseEnter:f!==null?W:h,scope:r==="th"?i:null,ref:U,"aria-label":I,className:D(Ee.tableTh,n,o&&Ee.modifiers.center,C&&Ee.tableSubhead,v&&zs.tableStickyCell,_&&zs.modifiers.borderRight,x&&zs.modifiers.borderLeft,s&&Ee.modifiers[s],ke)},Z,P,v&&{style:Object.assign({[r8.name]:O||void 0,[a8.name]:S||0,[i8.name]:w||0},P.style)}),R||A&&y.createElement("span",{className:"pf-v5-screen-reader"},A));return f!==null&&(f===""?typeof R=="string":!0)&&!($||F)&&T?y.createElement(y.Fragment,null,ie,y.createElement($i,Object.assign({triggerRef:U,content:f||f===""&&t,isVisible:!0},d))):ie},Cs=y.forwardRef((e,t)=>y.createElement(YQ,Object.assign({},e,{innerRef:t})));Cs.displayName="Th";const QQ=(e,{rowData:t})=>{const{id:n}=t;return{className:"",children:y.createElement(CM,{id:n})}},JQ=e=>{var{children:t,className:n,isActionCell:r=!1,component:a="td",dataLabel:i,textCenter:o=!1,modifier:l,select:s=null,actions:u=null,expand:c=null,treeRow:f=null,compoundExpand:d=null,noPadding:h,width:p,visibility:g,innerRef:b,favorites:m=null,draggableRow:v=null,tooltip:_="",onMouseEnter:x=()=>{},isStickyColumn:O=!1,hasRightBorder:S=!1,hasLeftBorder:w=!1,stickyMinWidth:C="120px",stickyLeftOffset:A,stickyRightOffset:I}=e,P=Q(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=Re=>{Re.target.offsetWidthIM[Re]))():null,ve=f!==null?SV(f.onCollapse,f.onCheckChange,f.onToggleRowDetails)({title:t},{rowIndex:f.rowIndex,rowData:{props:f.props}}):null,ke=n8($,te,R,J,ae,ue,F,ve,k),{isVisible:q=null,children:Z=null,className:ie="",component:K=a}=ke,Te=Q(ke,["isVisible","children","className","component"]),ye=n&&n.includes(Vn.tableTreeViewTitleCell)||ie&&ie.includes(Vn.tableTreeViewTitleCell);y.useEffect(()=>{N(U.current.offsetWidthE(!1),onMouseEnter:_!==null?W:x,className:D(Ee.tableTd,n,r&&Ee.tableAction,o&&Ee.modifiers.center,h&&Ee.modifiers.noPadding,O&&zs.tableStickyCell,S&&zs.modifiers.borderRight,w&&zs.modifiers.borderLeft,Ee.modifiers[l],k&&Ee.tableDraggable,ie),ref:U},Te,P,O&&{style:Object.assign({[r8.name]:C||void 0,[a8.name]:A||0,[i8.name]:I||0},P.style)}),Z||t);return _!==null&&(_===""?typeof t=="string":!0)&&T?y.createElement(y.Fragment,null,Ae,y.createElement($i,{triggerRef:U,content:_||_===""&&t,isVisible:!0})):Ae},Es=y.forwardRef((e,t)=>y.createElement(JQ,Object.assign({},e,{innerRef:t})));Es.displayName="Td";const B_=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("caption",Object.assign({className:D(Ee.tableCaption,n)},r),t)};B_.displayName="Caption";const ZQ=({senders:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Senders list"}),j.jsx(I_,{children:j.jsx(Nf,{children:j.jsx(Cs,{children:"Sender id"})})}),j.jsx(R_,{children:e.map(t=>j.jsx(Nf,{children:j.jsx(Es,{children:j.jsx(di,{to:`/senders/${t.sender_id}`,children:t.sender_id})})},t.sender_id))})]}),Id=()=>j.jsx(dr,{children:j.jsx(kA,{children:j.jsx(Rg,{size:"xl"})})}),eJ=()=>{const e=fV();return j.jsxs(j.Fragment,{children:[j.jsx(dr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Senders"})]})}),e.isLoading?j.jsx(Id,{}):j.jsxs(dr,{children:[j.jsx(ZQ,{senders:e.data})," "]})]})};var o8="en",U_={},i1={};function l8(){return o8}function tJ(e){o8=e}function nJ(e){return U_[e]}function rJ(e){if(!e)throw new Error("No locale data passed");U_[e.locale]=e,i1[e.locale.toLowerCase()]=e.locale}function PC(e){if(U_[e])return e;if(i1[e.toLowerCase()])return i1[e.toLowerCase()]}function s8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return TC(e);case"best fit":return TC(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function TC(e){var t=PC(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=PC(e);if(r)return r}}var B={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return a==1&&i!=11?"one":a>=2&&a<=4&&(i<12||i>14)?"few":r&&a==0||a>=5&&a<=9||i>=11&&i<=14?"many":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2),o=r&&n[0].slice(-6);return a==1&&i!=11&&i!=71&&i!=91?"one":a==2&&i!=12&&i!=72&&i!=92?"two":(a==3||a==4||a==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&o==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":i&&o>=2&&o<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ca:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1&&a?"one":r!=0&&i==0&&a?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=a.slice(-1);return i&&(r==1||r==2||r==3)||i&&o!=4&&o!=6&&o!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return t==1&&a?"one":r>=2&&r<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],a=Number(n[0])==t;return t==1||!a&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-2),l=a.slice(-2);return i&&o==1||l==1?"one":i&&o==2||l==2?"two":i&&(o==3||o==4)||l==3||l==4?"few":"other"},dz:function(t){return"other"},es:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1?"one":r!=0&&i==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t>=0&&t<2?"one":r!=0&&i==0&&a?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return r==1&&a||r==0&&!a?"one":r==2&&a?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],a=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==t,o=r.slice(-1),l=r.slice(-2);return i&&o==1&&l!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",a=Number(n[0])==t,i=a&&n[0].slice(-1),o=a&&n[0].slice(-2);return i==1&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",a=r.length,i=Number(n[0])==t,o=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return i&&o==0||l>=11&&l<=19||a==2&&s>=11&&s<=19?"zero":o==1&&l!=11||a==2&&u==1&&s!=11||a!=2&&u==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return t==1&&a?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&r!=1&&(i==0||i==1)||a&&i>=5&&i<=9||a&&o>=12&&o<=14?"many":"other"},pt:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return r==0||r==1?"one":r!=0&&i==0&&a?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],a=Number(n[0])==t,i=a&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&i>=1&&i<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return a&&i==1&&o!=11?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&i==0||a&&i>=5&&i<=9||a&&o>=11&&o<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"";return t==0||t==1||r==0&&a==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-2);return a&&i==1?"one":a&&i==2?"two":a&&(i==3||i==4)||!a?"few":"other"}};B.as=B.am;B.az=B.af;B.bg=B.af;B.bn=B.am;B.brx=B.af;B.ce=B.af;B.chr=B.af;B.de=B.ast;B.ee=B.af;B.el=B.af;B.en=B.ast;B.et=B.ast;B.eu=B.af;B.fa=B.am;B.fi=B.ast;B.fil=B.ceb;B.fo=B.af;B.fur=B.af;B.fy=B.ast;B.gl=B.ast;B.gu=B.am;B.ha=B.af;B.hi=B.am;B.hr=B.bs;B.hsb=B.dsb;B.hu=B.af;B.hy=B.ff;B.ia=B.ast;B.id=B.dz;B.ig=B.dz;B.it=B.ca;B.ja=B.dz;B.jgo=B.af;B.jv=B.dz;B.ka=B.af;B.kea=B.dz;B.kk=B.af;B.kl=B.af;B.km=B.dz;B.kn=B.am;B.ko=B.dz;B.ks=B.af;B.ku=B.af;B.ky=B.af;B.lb=B.af;B.lkt=B.dz;B.lo=B.dz;B.ml=B.af;B.mn=B.af;B.mr=B.af;B.ms=B.dz;B.my=B.dz;B.nb=B.af;B.ne=B.af;B.nl=B.ast;B.nn=B.af;B.no=B.af;B.or=B.af;B.pcm=B.am;B.ps=B.af;B.rm=B.af;B.sah=B.dz;B.sc=B.ast;B.sd=B.af;B.sk=B.cs;B.so=B.af;B.sq=B.af;B.sr=B.bs;B.su=B.dz;B.sv=B.ast;B.sw=B.ast;B.ta=B.af;B.te=B.af;B.th=B.dz;B.ti=B.pa;B.tk=B.af;B.to=B.dz;B.tr=B.af;B.ug=B.af;B.uk=B.ru;B.ur=B.ast;B.uz=B.af;B.vi=B.dz;B.wae=B.af;B.wo=B.dz;B.xh=B.af;B.yi=B.ast;B.yo=B.dz;B.yue=B.dz;B.zh=B.dz;B.zu=B.am;const AC=B;function MC(e){return e==="pt-PT"?e:iJ(e)}var aJ=/^([a-z0-9]+)/i;function iJ(e){var t=e.match(aJ);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function oJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};hJ(this,e);var r=n.numeric,a=n.style,i=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(gJ.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(a!==void 0){if(vJ.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(i!==void 0){if(yJ.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if(typeof t=="string"&&(t=[t]),t.push(l8()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");o1.supportedLocalesOf(this.locale).length>0?this.pluralRules=new o1(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=s8(this.locale,{localeMatcher:this.localeMatcher})}return pJ(e,[{key:"format",value:function(){var n=NC(arguments),r=LC(n,2),a=r[0],i=r[1];return this.getRule(a,i).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var n=NC(arguments),r=LC(n,2),a=r[0],i=r[1],o=this.getRule(a,i),l=o.indexOf("{0}");if(l<0)return[{type:"literal",value:o}];var s=[];return l>0&&s.push({type:"literal",value:o.slice(0,l)}),s=s.concat(this.formatNumberToParts(Math.abs(a)).map(function(u){return $C($C({},u),{},{unit:i})})),l+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return s8(n,t)})};Co.addLocale=rJ;Co.setDefaultLocale=tJ;Co.getDefaultLocale=l8;Co.PluralRules=o1;var Hv='Invalid "unit" argument';function bJ(e){if(l1(e)==="symbol")throw new TypeError(Hv);if(typeof e!="string")throw new RangeError("".concat(Hv,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),mJ.indexOf(e)<0)throw new RangeError("".concat(Hv,": ").concat(e));return e}var _J='Invalid "number" argument';function xJ(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(_J,": ").concat(e));return e}function wJ(e){return 1/e===-1/0}function SJ(e){return e<0||e===0&&wJ(e)}function NC(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[xJ(e[0]),bJ(e[1])]}function rm(e){"@babel/helpers - typeof";return rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rm(e)}function OJ(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=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kJ(e,t){if(e){if(typeof e=="string")return BC(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 BC(e,t)}}function BC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)if(i.pop(),a=i.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function TJ(){var e=(typeof Intl>"u"?"undefined":s1(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function u1(e){"@babel/helpers - typeof";return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}function AJ(e){return IJ(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var MJ={}.constructor;function IJ(e){return u1(e)!==void 0&&e!==null&&e.constructor===MJ}var si=60,am=60*si,ml=24*am,c1=7*ml,f1=30.44*ml,u8=146097/400*ml;function Bs(e){switch(e){case"second":return 1;case"minute":return si;case"hour":return am;case"day":return ml;case"week":return c1;case"month":return f1;case"year":return u8}}function c8(e){return e.factor!==void 0?e.factor:Bs(e.unit||e.formatAs)||1}function zf(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function H_(e){switch(e){case"floor":return 1;default:return .5}}function d1(e){"@babel/helpers - typeof";return d1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d1(e)}function f8(e,t){var n=t.prevStep,r=t.timestamp,a=t.now,i=t.future,o=t.round,l;return n&&(n.id||n.unit)&&(l=e["threshold_for_".concat(n.id||n.unit)]),l===void 0&&e.threshold!==void 0&&(l=e.threshold,typeof l=="function"&&(l=l(a,i))),l===void 0&&(l=e.minTime),d1(l)==="object"&&(n&&n.id&&l[n.id]!==void 0?l=l[n.id]:l=l.default),typeof l=="function"&&(l=l(r,{future:i,getMinTimeForUnit:function(u,c){return UC(u,c||n&&n.formatAs,{round:o})}})),l===void 0&&e.test&&(e.test(r,{now:a,future:i})?l=0:l=9007199254740991),l===void 0&&(n?e.formatAs&&n.formatAs&&(l=UC(e.formatAs,n.formatAs,{round:o})):l=0),l===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),l}function UC(e,t,n){var r=n.round,a=Bs(e),i;if(t==="now"?i=Bs(e):i=Bs(t),a!==void 0&&i!==void 0)return a-i*(1-H_(r))}function HC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function RJ(e){for(var t=1;t0)return e[o-1]}return l}}}function d8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=f8(e[r],RJ({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return a===void 0||Math.abs(t)=0:!0})}function NJ(e,t,n){var r=n.now,a=n.round;if(Bs(e)){var i=Bs(e)*1e3,o=t>r,l=Math.abs(t-r),s=zf(a)(l/i)*i;return o?s>0?l-s+zJ(a,i):l-s+1:-(l-s)+FJ(a,i)}}function FJ(e,t){return H_(e)*t}function zJ(e,t){return(1-H_(e))*t+1}var BJ=365*24*60*60*1e3,h8=1e3*BJ;function UJ(e,t,n){var r=n.prevStep,a=n.nextStep,i=n.now,o=n.future,l=n.round,s=e.getTime?e.getTime():e,u=function(p){return NJ(p,s,{now:i,round:l})},c=WJ(o?t:a,s,{future:o,now:i,round:l,prevStep:o?r:t});if(c!==void 0){var f;if(t&&(t.getTimeToNextUpdate&&(f=t.getTimeToNextUpdate(s,{getTimeToNextUpdateForUnit:u,getRoundFunction:zf,now:i,future:o,round:l})),f===void 0)){var d=t.unit||t.formatAs;d&&(f=u(d))}return f===void 0?c:Math.min(f,c)}}function HJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep,l=f8(e,{timestamp:t,now:r,future:a,round:i,prevStep:o});if(l!==void 0)return a?t-l*1e3+1:l===0&&t===r?h8:t+l*1e3}function WJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep;if(e){var l=HJ(e,t,{now:r,future:a,round:i,prevStep:o});return l===void 0?void 0:l-r}else return a?t-r+1:h8}var p8={};function ks(e){return p8[e]}function m8(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");p8[e.locale]=e}const VJ=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],h1={steps:VJ,labels:"long"};function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VC(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cZ(e,t){return hZ(e)||dZ(e,t)||y8(e,t)||fZ()}function fZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y8(e,t){if(e){if(typeof e=="string")return o6(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 o6(e,t)}}function o6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;pZ(this,e),typeof t=="string"&&(t=[t]),this.locale=PJ(t.concat(e.getDefaultLocale()),ks),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Co,this.IntlPluralRules=Co.PluralRules),this.relativeTimeFormatCache=new zC,this.pluralRulesCache=new zC}return mZ(e,[{key:"format",value:function(n,r,a){a||(r&&!_Z(r)?(a=r,r=void 0):a={}),r||(r=p1),typeof r=="string"&&(r=sZ(r));var i=gZ(n),o=this.getLabels(r.flavour||r.labels),l=o.labels,s=o.labelsType,u;r.now!==void 0&&(u=r.now),u===void 0&&a.now!==void 0&&(u=a.now),u===void 0&&(u=Date.now());var c=(u-i)/1e3,f=a.future||c<0,d=bZ(l,ks(this.locale).now,ks(this.locale).long,f);if(r.custom){var h=r.custom({now:u,date:new Date(i),time:i,elapsed:c,locale:this.locale});if(h!==void 0)return h}var p=yZ(r.units,l,d),g=a.round||r.round,b=LJ(r.gradation||r.steps||p1.steps,c,{now:u,units:p,round:g,future:f,getNextStep:!0}),m=cZ(b,3),v=m[0],_=m[1],x=m[2],O=this.formatDateForStep(i,_,c,{labels:l,labelsType:s,nowLabel:d,now:u,future:f,round:g})||"";if(a.getTimeToNextUpdate){var S=UJ(i,_,{nextStep:x,prevStep:v,now:u,future:f,round:g});return[O,S]}return O}},{key:"formatDateForStep",value:function(n,r,a,i){var o=this,l=i.labels,s=i.labelsType,u=i.nowLabel,c=i.now,f=i.future,d=i.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(m,v){return o.formatValue(v,m,{labels:l,future:f})},now:c,future:f});var h=r.unit||r.formatAs;if(!h)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(h==="now")return u;var p=Math.abs(a)/c8(r);r.granularity&&(p=zf(d)(p/r.granularity)*r.granularity);var g=-1*Math.sign(a)*zf(d)(p);switch(g===0&&(f?g=0:g=-0),s){case"long":case"short":case"narrow":return this.getFormatter(s).format(g,h);default:return this.formatValue(g,h,{labels:l,future:f})}}}},{key:"formatValue",value:function(n,r,a){var i=a.labels,o=a.future;return this.getFormattingRule(i,r,n,{future:o}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,a,i){var o=i.future;if(this.locale,n=n[r],typeof n=="string")return n;var l=a===0?o?"future":"past":a<0?"past":"future",s=n[l]||n;if(typeof s=="string")return s;var u=this.getPluralRules().select(Math.abs(a));return s[u]||s.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(l){switch(l){case"tiny":case"mini-time":return"mini";default:return l}}),n=n.concat("long");for(var r=ks(this.locale),a=uZ(n),i;!(i=a()).done;){var o=i.value;if(r[o])return{labelsType:o,labels:r[o]}}}}]),e}(),b8="en";Fr.getDefaultLocale=function(){return b8};Fr.setDefaultLocale=function(e){return b8=e};Fr.addDefaultLocale=function(e){if(s6)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");s6=!0,Fr.setDefaultLocale(e.locale),Fr.addLocale(e)};var s6;Fr.addLocale=function(e){m8(e),Co.addLocale(e)};Fr.locale=Fr.addLocale;Fr.addLabels=function(e,t,n){var r=ks(e);r||(m8({locale:e}),r=ks(e)),r[t]=n};function gZ(e){if(e.constructor===Date||vZ(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(im(e),", ").concat(e))}function vZ(e){return im(e)==="object"&&typeof e.getTime=="function"}function yZ(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(a){return a==="now"||r.indexOf(a)>=0})),r}function bZ(e,t,n,r){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:r?a.future:a.past;if(n&&n.second&&n.second.current)return n.second.current}function _Z(e){return typeof e=="string"||AJ(e)}const xZ={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};var _8={exports:{}},ft={};/** @license React v16.13.1 + */function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function XU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YU(e,t){return e.button===0&&(!t||t==="_self")&&!XU(e)}const QU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],JU="6";try{window.__reactRouterVersion=JU}catch{}function ZU(e,t){return uU({basename:t==null?void 0:t.basename,future:$f({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:MB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||eH(),routes:e,mapRouteProperties:GU,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function eH(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=$f({},t,{errors:tH(t.errors)})),t}function tH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new v_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let o=new i(a.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}const nH=y.createContext({isTransitioning:!1}),rH=y.createContext(new Map),aH="startTransition",NO=bj[aH],iH="flushSync",FO=AN[iH];function oH(e){NO?NO(e):e()}function fc(e){FO?FO(e):e()}class lH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function sH(e){let{fallbackElement:t,router:n,future:r}=e,[a,i]=y.useState(n.state),[o,l]=y.useState(),[s,u]=y.useState({isTransitioning:!1}),[c,f]=y.useState(),[d,h]=y.useState(),[p,g]=y.useState(),b=y.useRef(new Map),{v7_startTransition:m}=r||{},v=y.useCallback(w=>{m?oH(w):w()},[m]),_=y.useCallback((w,C)=>{let{deletedFetchers:A,unstable_flushSync:I,unstable_viewTransitionOpts:P}=C;A.forEach(E=>b.current.delete(E)),w.fetchers.forEach((E,L)=>{E.data!==void 0&&b.current.set(L,E.data)});let T=n.window==null||typeof n.window.document.startViewTransition!="function";if(!P||T){I?fc(()=>i(w)):v(()=>i(w));return}if(I){fc(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let E=n.window.document.startViewTransition(()=>{fc(()=>i(w))});E.finished.finally(()=>{fc(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),fc(()=>h(E));return}d?(c&&c.resolve(),d.skipTransition(),g({state:w,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(l(w),u({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[n.window,d,c,b,v]);y.useLayoutEffect(()=>n.subscribe(_),[n,_]),y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new lH)},[s]),y.useEffect(()=>{if(c&&o&&n.window){let w=o,C=c.promise,A=n.window.document.startViewTransition(async()=>{v(()=>i(w)),await C});A.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(A)}},[v,o,c,n.window]),y.useEffect(()=>{c&&o&&a.location.key===o.location.key&&c.resolve()},[c,d,a.location,o]),y.useEffect(()=>{!s.isTransitioning&&p&&(l(p.state),u({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),g(void 0))},[s.isTransitioning,p]),y.useEffect(()=>{},[]);let x=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,C,A)=>n.navigate(w,{state:C,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,C,A)=>n.navigate(w,{replace:!0,state:C,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),O=n.basename||"/",S=y.useMemo(()=>({router:n,navigator:x,static:!1,basename:O}),[n,x,O]);return y.createElement(y.Fragment,null,y.createElement(Ng.Provider,{value:S},y.createElement(UA.Provider,{value:a},y.createElement(rH.Provider,{value:b.current},y.createElement(nH.Provider,{value:s},y.createElement(qU,{basename:O,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?y.createElement(uH,{routes:n.routes,future:n.future,state:a}):t))))),null)}function uH(e){let{routes:t,future:n,state:r}=e;return RU(t,void 0,r,n)}const cH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,di=y.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=KU(t,QU),{basename:h}=y.useContext(Nl),p,g=!1;if(typeof u=="string"&&fH.test(u)&&(p=u,cH))try{let _=new URL(window.location.href),x=u.startsWith("//")?new URL(_.protocol+u):new URL(u),O=Ru(x.pathname,h);x.origin===_.origin&&O!=null?u=O+x.search+x.hash:g=!0}catch{}let b=kU(u,{relative:a}),m=dH(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:a,unstable_viewTransition:f});function v(_){r&&r(_),_.defaultPrevented||m(_)}return y.createElement("a",$f({},d,{href:p||b,onClick:g||i?r:v,ref:n,target:s}))});var zO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zO||(zO={}));var BO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(BO||(BO={}));function dH(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l}=t===void 0?{}:t,s=PU(),u=Cd(),c=VA(e,{relative:o});return y.useCallback(f=>{if(YU(f,n)){f.preventDefault();let d=r!==void 0?r:Pl(u)===Pl(c);s(e,{replace:d,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l})}},[u,s,c,r,a,n,e,i,o,l])}function hH(){const[e,t]=y.useState(!0),n=()=>{t(!e)},r=Cd(),a=j.jsx(SA,{children:j.jsx(OA,{children:j.jsx(PA,{variant:"plain","aria-label":"Global navigation",isSidebarOpen:e,onSidebarToggle:n,id:"vertical-nav-toggle",children:j.jsx(uB,{})})})}),i=j.jsx(CA,{isSidebarOpen:e,id:"vertical-sidebar",children:j.jsx(kA,{children:j.jsx(vu,{children:j.jsxs(jg,{children:[j.jsx(Ss,{itemId:"dashboard",isActive:r.pathname.startsWith("/dashboard"),children:j.jsx(di,{to:"dashboard",children:"Dashboard"})}),j.jsx(Ss,{itemId:"timeline",isActive:r.pathname.startsWith("/timeline"),children:j.jsx(di,{to:"timeline",children:"Timeline"})}),j.jsx(Ss,{itemId:"conversations",isActive:r.pathname.startsWith("/senders"),children:j.jsx(di,{to:"senders",children:"Senders"})}),j.jsx(Ss,{itemId:"messages",isActive:r.pathname.startsWith("/messages"),children:j.jsx(di,{to:"messages",children:"Messages"})})]})})})});return j.jsx(h_,{header:a,sidebar:i,children:j.jsx(VU,{})})}function KA(e,t){return function(){return e.apply(t,arguments)}}const{toString:pH}=Object.prototype,{getPrototypeOf:x_}=Object,zg=(e=>t=>{const n=pH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>zg(t)===e),Bg=e=>t=>typeof t===e,{isArray:$u}=Array,Lf=Bg("undefined");function mH(e){return e!==null&&!Lf(e)&&e.constructor!==null&&!Lf(e.constructor)&&Nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const XA=Ka("ArrayBuffer");function gH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&XA(e.buffer),t}const vH=Bg("string"),Nr=Bg("function"),YA=Bg("number"),Ug=e=>e!==null&&typeof e=="object",yH=e=>e===!0||e===!1,fp=e=>{if(zg(e)!=="object")return!1;const t=x_(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bH=Ka("Date"),_H=Ka("File"),xH=Ka("Blob"),wH=Ka("FileList"),SH=e=>Ug(e)&&Nr(e.pipe),OH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nr(e.append)&&((t=zg(e))==="formdata"||t==="object"&&Nr(e.toString)&&e.toString()==="[object FormData]"))},CH=Ka("URLSearchParams"),EH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ed(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),$u(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const JA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ZA=e=>!Lf(e)&&e!==JA;function Fb(){const{caseless:e}=ZA(this)&&this||{},t={},n=(r,a)=>{const i=e&&QA(t,a)||a;fp(t[i])&&fp(r)?t[i]=Fb(t[i],r):fp(r)?t[i]=Fb({},r):$u(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(Ed(t,(a,i)=>{n&&Nr(a)?e[i]=KA(a,n):e[i]=a},{allOwnKeys:r}),e),PH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TH=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},AH=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&x_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},IH=e=>{if(!e)return null;if($u(e))return e;let t=e.length;if(!YA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},RH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x_(Uint8Array)),$H=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},LH=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jH=Ka("HTMLFormElement"),DH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),UO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NH=Ka("RegExp"),eM=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ed(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},FH=e=>{eM(e,(t,n)=>{if(Nr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zH=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return $u(e)?r(e):r(String(e).split(t)),n},BH=()=>{},UH=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jv="abcdefghijklmnopqrstuvwxyz",HO="0123456789",tM={DIGIT:HO,ALPHA:jv,ALPHA_DIGIT:jv+jv.toUpperCase()+HO},HH=(e=16,t=tM.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function WH(e){return!!(e&&Nr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const VH=e=>{const t=new Array(10),n=(r,a)=>{if(Ug(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=$u(r)?[]:{};return Ed(r,(o,l)=>{const s=n(o,a+1);!Lf(s)&&(i[l]=s)}),t[a]=void 0,i}}return r};return n(e,0)},qH=Ka("AsyncFunction"),GH=e=>e&&(Ug(e)||Nr(e))&&Nr(e.then)&&Nr(e.catch),ne={isArray:$u,isArrayBuffer:XA,isBuffer:mH,isFormData:OH,isArrayBufferView:gH,isString:vH,isNumber:YA,isBoolean:yH,isObject:Ug,isPlainObject:fp,isUndefined:Lf,isDate:bH,isFile:_H,isBlob:xH,isRegExp:NH,isFunction:Nr,isStream:SH,isURLSearchParams:CH,isTypedArray:RH,isFileList:wH,forEach:Ed,merge:Fb,extend:kH,trim:EH,stripBOM:PH,inherits:TH,toFlatObject:AH,kindOf:zg,kindOfTest:Ka,endsWith:MH,toArray:IH,forEachEntry:$H,matchAll:LH,isHTMLForm:jH,hasOwnProperty:UO,hasOwnProp:UO,reduceDescriptors:eM,freezeMethods:FH,toObjectSet:zH,toCamelCase:DH,noop:BH,toFiniteNumber:UH,findKey:QA,global:JA,isContextDefined:ZA,ALPHABET:tM,generateString:HH,isSpecCompliantForm:WH,toJSONObject:VH,isAsyncFn:qH,isThenable:GH};function rt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}ne.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nM=rt.prototype,rM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rM[e]={value:e}});Object.defineProperties(rt,rM);Object.defineProperty(nM,"isAxiosError",{value:!0});rt.from=(e,t,n,r,a,i)=>{const o=Object.create(nM);return ne.toFlatObject(e,o,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),rt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const KH=null;function zb(e){return ne.isPlainObject(e)||ne.isArray(e)}function aM(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function WO(e,t,n){return e?e.concat(t).map(function(a,i){return a=aM(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function XH(e){return ne.isArray(e)&&!e.some(zb)}const YH=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Hg(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!ne.isUndefined(b[g])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ne.isDate(p))return p.toISOString();if(!s&&ne.isBlob(p))throw new rt("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(p)||ne.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,g,b){let m=p;if(p&&!b&&typeof p=="object"){if(ne.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ne.isArray(p)&&XH(p)||(ne.isFileList(p)||ne.endsWith(g,"[]"))&&(m=ne.toArray(p)))return g=aM(g),m.forEach(function(_,x){!(ne.isUndefined(_)||_===null)&&t.append(o===!0?WO([g],x,i):o===null?g:g+"[]",u(_))}),!1}return zb(p)?!0:(t.append(WO(b,g,i),u(p)),!1)}const f=[],d=Object.assign(YH,{defaultVisitor:c,convertValue:u,isVisitable:zb});function h(p,g){if(!ne.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ne.forEach(p,function(m,v){(!(ne.isUndefined(m)||m===null)&&a.call(t,m,ne.isString(v)?v.trim():v,g,d))===!0&&h(m,g?g.concat(v):[v])}),f.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function VO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w_(e,t){this._pairs=[],e&&Hg(e,this,t)}const iM=w_.prototype;iM.append=function(t,n){this._pairs.push([t,n])};iM.toString=function(t){const n=t?function(r){return t.call(this,r,VO)}:VO;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function QH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oM(e,t,n){if(!t)return e;const r=n&&n.encode||QH,a=n&&n.serialize;let i;if(a?i=a(t,n):i=ne.isURLSearchParams(t)?t.toString():new w_(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qO{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JH=typeof URLSearchParams<"u"?URLSearchParams:w_,ZH=typeof FormData<"u"?FormData:null,eW=typeof Blob<"u"?Blob:null,tW={isBrowser:!0,classes:{URLSearchParams:JH,FormData:ZH,Blob:eW},protocols:["http","https","file","blob","url","data"]},sM=typeof window<"u"&&typeof document<"u",nW=(e=>sM&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),rW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sM,hasStandardBrowserEnv:nW,hasStandardBrowserWebWorkerEnv:rW},Symbol.toStringTag,{value:"Module"})),La={...aW,...tW};function iW(e,t){return Hg(e,new La.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return La.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function oW(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lW(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&ne.isArray(a)?a.length:o,s?(ne.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!l):((!a[o]||!ne.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&ne.isArray(a[o])&&(a[o]=lW(a[o])),!l)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,a)=>{t(oW(r),a,n,0)}),n}return null}function sW(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const S_={transitional:lM,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=ne.isObject(t);if(i&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return a?JSON.stringify(uM(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iW(t,this.formSerializer).toString();if((l=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Hg(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),sW(t)):t}],transformResponse:[function(t){const n=this.transitional||S_.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&ne.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?rt.from(l,rt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:La.classes.FormData,Blob:La.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{S_.headers[e]={}});const O_=S_,uW=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cW=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&uW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},GO=Symbol("internals");function dc(e){return e&&String(e).trim().toLowerCase()}function dp(e){return e===!1||e==null?e:ne.isArray(e)?e.map(dp):String(e)}function fW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dv(e,t,n,r,a){if(ne.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function hW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pW(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class Wg{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const c=dc(s);if(!c)throw new Error("header name must be a non-empty string");const f=ne.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=dp(l))}const o=(l,s)=>ne.forEach(l,(u,c)=>i(u,c,s));return ne.isPlainObject(t)||t instanceof this.constructor?o(t,n):ne.isString(t)&&(t=t.trim())&&!dW(t)?o(cW(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return fW(a);if(ne.isFunction(n))return n.call(this,a,r);if(ne.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=dc(o),o){const l=ne.findKey(r,o);l&&(!n||Dv(r,r[l],l,n))&&(delete r[l],a=!0)}}return ne.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Dv(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return ne.forEach(this,(a,i)=>{const o=ne.findKey(r,i);if(o){n[o]=dp(a),delete n[i];return}const l=t?hW(i):String(i).trim();l!==i&&delete n[i],n[l]=dp(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[GO]=this[GO]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=dc(o);r[l]||(pW(a,o),r[l]=!0)}return ne.isArray(t)?t.forEach(i):i(t),this}}Wg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Wg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(Wg);const yi=Wg;function Nv(e,t){const n=this||O_,r=t||n,a=yi.from(r.headers);let i=r.data;return ne.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function cM(e){return!!(e&&e.__CANCEL__)}function kd(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(kd,rt,{__CANCEL__:!0});function mW(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const gW=La.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&o.push("path="+r),ne.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fM(e,t){return e&&!vW(t)?yW(e,t):t}const bW=La.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const l=ne.isString(o)?a(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function _W(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,l=i-n,s=r(l),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&u?(o-i)/s:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const wW=typeof XMLHttpRequest<"u",SW=wW&&function(e){return new Promise(function(n,r){let a=e.data;const i=yi.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(ne.isFormData(a)){if(La.hasStandardBrowserEnv||La.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[g,...b]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=fM(e.baseURL,e.url);f.open(e.method.toUpperCase(),oM(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const g=yi.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};mW(function(_){n(_),u()},function(_){r(_),u()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new rt("Request aborted",rt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new rt("Network Error",rt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||lM;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new rt(b,m.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,f)),f=null},La.hasStandardBrowserEnv&&(l&&ne.isFunction(l)&&(l=l(e)),l||l!==!1&&bW(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&gW.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}a===void 0&&i.setContentType(null),"setRequestHeader"in f&&ne.forEach(i.toJSON(),function(b,m){f.setRequestHeader(m,b)}),ne.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",KO(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",KO(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{f&&(r(!g||g.type?new kd(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=_W(d);if(p&&La.protocols.indexOf(p)===-1){r(new rt("Unsupported protocol "+p+":",rt.ERR_BAD_REQUEST,e));return}f.send(a||null)})},Bb={http:KH,xhr:SW};ne.forEach(Bb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const XO=e=>`- ${e}`,OW=e=>ne.isFunction(e)||e===null||e===!1,dM={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(XO).join(` +`):" "+XO(i[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Bb};function Fv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kd(null,e)}function YO(e){return Fv(e),e.headers=yi.from(e.headers),e.data=Nv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dM.getAdapter(e.adapter||O_.adapter)(e).then(function(r){return Fv(e),r.data=Nv.call(e,e.transformResponse,r),r.headers=yi.from(r.headers),r},function(r){return cM(r)||(Fv(e),r&&r.response&&(r.response.data=Nv.call(e,e.transformResponse,r.response),r.response.headers=yi.from(r.response.headers))),Promise.reject(r)})}const QO=e=>e instanceof yi?{...e}:e;function yu(e,t){t=t||{};const n={};function r(u,c,f){return ne.isPlainObject(u)&&ne.isPlainObject(c)?ne.merge.call({caseless:f},u,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function a(u,c,f){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!ne.isUndefined(c))return r(void 0,c)}function o(u,c){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,c)=>a(QO(u),QO(c),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,d=f(e[c],t[c],c);ne.isUndefined(d)&&f!==l||(n[c]=d)}),n}const hM="1.6.8",C_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const JO={};C_.transitional=function(t,n,r){function a(i,o){return"[Axios v"+hM+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new rt(a(o," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!JO[o]&&(JO[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};function CW(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new rt("option "+i+" must be "+s,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+i,rt.ERR_BAD_OPTION)}}const Ub={assertOptions:CW,validators:C_},Vi=Ub.validators;class Jp{constructor(t){this.defaults=t,this.interceptors={request:new qO,response:new qO}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Ub.assertOptions(r,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),a!=null&&(ne.isFunction(a)?n.paramsSerializer={serialize:a}:Ub.assertOptions(a,{encode:Vi.function,serialize:Vi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ne.merge(i.common,i[n.method]);i&&ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=yi.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!s){const p=[YO.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new kd(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new E_(function(a){t=a}),cancel:t}}}const EW=E_;function kW(e){return function(n){return e.apply(null,n)}}function PW(e){return ne.isObject(e)&&e.isAxiosError===!0}const Hb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hb).forEach(([e,t])=>{Hb[t]=e});const TW=Hb;function pM(e){const t=new hp(e),n=KA(hp.prototype.request,t);return ne.extend(n,hp.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return pM(yu(e,a))},n}const zt=pM(O_);zt.Axios=hp;zt.CanceledError=kd;zt.CancelToken=EW;zt.isCancel=cM;zt.VERSION=hM;zt.toFormData=Hg;zt.AxiosError=rt;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=kW;zt.isAxiosError=PW;zt.mergeConfig=yu;zt.AxiosHeaders=yi;zt.formToJSON=e=>uM(ne.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=dM.getAdapter;zt.HttpStatusCode=TW;zt.default=zt;var Pd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bu=typeof window>"u"||"Deno"in globalThis;function Pr(){}function AW(e,t){return typeof e=="function"?e(t):e}function Wb(e){return typeof e=="number"&&e>=0&&e!==1/0}function mM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ZO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==k_(o,t.options))return!1}else if(!Df(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function eC(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(jf(t.options.mutationKey)!==jf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function k_(e,t){return((t==null?void 0:t.queryKeyHashFn)||jf)(e)}function jf(e){return JSON.stringify(e,(t,n)=>qb(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Df(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Df(e[n],t[n])):!1}function gM(e,t){if(e===t)return e;const n=tC(e)&&tC(t);if(n||qb(e)&&qb(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{};let s=0;for(let u=0;u{setTimeout(t,e)})}function Gb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gM(e,t):t}function IW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var P_=Symbol(),il,eo,Ks,FP,$W=(FP=class extends Pd{constructor(){super();Me(this,il,void 0);Me(this,eo,void 0);Me(this,Ks,void 0);Oe(this,Ks,t=>{if(!bu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,eo)||this.setEventListener(V(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,eo))==null||t.call(this),Oe(this,eo,void 0))}setEventListener(t){var n;Oe(this,Ks,t),(n=V(this,eo))==null||n.call(this),Oe(this,eo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,il)!==t&&(Oe(this,il,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,il)=="boolean"?V(this,il):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},il=new WeakMap,eo=new WeakMap,Ks=new WeakMap,FP),T_=new $W,Xs,to,Ys,zP,LW=(zP=class extends Pd{constructor(){super();Me(this,Xs,!0);Me(this,to,void 0);Me(this,Ys,void 0);Oe(this,Ys,t=>{if(!bu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,to)||this.setEventListener(V(this,Ys))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,to))==null||t.call(this),Oe(this,to,void 0))}setEventListener(t){var n;Oe(this,Ys,t),(n=V(this,to))==null||n.call(this),Oe(this,to,t(this.setOnline.bind(this)))}setOnline(t){V(this,Xs)!==t&&(Oe(this,Xs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Xs)}},Xs=new WeakMap,to=new WeakMap,Ys=new WeakMap,zP),Zp=new LW;function jW(e){return Math.min(1e3*2**e,3e4)}function vM(e){return(e??"online")==="online"?Zp.isOnline():!0}var yM=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zv(e){return e instanceof yM}function bM(e){let t=!1,n=0,r=!1,a,i,o;const l=new Promise((m,v)=>{i=m,o=v}),s=m=>{var v;r||(p(new yM(m)),(v=e.abort)==null||v.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>T_.isFocused()&&(e.networkMode==="always"||Zp.isOnline())&&e.canRun(),d=()=>vM(e.networkMode)&&e.canRun(),h=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),a==null||a(),i(m))},p=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),a==null||a(),o(m))},g=()=>new Promise(m=>{var v;a=_=>{(r||f())&&m(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;a=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;try{m=e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var w;if(r)return;const _=e.retry??(bu?0:3),x=e.retryDelay??jW,O=typeof x=="function"?x(n,v):x,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!S){p(v);return}n++,(w=e.onFail)==null||w.call(e,n,v),MW(O).then(()=>f()?void 0:g()).then(()=>{t?p(v):b()})})};return{promise:l,cancel:s,continue:()=>(a==null||a(),l),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?b():g().then(b),l)}}function DW(){let e=[],t=0,n=d=>{d()},r=d=>{d()},a=d=>setTimeout(d,0);const i=d=>{a=d},o=d=>{let h;t++;try{h=d()}finally{t--,t||u()}return h},l=d=>{t?e.push(d):a(()=>{n(d)})},s=d=>(...h)=>{l(()=>{d(...h)})},u=()=>{const d=e;e=[],d.length&&a(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:o,batchCalls:s,schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:i}}var mn=DW(),ol,BP,_M=(BP=class{constructor(){Me(this,ol,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wb(this.gcTime)&&Oe(this,ol,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bu?1/0:5*60*1e3))}clearGcTimeout(){V(this,ol)&&(clearTimeout(V(this,ol)),Oe(this,ol,void 0))}},ol=new WeakMap,BP),Qs,Js,Er,An,rd,ll,ta,ni,UP,NW=(UP=class extends _M{constructor(t){super();Me(this,ta);Me(this,Qs,void 0);Me(this,Js,void 0);Me(this,Er,void 0);Me(this,An,void 0);Me(this,rd,void 0);Me(this,ll,void 0);Oe(this,ll,!1),Oe(this,rd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Oe(this,Er,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Oe(this,Qs,t.state||FW(this.options)),this.state=V(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...V(this,rd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,Er).remove(this)}setData(t,n){const r=Gb(this.state.data,t,this.options);return et(this,ta,ni).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,ta,ni).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=V(this,An))==null?void 0:r.promise;return(a=V(this,An))==null||a.cancel(t),n?n.then(Pr).catch(Pr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Qs))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!mM(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,Er).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,An)&&(V(this,ll)?V(this,An).cancel({revert:!0}):V(this,An).cancelRetry()),this.scheduleGc()),V(this,Er).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,ta,ni).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,An))return V(this,An).continueRetry(),V(this,An).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,a={queryKey:this.queryKey,meta:this.meta},i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Oe(this,ll,!0),r.signal)})};i(a);const o=()=>!this.options.queryFn||this.options.queryFn===P_?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(Oe(this,ll,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)),l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(u=this.options.behavior)==null||u.onFetch(l,this),Oe(this,Js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&et(this,ta,ni).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const s=d=>{var h,p,g,b;zv(d)&&d.silent||et(this,ta,ni).call(this,{type:"error",error:d}),zv(d)||((p=(h=V(this,Er).config).onError)==null||p.call(h,d,this),(b=(g=V(this,Er).config).onSettled)==null||b.call(g,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Oe(this,An,bM({fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var h,p,g,b;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(p=(h=V(this,Er).config).onSuccess)==null||p.call(h,d,this),(b=(g=V(this,Er).config).onSettled)==null||b.call(g,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,h)=>{et(this,ta,ni).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{et(this,ta,ni).call(this,{type:"pause"})},onContinue:()=>{et(this,ta,ni).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),V(this,An).start()}},Qs=new WeakMap,Js=new WeakMap,Er=new WeakMap,An=new WeakMap,rd=new WeakMap,ll=new WeakMap,ta=new WeakSet,ni=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xM(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return zv(a)&&a.revert&&V(this,Js)?{...V(this,Js),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,Er).notify({query:this,type:"updated",action:t})})},UP);function xM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FW(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ka,HP,zW=(HP=class extends Pd{constructor(t={}){super();Me(this,ka,void 0);this.config=t,Oe(this,ka,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??k_(a,n);let o=this.get(i);return o||(o=new NW({cache:this,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){V(this,ka).has(t.queryHash)||(V(this,ka).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ka).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ka).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ka).get(t)}getAll(){return[...V(this,ka).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ZO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ZO(t,r)):n}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ka=new WeakMap,HP),Pa,Mn,sl,Ta,Xi,WP,BW=(WP=class extends _M{constructor(t){super();Me(this,Ta);Me(this,Pa,void 0);Me(this,Mn,void 0);Me(this,sl,void 0);this.mutationId=t.mutationId,Oe(this,Mn,t.mutationCache),Oe(this,Pa,[]),this.state=t.state||UW(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Pa).includes(t)||(V(this,Pa).push(t),this.clearGcTimeout(),V(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Oe(this,Pa,V(this,Pa).filter(n=>n!==t)),this.scheduleGc(),V(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Pa).length||(this.state.status==="pending"?this.scheduleGc():V(this,Mn).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,l,s,u,c,f,d,h,p,g,b,m,v,_,x,O,S,w;Oe(this,sl,bM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{et(this,Ta,Xi).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{et(this,Ta,Xi).call(this,{type:"pause"})},onContinue:()=>{et(this,Ta,Xi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Mn).canRun(this)}));const n=this.state.status==="pending",r=!V(this,sl).canStart();try{if(!n){et(this,Ta,Xi).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(a=V(this,Mn).config).onMutate)==null?void 0:i.call(a,t,this));const A=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));A!==this.state.context&&et(this,Ta,Xi).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const C=await V(this,sl).start();return await((u=(s=V(this,Mn).config).onSuccess)==null?void 0:u.call(s,C,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,C,t,this.state.context)),await((h=(d=V(this,Mn).config).onSettled)==null?void 0:h.call(d,C,null,this.state.variables,this.state.context,this)),await((g=(p=this.options).onSettled)==null?void 0:g.call(p,C,null,t,this.state.context)),et(this,Ta,Xi).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=(b=V(this,Mn).config).onError)==null?void 0:m.call(b,C,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,C,t,this.state.context)),await((O=(x=V(this,Mn).config).onSettled)==null?void 0:O.call(x,void 0,C,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,C,t,this.state.context)),C}finally{et(this,Ta,Xi).call(this,{type:"error",error:C})}}finally{V(this,Mn).runNext(this)}}},Pa=new WeakMap,Mn=new WeakMap,sl=new WeakMap,Ta=new WeakSet,Xi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mn.batch(()=>{V(this,Pa).forEach(r=>{r.onMutationUpdate(t)}),V(this,Mn).notify({mutation:this,type:"updated",action:t})})},WP);function UW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ir,ad,VP,HW=(VP=class extends Pd{constructor(t={}){super();Me(this,ir,void 0);Me(this,ad,void 0);this.config=t,Oe(this,ir,new Map),Oe(this,ad,Date.now())}build(t,n,r){const a=new BW({mutationCache:this,mutationId:++Jd(this,ad)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){const n=xh(t),r=V(this,ir).get(n)??[];r.push(t),V(this,ir).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=xh(t);if(V(this,ir).has(n)){const a=(r=V(this,ir).get(n))==null?void 0:r.filter(i=>i!==t);a&&(a.length===0?V(this,ir).delete(n):V(this,ir).set(n,a))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,ir).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eC(n,r))}findAll(t={}){return this.getAll().filter(n=>eC(t,n))}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pr))))}},ir=new WeakMap,ad=new WeakMap,VP);function xh(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function WW(e){return{onFetch:(t,n)=>{const r=async()=>{var p,g,b,m,v;const a=t.options,i=(b=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],l=((v=t.state.data)==null?void 0:v.pageParams)||[],s={pages:[],pageParams:[]};let u=!1;const c=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn&&t.options.queryFn!==P_?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),d=async(_,x,O)=>{if(u)return Promise.reject();if(x==null&&_.pages.length)return Promise.resolve(_);const S={queryKey:t.queryKey,pageParam:x,direction:O?"backward":"forward",meta:t.options.meta};c(S);const w=await f(S),{maxPages:C}=t.options,A=O?RW:IW;return{pages:A(_.pages,w,C),pageParams:A(_.pageParams,x,C)}};let h;if(i&&o.length){const _=i==="backward",x=_?VW:rC,O={pages:o,pageParams:l},S=x(a,O);h=await d(O,S,_)}else{h=await d(s,l[0]??a.initialPageParam);const _=e??o.length;for(let x=1;x<_;x++){const O=rC(a,h);h=await d(h,O)}}return h};t.options.persister?t.fetchFn=()=>{var a,i;return(i=(a=t.options).persister)==null?void 0:i.call(a,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function rC(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function VW(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Dt,no,ro,Zs,eu,ao,tu,nu,qP,qW=(qP=class{constructor(e={}){Me(this,Dt,void 0);Me(this,no,void 0);Me(this,ro,void 0);Me(this,Zs,void 0);Me(this,eu,void 0);Me(this,ao,void 0);Me(this,tu,void 0);Me(this,nu,void 0);Oe(this,Dt,e.queryCache||new zW),Oe(this,no,e.mutationCache||new HW),Oe(this,ro,e.defaultOptions||{}),Oe(this,Zs,new Map),Oe(this,eu,new Map),Oe(this,ao,0)}mount(){Jd(this,ao)._++,V(this,ao)===1&&(Oe(this,tu,T_.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onFocus())})),Oe(this,nu,Zp.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onOnline())})))}unmount(){var e,t;Jd(this,ao)._--,V(this,ao)===0&&((e=V(this,tu))==null||e.call(this),Oe(this,tu,void 0),(t=V(this,nu))==null||t.call(this),Oe(this,nu,void 0))}isFetching(e){return V(this,Dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,no).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,Dt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,Dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=V(this,Dt).get(r.queryHash),i=a==null?void 0:a.state.data,o=AW(t,i);if(o!==void 0)return V(this,Dt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return mn.batch(()=>V(this,Dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,Dt);mn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,Dt),r={type:"active",...e};return mn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=mn.batch(()=>V(this,Dt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Pr).catch(Pr)}invalidateQueries(e={},t={}){return mn.batch(()=>{if(V(this,Dt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=mn.batch(()=>V(this,Dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,Dt).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pr).catch(Pr)}fetchInfiniteQuery(e){return e.behavior=WW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pr).catch(Pr)}resumePausedMutations(){return Zp.isOnline()?V(this,no).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Dt)}getMutationCache(){return V(this,no)}getDefaultOptions(){return V(this,ro)}setDefaultOptions(e){Oe(this,ro,e)}setQueryDefaults(e,t){V(this,Zs).set(jf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,Zs).values()];let n={};return t.forEach(r=>{Df(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,eu).set(jf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,eu).values()];let n={};return t.forEach(r=>{Df(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ro).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=k_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===P_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ro).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,Dt).clear(),V(this,no).clear()}},Dt=new WeakMap,no=new WeakMap,ro=new WeakMap,Zs=new WeakMap,eu=new WeakMap,ao=new WeakMap,tu=new WeakMap,nu=new WeakMap,qP),Hn,pt,id,In,ul,ru,Aa,od,au,iu,cl,fl,io,ou,dl,Tc,ld,Kb,sd,Xb,ud,Yb,cd,Qb,fd,Jb,dd,Zb,hd,e1,pg,wM,GP,GW=(GP=class extends Pd{constructor(t,n){super();Me(this,dl);Me(this,ld);Me(this,sd);Me(this,ud);Me(this,cd);Me(this,fd);Me(this,dd);Me(this,hd);Me(this,pg);Me(this,Hn,void 0);Me(this,pt,void 0);Me(this,id,void 0);Me(this,In,void 0);Me(this,ul,void 0);Me(this,ru,void 0);Me(this,Aa,void 0);Me(this,od,void 0);Me(this,au,void 0);Me(this,iu,void 0);Me(this,cl,void 0);Me(this,fl,void 0);Me(this,io,void 0);Me(this,ou,new Set);this.options=n,Oe(this,Hn,t),Oe(this,Aa,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,pt).addObserver(this),aC(V(this,pt),this.options)?et(this,dl,Tc).call(this):this.updateResult(),et(this,cd,Qb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return t1(V(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return t1(V(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,et(this,fd,Jb).call(this),et(this,dd,Zb).call(this),V(this,pt).removeObserver(this)}setOptions(t,n){const r=this.options,a=V(this,pt);if(this.options=V(this,Hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");et(this,hd,e1).call(this),V(this,pt).setOptions(this.options),r._defaulted&&!Vb(this.options,r)&&V(this,Hn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,pt),observer:this});const i=this.hasListeners();i&&iC(V(this,pt),a,this.options,r)&&et(this,dl,Tc).call(this),this.updateResult(n),i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&et(this,ld,Kb).call(this);const o=et(this,sd,Xb).call(this);i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||o!==V(this,io))&&et(this,ud,Yb).call(this,o)}getOptimisticResult(t){const n=V(this,Hn).getQueryCache().build(V(this,Hn),t),r=this.createResult(n,t);return XW(this,r)&&(Oe(this,In,r),Oe(this,ru,this.options),Oe(this,ul,V(this,pt).state)),r}getCurrentResult(){return V(this,In)}trackResult(t,n){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),n==null||n(a),t[a])})}),r}trackProp(t){V(this,ou).add(t)}getCurrentQuery(){return V(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,Hn).defaultQueryOptions(t),r=V(this,Hn).getQueryCache().build(V(this,Hn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return et(this,dl,Tc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,In)))}createResult(t,n){var w;const r=V(this,pt),a=this.options,i=V(this,In),o=V(this,ul),l=V(this,ru),u=t!==r?t.state:V(this,id),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const C=this.hasListeners(),A=!C&&aC(t,n),I=C&&iC(t,r,n,a);(A||I)&&(f={...f,...xM(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:g,status:b}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(o==null?void 0:o.data)&&n.select===V(this,od))h=V(this,au);else try{Oe(this,od,n.select),h=n.select(f.data),h=Gb(i==null?void 0:i.data,h,n),Oe(this,au,h),Oe(this,Aa,null)}catch(C){Oe(this,Aa,C)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let C;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=i.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((w=V(this,iu))==null?void 0:w.state.data,V(this,iu)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),Oe(this,Aa,null)}catch(A){Oe(this,Aa,A)}C!==void 0&&(b="success",h=Gb(i==null?void 0:i.data,C,n),d=!0)}V(this,Aa)&&(p=V(this,Aa),h=V(this,au),g=Date.now(),b="error");const m=f.fetchStatus==="fetching",v=b==="pending",_=b==="error",x=v&&m,O=h!==void 0;return{status:b,fetchStatus:f.fetchStatus,isPending:v,isSuccess:b==="success",isError:_,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:_&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:_&&O,isStale:A_(t,n),refetch:this.refetch}}updateResult(t){const n=V(this,In),r=this.createResult(V(this,pt),this.options);if(Oe(this,ul,V(this,pt).state),Oe(this,ru,this.options),V(this,ul).data!==void 0&&Oe(this,iu,V(this,pt)),Vb(r,n))return;Oe(this,In,r);const a={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!V(this,ou).size)return!0;const s=new Set(l??V(this,ou));return this.options.throwOnError&&s.add("error"),Object.keys(V(this,In)).some(u=>{const c=u;return V(this,In)[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),et(this,pg,wM).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,cd,Qb).call(this)}},Hn=new WeakMap,pt=new WeakMap,id=new WeakMap,In=new WeakMap,ul=new WeakMap,ru=new WeakMap,Aa=new WeakMap,od=new WeakMap,au=new WeakMap,iu=new WeakMap,cl=new WeakMap,fl=new WeakMap,io=new WeakMap,ou=new WeakMap,dl=new WeakSet,Tc=function(t){et(this,hd,e1).call(this);let n=V(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pr)),n},ld=new WeakSet,Kb=function(){if(et(this,fd,Jb).call(this),bu||V(this,In).isStale||!Wb(this.options.staleTime))return;const n=mM(V(this,In).dataUpdatedAt,this.options.staleTime)+1;Oe(this,cl,setTimeout(()=>{V(this,In).isStale||this.updateResult()},n))},sd=new WeakSet,Xb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,pt)):this.options.refetchInterval)??!1},ud=new WeakSet,Yb=function(t){et(this,dd,Zb).call(this),Oe(this,io,t),!(bu||this.options.enabled===!1||!Wb(V(this,io))||V(this,io)===0)&&Oe(this,fl,setInterval(()=>{(this.options.refetchIntervalInBackground||T_.isFocused())&&et(this,dl,Tc).call(this)},V(this,io)))},cd=new WeakSet,Qb=function(){et(this,ld,Kb).call(this),et(this,ud,Yb).call(this,et(this,sd,Xb).call(this))},fd=new WeakSet,Jb=function(){V(this,cl)&&(clearTimeout(V(this,cl)),Oe(this,cl,void 0))},dd=new WeakSet,Zb=function(){V(this,fl)&&(clearInterval(V(this,fl)),Oe(this,fl,void 0))},hd=new WeakSet,e1=function(){const t=V(this,Hn).getQueryCache().build(V(this,Hn),this.options);if(t===V(this,pt))return;const n=V(this,pt);Oe(this,pt,t),Oe(this,id,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pg=new WeakSet,wM=function(t){mn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,In))}),V(this,Hn).getQueryCache().notify({query:V(this,pt),type:"observerResultsUpdated"})})},GP);function KW(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function aC(e,t){return KW(e,t)||e.state.data!==void 0&&t1(e,t,t.refetchOnMount)}function t1(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&A_(e,t)}return!1}function iC(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&A_(e,n)}function A_(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function XW(e,t){return!Vb(e.getCurrentResult(),t)}var SM=y.createContext(void 0),YW=e=>{const t=y.useContext(SM);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QW=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),j.jsx(SM.Provider,{value:e,children:t})),OM=y.createContext(!1),JW=()=>y.useContext(OM);OM.Provider;function ZW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var eV=y.createContext(ZW()),tV=()=>y.useContext(eV);function nV(e,t){return typeof e=="function"?e(...t):!!e}var rV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},aV=e=>{y.useEffect(()=>{e.clearReset()},[e])},iV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&nV(n,[e.error,r]),oV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},lV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function uV(e,t,n){const r=YW(n),a=JW(),i=tV(),o=r.defaultQueryOptions(e);o._optimisticResults=a?"isRestoring":"optimistic",oV(o),rV(o,i),aV(i);const[l]=y.useState(()=>new t(r,o)),s=l.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(u=>{const c=a?()=>{}:l.subscribe(mn.batchCalls(u));return l.updateResult(),c},[l,a]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),y.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),lV(o,s))throw sV(o,l,i);if(iV({result:s,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw s.error;return o.notifyOnChangeProps?s:l.trackResult(s)}function cV(e,t){return uV(e,GW,t)}const fV=async()=>{const e=await zt.get("/api/virtual-assistant/v1/senders");if(e.status===200)return e.data.senders;throw new Error("Invalid request")},dV=()=>cV({queryKey:["senders"],queryFn:fV}),hV=e=>{var{items:t,isDisabled:n,rowData:r,extraData:a,actionsToggle:i,popperProps:o={position:"end",direction:"down"},innerRef:l,firstActionItemRef:s,isOnOpenChangeDisabled:u=!1}=e,c=Q(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,d]=y.useState(!1),h=()=>{d(!f)},p=(g,b)=>{b&&(g.preventDefault(),b(g,a&&a.rowIndex,r,a))};return y.createElement(y.Fragment,null,t.filter(g=>g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,isOutsideDropdown:x}=g,O=Q(g,["title","itemKey","onClick","isOutsideDropdown"]);return typeof m=="string"?y.createElement(gt,Object.assign({onClick:S=>p(S,_)},O,{isDisabled:n,key:v||`outside_dropdown_${b}`,"data-key":v||`outside_dropdown_${b}`}),m):y.cloneElement(m,Object.assign({onClick:_,isDisabled:n},O))}),y.createElement(u_,Object.assign({isOpen:f,onOpenChange:u?void 0:g=>d(g),toggle:g=>i?i({onToggle:h,isOpen:f,isDisabled:n,toggleRef:g}):y.createElement(mu,{"aria-label":"Kebab toggle",ref:g,onClick:h,isExpanded:f,isDisabled:n,variant:"plain"},y.createElement(mB,null))},r&&r.actionProps,{ref:l},c,{popperProps:o}),y.createElement(iA,null,t.filter(g=>!g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,tooltipProps:x,isSeparator:O,shouldCloseOnClick:S=!0}=g,w=Q(g,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(O)return y.createElement(ZT,{key:v||b,"data-key":v||b});const C=y.createElement(c_,Object.assign({onClick:A=>{p(A,_),S&&h()}},w,{key:v||b,"data-key":v||b,ref:b===0?s:void 0}),m);return x!=null&&x.content?y.createElement($i,Object.assign({key:v||b},x),C):C}))))},CM=y.forwardRef((e,t)=>y.createElement(hV,Object.assign({},e,{innerRef:t})));CM.displayName="ActionsColumn";const Ee={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",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",expanded:"pf-m-expanded",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",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",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-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"},EM=e=>{var{className:t="",children:n=null,isOpen:r,onToggle:a}=e,i=Q(e,["className","children","isOpen","onToggle"]);return y.createElement(y.Fragment,null,r!==void 0&&y.createElement(gt,Object.assign({className:D(t,r&&Ee.modifiers.expanded)},i,{variant:"plain","aria-label":i["aria-label"]||"Details",onClick:a,"aria-expanded":r}),y.createElement("div",{className:D(Ee.tableToggleIcon)},y.createElement(f_,null))),n)};EM.displayName="CollapseColumn";const kM=e=>{var{className:t,onClick:n,"aria-label":r,id:a}=e,i=Q(e,["className","onClick","aria-label","id"]);return y.createElement(gt,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":r||"Draggable row draggable button",onClick:n},i),y.createElement(Cz,{"aria-hidden":!0}))};kM.displayName="DraggableCell";const pV={button:"pf-v5-c-button",inlineEdit:"pf-v5-c-inline-edit",inlineEditAction:"pf-v5-c-inline-edit__action",inlineEditEditableText:"pf-v5-c-inline-edit__editable-text",inlineEditGroup:"pf-v5-c-inline-edit__group",inlineEditInput:"pf-v5-c-inline-edit__input",inlineEditLabel:"pf-v5-c-inline-edit__label",inlineEditValue:"pf-v5-c-inline-edit__value",modifiers:{iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"}};var oC;(function(e){e.div="div",e.nav="nav"})(oC||(oC={}));var lC;(function(e){e.wrap="wrap",e.nowrap="nowrap",e.truncate="truncate",e.breakWord="breakWord",e.fitContent="fitContent"})(lC||(lC={}));const Vg=e=>{var{children:t=null,className:n="",variant:r="span",wrapModifier:a=null,tooltip:i="",tooltipProps:o={},onMouseEnter:l=()=>{},focused:s=!1,tooltipHasDefaultBehavior:u=!1}=e,c=Q(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=r,d=y.createRef(),[h,p]=y.useState(i),g=v=>{v.target.offsetWidth{v.offsetWidth{u||(s?b(d.current):p(""))},[s,u]),h!==""?y.createElement($i,Object.assign({triggerRef:d,content:h},!u&&{isVisible:!0},o),m):m};Vg.displayName="TableText";const n1=({children:e,info:t,className:n,variant:r="tooltip",popoverProps:a,tooltipProps:i,ariaLabel:o})=>y.createElement("div",{className:D(Ee.tableColumnHelp,n)},typeof e=="string"?y.createElement(Vg,null,e):e,y.createElement("span",{className:D(Ee.tableColumnHelpAction)},r==="tooltip"?y.createElement($i,Object.assign({content:t},i),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null))):y.createElement(l_,Object.assign({bodyContent:t},a),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null)))));n1.displayName="HeaderCellInfoWrapper";const mV={button:"pf-v5-c-button",modifiers:{grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableCheck:"pf-v5-c-table__check",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr"},Vn={dirRtl:"pf-v5-m-dir-rtl",dropdown:"pf-v5-c-dropdown",modifiers:{treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableCheck:"pf-v5-c-table__check",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",tableTreeViewDetailsToggle:"pf-v5-c-table__tree-view-details-toggle",tableTreeViewIcon:"pf-v5-c-table__tree-view-icon",tableTreeViewMain:"pf-v5-c-table__tree-view-main",tableTreeViewText:"pf-v5-c-table__tree-view-text",tableTreeViewTitleCell:"pf-v5-c-table__tree-view-title-cell",tableTreeViewTitleHeaderCell:"pf-v5-c-table__tree-view-title-header-cell"};var r1;(function(e){e.radio="radio",e.checkbox="checkbox"})(r1||(r1={}));const PM=e=>{var{children:t=null,className:n,onSelect:r=null,selectVariant:a,tooltip:i,tooltipProps:o}=e,l=Q(e,["children","className","onSelect","selectVariant","tooltip","tooltipProps"]);const s=y.createRef(),u=y.createElement(y.Fragment,null,y.createElement("label",null,y.createElement("input",Object.assign({},l,{ref:s,type:a,onChange:r}))),t);return i?y.createElement($i,Object.assign({triggerRef:s,content:i},o),u):u};PM.displayName="SelectColumn";const TM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i,tooltip:o})=>{const{extraParams:{onSelect:l,selectVariant:s,allRowsSelected:u,isHeaderSelectDisabled:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.showSelect&&!r.fullWidth)return{component:"td",isVisible:!0};const d=t!==void 0?t:-1;function h(b){const m=t===void 0?b.currentTarget.checked:r&&!r.selected;l&&l(b,m,d,r,f)}const p=Object.assign(Object.assign(Object.assign({},d!==-1?{checked:r&&!!r.selected,"aria-label":`Select row ${t}`}:{checked:u,"aria-label":"Select all rows"}),r&&(r.disableCheckbox||r.disableSelection)&&{disabled:!0,className:ti.checkInput}),!r&&c&&{disabled:!0});let g="check-all";return d!==-1&&s===r1.checkbox?g=`checkrow${t}`:d!==-1&&(g="radioGroup"),{className:D(Ee.tableCheck),component:d!==-1?"td":"th",isVisible:!r||!r.fullWidth,children:y.createElement(PM,Object.assign({},p,{selectVariant:s,onSelect:h,name:g,tooltip:o}),e)}};var tl;(function(e){e.asc="asc",e.desc="desc"})(tl||(tl={}));const AM=e=>{var{children:t=null,className:n="",isSortedBy:r=!1,onSort:a=null,sortDirection:i="",type:o="button",tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u}=e,c=Q(e,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior"]);let f;const[d,h]=y.useState(!1);return r?f=i===tl.asc?CB:wB:f=iB,y.createElement("button",Object.assign({},c,{type:o,className:D(n,Ee.tableButton),onClick:p=>a&&a(p),onFocus:()=>h(!0),onBlur:()=>h(!1)}),y.createElement("div",{className:D(n,Ee.tableButtonContent)},y.createElement(Vg,{tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u,focused:d},t),y.createElement("span",{className:D(Ee.tableSortIndicator)},y.createElement(f,null))))};AM.displayName="SortColumn";const gV=e=>()=>MM(y.createElement(n_,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:Ee.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e==null?void 0:e.onSort}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0}),MM=(e,{columnIndex:t,column:n,property:r,className:a,ariaLabel:i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s})=>{const{extraParams:{sortBy:u,onSort:c}}=n,f={columnIndex:t,column:n,property:r},d=u&&t===u.index;function h(p){let g;d?g=u.direction===tl.asc?tl.desc:tl.asc:g=u.defaultDirection?u.defaultDirection:tl.asc,c&&c(p,t,g,f)}return{className:D(Ee.tableSort,d&&Ee.modifiers.selected,a),"aria-sort":d?`${u.direction}ending`:"none",children:y.createElement(AM,{isSortedBy:d,sortDirection:d?u.direction:"",onSort:h,"aria-label":i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s},e)}},sC=(e,t,n,r)=>typeof e=="function"?e(n,r):t,vV=(e,t,n)=>(r,{rowData:a,column:i,rowIndex:o,columnIndex:l,column:{extraParams:{actionsToggle:s,actionsPopperProps:u}},property:c})=>{const f={rowIndex:o,columnIndex:l,column:i,property:c},d=sC(t,e,a,f),h=sC(n,a&&a.disableActions,a,f),p=d&&d.length>0?{children:y.createElement(CM,{items:d,isDisabled:h,rowData:a,extraData:f,actionsToggle:s,popperProps:u},r)}:{};return Object.assign({className:D(Ee.tableAction),style:{paddingRight:0},isVisible:!0},p)},yV=e=>e.toUpperCase().replace("-","").replace("_",""),uC=e=>e.replace(/([-_][a-z])/gi,yV);function bV(e){return e[0].toUpperCase()+e.substring(1)}const IM=e=>()=>({className:D(Ee.modifiers[typeof e=="number"?`width_${e}`:`width${bV(e)}`])}),RM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onCollapse:o,rowLabeledBy:l="simple-node",expandId:s="expand-toggle",allRowsExpanded:u,collapseAllAriaLabel:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i},d=t!==void 0?t:-1,h=Object.assign({},d!==-1?{isOpen:r==null?void 0:r.isOpen,"aria-labelledby":`${l}${d} ${s}${d}`}:{isOpen:u,"aria-label":c||"Expand all rows"});function p(g){const b=r?!r.isOpen:!u;o&&o(g,t,b,r,f)}return{className:((r==null?void 0:r.isOpen)!==void 0||d===-1)&&D(Ee.tableToggle),isVisible:!(r!=null&&r.fullWidth),children:y.createElement(EM,Object.assign({"aria-labelledby":`${l}${d} ${s}${d}`,onToggle:p,id:s+d},h),e)}},_V=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{if(!e)return null;const{title:o,props:l}=e,{extraParams:{onExpand:s,expandId:u="expand-toggle"}}=a,c={rowIndex:t,columnIndex:n,column:a,property:i};function f(d){s&&s(d,t,n,l.isOpen,r,c)}return{className:D(Ee.tableCompoundExpansionToggle,l.isOpen&&Ee.modifiers.expanded),children:l.isOpen!==void 0&&y.createElement("button",{type:"button",className:D(Ee.tableButton),onClick:f,"aria-expanded":l.isOpen,"aria-controls":l.ariaControls,id:`${u}-${t}-${n}`},y.createElement(Vg,null,o))}},xV=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"],$M=xV.filter(e=>Ee.modifiers[e]).reduce((e,t)=>{const n=t.replace("_2xl","2Xl");return e[n]=Ee.modifiers[t],e},{}),LM=(...e)=>()=>({className:D(...e)}),wV=({tooltip:e,tooltipProps:t,popover:n,popoverProps:r,className:a,ariaLabel:i})=>l=>({className:Ee.modifiers.help,children:e?y.createElement(n1,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:i,className:a},l):y.createElement(n1,{variant:"popover",info:n,popoverProps:r,ariaLabel:i,className:a},l)}),jM=e=>{var{className:t="",onFavorite:n,isFavorited:r,rowIndex:a}=e,i=Q(e,["className","onFavorite","isFavorited","rowIndex"]);const o=a===void 0?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return y.createElement(gt,Object.assign({variant:"plain",className:t,type:"button","aria-label":r?"Starred":"Not starred",onClick:n},o,i),y.createElement(n_,{"aria-hidden":!0}))};jM.displayName="FavoritesCell";const SV=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onFavorite:o}}=a,l={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.fullWidth)return{component:"td",isVisible:!0};function s(c){o&&o(c,r&&!r.favorited,t,r,l)}const u=r.favoritesProps||{};return{className:D(Ee.tableFavorite,r&&r.favorited&&Ee.modifiers.favorited),isVisible:!r||!r.fullWidth,children:y.createElement(jM,Object.assign({rowIndex:t,onFavorite:s,isFavorited:r&&r.favorited},u))}},OV=(e,t,n)=>(r,{rowIndex:a,rowData:i})=>{const{isExpanded:o,isDetailsExpanded:l,"aria-level":s,"aria-setsize":u,toggleAriaLabel:c,checkAriaLabel:f,showDetailsAriaLabel:d,isChecked:h,checkboxId:p,icon:g}=i.props,b=r.title||r,m=y.createElement("div",{className:D(Vn.tableTreeViewText),key:"tree-view-text"},g&&y.createElement("span",{className:D(Vn.tableTreeViewIcon),key:"tree-view-text-icon"},g),y.createElement("span",{className:Ee.tableText,key:"table-text"},b)),v=(_,x)=>{t(x,_,a,b,i)};return{component:"th",className:Vn.tableTreeViewTitleCell,children:s!==void 0?y.createElement("div",{className:D(Vn.tableTreeViewMain)},u>0&&y.createElement("span",{className:D(Vn.tableToggle),key:"table-toggle"},y.createElement(gt,{variant:"plain",onClick:_=>e&&e(_,a,b,i),className:D(o&&Ee.modifiers.expanded),"aria-expanded":o,"aria-label":c||`${o?"Collapse":"Expand"} row ${a}`},y.createElement("div",{className:D(Vn.tableToggleIcon)},y.createElement(f_,{"aria-hidden":"true"})))),!!t&&y.createElement("span",{className:D(Vn.tableCheck),key:"table-check"},y.createElement("label",{htmlFor:p||`checkbox_${a}`},y.createElement(ur,{id:p||`checkbox_${a}`,"aria-label":f||`Row ${a} checkbox`,isChecked:h,onChange:(_,x)=>v(x,_)}))),m,!!n&&y.createElement("span",{className:D(Vn.tableTreeViewDetailsToggle),key:"view-details-toggle"},y.createElement(gt,{variant:"plain","aria-expanded":l,"aria-label":d||"Show row details",onClick:_=>n&&n(_,a,b,i)},y.createElement("span",{className:`${Ee.table}__details-toggle-icon`},y.createElement(dB,{"aria-hidden":!0}))))):m}};var a1;(function(e){e.none="",e.grid="grid",e.gridMd="grid-md",e.gridLg="grid-lg",e.gridXl="grid-xl",e.grid2xl="grid-2xl"})(a1||(a1={}));var cC;(function(e){e.compact="compact"})(cC||(cC={}));const DM=y.createContext({registerSelectableRow:()=>{}}),CV=e=>{var t,n,{children:r,className:a,variant:i,borders:o=!0,isStickyHeader:l=!1,gridBreakPoint:s=a1.gridMd,"aria-label":u,role:c="grid",innerRef:f,ouiaId:d,ouiaSafe:h=!0,isTreeTable:p=!1,isNested:g=!1,isStriped:b=!1,isExpandable:m=!1,hasNoInset:v=!1,nestedHeaderColumnSpans:_,selectableRowCaptionText:x}=e,O=Q(e,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const S=y.useRef(null),w=f||S,[C,A]=y.useState(!1),[I,P]=y.useState();y.useEffect(()=>{if(document.addEventListener("keydown",U),w&&w.current&&w.current.classList.contains("pf-m-tree-view")){const $=w.current.querySelector("tbody");$&&FF(Array.from($.querySelectorAll("button, a, input")))}return function(){document.removeEventListener("keydown",U)}},[w,w.current]),y.useEffect(()=>{P(x?y.createElement("caption",null,x,y.createElement("div",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")):y.createElement("caption",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."))},[x]);const T=Ii("Table",d,h),E=(t=mV.modifiers)===null||t===void 0?void 0:t[uC(s||"").replace(/-?2xl/,"_2xl")],L=`treeView${s.charAt(0).toUpperCase()+s.slice(1)}`,N=(n=Vn.modifiers)===null||n===void 0?void 0:n[uC(L||"").replace(/-?2xl/,"_2xl")],U=$=>{if(g||!(w&&w.current&&w.current.classList.contains(Vn.modifiers.treeView))||w&&w.current!==$.target.closest(`.${Ee.table}:not(.pf-m-nested)`))return;const F=document.activeElement,k=$.key,X=Array.from(w.current.querySelectorAll("tbody tr")).filter(R=>!R.classList.contains("pf-m-disabled")&&!R.hidden);(k==="Space"||k==="Enter")&&(F.click(),$.preventDefault()),kT($,X,R=>R===F.closest("tr"),R=>R.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0],["button","input","a"],void 0,!1,!0,!1)},W=()=>{!C&&A(!0)};return y.createElement(DM.Provider,{value:{registerSelectableRow:W}},y.createElement("table",Object.assign({"aria-label":u,role:c,className:D(a,Ee.table,p?N:E,Ee.modifiers[i],!o&&Ee.modifiers.noBorderRows,l&&Ee.modifiers.stickyHeader,p&&Vn.modifiers.treeView,b&&Ee.modifiers.striped,m&&Ee.modifiers.expandable,v&&Vn.modifiers.noInset,g&&"pf-m-nested"),ref:w},p&&{role:"treegrid"},T,O),C&&I,r))},M_=y.forwardRef((e,t)=>y.createElement(CV,Object.assign({},e,{innerRef:t})));M_.displayName="Table";const EV=e=>{var{children:t,className:n,isExpanded:r,isEditable:a,isHidden:i=!1,isClickable:o=!1,isRowSelected:l=!1,isStriped:s=!1,isBorderRow:u=!1,innerRef:c,ouiaId:f,ouiaSafe:d=!0,resetOffset:h=!1,onRowClick:p,isSelectable:g,"aria-label":b}=e,m=Q(e,["children","className","isExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const v=Ii("TableRow",f,d),[_,x]=y.useState("");let O=null;p&&(O=A=>{(A.key==="Enter"||A.key===" ")&&(p(A),A.preventDefault())});const S=i||r!==void 0&&!r,{registerSelectableRow:w}=y.useContext(DM);y.useEffect(()=>{g&&!S?(x(`${l?"Row selected":""}`),w()):x(void 0)},[l,g,w,S]);const C=b||_;return y.createElement(y.Fragment,null,y.createElement("tr",Object.assign({className:D(Ee.tableTr,n,r!==void 0&&Ee.tableExpandableRow,r&&Ee.modifiers.expanded,a&&pV.modifiers.inlineEditable,o&&Ee.modifiers.clickable,l&&Ee.modifiers.selected,s&&Ee.modifiers.striped,u&&Ee.modifiers.borderRow,h&&Ee.modifiers.firstCellOffsetReset),hidden:S},o&&{tabIndex:0},{"aria-label":C,ref:c},p&&{onClick:p,onKeyDown:O},v,m),t))},Nf=y.forwardRef((e,t)=>y.createElement(EV,Object.assign({},e,{innerRef:t})));Nf.displayName="Tr";const kV=e=>{var{children:t,className:n,noWrap:r=!1,innerRef:a,hasNestedHeader:i}=e,o=Q(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return y.createElement("thead",Object.assign({className:D(Ee.tableThead,n,r&&Ee.modifiers.nowrap,i&&Ee.modifiers.nestedColumnHeader),ref:a},o),t)},I_=y.forwardRef((e,t)=>y.createElement(kV,Object.assign({},e,{innerRef:t})));I_.displayName="Thead";const PV=e=>{var{children:t,className:n,isExpanded:r,innerRef:a,isEvenStriped:i=!1,isOddStriped:o=!1}=e,l=Q(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return y.createElement("tbody",Object.assign({role:"rowgroup",className:D(Ee.tableTbody,n,r&&Ee.modifiers.expanded,o&&Ee.modifiers.striped,i&&Ee.modifiers.stripedEven),ref:a},l),t)},R_=y.forwardRef((e,t)=>y.createElement(PV,Object.assign({},e,{innerRef:t})));R_.displayName="Tbody";const zs={modifiers:{borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",right:"pf-m-right",inlineEnd:"pf-m-inline-end",left:"pf-m-left",inlineStart:"pf-m-inline-start"},scrollInnerWrapper:"pf-v5-c-scroll-inner-wrapper",scrollOuterWrapper:"pf-v5-c-scroll-outer-wrapper",table:"pf-v5-c-table",tableStickyCell:"pf-v5-c-table__sticky-cell"};function TV(){this.__data__=[],this.size=0}var AV=TV;function MV(e,t){return e===t||e!==e&&t!==t}var Fl=MV,IV=Fl;function RV(e,t){for(var n=e.length;n--;)if(IV(e[n][0],t))return n;return-1}var qg=RV,$V=qg,LV=Array.prototype,jV=LV.splice;function DV(e){var t=this.__data__,n=$V(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jV.call(t,n,1),--this.size,!0}var NV=DV,FV=qg;function zV(e){var t=this.__data__,n=FV(t,e);return n<0?void 0:t[n][1]}var BV=zV,UV=qg;function HV(e){return UV(this.__data__,e)>-1}var WV=HV,VV=qg;function qV(e,t){var n=this.__data__,r=VV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var GV=qV,KV=AV,XV=NV,YV=BV,QV=WV,JV=GV;function Lu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=cX}var F_=fX,dX=$_,hX=F_;function pX(e){return e!=null&&hX(e.length)&&!dX(e)}var Bl=pX,mX=Bl,gX=ji;function vX(e){return gX(e)&&mX(e)}var yX=vX,tm={exports:{}};function bX(){return!1}var _X=bX;tm.exports;(function(e,t){var n=ga,r=_X,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(tm,tm.exports);var Jg=tm.exports,xX=jo,wX=N_,SX=ji,OX="[object Object]",CX=Function.prototype,EX=Object.prototype,GM=CX.toString,kX=EX.hasOwnProperty,PX=GM.call(Object);function TX(e){if(!SX(e)||xX(e)!=OX)return!1;var t=wX(e);if(t===null)return!0;var n=kX.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&GM.call(n)==PX}var KM=TX;const Zt=at(KM);var AX=jo,MX=F_,IX=ji,RX="[object Arguments]",$X="[object Array]",LX="[object Boolean]",jX="[object Date]",DX="[object Error]",NX="[object Function]",FX="[object Map]",zX="[object Number]",BX="[object Object]",UX="[object RegExp]",HX="[object Set]",WX="[object String]",VX="[object WeakMap]",qX="[object ArrayBuffer]",GX="[object DataView]",KX="[object Float32Array]",XX="[object Float64Array]",YX="[object Int8Array]",QX="[object Int16Array]",JX="[object Int32Array]",ZX="[object Uint8Array]",eY="[object Uint8ClampedArray]",tY="[object Uint16Array]",nY="[object Uint32Array]",St={};St[KX]=St[XX]=St[YX]=St[QX]=St[JX]=St[ZX]=St[eY]=St[tY]=St[nY]=!0;St[RX]=St[$X]=St[qX]=St[LX]=St[GX]=St[jX]=St[DX]=St[NX]=St[FX]=St[zX]=St[BX]=St[UX]=St[HX]=St[WX]=St[VX]=!1;function rY(e){return IX(e)&&MX(e.length)&&!!St[AX(e)]}var aY=rY;function iY(e){return function(t){return e(t)}}var Zg=iY,nm={exports:{}};nm.exports;(function(e,t){var n=NM,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(nm,nm.exports);var Ad=nm.exports,oY=aY,lY=Zg,xC=Ad,wC=xC&&xC.isTypedArray,sY=wC?lY(wC):oY,e0=sY;function uY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var XM=uY,cY=Yg,fY=Fl,dY=Object.prototype,hY=dY.hasOwnProperty;function pY(e,t,n){var r=e[t];(!(hY.call(e,t)&&fY(r,n))||n===void 0&&!(t in e))&&cY(e,t,n)}var YM=pY,mY=YM,gY=Yg;function vY(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=kQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MQ=AQ,IQ=EQ,RQ=MQ,$Q=RQ(IQ),t8=$Q,LQ=Md,jQ=e8,DQ=t8;function NQ(e,t){return DQ(jQ(e,t,LQ),e+"")}var n8=NQ,FQ=Fl,zQ=Bl,BQ=t0,UQ=yr;function HQ(e,t,n){if(!UQ(n))return!1;var r=typeof t;return(r=="number"?zQ(n)&&BQ(t,n.length):r=="string"&&t in n)?FQ(n[t],e):!1}var z_=HQ,WQ=n8,VQ=z_;function qQ(e){return WQ(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&VQ(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r{if(i==="children")return r&&a?y.cloneElement(r,{children:a}):Object.assign(Object.assign({},a),r);if(i==="className")return D(r,a)}):Uv({},t)}const i8={name:"--pf-v5-c-table__sticky-cell--MinWidth",value:"12.5rem",var:"var(--pf-v5-c-table__sticky-cell--MinWidth)"},o8={name:"--pf-v5-c-table__sticky-cell--Left",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Left)"},l8={name:"--pf-v5-c-table__sticky-cell--Right",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Right)"},QQ=e=>{var{children:t,className:n,component:r="th",dataLabel:a,scope:i="col",textCenter:o=!1,sort:l=null,modifier:s,select:u=null,expand:c=null,tooltip:f="",tooltipProps:d,onMouseEnter:h=()=>{},width:p,visibility:g,innerRef:b,info:m,isStickyColumn:v=!1,hasRightBorder:_=!1,hasLeftBorder:x=!1,stickyMinWidth:O="120px",stickyLeftOffset:S,stickyRightOffset:w,isSubheader:C=!1,screenReaderText:A,"aria-label":I}=e,P=Q(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);!t&&!A&&!I&&console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=ye=>{ye.target.offsetWidth$M[ye]))():null;let R=($==null?void 0:$.children)||(F==null?void 0:F.children)||(k==null?void 0:k.children)||t,J=null;m&&(J=wV(m)(R),R=J.children);const ae=a8($,F,k,X,te,J),{children:ue=null,isVisible:ve=null,className:ke="",component:q=r}=ae,Z=Q(ae,["children","isVisible","className","component"]);y.useEffect(()=>{N(U.current.offsetWidthE(!1),"data-label":a,onMouseEnter:f!==null?W:h,scope:r==="th"?i:null,ref:U,"aria-label":I,className:D(Ee.tableTh,n,o&&Ee.modifiers.center,C&&Ee.tableSubhead,v&&zs.tableStickyCell,_&&zs.modifiers.borderRight,x&&zs.modifiers.borderLeft,s&&Ee.modifiers[s],ke)},Z,P,v&&{style:Object.assign({[i8.name]:O||void 0,[o8.name]:S||0,[l8.name]:w||0},P.style)}),R||A&&y.createElement("span",{className:"pf-v5-screen-reader"},A));return f!==null&&(f===""?typeof R=="string":!0)&&!($||F)&&T?y.createElement(y.Fragment,null,ie,y.createElement($i,Object.assign({triggerRef:U,content:f||f===""&&t,isVisible:!0},d))):ie},Cs=y.forwardRef((e,t)=>y.createElement(QQ,Object.assign({},e,{innerRef:t})));Cs.displayName="Th";const JQ=(e,{rowData:t})=>{const{id:n}=t;return{className:"",children:y.createElement(kM,{id:n})}},ZQ=e=>{var{children:t,className:n,isActionCell:r=!1,component:a="td",dataLabel:i,textCenter:o=!1,modifier:l,select:s=null,actions:u=null,expand:c=null,treeRow:f=null,compoundExpand:d=null,noPadding:h,width:p,visibility:g,innerRef:b,favorites:m=null,draggableRow:v=null,tooltip:_="",onMouseEnter:x=()=>{},isStickyColumn:O=!1,hasRightBorder:S=!1,hasLeftBorder:w=!1,stickyMinWidth:C="120px",stickyLeftOffset:A,stickyRightOffset:I}=e,P=Q(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=Re=>{Re.target.offsetWidth$M[Re]))():null,ve=f!==null?OV(f.onCollapse,f.onCheckChange,f.onToggleRowDetails)({title:t},{rowIndex:f.rowIndex,rowData:{props:f.props}}):null,ke=a8($,te,R,J,ae,ue,F,ve,k),{isVisible:q=null,children:Z=null,className:ie="",component:K=a}=ke,Te=Q(ke,["isVisible","children","className","component"]),ye=n&&n.includes(Vn.tableTreeViewTitleCell)||ie&&ie.includes(Vn.tableTreeViewTitleCell);y.useEffect(()=>{N(U.current.offsetWidthE(!1),onMouseEnter:_!==null?W:x,className:D(Ee.tableTd,n,r&&Ee.tableAction,o&&Ee.modifiers.center,h&&Ee.modifiers.noPadding,O&&zs.tableStickyCell,S&&zs.modifiers.borderRight,w&&zs.modifiers.borderLeft,Ee.modifiers[l],k&&Ee.tableDraggable,ie),ref:U},Te,P,O&&{style:Object.assign({[i8.name]:C||void 0,[o8.name]:A||0,[l8.name]:I||0},P.style)}),Z||t);return _!==null&&(_===""?typeof t=="string":!0)&&T?y.createElement(y.Fragment,null,Ae,y.createElement($i,{triggerRef:U,content:_||_===""&&t,isVisible:!0})):Ae},Es=y.forwardRef((e,t)=>y.createElement(ZQ,Object.assign({},e,{innerRef:t})));Es.displayName="Td";const B_=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("caption",Object.assign({className:D(Ee.tableCaption,n)},r),t)};B_.displayName="Caption";const eJ=({senders:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Senders list"}),j.jsx(I_,{children:j.jsx(Nf,{children:j.jsx(Cs,{children:"Sender id"})})}),j.jsx(R_,{children:e.map(t=>j.jsx(Nf,{children:j.jsx(Es,{children:j.jsx(di,{to:`/senders/${t.sender_id}`,children:t.sender_id})})},t.sender_id))})]}),Id=()=>j.jsx(hr,{children:j.jsx(TA,{children:j.jsx(Rg,{size:"xl"})})}),tJ=()=>{const e=dV();return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Senders"})]})}),e.isLoading?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx(eJ,{senders:e.data})," "]})]})};var s8="en",U_={},i1={};function u8(){return s8}function nJ(e){s8=e}function rJ(e){return U_[e]}function aJ(e){if(!e)throw new Error("No locale data passed");U_[e.locale]=e,i1[e.locale.toLowerCase()]=e.locale}function TC(e){if(U_[e])return e;if(i1[e.toLowerCase()])return i1[e.toLowerCase()]}function c8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return AC(e);case"best fit":return AC(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function AC(e){var t=TC(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=TC(e);if(r)return r}}var B={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return a==1&&i!=11?"one":a>=2&&a<=4&&(i<12||i>14)?"few":r&&a==0||a>=5&&a<=9||i>=11&&i<=14?"many":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2),o=r&&n[0].slice(-6);return a==1&&i!=11&&i!=71&&i!=91?"one":a==2&&i!=12&&i!=72&&i!=92?"two":(a==3||a==4||a==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&o==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":i&&o>=2&&o<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ca:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1&&a?"one":r!=0&&i==0&&a?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=a.slice(-1);return i&&(r==1||r==2||r==3)||i&&o!=4&&o!=6&&o!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return t==1&&a?"one":r>=2&&r<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],a=Number(n[0])==t;return t==1||!a&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-2),l=a.slice(-2);return i&&o==1||l==1?"one":i&&o==2||l==2?"two":i&&(o==3||o==4)||l==3||l==4?"few":"other"},dz:function(t){return"other"},es:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1?"one":r!=0&&i==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t>=0&&t<2?"one":r!=0&&i==0&&a?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return r==1&&a||r==0&&!a?"one":r==2&&a?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],a=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==t,o=r.slice(-1),l=r.slice(-2);return i&&o==1&&l!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",a=Number(n[0])==t,i=a&&n[0].slice(-1),o=a&&n[0].slice(-2);return i==1&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",a=r.length,i=Number(n[0])==t,o=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return i&&o==0||l>=11&&l<=19||a==2&&s>=11&&s<=19?"zero":o==1&&l!=11||a==2&&u==1&&s!=11||a!=2&&u==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return t==1&&a?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&r!=1&&(i==0||i==1)||a&&i>=5&&i<=9||a&&o>=12&&o<=14?"many":"other"},pt:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return r==0||r==1?"one":r!=0&&i==0&&a?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],a=Number(n[0])==t,i=a&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&i>=1&&i<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return a&&i==1&&o!=11?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&i==0||a&&i>=5&&i<=9||a&&o>=11&&o<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"";return t==0||t==1||r==0&&a==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-2);return a&&i==1?"one":a&&i==2?"two":a&&(i==3||i==4)||!a?"few":"other"}};B.as=B.am;B.az=B.af;B.bg=B.af;B.bn=B.am;B.brx=B.af;B.ce=B.af;B.chr=B.af;B.de=B.ast;B.ee=B.af;B.el=B.af;B.en=B.ast;B.et=B.ast;B.eu=B.af;B.fa=B.am;B.fi=B.ast;B.fil=B.ceb;B.fo=B.af;B.fur=B.af;B.fy=B.ast;B.gl=B.ast;B.gu=B.am;B.ha=B.af;B.hi=B.am;B.hr=B.bs;B.hsb=B.dsb;B.hu=B.af;B.hy=B.ff;B.ia=B.ast;B.id=B.dz;B.ig=B.dz;B.it=B.ca;B.ja=B.dz;B.jgo=B.af;B.jv=B.dz;B.ka=B.af;B.kea=B.dz;B.kk=B.af;B.kl=B.af;B.km=B.dz;B.kn=B.am;B.ko=B.dz;B.ks=B.af;B.ku=B.af;B.ky=B.af;B.lb=B.af;B.lkt=B.dz;B.lo=B.dz;B.ml=B.af;B.mn=B.af;B.mr=B.af;B.ms=B.dz;B.my=B.dz;B.nb=B.af;B.ne=B.af;B.nl=B.ast;B.nn=B.af;B.no=B.af;B.or=B.af;B.pcm=B.am;B.ps=B.af;B.rm=B.af;B.sah=B.dz;B.sc=B.ast;B.sd=B.af;B.sk=B.cs;B.so=B.af;B.sq=B.af;B.sr=B.bs;B.su=B.dz;B.sv=B.ast;B.sw=B.ast;B.ta=B.af;B.te=B.af;B.th=B.dz;B.ti=B.pa;B.tk=B.af;B.to=B.dz;B.tr=B.af;B.ug=B.af;B.uk=B.ru;B.ur=B.ast;B.uz=B.af;B.vi=B.dz;B.wae=B.af;B.wo=B.dz;B.xh=B.af;B.yi=B.ast;B.yo=B.dz;B.yue=B.dz;B.zh=B.dz;B.zu=B.am;const MC=B;function IC(e){return e==="pt-PT"?e:oJ(e)}var iJ=/^([a-z0-9]+)/i;function oJ(e){var t=e.match(iJ);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function lJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pJ(this,e);var r=n.numeric,a=n.style,i=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(vJ.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(a!==void 0){if(yJ.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(i!==void 0){if(bJ.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if(typeof t=="string"&&(t=[t]),t.push(u8()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");o1.supportedLocalesOf(this.locale).length>0?this.pluralRules=new o1(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=c8(this.locale,{localeMatcher:this.localeMatcher})}return mJ(e,[{key:"format",value:function(){var n=FC(arguments),r=jC(n,2),a=r[0],i=r[1];return this.getRule(a,i).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var n=FC(arguments),r=jC(n,2),a=r[0],i=r[1],o=this.getRule(a,i),l=o.indexOf("{0}");if(l<0)return[{type:"literal",value:o}];var s=[];return l>0&&s.push({type:"literal",value:o.slice(0,l)}),s=s.concat(this.formatNumberToParts(Math.abs(a)).map(function(u){return LC(LC({},u),{},{unit:i})})),l+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return c8(n,t)})};Co.addLocale=aJ;Co.setDefaultLocale=nJ;Co.getDefaultLocale=u8;Co.PluralRules=o1;var Hv='Invalid "unit" argument';function _J(e){if(l1(e)==="symbol")throw new TypeError(Hv);if(typeof e!="string")throw new RangeError("".concat(Hv,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),gJ.indexOf(e)<0)throw new RangeError("".concat(Hv,": ").concat(e));return e}var xJ='Invalid "number" argument';function wJ(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(xJ,": ").concat(e));return e}function SJ(e){return 1/e===-1/0}function OJ(e){return e<0||e===0&&SJ(e)}function FC(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[wJ(e[0]),_J(e[1])]}function rm(e){"@babel/helpers - typeof";return rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rm(e)}function CJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PJ(e,t){if(e){if(typeof e=="string")return UC(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 UC(e,t)}}function UC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)if(i.pop(),a=i.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function AJ(){var e=(typeof Intl>"u"?"undefined":s1(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function u1(e){"@babel/helpers - typeof";return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}function MJ(e){return RJ(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var IJ={}.constructor;function RJ(e){return u1(e)!==void 0&&e!==null&&e.constructor===IJ}var si=60,am=60*si,ml=24*am,c1=7*ml,f1=30.44*ml,f8=146097/400*ml;function Bs(e){switch(e){case"second":return 1;case"minute":return si;case"hour":return am;case"day":return ml;case"week":return c1;case"month":return f1;case"year":return f8}}function d8(e){return e.factor!==void 0?e.factor:Bs(e.unit||e.formatAs)||1}function zf(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function H_(e){switch(e){case"floor":return 1;default:return .5}}function d1(e){"@babel/helpers - typeof";return d1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d1(e)}function h8(e,t){var n=t.prevStep,r=t.timestamp,a=t.now,i=t.future,o=t.round,l;return n&&(n.id||n.unit)&&(l=e["threshold_for_".concat(n.id||n.unit)]),l===void 0&&e.threshold!==void 0&&(l=e.threshold,typeof l=="function"&&(l=l(a,i))),l===void 0&&(l=e.minTime),d1(l)==="object"&&(n&&n.id&&l[n.id]!==void 0?l=l[n.id]:l=l.default),typeof l=="function"&&(l=l(r,{future:i,getMinTimeForUnit:function(u,c){return HC(u,c||n&&n.formatAs,{round:o})}})),l===void 0&&e.test&&(e.test(r,{now:a,future:i})?l=0:l=9007199254740991),l===void 0&&(n?e.formatAs&&n.formatAs&&(l=HC(e.formatAs,n.formatAs,{round:o})):l=0),l===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),l}function HC(e,t,n){var r=n.round,a=Bs(e),i;if(t==="now"?i=Bs(e):i=Bs(t),a!==void 0&&i!==void 0)return a-i*(1-H_(r))}function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $J(e){for(var t=1;t0)return e[o-1]}return l}}}function p8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=h8(e[r],$J({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return a===void 0||Math.abs(t)=0:!0})}function FJ(e,t,n){var r=n.now,a=n.round;if(Bs(e)){var i=Bs(e)*1e3,o=t>r,l=Math.abs(t-r),s=zf(a)(l/i)*i;return o?s>0?l-s+BJ(a,i):l-s+1:-(l-s)+zJ(a,i)}}function zJ(e,t){return H_(e)*t}function BJ(e,t){return(1-H_(e))*t+1}var UJ=365*24*60*60*1e3,m8=1e3*UJ;function HJ(e,t,n){var r=n.prevStep,a=n.nextStep,i=n.now,o=n.future,l=n.round,s=e.getTime?e.getTime():e,u=function(p){return FJ(p,s,{now:i,round:l})},c=VJ(o?t:a,s,{future:o,now:i,round:l,prevStep:o?r:t});if(c!==void 0){var f;if(t&&(t.getTimeToNextUpdate&&(f=t.getTimeToNextUpdate(s,{getTimeToNextUpdateForUnit:u,getRoundFunction:zf,now:i,future:o,round:l})),f===void 0)){var d=t.unit||t.formatAs;d&&(f=u(d))}return f===void 0?c:Math.min(f,c)}}function WJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep,l=h8(e,{timestamp:t,now:r,future:a,round:i,prevStep:o});if(l!==void 0)return a?t-l*1e3+1:l===0&&t===r?m8:t+l*1e3}function VJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep;if(e){var l=WJ(e,t,{now:r,future:a,round:i,prevStep:o});return l===void 0?void 0:l-r}else return a?t-r+1:m8}var g8={};function ks(e){return g8[e]}function v8(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");g8[e.locale]=e}const qJ=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],h1={steps:qJ,labels:"long"};function VC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qC(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fZ(e,t){return pZ(e)||hZ(e,t)||_8(e,t)||dZ()}function dZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _8(e,t){if(e){if(typeof e=="string")return l6(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 l6(e,t)}}function l6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;mZ(this,e),typeof t=="string"&&(t=[t]),this.locale=TJ(t.concat(e.getDefaultLocale()),ks),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Co,this.IntlPluralRules=Co.PluralRules),this.relativeTimeFormatCache=new BC,this.pluralRulesCache=new BC}return gZ(e,[{key:"format",value:function(n,r,a){a||(r&&!xZ(r)?(a=r,r=void 0):a={}),r||(r=p1),typeof r=="string"&&(r=uZ(r));var i=vZ(n),o=this.getLabels(r.flavour||r.labels),l=o.labels,s=o.labelsType,u;r.now!==void 0&&(u=r.now),u===void 0&&a.now!==void 0&&(u=a.now),u===void 0&&(u=Date.now());var c=(u-i)/1e3,f=a.future||c<0,d=_Z(l,ks(this.locale).now,ks(this.locale).long,f);if(r.custom){var h=r.custom({now:u,date:new Date(i),time:i,elapsed:c,locale:this.locale});if(h!==void 0)return h}var p=bZ(r.units,l,d),g=a.round||r.round,b=jJ(r.gradation||r.steps||p1.steps,c,{now:u,units:p,round:g,future:f,getNextStep:!0}),m=fZ(b,3),v=m[0],_=m[1],x=m[2],O=this.formatDateForStep(i,_,c,{labels:l,labelsType:s,nowLabel:d,now:u,future:f,round:g})||"";if(a.getTimeToNextUpdate){var S=HJ(i,_,{nextStep:x,prevStep:v,now:u,future:f,round:g});return[O,S]}return O}},{key:"formatDateForStep",value:function(n,r,a,i){var o=this,l=i.labels,s=i.labelsType,u=i.nowLabel,c=i.now,f=i.future,d=i.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(m,v){return o.formatValue(v,m,{labels:l,future:f})},now:c,future:f});var h=r.unit||r.formatAs;if(!h)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(h==="now")return u;var p=Math.abs(a)/d8(r);r.granularity&&(p=zf(d)(p/r.granularity)*r.granularity);var g=-1*Math.sign(a)*zf(d)(p);switch(g===0&&(f?g=0:g=-0),s){case"long":case"short":case"narrow":return this.getFormatter(s).format(g,h);default:return this.formatValue(g,h,{labels:l,future:f})}}}},{key:"formatValue",value:function(n,r,a){var i=a.labels,o=a.future;return this.getFormattingRule(i,r,n,{future:o}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,a,i){var o=i.future;if(this.locale,n=n[r],typeof n=="string")return n;var l=a===0?o?"future":"past":a<0?"past":"future",s=n[l]||n;if(typeof s=="string")return s;var u=this.getPluralRules().select(Math.abs(a));return s[u]||s.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(l){switch(l){case"tiny":case"mini-time":return"mini";default:return l}}),n=n.concat("long");for(var r=ks(this.locale),a=cZ(n),i;!(i=a()).done;){var o=i.value;if(r[o])return{labelsType:o,labels:r[o]}}}}]),e}(),x8="en";Fr.getDefaultLocale=function(){return x8};Fr.setDefaultLocale=function(e){return x8=e};Fr.addDefaultLocale=function(e){if(u6)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");u6=!0,Fr.setDefaultLocale(e.locale),Fr.addLocale(e)};var u6;Fr.addLocale=function(e){v8(e),Co.addLocale(e)};Fr.locale=Fr.addLocale;Fr.addLabels=function(e,t,n){var r=ks(e);r||(v8({locale:e}),r=ks(e)),r[t]=n};function vZ(e){if(e.constructor===Date||yZ(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(im(e),", ").concat(e))}function yZ(e){return im(e)==="object"&&typeof e.getTime=="function"}function bZ(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(a){return a==="now"||r.indexOf(a)>=0})),r}function _Z(e,t,n,r){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:r?a.future:a.past;if(n&&n.second&&n.second.current)return n.second.current}function xZ(e){return typeof e=="string"||MJ(e)}const wZ={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};var w8={exports:{}},ft={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sn=typeof Symbol=="function"&&Symbol.for,W_=sn?Symbol.for("react.element"):60103,V_=sn?Symbol.for("react.portal"):60106,r0=sn?Symbol.for("react.fragment"):60107,a0=sn?Symbol.for("react.strict_mode"):60108,i0=sn?Symbol.for("react.profiler"):60114,o0=sn?Symbol.for("react.provider"):60109,l0=sn?Symbol.for("react.context"):60110,q_=sn?Symbol.for("react.async_mode"):60111,s0=sn?Symbol.for("react.concurrent_mode"):60111,u0=sn?Symbol.for("react.forward_ref"):60112,c0=sn?Symbol.for("react.suspense"):60113,wZ=sn?Symbol.for("react.suspense_list"):60120,f0=sn?Symbol.for("react.memo"):60115,d0=sn?Symbol.for("react.lazy"):60116,SZ=sn?Symbol.for("react.block"):60121,OZ=sn?Symbol.for("react.fundamental"):60117,CZ=sn?Symbol.for("react.responder"):60118,EZ=sn?Symbol.for("react.scope"):60119;function yr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case W_:switch(e=e.type,e){case q_:case s0:case r0:case i0:case a0:case c0:return e;default:switch(e=e&&e.$$typeof,e){case l0:case u0:case d0:case f0:case o0:return e;default:return t}}case V_:return t}}}function x8(e){return yr(e)===s0}ft.AsyncMode=q_;ft.ConcurrentMode=s0;ft.ContextConsumer=l0;ft.ContextProvider=o0;ft.Element=W_;ft.ForwardRef=u0;ft.Fragment=r0;ft.Lazy=d0;ft.Memo=f0;ft.Portal=V_;ft.Profiler=i0;ft.StrictMode=a0;ft.Suspense=c0;ft.isAsyncMode=function(e){return x8(e)||yr(e)===q_};ft.isConcurrentMode=x8;ft.isContextConsumer=function(e){return yr(e)===l0};ft.isContextProvider=function(e){return yr(e)===o0};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===W_};ft.isForwardRef=function(e){return yr(e)===u0};ft.isFragment=function(e){return yr(e)===r0};ft.isLazy=function(e){return yr(e)===d0};ft.isMemo=function(e){return yr(e)===f0};ft.isPortal=function(e){return yr(e)===V_};ft.isProfiler=function(e){return yr(e)===i0};ft.isStrictMode=function(e){return yr(e)===a0};ft.isSuspense=function(e){return yr(e)===c0};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===r0||e===s0||e===i0||e===a0||e===c0||e===wZ||typeof e=="object"&&e!==null&&(e.$$typeof===d0||e.$$typeof===f0||e.$$typeof===o0||e.$$typeof===l0||e.$$typeof===u0||e.$$typeof===OZ||e.$$typeof===CZ||e.$$typeof===EZ||e.$$typeof===SZ)};ft.typeOf=yr;_8.exports=ft;var kZ=_8.exports,G_=kZ,PZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},TZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},AZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},w8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K_={};K_[G_.ForwardRef]=AZ;K_[G_.Memo]=w8;function u6(e){return G_.isMemo(e)?w8:K_[e.$$typeof]||PZ}var MZ=Object.defineProperty,IZ=Object.getOwnPropertyNames,c6=Object.getOwnPropertySymbols,RZ=Object.getOwnPropertyDescriptor,$Z=Object.getPrototypeOf,f6=Object.prototype;function S8(e,t,n){if(typeof t!="string"){if(f6){var r=$Z(t);r&&r!==f6&&S8(e,r,n)}var a=IZ(t);c6&&(a=a.concat(c6(t)));for(var i=u6(e),o=u6(t),l=0;l2?t[2]:void 0;for(a&&kee(t[0],t[1],a)&&(r=1);++n+e;function Ree(e){return e*e}function $ee(e){return e*(2-e)}function v6(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Lee(e){return e*e*e}function jee(e){return--e*e*e+1}function y6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var X_=3,Dee=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(X_),Nee=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(X_),b6=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}(X_),A8=Math.PI,M8=A8/2;function Fee(e){return+e==1?1:1-Math.cos(e*M8)}function zee(e){return Math.sin(e*M8)}function _6(e){return(1-Math.cos(A8*e))/2}function Eo(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Bee(e){return Eo(1-+e)}function Uee(e){return 1-Eo(e)}function x6(e){return((e*=2)<=1?Eo(1-e):2-Eo(e-1))/2}function Hee(e){return 1-Math.sqrt(1-e*e)}function Wee(e){return Math.sqrt(1- --e*e)}function w6(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var S1=4/11,Vee=6/11,qee=8/11,Gee=3/4,Kee=9/11,Xee=10/11,Yee=15/16,Qee=21/22,Jee=63/64,Sh=1/S1/S1;function Zee(e){return 1-Uf(1-e)}function Uf(e){return(e=+e)l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&ine?new tne:void 0;for(i.set(e,t),i.set(t,e);++ft||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var Dae=jae,qv=Z_,Nae=p0,Fae=Ld,zae=Aae,Bae=Iae,Uae=Zg,Hae=Dae,Wae=Md,Vae=er;function qae(e,t,n){t.length?t=qv(t,function(i){return Vae(i)?function(o){return Nae(o,i.length===1?i[0]:i)}:i}):t=[Wae];var r=-1;t=qv(t,Uae(Fae));var a=zae(e,function(i,o,l){var s=qv(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return Bae(a,function(i,o){return Hae(i,o,n)})}var Gae=qae,Kae=Gae,B6=er;function Xae(e,t,n,r){return e==null?[]:(B6(t)||(t=t==null?[]:[t]),n=r?void 0:n,B6(n)||(n=n==null?[]:[n]),Kae(e,t,n))}var Yae=Xae;const m0=at(Yae);function ox(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Y8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jd(){}var Hf=.7,lm=1/Hf,Us="\\s*([+-]?\\d+)\\s*",Wf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",za="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qae=/^#([0-9a-f]{3,8})$/,Jae=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),Zae=new RegExp(`^rgb\\(${za},${za},${za}\\)$`),eie=new RegExp(`^rgba\\(${Us},${Us},${Us},${Wf}\\)$`),tie=new RegExp(`^rgba\\(${za},${za},${za},${Wf}\\)$`),nie=new RegExp(`^hsl\\(${Wf},${za},${za}\\)$`),rie=new RegExp(`^hsla\\(${Wf},${za},${za},${Wf}\\)$`),U6={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};ox(jd,Vf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:H6,formatHex:H6,formatHex8:aie,formatHsl:iie,formatRgb:W6,toString:W6});function H6(){return this.rgb().formatHex()}function aie(){return this.rgb().formatHex8()}function iie(){return Q8(this).formatHsl()}function W6(){return this.rgb().formatRgb()}function Vf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?V6(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ch(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ch(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=Jae.exec(e))?new Kn(t[1],t[2],t[3],1):(t=Zae.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=eie.exec(e))?Ch(t[1],t[2],t[3],t[4]):(t=tie.exec(e))?Ch(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=nie.exec(e))?K6(t[1],t[2]/100,t[3]/100,1):(t=rie.exec(e))?K6(t[1],t[2]/100,t[3]/100,t[4]):U6.hasOwnProperty(e)?V6(U6[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function V6(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Ch(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kn(e,t,n,r)}function oie(e){return e instanceof jd||(e=Vf(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function O1(e,t,n,r){return arguments.length===1?oie(e):new Kn(e,t,n,r??1)}function Kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ox(Kn,O1,Y8(jd,{brighter(e){return e=e==null?lm:Math.pow(lm,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(gl(this.r),gl(this.g),gl(this.b),sm(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:q6,formatHex:q6,formatHex8:lie,formatRgb:G6,toString:G6}));function q6(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function lie(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function G6(){const e=sm(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function sm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function K6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new la(e,t,n,r)}function Q8(e){if(e instanceof la)return new la(e.h,e.s,e.l,e.opacity);if(e instanceof jd||(e=Vf(e)),!e)return new la;if(e instanceof la)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n0&&s<1?0:o,new la(o,l,s,e.opacity)}function sie(e,t,n,r){return arguments.length===1?Q8(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ox(la,sie,Y8(jd,{brighter(e){return e=e==null?lm:Math.pow(lm,e),new la(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new la(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,a=2*n-r;return new Kn(Gv(e>=240?e-240:e+120,a,r),Gv(e,a,r),Gv(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new la(X6(this.h),Eh(this.s),Eh(this.l),sm(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=sm(this.opacity);return`${e===1?"hsl(":"hsla("}${X6(this.h)}, ${Eh(this.s)*100}%, ${Eh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function X6(e){return e=(e||0)%360,e<0?e+360:e}function Eh(e){return Math.max(0,Math.min(1,e||0))}function Gv(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 lx=e=>()=>e;function uie(e,t){return function(n){return e+n*t}}function cie(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 fie(e){return(e=+e)==1?J8:function(t,n){return n-t?cie(t,n,e):lx(isNaN(t)?n:t)}}function J8(e,t){var n=t-e;return n?uie(e,n):lx(isNaN(e)?t:e)}const Y6=function e(t){var n=fie(t);function r(a,i){var o=n((a=O1(a)).r,(i=O1(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=J8(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=l(c),a.b=s(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function die(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:um(r,a)})),n=Kv.lastIndex;return n2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,a=typeof t=="function"?t.apply(this,arguments):t;return Xa(r,a)(n)}}},tI=function(e,t){var n=function(u,c){return u===c||!cm(u)||!cm(c)?Z8(u,c):typeof u=="function"||typeof c=="function"?eI(u,c):typeof u=="object"&&Zt(u)||typeof c=="object"&&Zt(c)?tI(u,c):Xa(u,c)},r=function(u){return Array.isArray(u)?m0(u,"key"):u},a={},i={},o=e,l=t,s;(o===null||typeof o!="object")&&(o={}),(l===null||typeof l!="object")&&(l={});for(s in l)s in o?a[s]=n(r(o[s]),r(l[s])):i[s]=l[s];return function(u){for(s in a)i[s]=a[s](u);return i}},xie=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Xa(n(e),n(t))},wie=function(e,t){return e===t||!cm(e)||!cm(t)?Z8(e,t):typeof e=="function"||typeof t=="function"?eI(e,t):Zt(e)||Zt(t)?tI(e,t):typeof e=="string"||typeof t=="string"?xie(e,t):Xa(e,t)},xu=0,Ac=0,pc=0,nI=1e3,fm,Mc,dm=0,Al=0,g0=0,qf=typeof performance=="object"&&performance.now?performance:Date,rI=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function hm(){return Al||(rI(Sie),Al=qf.now()+g0)}function Sie(){Al=0}function E1(){this._call=this._time=this._next=null}E1.prototype=aI.prototype={constructor:E1,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?hm():+n)+(t==null?0:+t),!this._next&&Mc!==this&&(Mc?Mc._next=this:fm=this,Mc=this),this._call=e,this._time=n,k1()},stop:function(){this._call&&(this._call=null,this._time=1/0,k1())}};function aI(e,t,n){var r=new E1;return r.restart(e,t,n),r}function Oie(){hm(),++xu;for(var e=fm,t;e;)(t=Al-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xu}function Q6(){Al=(dm=qf.now())+g0,xu=Ac=0;try{Oie()}finally{xu=0,Eie(),Al=0}}function Cie(){var e=qf.now(),t=e-dm;t>nI&&(g0-=t,dm=e)}function Eie(){for(var e,t=fm,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:fm=n);Mc=e,k1(r)}function k1(e){if(!xu){Ac&&(Ac=clearTimeout(Ac));var t=e-Al;t>24?(e<1/0&&(Ac=setTimeout(Q6,e-qf.now()-g0)),pc&&(pc=clearInterval(pc))):(pc||(dm=qf.now(),pc=setInterval(Cie,nI)),xu=1,rI(Q6))}}function kie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J6(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1){h({data:b.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),m.current&&p.unsubscribe(m.current),g.current.shift(),_();return}h({data:b.current(v(S)),animationInfo:{progress:S,animating:S<1}})}};return s(d.data,d.animationInfo)},Die=j8,Nie=0;function Fie(e){var t=++Nie;return Die(e)+t}var zie=Fie;const y0=at(zie);function Bie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tE(e,t){for(var n=0;n"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 pm(e){return pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pm(e)}var oI=function(e){Hie(n,e);var t=Wie(n);function n(r){var a;return Bie(this,n),a=t.call(this,r),a.map=void 0,a.index=void 0,a.portalRegister=function(){return++a.index},a.portalUpdate=function(i,o){a.map[i]=o,a.forceUpdate()},a.portalDeregister=function(i){delete a.map[i],a.forceUpdate()},a.map={},a.index=1,a}return Uie(n,[{key:"getChildren",value:function(){var a=this;return Object.keys(this.map).map(function(i){var o=a.map[i];return o&&M.cloneElement(o,{key:i})})}},{key:"render",value:function(){return M.createElement("svg",this.props,this.getChildren())}}]),n}(M.Component);oI.displayName="Portal";var ux=M.createContext({});ux.displayName="PortalContext";var Kie=KM,Xie=h0,Yie=t0,nE=vr,Qie=$d;function Jie(e,t,n,r){if(!nE(e))return e;t=Xie(t,e);for(var a=-1,i=t.length,o=i-1,l=e;l!=null&&++a0&&n(l)?t>1?sI(l,t-1,n,r,a):doe(a,l):r||(a[a.length]=l)}return a}var poe=sI,moe=poe;function goe(e){var t=e==null?0:e.length;return t?moe(e,1):[]}var voe=goe,yoe=voe,boe=JM,_oe=ZM;function xoe(e){return _oe(boe(e,void 0,yoe),e+"")}var woe=xoe,Soe=loe,Ooe=woe,Coe=Ooe(function(e,t){return e==null?{}:Soe(e,t)}),Eoe=Coe;const Gf=at(Eoe);function koe(e,t){var n=t!=="x",r=Wt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function Poe(e,t){if(t==="x"){var n=vt(e.startAngle||0),r=vt(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Ha(e)]}function uI(e){return Object.entries(e).reduce(function(t,n){return t[n[1]]=n[0],t},{})}function Uu(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 cx(e){var t=function(h){return h!==void 0},n=e._x,r=e._x1,a=e._x0,i=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(i)?i:c,x0:t(a)?a:n,y:t(u)?u:f,y0:t(s)?s:o};return me({},d,e)}function Dd(e,t){var n=e.scale,r=e.polar,a=e.horizontal,i=cx(t),o=e.origin||{x:0,y:0},l=a?n.y(i.y):n.x(i.x),s=a?n.y(i.y0):n.x(i.x0),u=a?n.x(i.x):n.y(i.y),c=a?n.x(i.x0):n.y(i.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 Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"padding",n=e[t],r=typeof n=="number"?n:0,a=typeof n=="object"?n:{};return{top:a.top||r,bottom:a.bottom||r,left:a.left||r,right:a.right||r}}function fx(e){var t=e&&e.type&&e.type.role;return t==="tooltip"}function dx(e,t){var n=e.theme,r=n===void 0?{}:n,a=e.labelComponent,i=r[t]&&r[t].style||{};if(!fx(a))return i;var o=r.tooltip&&r.tooltip.style||{},l=me({},o,i.labels);return me({},{labels:l},i)}function b0(e,t){var n="100%",r="100%";if(!e)return me({parent:{height:r,width:n}},t);var a=e.data,i=e.labels,o=e.parent,l=t&&t.parent||{},s=t&&t.labels||{},u=t&&t.data||{};return{parent:me({},o,l,{width:n,height:r}),labels:me({},i,s),data:me({},a,u)}}function le(e,t){return Xe(e)?e(t):e}function _t(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(function(n){return Xe(e[n])})?e:Object.keys(e).reduce(function(n,r){return n[r]=le(e[r],t),n},{})}function vt(e){return typeof e=="number"?e*(Math.PI/180):e}function bi(e){return typeof e=="number"?e/(Math.PI/180):e}function Ha(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-a-i)/2}function Nd(e){var t=e.width,n=e.height,r=Wt(e),a=r.top,i=r.bottom,o=r.left,l=r.right,s=Math.min(t-o-l,n-a-i)/2,u=t/2+o-l,c=n/2+a-i;return{x:u+s>t?s+o-l:u,y:c+s>n?s+a-i:c}}function ln(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?Poe(e,t):koe(e,t)}function Wa(e){return e==null}function Xe(e){return typeof e=="function"}function _0(e){return Xe(e)?e:e==null?function(t){return t}:K8(e)}function on(e,t,n){var r=e.theme&&e.theme[n]?e.theme[n]:{},a=Uu(r,["style"]),i=Toe(e),o=i===void 0?{}:{horizontal:i};return me(o,e,a,t)}function cI(e,t){var n=e==="x"?"y":"x";return t?n:e}function hx(e,t,n){var r=t?e:0,a=t||e;a||(a=0);var i=a-r,o=Math.abs(i),l=i/o||1,s=n||1,u=Math.max(Math.ceil(o/s),0);return Array.from(Array(u),function(c,f){return r+f*l*s})}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(u,c){return u.concat(c)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],o=function(u,c,f){return u.reduce(function(d,h,p){var g=d,b=h.type&&h.type.role,m=h.props.name||"".concat(b,"-").concat(c[p]);if(h.props&&h.props.children){var v=Object.assign({},h.props,Gf(n,i)),_=h.type&&h.type.role==="stack"&&Xe(h.type.getChildren)?h.type.getChildren(v):M.Children.toArray(h.props.children).map(function(w){var C=Object.assign({},w.props,Gf(v,i));return M.cloneElement(w,C)}),x=_.map(function(w,C){return"".concat(m,"-").concat(C)}),O=o(_,x,h);g=a(g,O)}else{var S=t(h,m,f);S&&(g=a(g,S))}return g},r)},l=e.filter(y.isValidElement),s=l.map(function(u,c){return c});return o(l,s)}function Toe(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;var t=function(n){return n.reduce(function(r,a){var i=a.props||{};return r||i.horizontal||!i.children?r||i.horizontal:t(M.Children.toArray(i.children))},!1)};return t(M.Children.toArray(e.children))}function iE(e,t){return Roe(e)||Ioe(e,t)||Moe(e,t)||Aoe()}function Aoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Moe(e,t){if(e){if(typeof e=="string")return oE(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 oE(e,t)}}function oE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 gm(e){return gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gm(e)}var En=function(e){Uoe(n,e);var t=Hoe(n);function n(r){var a;return zoe(this,n),a=t.call(this,r),a.containerId=void 0,a.portalRef=void 0,a.containerRef=void 0,a.shouldHandleWheel=void 0,a.savePortalRef=function(i){return a.portalRef=i,i},a.portalUpdate=function(i,o){return a.portalRef.portalUpdate(i,o)},a.portalRegister=function(){return a.portalRef.portalRegister()},a.portalDeregister=function(i){return a.portalRef.portalDeregister(i)},a.saveContainerRef=function(i){return Xe(a.props.containerRef)&&a.props.containerRef(i),a.containerRef=i,i},a.handleWheel=function(i){return i.preventDefault()},a.containerId=!Ff(r)||r.containerId===void 0?y0("victory-container-"):r.containerId,a.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),a}return Boe(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(a){return"".concat(this.containerId,"-").concat(a)}},{key:"getChildren",value:function(a){return a.children}},{key:"getOUIAProps",value:function(a){var i=a.ouiaId,o=a.ouiaSafe,l=a.ouiaType;return as(as(as({},i&&{"data-ouia-component-id":i}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(a,i,o){var l=a.title,s=a.desc,u=a.portalComponent,c=a.className,f=a.width,d=a.height,h=a.portalZIndex,p=a.responsive,g=this.getChildren(a),b=p?{width:"100%",height:"100%"}:{width:f,height:d},m=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},b),v=Object.assign({zIndex:h,position:"absolute",top:0,left:0},b),_=Object.assign({pointerEvents:"all"},b),x=Object.assign({overflow:"visible"},b),O={width:f,height:d,viewBox:i.viewBox,preserveAspectRatio:i.preserveAspectRatio,style:x};return M.createElement(ux.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},M.createElement("div",mm({style:me({},o,m),className:c,ref:this.saveContainerRef},this.getOUIAProps(a)),M.createElement("svg",mm({},i,{style:_}),l?M.createElement("title",{id:this.getIdForElement("title")},l):null,s?M.createElement("desc",{id:this.getIdForElement("desc")},s):null,g),M.createElement("div",{style:v},M.cloneElement(u,as(as({},O),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var a=this.props,i=a.width,o=a.height,l=a.responsive,s=a.events,u=a.title,c=a.desc,f=a.tabIndex,d=a.preserveAspectRatio,h=a.role,p=l?this.props.style:Uu(this.props.style,["height","width"]),g=Ya(this.props),b=Object.assign(as({width:i,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(i," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},g),s);return this.renderContainer(this.props,b,p)}}]),n}(M.Component);En.displayName="VictoryContainer";En.role="container";En.defaultProps={className:"VictoryContainer",portalComponent:M.createElement(oI,null),portalZIndex:99,responsive:!0,role:"img"};En.contextType=v0;function Goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cE(e,t){for(var n=0;n"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 vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}var ko=function(e){Xoe(n,e);var t=Yoe(n);function n(){var r;Goe(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ale(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var x0=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=rle(e,ele),l=tle({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("rect",ym({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("rect",ym({},l,{ref:t}))}),ile=["children","desc","id","origin","tabIndex","title"];function dE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ole(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ule(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var cle=function(e){var t,n=e.children,r=e.desc,a=e.id;e.origin;var i=e.tabIndex,o=e.title,l=sle(e,ile),s=ole({id:(t=le(a,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(i,e)},l);return M.createElement("text",s,o&&M.createElement("title",null,o),r&&M.createElement("desc",null,r),n)},fle=["desc","id","tabIndex","origin"];function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var gle=function(e){var t;e.desc;var n=e.id,r=e.tabIndex;e.origin;var a=ple(e,fle),i=dle({id:(t=le(n,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(r,e)},a);return M.createElement("tspan",i)};function vle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},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 yle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style,r=e.horizontal,a=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"}function ble(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function _le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.horizontal,r=e.style,a=r.labels||{},i=le(a.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*i:0,y:n?0:-1*o*i}}function xle(e,t){if(e.polar)return{};var n=_le(e,t);return{dx:n.x,dy:n.y}}function wle(e,t){var n=e.polar,r=Dd(e,t),a=r.x,i=r.y;if(!n)return{x:a,y:i};var o=Sle(e,t);return{x:a+o.x,y:i+o.y}}function Sle(e,t){var n=e.style,r=Kf(e,t),a=n.labels||{},i=le(a.padding,e)||0,o=vt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}function mx(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,a=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||a}function Ole(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function vx(e,t){var n=mx(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function dI(e,t){var n=mx(e),r=Ole(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function yx(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var a=t!==void 0?t%360:Kf(e,r),i=a>90&&a<180||a>270?1:-1,o=0;a===0||a===180?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a);var l=n==="perpendicular"?0:90;return o+i*l}function Kf(e,t){var n=cx(t),r=n.x;return bi(e.scale.x(r))%360}function hI(e,t){var n=e.scale,r=e.data,a=e.style,i=e.horizontal,o=e.polar,l=e.width,s=e.height,u=e.theme,c=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=Kf(e,d),p=o?vx(e,h):yle(e,d),g=o?dI(e,h):vle(e,d),b=ble(e,d),m=gx(e,d,t),v=mx(e),_=wle(e,d),x=_.x,O=_.y,S=xle(e,d),w=S.dx,C=S.dy,A={angle:b,data:r,datum:d,disableInlineStyles:f,horizontal:i,index:t,polar:o,scale:n,labelPlacement:v,text:m,textAnchor:p,verticalAnchor:g,x,y:O,dx:w,dy:C,width:l,height:s,style:a.labels};if(!fx(c))return A;var I=u&&u.tooltip||{};return me({},A,Uu(I,["style"]))}var M1=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0)return n.reduce(function(l,s){return[l,M1(s)].join(" ")},M1(e)).trim();if(e==null||typeof e=="string")return e;var a=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];a.push("".concat(i,"(").concat(o,")"))}return a.join(" ").trim()};function bx(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 Cle(e,t){return Ple(e)||kle(e,t)||pI(e,t)||Ele()}function Ele(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Ple(e){if(Array.isArray(e))return e}function Tle(e){return Ile(e)||Mle(e)||pI(e)||Ale()}function Ale(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pI(e,t){if(e){if(typeof e=="string")return I1(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 I1(e,t)}}function Mle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ile(e){if(Array.isArray(e))return I1(e)}function I1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";return!r||n?Dle(e,t):Nle(e,t)}},Ml=function(e,t){return Fle.impl(e,t)};function yE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},vI=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!Mt(t)||Array.isArray(n)&&!Mt(n)},Vle=function(e,t){if(t.disableInlineStyles){var n=_t(e,t);return{fontSize:_E(n)}}var r=function(a){var i=_t(a?me({},a,vl):vl,t);return Object.assign({},i,{fontSize:_E(i)})};return Array.isArray(e)&&!Mt(e)?e.map(function(a){return r(a)}):r(e)},qle=function(e,t){if(e)return Array.isArray(e)&&!Mt(e)?e.map(function(n){return _t(n,t)}):_t(e,t)},Gle=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(function(n){var r=le(n,e);return Wt({padding:r})});var t=le(e.backgroundPadding,e);return Wt({padding:t})},Kle=function(e){var t=le(e.lineHeight,e);return Array.isArray(t)&&Mt(t)?[1]:t},Xle=function(e,t){if(e!=null){if(Array.isArray(e))return e.map(function(r){return le(r,t)});var n=le(e,t);if(n!=null)return Array.isArray(n)?n:"".concat(n).split(` -`)}},Yle=function(e,t,n){var r=e.dy?le(e.dy,e):0,a=e.inline?1:e.text.length,i=le(e.capHeight,e),o=t?le(t,e):"middle",l=ef(Array(a).keys()).map(function(c){return $n(e.style,c).fontSize}),s=ef(Array(a).keys()).map(function(c){return $n(n,c)});if(o==="start")return r+(i/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(i/2-s[0]/2)*l[0]:r+i/2*l[0];if(a===1)return o==="end"?r+(i/2+(.5-a)*s[0])*l[0]:r+(i/2+(.5-a/2)*s[0])*l[0];var u=ef(Array(a).keys()).reduce(function(c,f){return c+(i/2+(.5-a)*s[f])*l[f]/a},0);return o==="end"?r+u:r+u/2+i/2*s[a-1]*l[a-1]},Qle=function(e,t,n){var r=e.polar,a=$n(e.style),i=r?yx(e):0,o=a.angle===void 0?le(e.angle,e):a.angle,l=o===void 0?i:o,s=e.transform||a.transform,u=s&&le(s,e),c=l&&{rotate:[l,t,n]};return u||l?M1(u,c):void 0},yI=function(e,t){var n=e.direction,r=e.textAnchor,a=e.x,i=e.dx;if(n==="rtl")return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:return a+(i||0)}},bI=function(e,t){var n=e.verticalAnchor,r=e.y,a=e.originalDy,i=a===void 0?0:a,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},Jle=function(e,t){var n=e.dx,r=n===void 0?0:n,a=e.transform,i=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,u=e.capHeight,c=t.map(function(b){return b.textSize}),f=l?Math.max.apply(Math,ef(c.map(function(b){return b.height}))):c.reduce(function(b,m,v){var _=v?0:u/2;return b+m.height*(t[v].lineHeight-_)},0),d=l?c.reduce(function(b,m,v){var _=v?r:0;return b+m.width+_},0):Math.max.apply(Math,ef(c.map(function(b){return b.width}))),h=yI(e,d),p=bI(e,f),g={key:"background",height:f+s.top+s.bottom,style:o,transform:a,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:p};return M.cloneElement(i,me({},i.props,g))},Zle=function(e,t,n){var r=e.textAnchor,a=t.map(function(l){return l.widthWithPadding}),i=a.reduce(function(l,s){return l+s},0),o=-i/2;switch(r){case"start":return a.reduce(function(l,s,u){return un?l-s:l},0);default:return a.reduce(function(l,s,u){var c=ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}function wm(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function Po(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function dse(e){return _I(e)&&e.every(function(t){return typeof t=="string"})}function Sm(e,t){return e&&t?e.filter(function(n){return!t.includes(n)}):[]}function xE(e){return _I(e)&&e.every(Array.isArray)}function xI(e){return e.filter(function(t){return t!==void 0})}function pa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"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 Om(e){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Om(e)}var wx=function(e){kse(n,e);var t=Pse(n);function n(r,a){var i;Cse(this,n),i=t.call(this,r,a),i.continuous=void 0,i.timer=void 0,i.transitionProps=void 0,i.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=i.props.children,l=o.props.polar;return i.continuous=!l&&o.type&&o.type.continuous===!0,i.timer=i.context.transitionTimer,i}return Ese(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(a){var i=this;return Ba(this.props,a)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,a),function(){return i.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(a,i){var o=a.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?a:null;return{oldProps:s,nextProps:i}}}else return{};var u=M.Children.toArray(a.children),c=M.Children.toArray(i.children),f=SI(u,c),d=f.nodesWillExit,h=f.nodesWillEnter,p=f.childrenTransitions,g=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:p,nodesShouldEnter:g,oldProps:d?a:null,nextProps:i}}},{key:"getDomainFromChildren",value:function(a,i){var o=function(f){return f.reduce(function(d,h){if(h.type&&Xe(h.type.getDomain)){var p=h.props&&h.type.getDomain(h.props,i);return p?d.concat(p):d}else if(h.props&&h.props.children)return d.concat(o(M.Children.toArray(h.props.children)));return d},[])},l=M.Children.toArray(a.children)[0],s=l.props||{},u=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[i];if(!s.children&&u)return u;var c=o([l]);return c.length===0?[0,1]:[pr(c),pa(c)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(a){var i,o=(i=a.animate)===null||i===void 0?void 0:i.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||a:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||a}},{key:"getClipWidth",value:function(a,i){var o=function(){var s=ln(i.props,"x");return s?Math.abs(s[1]-s[0]):a.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var a,i=this,o=this.pickProps(),l=(a=this.props.animate)!==null&&a!==void 0&&a.getTransitions?this.props.animate.getTransitions:OI(o,this.state,function(b){return i.setState(b)}),s=M.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=me({domain:c,clipWidth:f},u,s.props),h=o.animationWhitelist||[],p=h.concat(["clipWidth"]),g=p.length?Gf(d,p):d;return M.createElement(jie,D1({},d.animate,{data:g}),function(b){if(s.props.groupComponent){var m=i.continuous?M.cloneElement(s.props.groupComponent,{clipWidth:b.clipWidth||0}):s.props.groupComponent;return M.cloneElement(s,me({animate:null,animating:!0,groupComponent:m},b,d))}return M.cloneElement(s,me({animate:null,animating:!0},b,d))})}}]),n}(M.Component);wx.displayName="VictoryTransition";wx.contextType=v0;var Ise=function(e){var t;return M.createElement("defs",null,M.createElement("clipPath",{id:(t=e.clipId)===null||t===void 0?void 0:t.toString()},e.children))},Rse=["desc","id","tabIndex","origin"];function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dse(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var CI=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=jse(e,Rse),l=$se({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("circle",Cm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("circle",Cm({},l,{ref:t}))});function EE(e){return Bse(e)||zse(e)||Fse(e)||Nse()}function Nse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fse(e,t){if(e){if(typeof e=="string")return F1(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 F1(e,t)}}function zse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bse(e){if(Array.isArray(e))return F1(e)}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}var w0=function(e){Vse(n,e);var t=qse(n);function n(r){var a;return Hse(this,n),a=t.call(this,r),a.clipId=void 0,a.clipId=!Ff(r)||r.clipId===void 0?y0("victory-clip-"):r.clipId,a}return Wse(n,[{key:"calculateAttributes",value:function(a){var i=a.polar,o=a.origin,l=a.clipWidth,s=l===void 0?0:l,u=a.clipHeight,c=u===void 0?0:u,f=a.translateX,d=f===void 0?0:f,h=a.translateY,p=h===void 0?0:h,g=Wt({padding:a.clipPadding}),b=a.radius||Ha(a);return{x:(i?o.x:d)-g.left,y:(i?o.y:p)-g.top,width:Math.max((i?b:s)+g.left+g.right,0),height:Math.max((i?b:c)+g.top+g.bottom,0)}}},{key:"renderClippedGroup",value:function(a,i){var o=Ya(a),l=a.style,s=a.events,u=a.transform,c=a.children,f=a.className,d=a.groupComponent,h=a.tabIndex,p=this.renderClipComponent(a,i),g=Object.assign({className:f,style:l,transform:u,key:"clipped-group-".concat(i),clipPath:"url(#".concat(i,")")},s);return M.cloneElement(d,PE(PE({},g),{},{tabIndex:h},o),[p].concat(EE(M.Children.toArray(c))))}},{key:"renderGroup",value:function(a){var i=a.style,o=a.events,l=a.transform,s=a.children,u=a.className,c=a.groupComponent,f=a.tabIndex;return M.cloneElement(c,Object.assign({className:u,style:i,transform:l,"aria-label":a["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(a,i){var o=a.polar,l=a.origin,s=a.clipWidth,u=s===void 0?0:s,c=a.clipHeight,f=c===void 0?0:c,d=a.translateX,h=d===void 0?0:d,p=a.translateY,g=p===void 0?0:p,b=a.circleComponent,m=a.rectComponent,v=a.clipPathComponent,_=Wt({padding:a.clipPadding}),x=_.top,O=_.bottom,S=_.left,w=_.right,C;if(o){var A=a.radius||Ha(a),I={r:Math.max(A+S+w,A+x+O,0),cx:l.x-S,cy:l.y-x};C=M.cloneElement(b,I)}else{var P={x:h-S,y:g-x,width:Math.max(u+S+w,0),height:Math.max(f+x+O,0)};C=M.cloneElement(m,P)}return M.cloneElement(v,Object.assign({key:"clip-path-".concat(i)},a,{clipId:i}),C)}},{key:"getClipValue",value:function(a,i){var o={x:a.clipWidth,y:a.clipHeight};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(a,i){var o={x:a.translateX,y:a.translateY};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l?Math.min.apply(Math,EE(l)):void 0}},{key:"render",value:function(){var a=this.getClipValue(this.props,"y"),i=this.getClipValue(this.props,"x");if(i===void 0||a===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=me({},this.props,{clipHeight:a,clipWidth:i,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(M.Component);w0.displayName="VictoryClipContainer";w0.role="container";w0.defaultProps={circleComponent:M.createElement(CI,null),rectComponent:M.createElement(x0,null),clipPathComponent:M.createElement(Ise,null),groupComponent:M.createElement("g",null)};var Ic=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Tn="#252525",Yv="#969696",Yse="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",Qse="normal",Jse=14,nr={width:450,height:300,padding:50,colorScale:Ic},Kt={fontFamily:Yse,fontSize:Jse,letterSpacing:Qse,padding:10,fill:Tn,stroke:"transparent"},Zse=Object.assign({textAnchor:"middle"},Kt),eue="round",tue="round",nue={area:Object.assign({style:{data:{fill:Tn},labels:Kt}},nr),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Tn,strokeWidth:1,strokeLinecap:eue,strokeLinejoin:tue},axisLabel:Object.assign({},Zse,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Kt}},nr),bar:Object.assign({style:{data:{fill:Tn,padding:8,strokeWidth:0},labels:Kt}},nr),boxplot:Object.assign({style:{max:{padding:8,stroke:Tn,strokeWidth:1},maxLabels:Object.assign({},Kt,{padding:3}),median:{padding:8,stroke:Tn,strokeWidth:1},medianLabels:Object.assign({},Kt,{padding:3}),min:{padding:8,stroke:Tn,strokeWidth:1},minLabels:Object.assign({},Kt,{padding:3}),q1:{padding:8,fill:Yv},q1Labels:Object.assign({},Kt,{padding:3}),q3:{padding:8,fill:Yv},q3Labels:Object.assign({},Kt,{padding:3})},boxWidth:20},nr),candlestick:Object.assign({style:{data:{stroke:Tn,strokeWidth:1},labels:Object.assign({},Kt,{padding:5})},candleColors:{positive:"#ffffff",negative:Tn}},nr),chart:nr,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),group:Object.assign({colorScale:Ic},nr),histogram:Object.assign({style:{data:{fill:Yv,stroke:Tn,strokeWidth:2},labels:Kt}},nr),legend:{colorScale:Ic,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Kt,title:Object.assign({},Kt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Kt,{padding:20})},colorScale:Ic,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Tn,stroke:"transparent",strokeWidth:0},labels:Kt}},nr),stack:Object.assign({colorScale:Ic},nr),tooltip:{style:Object.assign({},Kt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Kt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},nr)},rue="#FFF59D",aue="#F4511E",iue="#DCE775",oue="#8BC34A",lue="#00796B",sue="#006064",Ph=[aue,rue,iue,oue,lue,sue],AE="#ECEFF1",ME="#90A4AE",Bn="#455A64",Th="#212121",uue="'Helvetica Neue', 'Helvetica', sans-serif",cue="normal",fue=12,ri=8,zn={width:350,height:350,padding:50},Xt={fontFamily:uue,fontSize:fue,letterSpacing:cue,padding:ri,fill:Bn,stroke:"transparent",strokeWidth:0},due=Object.assign({textAnchor:"middle"},Xt),hue="10, 5",Qv="round",Jv="round",pue={area:Object.assign({style:{data:{fill:Th},labels:Xt}},zn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ME,strokeWidth:2,strokeLinecap:Qv,strokeLinejoin:Jv},axisLabel:Object.assign({},due,{padding:ri,stroke:"transparent"}),grid:{fill:"none",stroke:AE,strokeDasharray:hue,strokeLinecap:Qv,strokeLinejoin:Jv,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ME,strokeWidth:1,strokeLinecap:Qv,strokeLinejoin:Jv},tickLabels:Object.assign({},Xt,{fill:Bn})}},zn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Bn,padding:ri,strokeWidth:0},labels:Xt}},zn),boxplot:Object.assign({style:{max:{padding:ri,stroke:Bn,strokeWidth:1},maxLabels:Object.assign({},Xt,{padding:3}),median:{padding:ri,stroke:Bn,strokeWidth:1},medianLabels:Object.assign({},Xt,{padding:3}),min:{padding:ri,stroke:Bn,strokeWidth:1},minLabels:Object.assign({},Xt,{padding:3}),q1:{padding:ri,fill:Bn},q1Labels:Object.assign({},Xt,{padding:3}),q3:{padding:ri,fill:Bn},q3Labels:Object.assign({},Xt,{padding:3})},boxWidth:20},zn),candlestick:Object.assign({style:{data:{stroke:Bn},labels:Object.assign({},Xt,{padding:5})},candleColors:{positive:"#ffffff",negative:Bn}},zn),chart:zn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),group:Object.assign({colorScale:Ph},zn),histogram:Object.assign({style:{data:{fill:Bn,stroke:Th,strokeWidth:2},labels:Xt}},zn),legend:{colorScale:Ph,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Xt,title:Object.assign({},Xt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),pie:Object.assign({colorScale:Ph,style:{data:{padding:ri,stroke:AE,strokeWidth:1},labels:Object.assign({},Xt,{padding:20})}},zn),scatter:Object.assign({style:{data:{fill:Bn,opacity:1,stroke:"transparent",strokeWidth:0},labels:Xt}},zn),stack:Object.assign({colorScale:Ph},zn),tooltip:{style:Object.assign({},Xt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Xt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},zn)},Di={grayscale:nue,material:pue},mue=["desc","id","tabIndex","origin"];function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bue(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Hl=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=yue(e,mue),l=gue({id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("path",km({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("path",km({},l,{ref:t}))});function RE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jue(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Due=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=Lue(e,Iue),l=Rue({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("line",Pm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("line",Pm({},l,{ref:t}))});function NE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t2?t[2]:void 0;for(a&&Pee(t[0],t[1],a)&&(r=1);++n+e;function $ee(e){return e*e}function Lee(e){return e*(2-e)}function y6(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function jee(e){return e*e*e}function Dee(e){return--e*e*e+1}function b6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var X_=3,Nee=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(X_),Fee=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(X_),_6=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}(X_),I8=Math.PI,R8=I8/2;function zee(e){return+e==1?1:1-Math.cos(e*R8)}function Bee(e){return Math.sin(e*R8)}function x6(e){return(1-Math.cos(I8*e))/2}function Eo(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Uee(e){return Eo(1-+e)}function Hee(e){return 1-Eo(e)}function w6(e){return((e*=2)<=1?Eo(1-e):2-Eo(e-1))/2}function Wee(e){return 1-Math.sqrt(1-e*e)}function Vee(e){return Math.sqrt(1- --e*e)}function S6(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var S1=4/11,qee=6/11,Gee=8/11,Kee=3/4,Xee=9/11,Yee=10/11,Qee=15/16,Jee=21/22,Zee=63/64,Sh=1/S1/S1;function ete(e){return 1-Uf(1-e)}function Uf(e){return(e=+e)l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&one?new nne:void 0;for(i.set(e,t),i.set(t,e);++ft||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var Nae=Dae,qv=Z_,Fae=p0,zae=Ld,Bae=Mae,Uae=Rae,Hae=Zg,Wae=Nae,Vae=Md,qae=er;function Gae(e,t,n){t.length?t=qv(t,function(i){return qae(i)?function(o){return Fae(o,i.length===1?i[0]:i)}:i}):t=[Vae];var r=-1;t=qv(t,Hae(zae));var a=Bae(e,function(i,o,l){var s=qv(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return Uae(a,function(i,o){return Wae(i,o,n)})}var Kae=Gae,Xae=Kae,U6=er;function Yae(e,t,n,r){return e==null?[]:(U6(t)||(t=t==null?[]:[t]),n=r?void 0:n,U6(n)||(n=n==null?[]:[n]),Xae(e,t,n))}var Qae=Yae;const m0=at(Qae);function ox(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function J8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jd(){}var Hf=.7,lm=1/Hf,Us="\\s*([+-]?\\d+)\\s*",Wf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",za="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jae=/^#([0-9a-f]{3,8})$/,Zae=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),eie=new RegExp(`^rgb\\(${za},${za},${za}\\)$`),tie=new RegExp(`^rgba\\(${Us},${Us},${Us},${Wf}\\)$`),nie=new RegExp(`^rgba\\(${za},${za},${za},${Wf}\\)$`),rie=new RegExp(`^hsl\\(${Wf},${za},${za}\\)$`),aie=new RegExp(`^hsla\\(${Wf},${za},${za},${Wf}\\)$`),H6={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};ox(jd,Vf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:W6,formatHex:W6,formatHex8:iie,formatHsl:oie,formatRgb:V6,toString:V6});function W6(){return this.rgb().formatHex()}function iie(){return this.rgb().formatHex8()}function oie(){return Z8(this).formatHsl()}function V6(){return this.rgb().formatRgb()}function Vf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Jae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?q6(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ch(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ch(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=Zae.exec(e))?new Kn(t[1],t[2],t[3],1):(t=eie.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tie.exec(e))?Ch(t[1],t[2],t[3],t[4]):(t=nie.exec(e))?Ch(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rie.exec(e))?X6(t[1],t[2]/100,t[3]/100,1):(t=aie.exec(e))?X6(t[1],t[2]/100,t[3]/100,t[4]):H6.hasOwnProperty(e)?q6(H6[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function q6(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Ch(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kn(e,t,n,r)}function lie(e){return e instanceof jd||(e=Vf(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function O1(e,t,n,r){return arguments.length===1?lie(e):new Kn(e,t,n,r??1)}function Kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ox(Kn,O1,J8(jd,{brighter(e){return e=e==null?lm:Math.pow(lm,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(gl(this.r),gl(this.g),gl(this.b),sm(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:G6,formatHex:G6,formatHex8:sie,formatRgb:K6,toString:K6}));function G6(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function sie(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function K6(){const e=sm(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function sm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function X6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new la(e,t,n,r)}function Z8(e){if(e instanceof la)return new la(e.h,e.s,e.l,e.opacity);if(e instanceof jd||(e=Vf(e)),!e)return new la;if(e instanceof la)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n0&&s<1?0:o,new la(o,l,s,e.opacity)}function uie(e,t,n,r){return arguments.length===1?Z8(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ox(la,uie,J8(jd,{brighter(e){return e=e==null?lm:Math.pow(lm,e),new la(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new la(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,a=2*n-r;return new Kn(Gv(e>=240?e-240:e+120,a,r),Gv(e,a,r),Gv(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new la(Y6(this.h),Eh(this.s),Eh(this.l),sm(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=sm(this.opacity);return`${e===1?"hsl(":"hsla("}${Y6(this.h)}, ${Eh(this.s)*100}%, ${Eh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y6(e){return e=(e||0)%360,e<0?e+360:e}function Eh(e){return Math.max(0,Math.min(1,e||0))}function Gv(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 lx=e=>()=>e;function cie(e,t){return function(n){return e+n*t}}function fie(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 die(e){return(e=+e)==1?eI:function(t,n){return n-t?fie(t,n,e):lx(isNaN(t)?n:t)}}function eI(e,t){var n=t-e;return n?cie(e,n):lx(isNaN(e)?t:e)}const Q6=function e(t){var n=die(t);function r(a,i){var o=n((a=O1(a)).r,(i=O1(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=eI(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=l(c),a.b=s(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function hie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:um(r,a)})),n=Kv.lastIndex;return n2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,a=typeof t=="function"?t.apply(this,arguments):t;return Xa(r,a)(n)}}},rI=function(e,t){var n=function(u,c){return u===c||!cm(u)||!cm(c)?tI(u,c):typeof u=="function"||typeof c=="function"?nI(u,c):typeof u=="object"&&Zt(u)||typeof c=="object"&&Zt(c)?rI(u,c):Xa(u,c)},r=function(u){return Array.isArray(u)?m0(u,"key"):u},a={},i={},o=e,l=t,s;(o===null||typeof o!="object")&&(o={}),(l===null||typeof l!="object")&&(l={});for(s in l)s in o?a[s]=n(r(o[s]),r(l[s])):i[s]=l[s];return function(u){for(s in a)i[s]=a[s](u);return i}},wie=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Xa(n(e),n(t))},Sie=function(e,t){return e===t||!cm(e)||!cm(t)?tI(e,t):typeof e=="function"||typeof t=="function"?nI(e,t):Zt(e)||Zt(t)?rI(e,t):typeof e=="string"||typeof t=="string"?wie(e,t):Xa(e,t)},xu=0,Ac=0,pc=0,aI=1e3,fm,Mc,dm=0,Al=0,g0=0,qf=typeof performance=="object"&&performance.now?performance:Date,iI=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function hm(){return Al||(iI(Oie),Al=qf.now()+g0)}function Oie(){Al=0}function E1(){this._call=this._time=this._next=null}E1.prototype=oI.prototype={constructor:E1,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?hm():+n)+(t==null?0:+t),!this._next&&Mc!==this&&(Mc?Mc._next=this:fm=this,Mc=this),this._call=e,this._time=n,k1()},stop:function(){this._call&&(this._call=null,this._time=1/0,k1())}};function oI(e,t,n){var r=new E1;return r.restart(e,t,n),r}function Cie(){hm(),++xu;for(var e=fm,t;e;)(t=Al-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xu}function J6(){Al=(dm=qf.now())+g0,xu=Ac=0;try{Cie()}finally{xu=0,kie(),Al=0}}function Eie(){var e=qf.now(),t=e-dm;t>aI&&(g0-=t,dm=e)}function kie(){for(var e,t=fm,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:fm=n);Mc=e,k1(r)}function k1(e){if(!xu){Ac&&(Ac=clearTimeout(Ac));var t=e-Al;t>24?(e<1/0&&(Ac=setTimeout(J6,e-qf.now()-g0)),pc&&(pc=clearInterval(pc))):(pc||(dm=qf.now(),pc=setInterval(Eie,aI)),xu=1,iI(J6))}}function Pie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z6(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1){h({data:b.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),m.current&&p.unsubscribe(m.current),g.current.shift(),_();return}h({data:b.current(v(S)),animationInfo:{progress:S,animating:S<1}})}};return s(d.data,d.animationInfo)},Nie=N8,Fie=0;function zie(e){var t=++Fie;return Nie(e)+t}var Bie=zie;const y0=at(Bie);function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nE(e,t){for(var n=0;n"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 pm(e){return pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pm(e)}var sI=function(e){Wie(n,e);var t=Vie(n);function n(r){var a;return Uie(this,n),a=t.call(this,r),a.map=void 0,a.index=void 0,a.portalRegister=function(){return++a.index},a.portalUpdate=function(i,o){a.map[i]=o,a.forceUpdate()},a.portalDeregister=function(i){delete a.map[i],a.forceUpdate()},a.map={},a.index=1,a}return Hie(n,[{key:"getChildren",value:function(){var a=this;return Object.keys(this.map).map(function(i){var o=a.map[i];return o&&M.cloneElement(o,{key:i})})}},{key:"render",value:function(){return M.createElement("svg",this.props,this.getChildren())}}]),n}(M.Component);sI.displayName="Portal";var ux=M.createContext({});ux.displayName="PortalContext";var Xie=YM,Yie=h0,Qie=t0,rE=yr,Jie=$d;function Zie(e,t,n,r){if(!rE(e))return e;t=Yie(t,e);for(var a=-1,i=t.length,o=i-1,l=e;l!=null&&++a0&&n(l)?t>1?cI(l,t-1,n,r,a):hoe(a,l):r||(a[a.length]=l)}return a}var moe=cI,goe=moe;function voe(e){var t=e==null?0:e.length;return t?goe(e,1):[]}var yoe=voe,boe=yoe,_oe=e8,xoe=t8;function woe(e){return xoe(_oe(e,void 0,boe),e+"")}var Soe=woe,Ooe=soe,Coe=Soe,Eoe=Coe(function(e,t){return e==null?{}:Ooe(e,t)}),koe=Eoe;const Gf=at(koe);function Poe(e,t){var n=t!=="x",r=Wt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function Toe(e,t){if(t==="x"){var n=vt(e.startAngle||0),r=vt(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Ha(e)]}function fI(e){return Object.entries(e).reduce(function(t,n){return t[n[1]]=n[0],t},{})}function Uu(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 cx(e){var t=function(h){return h!==void 0},n=e._x,r=e._x1,a=e._x0,i=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(i)?i:c,x0:t(a)?a:n,y:t(u)?u:f,y0:t(s)?s:o};return me({},d,e)}function Dd(e,t){var n=e.scale,r=e.polar,a=e.horizontal,i=cx(t),o=e.origin||{x:0,y:0},l=a?n.y(i.y):n.x(i.x),s=a?n.y(i.y0):n.x(i.x0),u=a?n.x(i.x):n.y(i.y),c=a?n.x(i.x0):n.y(i.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 Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"padding",n=e[t],r=typeof n=="number"?n:0,a=typeof n=="object"?n:{};return{top:a.top||r,bottom:a.bottom||r,left:a.left||r,right:a.right||r}}function fx(e){var t=e&&e.type&&e.type.role;return t==="tooltip"}function dx(e,t){var n=e.theme,r=n===void 0?{}:n,a=e.labelComponent,i=r[t]&&r[t].style||{};if(!fx(a))return i;var o=r.tooltip&&r.tooltip.style||{},l=me({},o,i.labels);return me({},{labels:l},i)}function b0(e,t){var n="100%",r="100%";if(!e)return me({parent:{height:r,width:n}},t);var a=e.data,i=e.labels,o=e.parent,l=t&&t.parent||{},s=t&&t.labels||{},u=t&&t.data||{};return{parent:me({},o,l,{width:n,height:r}),labels:me({},i,s),data:me({},a,u)}}function le(e,t){return Xe(e)?e(t):e}function _t(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(function(n){return Xe(e[n])})?e:Object.keys(e).reduce(function(n,r){return n[r]=le(e[r],t),n},{})}function vt(e){return typeof e=="number"?e*(Math.PI/180):e}function bi(e){return typeof e=="number"?e/(Math.PI/180):e}function Ha(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-a-i)/2}function Nd(e){var t=e.width,n=e.height,r=Wt(e),a=r.top,i=r.bottom,o=r.left,l=r.right,s=Math.min(t-o-l,n-a-i)/2,u=t/2+o-l,c=n/2+a-i;return{x:u+s>t?s+o-l:u,y:c+s>n?s+a-i:c}}function ln(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?Toe(e,t):Poe(e,t)}function Wa(e){return e==null}function Xe(e){return typeof e=="function"}function _0(e){return Xe(e)?e:e==null?function(t){return t}:Y8(e)}function on(e,t,n){var r=e.theme&&e.theme[n]?e.theme[n]:{},a=Uu(r,["style"]),i=Aoe(e),o=i===void 0?{}:{horizontal:i};return me(o,e,a,t)}function dI(e,t){var n=e==="x"?"y":"x";return t?n:e}function hx(e,t,n){var r=t?e:0,a=t||e;a||(a=0);var i=a-r,o=Math.abs(i),l=i/o||1,s=n||1,u=Math.max(Math.ceil(o/s),0);return Array.from(Array(u),function(c,f){return r+f*l*s})}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(u,c){return u.concat(c)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],o=function(u,c,f){return u.reduce(function(d,h,p){var g=d,b=h.type&&h.type.role,m=h.props.name||"".concat(b,"-").concat(c[p]);if(h.props&&h.props.children){var v=Object.assign({},h.props,Gf(n,i)),_=h.type&&h.type.role==="stack"&&Xe(h.type.getChildren)?h.type.getChildren(v):M.Children.toArray(h.props.children).map(function(w){var C=Object.assign({},w.props,Gf(v,i));return M.cloneElement(w,C)}),x=_.map(function(w,C){return"".concat(m,"-").concat(C)}),O=o(_,x,h);g=a(g,O)}else{var S=t(h,m,f);S&&(g=a(g,S))}return g},r)},l=e.filter(y.isValidElement),s=l.map(function(u,c){return c});return o(l,s)}function Aoe(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;var t=function(n){return n.reduce(function(r,a){var i=a.props||{};return r||i.horizontal||!i.children?r||i.horizontal:t(M.Children.toArray(i.children))},!1)};return t(M.Children.toArray(e.children))}function oE(e,t){return $oe(e)||Roe(e,t)||Ioe(e,t)||Moe()}function Moe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ioe(e,t){if(e){if(typeof e=="string")return lE(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 lE(e,t)}}function lE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 gm(e){return gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gm(e)}var En=function(e){Hoe(n,e);var t=Woe(n);function n(r){var a;return Boe(this,n),a=t.call(this,r),a.containerId=void 0,a.portalRef=void 0,a.containerRef=void 0,a.shouldHandleWheel=void 0,a.savePortalRef=function(i){return a.portalRef=i,i},a.portalUpdate=function(i,o){return a.portalRef.portalUpdate(i,o)},a.portalRegister=function(){return a.portalRef.portalRegister()},a.portalDeregister=function(i){return a.portalRef.portalDeregister(i)},a.saveContainerRef=function(i){return Xe(a.props.containerRef)&&a.props.containerRef(i),a.containerRef=i,i},a.handleWheel=function(i){return i.preventDefault()},a.containerId=!Ff(r)||r.containerId===void 0?y0("victory-container-"):r.containerId,a.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),a}return Uoe(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(a){return"".concat(this.containerId,"-").concat(a)}},{key:"getChildren",value:function(a){return a.children}},{key:"getOUIAProps",value:function(a){var i=a.ouiaId,o=a.ouiaSafe,l=a.ouiaType;return as(as(as({},i&&{"data-ouia-component-id":i}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(a,i,o){var l=a.title,s=a.desc,u=a.portalComponent,c=a.className,f=a.width,d=a.height,h=a.portalZIndex,p=a.responsive,g=this.getChildren(a),b=p?{width:"100%",height:"100%"}:{width:f,height:d},m=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},b),v=Object.assign({zIndex:h,position:"absolute",top:0,left:0},b),_=Object.assign({pointerEvents:"all"},b),x=Object.assign({overflow:"visible"},b),O={width:f,height:d,viewBox:i.viewBox,preserveAspectRatio:i.preserveAspectRatio,style:x};return M.createElement(ux.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},M.createElement("div",mm({style:me({},o,m),className:c,ref:this.saveContainerRef},this.getOUIAProps(a)),M.createElement("svg",mm({},i,{style:_}),l?M.createElement("title",{id:this.getIdForElement("title")},l):null,s?M.createElement("desc",{id:this.getIdForElement("desc")},s):null,g),M.createElement("div",{style:v},M.cloneElement(u,as(as({},O),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var a=this.props,i=a.width,o=a.height,l=a.responsive,s=a.events,u=a.title,c=a.desc,f=a.tabIndex,d=a.preserveAspectRatio,h=a.role,p=l?this.props.style:Uu(this.props.style,["height","width"]),g=Ya(this.props),b=Object.assign(as({width:i,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(i," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},g),s);return this.renderContainer(this.props,b,p)}}]),n}(M.Component);En.displayName="VictoryContainer";En.role="container";En.defaultProps={className:"VictoryContainer",portalComponent:M.createElement(sI,null),portalZIndex:99,responsive:!0,role:"img"};En.contextType=v0;function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(e,t){for(var n=0;n"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 vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}var ko=function(e){Yoe(n,e);var t=Qoe(n);function n(){var r;Koe(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ile(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var x0=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=ale(e,tle),l=nle({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("rect",ym({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("rect",ym({},l,{ref:t}))}),ole=["children","desc","id","origin","tabIndex","title"];function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var fle=function(e){var t,n=e.children,r=e.desc,a=e.id;e.origin;var i=e.tabIndex,o=e.title,l=ule(e,ole),s=lle({id:(t=le(a,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(i,e)},l);return M.createElement("text",s,o&&M.createElement("title",null,o),r&&M.createElement("desc",null,r),n)},dle=["desc","id","tabIndex","origin"];function pE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vle=function(e){var t;e.desc;var n=e.id,r=e.tabIndex;e.origin;var a=mle(e,dle),i=hle({id:(t=le(n,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(r,e)},a);return M.createElement("tspan",i)};function yle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},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 ble(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style,r=e.horizontal,a=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"}function _le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function xle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.horizontal,r=e.style,a=r.labels||{},i=le(a.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*i:0,y:n?0:-1*o*i}}function wle(e,t){if(e.polar)return{};var n=xle(e,t);return{dx:n.x,dy:n.y}}function Sle(e,t){var n=e.polar,r=Dd(e,t),a=r.x,i=r.y;if(!n)return{x:a,y:i};var o=Ole(e,t);return{x:a+o.x,y:i+o.y}}function Ole(e,t){var n=e.style,r=Kf(e,t),a=n.labels||{},i=le(a.padding,e)||0,o=vt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}function mx(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,a=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||a}function Cle(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function vx(e,t){var n=mx(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function pI(e,t){var n=mx(e),r=Cle(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function yx(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var a=t!==void 0?t%360:Kf(e,r),i=a>90&&a<180||a>270?1:-1,o=0;a===0||a===180?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a);var l=n==="perpendicular"?0:90;return o+i*l}function Kf(e,t){var n=cx(t),r=n.x;return bi(e.scale.x(r))%360}function mI(e,t){var n=e.scale,r=e.data,a=e.style,i=e.horizontal,o=e.polar,l=e.width,s=e.height,u=e.theme,c=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=Kf(e,d),p=o?vx(e,h):ble(e,d),g=o?pI(e,h):yle(e,d),b=_le(e,d),m=gx(e,d,t),v=mx(e),_=Sle(e,d),x=_.x,O=_.y,S=wle(e,d),w=S.dx,C=S.dy,A={angle:b,data:r,datum:d,disableInlineStyles:f,horizontal:i,index:t,polar:o,scale:n,labelPlacement:v,text:m,textAnchor:p,verticalAnchor:g,x,y:O,dx:w,dy:C,width:l,height:s,style:a.labels};if(!fx(c))return A;var I=u&&u.tooltip||{};return me({},A,Uu(I,["style"]))}var M1=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0)return n.reduce(function(l,s){return[l,M1(s)].join(" ")},M1(e)).trim();if(e==null||typeof e=="string")return e;var a=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];a.push("".concat(i,"(").concat(o,")"))}return a.join(" ").trim()};function bx(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 Ele(e,t){return Tle(e)||Ple(e,t)||gI(e,t)||kle()}function kle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ple(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Tle(e){if(Array.isArray(e))return e}function Ale(e){return Rle(e)||Ile(e)||gI(e)||Mle()}function Mle(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gI(e,t){if(e){if(typeof e=="string")return I1(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 I1(e,t)}}function Ile(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rle(e){if(Array.isArray(e))return I1(e)}function I1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";return!r||n?Nle(e,t):Fle(e,t)}},Ml=function(e,t){return zle.impl(e,t)};function bE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},bI=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!Mt(t)||Array.isArray(n)&&!Mt(n)},qle=function(e,t){if(t.disableInlineStyles){var n=_t(e,t);return{fontSize:xE(n)}}var r=function(a){var i=_t(a?me({},a,vl):vl,t);return Object.assign({},i,{fontSize:xE(i)})};return Array.isArray(e)&&!Mt(e)?e.map(function(a){return r(a)}):r(e)},Gle=function(e,t){if(e)return Array.isArray(e)&&!Mt(e)?e.map(function(n){return _t(n,t)}):_t(e,t)},Kle=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(function(n){var r=le(n,e);return Wt({padding:r})});var t=le(e.backgroundPadding,e);return Wt({padding:t})},Xle=function(e){var t=le(e.lineHeight,e);return Array.isArray(t)&&Mt(t)?[1]:t},Yle=function(e,t){if(e!=null){if(Array.isArray(e))return e.map(function(r){return le(r,t)});var n=le(e,t);if(n!=null)return Array.isArray(n)?n:"".concat(n).split(` +`)}},Qle=function(e,t,n){var r=e.dy?le(e.dy,e):0,a=e.inline?1:e.text.length,i=le(e.capHeight,e),o=t?le(t,e):"middle",l=ef(Array(a).keys()).map(function(c){return $n(e.style,c).fontSize}),s=ef(Array(a).keys()).map(function(c){return $n(n,c)});if(o==="start")return r+(i/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(i/2-s[0]/2)*l[0]:r+i/2*l[0];if(a===1)return o==="end"?r+(i/2+(.5-a)*s[0])*l[0]:r+(i/2+(.5-a/2)*s[0])*l[0];var u=ef(Array(a).keys()).reduce(function(c,f){return c+(i/2+(.5-a)*s[f])*l[f]/a},0);return o==="end"?r+u:r+u/2+i/2*s[a-1]*l[a-1]},Jle=function(e,t,n){var r=e.polar,a=$n(e.style),i=r?yx(e):0,o=a.angle===void 0?le(e.angle,e):a.angle,l=o===void 0?i:o,s=e.transform||a.transform,u=s&&le(s,e),c=l&&{rotate:[l,t,n]};return u||l?M1(u,c):void 0},_I=function(e,t){var n=e.direction,r=e.textAnchor,a=e.x,i=e.dx;if(n==="rtl")return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:return a+(i||0)}},xI=function(e,t){var n=e.verticalAnchor,r=e.y,a=e.originalDy,i=a===void 0?0:a,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},Zle=function(e,t){var n=e.dx,r=n===void 0?0:n,a=e.transform,i=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,u=e.capHeight,c=t.map(function(b){return b.textSize}),f=l?Math.max.apply(Math,ef(c.map(function(b){return b.height}))):c.reduce(function(b,m,v){var _=v?0:u/2;return b+m.height*(t[v].lineHeight-_)},0),d=l?c.reduce(function(b,m,v){var _=v?r:0;return b+m.width+_},0):Math.max.apply(Math,ef(c.map(function(b){return b.width}))),h=_I(e,d),p=xI(e,f),g={key:"background",height:f+s.top+s.bottom,style:o,transform:a,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:p};return M.cloneElement(i,me({},i.props,g))},ese=function(e,t,n){var r=e.textAnchor,a=t.map(function(l){return l.widthWithPadding}),i=a.reduce(function(l,s){return l+s},0),o=-i/2;switch(r){case"start":return a.reduce(function(l,s,u){return un?l-s:l},0);default:return a.reduce(function(l,s,u){var c=ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}function wm(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function Po(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function hse(e){return wI(e)&&e.every(function(t){return typeof t=="string"})}function Sm(e,t){return e&&t?e.filter(function(n){return!t.includes(n)}):[]}function wE(e){return wI(e)&&e.every(Array.isArray)}function SI(e){return e.filter(function(t){return t!==void 0})}function pa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"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 Om(e){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Om(e)}var wx=function(e){Pse(n,e);var t=Tse(n);function n(r,a){var i;Ese(this,n),i=t.call(this,r,a),i.continuous=void 0,i.timer=void 0,i.transitionProps=void 0,i.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=i.props.children,l=o.props.polar;return i.continuous=!l&&o.type&&o.type.continuous===!0,i.timer=i.context.transitionTimer,i}return kse(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(a){var i=this;return Ba(this.props,a)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,a),function(){return i.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(a,i){var o=a.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?a:null;return{oldProps:s,nextProps:i}}}else return{};var u=M.Children.toArray(a.children),c=M.Children.toArray(i.children),f=CI(u,c),d=f.nodesWillExit,h=f.nodesWillEnter,p=f.childrenTransitions,g=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:p,nodesShouldEnter:g,oldProps:d?a:null,nextProps:i}}},{key:"getDomainFromChildren",value:function(a,i){var o=function(f){return f.reduce(function(d,h){if(h.type&&Xe(h.type.getDomain)){var p=h.props&&h.type.getDomain(h.props,i);return p?d.concat(p):d}else if(h.props&&h.props.children)return d.concat(o(M.Children.toArray(h.props.children)));return d},[])},l=M.Children.toArray(a.children)[0],s=l.props||{},u=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[i];if(!s.children&&u)return u;var c=o([l]);return c.length===0?[0,1]:[mr(c),pa(c)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(a){var i,o=(i=a.animate)===null||i===void 0?void 0:i.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||a:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||a}},{key:"getClipWidth",value:function(a,i){var o=function(){var s=ln(i.props,"x");return s?Math.abs(s[1]-s[0]):a.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var a,i=this,o=this.pickProps(),l=(a=this.props.animate)!==null&&a!==void 0&&a.getTransitions?this.props.animate.getTransitions:EI(o,this.state,function(b){return i.setState(b)}),s=M.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=me({domain:c,clipWidth:f},u,s.props),h=o.animationWhitelist||[],p=h.concat(["clipWidth"]),g=p.length?Gf(d,p):d;return M.createElement(Die,D1({},d.animate,{data:g}),function(b){if(s.props.groupComponent){var m=i.continuous?M.cloneElement(s.props.groupComponent,{clipWidth:b.clipWidth||0}):s.props.groupComponent;return M.cloneElement(s,me({animate:null,animating:!0,groupComponent:m},b,d))}return M.cloneElement(s,me({animate:null,animating:!0},b,d))})}}]),n}(M.Component);wx.displayName="VictoryTransition";wx.contextType=v0;var Rse=function(e){var t;return M.createElement("defs",null,M.createElement("clipPath",{id:(t=e.clipId)===null||t===void 0?void 0:t.toString()},e.children))},$se=["desc","id","tabIndex","origin"];function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nse(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var kI=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=Dse(e,$se),l=Lse({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("circle",Cm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("circle",Cm({},l,{ref:t}))});function kE(e){return Use(e)||Bse(e)||zse(e)||Fse()}function Fse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zse(e,t){if(e){if(typeof e=="string")return F1(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 F1(e,t)}}function Bse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Use(e){if(Array.isArray(e))return F1(e)}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}var w0=function(e){qse(n,e);var t=Gse(n);function n(r){var a;return Wse(this,n),a=t.call(this,r),a.clipId=void 0,a.clipId=!Ff(r)||r.clipId===void 0?y0("victory-clip-"):r.clipId,a}return Vse(n,[{key:"calculateAttributes",value:function(a){var i=a.polar,o=a.origin,l=a.clipWidth,s=l===void 0?0:l,u=a.clipHeight,c=u===void 0?0:u,f=a.translateX,d=f===void 0?0:f,h=a.translateY,p=h===void 0?0:h,g=Wt({padding:a.clipPadding}),b=a.radius||Ha(a);return{x:(i?o.x:d)-g.left,y:(i?o.y:p)-g.top,width:Math.max((i?b:s)+g.left+g.right,0),height:Math.max((i?b:c)+g.top+g.bottom,0)}}},{key:"renderClippedGroup",value:function(a,i){var o=Ya(a),l=a.style,s=a.events,u=a.transform,c=a.children,f=a.className,d=a.groupComponent,h=a.tabIndex,p=this.renderClipComponent(a,i),g=Object.assign({className:f,style:l,transform:u,key:"clipped-group-".concat(i),clipPath:"url(#".concat(i,")")},s);return M.cloneElement(d,TE(TE({},g),{},{tabIndex:h},o),[p].concat(kE(M.Children.toArray(c))))}},{key:"renderGroup",value:function(a){var i=a.style,o=a.events,l=a.transform,s=a.children,u=a.className,c=a.groupComponent,f=a.tabIndex;return M.cloneElement(c,Object.assign({className:u,style:i,transform:l,"aria-label":a["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(a,i){var o=a.polar,l=a.origin,s=a.clipWidth,u=s===void 0?0:s,c=a.clipHeight,f=c===void 0?0:c,d=a.translateX,h=d===void 0?0:d,p=a.translateY,g=p===void 0?0:p,b=a.circleComponent,m=a.rectComponent,v=a.clipPathComponent,_=Wt({padding:a.clipPadding}),x=_.top,O=_.bottom,S=_.left,w=_.right,C;if(o){var A=a.radius||Ha(a),I={r:Math.max(A+S+w,A+x+O,0),cx:l.x-S,cy:l.y-x};C=M.cloneElement(b,I)}else{var P={x:h-S,y:g-x,width:Math.max(u+S+w,0),height:Math.max(f+x+O,0)};C=M.cloneElement(m,P)}return M.cloneElement(v,Object.assign({key:"clip-path-".concat(i)},a,{clipId:i}),C)}},{key:"getClipValue",value:function(a,i){var o={x:a.clipWidth,y:a.clipHeight};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(a,i){var o={x:a.translateX,y:a.translateY};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l?Math.min.apply(Math,kE(l)):void 0}},{key:"render",value:function(){var a=this.getClipValue(this.props,"y"),i=this.getClipValue(this.props,"x");if(i===void 0||a===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=me({},this.props,{clipHeight:a,clipWidth:i,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(M.Component);w0.displayName="VictoryClipContainer";w0.role="container";w0.defaultProps={circleComponent:M.createElement(kI,null),rectComponent:M.createElement(x0,null),clipPathComponent:M.createElement(Rse,null),groupComponent:M.createElement("g",null)};var Ic=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Tn="#252525",Yv="#969696",Qse="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",Jse="normal",Zse=14,nr={width:450,height:300,padding:50,colorScale:Ic},Kt={fontFamily:Qse,fontSize:Zse,letterSpacing:Jse,padding:10,fill:Tn,stroke:"transparent"},eue=Object.assign({textAnchor:"middle"},Kt),tue="round",nue="round",rue={area:Object.assign({style:{data:{fill:Tn},labels:Kt}},nr),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Tn,strokeWidth:1,strokeLinecap:tue,strokeLinejoin:nue},axisLabel:Object.assign({},eue,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Kt}},nr),bar:Object.assign({style:{data:{fill:Tn,padding:8,strokeWidth:0},labels:Kt}},nr),boxplot:Object.assign({style:{max:{padding:8,stroke:Tn,strokeWidth:1},maxLabels:Object.assign({},Kt,{padding:3}),median:{padding:8,stroke:Tn,strokeWidth:1},medianLabels:Object.assign({},Kt,{padding:3}),min:{padding:8,stroke:Tn,strokeWidth:1},minLabels:Object.assign({},Kt,{padding:3}),q1:{padding:8,fill:Yv},q1Labels:Object.assign({},Kt,{padding:3}),q3:{padding:8,fill:Yv},q3Labels:Object.assign({},Kt,{padding:3})},boxWidth:20},nr),candlestick:Object.assign({style:{data:{stroke:Tn,strokeWidth:1},labels:Object.assign({},Kt,{padding:5})},candleColors:{positive:"#ffffff",negative:Tn}},nr),chart:nr,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),group:Object.assign({colorScale:Ic},nr),histogram:Object.assign({style:{data:{fill:Yv,stroke:Tn,strokeWidth:2},labels:Kt}},nr),legend:{colorScale:Ic,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Kt,title:Object.assign({},Kt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Kt,{padding:20})},colorScale:Ic,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Tn,stroke:"transparent",strokeWidth:0},labels:Kt}},nr),stack:Object.assign({colorScale:Ic},nr),tooltip:{style:Object.assign({},Kt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Kt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},nr)},aue="#FFF59D",iue="#F4511E",oue="#DCE775",lue="#8BC34A",sue="#00796B",uue="#006064",Ph=[iue,aue,oue,lue,sue,uue],ME="#ECEFF1",IE="#90A4AE",Bn="#455A64",Th="#212121",cue="'Helvetica Neue', 'Helvetica', sans-serif",fue="normal",due=12,ri=8,zn={width:350,height:350,padding:50},Xt={fontFamily:cue,fontSize:due,letterSpacing:fue,padding:ri,fill:Bn,stroke:"transparent",strokeWidth:0},hue=Object.assign({textAnchor:"middle"},Xt),pue="10, 5",Qv="round",Jv="round",mue={area:Object.assign({style:{data:{fill:Th},labels:Xt}},zn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:IE,strokeWidth:2,strokeLinecap:Qv,strokeLinejoin:Jv},axisLabel:Object.assign({},hue,{padding:ri,stroke:"transparent"}),grid:{fill:"none",stroke:ME,strokeDasharray:pue,strokeLinecap:Qv,strokeLinejoin:Jv,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:IE,strokeWidth:1,strokeLinecap:Qv,strokeLinejoin:Jv},tickLabels:Object.assign({},Xt,{fill:Bn})}},zn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Bn,padding:ri,strokeWidth:0},labels:Xt}},zn),boxplot:Object.assign({style:{max:{padding:ri,stroke:Bn,strokeWidth:1},maxLabels:Object.assign({},Xt,{padding:3}),median:{padding:ri,stroke:Bn,strokeWidth:1},medianLabels:Object.assign({},Xt,{padding:3}),min:{padding:ri,stroke:Bn,strokeWidth:1},minLabels:Object.assign({},Xt,{padding:3}),q1:{padding:ri,fill:Bn},q1Labels:Object.assign({},Xt,{padding:3}),q3:{padding:ri,fill:Bn},q3Labels:Object.assign({},Xt,{padding:3})},boxWidth:20},zn),candlestick:Object.assign({style:{data:{stroke:Bn},labels:Object.assign({},Xt,{padding:5})},candleColors:{positive:"#ffffff",negative:Bn}},zn),chart:zn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),group:Object.assign({colorScale:Ph},zn),histogram:Object.assign({style:{data:{fill:Bn,stroke:Th,strokeWidth:2},labels:Xt}},zn),legend:{colorScale:Ph,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Xt,title:Object.assign({},Xt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),pie:Object.assign({colorScale:Ph,style:{data:{padding:ri,stroke:ME,strokeWidth:1},labels:Object.assign({},Xt,{padding:20})}},zn),scatter:Object.assign({style:{data:{fill:Bn,opacity:1,stroke:"transparent",strokeWidth:0},labels:Xt}},zn),stack:Object.assign({colorScale:Ph},zn),tooltip:{style:Object.assign({},Xt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Xt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},zn)},Di={grayscale:rue,material:mue},gue=["desc","id","tabIndex","origin"];function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ue(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Hl=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=bue(e,gue),l=vue({id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("path",km({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("path",km({},l,{ref:t}))});function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Due(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Nue=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=jue(e,Rue),l=$ue({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("line",Pm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("line",Pm({},l,{ref:t}))});function FE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t-1}var mce=pce;function gce(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=Mce){var u=t?null:Tce(e);if(u)return Ace(u);o=!1,a=Pce,s=new Cce}else s=t?[]:l;e:for(;++re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce(function(a,i){var o=n[i],l=$I(e,t[i],n[i],i);return a[i]=l||o,Tm(a,function(s){return!Mt(s)})},{})}function $I(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,a=Object.keys(t);return a.reduce(function(i,o){var l=n[o]||{},s=t[o]||{};if(o==="parent"){var u={eventKey:o,target:"parent"},c=zE(e,s,l,u);i[o]=c!==void 0?Object.assign({},l,c):l}else{var f=Il(Object.keys(s).concat(Object.keys(l)));i[o]=f.reduce(function(d,h){var p={eventKey:o,target:h,childName:r},g=zE(e,s[h],l[h],p);return d[h]=g!==void 0?Object.assign({},l[h],g):l[h],Tm(d,function(b){return!Mt(b)})},{})}return Tm(i,function(d){return!Mt(d)})},{})}function zE(e,t,n,r){var a=function(s,u){if(typeof s[u]=="string")return s[u]==="all"||s[u]===r[u];if(Array.isArray(s[u])){var c=s[u].map(function(f){return"".concat(f)});return c.includes(r[u])}return!1},i=Array.isArray(e)?e:[e];r.childName&&(i=e.filter(function(s){return a(s,"childName")}));var o=i.filter(function(s){return a(s,"target")});if(!Mt(o)){var l=o.filter(function(s){return a(s,"eventKey")});if(!Mt(l))return l.reduce(function(s,u){var c=u&&Xe(u.mutation)?u.mutation:function(){},f=c(Object.assign({},t,n));return Object.assign({},s,f)},{})}}function Ox(e,t){var n=Array.isArray(t)&&t.reduce(function(r,a){var i=e[a],o=i&&i.type&&i.type.defaultEvents,l=Xe(o)?o(i.props):o;return Array.isArray(l)?r.concat.apply(r,TI(l)):r},[]);return n&&n.length?n:void 0}function Am(e){var t=e.match(Sx);return t&&t[1]&&t[1].toLowerCase()}var LI=function(e){return Tm(e,function(t,n){return Sx.test(n)})},jI=function(e){return PI(e,function(t,n){return Sx.test(n)})},DI=function(e){return Object.assign(e,{nativeEvent:e})};function Lh(e){return mfe(e)||pfe(e)||hfe(e)||dfe()}function dfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hfe(e,t){if(e){if(typeof e=="string")return U1(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 U1(e,t)}}function pfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mfe(e){if(Array.isArray(e))return U1(e)}function U1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}var wfe=function(e){return!Wa(e._x)&&!Wa(e._y)},Sfe=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(r){yfe(i,r);var a=bfe(i);function i(o){var l;return gfe(this,i),l=a.call(this,o),l.state={},l.getEventState=RI.bind(mp(l)),l.getScopedEvents=MI.bind(mp(l)),l.getEvents=function(s,u,c){return AI.call(mp(l),s,u,c,l.getScopedEvents)},l.externalMutations=l.getExternalMutations(l.props),l.calculatedState=l.getStateChanges(l.props),l.globalEvents={},l.prevGlobalEventKeys=[],l.boundGlobalEvents={},l.cacheValues(l.getCalculatedValues(o)),l}return vfe(i,[{key:"shouldComponentUpdate",value:function(l){var s=this.getExternalMutations(l),u=this.props.animating||this.props.animate,c=!Ba(s,this.externalMutations);if(u||c)return this.cacheValues(this.getCalculatedValues(l)),this.externalMutations=s,this.applyExternalMutations(l,s),!0;var f=this.getStateChanges(l);return Ba(this.calculatedState,f)?Ba(this.props,l)?!1:(this.cacheValues(this.getCalculatedValues(l)),!0):(this.cacheValues(this.getCalculatedValues(l)),!0)}},{key:"componentDidMount",value:function(){var l=this,s=Object.keys(this.globalEvents);s.forEach(function(u){return l.addGlobalListener(u)}),this.prevGlobalEventKeys=s}},{key:"componentDidUpdate",value:function(l){var s=this,u=this.getStateChanges(l);this.calculatedState=u;var c=Object.keys(this.globalEvents),f=Sm(this.prevGlobalEventKeys,c);f.forEach(function(h){return s.removeGlobalListener(h)});var d=Sm(c,this.prevGlobalEventKeys);d.forEach(function(h){return s.addGlobalListener(h)}),this.prevGlobalEventKeys=c}},{key:"componentWillUnmount",value:function(){var l=this;this.prevGlobalEventKeys.forEach(function(s){return l.removeGlobalListener(s)})}},{key:"addGlobalListener",value:function(l){var s=this,u=function(c){var f=s.globalEvents[l];return f&&f(DI(c))};this.boundGlobalEvents[l]=u,window.addEventListener(Am(l),u)}},{key:"removeGlobalListener",value:function(l){window.removeEventListener(Am(l),this.boundGlobalEvents[l])}},{key:"getStateChanges",value:function(l){var s=this;if(!this.hasEvents)return{};var u=function(d,h){var p=me({},s.getEventState(d,h),s.getSharedEventState(d,h));return Mt(p)?void 0:p},c=t.components||Sfe,f=c.map(function(d){if(!(!l.standalone&&d.name==="parent"))return d.index!==void 0?u(d.index,d.name):s.dataKeys.map(function(h){return u(h,d.name)}).filter(Boolean)}).filter(Boolean);return f}},{key:"applyExternalMutations",value:function(l,s){if(!Mt(s)){var u=l.externalEventMutations.reduce(function(f,d){return Xe(d.callback)?f.concat(d.callback):f},[]),c=u.length?function(){u.forEach(function(f){return f()})}:void 0;this.setState(s,c)}}},{key:"getCalculatedValues",value:function(l){var s=l.sharedEvents,u=e.expectedComponents,c=Ox(l,u),f=s&&Xe(s.getEventState)?s.getEventState:function(){},d=this.getBaseProps(l,f),h=Object.keys(d).filter(function(b){return b!=="parent"}),p=l.events||l.sharedEvents||c,g=this.getAllEvents(l);return{componentEvents:c,getSharedEventState:f,baseProps:d,dataKeys:h,hasEvents:p,events:g}}},{key:"getExternalMutations",value:function(l){var s=l.sharedEvents,u=l.externalEventMutations;return Mt(u)||s?void 0:$I(u,this.baseProps,this.state)}},{key:"cacheValues",value:function(l){var s=this;Object.keys(l).forEach(function(u){s[u]=l[u]})}},{key:"getBaseProps",value:function(l,s){var u=s||this.getSharedEventState.bind(this),c=u("parent","parent"),f=this.getEventState("parent","parent"),d=me({},f,c),h=d.parentControlledProps,p=h?Gf(d,h):{},g=me({},p,l);return typeof e.getBaseProps=="function"?e.getBaseProps(g):{}}},{key:"getAllEvents",value:function(l){if(Array.isArray(this.componentEvents)){var s;return Array.isArray(l.events)?(s=this.componentEvents).concat.apply(s,Lh(l.events)):this.componentEvents}return l.events}},{key:"getComponentProps",value:function(l,s,u){var c=this.props.name||e.role,f=this.dataKeys&&this.dataKeys[u]||u,d="".concat(c,"-").concat(s,"-").concat(f),h=this.baseProps[f]&&this.baseProps[f][s]||this.baseProps[f];if(!(!h&&!this.hasEvents)){var p=l&&typeof l=="object"&&"props"in l?l.props:void 0;if(this.hasEvents){var g=this.getEvents(this.props,s,f),b=me({index:u,key:d},this.getEventState(f,s),this.getSharedEventState(f,s),p,h,{id:d}),m=me({},II(g,f,b),b.events);return Object.assign({},b,{events:m})}return me({index:u,key:d},p,h,{id:d})}}},{key:"renderContainer",value:function(l,s){var u=l.type&&l.type.role==="container",c=u?this.getComponentProps(l,"parent","parent"):{};return c.events&&(this.globalEvents=LI(c.events),c.events=jI(c.events)),M.cloneElement(l,c,s)}},{key:"animateComponent",value:function(l,s){var u,c=typeof l.animate=="object"&&((u=l.animate)===null||u===void 0?void 0:u.animationWhitelist)||s,f=this.constructor;return M.createElement(wx,{animate:l.animate,animationWhitelist:c},M.createElement(f,l))}},{key:"renderContinuousData",value:function(l){var s=this,u=l.dataComponent,c=l.labelComponent,f=l.groupComponent,d=this.dataKeys.filter(function(b){return b!=="all"}),h=d.reduce(function(b,m){var v=b,_=s.getComponentProps(c,"labels",m);return _&&_.text!==void 0&&_.text!==null&&(v=v.concat(M.cloneElement(c,_))),v},[]),p=this.getComponentProps(u,"data","all"),g=[M.cloneElement(u,p)].concat(Lh(h));return this.renderContainer(f,g)}},{key:"renderData",value:function(l){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wfe,c=l.dataComponent,f=l.labelComponent,d=l.groupComponent,h=this.dataKeys.reduce(function(b,m,v){var _=s.getComponentProps(c,"data",v);return u(_.datum)&&b.push(M.cloneElement(c,_)),b},[]),p=this.dataKeys.map(function(b,m){var v=s.getComponentProps(f,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(f,v)}).filter(Boolean),g=[].concat(Lh(h),Lh(p));return this.renderContainer(d,g)}}]),i}(e);return n}var Ofe=jo,Cfe=ji,Efe="[object Date]";function kfe(e){return Cfe(e)&&Ofe(e)==Efe}var Pfe=kfe,Tfe=Pfe,Afe=Zg,UE=Ad,HE=UE&&UE.isDate,Mfe=HE?Afe(HE):Tfe,Ife=Mfe;const NI=at(Ife);var Rfe=Fl;function $fe(e,t){for(var n=-1,r=e.length,a=0,i=[];++nt?1:e>=t?0:NaN}function Gfe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cx(e){let t,n,r;e.length!==2?(t=_o,n=(l,s)=>_o(e(l),s),r=(l,s)=>e(l)-s):(t=e===_o||e===Gfe?e:Kfe,n=e,r=e);function a(l,s,u=0,c=l.length){if(u>>1;n(l[f],s)<0?u=f+1:c=f}while(u>>1;n(l[f],s)<=0?u=f+1:c=f}while(uu&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function Kfe(){return 0}function FI(e){return e===null?NaN:+e}function*Xfe(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 Yfe=Cx(_o),Fd=Yfe.right;Cx(FI).center;class WE extends Map{constructor(t,n=Zfe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(VE(this,t))}has(t){return super.has(VE(this,t))}set(t,n){return super.set(Qfe(this,t),n)}delete(t){return super.delete(Jfe(this,t))}}function VE({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Qfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Jfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Zfe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ede(e=_o){if(e===_o)return zI;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 zI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const tde=Math.sqrt(50),nde=Math.sqrt(10),rde=Math.sqrt(2);function Im(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=tde?10:i>=nde?5:i>=rde?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/ut&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*ut&&--s),s0))return[];if(e===t)return[e];const r=t=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function GE(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 a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function BI(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?zI:ede(a);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)),p=Math.min(r,Math.floor(t+(s-u)*f/s+d));BI(e,t,h,p,a)}const i=e[t];let o=n,l=r;for(mc(e,n,t),a(e[r],i)>0&&mc(e,n,r);o0;)--l}a(e[n],i)===0?mc(e,n,l):(++l,mc(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function mc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ade(e,t,n){if(e=Float64Array.from(Xfe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return GE(e);if(t>=1)return qE(e);var r,a=(r-1)*t,i=Math.floor(a),o=qE(BI(e,i).subarray(0,i+1)),l=GE(e.subarray(i+1));return o+(l-o)*(a-i)}}function ide(e,t,n=FI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function ode(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++rt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function cde(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?fde:cde,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(a((u||(u=l(t,e.map(r),um)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Rm),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=sx,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ln,c()):o!==Ln},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,a=h,c()}}function Px(){return S0()(Ln,Ln)}function dde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $m(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 wu(e){return e=$m(Math.abs(e)),e?e[1]:NaN}function hde(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function pde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var mde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xf(e){if(!(t=mde.exec(e)))throw new Error("invalid format: "+e);var t;return new Tx({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]})}Xf.prototype=Tx.prototype;function Tx(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+""}Tx.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 gde(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var HI;function vde(e,t){var n=$m(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(HI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+$m(e,Math.max(0,t+i-1))[0]}function XE(e,t){var n=$m(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const YE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:dde,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)=>XE(e*100,t),r:XE,s:vde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function QE(e){return e}var JE=Array.prototype.map,ZE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yde(e){var t=e.grouping===void 0||e.thousands===void 0?QE:hde(JE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?QE:pde(JE.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=Xf(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,b=f.zero,m=f.width,v=f.comma,_=f.precision,x=f.trim,O=f.type;O==="n"?(v=!0,O="g"):YE[O]||(_===void 0&&(_=12),x=!0,O="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",w=g==="$"?r:/[%p]/.test(O)?o:"",C=YE[O],A=/[defgprs%]/.test(O);_=_===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function I(P){var T=S,E=w,L,N,U;if(O==="c")E=C(P)+E,P="";else{P=+P;var W=P<0||1/P<0;if(P=isNaN(P)?s:C(Math.abs(P),_),x&&(P=gde(P)),W&&+P==0&&p!=="+"&&(W=!1),T=(W?p==="("?p:l:p==="-"||p==="("?"":p)+T,E=(O==="s"?ZE[8+HI/3]:"")+E+(W&&p==="("?")":""),A){for(L=-1,N=P.length;++LU||U>57){E=(U===46?a+P.slice(L+1):P.slice(L))+E,P=P.slice(0,L);break}}}v&&!b&&(P=t(P,1/0));var $=T.length+P.length+E.length,F=$>1)+T+P+E+F.slice($);break;default:P=F+T+P+E;break}return i(P)}return I.toString=function(){return f+""},I}function c(f,d){var h=u((f=Xf(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(wu(d)/3)))*3,g=Math.pow(10,-p),b=ZE[8+p/3];return function(m){return h(g*m)+b}}return{format:u,formatPrefix:c}}var jh,Ax,WI;bde({thousands:",",grouping:[3],currency:["$",""]});function bde(e){return jh=yde(e),Ax=jh.format,WI=jh.formatPrefix,jh}function _de(e){return Math.max(0,-wu(Math.abs(e)))}function xde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wu(t)/3)))*3-wu(Math.abs(e)))}function wde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wu(t)-wu(e))+1}function VI(e,t,n,r){var a=q1(e,t,n),i;switch(r=Xf(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=xde(a,o))&&(r.precision=i),WI(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=wde(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=_de(a))&&(r.precision=i-(r.type==="%")*2);break}}return Ax(r)}function Do(e){var t=e.domain;return e.ticks=function(n){var r=t();return W1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return VI(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,c=10;for(l0;){if(u=V1(o,l,n),u===s)return r[a]=o,r[i]=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 Mx(){var e=Px();return e.copy=function(){return zd(e,Mx())},qr.apply(e,arguments),Do(e)}function qI(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,Rm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return qI(e).unknown(t)},e=arguments.length?Array.from(e,Rm):[0,1],Do(n)}function GI(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function kde(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 n3(e){return(t,n)=>-e(-t,n)}function Ix(e){const t=e(e3,t3),n=t.domain;let r=10,a,i;function o(){return a=kde(r),i=Ede(r),n()[0]<0?(a=n3(a),i=n3(i),e(Sde,Ode)):e(e3,t3),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=c0){for(;d<=h;++d)for(p=1;pc)break;m.push(g)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(g=d>0?p/i(-d):p*i(d),!(gc)break;m.push(g)}m.length*2{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Xf(s)).precision==null&&(s.trim=!0),s=Ax(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*rn(GI(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function KI(){const e=Ix(S0()).domain([1,10]);return e.copy=()=>zd(e,KI()).base(e.base()),qr.apply(e,arguments),e}function r3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function a3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Rx(e){var t=1,n=e(r3(t),a3(t));return n.constant=function(r){return arguments.length?e(r3(t=+r),a3(t)):t},Do(n)}function XI(){var e=Rx(S0());return e.copy=function(){return zd(e,XI()).constant(e.constant())},qr.apply(e,arguments)}function i3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Pde(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Tde(e){return e<0?-e*e:e*e}function $x(e){var t=e(Ln,Ln),n=1;function r(){return n===1?e(Ln,Ln):n===.5?e(Pde,Tde):e(i3(n),i3(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Do(t)}function Lx(){var e=$x(S0());return e.copy=function(){return zd(e,Lx()).exponent(e.exponent())},qr.apply(e,arguments),e}function Ade(){return Lx.apply(null,arguments).exponent(.5)}function o3(e){return Math.sign(e)*e*e}function Mde(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function YI(){var e=Px(),t=[0,1],n=!1,r;function a(i){var o=Mde(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(o3(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Rm)).map(o3)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return YI(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qr.apply(a,arguments),Do(a)}function QI(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o0?n[l-1]:e[0],l=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return JI().domain([e,t]).range(a).unknown(i)},qr.apply(Do(o),arguments)}function ZI(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Fd(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return ZI().domain(e).range(t).unknown(n)},qr.apply(a,arguments)}const ey=new Date,ty=new Date;function en(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(uen(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ey.setTime(+i),ty.setTime(+o),e(ey),e(ty),Math.floor(n(ey,ty))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lm=en(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lm);Lm.range;const hi=1e3,Lr=hi*60,pi=Lr*60,Ei=pi*24,jx=Ei*7,l3=Ei*30,ny=Ei*365,rl=en(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCSeconds());rl.range;const Dx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());Dx.range;const Nx=en(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());Nx.range;const Fx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getHours());Fx.range;const zx=en(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCHours());zx.range;const Bd=en(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Ei,e=>e.getDate()-1);Bd.range;const O0=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>e.getUTCDate()-1);O0.range;const eR=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>Math.floor(e/Ei));eR.range;function Wl(e){return en(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())*Lr)/jx)}const C0=Wl(0),jm=Wl(1),Ide=Wl(2),Rde=Wl(3),Su=Wl(4),$de=Wl(5),Lde=Wl(6);C0.range;jm.range;Ide.range;Rde.range;Su.range;$de.range;Lde.range;function Vl(e){return en(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)/jx)}const E0=Vl(0),Dm=Vl(1),jde=Vl(2),Dde=Vl(3),Ou=Vl(4),Nde=Vl(5),Fde=Vl(6);E0.range;Dm.range;jde.range;Dde.range;Ou.range;Nde.range;Fde.range;const Bx=en(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());Bx.range;const Ux=en(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());Ux.range;const ki=en(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());ki.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});ki.range;const Pi=en(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});Pi.range;function tR(e,t,n,r,a,i){const o=[[rl,1,hi],[rl,5,5*hi],[rl,15,15*hi],[rl,30,30*hi],[i,1,Lr],[i,5,5*Lr],[i,15,15*Lr],[i,30,30*Lr],[a,1,pi],[a,3,3*pi],[a,6,6*pi],[a,12,12*pi],[r,1,Ei],[r,2,2*Ei],[n,1,jx],[t,1,l3],[t,3,3*l3],[e,1,ny]];function l(u,c,f){const d=cb).right(o,d);if(h===o.length)return e.every(q1(u/ny,c/ny,f));if(h===0)return Lm.every(Math.max(q1(u,c,f),1));const[p,g]=o[d/o[h-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(ye=ay(gc(K.y,0,1)),Ae=ye.getUTCDay(),ye=Ae>4||Ae===0?Dm.ceil(ye):Dm(ye),ye=O0.offset(ye,(K.V-1)*7),K.y=ye.getUTCFullYear(),K.m=ye.getUTCMonth(),K.d=ye.getUTCDate()+(K.w+6)%7):(ye=ry(gc(K.y,0,1)),Ae=ye.getDay(),ye=Ae>4||Ae===0?jm.ceil(ye):jm(ye),ye=Bd.offset(ye,(K.V-1)*7),K.y=ye.getFullYear(),K.m=ye.getMonth(),K.d=ye.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),Ae="Z"in K?ay(gc(K.y,0,1)).getUTCDay():ry(gc(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(Ae+5)%7:K.w+K.U*7-(Ae+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,ay(K)):ry(K)}}function C(q,Z,ie,K){for(var Te=0,ye=Z.length,Ae=ie.length,Ce,Re;Te=Ae)return-1;if(Ce=Z.charCodeAt(Te++),Ce===37){if(Ce=Z.charAt(Te++),Re=O[Ce in s3?Z.charAt(Te++):Ce],!Re||(K=Re(q,ie,K))<0)return-1}else if(Ce!=ie.charCodeAt(K++))return-1}return K}function A(q,Z,ie){var K=u.exec(Z.slice(ie));return K?(q.p=c.get(K[0].toLowerCase()),ie+K[0].length):-1}function I(q,Z,ie){var K=h.exec(Z.slice(ie));return K?(q.w=p.get(K[0].toLowerCase()),ie+K[0].length):-1}function P(q,Z,ie){var K=f.exec(Z.slice(ie));return K?(q.w=d.get(K[0].toLowerCase()),ie+K[0].length):-1}function T(q,Z,ie){var K=m.exec(Z.slice(ie));return K?(q.m=v.get(K[0].toLowerCase()),ie+K[0].length):-1}function E(q,Z,ie){var K=g.exec(Z.slice(ie));return K?(q.m=b.get(K[0].toLowerCase()),ie+K[0].length):-1}function L(q,Z,ie){return C(q,t,Z,ie)}function N(q,Z,ie){return C(q,n,Z,ie)}function U(q,Z,ie){return C(q,r,Z,ie)}function W(q){return o[q.getDay()]}function $(q){return i[q.getDay()]}function F(q){return s[q.getMonth()]}function k(q){return l[q.getMonth()]}function X(q){return a[+(q.getHours()>=12)]}function te(q){return 1+~~(q.getMonth()/3)}function R(q){return o[q.getUTCDay()]}function J(q){return i[q.getUTCDay()]}function ae(q){return s[q.getUTCMonth()]}function ue(q){return l[q.getUTCMonth()]}function ve(q){return a[+(q.getUTCHours()>=12)]}function ke(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Z=S(q+="",_);return Z.toString=function(){return q},Z},parse:function(q){var Z=w(q+="",!1);return Z.toString=function(){return q},Z},utcFormat:function(q){var Z=S(q+="",x);return Z.toString=function(){return q},Z},utcParse:function(q){var Z=w(q+="",!0);return Z.toString=function(){return q},Z}}}var s3={"-":"",_:" ",0:"0"},un=/^\s*\d+/,Vde=/^%/,qde=/[\\^$*+?|[\]().{}]/g;function lt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Kde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Xde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Yde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Qde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Jde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function u3(e,t,n){var r=un.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function c3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Zde(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 ehe(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function the(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function f3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function nhe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function d3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rhe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ahe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ihe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ohe(e,t,n){var r=un.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function lhe(e,t,n){var r=Vde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function she(e,t,n){var r=un.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function uhe(e,t,n){var r=un.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function h3(e,t){return lt(e.getDate(),t,2)}function che(e,t){return lt(e.getHours(),t,2)}function fhe(e,t){return lt(e.getHours()%12||12,t,2)}function dhe(e,t){return lt(1+Bd.count(ki(e),e),t,3)}function nR(e,t){return lt(e.getMilliseconds(),t,3)}function hhe(e,t){return nR(e,t)+"000"}function phe(e,t){return lt(e.getMonth()+1,t,2)}function mhe(e,t){return lt(e.getMinutes(),t,2)}function ghe(e,t){return lt(e.getSeconds(),t,2)}function vhe(e){var t=e.getDay();return t===0?7:t}function yhe(e,t){return lt(C0.count(ki(e)-1,e),t,2)}function rR(e){var t=e.getDay();return t>=4||t===0?Su(e):Su.ceil(e)}function bhe(e,t){return e=rR(e),lt(Su.count(ki(e),e)+(ki(e).getDay()===4),t,2)}function _he(e){return e.getDay()}function xhe(e,t){return lt(jm.count(ki(e)-1,e),t,2)}function whe(e,t){return lt(e.getFullYear()%100,t,2)}function She(e,t){return e=rR(e),lt(e.getFullYear()%100,t,2)}function Ohe(e,t){return lt(e.getFullYear()%1e4,t,4)}function Che(e,t){var n=e.getDay();return e=n>=4||n===0?Su(e):Su.ceil(e),lt(e.getFullYear()%1e4,t,4)}function Ehe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lt(t/60|0,"0",2)+lt(t%60,"0",2)}function p3(e,t){return lt(e.getUTCDate(),t,2)}function khe(e,t){return lt(e.getUTCHours(),t,2)}function Phe(e,t){return lt(e.getUTCHours()%12||12,t,2)}function The(e,t){return lt(1+O0.count(Pi(e),e),t,3)}function aR(e,t){return lt(e.getUTCMilliseconds(),t,3)}function Ahe(e,t){return aR(e,t)+"000"}function Mhe(e,t){return lt(e.getUTCMonth()+1,t,2)}function Ihe(e,t){return lt(e.getUTCMinutes(),t,2)}function Rhe(e,t){return lt(e.getUTCSeconds(),t,2)}function $he(e){var t=e.getUTCDay();return t===0?7:t}function Lhe(e,t){return lt(E0.count(Pi(e)-1,e),t,2)}function iR(e){var t=e.getUTCDay();return t>=4||t===0?Ou(e):Ou.ceil(e)}function jhe(e,t){return e=iR(e),lt(Ou.count(Pi(e),e)+(Pi(e).getUTCDay()===4),t,2)}function Dhe(e){return e.getUTCDay()}function Nhe(e,t){return lt(Dm.count(Pi(e)-1,e),t,2)}function Fhe(e,t){return lt(e.getUTCFullYear()%100,t,2)}function zhe(e,t){return e=iR(e),lt(e.getUTCFullYear()%100,t,2)}function Bhe(e,t){return lt(e.getUTCFullYear()%1e4,t,4)}function Uhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ou(e):Ou.ceil(e),lt(e.getUTCFullYear()%1e4,t,4)}function Hhe(){return"+0000"}function m3(){return"%"}function g3(e){return+e}function v3(e){return Math.floor(+e/1e3)}var os,oR,lR;Whe({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 Whe(e){return os=Wde(e),oR=os.format,os.parse,lR=os.utcFormat,os.utcParse,os}function Vhe(e){return new Date(e)}function qhe(e){return e instanceof Date?+e:+new Date(+e)}function Hx(e,t,n,r,a,i,o,l,s,u){var c=Px(),f=c.invert,d=c.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),b=u("%I %p"),m=u("%a %d"),v=u("%b %d"),_=u("%B"),x=u("%Y");function O(S){return(s(S)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>ade(e,i/r))},n.copy=function(){return fR(t).domain(e)},Ni.apply(n,arguments)}function P0(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=Ln,c,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+c(g))-i)*(r*ge.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"ascending";if(!t)return e;var r=t;(t==="x"||t==="y")&&(r="_".concat(t));var a=n==="ascending"?"asc":"desc";return m0(e,r,a)}function ppe(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Nm(t,"x"),y:Nm(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;var a=function(o,l){return r[l]==="log"?o["_".concat(l)]!==0:!0},i=function(o){var l=a(o,"x")?o._x:n,s=a(o,"y")?o._y:n,u=a(o,"y0")?o._y0:n;return Object.assign({},o,{_x:l,_y:s,_y0:u})};return e.map(function(o){return a(o,"x")&&a(o,"y")&&a(o,"y0")?o:i(o)})}function mpe(e){return Xe(e)?e:e==null?function(){}:K8(e)}function gpe(e,t){var n=!!e.eventKey,r=mpe(e.eventKey);return t.map(function(a,i){if(a.eventKey!==void 0)return a;if(n){var o=r(a,i);return o!==void 0?Object.assign({eventKey:o},a):a}return a})}function vpe(e,t,n){var r=function(p){return p!==void 0},a=pr(t.x),i=pa(t.x),o=pr(t.y),l=pa(t.y),s=function(p){return function(g){return r(g)&&gp}},c=s(a),f=s(o),d=u(i),h=u(l);return e.map(function(p){var g=p._x,b=p._y,m=p._y0,v=p._y1;(c(g)||d(g))&&(g=null);var _=r(m)?m:n,x=r(v)?v:b;return r(x)?(!r(_)&&(f(x)||h(x))&&(b=null),(f(_)&&f(x)||h(_)&&h(x))&&(b=m=v=null),f(_)&&!f(x)&&(m=o),h(_)&&!h(x)&&(m=l),Object.assign({},p,PI({_x:g,_y:b,_y0:m,_y1:v},Ufe))):p})}function iy(e,t){var n=xR(e,t),r=wR(e,t),a=bpe(e,t),i=Il([].concat(tf(n),tf(r),tf(a)));return i.length===0?null:i.reduce(function(o,l,s){return o[l]=s+1,o},{})}function b3(e,t,n){var r=Array.isArray(e)||Ud(e);if(!r||hpe(e)<1)return[];var a=["x","y","y0"];n=Array.isArray(n)?n:a;var i=function(d){return _0(t[d]!==void 0?t[d]:d)},o=n.reduce(function(d,h){return d[h]=i(h),d},{}),l=qfe(n,a)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0",s;l===!1&&(s={x:n.indexOf("x")!==-1?iy(t,"x"):void 0,y:n.indexOf("y")!==-1?iy(t,"y"):void 0,y0:n.indexOf("y0")!==-1?iy(t,"y"):void 0});var u=l?e:e.reduce(function(d,h,p){var g=Y1(h),b={x:p,y:g},m=n.reduce(function(_,x){var O=o[x](g),S=O!==void 0?O:b[x];return S!==void 0&&(typeof S=="string"&&s[x]?(_["".concat(x,"Name")]=S,_["_".concat(x)]=s[x][S]):_["_".concat(x)]=S),_},{}),v=Object.assign({},m,g);return Mt(v)||d.push(v),d},[]),c=_R(u,t.sortKey,t.sortOrder),f=ppe(c,t);return gpe(t,f)}function ype(e){var t=y3(e,"x"),n=y3(e,"y"),r=t.map(function(a,i){return{x:a,y:n[i]}});return r}function qx(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function tr(e){return e.data?b3(e.data,e):b3(ype(e),e)}function xR(e,t){var n=e.tickValues,r=e.tickFormat,a;return!n||!Array.isArray(n)&&!n[t]?a=r&&Array.isArray(r)?r:[]:a=n[t]||n,a.filter(function(i){return typeof i=="string"})}function wR(e,t){if(!e.categories)return[];var n=qx(e,t),r=n&&n.filter(function(a){return typeof a=="string"});return r?xI(r):[]}function bpe(e,t){var n=Array.isArray(e.data)||Ud(e.data);if(!n)return[];var r=e[t]===void 0?t:e[t],a=_0(r),i=e.data.reduce(function(s,u){return s.push(Y1(u)),s},[]),o=_R(i,e.sortKey,e.sortOrder),l=o.reduce(function(s,u){var c=Y1(u);return s.push(a(c)),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 Gx(e){var t=function(i){return i&&i.type?i.type.role:""},n=t(e);if(n==="portal"){var r=M.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var a=["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return a.includes(n)}function _3(e){return Spe(e)||wpe(e)||xpe(e)||_pe()}function _pe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xpe(e,t){if(e){if(typeof e=="string")return Q1(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 Q1(e,t)}}function wpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Spe(e){if(Array.isArray(e))return Q1(e)}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"min",r=function(l){return n==="max"?Math.max.apply(Math,_3(l)):Math.min.apply(Math,_3(l))},a=n==="max"?-1/0:1/0,i=!1,o=e.flat().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 i=i||u instanceof Date||c instanceof Date,r([l,f])},a);return i?new Date(o):o}function kpe(e,t,n){if(!t.domainPadding)return e;var r=Gl(t,n),a=ql(t,n),i=Cpe(t,n);if(!i.left&&!i.right)return e;var o=pr(e),l=pa(e),s=cI(n,t.horizontal),u=ln(t,s),c=Math.abs(u[0]-u[1]),f=Math.max(c-i.left-i.right,1),d=Math.abs(l.valueOf()-o.valueOf())/f*c,h={left:d*i.left/c,right:d*i.right/c},p={min:o.valueOf()-h.left,max:l.valueOf()+h.right},g=Zt(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,b=o>=0&&p.min<=0||l<=0&&p.max>=0,m=function(S,w){var C=w==="min"&&o>=0&&S<=0||w==="max"&&l<=0&&S>=0;return C?0:S};if(b&&g!==!1){var v={left:Math.abs(l-o)*i.left/c,right:Math.abs(l-o)*i.right/c},_={min:m(o.valueOf()-v.left,"min"),max:m(l.valueOf()+v.right,"max")},x={left:Math.abs(_.max-_.min)*i.left/c,right:Math.abs(_.max-_.min)*i.right/c};p={min:m(o.valueOf()-x.left,"min"),max:m(l.valueOf()+x.right,"max")}}var O={min:r!==void 0?r:p.min,max:a!==void 0?a:p.max};return o instanceof Date||l instanceof Date?Ti(new Date(O.min),new Date(O.max)):Ti(O.min,O.max)}function Kx(e,t){var n=Xe(e)?e:Yx,r=Xe(t)?t:Xx;return function(a,i){var o=Qx(a,i);if(o)return r(o,a,i);var l=qx(a,i),s=l?Ppe(a,i,l):n(a,i);return s?r(s,a,i):void 0}}function Xx(e,t,n){return Ope(kpe(e,t,n),t,n)}function Fm(e,t){return Kx()(e,t)}function Ppe(e,t,n){var r=n||qx(e,t),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l;if(r){var u=Gl(e,t),c=ql(e,t),f=wm(r)?wR(e,t):[],d=f.length===0?null:f.reduce(function(m,v,_){return m[v]=_+1,m},{}),h=d?r.map(function(m){return d[m]}):r,p=u!==void 0?u:pr(h),g=c!==void 0?c:pa(h),b=Ti(p,g);return a&&t==="x"&&Math.abs(o-s)===360?Jx(b,h):b}}function Yx(e,t,n){var r=n||tr(e),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l,u=Gl(e,t),c=ql(e,t);if(r.length<1)return u!==void 0&&c!==void 0?Ti(u,c):void 0;var f=u!==void 0?u:x3(r,t,"min"),d=c!==void 0?c:x3(r,t,"max"),h=Ti(f,d);return a&&t==="x"&&Math.abs(o-s)===360?Jx(h,Epe(r,t)):h}function Ti(e,t){var n=function(r){var a=r===0?2*Math.pow(10,-10):Math.pow(10,-10),i=1,o=r instanceof Date?new Date(Number(r)-i):Number(r)-a,l=r instanceof Date?new Date(Number(r)+i):Number(r)+a;return r===0?[0,l]:[o,l]};return Number(e)===Number(t)?n(t):[e,t]}function Qx(e,t){var n=Gl(e,t),r=ql(e,t);if(Zt(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 Ti(n,r)}function J1(e,t){var n=Qx(e,t);if(n)return n;var r=tr(e),a=r.reduce(function(s,u){return u._y0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i.concat(o):i}return i},[])};return r(e)}function ER(e){var t=function(n){var r=Math.min.apply(Math,Ps(n)),a=Math.max.apply(Math,Ps(n));return a<0?a:Math.max(0,r)};return{x:Po(e.x)?new Date(Math.min.apply(Math,Ps(e.x))):t(e.x),y:Po(e.y)?new Date(Math.min.apply(Math,Ps(e.y))):t(e.y)}}function S3(e,t){var n=function(){return e<=0&&Math.max.apply(Math,Ps(t))<=0?"negative":"positive"};return Po(t)?"positive":n()}function T0(e){var t=e.orientation||(e.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[t]}function A0(e){return e.tickValues!==void 0&&wm(e.tickValues)}function $pe(e){var t=e.tickValues,n=Gr(e),r=e.stringMap&&e.stringMap[n],a=t&&!Po(t)?function(u){return u}:void 0;if(!r)return A0(e)?function(u,c){return t[c]}:a;var i=r&&uI(r),o=m0(Object.values(r),function(u){return u}),l=o.map(function(u){return i[u]}),s=[""].concat(Ps(l),[""]);return function(u){return s[u]}}function Lpe(e){var t=Gr(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],a=r&&dse(r)?r.map(function(o){return n[o]}):void 0,i=n&&Object.values(n);return a&&a.length!==0?a:i}function Zx(e){var t=e.tickValues,n=e.tickFormat;if((t==null?void 0:t.length)===0)return[];var r=Gr(e),a=e.stringMap&&e.stringMap[r],i=function(){if(!(!n||!Array.isArray(n)))return wm(n)?n.map(function(u,c){return c}):n},o=t;a&&(o=Lpe(e)),t&&wm(t)&&(o=a?t.map(function(u){return a[u]}):hx(1,t.length+1));var l=o?Il(o):i(),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>=pr(f)&&d<=pa(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 kR(e,t){var n=e.tickFormat,r=Gr(e),a=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){var l=Zx(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&&Xe(n)){var c=function(f,d,h){var p=uI(a),g=h.map(function(b){return p[b]});return e.tickFormat(p[f],d,g)};return a?c:n}}else{var i=$pe(e),o=t.tickFormat&&Xe(t.tickFormat)?t.tickFormat():function(f){return f};return i||o}return function(f){return f}}function O3(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(r,a){return a%n===0})}function PR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,a=Zx(e);if((a==null?void 0:a.length)===0)return[""];var i=a?a.map(function(f){return f.value}):void 0;if(i)return O3(i,r);if(t.ticks&&Xe(t.ticks)){var o=r||5,l=t.ticks(o),s=Array.isArray(l)&&l.length?l:t.domain(),u=O3(s,r);if(n){var c=u.filter(function(f){return f!==0});return c.length?c:u}return u}return t.domain()}function jpe(e,t){var n=e.polar,r=e.startAngle,a=r===void 0?0:r,i=e.endAngle,o=i===void 0?360:i,l=Zx(e),s=l&&(l==null?void 0:l.length)!==0?l.map(function(_){return _.value}):void 0;if(Array.isArray(s)){var u=Gl(e,t),c=ql(e,t),f=A0(e),d=s.map(function(_){return Number(_)}),h=f?1:pr(d),p=f?s.length:pa(d),g=u!==void 0?u:h,b=c!==void 0?c:p,m=Ti(g,b),v=n&&t==="x"&&Math.abs(a-o)===360?Jx(m,d):m;return T0(e)&&!n&&v.reverse(),v}}function Wu(e,t){var n=Gr(e);if(!(t&&t!==n))return Kx(jpe)(e,n)}function TR(e,t){if(e.axisValue){var n=t==="x"?"y":"x",r=Ff(e.scale)&&Xe(e.scale[n])?e.scale[n]:void 0;if(r){var a=t==="x"?"y":"x",i=Ff(e.stringMap)&&e.stringMap[a],o=i&&typeof e.axisValue=="string"?i[e.axisValue]:e.axisValue;return r(o)}}}function M0(e,t){if(!Ff(e.theme))return on(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return on(e,t,"axis");var r=me({},e.theme[n],e.theme.axis),a=Object.assign({},e.theme,{axis:r});return on(Object.assign({},e,{theme:a}),t,"axis")}function Dpe(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Npe(){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(a){var i=t===0?n[t+1]:n[t-1];return i[a]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(a){var i=t===0?n[t+1]:n[t-1];return i[a]};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 AR(e){var t=M.useRef();return M.useEffect(function(){t.current=e}),t.current}function C3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function E3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:Vpe,t=M.useState(e),n=zpe(t,2),r=n[0],a=n[1],i=M.useCallback(function(u){a(function(c){return E3(E3({},c),u)})},[a]),o=M.useCallback(function(u,c,f){if(!(u!=null&&u.animate))return c.props.animate;var d=function(){var m=r&&r.childrenTransitions;return m=xE(m)?m[f]:m,me({childrenTransitions:m},r)},h=u.animate&&u.animate.getTransitions,p=d(),g=u.animate&&u.animate.parentState||p;if(!h){var b=OI(u,p,function(m){return i(m)});h=function(m){return b(m,f)}}return me({getTransitions:h,parentState:g},u.animate,c.props.animate)},[r,i]),l=M.useCallback(function(u,c){if(u!=null&&u.animate)if(u.animate.parentState){var f=u.animate.parentState.nodesWillExit,d=f?u:null,h=me({oldProps:d,nextProps:c},u.animate.parentState);i(h)}else{var p=M.Children.toArray(u.children),g=M.Children.toArray(c.children),b=function(w){var C=function(A){return A.type&&A.type.continuous};return Array.isArray(w)?w.some(C):C(w)},m=!u.polar&&p.some(function(w){var C;return b(w)||(w==null||(C=w.props)===null||C===void 0?void 0:C.children)&&b(w.props.children)}),v=SI(p,g),_=v.nodesWillExit,x=v.nodesWillEnter,O=v.childrenTransitions,S=v.nodesShouldEnter;i({nodesWillExit:_,nodesWillEnter:x,nodesShouldEnter:S,childrenTransitions:xE(O)?O[0]:O,oldProps:_?u:void 0,nextProps:c,continuous:m})}},[i]),s=M.useCallback(function(u){return r&&r.nodesWillExit&&r.oldProps||u},[r]);return{state:r,setState:i,getAnimationProps:o,setAnimationState:l,getProps:s}};function Be(e){return function(){return e}}const P3=Math.abs,xn=Math.atan2,ii=Math.cos,qpe=Math.max,Hs=Math.min,Wn=Math.sin,Ct=Math.sqrt,Sn=1e-12,To=Math.PI,zm=To/2,xo=2*To;function Gpe(e){return e>1?0:e<-1?To:Math.acos(e)}function T3(e){return e>=1?zm:e<=-1?-zm:Math.asin(e)}const e5=Math.PI,t5=2*e5,qo=1e-6,Kpe=t5-qo;function IR(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return IR;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;aqo)if(!(Math.abs(f*s-u*c)>qo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=a-l,g=s*s+u*u,b=h*h+p*p,m=Math.sqrt(g),v=Math.sqrt(d),_=i*Math.tan((e5-Math.acos((g+d-b)/(2*m*v)))/2),x=_/v,O=_/m;Math.abs(x-1)>qo&&this._append`L${t+x*c},${n+x*f}`,this._append`A${i},${i},0,0,${+(f*h>c*p)},${this._x1=t+O*s},${this._y1=n+O*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,c=n+s,f=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>qo||Math.abs(this._y1-c)>qo)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%t5+t5),d>Kpe?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>qo&&this._append`A${r},${r},0,${+(d>=e5)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Hd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ype(t)}function Qpe(e){return e.innerRadius}function Jpe(e){return e.outerRadius}function Zpe(e){return e.startAngle}function eme(e){return e.endAngle}function tme(e){return e&&e.padAngle}function nme(e,t,n,r,a,i,o,l){var s=n-e,u=r-t,c=o-a,f=l-i,d=f*s-c*u;if(!(d*dL*L+N*N&&(C=I,A=P),{cx:C,cy:A,x01:-c,y01:-f,x11:C*(a/O-1),y11:A*(a/O-1)}}function I0(){var e=Qpe,t=Jpe,n=Be(0),r=null,a=Zpe,i=eme,o=tme,l=null,s=Hd(u);function u(){var c,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=a.apply(this,arguments)-zm,g=i.apply(this,arguments)-zm,b=P3(g-p),m=g>p;if(l||(l=c=s()),hSn))l.moveTo(0,0);else if(b>xo-Sn)l.moveTo(h*ii(p),h*Wn(p)),l.arc(0,0,h,p,g,!m),d>Sn&&(l.moveTo(d*ii(g),d*Wn(g)),l.arc(0,0,d,g,p,m));else{var v=p,_=g,x=p,O=g,S=b,w=b,C=o.apply(this,arguments)/2,A=C>Sn&&(r?+r.apply(this,arguments):Ct(d*d+h*h)),I=Hs(P3(h-d)/2,+n.apply(this,arguments)),P=I,T=I,E,L;if(A>Sn){var N=T3(A/d*Wn(C)),U=T3(A/h*Wn(C));(S-=N*2)>Sn?(N*=m?1:-1,x+=N,O-=N):(S=0,x=O=(p+g)/2),(w-=U*2)>Sn?(U*=m?1:-1,v+=U,_-=U):(w=0,v=_=(p+g)/2)}var W=h*ii(v),$=h*Wn(v),F=d*ii(O),k=d*Wn(O);if(I>Sn){var X=h*ii(_),te=h*Wn(_),R=d*ii(x),J=d*Wn(x),ae;if(bSn?T>Sn?(E=Dh(R,J,W,$,h,T,m),L=Dh(X,te,F,k,h,T,m),l.moveTo(E.cx+E.x01,E.cy+E.y01),TSn)||!(S>Sn)?l.lineTo(F,k):P>Sn?(E=Dh(F,k,X,te,d,-P,m),L=Dh(W,$,R,J,d,-P,m),l.lineTo(E.cx+E.x01,E.cy+E.y01),P=h;--p)l.point(_[p],x[p]);l.lineEnd(),l.areaEnd()}m&&(_[d]=+e(b,d,f),x[d]=+t(b,d,f),l.point(r?+r(b,d,f):_[d],n?+n(b,d,f):x[d]))}if(v)return l=null,v+""||null}function c(){return $0().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Be(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Be(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}function ame(e,t){return te?1:t>=e?0:NaN}function ime(e){return e}function LR(){var e=ime,t=ame,n=null,r=Be(0),a=Be(xo),i=Be(0);function o(l){var s,u=(l=R0(l)).length,c,f,d=0,h=new Array(u),p=new Array(u),g=+r.apply(this,arguments),b=Math.min(xo,Math.max(-xo,a.apply(this,arguments)-g)),m,v=Math.min(Math.abs(b)/u,i.apply(this,arguments)),_=v*(b<0?-1:1),x;for(s=0;s0&&(d+=x);for(t!=null?h.sort(function(O,S){return t(p[O],p[S])}):n!=null&&h.sort(function(O,S){return n(l[O],l[S])}),s=0,f=d?(b-u*_)/d:0;s0?x*f:0)+_,p[c]={data:l[c],index:s,value:x,startAngle:g,endAngle:m,padAngle:v};return p}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Be(+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:Be(+l),o):r},o.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Be(+l),o):a},o.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Be(+l),o):i},o}var jR=nw(Wd);function DR(e){this._curve=e}DR.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 nw(e){function t(n){return new DR(e(n))}return t._curve=e,t}function Rc(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(nw(n)):t()._curve},e}function n5(){return Rc($0().curve(jR))}function A3(){var e=$R().curve(jR),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=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 Rc(n())},delete e.lineX0,e.lineEndAngle=function(){return Rc(r())},delete e.lineX1,e.lineInnerRadius=function(){return Rc(a())},delete e.lineY0,e.lineOuterRadius=function(){return Rc(i())},delete e.lineY1,e.curve=function(o){return arguments.length?t(nw(o)):t()._curve},e}function $c(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class NR{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 ome{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=$c(this._x0,this._y0),a=$c(this._x0,this._y0=(this._y0+n)/2),i=$c(t,this._y0),o=$c(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...a,...i,...o)}this._x0=t,this._y0=n}}function FR(e){return new NR(e,!0)}function zR(e){return new NR(e,!1)}function lme(e){return new ome(e)}function sme(e){return e.source}function ume(e){return e.target}function L0(e){let t=sme,n=ume,r=ew,a=tw,i=null,o=null,l=Hd(s);function s(){let u;const c=rme.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(i==null&&(o=e(u=l())),o.lineStart(),c[0]=f,o.point(+r.apply(this,c),+a.apply(this,c)),c[0]=d,o.point(+r.apply(this,c),+a.apply(this,c)),o.lineEnd(),u)return o=null,u+""||null}return s.source=function(u){return arguments.length?(t=u,s):t},s.target=function(u){return arguments.length?(n=u,s):n},s.x=function(u){return arguments.length?(r=typeof u=="function"?u:Be(+u),s):r},s.y=function(u){return arguments.length?(a=typeof u=="function"?u:Be(+u),s):a},s.context=function(u){return arguments.length?(u==null?i=o=null:o=e(i=u),s):i},s}function cme(){return L0(FR)}function fme(){return L0(zR)}function dme(){const e=L0(lme);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const hme=Ct(3),BR={draw(e,t){const n=Ct(t+Hs(t/28,.75))*.59436,r=n/2,a=r*hme;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-r),e.lineTo(a,r),e.moveTo(-a,r),e.lineTo(a,-r)}},j0={draw(e,t){const n=Ct(t/To);e.moveTo(n,0),e.arc(0,0,n,0,xo)}},UR={draw(e,t){const n=Ct(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()}},HR=Ct(1/3),pme=HR*2,WR={draw(e,t){const n=Ct(t/pme),r=n*HR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},VR={draw(e,t){const n=Ct(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},qR={draw(e,t){const n=Ct(t-Hs(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},GR={draw(e,t){const n=Ct(t),r=-n/2;e.rect(r,r,n,n)}},KR={draw(e,t){const n=Ct(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},mme=.8908130915292852,XR=Wn(To/10)/Wn(7*To/10),gme=Wn(xo/10)*XR,vme=-ii(xo/10)*XR,YR={draw(e,t){const n=Ct(t*mme),r=gme*n,a=vme*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=xo*i/5,l=ii(o),s=Wn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},oy=Ct(3),QR={draw(e,t){const n=-Ct(t/(oy*3));e.moveTo(0,n*2),e.lineTo(-oy*n,-n),e.lineTo(oy*n,-n),e.closePath()}},yme=Ct(3),JR={draw(e,t){const n=Ct(t)*.6824,r=n/2,a=n*yme/2;e.moveTo(0,-n),e.lineTo(a,r),e.lineTo(-a,r),e.closePath()}},_r=-.5,xr=Ct(3)/2,r5=1/Ct(12),bme=(r5/2+1)*3,ZR={draw(e,t){const n=Ct(t/bme),r=n/2,a=n*r5,i=r,o=n*r5+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(_r*r-xr*a,xr*r+_r*a),e.lineTo(_r*i-xr*o,xr*i+_r*o),e.lineTo(_r*l-xr*s,xr*l+_r*s),e.lineTo(_r*r+xr*a,_r*a-xr*r),e.lineTo(_r*i+xr*o,_r*o-xr*i),e.lineTo(_r*l+xr*s,_r*s-xr*l),e.closePath()}},a5={draw(e,t){const n=Ct(t-Hs(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},M3=[j0,UR,WR,GR,YR,QR,ZR],_me=[j0,qR,a5,JR,BR,KR,VR];function xme(e,t){let n=null,r=Hd(a);e=typeof e=="function"?e:Be(e||j0),t=typeof t=="function"?t:Be(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Be(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Be(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Ao(){}function Bm(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 D0(e){this._context=e}D0.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:Bm(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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wme(e){return new D0(e)}function e$(e){this._context=e}e$.prototype={areaStart:Ao,areaEnd:Ao,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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sme(e){return new e$(e)}function t$(e){this._context=e}t$.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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ome(e){return new t$(e)}function n$(e,t){this._basis=new D0(e),this._beta=t}n$.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],a=t[0],i=e[n]-r,o=t[n]-a,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*i),this._beta*t[l]+(1-this._beta)*(a+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Cme=function e(t){function n(r){return t===1?new D0(r):new n$(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Um(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 rw(e,t){this._context=e,this._k=(1-t)/6}rw.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:Um(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:Um(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 Eme=function e(t){function n(r){return new rw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aw(e,t){this._context=e,this._k=(1-t)/6}aw.prototype={areaStart:Ao,areaEnd:Ao,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:Um(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 kme=function e(t){function n(r){return new aw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iw(e,t){this._context=e,this._k=(1-t)/6}iw.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:Um(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 Pme=function e(t){function n(r){return new iw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ow(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Sn){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,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Sn){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);i=(i*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,a,i,o,e._x2,e._y2)}function r$(e,t){this._context=e,this._alpha=t}r$.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:ow(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 Tme=function e(t){function n(r){return t?new r$(r,t):new rw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function a$(e,t){this._context=e,this._alpha=t}a$.prototype={areaStart:Ao,areaEnd:Ao,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:ow(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 Ame=function e(t){function n(r){return t?new a$(r,t):new aw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function i$(e,t){this._context=e,this._alpha=t}i$.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:ow(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 Mme=function e(t){function n(r){return t?new i$(r,t):new iw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function o$(e){this._context=e}o$.prototype={areaStart:Ao,areaEnd:Ao,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 Ime(e){return new o$(e)}function I3(e){return e<0?-1:1}function R3(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(I3(i)+I3(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function $3(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ly(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Hm(e){this._context=e}Hm.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:ly(this,this._t0,$3(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,ly(this,$3(this,n=R3(this,e,t)),n);break;default:ly(this,this._t0,n=R3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function l$(e){this._context=new s$(e)}(l$.prototype=Object.create(Hm.prototype)).point=function(e,t){Hm.prototype.point.call(this,t,e)};function s$(e){this._context=e}s$.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function Rme(e){return new Hm(e)}function $me(e){return new l$(e)}function u$(e){this._context=e}u$.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=L3(e),a=L3(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=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 jme(e){return new N0(e,.5)}function Dme(e){return new N0(e,0)}function Nme(e){return new N0(e,1)}function Cu(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n=0;)n[t]=t;return n}function Fme(e,t){return e[t]}function zme(e){const t=[];return t.key=e,t}function Bme(){var e=Be([]),t=Eu,n=Cu,r=Fme;function a(i){var o=Array.from(e.apply(this,arguments),zme),l,s=o.length,u=-1,c;for(const f of i)for(l=0,++u;l0){for(var n,r,a=0,i=e[0].length,o;a0)for(var n,r=0,a,i,o,l,s,u=e[t[0]].length;r0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=l,a[0]=l+=i):(a[0]=0,a[1]=i)}function Wme(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;ri&&(i=a,n=t);return n}function f$(e){var t=e.map(d$);return Eu(e).sort(function(n,r){return t[n]-t[r]})}function d$(e){for(var t=0,n=-1,r=e.length,a;++n0}function m$(e){if(!p$(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function nge(e,t){if(p$(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=tge(e)?e.changedTouches[0]:e,r=ege(t||m$(n));return{x:F3(n.clientX,r,"x"),y:F3(n.clientY,r,"y")}}var rge=Ld,age=EI;function ige(e,t){return e&&e.length?age(e,rge(t)):[]}var oge=ige;const g$=at(oge);function lge(e,t,n,r){for(var a=-1,i=e==null?0:e.length;++ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?Yf("linear"):Yf(i[0])}function y$(e){var t=["groupComponent","containerComponent","labelComponent"],n=Ox(e,t),r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat.apply(n,sa(e.events)):n),r||[]}function Rge(e,t,n){var r=e.style,a=e.colorScale,i=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(a=t.props&&t.props.colorScale?t.props.colorScale:a,i=t.props&&t.props.color?t.props.color:i,!(!a&&!i)){var o=Array.isArray(a)?a:bx(a);return i||o[n%o.length]}}function $ge(e,t,n){var r=e&&e[n]&&e[n].style?e[n].style:{};return b0(t,r)}function Lge(e,t,n){var r=n.style,a=n.role,i=e.props.style||{};if(Array.isArray(i))return i;var o=e.type&&e.type.role,l=o==="stack"?void 0:Rge(n,e,t),s=o==="line"?{fill:"none",stroke:l}:{fill:l},u=a==="stack"?{}:{width:v$(n)},c=me({},i.data,Object.assign({},u,r.data,s)),f=me({},i.labels,r.labels);return Wm(Wm({},i),{},{parent:r.parent,data:c,labels:f})}function jge(e,t){var n=function(r){var a=r.props||{};if(!SR(r)||!a.categories)return null;var i=a.categories&&!Array.isArray(a.categories)?a.categories[t]:a.props.categories,o=i&&i.filter(function(l){return typeof l=="string"});return o?xI(o):[]};return Ul(e.slice(0),n)}function Dge(e){var t=function(a){var i=a.props||{},o;if(Gx(a))a.type&&Xe(a.type.getData)?o=a.type.getData(i):o=tr(i);else return null;return o.map(function(l){return{x:l.xName,y:l.yName}})},n={x:[],y:[]},r=function(a,i){var o=Array.isArray(i)?i.map(function(s){return s.x}).filter(Boolean):i.x,l=Array.isArray(i)?i.map(function(s){return s.y}).filter(Boolean):i.y;return{x:o!==void 0?a.x.concat(o):a.x,y:l!==void 0?a.y.concat(l):a.y}};return Ul(e.slice(0),t,{},n,r)}function B3(e,t,n){var r=Zt(e.categories)?e.categories[t]:e.categories,a=CR(n,t),i=a?xR(a.props,t):[],o=r||jge(n,t);return Il([].concat(sa(o),sa(i)).flat())}function b$(e,t){var n=t||M.Children.toArray(e.children),r=B3(e,"x",n),a=B3(e,"y",n),i=Dge(n);return{x:Il([].concat(sa(r),sa(i.x)).flat()),y:Il([].concat(sa(a),sa(i.y)).flat())}}function _$(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,a=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,i=!r||!a,o=i?n||b$(e,t):{},l=r||o.x,s=a||o.y;return{x:l.length>0?l:void 0,y:s.length>0?s:void 0}}function Nge(e){for(var t=-1,n=e==null?0:e.length,r={};++t0){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=i.call(this,s,u))}else o.push(u);return a==null?u:a.call(this,s,u)}}})(l5,l5.exports);var Bge=l5.exports;const Uge=at(Bge);function Hge(e,t){return qge(e)||Vge(e,t)||x$(e,t)||Wge()}function Wge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function qge(e){if(Array.isArray(e))return e}function Gge(e){return Yge(e)||Xge(e)||x$(e)||Kge()}function Kge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x$(e,t){if(e){if(typeof e=="string")return s5(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 s5(e,t)}}function Xge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yge(e){if(Array.isArray(e))return s5(e)}function s5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qm(e)}var Vu=function(e){Zge(n,e);var t=e0e(n);function n(r){var a;return Qge(this,n),a=t.call(this,r),a.getScopedEvents=void 0,a.getEventState=void 0,a.baseProps=void 0,a.sharedEventsCache=void 0,a.globalEvents=void 0,a.prevGlobalEventKeys=void 0,a.boundGlobalEvents=void 0,a.getScopedEvents=MI.bind(c5(a)),a.getEventState=RI.bind(c5(a)),a.state=a.state||{},a.sharedEventsCache={},a.globalEvents={},a.prevGlobalEventKeys=[],a.boundGlobalEvents={},a.baseProps=a.getBaseProps(r),a}return Jge(n,[{key:"shouldComponentUpdate",value:function(a){if(!Ba(this.props,a)){this.baseProps=this.getBaseProps(a);var i=this.getExternalMutations(a,this.baseProps);this.applyExternalMutations(a,i)}return!0}},{key:"componentDidMount",value:function(){var a=this,i=Object.keys(this.globalEvents);i.forEach(function(o){return a.addGlobalListener(o)}),this.prevGlobalEventKeys=i}},{key:"componentDidUpdate",value:function(){var a=this,i=Object.keys(this.globalEvents),o=Sm(this.prevGlobalEventKeys,i);o.forEach(function(s){return a.removeGlobalListener(s)});var l=Sm(i,this.prevGlobalEventKeys);l.forEach(function(s){return a.addGlobalListener(s)}),this.prevGlobalEventKeys=i}},{key:"componentWillUnmount",value:function(){var a=this;this.prevGlobalEventKeys.forEach(function(i){return a.removeGlobalListener(i)})}},{key:"addGlobalListener",value:function(a){var i=this,o=function(l){var s=i.globalEvents[a];return s&&s(DI(l))};this.boundGlobalEvents[a]=o,window.addEventListener(Am(a),o)}},{key:"removeGlobalListener",value:function(a){window.removeEventListener(Am(a),this.boundGlobalEvents[a])}},{key:"getAllEvents",value:function(a){var i=["container","groupComponent"],o=Ox(a,i);return Array.isArray(o)?Array.isArray(a.events)?o.concat.apply(o,Gge(a.events)):o:a.events}},{key:"applyExternalMutations",value:function(a,i){if(!Mt(i)){var o=a.externalEventMutations.reduce(function(s,u){return Xe(u.callback)?s.concat(u.callback):s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(i,l)}}},{key:"getExternalMutations",value:function(a,i){return Mt(a.externalEventMutations)?void 0:ffe(a.externalEventMutations,i,this.state,Object.keys(i))}},{key:"cacheSharedEvents",value:function(a,i,o){this.sharedEventsCache[a]=[i,o]}},{key:"getCachedSharedEvents",value:function(a,i){var o=this.sharedEventsCache[a]||[],l=Hge(o,2),s=l[0],u=l[1];if(s&&Ba(i,u))return s}},{key:"getBaseProps",value:function(a){var i=a.container,o=M.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=i?i.props:{};return Object.assign({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(a){var i=function(l,s){if(l.type&&Xe(l.type.getBaseProps)){var u=l.props&&l.type.getBaseProps(l.props);return u?[[s,u]]:null}return null},o=Ul(a,i);return zge(o)}},{key:"getNewChildren",value:function(a,i){var o=this,l=a.events,s=a.eventKey,u=function(d,h){return d.reduce(function(p,g,b){if(g.props.children){var m=M.Children.toArray(g.props.children),v=h.slice(b,b+m.length),_=M.cloneElement(g,g.props,u(m,v));return p.concat(_)}else if(h[b]!=="parent"&&g.type&&Xe(g.type.getBaseProps)){var x=g.props.name||h[b],O=Array.isArray(l)&&l.filter(function(C){return C.target==="parent"?!1:Array.isArray(C.childName)?C.childName.indexOf(x)>-1:C.childName===x||C.childName==="all"}),S=[x,i,O,Uge(o.state[x])],w=o.getCachedSharedEvents(x,S)||{events:O,getEvents:function(C,A){return o.getScopedEvents(C,A,x,i)},getEventState:function(C,A){return o.getEventState(C,A,x)}};return o.cacheSharedEvents(x,w,S),p.concat(M.cloneElement(g,Object.assign({key:"events-".concat(x),sharedEvents:w,eventKey:s,name:x},g.props)))}return p.concat(g)},[])},c=Object.keys(i),f=M.Children.toArray(a.children);return u(f,c)}},{key:"getContainer",value:function(a,i,o){var l=this,s=this.getNewChildren(a,i),u=Array.isArray(o)?o.filter(function(_){return _.target==="parent"}):[],c=u.length>0?{events:u,getEvents:function(_,x){return l.getScopedEvents(_,x,null,i)},getEventState:this.getEventState}:null,f=a.container||a.groupComponent,d=f.type&&f.type.role,h=f.props||{},p=AI.bind(this),g=c&&p({sharedEvents:c},"parent"),b=me({},this.getEventState("parent","parent"),h,i.parent,{children:s}),m=me({},II(g,"parent",b),h.events);this.globalEvents=LI(m);var v=jI(m);return d==="container"?M.cloneElement(f,Object.assign({},b,{events:v})):M.cloneElement(f,v,s)}},{key:"render",value:function(){var a=this.getAllEvents(this.props);return a?this.getContainer(this.props,this.baseProps,a):M.cloneElement(this.props.container,{children:this.props.children})}}]),n}(M.Component);Vu.displayName="VictorySharedEvents";Vu.role="shared-event-wrapper";Vu.contextType=v0;Vu.defaultProps={groupComponent:M.createElement("g",null)};function r0e(e){return l0e(e)||o0e(e)||i0e(e)||a0e()}function a0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i0e(e,t){if(e){if(typeof e=="string")return f5(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 f5(e,t)}}function o0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l0e(e){if(Array.isArray(e))return f5(e)}function f5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},f0e=function(e,t,n){var r=e.position,a=e.transform;return{x1:a.x,y1:a.y,x2:a.x+r.x2,y2:a.y+r.y2,style:t,datum:n}},d0e=function(e,t,n,r,a){var i=e.position,o=e.transform;return{style:t,x:o.x+i.x,y:o.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:a,datum:r}},h0e=function(e,t,n){var r=e.edge,a=e.transform;return{x1:a.x,y1:a.y,x2:r.x+a.x,y2:r.y+a.y,style:t,datum:n}},p0e=function(e,t,n){var r=t.style,a=t.padding,i=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:i?n.x:a.left+n.x,x2:i?n.x:o-a.right+n.x,y1:i?a.top+n.y:n.y,y2:i?l-a.bottom+n.y:n.y}},m0e=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},g0e=function(e,t,n){var r=t.style,a=t.orientation,i=t.padding,o=t.labelPadding,l=t.isVertical,s=sw[a],u=i.left+i.right,c=i.top+i.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,p=l?n.x+s*o:(e.width-u)/2+i.left+n.x,g=l?(e.height-c)/2+i.top+n.y:s*o+n.y;return{x:p,y:g,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},v0e=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}},y0e=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=T0(e),a=n.fontSize||14;return e.label?a*(r?2.3:1.6):0},H3=function(e,t,n){var r=t||"positive",a={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},i={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?i[r][e]:a[r][e]},b0e=function(e,t){var n=t.style,r=t.scale,a=t.orientation,i=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:gp({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},p=a==="right"?i.right:i.left,g=a==="top"?i.top:i.bottom,b=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:p,m=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:g,v=n.axisLabel.fontSize||14,_=l.map(function(C,A){var I=s?e.tickValues[C-1]:C,P=_t(n.ticks,Object.assign({},h,{tick:I,index:A}));return P.size||0}),x=v+2*Math.max.apply(Math,r0e(_))+c,O=1.2*v,S=u?x:O,w=u?O:x;return{x:b??S,y:m??w}},uo=function(e,t){return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t},_0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={x:a==="bottom"||a==="top"?a:i.x,y:a==="left"||a==="right"?a:i.y},h={x:d.y==="left"?c:f,y:d.x==="bottom"?u:s},p={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Gm(e.offsetX)?e.offsetX:b,_=Gm(e.offsetY)?e.offsetY:m;return{x:v,y:_}},x0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={y:a==="bottom"||a==="top"?a:i.x,x:a==="left"||a==="right"?a:i.y},h={x:d.y==="bottom"?u:s,y:d.x==="left"?c:f},p={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Gm(e.offsetX)?e.offsetX:m,_=Gm(e.offsetY)?e.offsetY:b;return{x:v,y:_}},w0e=function(e,t,n){var r=t.orientation,a=t.axis,i=TR(e,a);return{top:{x:0,y:i!==void 0?i:n.y},bottom:{x:0,y:i!==void 0?i:e.height-n.y},left:{x:i!==void 0?i:n.x,y:0},right:{x:i!==void 0?i:e.width-n.x,y:0}}[r]},S0e=function(e,t,n){var r=e.tickStyle,a=e.labelStyle,i=r.size||0,o=r.padding||0,l=a.padding||0,s=i+o+l,u=sw[t];return{x:n?u*s:0,x2:n?u*i:0,y:n?0:u*s,y2:n?0:u*i}},O0e=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},C0e=function(e,t){var n=t.orientation,r=t.padding,a=t.isVertical,i=-sw[n],o=a?i*(e.width-(r.left+r.right)):0,l=a?0:i*(e.height-(r.top+r.bottom));return{x:o,y:l}},E0e=function(e,t){var n=e.padding,r=e.orientation,a=e.crossAxis,i=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:a?t.x-i:0,y:a?t.y-o:0}},k0e=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?x0e(e,t):_0e(e,t):n=b0e(e,t),{globalTransform:w0e(e,t,n),gridOffset:E0e(t,n),gridEdge:C0e(e,t)}},P0e=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},T0e=function(e){var t=c0e(e),n=w$(e,t),r=Wt(e),a=y0e(e,n),i=A0(e)?e.tickValues:void 0,o=Gr(e),l=Wu(e),s=u0e(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),p=PR(e,s,h),g=kR(e,s),b={x:ln(e,"x"),y:ln(e,"y")},m={x:e.domain&&e.domain.x?e.domain.x:u,y:e.domain&&e.domain.y?e.domain.y:c},v={x:e.domain&&e.domain.x?Va(e,"x").domain(e.domain.x).range(e.horizontal?b.y:b.x):f,y:e.domain&&e.domain.y?Va(e,"y").domain(e.domain.y).range(e.horizontal?b.x:b.y):d},_=m.x&&m.y?ER(m):void 0,x=_?{x:S3(_.x,m.x),y:S3(_.y,m.y)}:void 0,O=x?{x:H3("x",x.y,e.horizontal),y:H3("y",x.x,e.horizontal)}:void 0,S=O?e.orientation||O[o]:P0e(e),w=T0(Object.assign({},e,{orientation:S})),C=v0e(S,w);return{anchors:C,axis:o,crossAxis:h,domain:m,isVertical:w,labelPadding:a,orientation:S,orientations:O,origin:_,padding:r,scale:v,stringTicks:i,style:n,tickFormat:g,ticks:p}},A0e=function(e,t){var n=M0(e,t),r=T0e(n),a=r.axis,i=r.style,o=r.orientation,l=r.isVertical,s=r.scale,u=r.ticks,c=r.tickFormat,f=r.anchors,d=r.domain,h=r.stringTicks,p=a==="x"?"y":"x",g=n.width,b=n.height,m=n.standalone,v=n.theme,_=n.polar,x=n.padding,O=n.horizontal,S=k0e(n,r),w=S.globalTransform,C=S.gridOffset,A=S.gridEdge,I={scale:gp({},a,s[a]),polar:_,horizontal:O,ticks:u,stringTicks:h},P=p0e(n,r,w),T=g0e(n,r,w),E={parent:Object.assign({style:i.parent,ticks:u,standalone:m,theme:v,width:g,height:b,padding:x,domain:d},I)},L={dimension:p,range:gp({},p,ln(n,p)),scale:n.scale&&n.scale[p]?gp({},p,n.scale[p]):void 0};return u.reduce(function(N,U,W){var $,F,k,X=h?h[W]:U,te=c(U,W,u),R=m0e(i,Object.assign({},I,{tick:X,tickValue:U,index:W,text:te})),J={position:S0e(R,o,l),transform:O0e(($=s[a])===null||$===void 0?void 0:$.call(s,U),w,l)},ae={edge:A,transform:{x:l?-C.x+w.x:((F=s[a])===null||F===void 0?void 0:F.call(s,U))+w.x,y:l?((k=s[a])===null||k===void 0?void 0:k.call(s,U))+w.y:C.y+w.y}};return N[W]={axis:Object.assign({dimension:a},I,P),axisLabel:Object.assign({},I,T),ticks:Object.assign({},I,f0e(J,R.tickStyle,U)),tickLabels:Object.assign({},I,d0e(J,R.labelStyle,f,U,te)),grid:Object.assign({},I,L,h0e(ae,R.gridStyle,U))},N},E)};function M0e(e){return L0e(e)||$0e(e)||R0e(e)||I0e()}function I0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R0e(e,t){if(e){if(typeof e=="string")return d5(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 d5(e,t)}}function $0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L0e(e){if(Array.isArray(e))return d5(e)}function d5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Km(e)}var S$={width:450,height:300,padding:50},H0e={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},va=function(e){N0e(n,e);var t=F0e(n);function n(){return j0e(this,n),t.apply(this,arguments)}return D0e(n,[{key:"renderLine",value:function(a){var i=a.axisComponent,o=this.getComponentProps(i,"axis",0);return M.cloneElement(i,o)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.label;if(!o)return null;var l=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,l)}},{key:"renderGridAndTicks",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.gridComponent,u=a.name,c=function(f){var d=f.style,h=d===void 0?{}:d,p=f.events,g=p===void 0?{}:p,b=h.stroke!=="transparent"&&h.stroke!=="none"&&h.strokeWidth!==0;return b||!Mt(g)};return this.dataKeys.map(function(f,d){var h=i.getComponentProps(o,"ticks",d),p=M.cloneElement(o,h),g=c(p.props)?p:void 0,b=i.getComponentProps(s,"grid",d),m=M.cloneElement(s,b),v=c(m.props)?m:void 0,_=i.getComponentProps(l,"tickLabels",d),x=M.cloneElement(l,_),O=[v,g,x].filter(Boolean);return M.cloneElement(a.groupComponent,{key:"".concat(u,"-tick-group-").concat(f)},O)})}},{key:"fixLabelOverlap",value:function(a,i){var o=T0(i),l=o?i.height:i.width,s=function(b){return b.type&&b.type.role==="label"},u=a.map(function(b){return b.props.children}).reduce(function(b,m){return b.concat(m)},[]).filter(s).map(function(b){return b.props}),c=function(b){return typeof b=="object"?Object.assign({},{top:0,right:0,bottom:0,left:0},b):{top:b,right:b,bottom:b,left:b}},f=u.reduce(function(b,m){var v=c(m.style.padding),_=Ml(m.text,{angle:m.angle,fontSize:m.style.fontSize,letterSpacing:m.style.letterSpacing,fontFamily:m.style.fontFamily});return b+(o?_.height+v.top+v.bottom:_.width+v.right+v.left)},0),d=Math.floor(l*a.length/f),h=Math.ceil(a.length/d)||1,p=function(b){return b.props.children.filter(s).reduce(function(m,v){return(o?v.props.y:v.props.x)||0},0)},g=a.sort(function(b,m){return o?p(m)-p(b):p(b)-p(m)});return g.filter(function(b,m){return m%h===0})}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=Jf.animationWhitelist,i=M0(this.props,S$),o=Ya(this.props);if(this.shouldAnimate())return this.animateComponent(i,a);var l=this.renderGridAndTicks(i),s=i.fixLabelOverlap?this.fixLabelOverlap(l,i):l,u=[this.renderLine(i),this.renderLabel(i)].concat(M0e(s)),c=M.cloneElement(i.containerComponent,o);return i.standalone?this.renderContainer(c,u):M.cloneElement(i.groupComponent,o,u)}}]),n}(M.Component);va.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];va.displayName="VictoryAxis";va.role="axis";va.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};va.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),tickLabelComponent:M.createElement(Dn,null),tickComponent:M.createElement(yl,null),gridComponent:M.createElement(yl,null),standalone:!0,theme:Di.grayscale,containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",{role:"presentation"}),fixLabelOverlap:!1};va.getDomain=Wu;va.getAxis=Gr;va.getStyles=function(e){return w$(e)};va.getBaseProps=function(e){return A0e(e,S$)};va.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Jf=Hu(va,H0e),Xn=function(e,t,n){return n==="x"?e*Math.cos(t):-e*Math.sin(t)},O$=function(e){var t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},W0e=function(e,t){var n=function(r){return t(r)%(2*Math.PI)};return g$(e,n)},uw=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},V0e=function(e){var t,n,r=e.theme,a=r===void 0?{}:r,i=e.dependentAxis,o=a.polarAxis&&a.polarAxis.style||a.axis&&a.axis.style,l=i?"polarDependentAxis":"polarIndependentAxis",s=i?"dependentAxis":"independentAxis",u=(a==null||(t=a[l])===null||t===void 0?void 0:t.style)||(a==null||(n=a[s])===null||n===void 0?void 0:n.style),c=function(){var f=["axis","axisLabel","grid","parent","tickLabels","ticks"];return f.reduce(function(d,h){return d[h]=me({},u==null?void 0:u[h],o==null?void 0:o[h]),d},{})};return o&&u?c():u||o},C$=function(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;if(o===void 0||l===void 0)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-r,l-a-i)/2},E$=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=O$(e);if(n==="angular"){var r=vt(e.startAngle),a=vt(e.endAngle);return[r,a]}var i=C$(e);return[e.innerRadius||0,i]},k$=function(e){var t=Gr(e),n=Va(e,t),r=Wu(e,t)||n.domain(),a=E$(e,t);return n.range(a),n.domain(r),n},P$=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{},r={height:"auto",width:"100%"};return{parent:me(r,n.parent,t.parent),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},F0=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,a=Gr(e),i=TR(e,a);return i===void 0||!r?t===void 0?n:t:bi(i)},q0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{tick:h,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:o,axisType:a,text:d}),g=p.tickStyle,b=a==="radial"?F0(e):void 0,m=g.padding||g.size||0,v=vt(90-b),_=a==="angular"?o(n):vt(-1*b),x=a==="angular"?i:o(n);return a==="angular"?{index:r,datum:h,style:g,x1:Xn(x,_,"x")+f.x,y1:Xn(x,_,"y")+f.y,x2:Xn(x+m,_,"x")+f.x,y2:Xn(x+m,_,"y")+f.y}:{index:r,datum:h,style:g,x1:x*Math.cos(_)+Math.cos(v)*m+f.x,x2:x*Math.cos(_)-Math.cos(v)*m+f.x,y1:x*Math.sin(_)+Math.sin(v)*m+f.y,y2:x*Math.sin(_)-Math.sin(v)*m+f.y}},G0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{text:d,tick:h,tickValue:n,index:r,ticks:u,stringTicks:c,radius:i,scale:s,axisType:a}),g=p.labelStyle,b=e.tickLabelComponent,m=b!=null&&b.props.labelPlacement?b.props.labelPlacement:e.labelPlacement,v=g.padding||0,_=0,x=a==="radial"?F0(e):void 0,O=a==="angular"?bi(s(n)):x+_,S=g.angle===void 0?yx(Object.assign({},e,{labelPlacement:m}),O):g.angle,w=a==="angular"?i+v:s(n),C=g.textAnchor||vx(Object.assign({},e,{labelPlacement:m}),O);return{index:r,datum:h,style:g,angle:S,textAnchor:C,text:d,x:w*Math.cos(vt(O))+f.x,y:-w*Math.sin(vt(O))+f.y}},K0e=function(e,t,n,r){var a=t.axisType,i=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,p=e.endAngle,g=e.innerRadius,b=g===void 0?0:g,m=s?s[r]:n,v=uw(o,{tick:m,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:l,axisType:a,text:d}),_=v.gridStyle,x=l(n);return a==="angular"?{index:r,datum:m,style:_,x1:Xn(i,x,"x")+f.x,y1:Xn(i,x,"y")+f.y,x2:Xn(b,x,"x")+f.x,y2:Xn(b,x,"y")+f.y}:{style:_,index:r,datum:m,cx:f.x,cy:f.y,r:l(n),startAngle:h,endAngle:p}},X0e=function(e,t){var n=t.axisType,r=t.radius,a=t.style,i=t.origin,o=e.axisLabelComponent;if(n!=="radial")return{};var l=o!=null&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=a&&a.axisLabel||{},u=n==="radial"?F0(e):void 0,c=s.angle===void 0?yx(Object.assign({},e,{labelPlacement:l}),u):s.angle,f=r+(s.padding||0),d=s.textAnchor||vx(Object.assign({},e,{labelPlacement:l}),u),h=s.verticalAnchor||dI(Object.assign({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:d,verticalAnchor:h,text:e.label,x:Xn(f,vt(u),"x")+i.x,y:Xn(f,vt(u),"y")+i.y}},Y0e=function(e,t){var n=t.style,r=t.axisType,a=t.radius,i=t.origin,o=e.startAngle,l=e.endAngle,s=e.innerRadius,u=s===void 0?0:s,c=r==="radial"?vt(F0(e)):void 0;return r==="radial"?{style:n.axis,x1:Xn(u,c,"x")+i.x,x2:Xn(a,c,"x")+i.x,y1:Xn(u,c,"y")+i.y,y2:Xn(a,c,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:a,startAngle:o,endAngle:l}},Q0e=function(e){var t=Object.assign({polar:!0},e),n=V0e(t),r=P$(t,n),a=Wt(t),i=Gr(t),o=O$(t),l=A0(t)?t.tickValues:void 0,s=Wu(t,i),u=E$(t,i),c=k$(t),f=PR(t,c),d=o==="angular"?W0e(f,c):f,h=kR(t,c),p=C$(t),g=Nd(t);return{axis:i,style:r,padding:a,stringTicks:l,axisType:o,scale:c,ticks:d,tickFormat:h,domain:s,range:u,radius:p,origin:g}},J0e=function(e,t){var n=M0(e,t),r=Q0e(n),a=r.style,i=r.scale,o=r.ticks,l=r.domain,s=n.width,u=n.height,c=n.standalone,f=n.theme,d=n.name,h=Y0e(n,r),p=X0e(n,r),g={parent:{style:a.parent,ticks:o,scale:i,width:s,height:u,domain:l,standalone:c,theme:f,name:d}};return o.reduce(function(b,m,v){return b[v]={axis:h,axisLabel:p,ticks:q0e(n,r,m,v),tickLabels:G0e(n,r,m,v),grid:K0e(n,r,m,v)},b},g)};function uy(e){return nve(e)||tve(e)||eve(e)||Z0e()}function Z0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eve(e,t){if(e){if(typeof e=="string")return p5(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 p5(e,t)}}function tve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nve(e){if(Array.isArray(e))return p5(e)}function p5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xm(e)}var cw={width:450,height:300,padding:50},Kr=function(e){ive(n,e);var t=ove(n);function n(){return rve(this,n),t.apply(this,arguments)}return ave(n,[{key:"renderAxisLine",value:function(a){var i=a.dependentAxis,o=i?a.axisComponent:a.circularAxisComponent,l=this.getComponentProps(o,"axis",0);return M.cloneElement(o,l)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.dependentAxis,l=a.label;if(!l||!o)return null;var s=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,s)}},{key:"renderAxis",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.name,u=function(v){var _=v.style,x=_===void 0?{}:_,O=v.events,S=O===void 0?{}:O,w=x.stroke!=="transparent"&&x.stroke!=="none"&&x.strokeWidth!==0;return w||!Mt(S)},c=a.dependentAxis?"radial":"angular",f=c==="radial"?a.circularGridComponent:a.gridComponent,d=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(o,"ticks",_)),O=M.cloneElement(o,x);return u(O.props)?O:void 0}).filter(Boolean),h=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-grid-").concat(v)},i.getComponentProps(f,"grid",_)),O=M.cloneElement(f,x);return u(O.props)?O:void 0}).filter(Boolean),p=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(l,"tickLabels",_));return M.cloneElement(l,x)}),g=this.renderAxisLine(a),b=this.renderLabel(a),m=[g,b].concat(uy(d),uy(h),uy(p));return this.renderGroup(a,m)}},{key:"renderGroup",value:function(a,i){var o=a.groupComponent;return M.cloneElement(o,{},i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=g5.animationWhitelist,i=M0(this.props,cw);if(this.shouldAnimate())return this.animateComponent(i,a);var o=this.renderAxis(i);return i.standalone?this.renderContainer(i.containerComponent,o):o}}]),n}(M.Component);Kr.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];Kr.displayName="VictoryAxis";Kr.role="axis";Kr.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};Kr.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),circularAxisComponent:M.createElement($E,null),circularGridComponent:M.createElement($E,null),containerComponent:M.createElement(En,null),endAngle:360,gridComponent:M.createElement(yl,null),groupComponent:M.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Di.grayscale,tickComponent:M.createElement(yl,null),tickLabelComponent:M.createElement(Dn,null)};Kr.getDomain=Wu;Kr.getAxis=Gr;Kr.getScale=k$;Kr.getStyles=function(e){return P$(e,cw.style)};Kr.getBaseProps=function(e){return J0e(e,cw)};Kr.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var cve={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},g5=Hu(Kr,cve),fve={width:450,height:300,padding:50};function dve(e,t,n){var r=n.domain,a=n.scale,i=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:i,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:a}}function hve(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],a=t.range.x[1]-t.range.x[0],i=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:i,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:a};return M.cloneElement(n,me({},n.props,c))}function pve(e,t,n){var r=OR([e]);if(r.length>0)return dve(r[0],t,n);var a=n.categories,i=n.domain,o=n.range,l=n.scale,s=n.stringMap,u=n.horizontal;return{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}}function mve(e){var t=e.style&&e.style.parent;return{parent:me({},t,{height:"100%",width:"100%",userSelect:"none"})}}function T$(e,t){var n=mve(e),r=on(e,fve,"chart"),a=r.horizontal,i=r.polar,o=b$(r,t),l=_$(r,t,o),s=vve(r,t,o),u={x:q3(Object.assign({},r,{categories:l}),"x",t),y:q3(Object.assign({},r,{categories:l}),"y",t)},c={x:ln(r,"x"),y:ln(r,"y")},f={x:Qf(r,"x")||Vm(r,"x"),y:Qf(r,"y")||Vm(r,"y")},d={x:f.x.domain(u.x).range(a?c.y:c.x),y:f.y.domain(u.y).range(a?c.x:c.y)},h=i?Nd(r):ER(u),p=Wt(r);return{categories:l,domain:u,range:c,horizontal:a,scale:d,stringMap:s,style:n,origin:h,padding:p}}function gve(e,t,n){var r=t||A$(e),a=n||T$(e,r),i=a.style.parent,o=e.height,l=e.polar,s=e.theme,u=e.width,c=a.origin,f=a.horizontal,d=e.name||"chart";return r.filter(M.isValidElement).map(function(h,p){var g=h.type&&h.type.role,b=Array.isArray(h.props.style)?h.props.style:me({},h.props.style,{parent:i}),m=pve(h,e,a),v=h.props.name||"".concat(d,"-").concat(g,"-").concat(p),_=me({horizontal:f,height:o,polar:l,theme:s,width:u,style:b,name:v,origin:l?c:void 0,padding:a.padding,key:"".concat(v,"-key-").concat(p),standalone:!1},m);return M.cloneElement(h,_)})}var A$=function(e,t){var n=M.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{var r={dependent:w3(n,"dependent"),independent:w3(n,"independent")};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},q3=function(e,t,n){var r=n||M.Children.toArray(e.children),a=o5(e,t,r),i=CR(r,t),o=i&&i.props&&i.props.invertAxis;return o?a.concat().reverse():a},vve=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(i,o,l){return i[o]=l+1,i},{}),a=!n.y||n.y.length===0?null:n.y.reduce(function(i,o,l){return i[o]=l+1,i},{});return{x:r,y:a}};function G3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function K3(e){for(var t=1;t{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,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},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}}},d5e=[l5e.var,s5e.var,u5e.var,c5e.var,f5e.var],X3=Fi({COLOR_SCALE:d5e}),h5e={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},p5e={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},m5e={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},g5e={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},v5e={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},y5e=[h5e.var,p5e.var,m5e.var,g5e.var,v5e.var],b5e=Fi({COLOR_SCALE:y5e}),_5e={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},x5e={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},w5e={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},S5e={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},O5e={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},C5e=[_5e.var,x5e.var,w5e.var,S5e.var,O5e.var],E5e=Fi({COLOR_SCALE:C5e}),k5e={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},P5e={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},T5e={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},A5e={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},M5e={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},I5e=[k5e.var,P5e.var,T5e.var,A5e.var,M5e.var],R5e=Fi({COLOR_SCALE:I5e}),$5e={name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"},L5e={name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"},j5e={name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"},D5e={name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"},N5e={name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"},F5e=[$5e.var,L5e.var,j5e.var,D5e.var,N5e.var],z5e=Fi({COLOR_SCALE:F5e}),B5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},U5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},H5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},W5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},V5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},G5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},K5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},X5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},Y5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},Q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},J5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},Z5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},e2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},t2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},n2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},r2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},a2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},i2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},o2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},l2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},s2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},u2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},c2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},f2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},d2e=[B5e.var,U5e.var,H5e.var,W5e.var,V5e.var,q5e.var,G5e.var,K5e.var,X5e.var,Y5e.var,Q5e.var,J5e.var,Z5e.var,e2e.var,t2e.var,n2e.var,r2e.var,a2e.var,i2e.var,o2e.var,l2e.var,s2e.var,u2e.var,c2e.var,f2e.var],h2e=Fi({COLOR_SCALE:d2e}),p2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},m2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},g2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},v2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},y2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},b2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},_2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},x2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},w2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},S2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},O2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},C2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},E2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},k2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},P2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},T2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},A2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},M2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},I2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},R2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},$2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},L2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},j2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},D2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},N2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},F2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},z2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},B2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},U2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},H2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},W2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},V2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},q2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},G2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},K2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},X2e=[p2e.var,m2e.var,g2e.var,v2e.var,y2e.var,b2e.var,_2e.var,x2e.var,w2e.var,S2e.var,O2e.var,C2e.var,E2e.var,k2e.var,P2e.var,T2e.var,A2e.var,M2e.var,I2e.var,R2e.var,$2e.var,L2e.var,j2e.var,D2e.var,N2e.var,F2e.var,z2e.var,B2e.var,U2e.var,H2e.var,W2e.var,V2e.var,q2e.var,G2e.var,K2e.var],Y2e=Fi({COLOR_SCALE:X2e}),Q2e={name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"},J2e={name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"},Z2e={name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"},e_e={name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"},t_e={name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"},n_e=[Q2e.var,J2e.var,Z2e.var,e_e.var,t_e.var],r_e=Fi({COLOR_SCALE:n_e}),a_e={name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"},i_e={name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"},o_e={name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"},l_e={name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"},s_e={name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"},u_e=[a_e.var,i_e.var,o_e.var,l_e.var,s_e.var],c_e=Fi({COLOR_SCALE:u_e}),D$=(e,t)=>M$(Xr(e),t),Xr=e=>{const t=Object.assign({},JSON.parse(JSON.stringify(i5e)));return M$(t,f_e(e))},f_e=e=>{switch(e){case xa.blue:return X3;case xa.cyan:return b5e;case xa.gold:return E5e;case xa.gray:return R5e;case xa.green:return z5e;case xa.multi:case xa.multiOrdered:return h2e;case xa.multiUnordered:return Y2e;case xa.orange:return r_e;case xa.purple:return c_e;default:return X3}},B0=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v5-c-chart ${t}`:"pf-v5-c-chart"},Qa=e=>{var{className:t,themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["className","themeColor","theme"]);const i=B0({className:t});return y.createElement(En,Object.assign({className:i,theme:r},a))};Qa.displayName="ChartContainer";Vr(Qa,En);var d_e=Math.ceil,h_e=Math.max;function p_e(e,t,n,r){for(var a=-1,i=h_e(d_e((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var m_e=p_e,g_e=/\s/;function v_e(e){for(var t=e.length;t--&&g_e.test(e.charAt(t)););return t}var y_e=v_e,b_e=y_e,__e=/^\s+/;function x_e(e){return e&&e.slice(0,b_e(e)+1).replace(__e,"")}var w_e=x_e,S_e=w_e,Y3=vr,O_e=Rd,Q3=NaN,C_e=/^[-+]0x[0-9a-f]+$/i,E_e=/^0b[01]+$/i,k_e=/^0o[0-7]+$/i,P_e=parseInt;function T_e(e){if(typeof e=="number")return e;if(O_e(e))return Q3;if(Y3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=S_e(e);var n=E_e.test(e);return n||k_e.test(e)?P_e(e.slice(2),n?2:8):C_e.test(e)?Q3:+e}var N$=T_e,A_e=N$,J3=1/0,M_e=17976931348623157e292;function I_e(e){if(!e)return e===0?e:0;if(e=A_e(e),e===J3||e===-J3){var t=e<0?-1:1;return t*M_e}return e===e?e:0}var R_e=I_e,$_e=m_e,L_e=z_,dy=R_e;function j_e(e){return function(t,n,r){return r&&typeof r!="number"&&L_e(t,n,r)&&(n=r=void 0),t=dy(t),n===void 0?(n=t,t=0):n=dy(n),r=r===void 0?te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),data:me({},n.data,t.data),labels:me({},n.labels,t.labels),border:me({},n.border,t.border),title:me({},n.title,t.title)}},B$=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},a=G_e(e,r),i=q_e(e),o=t==="horizontal",l=Wt({padding:e.borderPadding});return Object.assign({},e,{style:a,isHorizontal:o,colorScale:i,borderPadding:l})},K_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},X_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},U$=function(e){var t=e.data,n=e.style&&e.style.data||{},r=z$(e);return t.map(function(a,i){var o=a.symbol||{},l=r[i].fontSize,s=o.size||n.size||l/2.5,u=e.symbolSpacer||Math.max(s,l);return tk(tk({},a),{},{size:s,symbolSpacer:u,fontSize:l,textSize:Ml(a.name,r[i]),column:K_e(e,i),row:X_e(e,i)})})},H$=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,a=lw(t,"column"),i=Object.keys(a);return i.reduce(function(o,l,s){var u=a[l].map(function(c){return c.textSize.width+c.size+c.symbolSpacer+r});return o[s]=Math.max.apply(Math,F$(u)),o},[])},W$=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,a=lw(t,"row");return Object.keys(a).reduce(function(i,o,l){var s=a[o],u=s.map(function(c){return c.textSize.height+c.symbolSpacer+r});return i[l]=Math.max.apply(Math,F$(u)),i},[])},V$=function(e){var t=e.style&&e.style.title||{},n=Ml(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Y_e=function(e,t,n){var r=e.column,a=e.row;return{x:Z3(r).reduce(function(i,o){return i+n[o]},0),y:Z3(a).reduce(function(i,o){return i+t[o]},0)}},Q_e=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},J_e=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,a=e.style&&e.style.title||{},i=r.props&&r.props.style||{},o=Q_e(t,n);return Array.isArray(i)?i.map(function(l){return me({},l,a,o)}):me({},i,a,o)},Z_e=function(e,t){var n=e.title,r=e.titleOrientation,a=e.centerTitle,i=e.borderPadding,o=t.height,l=t.width,s=J_e(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:a?l/2:i[f]+(u||0),y:a?o/2:i[d]+(u||0)},p=function(){return i[r]+(u||0)},g=c?h.x:p(),b=c?p():h.y;return{x:r==="right"?e.x+l-g:e.x+g,y:r==="bottom"?e.y+o-b:e.y+b,style:s,text:n}},exe=function(e,t,n){var r=e.x,a=e.y,i=e.borderPadding,o=e.style,l=(t||0)+i.top+i.bottom,s=(n||0)+i.left+i.right;return{x:r,y:a,height:l,width:s,style:Object.assign({fill:"none"},o.border)}},q$=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,B$(n)),a=r.title,i=r.titleOrientation,o=U$(r),l=H$(r,o),s=W$(r,o),u=a?V$(r):{height:0,width:0};return{height:i==="left"||i==="right"?Math.max(Nh(s),u.height):Nh(s)+u.height,width:i==="left"||i==="right"?Nh(l)+u.width:Math.max(Nh(l),u.width)}},txe=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,B$(n)),a=r.data,i=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,p=r.titleOrientation,g=r.name,b=r.x,m=b===void 0?0:b,v=r.y,_=v===void 0?0:v,x=U$(r),O=H$(r,x),S=W$(r,x),w=z$(r),C=h?V$(r):{height:0,width:0},A={x:p==="left"?C.width:0,y:p==="top"?C.height:0},I={x:c&&typeof c=="object"&&c.left||0,y:f&&typeof f=="object"&&f.top||0},P=q$(r,t),T=P.height,E=P.width,L=exe(r,T,E),N=Z_e(r,L),U={parent:{data:a,standalone:i,theme:o,padding:l,name:g,height:r.height,width:r.width,style:s.parent},all:{border:L,title:N}};return x.reduce(function(W,$,F){var k=u[F%u.length],X=me({},$.symbol,s.data,{fill:k}),te=Wa($.eventKey)?F:$.eventKey,R=Y_e($,S,O),J=_+d.top+$.symbolSpacer,ae=m+d.left+$.symbolSpacer,ue={index:F,data:a,datum:$,symbol:X.type||X.symbol||"circle",size:$.size,style:X,y:J+R.y+A.y+I.y,x:ae+R.x+A.x+I.x},ve={datum:$,data:a,text:$.name,style:w[F],y:ue.y,x:ue.x+$.symbolSpacer+$.size/2};return W[te]={data:ue,labels:ve},W},U)};function Nh(e){if(e&&e.length){for(var t=0,n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ym(e)}var dw={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},hxe=[{name:"Series 1"},{name:"Series 2"}],Kl=function(e){sxe(n,e);var t=uxe(n);function n(){return oxe(this,n),t.apply(this,arguments)}return lxe(n,[{key:"renderChildren",value:function(a){var i=this,o=a.dataComponent,l=a.labelComponent,s=a.title,u=[];if(a.borderComponent){var c=this.getComponentProps(a.borderComponent,"border","all"),f=M.cloneElement(a.borderComponent,c);u.push(f)}if(o){var d=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(o,"data",m);return M.cloneElement(o,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,nk(d))}if(s&&a.titleComponent){var h=this.getComponentProps(s,"title","all"),p=M.cloneElement(a.titleComponent,h);u.push(p)}if(l){var g=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(l,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(l,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,nk(g))}return u}},{key:"render",value:function(){var a=this.constructor.role,i=on(this.props,dw,a),o=this.renderChildren(i);return i.standalone?this.renderContainer(i.containerComponent,o):M.cloneElement(i.groupComponent,{},o)}}]),n}(M.Component);Kl.displayName="VictoryLegend";Kl.role="legend";Kl.defaultProps={borderComponent:M.createElement(Mue,null),data:hxe,containerComponent:M.createElement(En,null),dataComponent:M.createElement(tce,null),groupComponent:M.createElement("g",null),labelComponent:M.createElement(Dn,null),standalone:!0,theme:Di.grayscale,titleComponent:M.createElement(Dn,null)};Kl.getBaseProps=function(e){return txe(e,dw)};Kl.getDimensions=function(e){return q$(e,dw)};Kl.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var U0=Hu(Kl);const pxe={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},mxe=pxe,gxe={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},vxe=gxe,yxe=R$.var,bxe=$$.var,_xe=fw.value,xxe={label:{fontFamily:yxe,fontSize:_xe,letterSpacing:bxe,margin:mxe.value,fill:L$.var},legend:{margin:O8.value,position:vxe.value}},wxe={name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"},Sxe=wxe,Oxe={name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"},Cxe=Oxe,Exe={name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"},kxe=Exe,Pxe={name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"},Txe=Pxe,Axe={label:{subTitle:{fill:Cxe.var,fontSize:fw.value},subTitlePosition:Txe.value,title:{fill:kxe.var,fontSize:Sxe.value}}},gn=xxe,bc=Axe,Wr=e=>{var{style:t,textAnchor:n}=e,r=Q(e,["style","textAnchor"]);const a=o=>me(Object.assign(Object.assign({},o),{textAnchor:n}),{fill:gn.label.fill,fontFamily:gn.label.fontFamily,fontSize:gn.label.fontSize,letterSpacing:gn.label.letterSpacing}),i=Array.isArray(t)?t.map(a):a(t);return y.createElement(Dn,Object.assign({style:i,textAnchor:n},r))};Wr.displayName="ChartLabel";Vr(Wr,Dn);const rr={circle:(e,t,n)=>`M ${e}, ${t} + z`)}function Yue(e,t,n){var r=1.35*n,a=Math.PI/5,i=hx(10).map(function(o){var l=o%2===0?r:r/2;return"".concat(l*Math.sin(a*(o+1))+e,`, + `).concat(l*Math.cos(a*(o+1))+t)});return"M ".concat(i.join("L")," z")}const Que=Object.freeze(Object.defineProperty({__proto__:null,circle:Uue,cross:Kue,diamond:Wue,minus:Xue,plus:Gue,square:Hue,star:Yue,triangleDown:Vue,triangleUp:que},Symbol.toStringTag,{value:"Module"}));function zE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t-1}var gce=mce;function vce(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=Ice){var u=t?null:Ace(e);if(u)return Mce(u);o=!1,a=Tce,s=new Ece}else s=t?[]:l;e:for(;++re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce(function(a,i){var o=n[i],l=jI(e,t[i],n[i],i);return a[i]=l||o,Tm(a,function(s){return!Mt(s)})},{})}function jI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,a=Object.keys(t);return a.reduce(function(i,o){var l=n[o]||{},s=t[o]||{};if(o==="parent"){var u={eventKey:o,target:"parent"},c=BE(e,s,l,u);i[o]=c!==void 0?Object.assign({},l,c):l}else{var f=Il(Object.keys(s).concat(Object.keys(l)));i[o]=f.reduce(function(d,h){var p={eventKey:o,target:h,childName:r},g=BE(e,s[h],l[h],p);return d[h]=g!==void 0?Object.assign({},l[h],g):l[h],Tm(d,function(b){return!Mt(b)})},{})}return Tm(i,function(d){return!Mt(d)})},{})}function BE(e,t,n,r){var a=function(s,u){if(typeof s[u]=="string")return s[u]==="all"||s[u]===r[u];if(Array.isArray(s[u])){var c=s[u].map(function(f){return"".concat(f)});return c.includes(r[u])}return!1},i=Array.isArray(e)?e:[e];r.childName&&(i=e.filter(function(s){return a(s,"childName")}));var o=i.filter(function(s){return a(s,"target")});if(!Mt(o)){var l=o.filter(function(s){return a(s,"eventKey")});if(!Mt(l))return l.reduce(function(s,u){var c=u&&Xe(u.mutation)?u.mutation:function(){},f=c(Object.assign({},t,n));return Object.assign({},s,f)},{})}}function Ox(e,t){var n=Array.isArray(t)&&t.reduce(function(r,a){var i=e[a],o=i&&i.type&&i.type.defaultEvents,l=Xe(o)?o(i.props):o;return Array.isArray(l)?r.concat.apply(r,MI(l)):r},[]);return n&&n.length?n:void 0}function Am(e){var t=e.match(Sx);return t&&t[1]&&t[1].toLowerCase()}var DI=function(e){return Tm(e,function(t,n){return Sx.test(n)})},NI=function(e){return AI(e,function(t,n){return Sx.test(n)})},FI=function(e){return Object.assign(e,{nativeEvent:e})};function Lh(e){return gfe(e)||mfe(e)||pfe(e)||hfe()}function hfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pfe(e,t){if(e){if(typeof e=="string")return U1(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 U1(e,t)}}function mfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gfe(e){if(Array.isArray(e))return U1(e)}function U1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}var Sfe=function(e){return!Wa(e._x)&&!Wa(e._y)},Ofe=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(r){bfe(i,r);var a=_fe(i);function i(o){var l;return vfe(this,i),l=a.call(this,o),l.state={},l.getEventState=LI.bind(mp(l)),l.getScopedEvents=RI.bind(mp(l)),l.getEvents=function(s,u,c){return II.call(mp(l),s,u,c,l.getScopedEvents)},l.externalMutations=l.getExternalMutations(l.props),l.calculatedState=l.getStateChanges(l.props),l.globalEvents={},l.prevGlobalEventKeys=[],l.boundGlobalEvents={},l.cacheValues(l.getCalculatedValues(o)),l}return yfe(i,[{key:"shouldComponentUpdate",value:function(l){var s=this.getExternalMutations(l),u=this.props.animating||this.props.animate,c=!Ba(s,this.externalMutations);if(u||c)return this.cacheValues(this.getCalculatedValues(l)),this.externalMutations=s,this.applyExternalMutations(l,s),!0;var f=this.getStateChanges(l);return Ba(this.calculatedState,f)?Ba(this.props,l)?!1:(this.cacheValues(this.getCalculatedValues(l)),!0):(this.cacheValues(this.getCalculatedValues(l)),!0)}},{key:"componentDidMount",value:function(){var l=this,s=Object.keys(this.globalEvents);s.forEach(function(u){return l.addGlobalListener(u)}),this.prevGlobalEventKeys=s}},{key:"componentDidUpdate",value:function(l){var s=this,u=this.getStateChanges(l);this.calculatedState=u;var c=Object.keys(this.globalEvents),f=Sm(this.prevGlobalEventKeys,c);f.forEach(function(h){return s.removeGlobalListener(h)});var d=Sm(c,this.prevGlobalEventKeys);d.forEach(function(h){return s.addGlobalListener(h)}),this.prevGlobalEventKeys=c}},{key:"componentWillUnmount",value:function(){var l=this;this.prevGlobalEventKeys.forEach(function(s){return l.removeGlobalListener(s)})}},{key:"addGlobalListener",value:function(l){var s=this,u=function(c){var f=s.globalEvents[l];return f&&f(FI(c))};this.boundGlobalEvents[l]=u,window.addEventListener(Am(l),u)}},{key:"removeGlobalListener",value:function(l){window.removeEventListener(Am(l),this.boundGlobalEvents[l])}},{key:"getStateChanges",value:function(l){var s=this;if(!this.hasEvents)return{};var u=function(d,h){var p=me({},s.getEventState(d,h),s.getSharedEventState(d,h));return Mt(p)?void 0:p},c=t.components||Ofe,f=c.map(function(d){if(!(!l.standalone&&d.name==="parent"))return d.index!==void 0?u(d.index,d.name):s.dataKeys.map(function(h){return u(h,d.name)}).filter(Boolean)}).filter(Boolean);return f}},{key:"applyExternalMutations",value:function(l,s){if(!Mt(s)){var u=l.externalEventMutations.reduce(function(f,d){return Xe(d.callback)?f.concat(d.callback):f},[]),c=u.length?function(){u.forEach(function(f){return f()})}:void 0;this.setState(s,c)}}},{key:"getCalculatedValues",value:function(l){var s=l.sharedEvents,u=e.expectedComponents,c=Ox(l,u),f=s&&Xe(s.getEventState)?s.getEventState:function(){},d=this.getBaseProps(l,f),h=Object.keys(d).filter(function(b){return b!=="parent"}),p=l.events||l.sharedEvents||c,g=this.getAllEvents(l);return{componentEvents:c,getSharedEventState:f,baseProps:d,dataKeys:h,hasEvents:p,events:g}}},{key:"getExternalMutations",value:function(l){var s=l.sharedEvents,u=l.externalEventMutations;return Mt(u)||s?void 0:jI(u,this.baseProps,this.state)}},{key:"cacheValues",value:function(l){var s=this;Object.keys(l).forEach(function(u){s[u]=l[u]})}},{key:"getBaseProps",value:function(l,s){var u=s||this.getSharedEventState.bind(this),c=u("parent","parent"),f=this.getEventState("parent","parent"),d=me({},f,c),h=d.parentControlledProps,p=h?Gf(d,h):{},g=me({},p,l);return typeof e.getBaseProps=="function"?e.getBaseProps(g):{}}},{key:"getAllEvents",value:function(l){if(Array.isArray(this.componentEvents)){var s;return Array.isArray(l.events)?(s=this.componentEvents).concat.apply(s,Lh(l.events)):this.componentEvents}return l.events}},{key:"getComponentProps",value:function(l,s,u){var c=this.props.name||e.role,f=this.dataKeys&&this.dataKeys[u]||u,d="".concat(c,"-").concat(s,"-").concat(f),h=this.baseProps[f]&&this.baseProps[f][s]||this.baseProps[f];if(!(!h&&!this.hasEvents)){var p=l&&typeof l=="object"&&"props"in l?l.props:void 0;if(this.hasEvents){var g=this.getEvents(this.props,s,f),b=me({index:u,key:d},this.getEventState(f,s),this.getSharedEventState(f,s),p,h,{id:d}),m=me({},$I(g,f,b),b.events);return Object.assign({},b,{events:m})}return me({index:u,key:d},p,h,{id:d})}}},{key:"renderContainer",value:function(l,s){var u=l.type&&l.type.role==="container",c=u?this.getComponentProps(l,"parent","parent"):{};return c.events&&(this.globalEvents=DI(c.events),c.events=NI(c.events)),M.cloneElement(l,c,s)}},{key:"animateComponent",value:function(l,s){var u,c=typeof l.animate=="object"&&((u=l.animate)===null||u===void 0?void 0:u.animationWhitelist)||s,f=this.constructor;return M.createElement(wx,{animate:l.animate,animationWhitelist:c},M.createElement(f,l))}},{key:"renderContinuousData",value:function(l){var s=this,u=l.dataComponent,c=l.labelComponent,f=l.groupComponent,d=this.dataKeys.filter(function(b){return b!=="all"}),h=d.reduce(function(b,m){var v=b,_=s.getComponentProps(c,"labels",m);return _&&_.text!==void 0&&_.text!==null&&(v=v.concat(M.cloneElement(c,_))),v},[]),p=this.getComponentProps(u,"data","all"),g=[M.cloneElement(u,p)].concat(Lh(h));return this.renderContainer(f,g)}},{key:"renderData",value:function(l){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sfe,c=l.dataComponent,f=l.labelComponent,d=l.groupComponent,h=this.dataKeys.reduce(function(b,m,v){var _=s.getComponentProps(c,"data",v);return u(_.datum)&&b.push(M.cloneElement(c,_)),b},[]),p=this.dataKeys.map(function(b,m){var v=s.getComponentProps(f,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(f,v)}).filter(Boolean),g=[].concat(Lh(h),Lh(p));return this.renderContainer(d,g)}}]),i}(e);return n}var Cfe=jo,Efe=ji,kfe="[object Date]";function Pfe(e){return Efe(e)&&Cfe(e)==kfe}var Tfe=Pfe,Afe=Tfe,Mfe=Zg,HE=Ad,WE=HE&&HE.isDate,Ife=WE?Mfe(WE):Afe,Rfe=Ife;const zI=at(Rfe);var $fe=Fl;function Lfe(e,t){for(var n=-1,r=e.length,a=0,i=[];++nt?1:e>=t?0:NaN}function Kfe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cx(e){let t,n,r;e.length!==2?(t=_o,n=(l,s)=>_o(e(l),s),r=(l,s)=>e(l)-s):(t=e===_o||e===Kfe?e:Xfe,n=e,r=e);function a(l,s,u=0,c=l.length){if(u>>1;n(l[f],s)<0?u=f+1:c=f}while(u>>1;n(l[f],s)<=0?u=f+1:c=f}while(uu&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function Xfe(){return 0}function BI(e){return e===null?NaN:+e}function*Yfe(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 Qfe=Cx(_o),Fd=Qfe.right;Cx(BI).center;class VE extends Map{constructor(t,n=ede){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(qE(this,t))}has(t){return super.has(qE(this,t))}set(t,n){return super.set(Jfe(this,t),n)}delete(t){return super.delete(Zfe(this,t))}}function qE({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Jfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ede(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tde(e=_o){if(e===_o)return UI;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 UI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const nde=Math.sqrt(50),rde=Math.sqrt(10),ade=Math.sqrt(2);function Im(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=nde?10:i>=rde?5:i>=ade?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/ut&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*ut&&--s),s0))return[];if(e===t)return[e];const r=t=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function KE(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 a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function HI(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?UI:tde(a);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)),p=Math.min(r,Math.floor(t+(s-u)*f/s+d));HI(e,t,h,p,a)}const i=e[t];let o=n,l=r;for(mc(e,n,t),a(e[r],i)>0&&mc(e,n,r);o0;)--l}a(e[n],i)===0?mc(e,n,l):(++l,mc(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function mc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ide(e,t,n){if(e=Float64Array.from(Yfe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return KE(e);if(t>=1)return GE(e);var r,a=(r-1)*t,i=Math.floor(a),o=GE(HI(e,i).subarray(0,i+1)),l=KE(e.subarray(i+1));return o+(l-o)*(a-i)}}function ode(e,t,n=BI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function lde(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++rt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fde(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?dde:fde,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(a((u||(u=l(t,e.map(r),um)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Rm),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=sx,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ln,c()):o!==Ln},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,a=h,c()}}function Px(){return S0()(Ln,Ln)}function hde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $m(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 wu(e){return e=$m(Math.abs(e)),e?e[1]:NaN}function pde(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function mde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xf(e){if(!(t=gde.exec(e)))throw new Error("invalid format: "+e);var t;return new Tx({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]})}Xf.prototype=Tx.prototype;function Tx(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+""}Tx.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 vde(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var VI;function yde(e,t){var n=$m(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(VI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+$m(e,Math.max(0,t+i-1))[0]}function YE(e,t){var n=$m(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const QE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hde,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)=>YE(e*100,t),r:YE,s:yde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function JE(e){return e}var ZE=Array.prototype.map,e3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bde(e){var t=e.grouping===void 0||e.thousands===void 0?JE:pde(ZE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?JE:mde(ZE.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=Xf(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,b=f.zero,m=f.width,v=f.comma,_=f.precision,x=f.trim,O=f.type;O==="n"?(v=!0,O="g"):QE[O]||(_===void 0&&(_=12),x=!0,O="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",w=g==="$"?r:/[%p]/.test(O)?o:"",C=QE[O],A=/[defgprs%]/.test(O);_=_===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function I(P){var T=S,E=w,L,N,U;if(O==="c")E=C(P)+E,P="";else{P=+P;var W=P<0||1/P<0;if(P=isNaN(P)?s:C(Math.abs(P),_),x&&(P=vde(P)),W&&+P==0&&p!=="+"&&(W=!1),T=(W?p==="("?p:l:p==="-"||p==="("?"":p)+T,E=(O==="s"?e3[8+VI/3]:"")+E+(W&&p==="("?")":""),A){for(L=-1,N=P.length;++LU||U>57){E=(U===46?a+P.slice(L+1):P.slice(L))+E,P=P.slice(0,L);break}}}v&&!b&&(P=t(P,1/0));var $=T.length+P.length+E.length,F=$>1)+T+P+E+F.slice($);break;default:P=F+T+P+E;break}return i(P)}return I.toString=function(){return f+""},I}function c(f,d){var h=u((f=Xf(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(wu(d)/3)))*3,g=Math.pow(10,-p),b=e3[8+p/3];return function(m){return h(g*m)+b}}return{format:u,formatPrefix:c}}var jh,Ax,qI;_de({thousands:",",grouping:[3],currency:["$",""]});function _de(e){return jh=bde(e),Ax=jh.format,qI=jh.formatPrefix,jh}function xde(e){return Math.max(0,-wu(Math.abs(e)))}function wde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wu(t)/3)))*3-wu(Math.abs(e)))}function Sde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wu(t)-wu(e))+1}function GI(e,t,n,r){var a=q1(e,t,n),i;switch(r=Xf(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=wde(a,o))&&(r.precision=i),qI(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Sde(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=xde(a))&&(r.precision=i-(r.type==="%")*2);break}}return Ax(r)}function Do(e){var t=e.domain;return e.ticks=function(n){var r=t();return W1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return GI(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,c=10;for(l0;){if(u=V1(o,l,n),u===s)return r[a]=o,r[i]=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 Mx(){var e=Px();return e.copy=function(){return zd(e,Mx())},qr.apply(e,arguments),Do(e)}function KI(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,Rm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return KI(e).unknown(t)},e=arguments.length?Array.from(e,Rm):[0,1],Do(n)}function XI(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Pde(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 r3(e){return(t,n)=>-e(-t,n)}function Ix(e){const t=e(t3,n3),n=t.domain;let r=10,a,i;function o(){return a=Pde(r),i=kde(r),n()[0]<0?(a=r3(a),i=r3(i),e(Ode,Cde)):e(t3,n3),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=c0){for(;d<=h;++d)for(p=1;pc)break;m.push(g)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(g=d>0?p/i(-d):p*i(d),!(gc)break;m.push(g)}m.length*2{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Xf(s)).precision==null&&(s.trim=!0),s=Ax(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*rn(XI(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function YI(){const e=Ix(S0()).domain([1,10]);return e.copy=()=>zd(e,YI()).base(e.base()),qr.apply(e,arguments),e}function a3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function i3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Rx(e){var t=1,n=e(a3(t),i3(t));return n.constant=function(r){return arguments.length?e(a3(t=+r),i3(t)):t},Do(n)}function QI(){var e=Rx(S0());return e.copy=function(){return zd(e,QI()).constant(e.constant())},qr.apply(e,arguments)}function o3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Tde(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ade(e){return e<0?-e*e:e*e}function $x(e){var t=e(Ln,Ln),n=1;function r(){return n===1?e(Ln,Ln):n===.5?e(Tde,Ade):e(o3(n),o3(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Do(t)}function Lx(){var e=$x(S0());return e.copy=function(){return zd(e,Lx()).exponent(e.exponent())},qr.apply(e,arguments),e}function Mde(){return Lx.apply(null,arguments).exponent(.5)}function l3(e){return Math.sign(e)*e*e}function Ide(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function JI(){var e=Px(),t=[0,1],n=!1,r;function a(i){var o=Ide(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(l3(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Rm)).map(l3)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return JI(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qr.apply(a,arguments),Do(a)}function ZI(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o0?n[l-1]:e[0],l=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return eR().domain([e,t]).range(a).unknown(i)},qr.apply(Do(o),arguments)}function tR(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Fd(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return tR().domain(e).range(t).unknown(n)},qr.apply(a,arguments)}const ey=new Date,ty=new Date;function en(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(uen(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ey.setTime(+i),ty.setTime(+o),e(ey),e(ty),Math.floor(n(ey,ty))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lm=en(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lm);Lm.range;const hi=1e3,Lr=hi*60,pi=Lr*60,Ei=pi*24,jx=Ei*7,s3=Ei*30,ny=Ei*365,rl=en(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCSeconds());rl.range;const Dx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());Dx.range;const Nx=en(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());Nx.range;const Fx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getHours());Fx.range;const zx=en(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCHours());zx.range;const Bd=en(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Ei,e=>e.getDate()-1);Bd.range;const O0=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>e.getUTCDate()-1);O0.range;const nR=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>Math.floor(e/Ei));nR.range;function Wl(e){return en(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())*Lr)/jx)}const C0=Wl(0),jm=Wl(1),Rde=Wl(2),$de=Wl(3),Su=Wl(4),Lde=Wl(5),jde=Wl(6);C0.range;jm.range;Rde.range;$de.range;Su.range;Lde.range;jde.range;function Vl(e){return en(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)/jx)}const E0=Vl(0),Dm=Vl(1),Dde=Vl(2),Nde=Vl(3),Ou=Vl(4),Fde=Vl(5),zde=Vl(6);E0.range;Dm.range;Dde.range;Nde.range;Ou.range;Fde.range;zde.range;const Bx=en(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());Bx.range;const Ux=en(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());Ux.range;const ki=en(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());ki.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});ki.range;const Pi=en(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});Pi.range;function rR(e,t,n,r,a,i){const o=[[rl,1,hi],[rl,5,5*hi],[rl,15,15*hi],[rl,30,30*hi],[i,1,Lr],[i,5,5*Lr],[i,15,15*Lr],[i,30,30*Lr],[a,1,pi],[a,3,3*pi],[a,6,6*pi],[a,12,12*pi],[r,1,Ei],[r,2,2*Ei],[n,1,jx],[t,1,s3],[t,3,3*s3],[e,1,ny]];function l(u,c,f){const d=cb).right(o,d);if(h===o.length)return e.every(q1(u/ny,c/ny,f));if(h===0)return Lm.every(Math.max(q1(u,c,f),1));const[p,g]=o[d/o[h-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(ye=ay(gc(K.y,0,1)),Ae=ye.getUTCDay(),ye=Ae>4||Ae===0?Dm.ceil(ye):Dm(ye),ye=O0.offset(ye,(K.V-1)*7),K.y=ye.getUTCFullYear(),K.m=ye.getUTCMonth(),K.d=ye.getUTCDate()+(K.w+6)%7):(ye=ry(gc(K.y,0,1)),Ae=ye.getDay(),ye=Ae>4||Ae===0?jm.ceil(ye):jm(ye),ye=Bd.offset(ye,(K.V-1)*7),K.y=ye.getFullYear(),K.m=ye.getMonth(),K.d=ye.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),Ae="Z"in K?ay(gc(K.y,0,1)).getUTCDay():ry(gc(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(Ae+5)%7:K.w+K.U*7-(Ae+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,ay(K)):ry(K)}}function C(q,Z,ie,K){for(var Te=0,ye=Z.length,Ae=ie.length,Ce,Re;Te=Ae)return-1;if(Ce=Z.charCodeAt(Te++),Ce===37){if(Ce=Z.charAt(Te++),Re=O[Ce in u3?Z.charAt(Te++):Ce],!Re||(K=Re(q,ie,K))<0)return-1}else if(Ce!=ie.charCodeAt(K++))return-1}return K}function A(q,Z,ie){var K=u.exec(Z.slice(ie));return K?(q.p=c.get(K[0].toLowerCase()),ie+K[0].length):-1}function I(q,Z,ie){var K=h.exec(Z.slice(ie));return K?(q.w=p.get(K[0].toLowerCase()),ie+K[0].length):-1}function P(q,Z,ie){var K=f.exec(Z.slice(ie));return K?(q.w=d.get(K[0].toLowerCase()),ie+K[0].length):-1}function T(q,Z,ie){var K=m.exec(Z.slice(ie));return K?(q.m=v.get(K[0].toLowerCase()),ie+K[0].length):-1}function E(q,Z,ie){var K=g.exec(Z.slice(ie));return K?(q.m=b.get(K[0].toLowerCase()),ie+K[0].length):-1}function L(q,Z,ie){return C(q,t,Z,ie)}function N(q,Z,ie){return C(q,n,Z,ie)}function U(q,Z,ie){return C(q,r,Z,ie)}function W(q){return o[q.getDay()]}function $(q){return i[q.getDay()]}function F(q){return s[q.getMonth()]}function k(q){return l[q.getMonth()]}function X(q){return a[+(q.getHours()>=12)]}function te(q){return 1+~~(q.getMonth()/3)}function R(q){return o[q.getUTCDay()]}function J(q){return i[q.getUTCDay()]}function ae(q){return s[q.getUTCMonth()]}function ue(q){return l[q.getUTCMonth()]}function ve(q){return a[+(q.getUTCHours()>=12)]}function ke(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Z=S(q+="",_);return Z.toString=function(){return q},Z},parse:function(q){var Z=w(q+="",!1);return Z.toString=function(){return q},Z},utcFormat:function(q){var Z=S(q+="",x);return Z.toString=function(){return q},Z},utcParse:function(q){var Z=w(q+="",!0);return Z.toString=function(){return q},Z}}}var u3={"-":"",_:" ",0:"0"},un=/^\s*\d+/,qde=/^%/,Gde=/[\\^$*+?|[\]().{}]/g;function lt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Xde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Yde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Jde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function c3(e,t,n){var r=un.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function f3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ehe(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 the(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function nhe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function d3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rhe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function h3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ahe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ihe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ohe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lhe(e,t,n){var r=un.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function she(e,t,n){var r=qde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uhe(e,t,n){var r=un.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function che(e,t,n){var r=un.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function p3(e,t){return lt(e.getDate(),t,2)}function fhe(e,t){return lt(e.getHours(),t,2)}function dhe(e,t){return lt(e.getHours()%12||12,t,2)}function hhe(e,t){return lt(1+Bd.count(ki(e),e),t,3)}function aR(e,t){return lt(e.getMilliseconds(),t,3)}function phe(e,t){return aR(e,t)+"000"}function mhe(e,t){return lt(e.getMonth()+1,t,2)}function ghe(e,t){return lt(e.getMinutes(),t,2)}function vhe(e,t){return lt(e.getSeconds(),t,2)}function yhe(e){var t=e.getDay();return t===0?7:t}function bhe(e,t){return lt(C0.count(ki(e)-1,e),t,2)}function iR(e){var t=e.getDay();return t>=4||t===0?Su(e):Su.ceil(e)}function _he(e,t){return e=iR(e),lt(Su.count(ki(e),e)+(ki(e).getDay()===4),t,2)}function xhe(e){return e.getDay()}function whe(e,t){return lt(jm.count(ki(e)-1,e),t,2)}function She(e,t){return lt(e.getFullYear()%100,t,2)}function Ohe(e,t){return e=iR(e),lt(e.getFullYear()%100,t,2)}function Che(e,t){return lt(e.getFullYear()%1e4,t,4)}function Ehe(e,t){var n=e.getDay();return e=n>=4||n===0?Su(e):Su.ceil(e),lt(e.getFullYear()%1e4,t,4)}function khe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lt(t/60|0,"0",2)+lt(t%60,"0",2)}function m3(e,t){return lt(e.getUTCDate(),t,2)}function Phe(e,t){return lt(e.getUTCHours(),t,2)}function The(e,t){return lt(e.getUTCHours()%12||12,t,2)}function Ahe(e,t){return lt(1+O0.count(Pi(e),e),t,3)}function oR(e,t){return lt(e.getUTCMilliseconds(),t,3)}function Mhe(e,t){return oR(e,t)+"000"}function Ihe(e,t){return lt(e.getUTCMonth()+1,t,2)}function Rhe(e,t){return lt(e.getUTCMinutes(),t,2)}function $he(e,t){return lt(e.getUTCSeconds(),t,2)}function Lhe(e){var t=e.getUTCDay();return t===0?7:t}function jhe(e,t){return lt(E0.count(Pi(e)-1,e),t,2)}function lR(e){var t=e.getUTCDay();return t>=4||t===0?Ou(e):Ou.ceil(e)}function Dhe(e,t){return e=lR(e),lt(Ou.count(Pi(e),e)+(Pi(e).getUTCDay()===4),t,2)}function Nhe(e){return e.getUTCDay()}function Fhe(e,t){return lt(Dm.count(Pi(e)-1,e),t,2)}function zhe(e,t){return lt(e.getUTCFullYear()%100,t,2)}function Bhe(e,t){return e=lR(e),lt(e.getUTCFullYear()%100,t,2)}function Uhe(e,t){return lt(e.getUTCFullYear()%1e4,t,4)}function Hhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ou(e):Ou.ceil(e),lt(e.getUTCFullYear()%1e4,t,4)}function Whe(){return"+0000"}function g3(){return"%"}function v3(e){return+e}function y3(e){return Math.floor(+e/1e3)}var os,sR,uR;Vhe({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 Vhe(e){return os=Vde(e),sR=os.format,os.parse,uR=os.utcFormat,os.utcParse,os}function qhe(e){return new Date(e)}function Ghe(e){return e instanceof Date?+e:+new Date(+e)}function Hx(e,t,n,r,a,i,o,l,s,u){var c=Px(),f=c.invert,d=c.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),b=u("%I %p"),m=u("%a %d"),v=u("%b %d"),_=u("%B"),x=u("%Y");function O(S){return(s(S)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>ide(e,i/r))},n.copy=function(){return hR(t).domain(e)},Ni.apply(n,arguments)}function P0(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=Ln,c,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+c(g))-i)*(r*ge.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"ascending";if(!t)return e;var r=t;(t==="x"||t==="y")&&(r="_".concat(t));var a=n==="ascending"?"asc":"desc";return m0(e,r,a)}function mpe(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Nm(t,"x"),y:Nm(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;var a=function(o,l){return r[l]==="log"?o["_".concat(l)]!==0:!0},i=function(o){var l=a(o,"x")?o._x:n,s=a(o,"y")?o._y:n,u=a(o,"y0")?o._y0:n;return Object.assign({},o,{_x:l,_y:s,_y0:u})};return e.map(function(o){return a(o,"x")&&a(o,"y")&&a(o,"y0")?o:i(o)})}function gpe(e){return Xe(e)?e:e==null?function(){}:Y8(e)}function vpe(e,t){var n=!!e.eventKey,r=gpe(e.eventKey);return t.map(function(a,i){if(a.eventKey!==void 0)return a;if(n){var o=r(a,i);return o!==void 0?Object.assign({eventKey:o},a):a}return a})}function ype(e,t,n){var r=function(p){return p!==void 0},a=mr(t.x),i=pa(t.x),o=mr(t.y),l=pa(t.y),s=function(p){return function(g){return r(g)&&gp}},c=s(a),f=s(o),d=u(i),h=u(l);return e.map(function(p){var g=p._x,b=p._y,m=p._y0,v=p._y1;(c(g)||d(g))&&(g=null);var _=r(m)?m:n,x=r(v)?v:b;return r(x)?(!r(_)&&(f(x)||h(x))&&(b=null),(f(_)&&f(x)||h(_)&&h(x))&&(b=m=v=null),f(_)&&!f(x)&&(m=o),h(_)&&!h(x)&&(m=l),Object.assign({},p,AI({_x:g,_y:b,_y0:m,_y1:v},Hfe))):p})}function iy(e,t){var n=SR(e,t),r=OR(e,t),a=_pe(e,t),i=Il([].concat(tf(n),tf(r),tf(a)));return i.length===0?null:i.reduce(function(o,l,s){return o[l]=s+1,o},{})}function _3(e,t,n){var r=Array.isArray(e)||Ud(e);if(!r||ppe(e)<1)return[];var a=["x","y","y0"];n=Array.isArray(n)?n:a;var i=function(d){return _0(t[d]!==void 0?t[d]:d)},o=n.reduce(function(d,h){return d[h]=i(h),d},{}),l=Gfe(n,a)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0",s;l===!1&&(s={x:n.indexOf("x")!==-1?iy(t,"x"):void 0,y:n.indexOf("y")!==-1?iy(t,"y"):void 0,y0:n.indexOf("y0")!==-1?iy(t,"y"):void 0});var u=l?e:e.reduce(function(d,h,p){var g=Y1(h),b={x:p,y:g},m=n.reduce(function(_,x){var O=o[x](g),S=O!==void 0?O:b[x];return S!==void 0&&(typeof S=="string"&&s[x]?(_["".concat(x,"Name")]=S,_["_".concat(x)]=s[x][S]):_["_".concat(x)]=S),_},{}),v=Object.assign({},m,g);return Mt(v)||d.push(v),d},[]),c=wR(u,t.sortKey,t.sortOrder),f=mpe(c,t);return vpe(t,f)}function bpe(e){var t=b3(e,"x"),n=b3(e,"y"),r=t.map(function(a,i){return{x:a,y:n[i]}});return r}function qx(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function tr(e){return e.data?_3(e.data,e):_3(bpe(e),e)}function SR(e,t){var n=e.tickValues,r=e.tickFormat,a;return!n||!Array.isArray(n)&&!n[t]?a=r&&Array.isArray(r)?r:[]:a=n[t]||n,a.filter(function(i){return typeof i=="string"})}function OR(e,t){if(!e.categories)return[];var n=qx(e,t),r=n&&n.filter(function(a){return typeof a=="string"});return r?SI(r):[]}function _pe(e,t){var n=Array.isArray(e.data)||Ud(e.data);if(!n)return[];var r=e[t]===void 0?t:e[t],a=_0(r),i=e.data.reduce(function(s,u){return s.push(Y1(u)),s},[]),o=wR(i,e.sortKey,e.sortOrder),l=o.reduce(function(s,u){var c=Y1(u);return s.push(a(c)),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 Gx(e){var t=function(i){return i&&i.type?i.type.role:""},n=t(e);if(n==="portal"){var r=M.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var a=["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return a.includes(n)}function x3(e){return Ope(e)||Spe(e)||wpe(e)||xpe()}function xpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wpe(e,t){if(e){if(typeof e=="string")return Q1(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 Q1(e,t)}}function Spe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ope(e){if(Array.isArray(e))return Q1(e)}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"min",r=function(l){return n==="max"?Math.max.apply(Math,x3(l)):Math.min.apply(Math,x3(l))},a=n==="max"?-1/0:1/0,i=!1,o=e.flat().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 i=i||u instanceof Date||c instanceof Date,r([l,f])},a);return i?new Date(o):o}function Ppe(e,t,n){if(!t.domainPadding)return e;var r=Gl(t,n),a=ql(t,n),i=Epe(t,n);if(!i.left&&!i.right)return e;var o=mr(e),l=pa(e),s=dI(n,t.horizontal),u=ln(t,s),c=Math.abs(u[0]-u[1]),f=Math.max(c-i.left-i.right,1),d=Math.abs(l.valueOf()-o.valueOf())/f*c,h={left:d*i.left/c,right:d*i.right/c},p={min:o.valueOf()-h.left,max:l.valueOf()+h.right},g=Zt(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,b=o>=0&&p.min<=0||l<=0&&p.max>=0,m=function(S,w){var C=w==="min"&&o>=0&&S<=0||w==="max"&&l<=0&&S>=0;return C?0:S};if(b&&g!==!1){var v={left:Math.abs(l-o)*i.left/c,right:Math.abs(l-o)*i.right/c},_={min:m(o.valueOf()-v.left,"min"),max:m(l.valueOf()+v.right,"max")},x={left:Math.abs(_.max-_.min)*i.left/c,right:Math.abs(_.max-_.min)*i.right/c};p={min:m(o.valueOf()-x.left,"min"),max:m(l.valueOf()+x.right,"max")}}var O={min:r!==void 0?r:p.min,max:a!==void 0?a:p.max};return o instanceof Date||l instanceof Date?Ti(new Date(O.min),new Date(O.max)):Ti(O.min,O.max)}function Kx(e,t){var n=Xe(e)?e:Yx,r=Xe(t)?t:Xx;return function(a,i){var o=Qx(a,i);if(o)return r(o,a,i);var l=qx(a,i),s=l?Tpe(a,i,l):n(a,i);return s?r(s,a,i):void 0}}function Xx(e,t,n){return Cpe(Ppe(e,t,n),t,n)}function Fm(e,t){return Kx()(e,t)}function Tpe(e,t,n){var r=n||qx(e,t),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l;if(r){var u=Gl(e,t),c=ql(e,t),f=wm(r)?OR(e,t):[],d=f.length===0?null:f.reduce(function(m,v,_){return m[v]=_+1,m},{}),h=d?r.map(function(m){return d[m]}):r,p=u!==void 0?u:mr(h),g=c!==void 0?c:pa(h),b=Ti(p,g);return a&&t==="x"&&Math.abs(o-s)===360?Jx(b,h):b}}function Yx(e,t,n){var r=n||tr(e),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l,u=Gl(e,t),c=ql(e,t);if(r.length<1)return u!==void 0&&c!==void 0?Ti(u,c):void 0;var f=u!==void 0?u:w3(r,t,"min"),d=c!==void 0?c:w3(r,t,"max"),h=Ti(f,d);return a&&t==="x"&&Math.abs(o-s)===360?Jx(h,kpe(r,t)):h}function Ti(e,t){var n=function(r){var a=r===0?2*Math.pow(10,-10):Math.pow(10,-10),i=1,o=r instanceof Date?new Date(Number(r)-i):Number(r)-a,l=r instanceof Date?new Date(Number(r)+i):Number(r)+a;return r===0?[0,l]:[o,l]};return Number(e)===Number(t)?n(t):[e,t]}function Qx(e,t){var n=Gl(e,t),r=ql(e,t);if(Zt(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 Ti(n,r)}function J1(e,t){var n=Qx(e,t);if(n)return n;var r=tr(e),a=r.reduce(function(s,u){return u._y0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i.concat(o):i}return i},[])};return r(e)}function PR(e){var t=function(n){var r=Math.min.apply(Math,Ps(n)),a=Math.max.apply(Math,Ps(n));return a<0?a:Math.max(0,r)};return{x:Po(e.x)?new Date(Math.min.apply(Math,Ps(e.x))):t(e.x),y:Po(e.y)?new Date(Math.min.apply(Math,Ps(e.y))):t(e.y)}}function O3(e,t){var n=function(){return e<=0&&Math.max.apply(Math,Ps(t))<=0?"negative":"positive"};return Po(t)?"positive":n()}function T0(e){var t=e.orientation||(e.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[t]}function A0(e){return e.tickValues!==void 0&&wm(e.tickValues)}function Lpe(e){var t=e.tickValues,n=Gr(e),r=e.stringMap&&e.stringMap[n],a=t&&!Po(t)?function(u){return u}:void 0;if(!r)return A0(e)?function(u,c){return t[c]}:a;var i=r&&fI(r),o=m0(Object.values(r),function(u){return u}),l=o.map(function(u){return i[u]}),s=[""].concat(Ps(l),[""]);return function(u){return s[u]}}function jpe(e){var t=Gr(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],a=r&&hse(r)?r.map(function(o){return n[o]}):void 0,i=n&&Object.values(n);return a&&a.length!==0?a:i}function Zx(e){var t=e.tickValues,n=e.tickFormat;if((t==null?void 0:t.length)===0)return[];var r=Gr(e),a=e.stringMap&&e.stringMap[r],i=function(){if(!(!n||!Array.isArray(n)))return wm(n)?n.map(function(u,c){return c}):n},o=t;a&&(o=jpe(e)),t&&wm(t)&&(o=a?t.map(function(u){return a[u]}):hx(1,t.length+1));var l=o?Il(o):i(),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>=mr(f)&&d<=pa(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 TR(e,t){var n=e.tickFormat,r=Gr(e),a=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){var l=Zx(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&&Xe(n)){var c=function(f,d,h){var p=fI(a),g=h.map(function(b){return p[b]});return e.tickFormat(p[f],d,g)};return a?c:n}}else{var i=Lpe(e),o=t.tickFormat&&Xe(t.tickFormat)?t.tickFormat():function(f){return f};return i||o}return function(f){return f}}function C3(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(r,a){return a%n===0})}function AR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,a=Zx(e);if((a==null?void 0:a.length)===0)return[""];var i=a?a.map(function(f){return f.value}):void 0;if(i)return C3(i,r);if(t.ticks&&Xe(t.ticks)){var o=r||5,l=t.ticks(o),s=Array.isArray(l)&&l.length?l:t.domain(),u=C3(s,r);if(n){var c=u.filter(function(f){return f!==0});return c.length?c:u}return u}return t.domain()}function Dpe(e,t){var n=e.polar,r=e.startAngle,a=r===void 0?0:r,i=e.endAngle,o=i===void 0?360:i,l=Zx(e),s=l&&(l==null?void 0:l.length)!==0?l.map(function(_){return _.value}):void 0;if(Array.isArray(s)){var u=Gl(e,t),c=ql(e,t),f=A0(e),d=s.map(function(_){return Number(_)}),h=f?1:mr(d),p=f?s.length:pa(d),g=u!==void 0?u:h,b=c!==void 0?c:p,m=Ti(g,b),v=n&&t==="x"&&Math.abs(a-o)===360?Jx(m,d):m;return T0(e)&&!n&&v.reverse(),v}}function Wu(e,t){var n=Gr(e);if(!(t&&t!==n))return Kx(Dpe)(e,n)}function MR(e,t){if(e.axisValue){var n=t==="x"?"y":"x",r=Ff(e.scale)&&Xe(e.scale[n])?e.scale[n]:void 0;if(r){var a=t==="x"?"y":"x",i=Ff(e.stringMap)&&e.stringMap[a],o=i&&typeof e.axisValue=="string"?i[e.axisValue]:e.axisValue;return r(o)}}}function M0(e,t){if(!Ff(e.theme))return on(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return on(e,t,"axis");var r=me({},e.theme[n],e.theme.axis),a=Object.assign({},e.theme,{axis:r});return on(Object.assign({},e,{theme:a}),t,"axis")}function Npe(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Fpe(){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(a){var i=t===0?n[t+1]:n[t-1];return i[a]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(a){var i=t===0?n[t+1]:n[t-1];return i[a]};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 IR(e){var t=M.useRef();return M.useEffect(function(){t.current=e}),t.current}function E3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function k3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:qpe,t=M.useState(e),n=Bpe(t,2),r=n[0],a=n[1],i=M.useCallback(function(u){a(function(c){return k3(k3({},c),u)})},[a]),o=M.useCallback(function(u,c,f){if(!(u!=null&&u.animate))return c.props.animate;var d=function(){var m=r&&r.childrenTransitions;return m=wE(m)?m[f]:m,me({childrenTransitions:m},r)},h=u.animate&&u.animate.getTransitions,p=d(),g=u.animate&&u.animate.parentState||p;if(!h){var b=EI(u,p,function(m){return i(m)});h=function(m){return b(m,f)}}return me({getTransitions:h,parentState:g},u.animate,c.props.animate)},[r,i]),l=M.useCallback(function(u,c){if(u!=null&&u.animate)if(u.animate.parentState){var f=u.animate.parentState.nodesWillExit,d=f?u:null,h=me({oldProps:d,nextProps:c},u.animate.parentState);i(h)}else{var p=M.Children.toArray(u.children),g=M.Children.toArray(c.children),b=function(w){var C=function(A){return A.type&&A.type.continuous};return Array.isArray(w)?w.some(C):C(w)},m=!u.polar&&p.some(function(w){var C;return b(w)||(w==null||(C=w.props)===null||C===void 0?void 0:C.children)&&b(w.props.children)}),v=CI(p,g),_=v.nodesWillExit,x=v.nodesWillEnter,O=v.childrenTransitions,S=v.nodesShouldEnter;i({nodesWillExit:_,nodesWillEnter:x,nodesShouldEnter:S,childrenTransitions:wE(O)?O[0]:O,oldProps:_?u:void 0,nextProps:c,continuous:m})}},[i]),s=M.useCallback(function(u){return r&&r.nodesWillExit&&r.oldProps||u},[r]);return{state:r,setState:i,getAnimationProps:o,setAnimationState:l,getProps:s}};function Be(e){return function(){return e}}const T3=Math.abs,xn=Math.atan2,ii=Math.cos,Gpe=Math.max,Hs=Math.min,Wn=Math.sin,Ct=Math.sqrt,Sn=1e-12,To=Math.PI,zm=To/2,xo=2*To;function Kpe(e){return e>1?0:e<-1?To:Math.acos(e)}function A3(e){return e>=1?zm:e<=-1?-zm:Math.asin(e)}const e5=Math.PI,t5=2*e5,qo=1e-6,Xpe=t5-qo;function $R(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $R;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;aqo)if(!(Math.abs(f*s-u*c)>qo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=a-l,g=s*s+u*u,b=h*h+p*p,m=Math.sqrt(g),v=Math.sqrt(d),_=i*Math.tan((e5-Math.acos((g+d-b)/(2*m*v)))/2),x=_/v,O=_/m;Math.abs(x-1)>qo&&this._append`L${t+x*c},${n+x*f}`,this._append`A${i},${i},0,0,${+(f*h>c*p)},${this._x1=t+O*s},${this._y1=n+O*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,c=n+s,f=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>qo||Math.abs(this._y1-c)>qo)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%t5+t5),d>Xpe?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>qo&&this._append`A${r},${r},0,${+(d>=e5)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Hd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Qpe(t)}function Jpe(e){return e.innerRadius}function Zpe(e){return e.outerRadius}function eme(e){return e.startAngle}function tme(e){return e.endAngle}function nme(e){return e&&e.padAngle}function rme(e,t,n,r,a,i,o,l){var s=n-e,u=r-t,c=o-a,f=l-i,d=f*s-c*u;if(!(d*dL*L+N*N&&(C=I,A=P),{cx:C,cy:A,x01:-c,y01:-f,x11:C*(a/O-1),y11:A*(a/O-1)}}function I0(){var e=Jpe,t=Zpe,n=Be(0),r=null,a=eme,i=tme,o=nme,l=null,s=Hd(u);function u(){var c,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=a.apply(this,arguments)-zm,g=i.apply(this,arguments)-zm,b=T3(g-p),m=g>p;if(l||(l=c=s()),hSn))l.moveTo(0,0);else if(b>xo-Sn)l.moveTo(h*ii(p),h*Wn(p)),l.arc(0,0,h,p,g,!m),d>Sn&&(l.moveTo(d*ii(g),d*Wn(g)),l.arc(0,0,d,g,p,m));else{var v=p,_=g,x=p,O=g,S=b,w=b,C=o.apply(this,arguments)/2,A=C>Sn&&(r?+r.apply(this,arguments):Ct(d*d+h*h)),I=Hs(T3(h-d)/2,+n.apply(this,arguments)),P=I,T=I,E,L;if(A>Sn){var N=A3(A/d*Wn(C)),U=A3(A/h*Wn(C));(S-=N*2)>Sn?(N*=m?1:-1,x+=N,O-=N):(S=0,x=O=(p+g)/2),(w-=U*2)>Sn?(U*=m?1:-1,v+=U,_-=U):(w=0,v=_=(p+g)/2)}var W=h*ii(v),$=h*Wn(v),F=d*ii(O),k=d*Wn(O);if(I>Sn){var X=h*ii(_),te=h*Wn(_),R=d*ii(x),J=d*Wn(x),ae;if(bSn?T>Sn?(E=Dh(R,J,W,$,h,T,m),L=Dh(X,te,F,k,h,T,m),l.moveTo(E.cx+E.x01,E.cy+E.y01),TSn)||!(S>Sn)?l.lineTo(F,k):P>Sn?(E=Dh(F,k,X,te,d,-P,m),L=Dh(W,$,R,J,d,-P,m),l.lineTo(E.cx+E.x01,E.cy+E.y01),P=h;--p)l.point(_[p],x[p]);l.lineEnd(),l.areaEnd()}m&&(_[d]=+e(b,d,f),x[d]=+t(b,d,f),l.point(r?+r(b,d,f):_[d],n?+n(b,d,f):x[d]))}if(v)return l=null,v+""||null}function c(){return $0().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Be(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Be(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}function ime(e,t){return te?1:t>=e?0:NaN}function ome(e){return e}function DR(){var e=ome,t=ime,n=null,r=Be(0),a=Be(xo),i=Be(0);function o(l){var s,u=(l=R0(l)).length,c,f,d=0,h=new Array(u),p=new Array(u),g=+r.apply(this,arguments),b=Math.min(xo,Math.max(-xo,a.apply(this,arguments)-g)),m,v=Math.min(Math.abs(b)/u,i.apply(this,arguments)),_=v*(b<0?-1:1),x;for(s=0;s0&&(d+=x);for(t!=null?h.sort(function(O,S){return t(p[O],p[S])}):n!=null&&h.sort(function(O,S){return n(l[O],l[S])}),s=0,f=d?(b-u*_)/d:0;s0?x*f:0)+_,p[c]={data:l[c],index:s,value:x,startAngle:g,endAngle:m,padAngle:v};return p}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Be(+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:Be(+l),o):r},o.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Be(+l),o):a},o.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Be(+l),o):i},o}var NR=nw(Wd);function FR(e){this._curve=e}FR.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 nw(e){function t(n){return new FR(e(n))}return t._curve=e,t}function Rc(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(nw(n)):t()._curve},e}function n5(){return Rc($0().curve(NR))}function M3(){var e=jR().curve(NR),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=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 Rc(n())},delete e.lineX0,e.lineEndAngle=function(){return Rc(r())},delete e.lineX1,e.lineInnerRadius=function(){return Rc(a())},delete e.lineY0,e.lineOuterRadius=function(){return Rc(i())},delete e.lineY1,e.curve=function(o){return arguments.length?t(nw(o)):t()._curve},e}function $c(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class zR{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 lme{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=$c(this._x0,this._y0),a=$c(this._x0,this._y0=(this._y0+n)/2),i=$c(t,this._y0),o=$c(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...a,...i,...o)}this._x0=t,this._y0=n}}function BR(e){return new zR(e,!0)}function UR(e){return new zR(e,!1)}function sme(e){return new lme(e)}function ume(e){return e.source}function cme(e){return e.target}function L0(e){let t=ume,n=cme,r=ew,a=tw,i=null,o=null,l=Hd(s);function s(){let u;const c=ame.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(i==null&&(o=e(u=l())),o.lineStart(),c[0]=f,o.point(+r.apply(this,c),+a.apply(this,c)),c[0]=d,o.point(+r.apply(this,c),+a.apply(this,c)),o.lineEnd(),u)return o=null,u+""||null}return s.source=function(u){return arguments.length?(t=u,s):t},s.target=function(u){return arguments.length?(n=u,s):n},s.x=function(u){return arguments.length?(r=typeof u=="function"?u:Be(+u),s):r},s.y=function(u){return arguments.length?(a=typeof u=="function"?u:Be(+u),s):a},s.context=function(u){return arguments.length?(u==null?i=o=null:o=e(i=u),s):i},s}function fme(){return L0(BR)}function dme(){return L0(UR)}function hme(){const e=L0(sme);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const pme=Ct(3),HR={draw(e,t){const n=Ct(t+Hs(t/28,.75))*.59436,r=n/2,a=r*pme;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-r),e.lineTo(a,r),e.moveTo(-a,r),e.lineTo(a,-r)}},j0={draw(e,t){const n=Ct(t/To);e.moveTo(n,0),e.arc(0,0,n,0,xo)}},WR={draw(e,t){const n=Ct(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()}},VR=Ct(1/3),mme=VR*2,qR={draw(e,t){const n=Ct(t/mme),r=n*VR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GR={draw(e,t){const n=Ct(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},KR={draw(e,t){const n=Ct(t-Hs(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},XR={draw(e,t){const n=Ct(t),r=-n/2;e.rect(r,r,n,n)}},YR={draw(e,t){const n=Ct(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},gme=.8908130915292852,QR=Wn(To/10)/Wn(7*To/10),vme=Wn(xo/10)*QR,yme=-ii(xo/10)*QR,JR={draw(e,t){const n=Ct(t*gme),r=vme*n,a=yme*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=xo*i/5,l=ii(o),s=Wn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},oy=Ct(3),ZR={draw(e,t){const n=-Ct(t/(oy*3));e.moveTo(0,n*2),e.lineTo(-oy*n,-n),e.lineTo(oy*n,-n),e.closePath()}},bme=Ct(3),e$={draw(e,t){const n=Ct(t)*.6824,r=n/2,a=n*bme/2;e.moveTo(0,-n),e.lineTo(a,r),e.lineTo(-a,r),e.closePath()}},xr=-.5,wr=Ct(3)/2,r5=1/Ct(12),_me=(r5/2+1)*3,t$={draw(e,t){const n=Ct(t/_me),r=n/2,a=n*r5,i=r,o=n*r5+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(xr*r-wr*a,wr*r+xr*a),e.lineTo(xr*i-wr*o,wr*i+xr*o),e.lineTo(xr*l-wr*s,wr*l+xr*s),e.lineTo(xr*r+wr*a,xr*a-wr*r),e.lineTo(xr*i+wr*o,xr*o-wr*i),e.lineTo(xr*l+wr*s,xr*s-wr*l),e.closePath()}},a5={draw(e,t){const n=Ct(t-Hs(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},I3=[j0,WR,qR,XR,JR,ZR,t$],xme=[j0,KR,a5,e$,HR,YR,GR];function wme(e,t){let n=null,r=Hd(a);e=typeof e=="function"?e:Be(e||j0),t=typeof t=="function"?t:Be(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Be(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Be(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Ao(){}function Bm(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 D0(e){this._context=e}D0.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:Bm(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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sme(e){return new D0(e)}function n$(e){this._context=e}n$.prototype={areaStart:Ao,areaEnd:Ao,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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ome(e){return new n$(e)}function r$(e){this._context=e}r$.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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cme(e){return new r$(e)}function a$(e,t){this._basis=new D0(e),this._beta=t}a$.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],a=t[0],i=e[n]-r,o=t[n]-a,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*i),this._beta*t[l]+(1-this._beta)*(a+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Eme=function e(t){function n(r){return t===1?new D0(r):new a$(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Um(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 rw(e,t){this._context=e,this._k=(1-t)/6}rw.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:Um(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:Um(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 kme=function e(t){function n(r){return new rw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aw(e,t){this._context=e,this._k=(1-t)/6}aw.prototype={areaStart:Ao,areaEnd:Ao,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:Um(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 Pme=function e(t){function n(r){return new aw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iw(e,t){this._context=e,this._k=(1-t)/6}iw.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:Um(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 Tme=function e(t){function n(r){return new iw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ow(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Sn){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,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Sn){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);i=(i*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,a,i,o,e._x2,e._y2)}function i$(e,t){this._context=e,this._alpha=t}i$.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:ow(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 Ame=function e(t){function n(r){return t?new i$(r,t):new rw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function o$(e,t){this._context=e,this._alpha=t}o$.prototype={areaStart:Ao,areaEnd:Ao,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:ow(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 Mme=function e(t){function n(r){return t?new o$(r,t):new aw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function l$(e,t){this._context=e,this._alpha=t}l$.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:ow(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 Ime=function e(t){function n(r){return t?new l$(r,t):new iw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function s$(e){this._context=e}s$.prototype={areaStart:Ao,areaEnd:Ao,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 Rme(e){return new s$(e)}function R3(e){return e<0?-1:1}function $3(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(R3(i)+R3(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function L3(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ly(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Hm(e){this._context=e}Hm.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:ly(this,this._t0,L3(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,ly(this,L3(this,n=$3(this,e,t)),n);break;default:ly(this,this._t0,n=$3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function u$(e){this._context=new c$(e)}(u$.prototype=Object.create(Hm.prototype)).point=function(e,t){Hm.prototype.point.call(this,t,e)};function c$(e){this._context=e}c$.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function $me(e){return new Hm(e)}function Lme(e){return new u$(e)}function f$(e){this._context=e}f$.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=j3(e),a=j3(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=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 Dme(e){return new N0(e,.5)}function Nme(e){return new N0(e,0)}function Fme(e){return new N0(e,1)}function Cu(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n=0;)n[t]=t;return n}function zme(e,t){return e[t]}function Bme(e){const t=[];return t.key=e,t}function Ume(){var e=Be([]),t=Eu,n=Cu,r=zme;function a(i){var o=Array.from(e.apply(this,arguments),Bme),l,s=o.length,u=-1,c;for(const f of i)for(l=0,++u;l0){for(var n,r,a=0,i=e[0].length,o;a0)for(var n,r=0,a,i,o,l,s,u=e[t[0]].length;r0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=l,a[0]=l+=i):(a[0]=0,a[1]=i)}function Vme(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;ri&&(i=a,n=t);return n}function h$(e){var t=e.map(p$);return Eu(e).sort(function(n,r){return t[n]-t[r]})}function p$(e){for(var t=0,n=-1,r=e.length,a;++n0}function v$(e){if(!g$(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function rge(e,t){if(g$(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=nge(e)?e.changedTouches[0]:e,r=tge(t||v$(n));return{x:z3(n.clientX,r,"x"),y:z3(n.clientY,r,"y")}}var age=Ld,ige=PI;function oge(e,t){return e&&e.length?ige(e,age(t)):[]}var lge=oge;const y$=at(lge);function sge(e,t,n,r){for(var a=-1,i=e==null?0:e.length;++ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?Yf("linear"):Yf(i[0])}function _$(e){var t=["groupComponent","containerComponent","labelComponent"],n=Ox(e,t),r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat.apply(n,sa(e.events)):n),r||[]}function $ge(e,t,n){var r=e.style,a=e.colorScale,i=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(a=t.props&&t.props.colorScale?t.props.colorScale:a,i=t.props&&t.props.color?t.props.color:i,!(!a&&!i)){var o=Array.isArray(a)?a:bx(a);return i||o[n%o.length]}}function Lge(e,t,n){var r=e&&e[n]&&e[n].style?e[n].style:{};return b0(t,r)}function jge(e,t,n){var r=n.style,a=n.role,i=e.props.style||{};if(Array.isArray(i))return i;var o=e.type&&e.type.role,l=o==="stack"?void 0:$ge(n,e,t),s=o==="line"?{fill:"none",stroke:l}:{fill:l},u=a==="stack"?{}:{width:b$(n)},c=me({},i.data,Object.assign({},u,r.data,s)),f=me({},i.labels,r.labels);return Wm(Wm({},i),{},{parent:r.parent,data:c,labels:f})}function Dge(e,t){var n=function(r){var a=r.props||{};if(!CR(r)||!a.categories)return null;var i=a.categories&&!Array.isArray(a.categories)?a.categories[t]:a.props.categories,o=i&&i.filter(function(l){return typeof l=="string"});return o?SI(o):[]};return Ul(e.slice(0),n)}function Nge(e){var t=function(a){var i=a.props||{},o;if(Gx(a))a.type&&Xe(a.type.getData)?o=a.type.getData(i):o=tr(i);else return null;return o.map(function(l){return{x:l.xName,y:l.yName}})},n={x:[],y:[]},r=function(a,i){var o=Array.isArray(i)?i.map(function(s){return s.x}).filter(Boolean):i.x,l=Array.isArray(i)?i.map(function(s){return s.y}).filter(Boolean):i.y;return{x:o!==void 0?a.x.concat(o):a.x,y:l!==void 0?a.y.concat(l):a.y}};return Ul(e.slice(0),t,{},n,r)}function U3(e,t,n){var r=Zt(e.categories)?e.categories[t]:e.categories,a=kR(n,t),i=a?SR(a.props,t):[],o=r||Dge(n,t);return Il([].concat(sa(o),sa(i)).flat())}function x$(e,t){var n=t||M.Children.toArray(e.children),r=U3(e,"x",n),a=U3(e,"y",n),i=Nge(n);return{x:Il([].concat(sa(r),sa(i.x)).flat()),y:Il([].concat(sa(a),sa(i.y)).flat())}}function w$(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,a=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,i=!r||!a,o=i?n||x$(e,t):{},l=r||o.x,s=a||o.y;return{x:l.length>0?l:void 0,y:s.length>0?s:void 0}}function Fge(e){for(var t=-1,n=e==null?0:e.length,r={};++t0){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=i.call(this,s,u))}else o.push(u);return a==null?u:a.call(this,s,u)}}})(l5,l5.exports);var Uge=l5.exports;const Hge=at(Uge);function Wge(e,t){return Gge(e)||qge(e,t)||S$(e,t)||Vge()}function Vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Gge(e){if(Array.isArray(e))return e}function Kge(e){return Qge(e)||Yge(e)||S$(e)||Xge()}function Xge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$(e,t){if(e){if(typeof e=="string")return s5(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 s5(e,t)}}function Yge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qge(e){if(Array.isArray(e))return s5(e)}function s5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qm(e)}var Vu=function(e){e0e(n,e);var t=t0e(n);function n(r){var a;return Jge(this,n),a=t.call(this,r),a.getScopedEvents=void 0,a.getEventState=void 0,a.baseProps=void 0,a.sharedEventsCache=void 0,a.globalEvents=void 0,a.prevGlobalEventKeys=void 0,a.boundGlobalEvents=void 0,a.getScopedEvents=RI.bind(c5(a)),a.getEventState=LI.bind(c5(a)),a.state=a.state||{},a.sharedEventsCache={},a.globalEvents={},a.prevGlobalEventKeys=[],a.boundGlobalEvents={},a.baseProps=a.getBaseProps(r),a}return Zge(n,[{key:"shouldComponentUpdate",value:function(a){if(!Ba(this.props,a)){this.baseProps=this.getBaseProps(a);var i=this.getExternalMutations(a,this.baseProps);this.applyExternalMutations(a,i)}return!0}},{key:"componentDidMount",value:function(){var a=this,i=Object.keys(this.globalEvents);i.forEach(function(o){return a.addGlobalListener(o)}),this.prevGlobalEventKeys=i}},{key:"componentDidUpdate",value:function(){var a=this,i=Object.keys(this.globalEvents),o=Sm(this.prevGlobalEventKeys,i);o.forEach(function(s){return a.removeGlobalListener(s)});var l=Sm(i,this.prevGlobalEventKeys);l.forEach(function(s){return a.addGlobalListener(s)}),this.prevGlobalEventKeys=i}},{key:"componentWillUnmount",value:function(){var a=this;this.prevGlobalEventKeys.forEach(function(i){return a.removeGlobalListener(i)})}},{key:"addGlobalListener",value:function(a){var i=this,o=function(l){var s=i.globalEvents[a];return s&&s(FI(l))};this.boundGlobalEvents[a]=o,window.addEventListener(Am(a),o)}},{key:"removeGlobalListener",value:function(a){window.removeEventListener(Am(a),this.boundGlobalEvents[a])}},{key:"getAllEvents",value:function(a){var i=["container","groupComponent"],o=Ox(a,i);return Array.isArray(o)?Array.isArray(a.events)?o.concat.apply(o,Kge(a.events)):o:a.events}},{key:"applyExternalMutations",value:function(a,i){if(!Mt(i)){var o=a.externalEventMutations.reduce(function(s,u){return Xe(u.callback)?s.concat(u.callback):s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(i,l)}}},{key:"getExternalMutations",value:function(a,i){return Mt(a.externalEventMutations)?void 0:dfe(a.externalEventMutations,i,this.state,Object.keys(i))}},{key:"cacheSharedEvents",value:function(a,i,o){this.sharedEventsCache[a]=[i,o]}},{key:"getCachedSharedEvents",value:function(a,i){var o=this.sharedEventsCache[a]||[],l=Wge(o,2),s=l[0],u=l[1];if(s&&Ba(i,u))return s}},{key:"getBaseProps",value:function(a){var i=a.container,o=M.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=i?i.props:{};return Object.assign({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(a){var i=function(l,s){if(l.type&&Xe(l.type.getBaseProps)){var u=l.props&&l.type.getBaseProps(l.props);return u?[[s,u]]:null}return null},o=Ul(a,i);return Bge(o)}},{key:"getNewChildren",value:function(a,i){var o=this,l=a.events,s=a.eventKey,u=function(d,h){return d.reduce(function(p,g,b){if(g.props.children){var m=M.Children.toArray(g.props.children),v=h.slice(b,b+m.length),_=M.cloneElement(g,g.props,u(m,v));return p.concat(_)}else if(h[b]!=="parent"&&g.type&&Xe(g.type.getBaseProps)){var x=g.props.name||h[b],O=Array.isArray(l)&&l.filter(function(C){return C.target==="parent"?!1:Array.isArray(C.childName)?C.childName.indexOf(x)>-1:C.childName===x||C.childName==="all"}),S=[x,i,O,Hge(o.state[x])],w=o.getCachedSharedEvents(x,S)||{events:O,getEvents:function(C,A){return o.getScopedEvents(C,A,x,i)},getEventState:function(C,A){return o.getEventState(C,A,x)}};return o.cacheSharedEvents(x,w,S),p.concat(M.cloneElement(g,Object.assign({key:"events-".concat(x),sharedEvents:w,eventKey:s,name:x},g.props)))}return p.concat(g)},[])},c=Object.keys(i),f=M.Children.toArray(a.children);return u(f,c)}},{key:"getContainer",value:function(a,i,o){var l=this,s=this.getNewChildren(a,i),u=Array.isArray(o)?o.filter(function(_){return _.target==="parent"}):[],c=u.length>0?{events:u,getEvents:function(_,x){return l.getScopedEvents(_,x,null,i)},getEventState:this.getEventState}:null,f=a.container||a.groupComponent,d=f.type&&f.type.role,h=f.props||{},p=II.bind(this),g=c&&p({sharedEvents:c},"parent"),b=me({},this.getEventState("parent","parent"),h,i.parent,{children:s}),m=me({},$I(g,"parent",b),h.events);this.globalEvents=DI(m);var v=NI(m);return d==="container"?M.cloneElement(f,Object.assign({},b,{events:v})):M.cloneElement(f,v,s)}},{key:"render",value:function(){var a=this.getAllEvents(this.props);return a?this.getContainer(this.props,this.baseProps,a):M.cloneElement(this.props.container,{children:this.props.children})}}]),n}(M.Component);Vu.displayName="VictorySharedEvents";Vu.role="shared-event-wrapper";Vu.contextType=v0;Vu.defaultProps={groupComponent:M.createElement("g",null)};function a0e(e){return s0e(e)||l0e(e)||o0e(e)||i0e()}function i0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0e(e,t){if(e){if(typeof e=="string")return f5(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 f5(e,t)}}function l0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s0e(e){if(Array.isArray(e))return f5(e)}function f5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},d0e=function(e,t,n){var r=e.position,a=e.transform;return{x1:a.x,y1:a.y,x2:a.x+r.x2,y2:a.y+r.y2,style:t,datum:n}},h0e=function(e,t,n,r,a){var i=e.position,o=e.transform;return{style:t,x:o.x+i.x,y:o.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:a,datum:r}},p0e=function(e,t,n){var r=e.edge,a=e.transform;return{x1:a.x,y1:a.y,x2:r.x+a.x,y2:r.y+a.y,style:t,datum:n}},m0e=function(e,t,n){var r=t.style,a=t.padding,i=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:i?n.x:a.left+n.x,x2:i?n.x:o-a.right+n.x,y1:i?a.top+n.y:n.y,y2:i?l-a.bottom+n.y:n.y}},g0e=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},v0e=function(e,t,n){var r=t.style,a=t.orientation,i=t.padding,o=t.labelPadding,l=t.isVertical,s=sw[a],u=i.left+i.right,c=i.top+i.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,p=l?n.x+s*o:(e.width-u)/2+i.left+n.x,g=l?(e.height-c)/2+i.top+n.y:s*o+n.y;return{x:p,y:g,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},y0e=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}},b0e=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=T0(e),a=n.fontSize||14;return e.label?a*(r?2.3:1.6):0},W3=function(e,t,n){var r=t||"positive",a={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},i={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?i[r][e]:a[r][e]},_0e=function(e,t){var n=t.style,r=t.scale,a=t.orientation,i=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:gp({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},p=a==="right"?i.right:i.left,g=a==="top"?i.top:i.bottom,b=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:p,m=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:g,v=n.axisLabel.fontSize||14,_=l.map(function(C,A){var I=s?e.tickValues[C-1]:C,P=_t(n.ticks,Object.assign({},h,{tick:I,index:A}));return P.size||0}),x=v+2*Math.max.apply(Math,a0e(_))+c,O=1.2*v,S=u?x:O,w=u?O:x;return{x:b??S,y:m??w}},uo=function(e,t){return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t},x0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={x:a==="bottom"||a==="top"?a:i.x,y:a==="left"||a==="right"?a:i.y},h={x:d.y==="left"?c:f,y:d.x==="bottom"?u:s},p={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Gm(e.offsetX)?e.offsetX:b,_=Gm(e.offsetY)?e.offsetY:m;return{x:v,y:_}},w0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={y:a==="bottom"||a==="top"?a:i.x,x:a==="left"||a==="right"?a:i.y},h={x:d.y==="bottom"?u:s,y:d.x==="left"?c:f},p={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Gm(e.offsetX)?e.offsetX:m,_=Gm(e.offsetY)?e.offsetY:b;return{x:v,y:_}},S0e=function(e,t,n){var r=t.orientation,a=t.axis,i=MR(e,a);return{top:{x:0,y:i!==void 0?i:n.y},bottom:{x:0,y:i!==void 0?i:e.height-n.y},left:{x:i!==void 0?i:n.x,y:0},right:{x:i!==void 0?i:e.width-n.x,y:0}}[r]},O0e=function(e,t,n){var r=e.tickStyle,a=e.labelStyle,i=r.size||0,o=r.padding||0,l=a.padding||0,s=i+o+l,u=sw[t];return{x:n?u*s:0,x2:n?u*i:0,y:n?0:u*s,y2:n?0:u*i}},C0e=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},E0e=function(e,t){var n=t.orientation,r=t.padding,a=t.isVertical,i=-sw[n],o=a?i*(e.width-(r.left+r.right)):0,l=a?0:i*(e.height-(r.top+r.bottom));return{x:o,y:l}},k0e=function(e,t){var n=e.padding,r=e.orientation,a=e.crossAxis,i=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:a?t.x-i:0,y:a?t.y-o:0}},P0e=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?w0e(e,t):x0e(e,t):n=_0e(e,t),{globalTransform:S0e(e,t,n),gridOffset:k0e(t,n),gridEdge:E0e(e,t)}},T0e=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},A0e=function(e){var t=f0e(e),n=O$(e,t),r=Wt(e),a=b0e(e,n),i=A0(e)?e.tickValues:void 0,o=Gr(e),l=Wu(e),s=c0e(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),p=AR(e,s,h),g=TR(e,s),b={x:ln(e,"x"),y:ln(e,"y")},m={x:e.domain&&e.domain.x?e.domain.x:u,y:e.domain&&e.domain.y?e.domain.y:c},v={x:e.domain&&e.domain.x?Va(e,"x").domain(e.domain.x).range(e.horizontal?b.y:b.x):f,y:e.domain&&e.domain.y?Va(e,"y").domain(e.domain.y).range(e.horizontal?b.x:b.y):d},_=m.x&&m.y?PR(m):void 0,x=_?{x:O3(_.x,m.x),y:O3(_.y,m.y)}:void 0,O=x?{x:W3("x",x.y,e.horizontal),y:W3("y",x.x,e.horizontal)}:void 0,S=O?e.orientation||O[o]:T0e(e),w=T0(Object.assign({},e,{orientation:S})),C=y0e(S,w);return{anchors:C,axis:o,crossAxis:h,domain:m,isVertical:w,labelPadding:a,orientation:S,orientations:O,origin:_,padding:r,scale:v,stringTicks:i,style:n,tickFormat:g,ticks:p}},M0e=function(e,t){var n=M0(e,t),r=A0e(n),a=r.axis,i=r.style,o=r.orientation,l=r.isVertical,s=r.scale,u=r.ticks,c=r.tickFormat,f=r.anchors,d=r.domain,h=r.stringTicks,p=a==="x"?"y":"x",g=n.width,b=n.height,m=n.standalone,v=n.theme,_=n.polar,x=n.padding,O=n.horizontal,S=P0e(n,r),w=S.globalTransform,C=S.gridOffset,A=S.gridEdge,I={scale:gp({},a,s[a]),polar:_,horizontal:O,ticks:u,stringTicks:h},P=m0e(n,r,w),T=v0e(n,r,w),E={parent:Object.assign({style:i.parent,ticks:u,standalone:m,theme:v,width:g,height:b,padding:x,domain:d},I)},L={dimension:p,range:gp({},p,ln(n,p)),scale:n.scale&&n.scale[p]?gp({},p,n.scale[p]):void 0};return u.reduce(function(N,U,W){var $,F,k,X=h?h[W]:U,te=c(U,W,u),R=g0e(i,Object.assign({},I,{tick:X,tickValue:U,index:W,text:te})),J={position:O0e(R,o,l),transform:C0e(($=s[a])===null||$===void 0?void 0:$.call(s,U),w,l)},ae={edge:A,transform:{x:l?-C.x+w.x:((F=s[a])===null||F===void 0?void 0:F.call(s,U))+w.x,y:l?((k=s[a])===null||k===void 0?void 0:k.call(s,U))+w.y:C.y+w.y}};return N[W]={axis:Object.assign({dimension:a},I,P),axisLabel:Object.assign({},I,T),ticks:Object.assign({},I,d0e(J,R.tickStyle,U)),tickLabels:Object.assign({},I,h0e(J,R.labelStyle,f,U,te)),grid:Object.assign({},I,L,p0e(ae,R.gridStyle,U))},N},E)};function I0e(e){return j0e(e)||L0e(e)||$0e(e)||R0e()}function R0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0e(e,t){if(e){if(typeof e=="string")return d5(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 d5(e,t)}}function L0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j0e(e){if(Array.isArray(e))return d5(e)}function d5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Km(e)}var C$={width:450,height:300,padding:50},W0e={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},va=function(e){F0e(n,e);var t=z0e(n);function n(){return D0e(this,n),t.apply(this,arguments)}return N0e(n,[{key:"renderLine",value:function(a){var i=a.axisComponent,o=this.getComponentProps(i,"axis",0);return M.cloneElement(i,o)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.label;if(!o)return null;var l=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,l)}},{key:"renderGridAndTicks",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.gridComponent,u=a.name,c=function(f){var d=f.style,h=d===void 0?{}:d,p=f.events,g=p===void 0?{}:p,b=h.stroke!=="transparent"&&h.stroke!=="none"&&h.strokeWidth!==0;return b||!Mt(g)};return this.dataKeys.map(function(f,d){var h=i.getComponentProps(o,"ticks",d),p=M.cloneElement(o,h),g=c(p.props)?p:void 0,b=i.getComponentProps(s,"grid",d),m=M.cloneElement(s,b),v=c(m.props)?m:void 0,_=i.getComponentProps(l,"tickLabels",d),x=M.cloneElement(l,_),O=[v,g,x].filter(Boolean);return M.cloneElement(a.groupComponent,{key:"".concat(u,"-tick-group-").concat(f)},O)})}},{key:"fixLabelOverlap",value:function(a,i){var o=T0(i),l=o?i.height:i.width,s=function(b){return b.type&&b.type.role==="label"},u=a.map(function(b){return b.props.children}).reduce(function(b,m){return b.concat(m)},[]).filter(s).map(function(b){return b.props}),c=function(b){return typeof b=="object"?Object.assign({},{top:0,right:0,bottom:0,left:0},b):{top:b,right:b,bottom:b,left:b}},f=u.reduce(function(b,m){var v=c(m.style.padding),_=Ml(m.text,{angle:m.angle,fontSize:m.style.fontSize,letterSpacing:m.style.letterSpacing,fontFamily:m.style.fontFamily});return b+(o?_.height+v.top+v.bottom:_.width+v.right+v.left)},0),d=Math.floor(l*a.length/f),h=Math.ceil(a.length/d)||1,p=function(b){return b.props.children.filter(s).reduce(function(m,v){return(o?v.props.y:v.props.x)||0},0)},g=a.sort(function(b,m){return o?p(m)-p(b):p(b)-p(m)});return g.filter(function(b,m){return m%h===0})}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=Jf.animationWhitelist,i=M0(this.props,C$),o=Ya(this.props);if(this.shouldAnimate())return this.animateComponent(i,a);var l=this.renderGridAndTicks(i),s=i.fixLabelOverlap?this.fixLabelOverlap(l,i):l,u=[this.renderLine(i),this.renderLabel(i)].concat(I0e(s)),c=M.cloneElement(i.containerComponent,o);return i.standalone?this.renderContainer(c,u):M.cloneElement(i.groupComponent,o,u)}}]),n}(M.Component);va.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];va.displayName="VictoryAxis";va.role="axis";va.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};va.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),tickLabelComponent:M.createElement(Dn,null),tickComponent:M.createElement(yl,null),gridComponent:M.createElement(yl,null),standalone:!0,theme:Di.grayscale,containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",{role:"presentation"}),fixLabelOverlap:!1};va.getDomain=Wu;va.getAxis=Gr;va.getStyles=function(e){return O$(e)};va.getBaseProps=function(e){return M0e(e,C$)};va.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Jf=Hu(va,W0e),Xn=function(e,t,n){return n==="x"?e*Math.cos(t):-e*Math.sin(t)},E$=function(e){var t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},V0e=function(e,t){var n=function(r){return t(r)%(2*Math.PI)};return y$(e,n)},uw=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},q0e=function(e){var t,n,r=e.theme,a=r===void 0?{}:r,i=e.dependentAxis,o=a.polarAxis&&a.polarAxis.style||a.axis&&a.axis.style,l=i?"polarDependentAxis":"polarIndependentAxis",s=i?"dependentAxis":"independentAxis",u=(a==null||(t=a[l])===null||t===void 0?void 0:t.style)||(a==null||(n=a[s])===null||n===void 0?void 0:n.style),c=function(){var f=["axis","axisLabel","grid","parent","tickLabels","ticks"];return f.reduce(function(d,h){return d[h]=me({},u==null?void 0:u[h],o==null?void 0:o[h]),d},{})};return o&&u?c():u||o},k$=function(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;if(o===void 0||l===void 0)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-r,l-a-i)/2},P$=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=E$(e);if(n==="angular"){var r=vt(e.startAngle),a=vt(e.endAngle);return[r,a]}var i=k$(e);return[e.innerRadius||0,i]},T$=function(e){var t=Gr(e),n=Va(e,t),r=Wu(e,t)||n.domain(),a=P$(e,t);return n.range(a),n.domain(r),n},A$=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{},r={height:"auto",width:"100%"};return{parent:me(r,n.parent,t.parent),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},F0=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,a=Gr(e),i=MR(e,a);return i===void 0||!r?t===void 0?n:t:bi(i)},G0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{tick:h,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:o,axisType:a,text:d}),g=p.tickStyle,b=a==="radial"?F0(e):void 0,m=g.padding||g.size||0,v=vt(90-b),_=a==="angular"?o(n):vt(-1*b),x=a==="angular"?i:o(n);return a==="angular"?{index:r,datum:h,style:g,x1:Xn(x,_,"x")+f.x,y1:Xn(x,_,"y")+f.y,x2:Xn(x+m,_,"x")+f.x,y2:Xn(x+m,_,"y")+f.y}:{index:r,datum:h,style:g,x1:x*Math.cos(_)+Math.cos(v)*m+f.x,x2:x*Math.cos(_)-Math.cos(v)*m+f.x,y1:x*Math.sin(_)+Math.sin(v)*m+f.y,y2:x*Math.sin(_)-Math.sin(v)*m+f.y}},K0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{text:d,tick:h,tickValue:n,index:r,ticks:u,stringTicks:c,radius:i,scale:s,axisType:a}),g=p.labelStyle,b=e.tickLabelComponent,m=b!=null&&b.props.labelPlacement?b.props.labelPlacement:e.labelPlacement,v=g.padding||0,_=0,x=a==="radial"?F0(e):void 0,O=a==="angular"?bi(s(n)):x+_,S=g.angle===void 0?yx(Object.assign({},e,{labelPlacement:m}),O):g.angle,w=a==="angular"?i+v:s(n),C=g.textAnchor||vx(Object.assign({},e,{labelPlacement:m}),O);return{index:r,datum:h,style:g,angle:S,textAnchor:C,text:d,x:w*Math.cos(vt(O))+f.x,y:-w*Math.sin(vt(O))+f.y}},X0e=function(e,t,n,r){var a=t.axisType,i=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,p=e.endAngle,g=e.innerRadius,b=g===void 0?0:g,m=s?s[r]:n,v=uw(o,{tick:m,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:l,axisType:a,text:d}),_=v.gridStyle,x=l(n);return a==="angular"?{index:r,datum:m,style:_,x1:Xn(i,x,"x")+f.x,y1:Xn(i,x,"y")+f.y,x2:Xn(b,x,"x")+f.x,y2:Xn(b,x,"y")+f.y}:{style:_,index:r,datum:m,cx:f.x,cy:f.y,r:l(n),startAngle:h,endAngle:p}},Y0e=function(e,t){var n=t.axisType,r=t.radius,a=t.style,i=t.origin,o=e.axisLabelComponent;if(n!=="radial")return{};var l=o!=null&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=a&&a.axisLabel||{},u=n==="radial"?F0(e):void 0,c=s.angle===void 0?yx(Object.assign({},e,{labelPlacement:l}),u):s.angle,f=r+(s.padding||0),d=s.textAnchor||vx(Object.assign({},e,{labelPlacement:l}),u),h=s.verticalAnchor||pI(Object.assign({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:d,verticalAnchor:h,text:e.label,x:Xn(f,vt(u),"x")+i.x,y:Xn(f,vt(u),"y")+i.y}},Q0e=function(e,t){var n=t.style,r=t.axisType,a=t.radius,i=t.origin,o=e.startAngle,l=e.endAngle,s=e.innerRadius,u=s===void 0?0:s,c=r==="radial"?vt(F0(e)):void 0;return r==="radial"?{style:n.axis,x1:Xn(u,c,"x")+i.x,x2:Xn(a,c,"x")+i.x,y1:Xn(u,c,"y")+i.y,y2:Xn(a,c,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:a,startAngle:o,endAngle:l}},J0e=function(e){var t=Object.assign({polar:!0},e),n=q0e(t),r=A$(t,n),a=Wt(t),i=Gr(t),o=E$(t),l=A0(t)?t.tickValues:void 0,s=Wu(t,i),u=P$(t,i),c=T$(t),f=AR(t,c),d=o==="angular"?V0e(f,c):f,h=TR(t,c),p=k$(t),g=Nd(t);return{axis:i,style:r,padding:a,stringTicks:l,axisType:o,scale:c,ticks:d,tickFormat:h,domain:s,range:u,radius:p,origin:g}},Z0e=function(e,t){var n=M0(e,t),r=J0e(n),a=r.style,i=r.scale,o=r.ticks,l=r.domain,s=n.width,u=n.height,c=n.standalone,f=n.theme,d=n.name,h=Q0e(n,r),p=Y0e(n,r),g={parent:{style:a.parent,ticks:o,scale:i,width:s,height:u,domain:l,standalone:c,theme:f,name:d}};return o.reduce(function(b,m,v){return b[v]={axis:h,axisLabel:p,ticks:G0e(n,r,m,v),tickLabels:K0e(n,r,m,v),grid:X0e(n,r,m,v)},b},g)};function uy(e){return rve(e)||nve(e)||tve(e)||eve()}function eve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tve(e,t){if(e){if(typeof e=="string")return p5(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 p5(e,t)}}function nve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rve(e){if(Array.isArray(e))return p5(e)}function p5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xm(e)}var cw={width:450,height:300,padding:50},Kr=function(e){ove(n,e);var t=lve(n);function n(){return ave(this,n),t.apply(this,arguments)}return ive(n,[{key:"renderAxisLine",value:function(a){var i=a.dependentAxis,o=i?a.axisComponent:a.circularAxisComponent,l=this.getComponentProps(o,"axis",0);return M.cloneElement(o,l)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.dependentAxis,l=a.label;if(!l||!o)return null;var s=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,s)}},{key:"renderAxis",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.name,u=function(v){var _=v.style,x=_===void 0?{}:_,O=v.events,S=O===void 0?{}:O,w=x.stroke!=="transparent"&&x.stroke!=="none"&&x.strokeWidth!==0;return w||!Mt(S)},c=a.dependentAxis?"radial":"angular",f=c==="radial"?a.circularGridComponent:a.gridComponent,d=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(o,"ticks",_)),O=M.cloneElement(o,x);return u(O.props)?O:void 0}).filter(Boolean),h=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-grid-").concat(v)},i.getComponentProps(f,"grid",_)),O=M.cloneElement(f,x);return u(O.props)?O:void 0}).filter(Boolean),p=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(l,"tickLabels",_));return M.cloneElement(l,x)}),g=this.renderAxisLine(a),b=this.renderLabel(a),m=[g,b].concat(uy(d),uy(h),uy(p));return this.renderGroup(a,m)}},{key:"renderGroup",value:function(a,i){var o=a.groupComponent;return M.cloneElement(o,{},i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=g5.animationWhitelist,i=M0(this.props,cw);if(this.shouldAnimate())return this.animateComponent(i,a);var o=this.renderAxis(i);return i.standalone?this.renderContainer(i.containerComponent,o):o}}]),n}(M.Component);Kr.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];Kr.displayName="VictoryAxis";Kr.role="axis";Kr.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};Kr.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),circularAxisComponent:M.createElement(LE,null),circularGridComponent:M.createElement(LE,null),containerComponent:M.createElement(En,null),endAngle:360,gridComponent:M.createElement(yl,null),groupComponent:M.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Di.grayscale,tickComponent:M.createElement(yl,null),tickLabelComponent:M.createElement(Dn,null)};Kr.getDomain=Wu;Kr.getAxis=Gr;Kr.getScale=T$;Kr.getStyles=function(e){return A$(e,cw.style)};Kr.getBaseProps=function(e){return Z0e(e,cw)};Kr.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var fve={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},g5=Hu(Kr,fve),dve={width:450,height:300,padding:50};function hve(e,t,n){var r=n.domain,a=n.scale,i=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:i,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:a}}function pve(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],a=t.range.x[1]-t.range.x[0],i=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:i,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:a};return M.cloneElement(n,me({},n.props,c))}function mve(e,t,n){var r=ER([e]);if(r.length>0)return hve(r[0],t,n);var a=n.categories,i=n.domain,o=n.range,l=n.scale,s=n.stringMap,u=n.horizontal;return{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}}function gve(e){var t=e.style&&e.style.parent;return{parent:me({},t,{height:"100%",width:"100%",userSelect:"none"})}}function M$(e,t){var n=gve(e),r=on(e,dve,"chart"),a=r.horizontal,i=r.polar,o=x$(r,t),l=w$(r,t,o),s=yve(r,t,o),u={x:G3(Object.assign({},r,{categories:l}),"x",t),y:G3(Object.assign({},r,{categories:l}),"y",t)},c={x:ln(r,"x"),y:ln(r,"y")},f={x:Qf(r,"x")||Vm(r,"x"),y:Qf(r,"y")||Vm(r,"y")},d={x:f.x.domain(u.x).range(a?c.y:c.x),y:f.y.domain(u.y).range(a?c.x:c.y)},h=i?Nd(r):PR(u),p=Wt(r);return{categories:l,domain:u,range:c,horizontal:a,scale:d,stringMap:s,style:n,origin:h,padding:p}}function vve(e,t,n){var r=t||I$(e),a=n||M$(e,r),i=a.style.parent,o=e.height,l=e.polar,s=e.theme,u=e.width,c=a.origin,f=a.horizontal,d=e.name||"chart";return r.filter(M.isValidElement).map(function(h,p){var g=h.type&&h.type.role,b=Array.isArray(h.props.style)?h.props.style:me({},h.props.style,{parent:i}),m=mve(h,e,a),v=h.props.name||"".concat(d,"-").concat(g,"-").concat(p),_=me({horizontal:f,height:o,polar:l,theme:s,width:u,style:b,name:v,origin:l?c:void 0,padding:a.padding,key:"".concat(v,"-key-").concat(p),standalone:!1},m);return M.cloneElement(h,_)})}var I$=function(e,t){var n=M.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{var r={dependent:S3(n,"dependent"),independent:S3(n,"independent")};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},G3=function(e,t,n){var r=n||M.Children.toArray(e.children),a=o5(e,t,r),i=kR(r,t),o=i&&i.props&&i.props.invertAxis;return o?a.concat().reverse():a},yve=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(i,o,l){return i[o]=l+1,i},{}),a=!n.y||n.y.length===0?null:n.y.reduce(function(i,o,l){return i[o]=l+1,i},{});return{x:r,y:a}};function K3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function X3(e){for(var t=1;t{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,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},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}}},h5e=[s5e.var,u5e.var,c5e.var,f5e.var,d5e.var],Y3=Fi({COLOR_SCALE:h5e}),p5e={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},m5e={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},g5e={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},v5e={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},y5e={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},b5e=[p5e.var,m5e.var,g5e.var,v5e.var,y5e.var],_5e=Fi({COLOR_SCALE:b5e}),x5e={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},w5e={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},S5e={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},O5e={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},C5e={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},E5e=[x5e.var,w5e.var,S5e.var,O5e.var,C5e.var],k5e=Fi({COLOR_SCALE:E5e}),P5e={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},T5e={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},A5e={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},M5e={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},I5e={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},R5e=[P5e.var,T5e.var,A5e.var,M5e.var,I5e.var],$5e=Fi({COLOR_SCALE:R5e}),L5e={name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"},j5e={name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"},D5e={name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"},N5e={name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"},F5e={name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"},z5e=[L5e.var,j5e.var,D5e.var,N5e.var,F5e.var],B5e=Fi({COLOR_SCALE:z5e}),U5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},H5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},W5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},V5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},G5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},K5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},X5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},Y5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},Q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},J5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},Z5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},e2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},t2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},n2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},r2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},a2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},i2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},o2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},l2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},s2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},u2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},c2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},f2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},d2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},h2e=[U5e.var,H5e.var,W5e.var,V5e.var,q5e.var,G5e.var,K5e.var,X5e.var,Y5e.var,Q5e.var,J5e.var,Z5e.var,e2e.var,t2e.var,n2e.var,r2e.var,a2e.var,i2e.var,o2e.var,l2e.var,s2e.var,u2e.var,c2e.var,f2e.var,d2e.var],p2e=Fi({COLOR_SCALE:h2e}),m2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},g2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},v2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},y2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},b2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},_2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},x2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},w2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},S2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},O2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},C2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},E2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},k2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},P2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},T2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},A2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},M2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},I2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},R2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},$2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},L2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},j2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},D2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},N2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},F2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},z2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},B2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},U2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},H2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},W2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},V2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},q2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},G2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},K2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},X2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},Y2e=[m2e.var,g2e.var,v2e.var,y2e.var,b2e.var,_2e.var,x2e.var,w2e.var,S2e.var,O2e.var,C2e.var,E2e.var,k2e.var,P2e.var,T2e.var,A2e.var,M2e.var,I2e.var,R2e.var,$2e.var,L2e.var,j2e.var,D2e.var,N2e.var,F2e.var,z2e.var,B2e.var,U2e.var,H2e.var,W2e.var,V2e.var,q2e.var,G2e.var,K2e.var,X2e.var],Q2e=Fi({COLOR_SCALE:Y2e}),J2e={name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"},Z2e={name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"},e_e={name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"},t_e={name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"},n_e={name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"},r_e=[J2e.var,Z2e.var,e_e.var,t_e.var,n_e.var],a_e=Fi({COLOR_SCALE:r_e}),i_e={name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"},o_e={name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"},l_e={name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"},s_e={name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"},u_e={name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"},c_e=[i_e.var,o_e.var,l_e.var,s_e.var,u_e.var],f_e=Fi({COLOR_SCALE:c_e}),F$=(e,t)=>R$(Xr(e),t),Xr=e=>{const t=Object.assign({},JSON.parse(JSON.stringify(o5e)));return R$(t,d_e(e))},d_e=e=>{switch(e){case xa.blue:return Y3;case xa.cyan:return _5e;case xa.gold:return k5e;case xa.gray:return $5e;case xa.green:return B5e;case xa.multi:case xa.multiOrdered:return p2e;case xa.multiUnordered:return Q2e;case xa.orange:return a_e;case xa.purple:return f_e;default:return Y3}},B0=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v5-c-chart ${t}`:"pf-v5-c-chart"},Qa=e=>{var{className:t,themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["className","themeColor","theme"]);const i=B0({className:t});return y.createElement(En,Object.assign({className:i,theme:r},a))};Qa.displayName="ChartContainer";Vr(Qa,En);var h_e=Math.ceil,p_e=Math.max;function m_e(e,t,n,r){for(var a=-1,i=p_e(h_e((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var g_e=m_e,v_e=/\s/;function y_e(e){for(var t=e.length;t--&&v_e.test(e.charAt(t)););return t}var b_e=y_e,__e=b_e,x_e=/^\s+/;function w_e(e){return e&&e.slice(0,__e(e)+1).replace(x_e,"")}var S_e=w_e,O_e=S_e,Q3=yr,C_e=Rd,J3=NaN,E_e=/^[-+]0x[0-9a-f]+$/i,k_e=/^0b[01]+$/i,P_e=/^0o[0-7]+$/i,T_e=parseInt;function A_e(e){if(typeof e=="number")return e;if(C_e(e))return J3;if(Q3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Q3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=O_e(e);var n=k_e.test(e);return n||P_e.test(e)?T_e(e.slice(2),n?2:8):E_e.test(e)?J3:+e}var z$=A_e,M_e=z$,Z3=1/0,I_e=17976931348623157e292;function R_e(e){if(!e)return e===0?e:0;if(e=M_e(e),e===Z3||e===-Z3){var t=e<0?-1:1;return t*I_e}return e===e?e:0}var $_e=R_e,L_e=g_e,j_e=z_,dy=$_e;function D_e(e){return function(t,n,r){return r&&typeof r!="number"&&j_e(t,n,r)&&(n=r=void 0),t=dy(t),n===void 0?(n=t,t=0):n=dy(n),r=r===void 0?te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),data:me({},n.data,t.data),labels:me({},n.labels,t.labels),border:me({},n.border,t.border),title:me({},n.title,t.title)}},H$=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},a=K_e(e,r),i=G_e(e),o=t==="horizontal",l=Wt({padding:e.borderPadding});return Object.assign({},e,{style:a,isHorizontal:o,colorScale:i,borderPadding:l})},X_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Y_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},W$=function(e){var t=e.data,n=e.style&&e.style.data||{},r=U$(e);return t.map(function(a,i){var o=a.symbol||{},l=r[i].fontSize,s=o.size||n.size||l/2.5,u=e.symbolSpacer||Math.max(s,l);return nk(nk({},a),{},{size:s,symbolSpacer:u,fontSize:l,textSize:Ml(a.name,r[i]),column:X_e(e,i),row:Y_e(e,i)})})},V$=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,a=lw(t,"column"),i=Object.keys(a);return i.reduce(function(o,l,s){var u=a[l].map(function(c){return c.textSize.width+c.size+c.symbolSpacer+r});return o[s]=Math.max.apply(Math,B$(u)),o},[])},q$=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,a=lw(t,"row");return Object.keys(a).reduce(function(i,o,l){var s=a[o],u=s.map(function(c){return c.textSize.height+c.symbolSpacer+r});return i[l]=Math.max.apply(Math,B$(u)),i},[])},G$=function(e){var t=e.style&&e.style.title||{},n=Ml(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Q_e=function(e,t,n){var r=e.column,a=e.row;return{x:ek(r).reduce(function(i,o){return i+n[o]},0),y:ek(a).reduce(function(i,o){return i+t[o]},0)}},J_e=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},Z_e=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,a=e.style&&e.style.title||{},i=r.props&&r.props.style||{},o=J_e(t,n);return Array.isArray(i)?i.map(function(l){return me({},l,a,o)}):me({},i,a,o)},exe=function(e,t){var n=e.title,r=e.titleOrientation,a=e.centerTitle,i=e.borderPadding,o=t.height,l=t.width,s=Z_e(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:a?l/2:i[f]+(u||0),y:a?o/2:i[d]+(u||0)},p=function(){return i[r]+(u||0)},g=c?h.x:p(),b=c?p():h.y;return{x:r==="right"?e.x+l-g:e.x+g,y:r==="bottom"?e.y+o-b:e.y+b,style:s,text:n}},txe=function(e,t,n){var r=e.x,a=e.y,i=e.borderPadding,o=e.style,l=(t||0)+i.top+i.bottom,s=(n||0)+i.left+i.right;return{x:r,y:a,height:l,width:s,style:Object.assign({fill:"none"},o.border)}},K$=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,H$(n)),a=r.title,i=r.titleOrientation,o=W$(r),l=V$(r,o),s=q$(r,o),u=a?G$(r):{height:0,width:0};return{height:i==="left"||i==="right"?Math.max(Nh(s),u.height):Nh(s)+u.height,width:i==="left"||i==="right"?Nh(l)+u.width:Math.max(Nh(l),u.width)}},nxe=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,H$(n)),a=r.data,i=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,p=r.titleOrientation,g=r.name,b=r.x,m=b===void 0?0:b,v=r.y,_=v===void 0?0:v,x=W$(r),O=V$(r,x),S=q$(r,x),w=U$(r),C=h?G$(r):{height:0,width:0},A={x:p==="left"?C.width:0,y:p==="top"?C.height:0},I={x:c&&typeof c=="object"&&c.left||0,y:f&&typeof f=="object"&&f.top||0},P=K$(r,t),T=P.height,E=P.width,L=txe(r,T,E),N=exe(r,L),U={parent:{data:a,standalone:i,theme:o,padding:l,name:g,height:r.height,width:r.width,style:s.parent},all:{border:L,title:N}};return x.reduce(function(W,$,F){var k=u[F%u.length],X=me({},$.symbol,s.data,{fill:k}),te=Wa($.eventKey)?F:$.eventKey,R=Q_e($,S,O),J=_+d.top+$.symbolSpacer,ae=m+d.left+$.symbolSpacer,ue={index:F,data:a,datum:$,symbol:X.type||X.symbol||"circle",size:$.size,style:X,y:J+R.y+A.y+I.y,x:ae+R.x+A.x+I.x},ve={datum:$,data:a,text:$.name,style:w[F],y:ue.y,x:ue.x+$.symbolSpacer+$.size/2};return W[te]={data:ue,labels:ve},W},U)};function Nh(e){if(e&&e.length){for(var t=0,n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ym(e)}var dw={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},pxe=[{name:"Series 1"},{name:"Series 2"}],Kl=function(e){uxe(n,e);var t=cxe(n);function n(){return lxe(this,n),t.apply(this,arguments)}return sxe(n,[{key:"renderChildren",value:function(a){var i=this,o=a.dataComponent,l=a.labelComponent,s=a.title,u=[];if(a.borderComponent){var c=this.getComponentProps(a.borderComponent,"border","all"),f=M.cloneElement(a.borderComponent,c);u.push(f)}if(o){var d=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(o,"data",m);return M.cloneElement(o,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,rk(d))}if(s&&a.titleComponent){var h=this.getComponentProps(s,"title","all"),p=M.cloneElement(a.titleComponent,h);u.push(p)}if(l){var g=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(l,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(l,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,rk(g))}return u}},{key:"render",value:function(){var a=this.constructor.role,i=on(this.props,dw,a),o=this.renderChildren(i);return i.standalone?this.renderContainer(i.containerComponent,o):M.cloneElement(i.groupComponent,{},o)}}]),n}(M.Component);Kl.displayName="VictoryLegend";Kl.role="legend";Kl.defaultProps={borderComponent:M.createElement(Iue,null),data:pxe,containerComponent:M.createElement(En,null),dataComponent:M.createElement(nce,null),groupComponent:M.createElement("g",null),labelComponent:M.createElement(Dn,null),standalone:!0,theme:Di.grayscale,titleComponent:M.createElement(Dn,null)};Kl.getBaseProps=function(e){return nxe(e,dw)};Kl.getDimensions=function(e){return K$(e,dw)};Kl.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var U0=Hu(Kl);const mxe={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},gxe=mxe,vxe={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},yxe=vxe,bxe=L$.var,_xe=j$.var,xxe=fw.value,wxe={label:{fontFamily:bxe,fontSize:xxe,letterSpacing:_xe,margin:gxe.value,fill:D$.var},legend:{margin:E8.value,position:yxe.value}},Sxe={name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"},Oxe=Sxe,Cxe={name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"},Exe=Cxe,kxe={name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"},Pxe=kxe,Txe={name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"},Axe=Txe,Mxe={label:{subTitle:{fill:Exe.var,fontSize:fw.value},subTitlePosition:Axe.value,title:{fill:Pxe.var,fontSize:Oxe.value}}},gn=wxe,bc=Mxe,Wr=e=>{var{style:t,textAnchor:n}=e,r=Q(e,["style","textAnchor"]);const a=o=>me(Object.assign(Object.assign({},o),{textAnchor:n}),{fill:gn.label.fill,fontFamily:gn.label.fontFamily,fontSize:gn.label.fontSize,letterSpacing:gn.label.letterSpacing}),i=Array.isArray(t)?t.map(a):a(t);return y.createElement(Dn,Object.assign({style:i,textAnchor:n},r))};Wr.displayName="ChartLabel";Vr(Wr,Dn);const rr={circle:(e,t,n)=>`M ${e}, ${t} m ${-n}, 0 a ${n}, ${n} 0 1,0 ${n*2},0 a ${n}, ${n} 0 1,0 ${-n*2},0`,dash:(e,t,n)=>{const r=1.1*n,a=r-r*.3,i=e-r,o=t+a/2,l=(e+r-i)*.3,s=l/3;return`M ${i}, ${o} @@ -223,9 +223,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho z`},triangleUp:(e,t,n)=>{const r=n/2*Math.sqrt(3),a=e-n,i=e+n,o=t-r,l=t+n;return`M ${a}, ${l} L ${i}, ${l} L ${e}, ${o} - z`}},Mxe=e=>{const{x:t,y:n}=e,r=le(e.size,e);if(e.getPath)return e.getPath(t,n,r);const a={circle:rr.circle,square:rr.square,diamond:rr.diamond,eyeSlash:rr.eyeSlash,triangleDown:rr.triangleDown,triangleLeft:rr.triangleLeft,triangleRight:rr.triangleRight,triangleUp:rr.triangleUp,plus:rr.plus,minus:rr.minus,star:rr.star,dash:rr.dash,threshold:rr.threshold},o=le(e.symbol,e);return(typeof a[o]=="function"?a[o]:a.square)(t,n,r)},H0=e=>{var{active:t,className:n,clipPath:r,datum:a,desc:i,events:o,pathComponent:l=y.createElement(Hl,null),role:s="presentation",shapeRendering:u="auto",tabIndex:c,transform:f}=e,d=Q(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:a,desc:i,events:o,role:s,shapeRendering:u,tabIndex:c,transform:f},d);return y.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:Mxe(h),desc:le(i,h)},o),{role:s,shapeRendering:u,style:_t(d.style,h),tabIndex:le(c,h),transform:f}))};H0.displayName="ChartPoint";const Vd=e=>{var{colorScale:t,containerComponent:n=y.createElement(Qa,null),dataComponent:r=y.createElement(H0,null),labelComponent:a=y.createElement(Wr,null),name:i,patternScale:o,responsive:l=!0,style:s,themeColor:u,titleComponent:c=y.createElement(Wr,null),theme:f=Xr(u)}=e,d=Q(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","titleComponent","theme"]);const h=()=>{if(!o)return s;const m=s?Object.assign({},s):{};return m.data=Object.assign({fill:({index:v})=>{const _=f&&f.legend&&f.legend.colorScale?f.legend.colorScale[v%f.legend.colorScale.length]:void 0,x=t?t[v%t.length]:_,O=o[v%o.length];return O||x}},m.data),m},p=y.cloneElement(n,Object.assign({responsive:l,theme:f},n.props)),g=()=>y.cloneElement(a,Object.assign(Object.assign({},i&&{id:m=>`${i}-${a.type.displayName}-${m.index}`}),a.props)),b=()=>y.cloneElement(c,Object.assign(Object.assign({},i&&{id:()=>`${i}-${c.type.displayName}`}),c.props));return y.createElement(U0,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:g(),name:i,style:h(),theme:f,titleComponent:b()},d))};Vd.displayName="ChartLegend";Vr(Vd,U0,{getBaseProps:!0});Vd.getBaseProps=e=>{const t=Xr(null);return U0.getBaseProps(Object.assign({titleComponent:y.createElement(Wr,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const W0=({height:e,padding:t,width:n})=>{const{top:r,bottom:a,left:i,right:o}=Wt({padding:t}),l=Ha({height:e,width:n,padding:t}),s=(n-l*2-i-o)/2,u=(e-l*2-r-a)/2;return{x:l+i+s,y:l+r+u}},ak=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:a,width:i})=>{const o=W0({height:t,padding:a,width:i}),l=Ha({height:t,width:i,padding:a});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+gn.label.margin+e+l;case"right":return o.x+gn.label.margin+e;default:return e}default:return e}},ik=({dy:e=0,height:t,labelPosition:n,padding:r,width:a})=>{const i=W0({height:t,padding:r,width:a}),o=Ha({height:t,width:a,padding:r});switch(n){case"center":case"right":return i.y+e;case"bottom":return i.y+o+gn.label.margin*2+e;default:return e}},G$=({text:e,theme:t})=>{const n=t.legend.style.labels;return Ml(e,Object.assign({},n))},K$=(e,t)=>{let n=0;return e.map(r=>{const a=G$({text:r.name,theme:t}).width;a>n&&(n=a)}),n},X$=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:a=0,height:i,legendComponent:o,padding:l,patternScale:s,position:u=gn.legend.position,theme:c,width:f,orientation:d=c.legend.orientation})=>{const h=o.props?o.props:{},p=e?Rxe({dx:r,height:i,legendData:h.data,legendOrientation:h.legendOrientation?h.legendOrientation:d,legendPosition:u,legendProps:h,padding:l,theme:c,width:f}):void 0,g=me({},o.props,{itemsPerRow:p}),b=$xe({chartType:t,dx:r,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendPosition:u,legendProps:g,padding:l,theme:c,width:f}),m=Lxe({chartType:t,dy:a,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendProps:g,legendPosition:u,padding:l,theme:c,width:f}),v=me({},o.props,{colorScale:n,itemsPerRow:p,orientation:d,patternScale:s,standalone:!1,theme:c,x:b>0?b:0,y:m>0?m:0});return y.cloneElement(o,v)},Mo=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?U0.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Ixe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c},d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l});let h=0;switch(n){case"bottom-left":h=u+e;break;case"right":h=f.width+gn.legend.margin+u+e;break;default:h=e;break}return s-h>d.width},Rxe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=r?r.length:0;for(let c=u;c>0;c--)if(Ixe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:Object.assign(Object.assign({},i),{itemsPerRow:c}),padding:o,theme:l,width:s})){u=c;break}return u},Y$=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{const a=Mo({legendData:e,legendOrientation:t,legendProps:n,theme:r}),i=Mo({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(a.height-i.height)},$xe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);return t==="pie"?Fxe(n):Dxe(n)},Lxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);switch(t){case"pie":return zxe(n);case"bullet":return jxe(n);default:return Nxe(n)}},jxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c};switch(n){case"bottom":case"bottom-left":return f.height+gn.legend.margin+e;case"right":{const d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),h=p=>p&&p.length>0?17:0;return(f.height-d.height)/2+h(r)}default:return e}},Dxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({padding:o}),h={height:Math.abs(t-(c+u)),width:Math.abs(s-(f+d))},p=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>p.width?Math.round((s-p.width)/2)+e:e;case"bottom-left":return f+e;case"right":return h.width+gn.legend.margin+f+e;default:return e}},Nxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({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+gn.legend.margin*2+u+e;case"right":{const p=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),g=h.height/2+u,b=m=>m&&m.length>0?2:0;return g-p.height/2+b(r)}default:return e}},Fxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=W0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o}),f=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>f.width?Math.round((s-f.width)/2)+e:e;case"right":return u.x+gn.label.margin+e+c;default:return e}},zxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=W0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o});switch(n){case"bottom":return u.y+gn.legend.margin+c+e;case"right":{const f=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),d=h=>h&&h.length>0?2:0;return u.y-f.height/2+d(r)}default:return e}},ur=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:ur(e,n,0),Bxe=[{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}],Uxe=()=>y0("pf-pattern"),Q$=(e,t)=>`${e}:${t}`,Qm=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const a=[...Bxe];return r>0&&r{const s=a[(l+t)%a.length],{d:u,fill:c,stroke:f=o,strokeWidth:d}=s,h=Q(s,["d","fill","stroke","strokeWidth"]),p=Q$(n,l);return y.createElement("pattern",Object.assign({id:p,key:p},h),y.createElement("path",{d:u,stroke:f,strokeWidth:d,fill:c}))})))},Hxe=(e,t)=>e.map((n,r)=>`url(#${Q$(t,r)})`),Wxe=(e,t)=>{const n=[];return(e||t).forEach(a=>n.push(a)),n},Vxe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Hxe(e,t);return r&&r.length>0?r:void 0},qxe=(e,t)=>t?e.map((n,r)=>{const a=t[r%t.length];return Object.assign(Object.assign({},a&&{_fill:a}),n)}):e,hw=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const a=Wxe(e,r);let i=n,o=!n&&t!==void 0;const l=y.useMemo(()=>o?Uxe():void 0,[o]);if(o&&(i=Vxe({colorScale:a,patternId:l,patternScale:n})),Array.isArray(t))for(let s=0;sy.Children.toArray(e).map((n,r)=>{if(y.isValidElement(n)){const a=Q(n.props,[]),i=a.style?Object.assign({},a.style):{};if(t){const l=t[r%t.length];i.data=Object.assign(Object.assign({},l&&{fill:l}),i.data)}return y.cloneElement(n,Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),a),{style:i}))}return n});var ok=ju,lk=ok?ok.prototype:void 0;lk&&lk.valueOf;var sk=Ad;sk&&sk.isMap;var uk=Ad;uk&&uk.isSet;const Kxe=e=>D$(e,a5e),Xxe=(e,t)=>{const n=Xr(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},Yxe=e=>D$(e,o5e),Jm=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,hasPatterns:i,legendAllowWrap:o=!1,legendComponent:l=y.createElement(Vd,null),legendData:s,legendPosition:u=gn.legend.position,legendDirection:c="ltr",name:f,padding:d,patternScale:h,showAxis:p=!0,themeColor:g,theme:b=Xxe(g,p),containerComponent:m=y.createElement(Qa,null),legendOrientation:v=b.legend.orientation,height:_=b.chart.height,width:x=b.chart.width}=e,O=Q(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","padding","patternScale","showAxis","themeColor","theme","containerComponent","legendOrientation","height","width"]);const S={bottom:ur("bottom",d,b.chart.padding),left:ur("left",d,b.chart.padding),right:ur("right",d,b.chart.padding),top:ur("top",d,b.chart.padding)},{defaultColorScale:w,defaultPatternScale:C,isPatternDefs:A,patternId:I}=hw({colorScale:a,patternScale:h,hasPatterns:i,themeColorScale:b.chart.colorScale});let P;m.props.labelComponent&&m.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(P=y.cloneElement(m.props.labelComponent,Object.assign(Object.assign({theme:b},C&&{patternScale:C}),m.props.labelComponent.props)));const T=y.cloneElement(m,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:b},m.props),{className:B0({className:m.props.className})}),P&&{labelComponent:P}));let E=0;c==="rtl"&&(E=K$(s,b));const L=y.cloneElement(l,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:s},f&&{name:`${f}-${l.type.displayName}`}),{orientation:v,theme:b}),c==="rtl"&&{dataComponent:l.props.dataComponent?y.cloneElement(l.props.dataComponent,{transform:`translate(${E})`}):y.createElement(H0,{transform:`translate(${E})`})}),c==="rtl"&&{labelComponent:l.props.labelComponent?y.cloneElement(l.props.labelComponent,{direction:"rtl",dx:E-30}):y.createElement(Wr,{direction:"rtl",dx:E-30})}),l.props)),N=()=>{if(!L.props.data)return null;let $=0,F=0,k=0,X=L.props.title?10:0;return y.Children.toArray(r).map(te=>{te.type.role==="axis"&&te.props.label&&!te.props.dependentAxis&&(k=G$({text:te.props.label,theme:b}).height+10,X=0)}),u==="bottom"?F+=k+X:u==="bottom-left"&&(F+=k+X,$=-10),p||(F-=O8.value),X$(Object.assign({allowWrap:o===!0||typeof o=="function",chartType:"chart",colorScale:a,dx:$,dy:F,height:_,legendComponent:L,padding:S,position:u,theme:b,width:x},C&&{patternScale:C}))},U=()=>y.Children.toArray(r).map(($,F)=>{if(y.isValidElement($)){const k=Q($.props,[]);return y.cloneElement($,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a},C&&{patternScale:C}),f&&typeof $.name!==void 0&&{name:`${f}-${$.type.displayName}-${F}`}),{theme:b}),k),$.type.displayName==="ChartPie"&&{data:qxe(k.data,C)}))}return $}),W=N();return y.useEffect(()=>{if(W!=null&&W.props&&typeof o=="function"){const $=Y$({legendData:W.props.data,legendOrientation:W.props.orientation,legendProps:W.props,theme:b});o($)}},[W,o,b,x]),y.createElement(z0,Object.assign({colorScale:a,containerComponent:T,height:_,name:f,padding:S,theme:b,width:x},O),U(),W,A&&Qm({patternId:I,colorScale:w}))};Jm.displayName="Chart";Vr(Jm,z0);const Ts=e=>{var{axisLabelComponent:t=y.createElement(Wr,null),containerComponent:n=y.createElement(Qa,null),name:r,showGrid:a=!1,themeColor:i,tickLabelComponent:o=y.createElement(Wr,null),theme:l=Xr(i)}=e,s=Q(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);const u=y.cloneElement(n,Object.assign({theme:l},n.props)),c=()=>y.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),f=()=>y.cloneElement(o,Object.assign(Object.assign({},r&&{id:d=>`${r}-${o.type.displayName}-${d.index}`}),o.props));return y.createElement(Jf,Object.assign({axisLabelComponent:c(),containerComponent:u,name:r,theme:a?Kxe(i):l,tickLabelComponent:f()},s))};Ts.displayName="ChartAxis";Vr(Ts,Jf);var Qxe=function(e,t){var n=function(i){var o=yR(e.scale[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,l=o,s=pr(e.domain[i]),u=pa(e.domain[i]);return s<0&&u<=0?l=u:s>=0&&u>0&&(l=s),t["_".concat(i)]instanceof Date?new Date(l):l},r=t._y0!==void 0?t._y0:n("y"),a=t._x0!==void 0?t._x0:n("x");return Dd(e,Object.assign({},t,{_y0:r,_x0:a}))},Jxe=function(e){var t=e.polar,n=dx(e,"bar"),r=e.disableInlineStyles?{}:b0(e.style,n),a=e.range||{x:ln(e,"x"),y:ln(e,"y")},i={x:J1(e,"x"),y:J1(e,"y")},o={x:Va(e,"x").domain(i.x).range(e.horizontal?a.y:a.x),y:Va(e,"y").domain(i.y).range(e.horizontal?a.x:a.y)},l=t?e.origin||Nd(e):void 0,s=tr(e);return s=vpe(s,i,0),{style:r,data:s,scale:o,domain:i,origin:l}},Zxe=function(e,t){var n=on(e,t,"bar"),r=Object.assign({},n,Jxe(n)),a=r.alignment,i=r.barRatio,o=r.cornerRadius,l=r.data,s=r.disableInlineStyles,u=r.domain,c=r.events,f=r.height,d=r.horizontal,h=r.origin,p=r.padding,g=r.polar,b=r.scale,m=r.sharedEvents,v=r.standalone,_=r.style,x=r.theme,O=r.width,S=r.labels,w=r.name,C=r.barWidth,A=r.getPath,I={parent:{horizontal:d,domain:u,scale:b,width:O,height:f,data:l,standalone:v,name:w,theme:x,polar:g,origin:h,padding:p,style:_.parent}};return l.reduce(function(P,T,E){var L=Wa(T.eventKey)?E:T.eventKey,N=Qxe(r,T),U=N.x,W=N.y,$=N.y0,F=N.x0,k={alignment:a,barRatio:i,barWidth:C,cornerRadius:o,data:l,datum:T,disableInlineStyles:s,getPath:A,horizontal:d,index:E,polar:g,origin:h,scale:b,style:_.data,width:O,height:f,x:U,y:W,y0:$,x0:F};P[L]={data:k};var X=gx(r,T,E);return(X!=null||S&&(c||m))&&(P[L].labels=hI(r,E)),P},I)},ewe=8,twe=function(e,t){var n=t.scale,r=t.data,a=t.style;if(e)return le(e,t);if(a.width)return a.width;var i=n.x.range(),o=Math.abs(i[1]-i[0]),l=r.length+2,s=t.barRatio||.5,u=s*(r.length<2?ewe:o/l);return Math.max(1,u)},nwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(a,i){Wa(e[a])?Wa(e[i])||(n[a]=le(e[i],t)):n[a]=le(e[a],t)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n};function rwe(e){return Zt(e)}var awe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return e?rwe(e)?nwe(e,t):(n.topLeft=le(e,t),n.topRight=le(e,t),n):n},iwe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.disableInlineStyles)return{};var n=e.fill||"black",r={fill:"black",stroke:n};return _t(Object.assign(r,e),t)},ja=function(e,t){return{x:e,y:t,distance:function(n){return Math.sqrt(Math.pow(this.x-n.x,2)+Math.pow(this.y-n.y,2))},add:function(n){return ja(this.x+n.x,this.y+n.y)},subtract:function(n){return ja(this.x-n.x,this.y-n.y)},scalarMult:function(n){return ja(this.x*n,this.y*n)},scalarDivide:function(n){if(n===0)throw new Error("Division by 0 error");return ja(this.x/n,this.y/n)},equals:function(n){return this.x===n.x&&this.y===n.y}}},Zm=function(e,t){return{center:e,radius:t,hasIntersection:function(n){var r=this.center,a=n.center,i=this.radius,o=n.radius,l=r.distance(a);return!(l>i+o||le.length)&&(t=e.length);for(var n=0,r=new Array(t);no-n["top".concat(s)];if(b){var m=ja(f+c*n["top".concat(s)],o+t*n["top".concat(s)]),v=Zm(m,n["top".concat(s)]),_=ja(f+c*n["bottom".concat(s)],i-t*n["bottom".concat(s)]),x=Zm(_,n["bottom".concat(s)]),O=v.intersection(x),S=O.length>0;if(S){var w=O[u?0:1];h={x:w.x,y:w.y},p={x:w.x,y:w.y}}else{var C=n["top".concat(s)]>n["bottom".concat(s)];if(C){var A=v.solveX(i)[u?0:1];d={x:A,y:i},h={x:A,y:i},p={x:A,y:i}}else{var I=x.solveX(o)[u?0:1];h={x:I,y:o},p={x:I,y:o},g={x:I,y:o}}}}var P=[d,h,p,g];return u?P:P.reverse()};return l("Left").concat(l("Right"))},gwe=function(e,t,n){var r=e.y0,a=e.y1,i=e.x0b.x;if(v){var _=ja(i+n["".concat(c,"Left")],h-d*n["".concat(c,"Left")]),x=Zm(_,n["".concat(c,"Left")]),O=ja(o-n["".concat(c,"Right")],h-d*n["".concat(c,"Right")]),S=Zm(O,n["".concat(c,"Right")]),w=x.intersection(S),C=w.length>0;if(C){var A=w[t>0?1:0];g={x:A.x,y:A.y},b={x:A.x,y:A.y}}else{var I=n["".concat(c,"Right")]>n["".concat(c,"Left")];if(I){var P=S.solveY(i)[f?0:1];p={x:i,y:P},g={x:i,y:P},b={x:i,y:P}}else{var T=x.solveY(o)[f?0:1];m={x:o,y:T},b={x:o,y:T},g={x:o,y:T}}}}return[p,g,b,m]},s=l("top"),u=l("bottom");return[u[1],u[0]].concat(Or(s),[u[3],u[2]])},vwe=function(e,t,n){var r=pw(e,t),a=r.y0>r.y1?1:-1,i=a>0?"0 0 1":"0 0 0",o=mwe(r,a,n);return J$(o,n,i)},ywe=function(e,t,n){var r=pw(e,t),a=r.x00?n.topLeft:n.bottomLeft,bottomRight:a>0?n.topRight:n.bottomRight,bottomLeft:a>0?n.bottomRight:n.topRight,topLeft:a>0?n.bottomLeft:n.topLeft},l=gwe(r,a,o);return J$(l,o,i)},bwe=function(e,t){var n=e.datum,r=e.scale,a=e.index,i=e.alignment,o=e.style,l=r.y(n._y0||0),s=r.y(n._y1!==void 0?n._y1:n._y),u=r.x(n._x1!==void 0?n._x1:n._x),c,f;if(o.width){var d=fwe(e,o.width),h=i==="middle"?d/2:d;c=i==="start"?u:u-h,f=i==="end"?u:u+h}else c=hwe(e,Number(a)),f=pwe(e,Number(a));var p=function(S){var w=I0().innerRadius(l).outerRadius(s).startAngle(dk(c)).endAngle(dk(f)).cornerRadius(t[S]);return w()},g=function(S){var w=p("".concat(S,"Right")),C=w.match(/[A-Z]/g)||[],A=w.split(/[A-Z]/).slice(1),I=C.indexOf("L"),P=p("".concat(S,"Left")),T=P.match(/[A-Z]/g)||[],E=P.split(/[A-Z]/).slice(1),L=T.indexOf("L");return{rightMoves:C,rightCoords:A,rightMiddle:I,leftMoves:T,leftCoords:E,leftMiddle:L}},b=function(){var S=t.topRight,w=t.topLeft,C=s*Math.abs(f-c),A=g("top"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(ue){return ue<3},F=w>S&&$(T)?1:2,k;if(S>w){var X=$(T)?N:N-2;k=$(N)?N-1:X}else{var te=$(N)?1:2;k=$(T)?te:N-2}U=[].concat(Or(I.slice(0,F)),Or(E.slice(k))),W=[].concat(Or(P.slice(0,F)),Or(L.slice(k)))}var R=U.indexOf("L"),J=U.slice(0,R),ae=W.slice(0,R);return J.map(function(ue,ve){return{command:ue,coords:ae[ve].split(",")}})},m=function(){var S=t.bottomRight,w=t.bottomLeft,C=l*Math.abs(f-c),A=g("bottom"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(J,ae){return J.length-ae<4},F=S>w?$(I,T):$(E,N),k=F?-1:-3;U=[].concat(Or(E.slice(0,N+2)),Or(I.slice(k))),W=[].concat(Or(L.slice(0,N+2)),Or(P.slice(k)))}var X=U.indexOf("L"),te=U.slice(X,-1),R=W.slice(X,-1);return te.map(function(J,ae){return{command:J,coords:R[ae].split(",")}})},v=b(),_=m(),x=[].concat(Or(v),Or(_)),O=x.reduce(function(S,w){return"".concat(S).concat(w.command," ").concat(w.coords.join())},"");return"".concat(O," z")},_we=function(e,t,n){return e.getPath?dwe(e,t):e.horizontal?ywe(e,t,n):vwe(e,t,n)},xwe=function(e,t){return bwe(e,t)};function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t"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 eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eg(e)}var Z$={width:450,height:300,padding:50},Rwe=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],Ja=function(e){Pwe(n,e);var t=Twe(n);function n(){return Ewe(this,n),t.apply(this,arguments)}return kwe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=tg.animationWhitelist,i=tg.role,o=on(this.props,Z$,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Ja.animationWhitelist=["data","domain","height","padding","style","width"];Ja.displayName="VictoryBar";Ja.role="bar";Ja.defaultTransitions={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(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}}};Ja.defaultProps={containerComponent:M.createElement(En,null),data:Rwe,dataComponent:M.createElement(Cwe,null),groupComponent:M.createElement("g",{role:"presentation"}),labelComponent:M.createElement(Dn,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Ja.getDomain=J1;Ja.getData=tr;Ja.getBaseProps=function(e){return Zxe(e,Z$)};Ja.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var tg=Hu(Ja);const mw=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(tg,Object.assign({containerComponent:i,theme:r},a))};mw.displayName="ChartBar";Vr(mw,tg);function mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t{const{x:t,y:n}=e,r=le(e.size,e);if(e.getPath)return e.getPath(t,n,r);const a={circle:rr.circle,square:rr.square,diamond:rr.diamond,eyeSlash:rr.eyeSlash,triangleDown:rr.triangleDown,triangleLeft:rr.triangleLeft,triangleRight:rr.triangleRight,triangleUp:rr.triangleUp,plus:rr.plus,minus:rr.minus,star:rr.star,dash:rr.dash,threshold:rr.threshold},o=le(e.symbol,e);return(typeof a[o]=="function"?a[o]:a.square)(t,n,r)},H0=e=>{var{active:t,className:n,clipPath:r,datum:a,desc:i,events:o,pathComponent:l=y.createElement(Hl,null),role:s="presentation",shapeRendering:u="auto",tabIndex:c,transform:f}=e,d=Q(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:a,desc:i,events:o,role:s,shapeRendering:u,tabIndex:c,transform:f},d);return y.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:Ixe(h),desc:le(i,h)},o),{role:s,shapeRendering:u,style:_t(d.style,h),tabIndex:le(c,h),transform:f}))};H0.displayName="ChartPoint";const Vd=e=>{var{colorScale:t,containerComponent:n=y.createElement(Qa,null),dataComponent:r=y.createElement(H0,null),labelComponent:a=y.createElement(Wr,null),name:i,patternScale:o,responsive:l=!0,style:s,themeColor:u,titleComponent:c=y.createElement(Wr,null),theme:f=Xr(u)}=e,d=Q(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","titleComponent","theme"]);const h=()=>{if(!o)return s;const m=s?Object.assign({},s):{};return m.data=Object.assign({fill:({index:v})=>{const _=f&&f.legend&&f.legend.colorScale?f.legend.colorScale[v%f.legend.colorScale.length]:void 0,x=t?t[v%t.length]:_,O=o[v%o.length];return O||x}},m.data),m},p=y.cloneElement(n,Object.assign({responsive:l,theme:f},n.props)),g=()=>y.cloneElement(a,Object.assign(Object.assign({},i&&{id:m=>`${i}-${a.type.displayName}-${m.index}`}),a.props)),b=()=>y.cloneElement(c,Object.assign(Object.assign({},i&&{id:()=>`${i}-${c.type.displayName}`}),c.props));return y.createElement(U0,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:g(),name:i,style:h(),theme:f,titleComponent:b()},d))};Vd.displayName="ChartLegend";Vr(Vd,U0,{getBaseProps:!0});Vd.getBaseProps=e=>{const t=Xr(null);return U0.getBaseProps(Object.assign({titleComponent:y.createElement(Wr,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const W0=({height:e,padding:t,width:n})=>{const{top:r,bottom:a,left:i,right:o}=Wt({padding:t}),l=Ha({height:e,width:n,padding:t}),s=(n-l*2-i-o)/2,u=(e-l*2-r-a)/2;return{x:l+i+s,y:l+r+u}},ik=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:a,width:i})=>{const o=W0({height:t,padding:a,width:i}),l=Ha({height:t,width:i,padding:a});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+gn.label.margin+e+l;case"right":return o.x+gn.label.margin+e;default:return e}default:return e}},ok=({dy:e=0,height:t,labelPosition:n,padding:r,width:a})=>{const i=W0({height:t,padding:r,width:a}),o=Ha({height:t,width:a,padding:r});switch(n){case"center":case"right":return i.y+e;case"bottom":return i.y+o+gn.label.margin*2+e;default:return e}},X$=({text:e,theme:t})=>{const n=t.legend.style.labels;return Ml(e,Object.assign({},n))},Y$=(e,t)=>{let n=0;return e.map(r=>{const a=X$({text:r.name,theme:t}).width;a>n&&(n=a)}),n},Q$=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:a=0,height:i,legendComponent:o,padding:l,patternScale:s,position:u=gn.legend.position,theme:c,width:f,orientation:d=c.legend.orientation})=>{const h=o.props?o.props:{},p=e?$xe({dx:r,height:i,legendData:h.data,legendOrientation:h.legendOrientation?h.legendOrientation:d,legendPosition:u,legendProps:h,padding:l,theme:c,width:f}):void 0,g=me({},o.props,{itemsPerRow:p}),b=Lxe({chartType:t,dx:r,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendPosition:u,legendProps:g,padding:l,theme:c,width:f}),m=jxe({chartType:t,dy:a,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendProps:g,legendPosition:u,padding:l,theme:c,width:f}),v=me({},o.props,{colorScale:n,itemsPerRow:p,orientation:d,patternScale:s,standalone:!1,theme:c,x:b>0?b:0,y:m>0?m:0});return y.cloneElement(o,v)},Mo=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?U0.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Rxe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c},d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l});let h=0;switch(n){case"bottom-left":h=u+e;break;case"right":h=f.width+gn.legend.margin+u+e;break;default:h=e;break}return s-h>d.width},$xe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=r?r.length:0;for(let c=u;c>0;c--)if(Rxe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:Object.assign(Object.assign({},i),{itemsPerRow:c}),padding:o,theme:l,width:s})){u=c;break}return u},J$=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{const a=Mo({legendData:e,legendOrientation:t,legendProps:n,theme:r}),i=Mo({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(a.height-i.height)},Lxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);return t==="pie"?zxe(n):Nxe(n)},jxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);switch(t){case"pie":return Bxe(n);case"bullet":return Dxe(n);default:return Fxe(n)}},Dxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c};switch(n){case"bottom":case"bottom-left":return f.height+gn.legend.margin+e;case"right":{const d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),h=p=>p&&p.length>0?17:0;return(f.height-d.height)/2+h(r)}default:return e}},Nxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({padding:o}),h={height:Math.abs(t-(c+u)),width:Math.abs(s-(f+d))},p=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>p.width?Math.round((s-p.width)/2)+e:e;case"bottom-left":return f+e;case"right":return h.width+gn.legend.margin+f+e;default:return e}},Fxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({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+gn.legend.margin*2+u+e;case"right":{const p=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),g=h.height/2+u,b=m=>m&&m.length>0?2:0;return g-p.height/2+b(r)}default:return e}},zxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=W0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o}),f=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>f.width?Math.round((s-f.width)/2)+e:e;case"right":return u.x+gn.label.margin+e+c;default:return e}},Bxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=W0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o});switch(n){case"bottom":return u.y+gn.legend.margin+c+e;case"right":{const f=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),d=h=>h&&h.length>0?2:0;return u.y-f.height/2+d(r)}default:return e}},cr=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:cr(e,n,0),Uxe=[{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}],Hxe=()=>y0("pf-pattern"),Z$=(e,t)=>`${e}:${t}`,Qm=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const a=[...Uxe];return r>0&&r{const s=a[(l+t)%a.length],{d:u,fill:c,stroke:f=o,strokeWidth:d}=s,h=Q(s,["d","fill","stroke","strokeWidth"]),p=Z$(n,l);return y.createElement("pattern",Object.assign({id:p,key:p},h),y.createElement("path",{d:u,stroke:f,strokeWidth:d,fill:c}))})))},Wxe=(e,t)=>e.map((n,r)=>`url(#${Z$(t,r)})`),Vxe=(e,t)=>{const n=[];return(e||t).forEach(a=>n.push(a)),n},qxe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Wxe(e,t);return r&&r.length>0?r:void 0},Gxe=(e,t)=>t?e.map((n,r)=>{const a=t[r%t.length];return Object.assign(Object.assign({},a&&{_fill:a}),n)}):e,hw=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const a=Vxe(e,r);let i=n,o=!n&&t!==void 0;const l=y.useMemo(()=>o?Hxe():void 0,[o]);if(o&&(i=qxe({colorScale:a,patternId:l,patternScale:n})),Array.isArray(t))for(let s=0;sy.Children.toArray(e).map((n,r)=>{if(y.isValidElement(n)){const a=Q(n.props,[]),i=a.style?Object.assign({},a.style):{};if(t){const l=t[r%t.length];i.data=Object.assign(Object.assign({},l&&{fill:l}),i.data)}return y.cloneElement(n,Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),a),{style:i}))}return n});var lk=ju,sk=lk?lk.prototype:void 0;sk&&sk.valueOf;var uk=Ad;uk&&uk.isMap;var ck=Ad;ck&&ck.isSet;const Xxe=e=>F$(e,i5e),Yxe=(e,t)=>{const n=Xr(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},Qxe=e=>F$(e,l5e),Jm=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,hasPatterns:i,legendAllowWrap:o=!1,legendComponent:l=y.createElement(Vd,null),legendData:s,legendPosition:u=gn.legend.position,legendDirection:c="ltr",name:f,padding:d,patternScale:h,showAxis:p=!0,themeColor:g,theme:b=Yxe(g,p),containerComponent:m=y.createElement(Qa,null),legendOrientation:v=b.legend.orientation,height:_=b.chart.height,width:x=b.chart.width}=e,O=Q(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","padding","patternScale","showAxis","themeColor","theme","containerComponent","legendOrientation","height","width"]);const S={bottom:cr("bottom",d,b.chart.padding),left:cr("left",d,b.chart.padding),right:cr("right",d,b.chart.padding),top:cr("top",d,b.chart.padding)},{defaultColorScale:w,defaultPatternScale:C,isPatternDefs:A,patternId:I}=hw({colorScale:a,patternScale:h,hasPatterns:i,themeColorScale:b.chart.colorScale});let P;m.props.labelComponent&&m.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(P=y.cloneElement(m.props.labelComponent,Object.assign(Object.assign({theme:b},C&&{patternScale:C}),m.props.labelComponent.props)));const T=y.cloneElement(m,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:b},m.props),{className:B0({className:m.props.className})}),P&&{labelComponent:P}));let E=0;c==="rtl"&&(E=Y$(s,b));const L=y.cloneElement(l,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:s},f&&{name:`${f}-${l.type.displayName}`}),{orientation:v,theme:b}),c==="rtl"&&{dataComponent:l.props.dataComponent?y.cloneElement(l.props.dataComponent,{transform:`translate(${E})`}):y.createElement(H0,{transform:`translate(${E})`})}),c==="rtl"&&{labelComponent:l.props.labelComponent?y.cloneElement(l.props.labelComponent,{direction:"rtl",dx:E-30}):y.createElement(Wr,{direction:"rtl",dx:E-30})}),l.props)),N=()=>{if(!L.props.data)return null;let $=0,F=0,k=0,X=L.props.title?10:0;return y.Children.toArray(r).map(te=>{te.type.role==="axis"&&te.props.label&&!te.props.dependentAxis&&(k=X$({text:te.props.label,theme:b}).height+10,X=0)}),u==="bottom"?F+=k+X:u==="bottom-left"&&(F+=k+X,$=-10),p||(F-=E8.value),Q$(Object.assign({allowWrap:o===!0||typeof o=="function",chartType:"chart",colorScale:a,dx:$,dy:F,height:_,legendComponent:L,padding:S,position:u,theme:b,width:x},C&&{patternScale:C}))},U=()=>y.Children.toArray(r).map(($,F)=>{if(y.isValidElement($)){const k=Q($.props,[]);return y.cloneElement($,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a},C&&{patternScale:C}),f&&typeof $.name!==void 0&&{name:`${f}-${$.type.displayName}-${F}`}),{theme:b}),k),$.type.displayName==="ChartPie"&&{data:Gxe(k.data,C)}))}return $}),W=N();return y.useEffect(()=>{if(W!=null&&W.props&&typeof o=="function"){const $=J$({legendData:W.props.data,legendOrientation:W.props.orientation,legendProps:W.props,theme:b});o($)}},[W,o,b,x]),y.createElement(z0,Object.assign({colorScale:a,containerComponent:T,height:_,name:f,padding:S,theme:b,width:x},O),U(),W,A&&Qm({patternId:I,colorScale:w}))};Jm.displayName="Chart";Vr(Jm,z0);const Ts=e=>{var{axisLabelComponent:t=y.createElement(Wr,null),containerComponent:n=y.createElement(Qa,null),name:r,showGrid:a=!1,themeColor:i,tickLabelComponent:o=y.createElement(Wr,null),theme:l=Xr(i)}=e,s=Q(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);const u=y.cloneElement(n,Object.assign({theme:l},n.props)),c=()=>y.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),f=()=>y.cloneElement(o,Object.assign(Object.assign({},r&&{id:d=>`${r}-${o.type.displayName}-${d.index}`}),o.props));return y.createElement(Jf,Object.assign({axisLabelComponent:c(),containerComponent:u,name:r,theme:a?Xxe(i):l,tickLabelComponent:f()},s))};Ts.displayName="ChartAxis";Vr(Ts,Jf);var Jxe=function(e,t){var n=function(i){var o=_R(e.scale[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,l=o,s=mr(e.domain[i]),u=pa(e.domain[i]);return s<0&&u<=0?l=u:s>=0&&u>0&&(l=s),t["_".concat(i)]instanceof Date?new Date(l):l},r=t._y0!==void 0?t._y0:n("y"),a=t._x0!==void 0?t._x0:n("x");return Dd(e,Object.assign({},t,{_y0:r,_x0:a}))},Zxe=function(e){var t=e.polar,n=dx(e,"bar"),r=e.disableInlineStyles?{}:b0(e.style,n),a=e.range||{x:ln(e,"x"),y:ln(e,"y")},i={x:J1(e,"x"),y:J1(e,"y")},o={x:Va(e,"x").domain(i.x).range(e.horizontal?a.y:a.x),y:Va(e,"y").domain(i.y).range(e.horizontal?a.x:a.y)},l=t?e.origin||Nd(e):void 0,s=tr(e);return s=ype(s,i,0),{style:r,data:s,scale:o,domain:i,origin:l}},ewe=function(e,t){var n=on(e,t,"bar"),r=Object.assign({},n,Zxe(n)),a=r.alignment,i=r.barRatio,o=r.cornerRadius,l=r.data,s=r.disableInlineStyles,u=r.domain,c=r.events,f=r.height,d=r.horizontal,h=r.origin,p=r.padding,g=r.polar,b=r.scale,m=r.sharedEvents,v=r.standalone,_=r.style,x=r.theme,O=r.width,S=r.labels,w=r.name,C=r.barWidth,A=r.getPath,I={parent:{horizontal:d,domain:u,scale:b,width:O,height:f,data:l,standalone:v,name:w,theme:x,polar:g,origin:h,padding:p,style:_.parent}};return l.reduce(function(P,T,E){var L=Wa(T.eventKey)?E:T.eventKey,N=Jxe(r,T),U=N.x,W=N.y,$=N.y0,F=N.x0,k={alignment:a,barRatio:i,barWidth:C,cornerRadius:o,data:l,datum:T,disableInlineStyles:s,getPath:A,horizontal:d,index:E,polar:g,origin:h,scale:b,style:_.data,width:O,height:f,x:U,y:W,y0:$,x0:F};P[L]={data:k};var X=gx(r,T,E);return(X!=null||S&&(c||m))&&(P[L].labels=mI(r,E)),P},I)},twe=8,nwe=function(e,t){var n=t.scale,r=t.data,a=t.style;if(e)return le(e,t);if(a.width)return a.width;var i=n.x.range(),o=Math.abs(i[1]-i[0]),l=r.length+2,s=t.barRatio||.5,u=s*(r.length<2?twe:o/l);return Math.max(1,u)},rwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(a,i){Wa(e[a])?Wa(e[i])||(n[a]=le(e[i],t)):n[a]=le(e[a],t)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n};function awe(e){return Zt(e)}var iwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return e?awe(e)?rwe(e,t):(n.topLeft=le(e,t),n.topRight=le(e,t),n):n},owe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.disableInlineStyles)return{};var n=e.fill||"black",r={fill:"black",stroke:n};return _t(Object.assign(r,e),t)},ja=function(e,t){return{x:e,y:t,distance:function(n){return Math.sqrt(Math.pow(this.x-n.x,2)+Math.pow(this.y-n.y,2))},add:function(n){return ja(this.x+n.x,this.y+n.y)},subtract:function(n){return ja(this.x-n.x,this.y-n.y)},scalarMult:function(n){return ja(this.x*n,this.y*n)},scalarDivide:function(n){if(n===0)throw new Error("Division by 0 error");return ja(this.x/n,this.y/n)},equals:function(n){return this.x===n.x&&this.y===n.y}}},Zm=function(e,t){return{center:e,radius:t,hasIntersection:function(n){var r=this.center,a=n.center,i=this.radius,o=n.radius,l=r.distance(a);return!(l>i+o||le.length)&&(t=e.length);for(var n=0,r=new Array(t);no-n["top".concat(s)];if(b){var m=ja(f+c*n["top".concat(s)],o+t*n["top".concat(s)]),v=Zm(m,n["top".concat(s)]),_=ja(f+c*n["bottom".concat(s)],i-t*n["bottom".concat(s)]),x=Zm(_,n["bottom".concat(s)]),O=v.intersection(x),S=O.length>0;if(S){var w=O[u?0:1];h={x:w.x,y:w.y},p={x:w.x,y:w.y}}else{var C=n["top".concat(s)]>n["bottom".concat(s)];if(C){var A=v.solveX(i)[u?0:1];d={x:A,y:i},h={x:A,y:i},p={x:A,y:i}}else{var I=x.solveX(o)[u?0:1];h={x:I,y:o},p={x:I,y:o},g={x:I,y:o}}}}var P=[d,h,p,g];return u?P:P.reverse()};return l("Left").concat(l("Right"))},vwe=function(e,t,n){var r=e.y0,a=e.y1,i=e.x0b.x;if(v){var _=ja(i+n["".concat(c,"Left")],h-d*n["".concat(c,"Left")]),x=Zm(_,n["".concat(c,"Left")]),O=ja(o-n["".concat(c,"Right")],h-d*n["".concat(c,"Right")]),S=Zm(O,n["".concat(c,"Right")]),w=x.intersection(S),C=w.length>0;if(C){var A=w[t>0?1:0];g={x:A.x,y:A.y},b={x:A.x,y:A.y}}else{var I=n["".concat(c,"Right")]>n["".concat(c,"Left")];if(I){var P=S.solveY(i)[f?0:1];p={x:i,y:P},g={x:i,y:P},b={x:i,y:P}}else{var T=x.solveY(o)[f?0:1];m={x:o,y:T},b={x:o,y:T},g={x:o,y:T}}}}return[p,g,b,m]},s=l("top"),u=l("bottom");return[u[1],u[0]].concat(Cr(s),[u[3],u[2]])},ywe=function(e,t,n){var r=pw(e,t),a=r.y0>r.y1?1:-1,i=a>0?"0 0 1":"0 0 0",o=gwe(r,a,n);return eL(o,n,i)},bwe=function(e,t,n){var r=pw(e,t),a=r.x00?n.topLeft:n.bottomLeft,bottomRight:a>0?n.topRight:n.bottomRight,bottomLeft:a>0?n.bottomRight:n.topRight,topLeft:a>0?n.bottomLeft:n.topLeft},l=vwe(r,a,o);return eL(l,o,i)},_we=function(e,t){var n=e.datum,r=e.scale,a=e.index,i=e.alignment,o=e.style,l=r.y(n._y0||0),s=r.y(n._y1!==void 0?n._y1:n._y),u=r.x(n._x1!==void 0?n._x1:n._x),c,f;if(o.width){var d=dwe(e,o.width),h=i==="middle"?d/2:d;c=i==="start"?u:u-h,f=i==="end"?u:u+h}else c=pwe(e,Number(a)),f=mwe(e,Number(a));var p=function(S){var w=I0().innerRadius(l).outerRadius(s).startAngle(hk(c)).endAngle(hk(f)).cornerRadius(t[S]);return w()},g=function(S){var w=p("".concat(S,"Right")),C=w.match(/[A-Z]/g)||[],A=w.split(/[A-Z]/).slice(1),I=C.indexOf("L"),P=p("".concat(S,"Left")),T=P.match(/[A-Z]/g)||[],E=P.split(/[A-Z]/).slice(1),L=T.indexOf("L");return{rightMoves:C,rightCoords:A,rightMiddle:I,leftMoves:T,leftCoords:E,leftMiddle:L}},b=function(){var S=t.topRight,w=t.topLeft,C=s*Math.abs(f-c),A=g("top"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(ue){return ue<3},F=w>S&&$(T)?1:2,k;if(S>w){var X=$(T)?N:N-2;k=$(N)?N-1:X}else{var te=$(N)?1:2;k=$(T)?te:N-2}U=[].concat(Cr(I.slice(0,F)),Cr(E.slice(k))),W=[].concat(Cr(P.slice(0,F)),Cr(L.slice(k)))}var R=U.indexOf("L"),J=U.slice(0,R),ae=W.slice(0,R);return J.map(function(ue,ve){return{command:ue,coords:ae[ve].split(",")}})},m=function(){var S=t.bottomRight,w=t.bottomLeft,C=l*Math.abs(f-c),A=g("bottom"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(J,ae){return J.length-ae<4},F=S>w?$(I,T):$(E,N),k=F?-1:-3;U=[].concat(Cr(E.slice(0,N+2)),Cr(I.slice(k))),W=[].concat(Cr(L.slice(0,N+2)),Cr(P.slice(k)))}var X=U.indexOf("L"),te=U.slice(X,-1),R=W.slice(X,-1);return te.map(function(J,ae){return{command:J,coords:R[ae].split(",")}})},v=b(),_=m(),x=[].concat(Cr(v),Cr(_)),O=x.reduce(function(S,w){return"".concat(S).concat(w.command," ").concat(w.coords.join())},"");return"".concat(O," z")},xwe=function(e,t,n){return e.getPath?hwe(e,t):e.horizontal?bwe(e,t,n):ywe(e,t,n)},wwe=function(e,t){return _we(e,t)};function pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t"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 eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eg(e)}var tL={width:450,height:300,padding:50},$we=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],Ja=function(e){Twe(n,e);var t=Awe(n);function n(){return kwe(this,n),t.apply(this,arguments)}return Pwe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=tg.animationWhitelist,i=tg.role,o=on(this.props,tL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Ja.animationWhitelist=["data","domain","height","padding","style","width"];Ja.displayName="VictoryBar";Ja.role="bar";Ja.defaultTransitions={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(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}}};Ja.defaultProps={containerComponent:M.createElement(En,null),data:$we,dataComponent:M.createElement(Ewe,null),groupComponent:M.createElement("g",{role:"presentation"}),labelComponent:M.createElement(Dn,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Ja.getDomain=J1;Ja.getData=tr;Ja.getBaseProps=function(e){return ewe(e,tL)};Ja.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var tg=Hu(Ja);const mw=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(tg,Object.assign({containerComponent:i,theme:r},a))};mw.displayName="ChartBar";Vr(mw,tg);function gk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t0?0:e.pointerLength,m=r==="left"?"0 0 0":"0 0 1",v="".concat(n," ").concat(n," ").concat(m);return"M ".concat(d,", ").concat(f-t/2,` + z`)},Dwe=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,a=e.width,i=e.height,o=e.center,l=r==="left"?1:-1,s=e.x+(e.dx||0),u=e.y+(e.dy||0),c=o.x,f=o.y,d=c-l*(a/2),h=c+l*(a/2),p=f+i/2,g=f-i/2,b=l*(s-d)>0?0:e.pointerLength,m=r==="left"?"0 0 0":"0 0 1",v="".concat(n," ").concat(n," ").concat(m);return"M ".concat(d,", ").concat(f-t/2,` L `).concat(b?s:d,", ").concat(b?u:f+t/2,` L `).concat(d,", ").concat(f+t/2,` L `).concat(d,", ").concat(p-n,` @@ -247,27 +247,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho A `).concat(v," ").concat(h-l*n,", ").concat(g,` L `).concat(d+l*n,", ").concat(g,` A `).concat(v," ").concat(d,", ").concat(g+n,` - z`)},Dwe=function(e){var t=e.orientation||"top";return t==="left"||t==="right"?jwe(e):Lwe(e)},Nwe=function(e){var t=le(e.id,e),n=_t(e.style,e);return Ko(Ko({},e),{},{id:t,style:n})},Fwe={pathComponent:M.createElement(Hl,null),role:"presentation",shapeRendering:"auto"},zwe=function(e){var t=Nwe(Ko(Ko({},Fwe),e)),n=Ya(t);kh(t.height,"Flyout props[height] is undefined"),kh(t.width,"Flyout props[width] is undefined"),kh(t.x,"Flyout props[x] is undefined"),kh(t.y,"Flyout props[y] is undefined");var r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return M.cloneElement(t.pathComponent,Ko(Ko(Ko({},t.events),n),{},{style:t.style,d:Dwe(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};function Bwe(e){return Vwe(e)||Wwe(e)||Hwe(e)||Uwe()}function Uwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hwe(e,t){if(e){if(typeof e=="string")return w5(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 w5(e,t)}}function Wwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vwe(e){if(Array.isArray(e))return w5(e)}function w5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 ng(e){return ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ng(e)}var eSe={cornerRadius:5,pointerLength:10,pointerWidth:10},Xl=function(e){Xwe(n,e);var t=Ywe(n);function n(r){var a;return Gwe(this,n),a=t.call(this,r),a.id=void 0,a.id=r.id===void 0?y0("tooltip-"):r.id,a}return Kwe(n,[{key:"getDefaultOrientation",value:function(a){var i=a.datum,o=a.horizontal,l=a.polar;if(!l){var s=o?"right":"top",u=o?"left":"bottom";return i&&i.y<0?u:s}return this.getPolarOrientation(a)}},{key:"getPolarOrientation",value:function(a){var i=Kf(a,a.datum),o=a.labelPlacement||"vertical";return o==="vertical"?this.getVerticalOrientations(i):o==="parallel"?i<90||i>270?"right":"left":i>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(a){return a<45||a>315?"right":a>=45&&a<=135?"top":a>135&&a<225?"left":"bottom"}},{key:"getStyles",value:function(a){var i=a.theme||Di.grayscale,o=i&&i.tooltip&&i.tooltip.style?i.tooltip.style:{},l=Array.isArray(a.style)?a.style.map(function(d){return me({},d,o)}):me({},a.style,o),s=i&&i.tooltip&&i.tooltip.flyoutStyle?i.tooltip.flyoutStyle:{},u=a.flyoutStyle?me({},a.flyoutStyle,s):s,c=Array.isArray(l)?l.map(function(d){return _t(d,a)}):_t(l,a),f=_t(u,Object.assign({},a,{style:c}));return{style:c,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(a){var i=a.cornerRadius,o=a.centerOffset,l=a.dx,s=a.dy,u=le(a.active,a),c=le(a.text,Object.assign({},a,{active:u}));c==null&&(c=""),typeof c=="number"&&(c=c.toString());var f=this.getStyles(Object.assign({},a,{active:u,text:c})),d=f.style,h=f.flyoutStyle,p=le(a.orientation,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h}))||this.getDefaultOrientation(a),g=le(a.flyoutPadding,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p}))||this.getLabelPadding(d),b=Wt({padding:g}),m=le(a.pointerWidth,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),v=le(a.pointerLength,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),_=Ml(c,d),x=this.getDimensions(Object.assign({},a,{style:d,flyoutStyle:h,active:u,text:c,orientation:p,flyoutPadding:b,pointerWidth:m,pointerLength:v}),_),O=x.flyoutHeight,S=x.flyoutWidth,w=Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p,flyoutHeight:O,flyoutWidth:S,flyoutPadding:b,pointerWidth:m,pointerLength:v}),C=Zt(o)&&(o==null?void 0:o.x)!==void 0?le(o.x,w):0,A=Zt(o)&&(o==null?void 0:o.y)!==void 0?le(o.y,w):0;return vk(vk({},w),{},{centerOffset:{x:C,y:A},dx:l!==void 0?le(l,w):0,dy:s!==void 0?le(s,w):0,cornerRadius:le(i,w)})}},{key:"getCalculatedValues",value:function(a){var i=a.style,o=a.text,l=a.flyoutStyle,s=a.flyoutHeight,u=a.flyoutWidth,c=Ml(o,i),f={height:s,width:u},d=this.getFlyoutCenter(a,f),h=this.getTransform(a);return{style:i,flyoutStyle:l,labelSize:c,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(a){var i=a.x,o=a.y,l=a.style,s=l||{},u=s.angle||a.angle||this.getDefaultAngle(a);return u?"rotate(".concat(u," ").concat(i," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(a){var i=a.polar,o=a.labelPlacement,l=a.orientation,s=a.datum;if(!i||!o||o==="vertical")return 0;var u=Kf(a,s),c=u>90&&u<180||u>270?1:-1,f=o==="perpendicular"?0:90,d=0;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(a,i,o){var l=a.x,s=a.y,u=o.width,c=o.height,f={x:[0,i.width],y:[0,i.height]},d={x:[l-u/2,l+u/2],y:[s-c/2,s+c/2]},h={x:[d.x[0]f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]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(a,i){var o=a.x,l=a.y,s=a.dx,u=a.dy,c=a.pointerLength,f=a.orientation,d=a.constrainToVisibleArea,h=a.centerOffset,p=i.height,g=i.width,b=f==="left"?-1:1,m=f==="bottom"?-1:1,v={x:f==="left"||f==="right"?o+b*(c+g/2+b*s):o+s,y:f==="top"||f==="bottom"?l-m*(c+p/2-m*u):l+u},_={x:Zt(a.center)&&a.center.x!==void 0?a.center.x:v.x,y:Zt(a.center)&&a.center.y!==void 0?a.center.y:v.y},x={x:_.x+h.x,y:_.y+h.y};return d?this.constrainTooltip(x,a,i):x}},{key:"getLabelPadding",value:function(a){if(!a)return 0;var i=Array.isArray(a)?a.map(function(o){return o.padding}):[a.padding];return Math.max.apply(Math,Bwe(i).concat([0]))}},{key:"getDimensions",value:function(a,i){var o=a.orientation,l=a.pointerLength,s=a.pointerWidth,u=a.flyoutHeight,c=a.flyoutWidth,f=a.flyoutPadding,d=le(a.cornerRadius,a),h=function(){var g=i.height+f.top+f.bottom,b=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(b,g)},p=function(){var g=i.width+f.left+f.right,b=o==="left"||o==="right"?2*d+l:2*d;return Math.max(b,g)};return{flyoutHeight:u?le(u,a):h(),flyoutWidth:c?le(c,a):p()}}},{key:"getLabelProps",value:function(a,i){var o=i.flyoutCenter,l=i.style,s=i.labelSize,u=i.dy,c=u===void 0?0:u,f=i.dx,d=f===void 0?0:f,h=a.text,p=a.datum,g=a.activePoints,b=a.labelComponent,m=a.index,v=a.flyoutPadding,_=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",x=function(){if(!_||_==="middle")return o.x;var O=_==="end"?-1:1;return o.x-O*(s.width/2)};return me({},b.props,{key:"".concat(this.id,"-label-").concat(m),text:h,datum:p,activePoints:g,textAnchor:_,dy:c,dx:d,style:l,x:x()+(v.left-v.right)/2,y:o.y+(v.top-v.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(a,i,o){var l={bottom:i.y+o.height/2,top:i.y-o.height/2,left:i.x-o.width/2,right:i.x+o.width/2},s=[{side:"top",val:l.top>a.y?l.top-a.y:-1},{side:"bottom",val:l.bottoma.x?l.left-a.x:-1}];return m0(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(a,i){var o=i.flyoutDimensions,l=i.flyoutStyle,s=i.flyoutCenter,u=a.x,c=a.y,f=a.dx,d=a.dy,h=a.datum,p=a.activePoints,g=a.index,b=a.pointerLength,m=a.pointerWidth,v=a.cornerRadius,_=a.events,x=a.flyoutComponent,O=le(a.pointerOrientation,a);return me({},x.props,{x:u,y:c,dx:f,dy:d,datum:h,activePoints:p,index:g,pointerLength:b,pointerWidth:m,cornerRadius:v,events:_,orientation:O||this.getPointerOrientation({x:u,y:c},s,o),key:"".concat(this.id,"-tooltip-").concat(g),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(a){var i=le(a.active,a),o=a.renderInPortal;if(!i)return o?M.createElement(ko,null):null;var l=this.getEvaluatedProps(a),s=l.flyoutComponent,u=l.labelComponent,c=l.groupComponent,f=this.getCalculatedValues(l),d=[M.cloneElement(s,this.getFlyoutProps(l,f)),M.cloneElement(u,this.getLabelProps(l,f))],h=M.cloneElement(c,{role:"presentation",transform:f.transform},d);return o?M.createElement(ko,null,h):h}},{key:"render",value:function(){var a=on(this.props,eSe,"tooltip");return this.renderTooltip(a)}}]),n}(M.Component);Xl.displayName="VictoryTooltip";Xl.role="tooltip";Xl.defaultProps={active:!1,renderInPortal:!0,labelComponent:M.createElement(Dn,null),flyoutComponent:M.createElement(zwe,null),groupComponent:M.createElement("g",null)};Xl.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}}}]};const V0=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=y.createElement(Wr,null),labelTextAnchor:r,themeColor:a,theme:i=Xr(a)}=e,o=Q(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const l=y.cloneElement(n,Object.assign({textAnchor:r,theme:i},n.props));return y.createElement(Xl,Object.assign({constrainToVisibleArea:t,labelComponent:l,theme:i},o))};V0.displayName="ChartTooltip";Vr(V0,Xl);var tSe=ga,nSe=function(){return tSe.Date.now()},rSe=nSe,aSe=vr,hy=rSe,bk=N$,iSe="Expected a function",oSe=Math.max,lSe=Math.min;function sSe(e,t,n){var r,a,i,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(iSe);t=bk(t)||0,aSe(n)&&(c=!!n.leading,f="maxWait"in n,i=f?oSe(bk(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var w=r,C=a;return r=a=void 0,u=S,o=e.apply(C,w),o}function p(S){return u=S,l=setTimeout(m,t),c?h(S):o}function g(S){var w=S-s,C=S-u,A=t-w;return f?lSe(A,i-C):A}function b(S){var w=S-s,C=S-u;return s===void 0||w>=t||w<0||f&&C>=i}function m(){var S=hy();if(b(S))return v(S);l=setTimeout(m,g(S))}function v(S){return l=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function x(){return l===void 0?o:v(hy())}function O(){var S=hy(),w=b(S);if(r=arguments,a=this,s=S,w){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(m,t),h(s)}return l===void 0&&(l=setTimeout(m,t)),o}return O.cancel=_,O.flush=x,O}var uSe=sSe,cSe=uSe,fSe=vr,dSe="Expected a function";function hSe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(dSe);return fSe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),cSe(e,t,{leading:r,maxWait:t,trailing:a})}var pSe=hSe;const mSe=at(pSe);var gSe=function(e){return e==null||Xe(e)?e:"".concat(e)},vSe=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},ySe=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},bSe=function(e,t){var n=e.width,r=e.height,a=Zt(e.origin)?e.origin:{};return{x:a.x!==void 0?a.x:(t.left-t.right+n)/2,y:a.y!==void 0?a.y:(t.top-t.bottom+r)/2}},_Se=function(e,t){var n=Xe(e.padAngle)?0:e.padAngle,r=LR().sort(null).startAngle(vt(e.startAngle)).endAngle(vt(e.endAngle)).padAngle(vt(n)).value(function(a){return a._y});return r(t)},xSe=function(e){var t=e.colorScale,n=dx(e,"pie"),r=b0(e.style,n),a=Array.isArray(t)?t:bx(t),i=Wt(e),o=ySe(e,i),l=bSe(e,i),s=tr(e),u=_Se(e,s);return Object.assign({},e,{style:r,colors:a,padding:i,defaultRadius:o,data:s,slices:u,origin:l})},wSe=function(e,t){var n=t.style,r=t.colors,a=vSe(n,r,e);return Object.assign({fill:a},n.data)},SSe=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Xe(e.labels)?e.labels:t.xName||t._x,gSe(r)},OSe=function(e){return I0().outerRadius(e).innerRadius(e)},CSe=function(e,t,n){var r=n&&n.padding||0;return t||e+r},ESe=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},a=Object.assign({},t,r);return e.centroid(a)},kSe=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"},PSe=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},TSe=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},ASe=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=bi((e.startAngle+e.endAngle)/2):r=bi(t==="startAngle"?e.startAngle:e.endAngle);var a=r<0?360-r:r;return a%360},MSe=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},ISe=function(e,t,n){var r=t.index,a=t.datum,i=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,p=le(n.labelRadius,Object.assign({text:e},t)),g=le(n.labelPosition,Object.assign({text:e},t))||"centroid",b=le(n.labelPlacement,Object.assign({text:e},t))||"vertical",m=Object.assign({padding:0},u.labels),v=_t(m,Object.assign({labelRadius:p,text:e},t)),_=CSe(c,p,v),x=OSe(_),O=ESe(x,o,g),S=ASe(o,g,m),w=MSe(S,b),C=kSe(S,b),A=m.textAnchor||PSe(C),I=m.verticalAnchor||TSe(C),P={width:d,height:h,index:r,datum:a,data:i,slice:o,orientation:C,text:e,style:m,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:A,verticalAnchor:I,angle:w,calculatedLabelRadius:_};if(!fx(l))return P;var T=s&&s.tooltip||{};return me({},P,Uu(T,["style"]))},RSe=function(e){return Math.cos(e-vt(90))},$Se=function(e){return Math.sin(e-vt(90))},_k=function(e,t){return e*RSe(t)},xk=function(e,t){return e*$Se(t)},wk=function(e){return e.reduce(function(t,n){return t+n},0)/e.length},LSe=function(e,t,n){var r=e.innerRadius,a=e.radius,i=e.slice,o=i.startAngle,l=i.endAngle,s=e.labelIndicatorInnerOffset,u=e.labelIndicatorOuterOffset,c=e.index,f=t.height,d=t.width,h=n.calculatedLabelRadius,p=wk([r,a]),g=wk([l,o]),b=d/2,m=f/2,v=p+s,_=h-u,x=b+_k(v,g),O=m+xk(v,g),S=b+_k(_,g),w=m+xk(_,g),C={x1:x,y1:O,x2:S,y2:w,index:c};return me({},C)},jSe=function(e,t){var n=on(e,t,"pie"),r=xSe(n),a=r.slices,i=r.style,o=r.data,l=r.origin,s=r.defaultRadius,u=r.labels,c=r.events,f=r.sharedEvents,d=r.height,h=r.width,p=r.standalone,g=r.name,b=r.innerRadius,m=r.cornerRadius,v=r.padAngle,_=r.disableInlineStyles,x=r.labelIndicator,O=n.radius||s,S={parent:{standalone:p,height:d,width:h,slices:a,name:g,style:i.parent}};return a.reduce(function(w,C,A){var I=me({},o[A],{startAngle:bi(C.startAngle),endAngle:bi(C.endAngle),padAngle:bi(C.padAngle)}),P=Wa(I.eventKey)?A:I.eventKey,T={index:A,slice:C,datum:I,data:o,origin:l,innerRadius:b,radius:O,cornerRadius:m,padAngle:v,style:_?{}:wSe(A,r),disableInlineStyles:_};w[P]={data:T};var E=SSe(n,I,A);if(E!=null||u&&(c||f)){var L=le(E,T);if(w[P].labels=ISe(L,Object.assign({},n,T),r),x){var N=w[P].labels;N.calculatedLabelRadius>O&&(w[P].labelIndicators=LSe(Object.assign({},n,T),r,N))}}return w},S)};function Sk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zh(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 rg(e){return rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rg(e)}var eL={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",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},ZSe=function(e){return!Wa(e._x)&&!Wa(e._y)},zi=function(e){KSe(n,e);var t=XSe(n);function n(){return qSe(this,n),t.apply(this,arguments)}return GSe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderComponents",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ZSe,l=a.dataComponent,s=a.labelComponent,u=a.groupComponent,c=a.labelIndicator,f=a.labelPosition;if(!u)throw new Error("VictoryPie expects a groupComponent prop");var d=c&&f==="centroid",h=[];if(l){var p=this.dataKeys.reduce(function(v,_,x){var O=i.getComponentProps(l,"data",x);return o(O.datum)&&v.push(M.cloneElement(l,O)),v},[]);h.push.apply(h,py(p))}if(s){var g=this.dataKeys.map(function(v,_){var x=i.getComponentProps(s,"labels",_);if(x.text!==void 0&&x.text!==null)return M.cloneElement(s,x)}).filter(function(v){return v!==void 0});h.push.apply(h,py(g))}if(d&&c){var b=M.createElement(yl,null);typeof c=="object"&&(b=c);var m=this.dataKeys.map(function(v,_){var x=i.getComponentProps(b,"labelIndicators",_);return M.cloneElement(b,x)});h.push.apply(h,py(m))}return this.renderContainer(u,h)}},{key:"render",value:function(){var a=Zf.animationWhitelist,i=Zf.role,o=on(this.props,eL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderComponents(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);zi.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];zi.displayName="VictoryPie";zi.role="pie";zi.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}}}};zi.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:M.createElement(BSe,null),labelComponent:M.createElement(Dn,null),containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",null),sortOrder:"ascending",theme:Di.grayscale};zi.getBaseProps=function(e){return jSe(e,eL)};zi.getData=tr;zi.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Zf=Hu(zi);const gw=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:a,constrainToVisibleArea:i=!1,containerComponent:o=y.createElement(Qa,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:u=y.createElement(Vd,null),legendData:c,legendPosition:f=gn.legend.position,legendDirection:d="ltr",name:h,patternScale:p,patternUnshiftIndex:g,padding:b,radius:m,standalone:v=!0,style:_,themeColor:x,theme:O=Xr(x),labelComponent:S=t?y.createElement(V0,{constrainToVisibleArea:i,theme:O}):void 0,legendOrientation:w=O.legend.orientation,height:C=O.pie.height,width:A=O.pie.width}=e,I=Q(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);const P={bottom:ur("bottom",b,O.pie.padding),left:ur("left",b,O.pie.padding),right:ur("right",b,O.pie.padding),top:ur("top",b,O.pie.padding)},{defaultColorScale:T,defaultPatternScale:E,isPatternDefs:L,patternId:N}=hw({colorScale:a,hasPatterns:l,patternScale:p,themeColorScale:O.pie.colorScale}),W=m||(()=>{const ae=Ha({height:C,width:A,padding:P});return ae>-1?ae:void 0})(),$=()=>{if(!E)return _;const ae=_?Object.assign({},_):{};return ae.data=Object.assign({fill:({slice:ue})=>{const ve=E[ue.index%E.length];return ve||T[ue.index%T.length]}},ae.data),ae},F=y.createElement(Zf,Object.assign({colorScale:a,height:C,key:"pf-chart-pie",labelComponent:S,name:h,padding:b,radius:W,standalone:!1,style:$(),theme:O,width:A},I));let k=0;d==="rtl"&&(k=K$(c,O));const X=y.cloneElement(u,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a,data:c},h&&{name:`${h}-${u.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:w,theme:O}),d==="rtl"&&{dataComponent:u.props.dataComponent?y.cloneElement(u.props.dataComponent,{transform:`translate(${k})`}):y.createElement(H0,{transform:`translate(${k})`})}),d==="rtl"&&{labelComponent:u.props.labelComponent?y.cloneElement(u.props.labelComponent,{direction:"rtl",dx:k-30}):y.createElement(Wr,{direction:"rtl",dx:k-30})}),u.props)),te=()=>X.props.data?X$(Object.assign({allowWrap:s===!0||typeof s=="function",chartType:"pie",height:C,legendComponent:X,padding:P,position:f,theme:O,width:A},E&&{patternScale:E})):null,R=v?y.cloneElement(o,Object.assign({desc:n,height:C,title:r,width:A,theme:O},o.props),[F,te(),L&&Qm({patternId:N,colorScale:T,patternUnshiftIndex:g})]):null,J=te();return y.useEffect(()=>{if(J!=null&&J.props&&typeof s=="function"){const ae=Y$({legendData:J.props.data,legendOrientation:J.props.orientation,legendProps:J.props,theme:O});s(ae)}},[J,s,O,A]),v?y.createElement(y.Fragment,null,R):y.createElement(y.Fragment,null,F,J,L&&Qm({patternId:N,colorScale:T,patternUnshiftIndex:g}))};gw.displayName="ChartPie";Vr(gw,Zf);const nf=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:a=1.1,containerComponent:i=y.createElement(Qa,null),innerRadius:o,legendPosition:l=gn.legend.position,legendDirection:s="ltr",name:u,padAngle:c,padding:f,radius:d,standalone:h=!0,subTitle:p,subTitleComponent:g,subTitlePosition:b=bc.label.subTitlePosition,themeColor:m,title:v,titleComponent:_=y.createElement(Wr,null),theme:x=Yxe(m),height:O=x.pie.height,width:S=x.pie.width}=e,w=Q(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);const C={bottom:ur("bottom",f,x.pie.padding),left:ur("left",f,x.pie.padding),right:ur("right",f,x.pie.padding),top:ur("top",f,x.pie.padding)},A=d||Ha({height:O,width:S,padding:C}),I=o||A-9,P=p&&b==="center",T=()=>!g&&P?N({styles:[bc.label.title,bc.label.subTitle],titles:[v,p]}):y.createElement(y.Fragment,{key:"pf-chart-donut-titles"},N({titles:v,dy:P?-8:0}),L({textComponent:g,dy:P?15:0})),E=({datum:$})=>$._y>0?x.pie.padAngle:0,L=({dy:$=0,textComponent:F=y.createElement(Wr,null)})=>{if(!p)return null;const k=F.props?F.props:{};return y.cloneElement(F,Object.assign(Object.assign(Object.assign({},u&&{id:`${u}-${F.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:bc.label.subTitle,text:p,textAnchor:b==="right"?"start":"middle",verticalAnchor:"middle",x:ak({height:O,labelPosition:b,legendPosition:l,padding:C,width:S}),y:ik({dy:$,height:O,labelPosition:b,padding:C,width:S})}),k))},N=({dy:$=0,styles:F=bc.label.title,titles:k=v})=>{if(!k)return null;const X=_?_.props:{};return y.cloneElement(_,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(k)&&{capHeight:a}),u&&{id:`${u}-${_.type.displayName}-title`}),{key:"pf-chart-donut-title",style:F,text:k,textAnchor:"middle",verticalAnchor:"middle",x:ak({height:O,labelPosition:"center",legendPosition:l,padding:C,width:S}),y:ik({dy:$,height:O,labelPosition:"center",padding:C,width:S})}),X))},U=y.createElement(gw,Object.assign({allowTooltip:t,height:O,innerRadius:I>0?I:0,key:"pf-chart-donut-pie",legendPosition:l,legendDirection:s,name:u,padAngle:c!==void 0?c:E,padding:f,radius:A>0?A:0,standalone:!1,theme:x,width:S},w)),W=y.cloneElement(i,Object.assign({desc:n,height:O,title:r,width:S,theme:x},i.props),[U,T()]);return h?y.createElement(y.Fragment,null,W):y.createElement(y.Fragment,null,U,T())};nf.displayName="ChartDonut";Vr(nf,Zf);function Lc(e){return nOe(e)||tOe(e)||tL(e)||eOe()}function eOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nOe(e){if(Array.isArray(e))return E5(e)}function rOe(e,t){return oOe(e)||iOe(e,t)||tL(e,t)||aOe()}function aOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tL(e,t){if(e){if(typeof e=="string")return E5(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 E5(e,t)}}function E5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=e.data||e.y?tr(e):t,a=n||0;return r.map(function(i){var o=i._x instanceof Date?new Date(i._x.getTime()+a):i._x+a;return Object.assign({},i,{_x1:o})})}function aL(e,t,n){var r=on(e,nL,"stack"),a=t||M.Children.toArray(r.children),i=n||rL(r,a),o=i.datasets,l=r.labelComponent,s=r.polar,u=mOe(r,i),c=r.name||"group";return a.map(function(f,d){var h=f.type&&f.type.role,p=s?dOe(r,i,d,h):fOe(r,i,d,h),g=h==="voronoi"||h==="tooltip"||h==="label"?f.props.style:Lge(f,d,i),b=r.labels?pOe(r,o,d):f.props.labels,m=f.props.name||"".concat(c,"-").concat(h,"-").concat(d);return M.cloneElement(f,Object.assign({labels:b,style:g,key:"".concat(m,"-key-").concat(d),name:m,data:vOe(r,o[d],p),colorScale:gOe(r,f),labelComponent:l||f.props.labelComponent,xOffset:p},u))})}function kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pk(e){for(var t=1;t{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,containerComponent:i=y.createElement(Qa,null),hasPatterns:o,patternScale:l,themeColor:s,theme:u=Xr(s)}=e,c=Q(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","theme"]);const f=y.cloneElement(i,Object.assign(Object.assign({desc:t,title:n,theme:u},i.props),{className:B0({className:i.props.className})})),{defaultColorScale:d,defaultPatternScale:h,isPatternDefs:p,patternId:g}=hw({colorScale:a,hasPatterns:o,patternScale:l,themeColorScale:u.group.colorScale});return y.createElement(Ws,Object.assign({colorScale:a,containerComponent:f,theme:u},c),Gxe({children:r,patternScale:h}),p&&Qm({patternId:g,colorScale:d}))};ag.displayName="ChartGroup";Vr(ag,Ws);var SOe=function(e){var t=tr(e);t.length<2&&(t=[]);var n={x:ln(e,"x"),y:ln(e,"y")},r={x:Fm(e,"x"),y:Fm(e,"y")},a={x:Va(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Va(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},i=e.polar?e.origin||Nd(e):void 0,o=dx(e,"line"),l=b0(e.style,o);return{domain:r,data:t,scale:a,style:l,origin:i}},OOe=function(e,t){var n=on(e,t,"line"),r=Object.assign({},n,SOe(n)),a=r.data,i=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,p=r.scale,g=r.sharedEvents,b=r.standalone,m=r.style,v=r.theme,_=r.width,x=r.labels,O=r.name,S=r.disableInlineStyles,w={parent:{style:m.parent,scale:p,data:a,height:s,width:_,name:O,domain:i,standalone:b,polar:h,origin:f,padding:d,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:p,data:a,interpolation:c,groupComponent:l,style:S?{}:m.data,theme:v,disableInlineStyles:S}}};return a.reduce(function(C,A,I){var P=gx(r,A,I);if(P!=null||x&&(o||g)){var T=Wa(A.eventKey)?I:A.eventKey;C[T]={labels:hI(r,I)}}return C},w)};function Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t"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 ig(e){return ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ig(e)}var iL={width:450,height:300,padding:50,interpolation:"linear"},jOe={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Yr=function(e){MOe(n,e);var t=IOe(n);function n(r){return TOe(this,n),t.call(this,r)}return AOe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=n.animationWhitelist,i=n.role,o=on(this.props,iL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Yr.animationWhitelist=["data","domain","height","padding","samples","style","width"];Yr.displayName="VictoryLine";Yr.role="line";Yr.defaultTransitions=Dpe();Yr.defaultPolarTransitions=Npe();Yr.continuous=!0;Yr.defaultProps={containerComponent:M.createElement(En,null),dataComponent:M.createElement(POe,null),labelComponent:M.createElement(Dn,{renderInPortal:!0}),groupComponent:M.createElement(w0,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Yr.getDomain=Fm;Yr.getData=tr;Yr.getBaseProps=function(e){return OOe(e,iL)};Yr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var oL=Hu(Yr,jOe);const rf=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(oL,Object.assign({containerComponent:i,theme:r},a))};rf.displayName="ChartLine";Vr(rf,oL);var DOe=jo,NOe=ji,FOe="[object RegExp]";function zOe(e){return NOe(e)&&DOe(e)==FOe}var BOe=zOe,UOe=BOe,HOe=Zg,Mk=Ad,Ik=Mk&&Mk.isRegExp,WOe=Ik?HOe(Ik):UOe,VOe=WOe;const qOe=at(VOe);var lL={},sL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),a=function(m){var v=m.length>>1;if(v>0&&typeof m[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=m;var _=Math.max(2*v-5,0);this._triangles=new Uint32Array(_*3),this._halfedges=new Int32Array(_*3),this._hashSize=Math.ceil(Math.sqrt(v)),this._hullPrev=new Uint32Array(v),this._hullNext=new Uint32Array(v),this._hullTri=new Uint32Array(v),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(v),this._dists=new Float64Array(v),this.update()};a.from=function(m,v,_){v===void 0&&(v=p),_===void 0&&(_=g);for(var x=m.length,O=new Float64Array(x*2),S=0;S>1,C=1/0,A=1/0,I=-1/0,P=-1/0,T=0;TI&&(I=E),L>P&&(P=L),this._ids[T]=T}for(var N=(C+I)/2,U=(A+P)/2,W=1/0,$,F,k,X=0;X0&&(F=ae,W=ue)}for(var ve=v[2*F],ke=v[2*F+1],q=1/0,Z=0;ZGe&&(Ae[Ce++]=_e,Ge=this._dists[_e])}this.hull=Ae.subarray(0,Ce),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(R,J,ve,ke,K,Te)){var re=F,oe=ve,xe=ke;F=k,ve=K,ke=Te,k=re,K=oe,Te=xe}var De=f(R,J,ve,ke,K,Te);this._cx=De.x,this._cy=De.y;for(var Je=0;Je0&&Math.abs(He-he)<=n&&Math.abs(ge-se)<=n)&&(he=He,se=ge,!(pe===$||pe===F||pe===k))){for(var Pe=0,Ke=0,Bt=this._hashKey(He,ge);Ke0?3-v:1+v)/4}function o(b,m,v,_){var x=b-v,O=m-_;return x*x+O*O}function l(b,m,v,_,x,O){var S=(_-m)*(x-b),w=(v-b)*(O-m);return Math.abs(S-w)>=33306690738754716e-32*Math.abs(S+w)?S-w:0}function s(b,m,v,_,x,O){var S=l(x,O,b,m,v,_)||l(b,m,v,_,x,O)||l(v,_,x,O,b,m);return S<0}function u(b,m,v,_,x,O,S,w){var C=b-S,A=m-w,I=v-S,P=_-w,T=x-S,E=O-w,L=C*C+A*A,N=I*I+P*P,U=T*T+E*E;return C*(P*U-N*E)-A*(I*U-N*T)+L*(I*E-P*T)<0}function c(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=(A*I-w*P)*T,L=(S*P-C*I)*T;return E*E+L*L}function f(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=b+(A*I-w*P)*T,L=m+(S*P-C*I)*T;return{x:E,y:L}}function d(b,m,v,_){if(_-v<=20)for(var x=v+1;x<=_;x++){for(var O=b[x],S=m[O],w=x-1;w>=v&&m[b[w]]>S;)b[w+1]=b[w--];b[w+1]=O}else{var C=v+_>>1,A=v+1,I=_;h(b,C,A),m[b[v]]>m[b[_]]&&h(b,v,_),m[b[A]]>m[b[_]]&&h(b,A,_),m[b[v]]>m[b[A]]&&h(b,v,A);for(var P=b[A],T=m[P];;){do A++;while(m[b[A]]T);if(I=I-v?(d(b,m,A,_),d(b,m,v,I-1)):(d(b,m,v,I-1),d(b,m,A,_))}}function h(b,m,v){var _=b[m];b[m]=b[v],b[v]=_}function p(b){return b[0]}function g(b){return b[1]}return a})})(sL);var GOe=sL.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(GOe);function n(u){return u&&u.__esModule?u:{default:u}}function r(u){return u[0]}function a(u){return u[1]}function i(u){for(var c=u.triangles,f=u.coords,d=0;d1e-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,p=new Float64Array(h*2),g=0;g2&&i(h)){this.collinear=Int32Array.from({length:p.length/2},function(U,W){return W}).sort(function(U,W){return p[2*U]-p[2*W]||p[2*U+1]-p[2*W+1]});for(var g=this.collinear[0],b=this.collinear[this.collinear.length-1],m=[p[2*g],p[2*g+1],p[2*b],p[2*b+1]],v=1e-8*Math.sqrt(Math.pow(m[3]-m[1],2)+Math.pow(m[2]-m[0],2)),_=0,x=p.length/2;_0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=w[0],this.triangles[1]=w[1],this.triangles[2]=w[1],A[w[0]]=1,w.length===2&&(A[w[1]]=0))},c.neighbors=function(d){var h=[],p=this.inedges,g=this.hull,b=this._hullIndex,m=this.halfedges,v=this.triangles,_=p[d];if(_===-1)return h;var x=_,O=-1;do{if(O=v[x],h.push(O),x=x%3===2?x-2:x+1,v[x]!==d)break;if(x=m[x],x===-1){var S=g[(b[d]+1)%g.length];S!==O&&h.push(S);break}}while(x!==_);return h},c.find=function(d,h,p){if(p===void 0&&(p=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var g=p,b;(b=this._step(p,d,h))>=0&&b!==p&&b!==g;)p=b;return b},c._step=function(d,h,p){var g=this.inedges,b=this.points;if(g[d]===-1||!b.length)return(d+1)%(b.length>>1);for(var m=d,v=Math.pow(h-b[d*2],2)+Math.pow(p-b[d*2+1],2),O=this.neighbors(d),_=Array.isArray(O),x=0,O=_?O:O[Symbol.iterator]();;){var S;if(_){if(x>=O.length)break;S=O[x++]}else{if(x=O.next(),x.done)break;S=x.value}var w=S,C=Math.pow(h-b[w*2],2)+Math.pow(p-b[w*2+1],2);Ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u.left&&c<=a-u.right&&f>=u.top&&f<=i-u.bottom}},{key:"getDatasets",value:function(n){var r={x:pr(n.domain.x),y:pr(n.domain.y)},a=M.Children.toArray(n.children),i=function(s,u,c){var f=c&&c.type&&c.type.continuous,d=c?c.props&&c.props.style:n.style;return s.map(function(h,p){var g=cx(h),b=g.x,m=g.y,v=g.y0,_=g.x0,x=(Number(b)+Number(_))/2,O=(Number(m)+Number(v))/2;return Object.assign({_voronoiX:n.voronoiDimension==="y"?r.x:x,_voronoiY:n.voronoiDimension==="x"?r.y:O,eventKey:p,childName:u,continuous:f,style:d},h)})};if(n.data)return i(n.data);var o=function(s){var u=tr(s);return Array.isArray(u)&&u.length>0?u:void 0},l=function(s,u){var c=s.props||{},f=c.name||u,d=n.voronoiBlacklist||[],h=d.filter(function(v){return!!v&&typeof v.valueOf()=="string"}),p=d.filter(qOe),g=p.some(function(v){return v.test(f)});if(!Gx(s)||h.includes(f)||g)return null;var b=s.type&&Xe(s.type.getData)?s.type.getData:o,m=b(s.props);return m?i(m,f,s):null};return Ul(a,l,n)}},{key:"findPoints",value:function(n,r){return n.filter(function(a){return r._voronoiX===a._voronoiX&&r._voronoiY===a._voronoiY})}},{key:"withinRadius",value:function(n,r,a){if(!n)return!1;if(!a)return!0;var i=r.x,o=r.y,l=Math.pow(i-n[0],2)+Math.pow(o-n[1],2);return le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function $k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t"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 og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}function bCe(e){var t;return t=function(n){pCe(a,n);var r=mCe(a);function a(){return dCe(this,a),r.apply(this,arguments)}return hCe(a,[{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 Gf(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=Dd(o,d),p=c?u:void 0;if(!f||s.length<2)return Uh(Uh({},h),{},{center:me({},l.center,p)});var g=f==="y"?u.x:h.x,b=f==="x"?u.y:h.y;return p=c?u:{x:g,y:b},{x:g,y:b,center:me({},l.center,p)}}},{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:{},p=s==="flyout"?d.flyoutStyle:d.style;return l.reduce(function(g,b,m){var v=me({},d,{datum:b,active:!0}),_=Xe(u)?u(v):void 0,x=_!==void 0?"".concat(_).split(` + z`)},Nwe=function(e){var t=e.orientation||"top";return t==="left"||t==="right"?Dwe(e):jwe(e)},Fwe=function(e){var t=le(e.id,e),n=_t(e.style,e);return Ko(Ko({},e),{},{id:t,style:n})},zwe={pathComponent:M.createElement(Hl,null),role:"presentation",shapeRendering:"auto"},Bwe=function(e){var t=Fwe(Ko(Ko({},zwe),e)),n=Ya(t);kh(t.height,"Flyout props[height] is undefined"),kh(t.width,"Flyout props[width] is undefined"),kh(t.x,"Flyout props[x] is undefined"),kh(t.y,"Flyout props[y] is undefined");var r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return M.cloneElement(t.pathComponent,Ko(Ko(Ko({},t.events),n),{},{style:t.style,d:Nwe(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};function Uwe(e){return qwe(e)||Vwe(e)||Wwe(e)||Hwe()}function Hwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wwe(e,t){if(e){if(typeof e=="string")return w5(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 w5(e,t)}}function Vwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qwe(e){if(Array.isArray(e))return w5(e)}function w5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 ng(e){return ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ng(e)}var tSe={cornerRadius:5,pointerLength:10,pointerWidth:10},Xl=function(e){Ywe(n,e);var t=Qwe(n);function n(r){var a;return Kwe(this,n),a=t.call(this,r),a.id=void 0,a.id=r.id===void 0?y0("tooltip-"):r.id,a}return Xwe(n,[{key:"getDefaultOrientation",value:function(a){var i=a.datum,o=a.horizontal,l=a.polar;if(!l){var s=o?"right":"top",u=o?"left":"bottom";return i&&i.y<0?u:s}return this.getPolarOrientation(a)}},{key:"getPolarOrientation",value:function(a){var i=Kf(a,a.datum),o=a.labelPlacement||"vertical";return o==="vertical"?this.getVerticalOrientations(i):o==="parallel"?i<90||i>270?"right":"left":i>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(a){return a<45||a>315?"right":a>=45&&a<=135?"top":a>135&&a<225?"left":"bottom"}},{key:"getStyles",value:function(a){var i=a.theme||Di.grayscale,o=i&&i.tooltip&&i.tooltip.style?i.tooltip.style:{},l=Array.isArray(a.style)?a.style.map(function(d){return me({},d,o)}):me({},a.style,o),s=i&&i.tooltip&&i.tooltip.flyoutStyle?i.tooltip.flyoutStyle:{},u=a.flyoutStyle?me({},a.flyoutStyle,s):s,c=Array.isArray(l)?l.map(function(d){return _t(d,a)}):_t(l,a),f=_t(u,Object.assign({},a,{style:c}));return{style:c,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(a){var i=a.cornerRadius,o=a.centerOffset,l=a.dx,s=a.dy,u=le(a.active,a),c=le(a.text,Object.assign({},a,{active:u}));c==null&&(c=""),typeof c=="number"&&(c=c.toString());var f=this.getStyles(Object.assign({},a,{active:u,text:c})),d=f.style,h=f.flyoutStyle,p=le(a.orientation,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h}))||this.getDefaultOrientation(a),g=le(a.flyoutPadding,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p}))||this.getLabelPadding(d),b=Wt({padding:g}),m=le(a.pointerWidth,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),v=le(a.pointerLength,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),_=Ml(c,d),x=this.getDimensions(Object.assign({},a,{style:d,flyoutStyle:h,active:u,text:c,orientation:p,flyoutPadding:b,pointerWidth:m,pointerLength:v}),_),O=x.flyoutHeight,S=x.flyoutWidth,w=Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p,flyoutHeight:O,flyoutWidth:S,flyoutPadding:b,pointerWidth:m,pointerLength:v}),C=Zt(o)&&(o==null?void 0:o.x)!==void 0?le(o.x,w):0,A=Zt(o)&&(o==null?void 0:o.y)!==void 0?le(o.y,w):0;return yk(yk({},w),{},{centerOffset:{x:C,y:A},dx:l!==void 0?le(l,w):0,dy:s!==void 0?le(s,w):0,cornerRadius:le(i,w)})}},{key:"getCalculatedValues",value:function(a){var i=a.style,o=a.text,l=a.flyoutStyle,s=a.flyoutHeight,u=a.flyoutWidth,c=Ml(o,i),f={height:s,width:u},d=this.getFlyoutCenter(a,f),h=this.getTransform(a);return{style:i,flyoutStyle:l,labelSize:c,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(a){var i=a.x,o=a.y,l=a.style,s=l||{},u=s.angle||a.angle||this.getDefaultAngle(a);return u?"rotate(".concat(u," ").concat(i," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(a){var i=a.polar,o=a.labelPlacement,l=a.orientation,s=a.datum;if(!i||!o||o==="vertical")return 0;var u=Kf(a,s),c=u>90&&u<180||u>270?1:-1,f=o==="perpendicular"?0:90,d=0;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(a,i,o){var l=a.x,s=a.y,u=o.width,c=o.height,f={x:[0,i.width],y:[0,i.height]},d={x:[l-u/2,l+u/2],y:[s-c/2,s+c/2]},h={x:[d.x[0]f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]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(a,i){var o=a.x,l=a.y,s=a.dx,u=a.dy,c=a.pointerLength,f=a.orientation,d=a.constrainToVisibleArea,h=a.centerOffset,p=i.height,g=i.width,b=f==="left"?-1:1,m=f==="bottom"?-1:1,v={x:f==="left"||f==="right"?o+b*(c+g/2+b*s):o+s,y:f==="top"||f==="bottom"?l-m*(c+p/2-m*u):l+u},_={x:Zt(a.center)&&a.center.x!==void 0?a.center.x:v.x,y:Zt(a.center)&&a.center.y!==void 0?a.center.y:v.y},x={x:_.x+h.x,y:_.y+h.y};return d?this.constrainTooltip(x,a,i):x}},{key:"getLabelPadding",value:function(a){if(!a)return 0;var i=Array.isArray(a)?a.map(function(o){return o.padding}):[a.padding];return Math.max.apply(Math,Uwe(i).concat([0]))}},{key:"getDimensions",value:function(a,i){var o=a.orientation,l=a.pointerLength,s=a.pointerWidth,u=a.flyoutHeight,c=a.flyoutWidth,f=a.flyoutPadding,d=le(a.cornerRadius,a),h=function(){var g=i.height+f.top+f.bottom,b=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(b,g)},p=function(){var g=i.width+f.left+f.right,b=o==="left"||o==="right"?2*d+l:2*d;return Math.max(b,g)};return{flyoutHeight:u?le(u,a):h(),flyoutWidth:c?le(c,a):p()}}},{key:"getLabelProps",value:function(a,i){var o=i.flyoutCenter,l=i.style,s=i.labelSize,u=i.dy,c=u===void 0?0:u,f=i.dx,d=f===void 0?0:f,h=a.text,p=a.datum,g=a.activePoints,b=a.labelComponent,m=a.index,v=a.flyoutPadding,_=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",x=function(){if(!_||_==="middle")return o.x;var O=_==="end"?-1:1;return o.x-O*(s.width/2)};return me({},b.props,{key:"".concat(this.id,"-label-").concat(m),text:h,datum:p,activePoints:g,textAnchor:_,dy:c,dx:d,style:l,x:x()+(v.left-v.right)/2,y:o.y+(v.top-v.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(a,i,o){var l={bottom:i.y+o.height/2,top:i.y-o.height/2,left:i.x-o.width/2,right:i.x+o.width/2},s=[{side:"top",val:l.top>a.y?l.top-a.y:-1},{side:"bottom",val:l.bottoma.x?l.left-a.x:-1}];return m0(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(a,i){var o=i.flyoutDimensions,l=i.flyoutStyle,s=i.flyoutCenter,u=a.x,c=a.y,f=a.dx,d=a.dy,h=a.datum,p=a.activePoints,g=a.index,b=a.pointerLength,m=a.pointerWidth,v=a.cornerRadius,_=a.events,x=a.flyoutComponent,O=le(a.pointerOrientation,a);return me({},x.props,{x:u,y:c,dx:f,dy:d,datum:h,activePoints:p,index:g,pointerLength:b,pointerWidth:m,cornerRadius:v,events:_,orientation:O||this.getPointerOrientation({x:u,y:c},s,o),key:"".concat(this.id,"-tooltip-").concat(g),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(a){var i=le(a.active,a),o=a.renderInPortal;if(!i)return o?M.createElement(ko,null):null;var l=this.getEvaluatedProps(a),s=l.flyoutComponent,u=l.labelComponent,c=l.groupComponent,f=this.getCalculatedValues(l),d=[M.cloneElement(s,this.getFlyoutProps(l,f)),M.cloneElement(u,this.getLabelProps(l,f))],h=M.cloneElement(c,{role:"presentation",transform:f.transform},d);return o?M.createElement(ko,null,h):h}},{key:"render",value:function(){var a=on(this.props,tSe,"tooltip");return this.renderTooltip(a)}}]),n}(M.Component);Xl.displayName="VictoryTooltip";Xl.role="tooltip";Xl.defaultProps={active:!1,renderInPortal:!0,labelComponent:M.createElement(Dn,null),flyoutComponent:M.createElement(Bwe,null),groupComponent:M.createElement("g",null)};Xl.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}}}]};const V0=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=y.createElement(Wr,null),labelTextAnchor:r,themeColor:a,theme:i=Xr(a)}=e,o=Q(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const l=y.cloneElement(n,Object.assign({textAnchor:r,theme:i},n.props));return y.createElement(Xl,Object.assign({constrainToVisibleArea:t,labelComponent:l,theme:i},o))};V0.displayName="ChartTooltip";Vr(V0,Xl);var nSe=ga,rSe=function(){return nSe.Date.now()},aSe=rSe,iSe=yr,hy=aSe,_k=z$,oSe="Expected a function",lSe=Math.max,sSe=Math.min;function uSe(e,t,n){var r,a,i,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(oSe);t=_k(t)||0,iSe(n)&&(c=!!n.leading,f="maxWait"in n,i=f?lSe(_k(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var w=r,C=a;return r=a=void 0,u=S,o=e.apply(C,w),o}function p(S){return u=S,l=setTimeout(m,t),c?h(S):o}function g(S){var w=S-s,C=S-u,A=t-w;return f?sSe(A,i-C):A}function b(S){var w=S-s,C=S-u;return s===void 0||w>=t||w<0||f&&C>=i}function m(){var S=hy();if(b(S))return v(S);l=setTimeout(m,g(S))}function v(S){return l=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function x(){return l===void 0?o:v(hy())}function O(){var S=hy(),w=b(S);if(r=arguments,a=this,s=S,w){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(m,t),h(s)}return l===void 0&&(l=setTimeout(m,t)),o}return O.cancel=_,O.flush=x,O}var cSe=uSe,fSe=cSe,dSe=yr,hSe="Expected a function";function pSe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(hSe);return dSe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),fSe(e,t,{leading:r,maxWait:t,trailing:a})}var mSe=pSe;const gSe=at(mSe);var vSe=function(e){return e==null||Xe(e)?e:"".concat(e)},ySe=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},bSe=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},_Se=function(e,t){var n=e.width,r=e.height,a=Zt(e.origin)?e.origin:{};return{x:a.x!==void 0?a.x:(t.left-t.right+n)/2,y:a.y!==void 0?a.y:(t.top-t.bottom+r)/2}},xSe=function(e,t){var n=Xe(e.padAngle)?0:e.padAngle,r=DR().sort(null).startAngle(vt(e.startAngle)).endAngle(vt(e.endAngle)).padAngle(vt(n)).value(function(a){return a._y});return r(t)},wSe=function(e){var t=e.colorScale,n=dx(e,"pie"),r=b0(e.style,n),a=Array.isArray(t)?t:bx(t),i=Wt(e),o=bSe(e,i),l=_Se(e,i),s=tr(e),u=xSe(e,s);return Object.assign({},e,{style:r,colors:a,padding:i,defaultRadius:o,data:s,slices:u,origin:l})},SSe=function(e,t){var n=t.style,r=t.colors,a=ySe(n,r,e);return Object.assign({fill:a},n.data)},OSe=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Xe(e.labels)?e.labels:t.xName||t._x,vSe(r)},CSe=function(e){return I0().outerRadius(e).innerRadius(e)},ESe=function(e,t,n){var r=n&&n.padding||0;return t||e+r},kSe=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},a=Object.assign({},t,r);return e.centroid(a)},PSe=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"},TSe=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},ASe=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},MSe=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=bi((e.startAngle+e.endAngle)/2):r=bi(t==="startAngle"?e.startAngle:e.endAngle);var a=r<0?360-r:r;return a%360},ISe=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},RSe=function(e,t,n){var r=t.index,a=t.datum,i=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,p=le(n.labelRadius,Object.assign({text:e},t)),g=le(n.labelPosition,Object.assign({text:e},t))||"centroid",b=le(n.labelPlacement,Object.assign({text:e},t))||"vertical",m=Object.assign({padding:0},u.labels),v=_t(m,Object.assign({labelRadius:p,text:e},t)),_=ESe(c,p,v),x=CSe(_),O=kSe(x,o,g),S=MSe(o,g,m),w=ISe(S,b),C=PSe(S,b),A=m.textAnchor||TSe(C),I=m.verticalAnchor||ASe(C),P={width:d,height:h,index:r,datum:a,data:i,slice:o,orientation:C,text:e,style:m,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:A,verticalAnchor:I,angle:w,calculatedLabelRadius:_};if(!fx(l))return P;var T=s&&s.tooltip||{};return me({},P,Uu(T,["style"]))},$Se=function(e){return Math.cos(e-vt(90))},LSe=function(e){return Math.sin(e-vt(90))},xk=function(e,t){return e*$Se(t)},wk=function(e,t){return e*LSe(t)},Sk=function(e){return e.reduce(function(t,n){return t+n},0)/e.length},jSe=function(e,t,n){var r=e.innerRadius,a=e.radius,i=e.slice,o=i.startAngle,l=i.endAngle,s=e.labelIndicatorInnerOffset,u=e.labelIndicatorOuterOffset,c=e.index,f=t.height,d=t.width,h=n.calculatedLabelRadius,p=Sk([r,a]),g=Sk([l,o]),b=d/2,m=f/2,v=p+s,_=h-u,x=b+xk(v,g),O=m+wk(v,g),S=b+xk(_,g),w=m+wk(_,g),C={x1:x,y1:O,x2:S,y2:w,index:c};return me({},C)},DSe=function(e,t){var n=on(e,t,"pie"),r=wSe(n),a=r.slices,i=r.style,o=r.data,l=r.origin,s=r.defaultRadius,u=r.labels,c=r.events,f=r.sharedEvents,d=r.height,h=r.width,p=r.standalone,g=r.name,b=r.innerRadius,m=r.cornerRadius,v=r.padAngle,_=r.disableInlineStyles,x=r.labelIndicator,O=n.radius||s,S={parent:{standalone:p,height:d,width:h,slices:a,name:g,style:i.parent}};return a.reduce(function(w,C,A){var I=me({},o[A],{startAngle:bi(C.startAngle),endAngle:bi(C.endAngle),padAngle:bi(C.padAngle)}),P=Wa(I.eventKey)?A:I.eventKey,T={index:A,slice:C,datum:I,data:o,origin:l,innerRadius:b,radius:O,cornerRadius:m,padAngle:v,style:_?{}:SSe(A,r),disableInlineStyles:_};w[P]={data:T};var E=OSe(n,I,A);if(E!=null||u&&(c||f)){var L=le(E,T);if(w[P].labels=RSe(L,Object.assign({},n,T),r),x){var N=w[P].labels;N.calculatedLabelRadius>O&&(w[P].labelIndicators=jSe(Object.assign({},n,T),r,N))}}return w},S)};function Ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zh(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 rg(e){return rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rg(e)}var nL={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",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},eOe=function(e){return!Wa(e._x)&&!Wa(e._y)},zi=function(e){XSe(n,e);var t=YSe(n);function n(){return GSe(this,n),t.apply(this,arguments)}return KSe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderComponents",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eOe,l=a.dataComponent,s=a.labelComponent,u=a.groupComponent,c=a.labelIndicator,f=a.labelPosition;if(!u)throw new Error("VictoryPie expects a groupComponent prop");var d=c&&f==="centroid",h=[];if(l){var p=this.dataKeys.reduce(function(v,_,x){var O=i.getComponentProps(l,"data",x);return o(O.datum)&&v.push(M.cloneElement(l,O)),v},[]);h.push.apply(h,py(p))}if(s){var g=this.dataKeys.map(function(v,_){var x=i.getComponentProps(s,"labels",_);if(x.text!==void 0&&x.text!==null)return M.cloneElement(s,x)}).filter(function(v){return v!==void 0});h.push.apply(h,py(g))}if(d&&c){var b=M.createElement(yl,null);typeof c=="object"&&(b=c);var m=this.dataKeys.map(function(v,_){var x=i.getComponentProps(b,"labelIndicators",_);return M.cloneElement(b,x)});h.push.apply(h,py(m))}return this.renderContainer(u,h)}},{key:"render",value:function(){var a=Zf.animationWhitelist,i=Zf.role,o=on(this.props,nL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderComponents(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);zi.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];zi.displayName="VictoryPie";zi.role="pie";zi.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}}}};zi.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:M.createElement(USe,null),labelComponent:M.createElement(Dn,null),containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",null),sortOrder:"ascending",theme:Di.grayscale};zi.getBaseProps=function(e){return DSe(e,nL)};zi.getData=tr;zi.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Zf=Hu(zi);const gw=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:a,constrainToVisibleArea:i=!1,containerComponent:o=y.createElement(Qa,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:u=y.createElement(Vd,null),legendData:c,legendPosition:f=gn.legend.position,legendDirection:d="ltr",name:h,patternScale:p,patternUnshiftIndex:g,padding:b,radius:m,standalone:v=!0,style:_,themeColor:x,theme:O=Xr(x),labelComponent:S=t?y.createElement(V0,{constrainToVisibleArea:i,theme:O}):void 0,legendOrientation:w=O.legend.orientation,height:C=O.pie.height,width:A=O.pie.width}=e,I=Q(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);const P={bottom:cr("bottom",b,O.pie.padding),left:cr("left",b,O.pie.padding),right:cr("right",b,O.pie.padding),top:cr("top",b,O.pie.padding)},{defaultColorScale:T,defaultPatternScale:E,isPatternDefs:L,patternId:N}=hw({colorScale:a,hasPatterns:l,patternScale:p,themeColorScale:O.pie.colorScale}),W=m||(()=>{const ae=Ha({height:C,width:A,padding:P});return ae>-1?ae:void 0})(),$=()=>{if(!E)return _;const ae=_?Object.assign({},_):{};return ae.data=Object.assign({fill:({slice:ue})=>{const ve=E[ue.index%E.length];return ve||T[ue.index%T.length]}},ae.data),ae},F=y.createElement(Zf,Object.assign({colorScale:a,height:C,key:"pf-chart-pie",labelComponent:S,name:h,padding:b,radius:W,standalone:!1,style:$(),theme:O,width:A},I));let k=0;d==="rtl"&&(k=Y$(c,O));const X=y.cloneElement(u,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a,data:c},h&&{name:`${h}-${u.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:w,theme:O}),d==="rtl"&&{dataComponent:u.props.dataComponent?y.cloneElement(u.props.dataComponent,{transform:`translate(${k})`}):y.createElement(H0,{transform:`translate(${k})`})}),d==="rtl"&&{labelComponent:u.props.labelComponent?y.cloneElement(u.props.labelComponent,{direction:"rtl",dx:k-30}):y.createElement(Wr,{direction:"rtl",dx:k-30})}),u.props)),te=()=>X.props.data?Q$(Object.assign({allowWrap:s===!0||typeof s=="function",chartType:"pie",height:C,legendComponent:X,padding:P,position:f,theme:O,width:A},E&&{patternScale:E})):null,R=v?y.cloneElement(o,Object.assign({desc:n,height:C,title:r,width:A,theme:O},o.props),[F,te(),L&&Qm({patternId:N,colorScale:T,patternUnshiftIndex:g})]):null,J=te();return y.useEffect(()=>{if(J!=null&&J.props&&typeof s=="function"){const ae=J$({legendData:J.props.data,legendOrientation:J.props.orientation,legendProps:J.props,theme:O});s(ae)}},[J,s,O,A]),v?y.createElement(y.Fragment,null,R):y.createElement(y.Fragment,null,F,J,L&&Qm({patternId:N,colorScale:T,patternUnshiftIndex:g}))};gw.displayName="ChartPie";Vr(gw,Zf);const nf=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:a=1.1,containerComponent:i=y.createElement(Qa,null),innerRadius:o,legendPosition:l=gn.legend.position,legendDirection:s="ltr",name:u,padAngle:c,padding:f,radius:d,standalone:h=!0,subTitle:p,subTitleComponent:g,subTitlePosition:b=bc.label.subTitlePosition,themeColor:m,title:v,titleComponent:_=y.createElement(Wr,null),theme:x=Qxe(m),height:O=x.pie.height,width:S=x.pie.width}=e,w=Q(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);const C={bottom:cr("bottom",f,x.pie.padding),left:cr("left",f,x.pie.padding),right:cr("right",f,x.pie.padding),top:cr("top",f,x.pie.padding)},A=d||Ha({height:O,width:S,padding:C}),I=o||A-9,P=p&&b==="center",T=()=>!g&&P?N({styles:[bc.label.title,bc.label.subTitle],titles:[v,p]}):y.createElement(y.Fragment,{key:"pf-chart-donut-titles"},N({titles:v,dy:P?-8:0}),L({textComponent:g,dy:P?15:0})),E=({datum:$})=>$._y>0?x.pie.padAngle:0,L=({dy:$=0,textComponent:F=y.createElement(Wr,null)})=>{if(!p)return null;const k=F.props?F.props:{};return y.cloneElement(F,Object.assign(Object.assign(Object.assign({},u&&{id:`${u}-${F.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:bc.label.subTitle,text:p,textAnchor:b==="right"?"start":"middle",verticalAnchor:"middle",x:ik({height:O,labelPosition:b,legendPosition:l,padding:C,width:S}),y:ok({dy:$,height:O,labelPosition:b,padding:C,width:S})}),k))},N=({dy:$=0,styles:F=bc.label.title,titles:k=v})=>{if(!k)return null;const X=_?_.props:{};return y.cloneElement(_,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(k)&&{capHeight:a}),u&&{id:`${u}-${_.type.displayName}-title`}),{key:"pf-chart-donut-title",style:F,text:k,textAnchor:"middle",verticalAnchor:"middle",x:ik({height:O,labelPosition:"center",legendPosition:l,padding:C,width:S}),y:ok({dy:$,height:O,labelPosition:"center",padding:C,width:S})}),X))},U=y.createElement(gw,Object.assign({allowTooltip:t,height:O,innerRadius:I>0?I:0,key:"pf-chart-donut-pie",legendPosition:l,legendDirection:s,name:u,padAngle:c!==void 0?c:E,padding:f,radius:A>0?A:0,standalone:!1,theme:x,width:S},w)),W=y.cloneElement(i,Object.assign({desc:n,height:O,title:r,width:S,theme:x},i.props),[U,T()]);return h?y.createElement(y.Fragment,null,W):y.createElement(y.Fragment,null,U,T())};nf.displayName="ChartDonut";Vr(nf,Zf);function Lc(e){return rOe(e)||nOe(e)||rL(e)||tOe()}function tOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rOe(e){if(Array.isArray(e))return E5(e)}function aOe(e,t){return lOe(e)||oOe(e,t)||rL(e,t)||iOe()}function iOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rL(e,t){if(e){if(typeof e=="string")return E5(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 E5(e,t)}}function E5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=e.data||e.y?tr(e):t,a=n||0;return r.map(function(i){var o=i._x instanceof Date?new Date(i._x.getTime()+a):i._x+a;return Object.assign({},i,{_x1:o})})}function oL(e,t,n){var r=on(e,aL,"stack"),a=t||M.Children.toArray(r.children),i=n||iL(r,a),o=i.datasets,l=r.labelComponent,s=r.polar,u=gOe(r,i),c=r.name||"group";return a.map(function(f,d){var h=f.type&&f.type.role,p=s?hOe(r,i,d,h):dOe(r,i,d,h),g=h==="voronoi"||h==="tooltip"||h==="label"?f.props.style:jge(f,d,i),b=r.labels?mOe(r,o,d):f.props.labels,m=f.props.name||"".concat(c,"-").concat(h,"-").concat(d);return M.cloneElement(f,Object.assign({labels:b,style:g,key:"".concat(m,"-key-").concat(d),name:m,data:yOe(r,o[d],p),colorScale:vOe(r,f),labelComponent:l||f.props.labelComponent,xOffset:p},u))})}function Pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Tk(e){for(var t=1;t{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,containerComponent:i=y.createElement(Qa,null),hasPatterns:o,patternScale:l,themeColor:s,theme:u=Xr(s)}=e,c=Q(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","theme"]);const f=y.cloneElement(i,Object.assign(Object.assign({desc:t,title:n,theme:u},i.props),{className:B0({className:i.props.className})})),{defaultColorScale:d,defaultPatternScale:h,isPatternDefs:p,patternId:g}=hw({colorScale:a,hasPatterns:o,patternScale:l,themeColorScale:u.group.colorScale});return y.createElement(Ws,Object.assign({colorScale:a,containerComponent:f,theme:u},c),Kxe({children:r,patternScale:h}),p&&Qm({patternId:g,colorScale:d}))};ag.displayName="ChartGroup";Vr(ag,Ws);var OOe=function(e){var t=tr(e);t.length<2&&(t=[]);var n={x:ln(e,"x"),y:ln(e,"y")},r={x:Fm(e,"x"),y:Fm(e,"y")},a={x:Va(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Va(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},i=e.polar?e.origin||Nd(e):void 0,o=dx(e,"line"),l=b0(e.style,o);return{domain:r,data:t,scale:a,style:l,origin:i}},COe=function(e,t){var n=on(e,t,"line"),r=Object.assign({},n,OOe(n)),a=r.data,i=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,p=r.scale,g=r.sharedEvents,b=r.standalone,m=r.style,v=r.theme,_=r.width,x=r.labels,O=r.name,S=r.disableInlineStyles,w={parent:{style:m.parent,scale:p,data:a,height:s,width:_,name:O,domain:i,standalone:b,polar:h,origin:f,padding:d,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:p,data:a,interpolation:c,groupComponent:l,style:S?{}:m.data,theme:v,disableInlineStyles:S}}};return a.reduce(function(C,A,I){var P=gx(r,A,I);if(P!=null||x&&(o||g)){var T=Wa(A.eventKey)?I:A.eventKey;C[T]={labels:mI(r,I)}}return C},w)};function Ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t"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 ig(e){return ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ig(e)}var lL={width:450,height:300,padding:50,interpolation:"linear"},DOe={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Yr=function(e){IOe(n,e);var t=ROe(n);function n(r){return AOe(this,n),t.call(this,r)}return MOe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=n.animationWhitelist,i=n.role,o=on(this.props,lL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Yr.animationWhitelist=["data","domain","height","padding","samples","style","width"];Yr.displayName="VictoryLine";Yr.role="line";Yr.defaultTransitions=Npe();Yr.defaultPolarTransitions=Fpe();Yr.continuous=!0;Yr.defaultProps={containerComponent:M.createElement(En,null),dataComponent:M.createElement(TOe,null),labelComponent:M.createElement(Dn,{renderInPortal:!0}),groupComponent:M.createElement(w0,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Yr.getDomain=Fm;Yr.getData=tr;Yr.getBaseProps=function(e){return COe(e,lL)};Yr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var sL=Hu(Yr,DOe);const rf=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(sL,Object.assign({containerComponent:i,theme:r},a))};rf.displayName="ChartLine";Vr(rf,sL);var NOe=jo,FOe=ji,zOe="[object RegExp]";function BOe(e){return FOe(e)&&NOe(e)==zOe}var UOe=BOe,HOe=UOe,WOe=Zg,Ik=Ad,Rk=Ik&&Ik.isRegExp,VOe=Rk?WOe(Rk):HOe,qOe=VOe;const GOe=at(qOe);var uL={},cL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),a=function(m){var v=m.length>>1;if(v>0&&typeof m[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=m;var _=Math.max(2*v-5,0);this._triangles=new Uint32Array(_*3),this._halfedges=new Int32Array(_*3),this._hashSize=Math.ceil(Math.sqrt(v)),this._hullPrev=new Uint32Array(v),this._hullNext=new Uint32Array(v),this._hullTri=new Uint32Array(v),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(v),this._dists=new Float64Array(v),this.update()};a.from=function(m,v,_){v===void 0&&(v=p),_===void 0&&(_=g);for(var x=m.length,O=new Float64Array(x*2),S=0;S>1,C=1/0,A=1/0,I=-1/0,P=-1/0,T=0;TI&&(I=E),L>P&&(P=L),this._ids[T]=T}for(var N=(C+I)/2,U=(A+P)/2,W=1/0,$,F,k,X=0;X0&&(F=ae,W=ue)}for(var ve=v[2*F],ke=v[2*F+1],q=1/0,Z=0;ZGe&&(Ae[Ce++]=_e,Ge=this._dists[_e])}this.hull=Ae.subarray(0,Ce),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(R,J,ve,ke,K,Te)){var re=F,oe=ve,xe=ke;F=k,ve=K,ke=Te,k=re,K=oe,Te=xe}var De=f(R,J,ve,ke,K,Te);this._cx=De.x,this._cy=De.y;for(var Je=0;Je0&&Math.abs(He-he)<=n&&Math.abs(ge-se)<=n)&&(he=He,se=ge,!(pe===$||pe===F||pe===k))){for(var Pe=0,Ke=0,Bt=this._hashKey(He,ge);Ke0?3-v:1+v)/4}function o(b,m,v,_){var x=b-v,O=m-_;return x*x+O*O}function l(b,m,v,_,x,O){var S=(_-m)*(x-b),w=(v-b)*(O-m);return Math.abs(S-w)>=33306690738754716e-32*Math.abs(S+w)?S-w:0}function s(b,m,v,_,x,O){var S=l(x,O,b,m,v,_)||l(b,m,v,_,x,O)||l(v,_,x,O,b,m);return S<0}function u(b,m,v,_,x,O,S,w){var C=b-S,A=m-w,I=v-S,P=_-w,T=x-S,E=O-w,L=C*C+A*A,N=I*I+P*P,U=T*T+E*E;return C*(P*U-N*E)-A*(I*U-N*T)+L*(I*E-P*T)<0}function c(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=(A*I-w*P)*T,L=(S*P-C*I)*T;return E*E+L*L}function f(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=b+(A*I-w*P)*T,L=m+(S*P-C*I)*T;return{x:E,y:L}}function d(b,m,v,_){if(_-v<=20)for(var x=v+1;x<=_;x++){for(var O=b[x],S=m[O],w=x-1;w>=v&&m[b[w]]>S;)b[w+1]=b[w--];b[w+1]=O}else{var C=v+_>>1,A=v+1,I=_;h(b,C,A),m[b[v]]>m[b[_]]&&h(b,v,_),m[b[A]]>m[b[_]]&&h(b,A,_),m[b[v]]>m[b[A]]&&h(b,v,A);for(var P=b[A],T=m[P];;){do A++;while(m[b[A]]T);if(I=I-v?(d(b,m,A,_),d(b,m,v,I-1)):(d(b,m,v,I-1),d(b,m,A,_))}}function h(b,m,v){var _=b[m];b[m]=b[v],b[v]=_}function p(b){return b[0]}function g(b){return b[1]}return a})})(cL);var KOe=cL.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(KOe);function n(u){return u&&u.__esModule?u:{default:u}}function r(u){return u[0]}function a(u){return u[1]}function i(u){for(var c=u.triangles,f=u.coords,d=0;d1e-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,p=new Float64Array(h*2),g=0;g2&&i(h)){this.collinear=Int32Array.from({length:p.length/2},function(U,W){return W}).sort(function(U,W){return p[2*U]-p[2*W]||p[2*U+1]-p[2*W+1]});for(var g=this.collinear[0],b=this.collinear[this.collinear.length-1],m=[p[2*g],p[2*g+1],p[2*b],p[2*b+1]],v=1e-8*Math.sqrt(Math.pow(m[3]-m[1],2)+Math.pow(m[2]-m[0],2)),_=0,x=p.length/2;_0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=w[0],this.triangles[1]=w[1],this.triangles[2]=w[1],A[w[0]]=1,w.length===2&&(A[w[1]]=0))},c.neighbors=function(d){var h=[],p=this.inedges,g=this.hull,b=this._hullIndex,m=this.halfedges,v=this.triangles,_=p[d];if(_===-1)return h;var x=_,O=-1;do{if(O=v[x],h.push(O),x=x%3===2?x-2:x+1,v[x]!==d)break;if(x=m[x],x===-1){var S=g[(b[d]+1)%g.length];S!==O&&h.push(S);break}}while(x!==_);return h},c.find=function(d,h,p){if(p===void 0&&(p=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var g=p,b;(b=this._step(p,d,h))>=0&&b!==p&&b!==g;)p=b;return b},c._step=function(d,h,p){var g=this.inedges,b=this.points;if(g[d]===-1||!b.length)return(d+1)%(b.length>>1);for(var m=d,v=Math.pow(h-b[d*2],2)+Math.pow(p-b[d*2+1],2),O=this.neighbors(d),_=Array.isArray(O),x=0,O=_?O:O[Symbol.iterator]();;){var S;if(_){if(x>=O.length)break;S=O[x++]}else{if(x=O.next(),x.done)break;S=x.value}var w=S,C=Math.pow(h-b[w*2],2)+Math.pow(p-b[w*2+1],2);Ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u.left&&c<=a-u.right&&f>=u.top&&f<=i-u.bottom}},{key:"getDatasets",value:function(n){var r={x:mr(n.domain.x),y:mr(n.domain.y)},a=M.Children.toArray(n.children),i=function(s,u,c){var f=c&&c.type&&c.type.continuous,d=c?c.props&&c.props.style:n.style;return s.map(function(h,p){var g=cx(h),b=g.x,m=g.y,v=g.y0,_=g.x0,x=(Number(b)+Number(_))/2,O=(Number(m)+Number(v))/2;return Object.assign({_voronoiX:n.voronoiDimension==="y"?r.x:x,_voronoiY:n.voronoiDimension==="x"?r.y:O,eventKey:p,childName:u,continuous:f,style:d},h)})};if(n.data)return i(n.data);var o=function(s){var u=tr(s);return Array.isArray(u)&&u.length>0?u:void 0},l=function(s,u){var c=s.props||{},f=c.name||u,d=n.voronoiBlacklist||[],h=d.filter(function(v){return!!v&&typeof v.valueOf()=="string"}),p=d.filter(GOe),g=p.some(function(v){return v.test(f)});if(!Gx(s)||h.includes(f)||g)return null;var b=s.type&&Xe(s.type.getData)?s.type.getData:o,m=b(s.props);return m?i(m,f,s):null};return Ul(a,l,n)}},{key:"findPoints",value:function(n,r){return n.filter(function(a){return r._voronoiX===a._voronoiX&&r._voronoiY===a._voronoiY})}},{key:"withinRadius",value:function(n,r,a){if(!n)return!1;if(!a)return!0;var i=r.x,o=r.y,l=Math.pow(i-n[0],2)+Math.pow(o-n[1],2);return le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t"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 og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}function _Ce(e){var t;return t=function(n){mCe(a,n);var r=gCe(a);function a(){return hCe(this,a),r.apply(this,arguments)}return pCe(a,[{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 Gf(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=Dd(o,d),p=c?u:void 0;if(!f||s.length<2)return Uh(Uh({},h),{},{center:me({},l.center,p)});var g=f==="y"?u.x:h.x,b=f==="x"?u.y:h.y;return p=c?u:{x:g,y:b},{x:g,y:b,center:me({},l.center,p)}}},{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:{},p=s==="flyout"?d.flyoutStyle:d.style;return l.reduce(function(g,b,m){var v=me({},d,{datum:b,active:!0}),_=Xe(u)?u(v):void 0,x=_!==void 0?"".concat(_).split(` `):[],O=b.style&&b.style[s]||{},S=Array.isArray(p)?p[m]:p,w=_t(me({},S,O,h[s]),v),C=x.length?x.map(function(){return w}):[w];return g.concat(C)},[])}},{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,p=h<0?"left":"right",g=h<0?"bottom":"top",b=u?p:g,m=c?void 0:b;return{orientation:m,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,p=c.props||{},g=l.reduce(function(w,C){var A=me({},p,{datum:C,active:!0}),I=Xe(s)?s(A):null;return I==null?w:w.concat("".concat(I).split(` -`))},[]),b=l[0],m=b.childName,v=b.eventKey;b.style,b.continuous;var _=uCe(b,rCe),x=o.name===m?m:"".concat(o.name,"-").concat(m),O=me({key:"".concat(x,"-").concat(v,"-voronoi-tooltip"),id:"".concat(x,"-").concat(v,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:l,datum:_,scale:u,theme:f},p,{text:g,width:d,height:h,style:this.getStyle(o,l,"labels"),flyoutStyle:this.getStyle(o,l,"flyout")[0]},this.getDefaultLabelProps(o,l)),S=this.getLabelPosition(o,O,l);return me({},S,O)}},{key:"getTooltip",value:function(o){var l=o.labels,s=o.activePoints,u=o.labelComponent;if(!l)return null;if(Array.isArray(s)&&s.length){var c=this.getLabelProps(o,s),f=c.text,d=Array.isArray(f)?f.filter(Boolean).length:f;return d?M.cloneElement(u,c):null}return null}},{key:"getChildren",value:function(o){return[].concat(aCe(M.Children.toArray(o.children)),[this.getTooltip(o)])}}]),a}(e),t.displayName="VictoryVoronoiContainer",t.defaultProps=Uh(Uh({},En.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:M.createElement(Xl,null),voronoiPadding:5}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseLeave:function(r,a){return n.disable?{}:Bh.onMouseLeave(r,a)},onTouchCancel:function(r,a){return n.disable?{}:Bh.onMouseLeave(r,a)},onMouseMove:function(r,a){return n.disable?{}:Bh.onMouseMove(r,a)},onTouchMove:function(r,a){return n.disable?{}:Bh.onMouseMove(r,a)}}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},t}var vw=bCe(En);const ed=e=>{var{className:t,constrainToVisibleArea:n=!1,themeColor:r,theme:a=Xr(r),labelComponent:i=y.createElement(V0,null)}=e,o=Q(e,["className","constrainToVisibleArea","themeColor","theme","labelComponent"]);const l=B0({className:t}),s=y.cloneElement(i,Object.assign({constrainToVisibleArea:n,theme:a},i.props));return y.createElement(vw,Object.assign({className:l,labelComponent:s,theme:a},o))};ed.displayName="ChartVoronoiContainer";ed.defaultProps=vw.defaultProps;Vr(ed,vw);const uL=["bot","user","slot","session_started"],M5=1e3,cL=async(e,t)=>{const n=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",r=await zt.get(n,{params:{cursor:t,type_name:uL.join(","),limit:M5}});if(r.status===200)return r.data.messages;throw new Error("Invalid request")},_Ce=async(e,t,n)=>{const r=await xCe(e,t,n);return fL([],r)},xCe=async(e,t,n)=>{const r=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",a=async(s,u,c,f)=>{const d=await zt.get(r,{params:{start_date:s,end_date:u,type_name:uL.join(","),offset:c,limit:f}});return{messages:d.data.messages,count:d.data.count,status:d.status}},i=[];let o=0,l=0;do{const s=await a(t,n,l,M5);if(s.status!=200)throw new Error("Invalid request");o=s.count,i.push(...s.messages),l+=M5,await new Promise(u=>setTimeout(u,100))}while(l{const n=await cL(e);t({kind:"load_finished",messages:n})},SCe=async(e,t,n)=>{const r=await cL(e,t);n({kind:"load_finished",messages:r})},fL=(e,t)=>{const n=e.flatMap(a=>a.messages).concat(...t).sort((a,i)=>a.id-i.id).filter((a,i,o)=>!i||a.id!=o[i-1].id),r=[];return n.forEach(a=>{const i=r.findIndex(o=>o.senderId===a.sender_id);i===-1||a.type_name==="session_started"?r.unshift({senderId:a.sender_id,messages:[a],timestamp:a.timestamp,lastTimestamp:a.timestamp,hasSessionStarted:a.type_name==="session_started"}):(r[i].messages.push(a),r[i].lastTimestamp=a.timestamp)}),r},OCe=(e,t)=>e.isFirstLoad&&t.kind!=="load_finished"?e:t.kind==="start_load"?{...e,isFirstLoad:!0,sessions:[]}:t.kind==="load_finished"?{...e,isFirstLoad:!1,isLoading:!1,sessions:fL(e.sessions,t.messages)}:t.kind==="start_load_after"?{...e,isLoading:!0}:e,CCe={isFirstLoad:!1,isLoading:!1,sessions:[]},yw=e=>{const[t,n]=y.useReducer(OCe,CCe);return y.useEffect(()=>{n({kind:"start_load"})},[]),y.useEffect(()=>{t.isFirstLoad&&wCe(e,n)},[t.isFirstLoad,e]),y.useEffect(()=>{if(t.isLoading&&t.sessions.length>0&&t.sessions[t.sessions.length-1].messages.length>0){const r=t.sessions.length-1;SCe(e,t.sessions[r].messages[0].id,n)}},[t.isLoading,e]),{...t,loadMore:()=>n({kind:"start_load_after"})}};function my(e){return e.type_name==="user"&&e.data&&typeof e.data.text=="string"}function ECe(e){return e.type_name==="bot"&&e.data&&typeof e.data.text=="string"}function kCe(e){return e.type_name==="slot"&&e.data&&typeof e.data.name=="string"}const PCe=e=>{var{innerRef:t,initialOptions:n,isDisabled:r,onSelect:a,onToggle:i,toggleContent:o,toggleWidth:l="200px",toggleProps:s}=e,u=Q(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps"]);const[c,f]=M.useState(!1),[d,h]=M.useState("Select a value"),p=n==null?void 0:n.map(v=>{const{content:_,value:x}=v,O=Q(v,["content","value"]),S=d.includes(`${x}`);return M.createElement(o_,Object.assign({value:x,key:x,isSelected:S},O),_)}),g=()=>{i&&i(!c),f(!c)},b=(v,_)=>{a&&a(v,_),h(_),i&&i(!0),f(!1)},m=v=>M.createElement(mu,Object.assign({ref:v,onClick:g,isExpanded:c,isDisabled:r,style:{width:l}},s),o||d);return M.createElement(Tf,Object.assign({isOpen:c,selected:d,onSelect:b,onOpenChange:v=>{i&&i(v),f(v)},toggle:m,shouldFocusToggleOnSelect:!0,ref:t},u),M.createElement(i_,null,p))},I5=M.forwardRef((e,t)=>M.createElement(PCe,Object.assign({},e,{innerRef:t})));I5.displayName="SimpleSelect";const TCe=({startDate:e,endDate:t,updateDateRange:n})=>{const[r,a]=y.useState(""),[i,o]=y.useState(""),[l,s]=y.useState([]),[u,c]=y.useState([]);y.useEffect(()=>{(()=>{const m=new Date,v=new Date;v.setDate(m.getDate()-180);const _=new Set,x=new Set;for(let O=new Date(v);O<=m;O.setMonth(O.getMonth()+1))_.add(O.toLocaleString("default",{month:"long"})),x.add(O.getFullYear().toString());s(Array.from(_).map(O=>({content:O,value:O}))),c(Array.from(x).map(O=>({content:O,value:O})))})()},[]);const f=b=>{b>new Date&&(b=new Date);let m=e,v=t;const _=Math.abs(b.getTime()-e.getTime()),x=Math.abs(b.getTime()-t.getTime());_O&&(v=new Date(m.getTime()+O)),n(m,v),a(""),o("")},d=b=>{const m=new Date,v=new Date;switch(b){case"1 week":v.setDate(m.getDate()-6);break;case"1 month":v.setMonth(m.getMonth()-1);break;case"3 months":v.setMonth(m.getMonth()-3);break;default:return}n(v,m),a(""),o("")},h=b=>{typeof b!="number"&&(a(b),g(b,i))},p=b=>{typeof b!="number"&&(o(b),g(r,b))},g=(b,m)=>{if(!(b&&m))return;const v=new Date(`${b} 1, ${m}`),_=new Date(v);_.setMonth(_.getMonth()+1),_.setDate(_.getDate()-1),n(v,_)};return j.jsxs(j.Fragment,{children:[j.jsx(jT,{date:t,onChange:(b,m)=>f(m),onMonthChange:()=>{},rangeStart:e}),j.jsxs(ra,{children:[j.jsx(Fs,{children:"Presets"}),j.jsxs(Af,{children:[j.jsxs(Xp,{variant:Rb.inline,children:[j.jsx(Er,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 week"),children:"1 week"}),j.jsx(Er,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 month"),children:"1 month"}),j.jsx(Er,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("3 months"),children:"3 months"})]}),j.jsx("br",{}),"By month:",j.jsx("br",{}),j.jsx(I5,{initialOptions:l,onSelect:(b,m)=>h(m)}),j.jsx(I5,{initialOptions:u,onSelect:(b,m)=>p(m)})]})]})]})},ACe=({content:e,title:t})=>j.jsx(l_,{"aria-label":"Popover question",headerContent:t,bodyContent:e,children:j.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:j.jsx("a",{children:j.jsx(CB,{})})})}),MCe=["nlu_fallback","intent_core_.*","intent_integration_.*","intent_notifications_.*","insights_vulnerability_.*","intent_enable_2fa","intent_disable_2fa","intent_access_.*","intent_favorites_.*","intent_feedback_.*","intent_image_builder_.*","intent_advisor_.*","intent_inventory_.*","intent_access_*","intent_services_offline"],R5=new Date;R5.setDate(R5.getDate()-6);const ICe=()=>{const[e,t]=y.useState([]),[n,r]=y.useState([]),[a,i]=y.useState([]),[o,l]=y.useState({}),[s,u]=y.useState(0),[c,f]=y.useState(0),[d,h]=y.useState(0),[p,g]=y.useState(0),[b,m]=y.useState([]),[v,_]=y.useState([]),[x,O]=y.useState(0),[S,w]=y.useState(0),[C,A]=y.useState(0),[I,P]=y.useState(0),[T,E]=y.useState(0),[L,N]=y.useState(0),[U,W]=y.useState(0),[$,F]=y.useState(0),[k,X]=y.useState(R5),[te,R]=y.useState(new Date),[J,ae]=y.useState({internal:!1,external:!1,orgAdmins:!1,activeSessions:!1}),[ue,ve]=y.useState(!0),ke=y.useCallback(()=>{const q={},Z={};n.forEach(Ae=>{const Ce=new Date(Ae.timestamp*1e3).toISOString().split("T")[0];q[Ce]||(q[Ce]=0),q[Ce]++,Z[Ce]||(Z[Ce]=0),Ae.messages.filter(my).some(Re=>Re.data.text!=="/intent_core_session_start"?(Z[Ce]++,!0):!1)});const ie=[],K=[],Te=[],ye=new Date(k);for(;ye<=te;){const Ae=ye.toISOString().split("T")[0];ie.push({x:Ae.toString(),y:q[Ae]||0,name:"Total"}),K.push({x:Ae.toString(),y:Z[Ae]||0,name:"Active"}),Te.push({x:Ae.toString(),y:(q[Ae]||0)-(Z[Ae]||0),name:"Inactive"}),ye.setDate(ye.getDate()+1)}i(ie),m(K),_(Te)},[n,k,te]);return y.useEffect(()=>{let q=0;const Z=e.filter(Je=>{let z=!1,Y=!1;Je.messages.filter(my).forEach(se=>{se.data.text==="/intent_core_session_start"?z=se.data.metadata.is_org_admin:Y||(Y=!0)});const he=Je.messages.filter(kCe).filter(se=>se.data.name==="is_internal").some(se=>se.data.value);return J.internal&&!he||J.external&&he||J.orgAdmins&&!z||J.activeSessions&&!Y?!1:(Y&&q++,!0)});r(Z),g(q);let ie=0,K=0,Te=0,ye=0,Ae=0,Ce=0,Re=0,Ge=0,_e=0,re=0;const oe={};Z.forEach(Je=>{Je.messages.forEach(z=>{if(ECe(z))z.data.metadata.utter_action==="utter_closing_got_help_yes"?ie++:z.data.metadata.utter_action==="utter_closing_got_help_no"&&K++,z.data.metadata.utter_action==="utter_ask_closing_got_help"&&Ae++,z.data.metadata.utter_action==="utter_core_first_time"&&Ce++,Te++;else if(my(z)){const Y=z.data.parse_data.intent.name,he=MCe.find(se=>Y.match(se));he&&(oe[he]||(oe[he]=0),oe[he]++),Y==="intent_access_contact_admin"&&Re++,Y==="intent_access_request_tam"&&Ge++,Y==="intent_services_offline"&&_e++,ye++}}),re+=Je.lastTimestamp-Je.timestamp}),u(Te),f(ye),w(Ae),O(Ce),l(oe),N(Re),W(Ge),F(_e);const xe=re/1e3/60;E(Math.floor(xe/Z.length));const De=new Set(Z.map(Je=>Je.senderId));h(De.size),A(ie),P(K),ke(),ve(!1)},[J,e,ke]),y.useEffect(()=>{ve(!0),(async()=>{const Z=Math.floor(new Date(k.setHours(0,0,0,0)).getTime()/1e3),ie=new Date(te);ie.setHours(23,59,59,999);const K=Math.floor(ie.getTime()/1e3),Te=await _Ce(void 0,Z,K);t(Te)})()},[k,te]),j.jsx(dr,{variant:so.light,isWidthLimited:!0,children:j.jsxs(TA,{hasGutter:!0,children:[j.jsxs(Gi,{span:3,rowSpan:4,children:[j.jsx(TCe,{startDate:k,endDate:te,updateDateRange:(q,Z)=>{X(q),R(Z)}}),j.jsxs(ra,{children:[j.jsxs(Fs,{children:["Filters ",j.jsx(mB,{})]}),j.jsxs(Af,{children:[j.jsx(sr,{label:"Internal",isChecked:J.internal,onChange:()=>{ae(q=>({...q,internal:!q.internal,external:q.internal&&q.external}))},id:"toggle-internal"}),j.jsx(sr,{label:"External",isChecked:J.external,onChange:()=>{ae(q=>({...q,internal:q.internal&&q.external,external:!q.external}))},id:"toggle-external"}),j.jsx(sr,{label:"Org Admins",isChecked:J.orgAdmins,onChange:()=>{ae(q=>({...q,orgAdmins:!q.orgAdmins}))},id:"toggle-org-admins"}),j.jsx(sr,{label:"Active Sessions",isChecked:J.activeSessions,onChange:()=>{ae(q=>({...q,activeSessions:!q.activeSessions}))},id:"toggle-active-sessions"}),ue&&j.jsx(Id,{})]})]})]}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Positive",y:C},{x:"Negative",y:I}],title:Math.ceil(C/(C+I)*100)+"%",subTitle:"Positive feedback",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"cyan"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Users",y:d}],title:d.toString(),subTitle:"User",constrainToVisibleArea:!0,themeColor:"green",labels:({datum:q})=>`${q.x}: ${q.y}`})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Bot",y:s},{x:"User",y:c}],title:(s+c).toString(),subTitle:"Messages",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"multi"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{isFullHeight:!0,isLarge:!0,children:j.jsx(Af,{component:"strong",children:j.jsxs(Xp,{isPlain:!0,iconSize:"large",children:[j.jsxs(Er,{icon:j.jsx(Z2,{}),children:[S," Conversations"]}),j.jsxs(Er,{icon:j.jsx(eB,{}),children:[T," Minutes Active on Average"]}),j.jsxs(Er,{icon:j.jsx(iB,{}),children:[Math.floor((c-(o.nlu_fallback||0))/c*100),"% Intents Recognized"]}),j.jsxs(Er,{icon:j.jsx(TB,{}),children:[x," First Time Users"]}),!J.activeSessions&&j.jsxs(Er,{icon:j.jsx(kB,{}),children:[n.length-p," Inactive Sessions",j.jsx(ACe,{title:"When is a session inactive?",content:"If a user did not send a message after opening the assistant, the session has been inactive."})]})]})})})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsxs(Fs,{children:[n.length," Sessions"]}),j.jsxs(Jm,{ariaTitle:"Sessions over time",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.x}: ${q.y} ${q.name}`}),name:"usage",legendData:[{name:"Total"},{name:"Active"},{name:"Inactive",symbol:{type:"dash"}}],legendOrientation:"horizontal",legendPosition:"bottom",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsxs(ag,{children:[j.jsx(rf,{data:a,interpolation:"monotoneX"}),j.jsx(rf,{data:b,interpolation:"monotoneX"}),j.jsx(rf,{data:v,style:{data:{strokeDasharray:"3,3"}},interpolation:"monotoneX"})]})]})]})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsx(Fs,{children:"Intents"}),j.jsxs(Jm,{ariaTitle:"Intents",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.y} ${q.x}`}),name:"by_intent",themeColor:"multi",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsx(ag,{children:Object.entries(o).map(([q,Z])=>j.jsx(mw,{data:[{x:q,y:Z}]}))})]}),j.jsxs(NT,{component:"strong",children:["Usage",j.jsxs(Xp,{children:[j.jsxs(Er,{children:["Request TAM: ",U]}),j.jsxs(Er,{children:["Contact Admin: ",L]}),j.jsxs(Er,{children:["Services Offline: ",$]})]})]})]})})]})})},RCe=()=>j.jsx(j.Fragment,{children:j.jsxs(dr,{children:[j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{component:di,to:"/dashboard",children:"Dashboard"})]}),j.jsx("div",{style:{display:"flex",justifyContent:"space-between",overflowY:"auto",gap:"5px",marginTop:"10px"},children:j.jsx(ICe,{})})]})});function $Ce(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const LCe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jCe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DCe={};function jk(e,t){return((t||DCe).jsx?jCe:LCe).test(e)}const NCe=/[ \t\n\f\r]/g;function FCe(e){return typeof e=="object"?e.type==="text"?Dk(e.value):!1:Dk(e)}function Dk(e){return e.replace(NCe,"")===""}class qd{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}qd.prototype.property={};qd.prototype.normal={};qd.prototype.space=null;function dL(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&WCe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fk,KCe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fk.test(i)){let o=i.replace(VCe,GCe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=bw}return new a(r,t)}function GCe(e){return"-"+e.toLowerCase()}function KCe(e){return e.charAt(1).toUpperCase()}const XCe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},YCe=dL([mL,pL,yL,bL,UCe],"html"),_w=dL([mL,pL,yL,bL,HCe],"svg");function QCe(e){return e.join(" ").trim()}var _L={},zk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,JCe=/\n/g,ZCe=/^\s*/,e6e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,t6e=/^:\s*/,n6e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,r6e=/^[;\s]*/,a6e=/^\s+|\s+$/g,i6e=` -`,Bk="/",Uk="*",Xo="",o6e="comment",l6e="declaration",s6e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(p){var g=p.match(JCe);g&&(n+=g.length);var b=p.lastIndexOf(i6e);r=~b?p.length-b:r+p.length}function i(){var p={line:n,column:r};return function(g){return g.position=new o(p),u(),g}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(p){var g=new Error(t.source+":"+n+":"+r+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(p){var g=p.exec(e);if(g){var b=g[0];return a(b),e=e.slice(b.length),g}}function u(){s(ZCe)}function c(p){var g;for(p=p||[];g=f();)g!==!1&&p.push(g);return p}function f(){var p=i();if(!(Bk!=e.charAt(0)||Uk!=e.charAt(1))){for(var g=2;Xo!=e.charAt(g)&&(Uk!=e.charAt(g)||Bk!=e.charAt(g+1));)++g;if(g+=2,Xo===e.charAt(g-1))return l("End of comment missing");var b=e.slice(2,g-2);return r+=2,a(b),e=e.slice(g),r+=2,p({type:o6e,comment:b})}}function d(){var p=i(),g=s(e6e);if(g){if(f(),!s(t6e))return l("property missing ':'");var b=s(n6e),m=p({type:l6e,property:Hk(g[0].replace(zk,Xo)),value:b?Hk(b[0].replace(zk,Xo)):Xo});return s(r6e),m}}function h(){var p=[];c(p);for(var g;g=d();)g!==!1&&(p.push(g),c(p));return p}return u(),h()};function Hk(e){return e?e.replace(a6e,Xo):Xo}var u6e=ui&&ui.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_L,"__esModule",{value:!0});var c6e=u6e(s6e);function f6e(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,c6e.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,l=i.value;a?t(o,l,i):l&&(n=n||{},n[o]=l)}}),n}var Wk=_L.default=f6e;const d6e=Wk.default||Wk,xL=wL("end"),xw=wL("start");function wL(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function h6e(e){const t=xw(e),n=xL(e);if(t&&n)return{start:t,end:n}}function af(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Vk(e.position):"start"in e||"end"in e?Vk(e):"line"in e||"column"in e?j5(e):""}function j5(e){return qk(e&&e.line)+":"+qk(e&&e.column)}function Vk(e){return j5(e&&e.start)+"-"+j5(e&&e.end)}function qk(e){return e&&typeof e=="number"?e:1}class kn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=af(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}kn.prototype.file="";kn.prototype.name="";kn.prototype.reason="";kn.prototype.message="";kn.prototype.stack="";kn.prototype.column=void 0;kn.prototype.line=void 0;kn.prototype.ancestors=void 0;kn.prototype.cause=void 0;kn.prototype.fatal=void 0;kn.prototype.place=void 0;kn.prototype.ruleId=void 0;kn.prototype.source=void 0;const ww={}.hasOwnProperty,p6e=new Map,m6e=/[A-Z]/g,g6e=/-([a-z])/g,v6e=new Set(["table","tbody","thead","tfoot","tr"]),y6e=new Set(["td","th"]),SL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function b6e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=k6e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=E6e(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_w:YCe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=OL(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function OL(e,t,n){if(t.type==="element")return _6e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return x6e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return S6e(e,t,n);if(t.type==="mdxjsEsm")return w6e(e,t);if(t.type==="root")return O6e(e,t,n);if(t.type==="text")return C6e(e,t)}function _6e(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=EL(e,t.tagName,!1),o=P6e(e,t);let l=Ow(e,t);return v6e.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!FCe(s):!0})),CL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function x6e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}td(e,t.position)}function w6e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);td(e,t.position)}function S6e(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:EL(e,t.name,!0),o=T6e(e,t),l=Ow(e,t);return CL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function O6e(e,t,n){const r={};return Sw(r,Ow(e,t)),e.create(t,e.Fragment,r,n)}function C6e(e,t){return t.value}function CL(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Sw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function E6e(e,t,n){return r;function r(a,i,o,l){const u=Array.isArray(o.children)?n:t;return l?u(i,o,l):u(i,o)}}function k6e(e,t){return n;function n(r,a,i,o){const l=Array.isArray(i.children),s=xw(r);return t(a,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function P6e(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ww.call(t.properties,a)){const i=A6e(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&y6e.has(t.tagName)?r=l:n[o]=l}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function T6e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else td(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else td(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Ow(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:p6e;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Ai(e,e.length,0,t),e):t}const Xk={}.hasOwnProperty;function F6e(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function qs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $a=Fo(/[A-Za-z]/),cr=Fo(/[\dA-Za-z]/),U6e=Fo(/[#-'*+\--9=?A-Z^-~]/);function D5(e){return e!==null&&(e<32||e===127)}const N5=Fo(/\d/),H6e=Fo(/[\dA-Fa-f]/),W6e=Fo(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function Zn(e){return e!==null&&(e<0||e===32)}function st(e){return e===-2||e===-1||e===32}const V6e=Fo(new RegExp("\\p{P}|\\p{S}","u")),q6e=Fo(/\s/);function Fo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Gu(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function bt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return st(s)?(e.enter(n),l(s)):t(s)}function l(s){return st(s)&&i++o))return;const w=t.events.length;let C=w,A,I;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){I=t.events[C][1].end;break}A=!0}for(m(r),S=w;S_;){const O=n[x];t.containerState=O[1],O[0].exit.call(t,e)}n.length=_}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Q6e(e,t,n){return bt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Qk(e){if(e===null||Zn(e)||q6e(e))return 1;if(V6e(e))return 2}function Ew(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);Jk(f,-s),Jk(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rr(u,Ew(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rr(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ai(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&st(S)?bt(e,v,"linePrefix",i+1)(S):v(S)}function v(S){return S===null||je(S)?e.check(Zk,g,x)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||je(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),_)}function x(S){return e.exit("codeFenced"),t(S)}function O(S,w,C){let A=0;return I;function I(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),P}function P(N){return S.enter("codeFencedFence"),st(N)?bt(S,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):T(N)}function T(N){return N===l?(S.enter("codeFencedFenceSequence"),E(N)):C(N)}function E(N){return N===l?(A++,S.consume(N),E):A>=o?(S.exit("codeFencedFenceSequence"),st(N)?bt(S,L,"whitespace")(N):L(N)):C(N)}function L(N){return N===null||je(N)?(S.exit("codeFencedFence"),w(N)):C(N)}}}function uEe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const yy={name:"codeIndented",tokenize:fEe},cEe={tokenize:dEe,partial:!0};function fEe(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),bt(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):je(u)?e.attempt(cEe,o,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||je(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function dEe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):bt(e,i,"linePrefix",5)(o)}function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):je(o)?a(o):n(o)}}const hEe={name:"codeText",tokenize:gEe,resolve:pEe,previous:mEe};function pEe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&wc(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function RL(e,t,n,r,a,i,o,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||D5(m)?n(m):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(l),d(m)):m===null||m===60||je(m)?n(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function g(m){return!c&&(m===null||m===41||Zn(m))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(m)):c999||h===null||h===91||h===93&&!s||h===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):je(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||je(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!st(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function LL(e,t,n,r,a,i){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(r),e.enter(a),e.consume(d),e.exit(a),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):(e.enter(i),u(d))}function u(d){return d===o?(e.exit(i),s(o)):d===null?n(d):je(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),bt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||je(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function of(e,t){let n;return r;function r(a){return je(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):st(a)?bt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const OEe={name:"definition",tokenize:EEe},CEe={tokenize:kEe,partial:!0};function EEe(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return $L.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return a=qs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return Zn(h)?of(e,u)(h):u(h)}function u(h){return RL(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(CEe,f,f)(h)}function f(h){return st(h)?bt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||je(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function kEe(e,t,n){return r;function r(l){return Zn(l)?of(e,a)(l):n(l)}function a(l){return LL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return st(l)?bt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||je(l)?t(l):n(l)}}const PEe={name:"hardBreakEscape",tokenize:TEe};function TEe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return je(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const AEe={name:"headingAtx",tokenize:IEe,resolve:MEe};function MEe(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ai(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function IEe(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Zn(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||je(c)?(e.exit("atxHeading"),t(c)):st(c)?bt(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Zn(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const REe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tP=["pre","script","style","textarea"],$Ee={name:"htmlFlow",tokenize:NEe,resolveTo:DEe,concrete:!0},LEe={tokenize:zEe,partial:!0},jEe={tokenize:FEe,partial:!0};function DEe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NEe(e,t,n){const r=this;let a,i,o,l,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),a=3,r.interrupt?t:k):$a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function d(R){return R===45?(e.consume(R),a=2,h):R===91?(e.consume(R),a=5,l=0,p):$a(R)?(e.consume(R),a=4,r.interrupt?t:k):n(R)}function h(R){return R===45?(e.consume(R),r.interrupt?t:k):n(R)}function p(R){const J="CDATA[";return R===J.charCodeAt(l++)?(e.consume(R),l===J.length?r.interrupt?t:T:p):n(R)}function g(R){return $a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Zn(R)){const J=R===47,ae=o.toLowerCase();return!J&&!i&&tP.includes(ae)?(a=1,r.interrupt?t(R):T(R)):REe.includes(o.toLowerCase())?(a=6,J?(e.consume(R),m):r.interrupt?t(R):T(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?v(R):_(R))}return R===45||cr(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function m(R){return R===62?(e.consume(R),r.interrupt?t:T):n(R)}function v(R){return st(R)?(e.consume(R),v):I(R)}function _(R){return R===47?(e.consume(R),I):R===58||R===95||$a(R)?(e.consume(R),x):st(R)?(e.consume(R),_):I(R)}function x(R){return R===45||R===46||R===58||R===95||cr(R)?(e.consume(R),x):O(R)}function O(R){return R===61?(e.consume(R),S):st(R)?(e.consume(R),O):_(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,w):st(R)?(e.consume(R),S):C(R)}function w(R){return R===s?(e.consume(R),s=null,A):R===null||je(R)?n(R):(e.consume(R),w)}function C(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Zn(R)?O(R):(e.consume(R),C)}function A(R){return R===47||R===62||st(R)?_(R):n(R)}function I(R){return R===62?(e.consume(R),P):n(R)}function P(R){return R===null||je(R)?T(R):st(R)?(e.consume(R),P):n(R)}function T(R){return R===45&&a===2?(e.consume(R),U):R===60&&a===1?(e.consume(R),W):R===62&&a===4?(e.consume(R),X):R===63&&a===3?(e.consume(R),k):R===93&&a===5?(e.consume(R),F):je(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(LEe,te,E)(R)):R===null||je(R)?(e.exit("htmlFlowData"),E(R)):(e.consume(R),T)}function E(R){return e.check(jEe,L,te)(R)}function L(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),N}function N(R){return R===null||je(R)?E(R):(e.enter("htmlFlowData"),T(R))}function U(R){return R===45?(e.consume(R),k):T(R)}function W(R){return R===47?(e.consume(R),o="",$):T(R)}function $(R){if(R===62){const J=o.toLowerCase();return tP.includes(J)?(e.consume(R),X):T(R)}return $a(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),$):T(R)}function F(R){return R===93?(e.consume(R),k):T(R)}function k(R){return R===62?(e.consume(R),X):R===45&&a===2?(e.consume(R),k):T(R)}function X(R){return R===null||je(R)?(e.exit("htmlFlowData"),te(R)):(e.consume(R),X)}function te(R){return e.exit("htmlFlow"),t(R)}}function FEe(e,t,n){const r=this;return a;function a(o){return je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function zEe(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(q0,t,n)}}const BEe={name:"htmlText",tokenize:UEe};function UEe(e,t,n){const r=this;let a,i,o;return l;function l(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),O):k===63?(e.consume(k),_):$a(k)?(e.consume(k),C):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),i=0,p):$a(k)?(e.consume(k),v):n(k)}function c(k){return k===45?(e.consume(k),h):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),d):je(k)?(o=f,W(k)):(e.consume(k),f)}function d(k){return k===45?(e.consume(k),h):f(k)}function h(k){return k===62?U(k):k===45?d(k):f(k)}function p(k){const X="CDATA[";return k===X.charCodeAt(i++)?(e.consume(k),i===X.length?g:p):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),b):je(k)?(o=g,W(k)):(e.consume(k),g)}function b(k){return k===93?(e.consume(k),m):g(k)}function m(k){return k===62?U(k):k===93?(e.consume(k),m):g(k)}function v(k){return k===null||k===62?U(k):je(k)?(o=v,W(k)):(e.consume(k),v)}function _(k){return k===null?n(k):k===63?(e.consume(k),x):je(k)?(o=_,W(k)):(e.consume(k),_)}function x(k){return k===62?U(k):_(k)}function O(k){return $a(k)?(e.consume(k),S):n(k)}function S(k){return k===45||cr(k)?(e.consume(k),S):w(k)}function w(k){return je(k)?(o=w,W(k)):st(k)?(e.consume(k),w):U(k)}function C(k){return k===45||cr(k)?(e.consume(k),C):k===47||k===62||Zn(k)?A(k):n(k)}function A(k){return k===47?(e.consume(k),U):k===58||k===95||$a(k)?(e.consume(k),I):je(k)?(o=A,W(k)):st(k)?(e.consume(k),A):U(k)}function I(k){return k===45||k===46||k===58||k===95||cr(k)?(e.consume(k),I):P(k)}function P(k){return k===61?(e.consume(k),T):je(k)?(o=P,W(k)):st(k)?(e.consume(k),P):A(k)}function T(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,E):je(k)?(o=T,W(k)):st(k)?(e.consume(k),T):(e.consume(k),L)}function E(k){return k===a?(e.consume(k),a=void 0,N):k===null?n(k):je(k)?(o=E,W(k)):(e.consume(k),E)}function L(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Zn(k)?A(k):(e.consume(k),L)}function N(k){return k===47||k===62||Zn(k)?A(k):n(k)}function U(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function W(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),$}function $(k){return st(k)?bt(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):F(k)}function F(k){return e.enter("htmlTextData"),o(k)}}const kw={name:"labelEnd",tokenize:KEe,resolveTo:GEe,resolveAll:qEe},HEe={tokenize:XEe},WEe={tokenize:YEe},VEe={tokenize:QEe};function qEe(e){let t=-1;for(;++t=3&&(u===null||je(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===a?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),st(u)?bt(e,l,"whitespace")(u):l(u))}}const Un={name:"list",tokenize:o3e,continuation:{tokenize:l3e},exit:u3e},a3e={tokenize:c3e,partial:!0},i3e={tokenize:s3e,partial:!0};function o3e(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:N5(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vp,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return N5(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(q0,r.interrupt?n:c,e.attempt(a3e,d,f))}function c(h){return r.containerState.initialBlankLine=!0,i++,d(h)}function f(h){return st(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function l3e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(q0,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bt(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!st(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(i3e,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,bt(e,e.attempt(Un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function s3e(e,t,n){const r=this;return bt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function u3e(e){e.exit(this.containerState.type)}function c3e(e,t,n){const r=this;return bt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!st(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const nP={name:"setextUnderline",tokenize:d3e,resolveTo:f3e};function f3e(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function d3e(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),st(u)?bt(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||je(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const h3e={tokenize:p3e};function p3e(e){const t=this,n=e.attempt(q0,r,e.attempt(this.parser.constructs.flowInitial,a,bt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(bEe,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const m3e={resolveAll:DL()},g3e=jL("string"),v3e=jL("text");function jL(e){return{tokenize:t,resolveAll:DL(e==="text"?y3e:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const f=a[c];let d=-1;if(f)for(;++d-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function x3e(e,t){let n=-1;const r=[];let a;for(;++n{var{className:t,constrainToVisibleArea:n=!1,themeColor:r,theme:a=Xr(r),labelComponent:i=y.createElement(V0,null)}=e,o=Q(e,["className","constrainToVisibleArea","themeColor","theme","labelComponent"]);const l=B0({className:t}),s=y.cloneElement(i,Object.assign({constrainToVisibleArea:n,theme:a},i.props));return y.createElement(vw,Object.assign({className:l,labelComponent:s,theme:a},o))};ed.displayName="ChartVoronoiContainer";ed.defaultProps=vw.defaultProps;Vr(ed,vw);const fL=["bot","user","slot","session_started"],M5=1e3,dL=async(e,t)=>{const n=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",r=await zt.get(n,{params:{cursor:t,type_name:fL.join(","),limit:M5}});if(r.status===200)return r.data.messages;throw new Error("Invalid request")},xCe=async(e,t,n)=>{const r=await wCe(e,t,n);return hL([],r)},wCe=async(e,t,n)=>{const r=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",a=async(s,u,c,f)=>{const d=await zt.get(r,{params:{start_date:s,end_date:u,type_name:fL.join(","),offset:c,limit:f}});return{messages:d.data.messages,count:d.data.count,status:d.status}},i=[];let o=0,l=0;do{const s=await a(t,n,l,M5);if(s.status!=200)throw new Error("Invalid request");o=s.count,i.push(...s.messages),l+=M5,await new Promise(u=>setTimeout(u,100))}while(l{const n=await dL(e);t({kind:"load_finished",messages:n})},OCe=async(e,t,n)=>{const r=await dL(e,t);n({kind:"load_finished",messages:r})},hL=(e,t)=>{const n=e.flatMap(a=>a.messages).concat(...t).sort((a,i)=>a.id-i.id).filter((a,i,o)=>!i||a.id!=o[i-1].id),r=[];return n.forEach(a=>{const i=r.findIndex(o=>o.senderId===a.sender_id);i===-1||a.type_name==="session_started"?r.unshift({senderId:a.sender_id,messages:[a],timestamp:a.timestamp,lastTimestamp:a.timestamp,hasSessionStarted:a.type_name==="session_started"}):(r[i].messages.push(a),r[i].lastTimestamp=a.timestamp)}),r},CCe=(e,t)=>e.isFirstLoad&&t.kind!=="load_finished"?e:t.kind==="start_load"?{...e,isFirstLoad:!0,sessions:[]}:t.kind==="load_finished"?{...e,isFirstLoad:!1,isLoading:!1,sessions:hL(e.sessions,t.messages)}:t.kind==="start_load_after"?{...e,isLoading:!0}:e,ECe={isFirstLoad:!1,isLoading:!1,sessions:[]},yw=e=>{const[t,n]=y.useReducer(CCe,ECe);return y.useEffect(()=>{n({kind:"start_load"})},[]),y.useEffect(()=>{t.isFirstLoad&&SCe(e,n)},[t.isFirstLoad,e]),y.useEffect(()=>{if(t.isLoading&&t.sessions.length>0&&t.sessions[t.sessions.length-1].messages.length>0){const r=t.sessions.length-1;OCe(e,t.sessions[r].messages[0].id,n)}},[t.isLoading,e]),{...t,loadMore:()=>n({kind:"start_load_after"})}};function my(e){return e.type_name==="user"&&e.data&&typeof e.data.text=="string"}function kCe(e){return e.type_name==="bot"&&e.data&&typeof e.data.text=="string"}function PCe(e){return e.type_name==="slot"&&e.data&&typeof e.data.name=="string"}const TCe=e=>{var{innerRef:t,initialOptions:n,isDisabled:r,onSelect:a,onToggle:i,toggleContent:o,toggleWidth:l="200px",toggleProps:s}=e,u=Q(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps"]);const[c,f]=M.useState(!1),[d,h]=M.useState("Select a value"),p=n==null?void 0:n.map(v=>{const{content:_,value:x}=v,O=Q(v,["content","value"]),S=d.includes(`${x}`);return M.createElement(o_,Object.assign({value:x,key:x,isSelected:S},O),_)}),g=()=>{i&&i(!c),f(!c)},b=(v,_)=>{a&&a(v,_),h(_),i&&i(!0),f(!1)},m=v=>M.createElement(mu,Object.assign({ref:v,onClick:g,isExpanded:c,isDisabled:r,style:{width:l}},s),o||d);return M.createElement(Tf,Object.assign({isOpen:c,selected:d,onSelect:b,onOpenChange:v=>{i&&i(v),f(v)},toggle:m,shouldFocusToggleOnSelect:!0,ref:t},u),M.createElement(i_,null,p))},I5=M.forwardRef((e,t)=>M.createElement(TCe,Object.assign({},e,{innerRef:t})));I5.displayName="SimpleSelect";const ACe=({startDate:e,endDate:t,updateDateRange:n})=>{const[r,a]=y.useState(""),[i,o]=y.useState(""),[l,s]=y.useState([]),[u,c]=y.useState([]);y.useEffect(()=>{(()=>{const m=new Date,v=new Date;v.setDate(m.getDate()-180);const _=new Set,x=new Set;for(let O=new Date(v);O<=m;O.setMonth(O.getMonth()+1))_.add(O.toLocaleString("default",{month:"long"})),x.add(O.getFullYear().toString());s(Array.from(_).map(O=>({content:O,value:O}))),c(Array.from(x).map(O=>({content:O,value:O})))})()},[]);const f=b=>{b>new Date&&(b=new Date);let m=e,v=t;const _=Math.abs(b.getTime()-e.getTime()),x=Math.abs(b.getTime()-t.getTime());_O&&(v=new Date(m.getTime()+O)),n(m,v),a(""),o("")},d=b=>{const m=new Date,v=new Date;switch(b){case"1 week":v.setDate(m.getDate()-6);break;case"1 month":v.setMonth(m.getMonth()-1);break;case"3 months":v.setMonth(m.getMonth()-3);break;default:return}n(v,m),a(""),o("")},h=b=>{typeof b!="number"&&(a(b),g(b,i))},p=b=>{typeof b!="number"&&(o(b),g(r,b))},g=(b,m)=>{if(!(b&&m))return;const v=new Date(`${b} 1, ${m}`),_=new Date(v);_.setMonth(_.getMonth()+1),_.setDate(_.getDate()-1),n(v,_)};return j.jsxs(j.Fragment,{children:[j.jsx(NT,{date:t,onChange:(b,m)=>f(m),onMonthChange:()=>{},rangeStart:e}),j.jsxs(ra,{children:[j.jsx(Fs,{children:"Presets"}),j.jsxs(Af,{children:[j.jsxs(Xp,{variant:Rb.inline,children:[j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 week"),children:"1 week"}),j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 month"),children:"1 month"}),j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("3 months"),children:"3 months"})]}),j.jsx("br",{}),"By month:",j.jsx("br",{}),j.jsx(I5,{initialOptions:l,onSelect:(b,m)=>h(m)}),j.jsx(I5,{initialOptions:u,onSelect:(b,m)=>p(m)})]})]})]})},Dk=({content:e,title:t})=>j.jsx(l_,{"aria-label":"Popover question",headerContent:t,bodyContent:e,children:j.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:j.jsx("a",{children:j.jsx(kB,{})})})}),MCe=["nlu_fallback","intent_core_.*","intent_integration_.*","intent_notifications_.*","insights_vulnerability_.*","intent_enable_2fa","intent_disable_2fa","intent_access_.*","intent_favorites_.*","intent_feedback_.*","intent_image_builder_.*","intent_advisor_.*","intent_inventory_.*","intent_access_*","intent_services_offline"],ICe=.25,R5=new Date;R5.setDate(R5.getDate()-6);const RCe=()=>{const[e,t]=y.useState([]),[n,r]=y.useState([]),[a,i]=y.useState([]),[o,l]=y.useState({}),[s,u]=y.useState(0),[c,f]=y.useState(0),[d,h]=y.useState(0),[p,g]=y.useState(0),[b,m]=y.useState([]),[v,_]=y.useState([]),[x,O]=y.useState(0),[S,w]=y.useState(0),[C,A]=y.useState(0),[I,P]=y.useState(0),[T,E]=y.useState(0),[L,N]=y.useState(0),[U,W]=y.useState(0),[$,F]=y.useState(0),[k,X]=y.useState(R5),[te,R]=y.useState(new Date),[J,ae]=y.useState({internal:!1,external:!1,orgAdmins:!1,activeSessions:!1}),[ue,ve]=y.useState(!0),ke=y.useCallback(()=>{const q={},Z={};n.forEach(Ae=>{const Ce=new Date(Ae.timestamp*1e3).toISOString().split("T")[0];q[Ce]||(q[Ce]=0),q[Ce]++,Z[Ce]||(Z[Ce]=0),Ae.messages.filter(my).some(Re=>Re.data.text!=="/intent_core_session_start"?(Z[Ce]++,!0):!1)});const ie=[],K=[],Te=[],ye=new Date(k);for(;ye<=te;){const Ae=ye.toISOString().split("T")[0];ie.push({x:Ae.toString(),y:q[Ae]||0,name:"Total"}),K.push({x:Ae.toString(),y:Z[Ae]||0,name:"Active"}),Te.push({x:Ae.toString(),y:(q[Ae]||0)-(Z[Ae]||0),name:"Inactive"}),ye.setDate(ye.getDate()+1)}i(ie),m(K),_(Te)},[n,k,te]);return y.useEffect(()=>{let q=0;const Z=e.filter(Je=>{let z=!1,Y=!1;Je.messages.filter(my).forEach(se=>{se.data.text==="/intent_core_session_start"?z=se.data.metadata.is_org_admin:Y||(Y=!0)});const he=Je.messages.filter(PCe).filter(se=>se.data.name==="is_internal").some(se=>se.data.value);return J.internal&&!he||J.external&&he||J.orgAdmins&&!z||J.activeSessions&&!Y?!1:(Y&&q++,!0)});r(Z),g(q);let ie=0,K=0,Te=0,ye=0,Ae=0,Ce=0,Re=0,Ge=0,_e=0,re=0;const oe={};Z.forEach(Je=>{Je.messages.forEach(z=>{if(kCe(z))z.data.metadata.utter_action==="utter_closing_got_help_yes"?ie++:z.data.metadata.utter_action==="utter_closing_got_help_no"&&K++,z.data.metadata.utter_action==="utter_ask_closing_got_help"&&Ae++,z.data.metadata.utter_action==="utter_core_first_time"&&Ce++,Te++;else if(my(z)){const Y=z.data.parse_data.intent.name,he=MCe.find(se=>Y.match(se));he&&(oe[he]||(oe[he]=0),oe[he]++),Y==="intent_access_contact_admin"&&Re++,Y==="intent_access_request_tam"&&Ge++,Y==="intent_services_offline"&&_e++,ye++}}),re+=Je.lastTimestamp-Je.timestamp}),u(Te),f(ye),w(Ae),O(Ce),l(oe),N(Re),W(Ge),F(_e);const xe=re/1e3/60;E(Math.floor(xe/Z.length));const De=new Set(Z.map(Je=>Je.senderId));h(De.size),A(ie),P(K),ke(),ve(!1)},[J,e,ke]),y.useEffect(()=>{ve(!0),(async()=>{const Z=Math.floor(new Date(k.setHours(0,0,0,0)).getTime()/1e3),ie=new Date(te);ie.setHours(23,59,59,999);const K=Math.floor(ie.getTime()/1e3),Te=await xCe(void 0,Z,K);t(Te)})()},[k,te]),j.jsx(hr,{variant:so.light,isWidthLimited:!0,children:j.jsxs(MA,{hasGutter:!0,children:[j.jsxs(Gi,{span:3,rowSpan:4,children:[j.jsx(ACe,{startDate:k,endDate:te,updateDateRange:(q,Z)=>{X(q),R(Z)}}),j.jsxs(ra,{children:[j.jsxs(Fs,{children:["Filters ",j.jsx(vB,{})]}),j.jsxs(Af,{children:[j.jsx(ur,{label:"Internal",isChecked:J.internal,onChange:()=>{ae(q=>({...q,internal:!q.internal,external:q.internal&&q.external}))},id:"toggle-internal"}),j.jsx(ur,{label:"External",isChecked:J.external,onChange:()=>{ae(q=>({...q,internal:q.internal&&q.external,external:!q.external}))},id:"toggle-external"}),j.jsx(ur,{label:"Org Admins",isChecked:J.orgAdmins,onChange:()=>{ae(q=>({...q,orgAdmins:!q.orgAdmins}))},id:"toggle-org-admins"}),j.jsx(ur,{label:"Active Sessions",isChecked:J.activeSessions,onChange:()=>{ae(q=>({...q,activeSessions:!q.activeSessions}))},id:"toggle-active-sessions"}),ue&&j.jsx(Id,{})]})]})]}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Positive",y:C},{x:"Negative",y:I}],title:Math.ceil(C/(C+I)*100)+"%",subTitle:"Positive feedback",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"cyan"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Users",y:d}],title:d.toString(),subTitle:"User",constrainToVisibleArea:!0,themeColor:"green",labels:({datum:q})=>`${q.x}: ${q.y}`})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Bot",y:s},{x:"User",y:c}],title:(s+c).toString(),subTitle:"Messages",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"multi"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{isFullHeight:!0,isLarge:!0,children:j.jsx(Af,{component:"strong",children:j.jsxs(Xp,{isPlain:!0,iconSize:"large",children:[j.jsxs(or,{icon:j.jsx(Z2,{}),children:[S," Conversations"]}),j.jsxs(or,{icon:j.jsx(nB,{}),children:[T," Minutes Active on Average"]}),j.jsxs(or,{icon:j.jsx(lB,{}),children:[Math.floor((c-(o.nlu_fallback||0))/c*100),"% Intents Recognized"]}),j.jsxs(or,{icon:j.jsx(AB,{}),children:[x," First Time Users"]}),!J.activeSessions&&j.jsxs(or,{icon:j.jsx(_O,{}),children:[n.length-p," Inactive Sessions",j.jsx(Dk,{title:"When is a session inactive?",content:"If a user did not send a message after opening the assistant, the session has been inactive."})]}),L>0&&j.jsxs(or,{icon:j.jsx(_O,{}),children:[L*ICe," Engineering Hours Saved",j.jsx(Dk,{title:"What does this include?",content:"This considers the time it takes to look up an org admin and contact them."})]})]})})})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsxs(Fs,{children:[n.length," Sessions"]}),j.jsxs(Jm,{ariaTitle:"Sessions over time",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.x}: ${q.y} ${q.name}`}),name:"usage",legendData:[{name:"Total"},{name:"Active"},{name:"Inactive",symbol:{type:"dash"}}],legendOrientation:"horizontal",legendPosition:"bottom",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsxs(ag,{children:[j.jsx(rf,{data:a,interpolation:"monotoneX"}),j.jsx(rf,{data:b,interpolation:"monotoneX"}),j.jsx(rf,{data:v,style:{data:{strokeDasharray:"3,3"}},interpolation:"monotoneX"})]})]})]})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsx(Fs,{children:"Intents"}),j.jsxs(Jm,{ariaTitle:"Intents",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.y} ${q.x}`}),name:"by_intent",themeColor:"multi",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsx(ag,{children:Object.entries(o).map(([q,Z])=>j.jsx(mw,{data:[{x:q,y:Z}]}))})]}),j.jsxs(zT,{component:"strong",children:["Usage",j.jsxs(Xp,{children:[j.jsxs(or,{children:["Request TAM: ",U]}),j.jsxs(or,{children:["Contact Admin: ",L]}),j.jsxs(or,{children:["Services Offline: ",$]})]})]})]})})]})})},$Ce=()=>j.jsx(j.Fragment,{children:j.jsxs(hr,{children:[j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{component:di,to:"/dashboard",children:"Dashboard"})]}),j.jsx("div",{style:{display:"flex",justifyContent:"space-between",overflowY:"auto",gap:"5px",marginTop:"10px"},children:j.jsx(RCe,{})})]})});function LCe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jCe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DCe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NCe={};function Nk(e,t){return((t||NCe).jsx?DCe:jCe).test(e)}const FCe=/[ \t\n\f\r]/g;function zCe(e){return typeof e=="object"?e.type==="text"?Fk(e.value):!1:Fk(e)}function Fk(e){return e.replace(FCe,"")===""}class qd{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}qd.prototype.property={};qd.prototype.normal={};qd.prototype.space=null;function pL(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&VCe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Bk,XCe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Bk.test(i)){let o=i.replace(qCe,KCe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=bw}return new a(r,t)}function KCe(e){return"-"+e.toLowerCase()}function XCe(e){return e.charAt(1).toUpperCase()}const YCe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},QCe=pL([vL,gL,_L,xL,HCe],"html"),_w=pL([vL,gL,_L,xL,WCe],"svg");function JCe(e){return e.join(" ").trim()}var wL={},Uk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZCe=/\n/g,e6e=/^\s*/,t6e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n6e=/^:\s*/,r6e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a6e=/^[;\s]*/,i6e=/^\s+|\s+$/g,o6e=` +`,Hk="/",Wk="*",Xo="",l6e="comment",s6e="declaration",u6e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(p){var g=p.match(ZCe);g&&(n+=g.length);var b=p.lastIndexOf(o6e);r=~b?p.length-b:r+p.length}function i(){var p={line:n,column:r};return function(g){return g.position=new o(p),u(),g}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(p){var g=new Error(t.source+":"+n+":"+r+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(p){var g=p.exec(e);if(g){var b=g[0];return a(b),e=e.slice(b.length),g}}function u(){s(e6e)}function c(p){var g;for(p=p||[];g=f();)g!==!1&&p.push(g);return p}function f(){var p=i();if(!(Hk!=e.charAt(0)||Wk!=e.charAt(1))){for(var g=2;Xo!=e.charAt(g)&&(Wk!=e.charAt(g)||Hk!=e.charAt(g+1));)++g;if(g+=2,Xo===e.charAt(g-1))return l("End of comment missing");var b=e.slice(2,g-2);return r+=2,a(b),e=e.slice(g),r+=2,p({type:l6e,comment:b})}}function d(){var p=i(),g=s(t6e);if(g){if(f(),!s(n6e))return l("property missing ':'");var b=s(r6e),m=p({type:s6e,property:Vk(g[0].replace(Uk,Xo)),value:b?Vk(b[0].replace(Uk,Xo)):Xo});return s(a6e),m}}function h(){var p=[];c(p);for(var g;g=d();)g!==!1&&(p.push(g),c(p));return p}return u(),h()};function Vk(e){return e?e.replace(i6e,Xo):Xo}var c6e=ui&&ui.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wL,"__esModule",{value:!0});var f6e=c6e(u6e);function d6e(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,f6e.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,l=i.value;a?t(o,l,i):l&&(n=n||{},n[o]=l)}}),n}var qk=wL.default=d6e;const h6e=qk.default||qk,SL=OL("end"),xw=OL("start");function OL(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function p6e(e){const t=xw(e),n=SL(e);if(t&&n)return{start:t,end:n}}function af(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gk(e.position):"start"in e||"end"in e?Gk(e):"line"in e||"column"in e?j5(e):""}function j5(e){return Kk(e&&e.line)+":"+Kk(e&&e.column)}function Gk(e){return j5(e&&e.start)+"-"+j5(e&&e.end)}function Kk(e){return e&&typeof e=="number"?e:1}class kn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=af(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}kn.prototype.file="";kn.prototype.name="";kn.prototype.reason="";kn.prototype.message="";kn.prototype.stack="";kn.prototype.column=void 0;kn.prototype.line=void 0;kn.prototype.ancestors=void 0;kn.prototype.cause=void 0;kn.prototype.fatal=void 0;kn.prototype.place=void 0;kn.prototype.ruleId=void 0;kn.prototype.source=void 0;const ww={}.hasOwnProperty,m6e=new Map,g6e=/[A-Z]/g,v6e=/-([a-z])/g,y6e=new Set(["table","tbody","thead","tfoot","tr"]),b6e=new Set(["td","th"]),CL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _6e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=P6e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=k6e(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_w:QCe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=EL(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function EL(e,t,n){if(t.type==="element")return x6e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w6e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return O6e(e,t,n);if(t.type==="mdxjsEsm")return S6e(e,t);if(t.type==="root")return C6e(e,t,n);if(t.type==="text")return E6e(e,t)}function x6e(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=PL(e,t.tagName,!1),o=T6e(e,t);let l=Ow(e,t);return y6e.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!zCe(s):!0})),kL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function w6e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}td(e,t.position)}function S6e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);td(e,t.position)}function O6e(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:PL(e,t.name,!0),o=A6e(e,t),l=Ow(e,t);return kL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function C6e(e,t,n){const r={};return Sw(r,Ow(e,t)),e.create(t,e.Fragment,r,n)}function E6e(e,t){return t.value}function kL(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Sw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function k6e(e,t,n){return r;function r(a,i,o,l){const u=Array.isArray(o.children)?n:t;return l?u(i,o,l):u(i,o)}}function P6e(e,t){return n;function n(r,a,i,o){const l=Array.isArray(i.children),s=xw(r);return t(a,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function T6e(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ww.call(t.properties,a)){const i=M6e(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&b6e.has(t.tagName)?r=l:n[o]=l}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function A6e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else td(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else td(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Ow(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:m6e;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Ai(e,e.length,0,t),e):t}const Qk={}.hasOwnProperty;function z6e(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function qs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $a=Fo(/[A-Za-z]/),fr=Fo(/[\dA-Za-z]/),H6e=Fo(/[#-'*+\--9=?A-Z^-~]/);function D5(e){return e!==null&&(e<32||e===127)}const N5=Fo(/\d/),W6e=Fo(/[\dA-Fa-f]/),V6e=Fo(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function Zn(e){return e!==null&&(e<0||e===32)}function st(e){return e===-2||e===-1||e===32}const q6e=Fo(new RegExp("\\p{P}|\\p{S}","u")),G6e=Fo(/\s/);function Fo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Gu(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function bt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return st(s)?(e.enter(n),l(s)):t(s)}function l(s){return st(s)&&i++o))return;const w=t.events.length;let C=w,A,I;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){I=t.events[C][1].end;break}A=!0}for(m(r),S=w;S_;){const O=n[x];t.containerState=O[1],O[0].exit.call(t,e)}n.length=_}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function J6e(e,t,n){return bt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zk(e){if(e===null||Zn(e)||G6e(e))return 1;if(q6e(e))return 2}function Ew(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);eP(f,-s),eP(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rr(u,Ew(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rr(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ai(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&st(S)?bt(e,v,"linePrefix",i+1)(S):v(S)}function v(S){return S===null||je(S)?e.check(tP,g,x)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||je(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),_)}function x(S){return e.exit("codeFenced"),t(S)}function O(S,w,C){let A=0;return I;function I(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),P}function P(N){return S.enter("codeFencedFence"),st(N)?bt(S,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):T(N)}function T(N){return N===l?(S.enter("codeFencedFenceSequence"),E(N)):C(N)}function E(N){return N===l?(A++,S.consume(N),E):A>=o?(S.exit("codeFencedFenceSequence"),st(N)?bt(S,L,"whitespace")(N):L(N)):C(N)}function L(N){return N===null||je(N)?(S.exit("codeFencedFence"),w(N)):C(N)}}}function cEe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const yy={name:"codeIndented",tokenize:dEe},fEe={tokenize:hEe,partial:!0};function dEe(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),bt(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):je(u)?e.attempt(fEe,o,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||je(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function hEe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):bt(e,i,"linePrefix",5)(o)}function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):je(o)?a(o):n(o)}}const pEe={name:"codeText",tokenize:vEe,resolve:mEe,previous:gEe};function mEe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&wc(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function LL(e,t,n,r,a,i,o,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||D5(m)?n(m):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(l),d(m)):m===null||m===60||je(m)?n(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function g(m){return!c&&(m===null||m===41||Zn(m))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(m)):c999||h===null||h===91||h===93&&!s||h===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):je(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||je(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!st(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function DL(e,t,n,r,a,i){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(r),e.enter(a),e.consume(d),e.exit(a),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):(e.enter(i),u(d))}function u(d){return d===o?(e.exit(i),s(o)):d===null?n(d):je(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),bt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||je(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function of(e,t){let n;return r;function r(a){return je(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):st(a)?bt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const CEe={name:"definition",tokenize:kEe},EEe={tokenize:PEe,partial:!0};function kEe(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return jL.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return a=qs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return Zn(h)?of(e,u)(h):u(h)}function u(h){return LL(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(EEe,f,f)(h)}function f(h){return st(h)?bt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||je(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function PEe(e,t,n){return r;function r(l){return Zn(l)?of(e,a)(l):n(l)}function a(l){return DL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return st(l)?bt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||je(l)?t(l):n(l)}}const TEe={name:"hardBreakEscape",tokenize:AEe};function AEe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return je(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const MEe={name:"headingAtx",tokenize:REe,resolve:IEe};function IEe(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ai(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function REe(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Zn(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||je(c)?(e.exit("atxHeading"),t(c)):st(c)?bt(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Zn(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const $Ee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rP=["pre","script","style","textarea"],LEe={name:"htmlFlow",tokenize:FEe,resolveTo:NEe,concrete:!0},jEe={tokenize:BEe,partial:!0},DEe={tokenize:zEe,partial:!0};function NEe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function FEe(e,t,n){const r=this;let a,i,o,l,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),a=3,r.interrupt?t:k):$a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function d(R){return R===45?(e.consume(R),a=2,h):R===91?(e.consume(R),a=5,l=0,p):$a(R)?(e.consume(R),a=4,r.interrupt?t:k):n(R)}function h(R){return R===45?(e.consume(R),r.interrupt?t:k):n(R)}function p(R){const J="CDATA[";return R===J.charCodeAt(l++)?(e.consume(R),l===J.length?r.interrupt?t:T:p):n(R)}function g(R){return $a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Zn(R)){const J=R===47,ae=o.toLowerCase();return!J&&!i&&rP.includes(ae)?(a=1,r.interrupt?t(R):T(R)):$Ee.includes(o.toLowerCase())?(a=6,J?(e.consume(R),m):r.interrupt?t(R):T(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?v(R):_(R))}return R===45||fr(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function m(R){return R===62?(e.consume(R),r.interrupt?t:T):n(R)}function v(R){return st(R)?(e.consume(R),v):I(R)}function _(R){return R===47?(e.consume(R),I):R===58||R===95||$a(R)?(e.consume(R),x):st(R)?(e.consume(R),_):I(R)}function x(R){return R===45||R===46||R===58||R===95||fr(R)?(e.consume(R),x):O(R)}function O(R){return R===61?(e.consume(R),S):st(R)?(e.consume(R),O):_(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,w):st(R)?(e.consume(R),S):C(R)}function w(R){return R===s?(e.consume(R),s=null,A):R===null||je(R)?n(R):(e.consume(R),w)}function C(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Zn(R)?O(R):(e.consume(R),C)}function A(R){return R===47||R===62||st(R)?_(R):n(R)}function I(R){return R===62?(e.consume(R),P):n(R)}function P(R){return R===null||je(R)?T(R):st(R)?(e.consume(R),P):n(R)}function T(R){return R===45&&a===2?(e.consume(R),U):R===60&&a===1?(e.consume(R),W):R===62&&a===4?(e.consume(R),X):R===63&&a===3?(e.consume(R),k):R===93&&a===5?(e.consume(R),F):je(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(jEe,te,E)(R)):R===null||je(R)?(e.exit("htmlFlowData"),E(R)):(e.consume(R),T)}function E(R){return e.check(DEe,L,te)(R)}function L(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),N}function N(R){return R===null||je(R)?E(R):(e.enter("htmlFlowData"),T(R))}function U(R){return R===45?(e.consume(R),k):T(R)}function W(R){return R===47?(e.consume(R),o="",$):T(R)}function $(R){if(R===62){const J=o.toLowerCase();return rP.includes(J)?(e.consume(R),X):T(R)}return $a(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),$):T(R)}function F(R){return R===93?(e.consume(R),k):T(R)}function k(R){return R===62?(e.consume(R),X):R===45&&a===2?(e.consume(R),k):T(R)}function X(R){return R===null||je(R)?(e.exit("htmlFlowData"),te(R)):(e.consume(R),X)}function te(R){return e.exit("htmlFlow"),t(R)}}function zEe(e,t,n){const r=this;return a;function a(o){return je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function BEe(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(q0,t,n)}}const UEe={name:"htmlText",tokenize:HEe};function HEe(e,t,n){const r=this;let a,i,o;return l;function l(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),O):k===63?(e.consume(k),_):$a(k)?(e.consume(k),C):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),i=0,p):$a(k)?(e.consume(k),v):n(k)}function c(k){return k===45?(e.consume(k),h):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),d):je(k)?(o=f,W(k)):(e.consume(k),f)}function d(k){return k===45?(e.consume(k),h):f(k)}function h(k){return k===62?U(k):k===45?d(k):f(k)}function p(k){const X="CDATA[";return k===X.charCodeAt(i++)?(e.consume(k),i===X.length?g:p):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),b):je(k)?(o=g,W(k)):(e.consume(k),g)}function b(k){return k===93?(e.consume(k),m):g(k)}function m(k){return k===62?U(k):k===93?(e.consume(k),m):g(k)}function v(k){return k===null||k===62?U(k):je(k)?(o=v,W(k)):(e.consume(k),v)}function _(k){return k===null?n(k):k===63?(e.consume(k),x):je(k)?(o=_,W(k)):(e.consume(k),_)}function x(k){return k===62?U(k):_(k)}function O(k){return $a(k)?(e.consume(k),S):n(k)}function S(k){return k===45||fr(k)?(e.consume(k),S):w(k)}function w(k){return je(k)?(o=w,W(k)):st(k)?(e.consume(k),w):U(k)}function C(k){return k===45||fr(k)?(e.consume(k),C):k===47||k===62||Zn(k)?A(k):n(k)}function A(k){return k===47?(e.consume(k),U):k===58||k===95||$a(k)?(e.consume(k),I):je(k)?(o=A,W(k)):st(k)?(e.consume(k),A):U(k)}function I(k){return k===45||k===46||k===58||k===95||fr(k)?(e.consume(k),I):P(k)}function P(k){return k===61?(e.consume(k),T):je(k)?(o=P,W(k)):st(k)?(e.consume(k),P):A(k)}function T(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,E):je(k)?(o=T,W(k)):st(k)?(e.consume(k),T):(e.consume(k),L)}function E(k){return k===a?(e.consume(k),a=void 0,N):k===null?n(k):je(k)?(o=E,W(k)):(e.consume(k),E)}function L(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Zn(k)?A(k):(e.consume(k),L)}function N(k){return k===47||k===62||Zn(k)?A(k):n(k)}function U(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function W(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),$}function $(k){return st(k)?bt(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):F(k)}function F(k){return e.enter("htmlTextData"),o(k)}}const kw={name:"labelEnd",tokenize:XEe,resolveTo:KEe,resolveAll:GEe},WEe={tokenize:YEe},VEe={tokenize:QEe},qEe={tokenize:JEe};function GEe(e){let t=-1;for(;++t=3&&(u===null||je(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===a?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),st(u)?bt(e,l,"whitespace")(u):l(u))}}const Un={name:"list",tokenize:l3e,continuation:{tokenize:s3e},exit:c3e},i3e={tokenize:f3e,partial:!0},o3e={tokenize:u3e,partial:!0};function l3e(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:N5(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vp,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return N5(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(q0,r.interrupt?n:c,e.attempt(i3e,d,f))}function c(h){return r.containerState.initialBlankLine=!0,i++,d(h)}function f(h){return st(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function s3e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(q0,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bt(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!st(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(o3e,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,bt(e,e.attempt(Un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function u3e(e,t,n){const r=this;return bt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function c3e(e){e.exit(this.containerState.type)}function f3e(e,t,n){const r=this;return bt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!st(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const aP={name:"setextUnderline",tokenize:h3e,resolveTo:d3e};function d3e(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function h3e(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),st(u)?bt(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||je(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const p3e={tokenize:m3e};function m3e(e){const t=this,n=e.attempt(q0,r,e.attempt(this.parser.constructs.flowInitial,a,bt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(_Ee,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const g3e={resolveAll:FL()},v3e=NL("string"),y3e=NL("text");function NL(e){return{tokenize:t,resolveAll:FL(e==="text"?b3e:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const f=a[c];let d=-1;if(f)for(;++d-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function w3e(e,t){let n=-1;const r=[];let a;for(;++n0){const He=he.tokenStack[he.tokenStack.length-1];(He[1]||aP).call(he,void 0,He[0])}for(Y.position={start:qi(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:qi(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function K3e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function X3e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function zL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Y3e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zL(e,t);const a={src:Gu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Q3e(e,t){const n={src:Gu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function J3e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Z3e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return zL(e,t);const a={href:Gu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function eke(e,t){const n={href:Gu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tke(e,t,n){const r=e.all(t),a=n?nke(n):BL(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l0){const He=he.tokenStack[he.tokenStack.length-1];(He[1]||oP).call(he,void 0,He[0])}for(Y.position={start:qi(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:qi(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function X3e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Y3e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function UL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Q3e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return UL(e,t);const a={src:Gu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function J3e(e,t){const n={src:Gu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Z3e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function eke(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return UL(e,t);const a={href:Gu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function tke(e,t){const n={href:Gu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nke(e,t,n){const r=e.all(t),a=n?rke(n):HL(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l1}function rke(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=xw(t.children[1]),s=xL(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function ske(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(lP(t.slice(a),a>0,!1)),i.join("")}function lP(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===iP||i===oP;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===iP||i===oP;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function fke(e,t){const n={type:"text",value:cke(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function dke(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const hke={blockquote:U3e,break:H3e,code:W3e,delete:V3e,emphasis:q3e,footnoteReference:G3e,heading:K3e,html:X3e,imageReference:Y3e,image:Q3e,inlineCode:J3e,linkReference:Z3e,link:eke,listItem:tke,list:rke,paragraph:ake,root:ike,strong:oke,table:lke,tableCell:uke,tableRow:ske,text:fke,thematicBreak:dke,toml:Hh,yaml:Hh,definition:Hh,footnoteDefinition:Hh};function Hh(){}const UL=-1,G0=0,lg=1,sg=2,Pw=3,Tw=4,Aw=5,Mw=6,HL=7,WL=8,sP=typeof self=="object"?self:globalThis,pke=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case G0:case UL:return n(o,a);case lg:{const l=n([],a);for(const s of o)l.push(r(s));return l}case sg:{const l=n({},a);for(const[s,u]of o)l[r(s)]=r(u);return l}case Pw:return n(new Date(o),a);case Tw:{const{source:l,flags:s}=o;return n(new RegExp(l,s),a)}case Aw:{const l=n(new Map,a);for(const[s,u]of o)l.set(r(s),r(u));return l}case Mw:{const l=n(new Set,a);for(const s of o)l.add(r(s));return l}case HL:{const{name:l,message:s}=o;return n(new sP[l](s),a)}case WL:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new sP[i](o),a)};return r},uP=e=>pke(new Map,e)(0),ls="",{toString:mke}={},{keys:gke}=Object,Sc=e=>{const t=typeof e;if(t!=="object"||!e)return[G0,t];const n=mke.call(e).slice(8,-1);switch(n){case"Array":return[lg,ls];case"Object":return[sg,ls];case"Date":return[Pw,ls];case"RegExp":return[Tw,ls];case"Map":return[Aw,ls];case"Set":return[Mw,ls]}return n.includes("Array")?[lg,n]:n.includes("Error")?[HL,n]:[sg,n]},Wh=([e,t])=>e===G0&&(t==="function"||t==="symbol"),vke=(e,t,n,r)=>{const a=(o,l)=>{const s=r.push(o)-1;return n.set(l,s),s},i=o=>{if(n.has(o))return n.get(o);let[l,s]=Sc(o);switch(l){case G0:{let c=o;switch(s){case"bigint":l=WL,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return a([UL],o)}return a([l,c],o)}case lg:{if(s)return a([s,[...o]],o);const c=[],f=a([l,c],o);for(const d of o)c.push(i(d));return f}case sg:{if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],f=a([l,c],o);for(const d of gke(o))(e||!Wh(Sc(o[d])))&&c.push([i(d),i(o[d])]);return f}case Pw:return a([l,o.toISOString()],o);case Tw:{const{source:c,flags:f}=o;return a([l,{source:c,flags:f}],o)}case Aw:{const c=[],f=a([l,c],o);for(const[d,h]of o)(e||!(Wh(Sc(d))||Wh(Sc(h))))&&c.push([i(d),i(h)]);return f}case Mw:{const c=[],f=a([l,c],o);for(const d of o)(e||!Wh(Sc(d)))&&c.push(i(d));return f}}const{message:u}=o;return a([l,{name:s,message:u}],o)};return i},cP=(e,{json:t,lossy:n}={})=>{const r=[];return vke(!(t||n),!!t,new Map,r)(e),r},ug=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?uP(cP(e,t)):structuredClone(e):(e,t)=>uP(cP(e,t));function yke(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function bke(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function _ke(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||yke,r=e.options.footnoteBackLabel||bke,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s0&&p.push({type:"text",value:" "});let v=typeof n=="string"?n:n(s,h);typeof v=="string"&&(v={type:"text",value:v}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const v=b.children[b.children.length-1];v&&v.type==="text"?v.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),l.push(m)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...ug(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function rke(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function ake(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=xw(t.children[1]),s=SL(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function uke(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(uP(t.slice(a),a>0,!1)),i.join("")}function uP(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===lP||i===sP;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===lP||i===sP;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function dke(e,t){const n={type:"text",value:fke(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function hke(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pke={blockquote:H3e,break:W3e,code:V3e,delete:q3e,emphasis:G3e,footnoteReference:K3e,heading:X3e,html:Y3e,imageReference:Q3e,image:J3e,inlineCode:Z3e,linkReference:eke,link:tke,listItem:nke,list:ake,paragraph:ike,root:oke,strong:lke,table:ske,tableCell:cke,tableRow:uke,text:dke,thematicBreak:hke,toml:Hh,yaml:Hh,definition:Hh,footnoteDefinition:Hh};function Hh(){}const WL=-1,G0=0,lg=1,sg=2,Pw=3,Tw=4,Aw=5,Mw=6,VL=7,qL=8,cP=typeof self=="object"?self:globalThis,mke=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case G0:case WL:return n(o,a);case lg:{const l=n([],a);for(const s of o)l.push(r(s));return l}case sg:{const l=n({},a);for(const[s,u]of o)l[r(s)]=r(u);return l}case Pw:return n(new Date(o),a);case Tw:{const{source:l,flags:s}=o;return n(new RegExp(l,s),a)}case Aw:{const l=n(new Map,a);for(const[s,u]of o)l.set(r(s),r(u));return l}case Mw:{const l=n(new Set,a);for(const s of o)l.add(r(s));return l}case VL:{const{name:l,message:s}=o;return n(new cP[l](s),a)}case qL:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new cP[i](o),a)};return r},fP=e=>mke(new Map,e)(0),ls="",{toString:gke}={},{keys:vke}=Object,Sc=e=>{const t=typeof e;if(t!=="object"||!e)return[G0,t];const n=gke.call(e).slice(8,-1);switch(n){case"Array":return[lg,ls];case"Object":return[sg,ls];case"Date":return[Pw,ls];case"RegExp":return[Tw,ls];case"Map":return[Aw,ls];case"Set":return[Mw,ls]}return n.includes("Array")?[lg,n]:n.includes("Error")?[VL,n]:[sg,n]},Wh=([e,t])=>e===G0&&(t==="function"||t==="symbol"),yke=(e,t,n,r)=>{const a=(o,l)=>{const s=r.push(o)-1;return n.set(l,s),s},i=o=>{if(n.has(o))return n.get(o);let[l,s]=Sc(o);switch(l){case G0:{let c=o;switch(s){case"bigint":l=qL,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return a([WL],o)}return a([l,c],o)}case lg:{if(s)return a([s,[...o]],o);const c=[],f=a([l,c],o);for(const d of o)c.push(i(d));return f}case sg:{if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],f=a([l,c],o);for(const d of vke(o))(e||!Wh(Sc(o[d])))&&c.push([i(d),i(o[d])]);return f}case Pw:return a([l,o.toISOString()],o);case Tw:{const{source:c,flags:f}=o;return a([l,{source:c,flags:f}],o)}case Aw:{const c=[],f=a([l,c],o);for(const[d,h]of o)(e||!(Wh(Sc(d))||Wh(Sc(h))))&&c.push([i(d),i(h)]);return f}case Mw:{const c=[],f=a([l,c],o);for(const d of o)(e||!Wh(Sc(d)))&&c.push(i(d));return f}}const{message:u}=o;return a([l,{name:s,message:u}],o)};return i},dP=(e,{json:t,lossy:n}={})=>{const r=[];return yke(!(t||n),!!t,new Map,r)(e),r},ug=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fP(dP(e,t)):structuredClone(e):(e,t)=>fP(dP(e,t));function bke(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _ke(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xke(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bke,r=e.options.footnoteBackLabel||_ke,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s0&&p.push({type:"text",value:" "});let v=typeof n=="string"?n:n(s,h);typeof v=="string"&&(v={type:"text",value:v}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const v=b.children[b.children.length-1];v&&v.type==="text"?v.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),l.push(m)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...ug(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` -`}]}}const VL=function(e){if(e==null)return Oke;if(typeof e=="function")return K0(e);if(typeof e=="object")return Array.isArray(e)?xke(e):wke(e);if(typeof e=="string")return Ske(e);throw new Error("Expected function, string, or object as test")};function xke(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let h=qL,p,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(h=Tke(n(s,c)),h[0]===fP))return h;if("children"in s&&s.children){const m=s;if(m.children&&h[0]!==kke)for(g=(r?m.children.length:-1)+o,b=c.concat(m);g>-1&&g":""))+")"})}return d;function d(){let h=KL,p,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(h=Ake(n(s,c)),h[0]===hP))return h;if("children"in s&&s.children){const m=s;if(m.children&&h[0]!==Pke)for(g=(r?m.children.length:-1)+o,b=c.concat(m);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function dP(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hP(e,t){const n=Mke(e,t),r=n.one(e,void 0),a=_ke(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` -`},a),i}function jke(e,t){return e&&"run"in e?async function(n,r){const a=hP(n,{file:r,...t});await e.run(a,r)}:function(n,r){return hP(n,{file:r,...t||e})}}function pP(e){if(e)throw e}var yp=Object.prototype.hasOwnProperty,KL=Object.prototype.toString,mP=Object.defineProperty,gP=Object.getOwnPropertyDescriptor,vP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):KL.call(t)==="[object Array]"},yP=function(t){if(!t||KL.call(t)!=="[object Object]")return!1;var n=yp.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yp.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||yp.call(t,a)},bP=function(t,n){mP&&n.name==="__proto__"?mP(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},_P=function(t,n){if(n==="__proto__")if(yp.call(t,n)){if(gP)return gP(t,n).value}else return;return t[n]},Dke=function e(){var t,n,r,a,i,o,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});so.length;let s;l&&o.push(a);try{s=e.apply(this,o)}catch(u){const c=u;if(l&&n)throw c;return a(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(o,...l){n||(n=!0,t(o,...l))}function i(o){a(null,o)}}const Ca={basename:zke,dirname:Bke,extname:Uke,join:Hke,sep:"/"};function zke(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Gd(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Bke(e){if(Gd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Uke(e){Gd(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Hke(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Vke(e,t){let n="",r=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function Gd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qke={cwd:Gke};function Gke(){return"/"}function U5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Kke(e){if(typeof e=="string")e=new URL(e);else if(!U5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Xke(e)}function Xke(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...p]=c;const g=r[d][1];B5(g)&&B5(h)&&(h=_y(!0,g,h)),r[d]=[u,h,...p]}}}}const Zke=new Iw().freeze();function Oy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ey(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function wP(e){if(!B5(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function SP(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vh(e){return ePe(e)?e:new XL(e)}function ePe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function tPe(e){return typeof e=="string"||nPe(e)}function nPe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const rPe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",OP=[],CP={allowDangerousHtml:!0},aPe=/^(https?|ircs?|mailto|xmpp)$/i,iPe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function oPe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,l=e.rehypePlugins||OP,s=e.remarkPlugins||OP,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...CP}:CP,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||lPe,h=Zke().use(B3e).use(s).use(jke,u).use(l),p=new XL;typeof r=="string"&&(p.value=r);for(const v of iPe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+rPe+v.id,void 0);const g=h.parse(p);let b=h.runSync(g,p);return a&&(b={type:"element",tagName:"div",properties:{className:a},children:b.type==="root"?b.children:[b]}),GL(b,m),b6e(b,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function m(v,_,x){if(v.type==="raw"&&x&&typeof _=="number")return c?x.children.splice(_,1):x.children[_]={type:"text",value:v.value},_;if(v.type==="element"){let O;for(O in vy)if(Object.hasOwn(vy,O)&&Object.hasOwn(v.properties,O)){const S=v.properties[O],w=vy[O];(w===null||w.includes(v.tagName))&&(v.properties[O]=d(String(S||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):o?o.includes(v.tagName):!1;if(!O&&n&&typeof _=="number"&&(O=!n(v,_,x)),O&&x&&typeof _=="number")return f&&v.children?x.children.splice(_,1,...v.children):x.children.splice(_,1),_}}}function lPe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||aPe.test(e.slice(0,t))?e:""}const sPe=({message:e})=>j.jsx(Dg,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"Astro:"})," ",j.jsx(oPe,{children:e.data.text})]})}),uPe=()=>j.jsx(Dg,{children:j.jsx(Sd,{component:El.p,children:j.jsx("b",{children:" Session started"})})}),cPe=({message:e})=>{if(e.data.text!=="/intent_core_session_start")return j.jsx(Dg,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"User:"})," ",e.data.text,j.jsxs("div",{children:["  (",e.data.parse_data.intent.name,")  ",j.jsx(p_,{date:new Date(e.timestamp*1e3)})]})]})})};var fPe=["date","verboseDate","tooltip","children"];function H5(){return H5=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hPe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function cg(e,t){var n=e.date,r=e.verboseDate,a=e.tooltip,i=e.children,o=dPe(e,fPe),l=y.useMemo(function(){return n.toISOString()},[n]);return M.createElement("time",H5({ref:t},o,{dateTime:l,title:a?r:void 0}),i)}cg=M.forwardRef(cg);cg.propTypes={date:tt.instanceOf(Date).isRequired,verboseDate:tt.string,tooltip:tt.bool.isRequired,children:tt.string.isRequired};var EP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function pPe(e,t){return!!(e===t||EP(e)&&EP(t))}function mPe(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"?"undefined":W5(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function fg(e){"@babel/helpers - typeof";return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fg(e)}function yPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kP(e,t){for(var n=0;n"u"?ui:window,qh=["moz","webkit"],Gs="AnimationFrame",ku=_i["request"+Gs],nd=_i["cancel"+Gs]||_i["cancelRequest"+Gs];for(var Oc=0;!ku&&Ocr)return n}else if(r=a-1,re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.nextUpdateTime)RP(n,this.instances);else break}},scheduleNextTick:function(){var t=this;this.scheduledTick=MP(function(){t.tick(),t.scheduleNextTick()})},start:function(){this.scheduleNextTick()},stop:function(){MP.cancel(this.scheduledTick)}};function zPe(e){var t=e.getNextValue(),n=$Pe(t,2),r=n[0],a=n[1];e.setValue(r),e.nextUpdateTime=a}function RP(e,t){zPe(e),ZL(t,e),JL(t,e)}function JL(e,t){var n=BPe(e,t);e.splice(n,0,t)}function ZL(e,t){var n=e.indexOf(t);e.splice(n,1)}function BPe(e,t){var n=t.nextUpdateTime;return RPe(e,function(r){return r.nextUpdateTime===n?0:r.nextUpdateTime>n?1:-1})}function Gh(e,t){return VPe(e)||WPe(e,t)||HPe(e,t)||UPe()}function UPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HPe(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 $P(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.getTime()&&(W=t.getTime(),$=!0),l!==void 0){var F=t.getTime()-l*1e3;W>F&&(W=F,$=!0)}var k=_.format(t,i,{getTimeToNextUpdate:!0,now:W,future:n,round:o}),X=Gh(k,2),te=X[0],R=X[1];return $?R=KPe:R=f||R||60*1e3,[te,W+R]},[t,n,i,f,o,l,_,p]),O=y.useRef();O.current=x;var S=y.useMemo(x,[]),w=Gh(S,2),C=w[0],A=w[1],I=y.useState(C),P=Gh(I,2),T=P[0],E=P[1],L=y.useRef();y.useEffect(function(){if(h)return L.current=FPe.add({getNextValue:function(){return O.current()},setValue:E,nextUpdateTime:A}),function(){return L.current.stop()}},[h]),y.useEffect(function(){if(L.current)L.current.forceUpdate();else{var W=x(),$=Gh(W,1),F=$[0];E(F)}},[x]);var N=y.useMemo(function(){return SPe(v,c)},[v,c]),U=y.useMemo(function(){return s?s(t):N(t)},[t,s,N]);return{date:t,formattedDate:T,verboseDate:U}}var GPe=365*24*60*60*1e3,KPe=1e3*GPe,XPe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},q5=tt.oneOfType,LP=tt.arrayOf,As=tt.string,jP=tt.number,Dc=tt.shape,Kh=tt.func,YPe=q5([Dc({minTime:jP,formatAs:As.isRequired}),Dc({test:Kh,formatAs:As.isRequired}),Dc({minTime:jP,format:Kh.isRequired}),Dc({test:Kh,format:Kh.isRequired})]),QPe=q5([As,Dc({steps:LP(YPe).isRequired,labels:q5([As,LP(As)]).isRequired,round:As})]),JPe=["date","future","timeStyle","round","minTimeLeft","locale","locales","formatVerboseDate","verboseDateFormat","updateInterval","tick","now","timeOffset","polyfill","tooltip","component","container","wrapperComponent","wrapperProps"];function dg(){return dg=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function e7e(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function hg(e){var t=e.date,n=e.future,r=e.timeStyle,a=e.round,i=e.minTimeLeft,o=e.locale,l=e.locales,s=l===void 0?[]:l,u=e.formatVerboseDate,c=e.verboseDateFormat,f=e.updateInterval,d=e.tick,h=e.now,p=e.timeOffset,g=e.polyfill,b=e.tooltip,m=b===void 0?!0:b,v=e.component,_=v===void 0?cg:v,x=e.container,O=e.wrapperComponent,S=e.wrapperProps,w=ZPe(e,JPe),C=qPe({date:t,future:n,timeStyle:r,round:a,minTimeLeft:i,locale:o,locales:s,formatVerboseDate:u,verboseDateFormat:c,updateInterval:f,tick:d,now:h,timeOffset:p,polyfill:g}),A=C.date,I=C.verboseDate,P=C.formattedDate,T=M.createElement(_,dg({date:A,verboseDate:I,tooltip:m},w),P),E=O||x;return E?M.createElement(E,dg({},S,{verboseDate:I}),T):T}hg.propTypes={date:tt.oneOfType([tt.instanceOf(Date),tt.number]).isRequired,locale:tt.string,locales:tt.arrayOf(tt.string),future:tt.bool,timeStyle:QPe,round:tt.string,minTimeLeft:tt.number,component:tt.elementType,tooltip:tt.bool,formatVerboseDate:tt.func,verboseDateFormat:tt.object,updateInterval:tt.oneOfType([tt.number,tt.arrayOf(tt.shape({threshold:tt.number,interval:tt.number.isRequired}))]),tick:tt.bool,now:tt.number,timeOffset:tt.number,polyfill:tt.bool,wrapperComponent:tt.elementType,wrapperProps:tt.object};hg=M.memo(hg);const t7e=hg,ej=({session:e,displaySender:t})=>{const[n,r]=y.useState(!0);return j.jsxs(ra,{isExpanded:n,children:[j.jsx(UT,{isToggleRightAligned:!0,onExpand:()=>r(a=>!a),children:j.jsxs(Fs,{children:["Started ",j.jsx(t7e,{timeStyle:"round-minute",date:new Date(e.timestamp*1e3)})," ",!e.hasSessionStarted&&" (or before) ",j.jsx(p_,{date:new Date(e.timestamp*1e3)}),t?j.jsxs(j.Fragment,{children:[j.jsx("br",{})," ",e.senderId]}):""]})}),j.jsx(DT,{children:j.jsx(Af,{children:e.messages.map(a=>{switch(a.type_name){case"bot":return j.jsx(sPe,{message:a},a.id);case"session_started":return j.jsx(uPe,{message:a},a.id);case"user":return j.jsx(cPe,{message:a},a.id)}})})})]})},n7e=()=>{const{senderId:e}=MU(),t=yw(e),n=t.isFirstLoad||t.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(dr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/senders",children:"Senders"})}),j.jsx(Dr,{children:e})]})}),t.isFirstLoad?j.jsx(Id,{}):j.jsxs(dr,{children:[j.jsx("ul",{children:t.sessions.map(r=>j.jsxs(j.Fragment,{children:[j.jsx(ej,{session:r},r.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>t.loadMore(),isLoading:n,isDisabled:n,children:"Load more"})]})]})},r7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(dr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Timeline"})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(dr,{children:[j.jsx("ul",{children:e.sessions.map(n=>j.jsxs(j.Fragment,{children:[j.jsx(ej,{session:n,displaySender:!0},n.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})},a7e=({messages:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Messages"}),j.jsx(I_,{children:j.jsxs(Nf,{children:[j.jsx(Cs,{width:45,children:"Message"}),j.jsx(Cs,{width:25,children:"Intent"}),j.jsx(Cs,{width:15,children:"Confidence"}),j.jsx(Cs,{width:15,children:"Sender id"})]})}),j.jsx(R_,{children:e.map(t=>j.jsxs(Nf,{children:[j.jsx(Es,{children:t.data.text}),j.jsx(Es,{children:t.data.parse_data.intent.name}),j.jsx(Es,{children:Math.round(t.data.parse_data.intent.confidence*100)/100}),j.jsx(Es,{children:j.jsxs(di,{to:`/senders/${t.sender_id}`,children:[t.sender_id.slice(0,5),"..."]})})]},t.data.message_id))})]}),i7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading,[n,r]=M.useState(""),[a,i]=M.useState(!1),o=M.useCallback(u=>{const c=[];u.forEach(f=>{let d=!1;if(f.messages.forEach(p=>{if(p.type_name==="slot"&&p.data.name==="is_internal"){p.data.value===!0&&(d=!0);return}}),a&&d)return;f.messages.filter(p=>p.type_name!=="user"||p.data.text.startsWith("/")?!1:n!==""?p.data.parse_data.intent.name.includes(n.toLowerCase())||p.data.text.toLowerCase().includes(n.toLowerCase())||p.sender_id.includes(n):!0).forEach(p=>{const g=p;g.is_internal=d,c.push(g)})}),s(c)},[a,n]),[l,s]=M.useState([]);return M.useEffect(()=>{o(e.sessions)},[e.sessions,a,n,o]),j.jsxs(j.Fragment,{children:[j.jsx(dr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/messages",children:"Messages"})})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(j.Fragment,{children:[j.jsx(dr,{variant:so.light,children:j.jsxs(AA,{hasGutter:!0,children:[j.jsx(cp,{children:j.jsx(gA,{placeholder:"Search by intent, message, or sender id",value:n,onChange:(u,c)=>r(c),onClear:()=>r("")})}),j.jsx(cp,{isFilled:!0}),j.jsx(cp,{children:j.jsx("div",{style:{paddingTop:"10px"},children:j.jsx(sr,{id:"toggle-external-only",label:"External Only",isChecked:a,onChange:(u,c)=>i(c)})})})]})}),j.jsxs(dr,{children:[j.jsx(a7e,{messages:l}),j.jsx("br",{}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})]})};Fr.addDefaultLocale(xZ);const o7e=JU([{path:"/",element:j.jsx(dH,{}),children:[{index:!0,loader:async()=>eU("/dashboard")},{path:"dashboard",element:j.jsx(RCe,{})},{path:"senders",element:j.jsx(eJ,{})},{path:"senders/:senderId",element:j.jsx(n7e,{})},{path:"timeline",element:j.jsx(r7e,{})},{path:"messages",element:j.jsx(i7e,{})}]}]),l7e=new VW;Ty.createRoot(document.getElementById("root")).render(j.jsx(M.StrictMode,{children:j.jsx(YW,{client:l7e,children:j.jsx(lH,{router:o7e})})})); +`}),n}function pP(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function mP(e,t){const n=Ike(e,t),r=n.one(e,void 0),a=xke(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` +`},a),i}function Dke(e,t){return e&&"run"in e?async function(n,r){const a=mP(n,{file:r,...t});await e.run(a,r)}:function(n,r){return mP(n,{file:r,...t||e})}}function gP(e){if(e)throw e}var yp=Object.prototype.hasOwnProperty,YL=Object.prototype.toString,vP=Object.defineProperty,yP=Object.getOwnPropertyDescriptor,bP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):YL.call(t)==="[object Array]"},_P=function(t){if(!t||YL.call(t)!=="[object Object]")return!1;var n=yp.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yp.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||yp.call(t,a)},xP=function(t,n){vP&&n.name==="__proto__"?vP(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},wP=function(t,n){if(n==="__proto__")if(yp.call(t,n)){if(yP)return yP(t,n).value}else return;return t[n]},Nke=function e(){var t,n,r,a,i,o,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});so.length;let s;l&&o.push(a);try{s=e.apply(this,o)}catch(u){const c=u;if(l&&n)throw c;return a(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(o,...l){n||(n=!0,t(o,...l))}function i(o){a(null,o)}}const Ca={basename:Bke,dirname:Uke,extname:Hke,join:Wke,sep:"/"};function Bke(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Gd(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Uke(e){if(Gd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Hke(e){Gd(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Wke(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function qke(e,t){let n="",r=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function Gd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gke={cwd:Kke};function Kke(){return"/"}function U5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xke(e){if(typeof e=="string")e=new URL(e);else if(!U5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Yke(e)}function Yke(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...p]=c;const g=r[d][1];B5(g)&&B5(h)&&(h=_y(!0,g,h)),r[d]=[u,h,...p]}}}}const ePe=new Iw().freeze();function Oy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ey(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function OP(e){if(!B5(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function CP(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vh(e){return tPe(e)?e:new QL(e)}function tPe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nPe(e){return typeof e=="string"||rPe(e)}function rPe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aPe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",EP=[],kP={allowDangerousHtml:!0},iPe=/^(https?|ircs?|mailto|xmpp)$/i,oPe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lPe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,l=e.rehypePlugins||EP,s=e.remarkPlugins||EP,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kP}:kP,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||sPe,h=ePe().use(U3e).use(s).use(Dke,u).use(l),p=new QL;typeof r=="string"&&(p.value=r);for(const v of oPe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+aPe+v.id,void 0);const g=h.parse(p);let b=h.runSync(g,p);return a&&(b={type:"element",tagName:"div",properties:{className:a},children:b.type==="root"?b.children:[b]}),XL(b,m),_6e(b,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function m(v,_,x){if(v.type==="raw"&&x&&typeof _=="number")return c?x.children.splice(_,1):x.children[_]={type:"text",value:v.value},_;if(v.type==="element"){let O;for(O in vy)if(Object.hasOwn(vy,O)&&Object.hasOwn(v.properties,O)){const S=v.properties[O],w=vy[O];(w===null||w.includes(v.tagName))&&(v.properties[O]=d(String(S||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):o?o.includes(v.tagName):!1;if(!O&&n&&typeof _=="number"&&(O=!n(v,_,x)),O&&x&&typeof _=="number")return f&&v.children?x.children.splice(_,1,...v.children):x.children.splice(_,1),_}}}function sPe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||iPe.test(e.slice(0,t))?e:""}const uPe=({message:e})=>j.jsx(Dg,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"Astro:"})," ",j.jsx(lPe,{children:e.data.text})]})}),cPe=()=>j.jsx(Dg,{children:j.jsx(Sd,{component:El.p,children:j.jsx("b",{children:" Session started"})})}),fPe=({message:e})=>{if(e.data.text!=="/intent_core_session_start")return j.jsx(Dg,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"User:"})," ",e.data.text,j.jsxs("div",{children:["  (",e.data.parse_data.intent.name,")  ",j.jsx(p_,{date:new Date(e.timestamp*1e3)})]})]})})};var dPe=["date","verboseDate","tooltip","children"];function H5(){return H5=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pPe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function cg(e,t){var n=e.date,r=e.verboseDate,a=e.tooltip,i=e.children,o=hPe(e,dPe),l=y.useMemo(function(){return n.toISOString()},[n]);return M.createElement("time",H5({ref:t},o,{dateTime:l,title:a?r:void 0}),i)}cg=M.forwardRef(cg);cg.propTypes={date:tt.instanceOf(Date).isRequired,verboseDate:tt.string,tooltip:tt.bool.isRequired,children:tt.string.isRequired};var PP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function mPe(e,t){return!!(e===t||PP(e)&&PP(t))}function gPe(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"?"undefined":W5(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function fg(e){"@babel/helpers - typeof";return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fg(e)}function bPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TP(e,t){for(var n=0;n"u"?ui:window,qh=["moz","webkit"],Gs="AnimationFrame",ku=_i["request"+Gs],nd=_i["cancel"+Gs]||_i["cancelRequest"+Gs];for(var Oc=0;!ku&&Ocr)return n}else if(r=a-1,re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.nextUpdateTime)LP(n,this.instances);else break}},scheduleNextTick:function(){var t=this;this.scheduledTick=RP(function(){t.tick(),t.scheduleNextTick()})},start:function(){this.scheduleNextTick()},stop:function(){RP.cancel(this.scheduledTick)}};function BPe(e){var t=e.getNextValue(),n=LPe(t,2),r=n[0],a=n[1];e.setValue(r),e.nextUpdateTime=a}function LP(e,t){BPe(e),tj(t,e),ej(t,e)}function ej(e,t){var n=UPe(e,t);e.splice(n,0,t)}function tj(e,t){var n=e.indexOf(t);e.splice(n,1)}function UPe(e,t){var n=t.nextUpdateTime;return $Pe(e,function(r){return r.nextUpdateTime===n?0:r.nextUpdateTime>n?1:-1})}function Gh(e,t){return qPe(e)||VPe(e,t)||WPe(e,t)||HPe()}function HPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WPe(e,t){if(e){if(typeof e=="string")return jP(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 jP(e,t)}}function jP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.getTime()&&(W=t.getTime(),$=!0),l!==void 0){var F=t.getTime()-l*1e3;W>F&&(W=F,$=!0)}var k=_.format(t,i,{getTimeToNextUpdate:!0,now:W,future:n,round:o}),X=Gh(k,2),te=X[0],R=X[1];return $?R=XPe:R=f||R||60*1e3,[te,W+R]},[t,n,i,f,o,l,_,p]),O=y.useRef();O.current=x;var S=y.useMemo(x,[]),w=Gh(S,2),C=w[0],A=w[1],I=y.useState(C),P=Gh(I,2),T=P[0],E=P[1],L=y.useRef();y.useEffect(function(){if(h)return L.current=zPe.add({getNextValue:function(){return O.current()},setValue:E,nextUpdateTime:A}),function(){return L.current.stop()}},[h]),y.useEffect(function(){if(L.current)L.current.forceUpdate();else{var W=x(),$=Gh(W,1),F=$[0];E(F)}},[x]);var N=y.useMemo(function(){return OPe(v,c)},[v,c]),U=y.useMemo(function(){return s?s(t):N(t)},[t,s,N]);return{date:t,formattedDate:T,verboseDate:U}}var KPe=365*24*60*60*1e3,XPe=1e3*KPe,YPe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},q5=tt.oneOfType,DP=tt.arrayOf,As=tt.string,NP=tt.number,Dc=tt.shape,Kh=tt.func,QPe=q5([Dc({minTime:NP,formatAs:As.isRequired}),Dc({test:Kh,formatAs:As.isRequired}),Dc({minTime:NP,format:Kh.isRequired}),Dc({test:Kh,format:Kh.isRequired})]),JPe=q5([As,Dc({steps:DP(QPe).isRequired,labels:q5([As,DP(As)]).isRequired,round:As})]),ZPe=["date","future","timeStyle","round","minTimeLeft","locale","locales","formatVerboseDate","verboseDateFormat","updateInterval","tick","now","timeOffset","polyfill","tooltip","component","container","wrapperComponent","wrapperProps"];function dg(){return dg=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t7e(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function hg(e){var t=e.date,n=e.future,r=e.timeStyle,a=e.round,i=e.minTimeLeft,o=e.locale,l=e.locales,s=l===void 0?[]:l,u=e.formatVerboseDate,c=e.verboseDateFormat,f=e.updateInterval,d=e.tick,h=e.now,p=e.timeOffset,g=e.polyfill,b=e.tooltip,m=b===void 0?!0:b,v=e.component,_=v===void 0?cg:v,x=e.container,O=e.wrapperComponent,S=e.wrapperProps,w=e7e(e,ZPe),C=GPe({date:t,future:n,timeStyle:r,round:a,minTimeLeft:i,locale:o,locales:s,formatVerboseDate:u,verboseDateFormat:c,updateInterval:f,tick:d,now:h,timeOffset:p,polyfill:g}),A=C.date,I=C.verboseDate,P=C.formattedDate,T=M.createElement(_,dg({date:A,verboseDate:I,tooltip:m},w),P),E=O||x;return E?M.createElement(E,dg({},S,{verboseDate:I}),T):T}hg.propTypes={date:tt.oneOfType([tt.instanceOf(Date),tt.number]).isRequired,locale:tt.string,locales:tt.arrayOf(tt.string),future:tt.bool,timeStyle:JPe,round:tt.string,minTimeLeft:tt.number,component:tt.elementType,tooltip:tt.bool,formatVerboseDate:tt.func,verboseDateFormat:tt.object,updateInterval:tt.oneOfType([tt.number,tt.arrayOf(tt.shape({threshold:tt.number,interval:tt.number.isRequired}))]),tick:tt.bool,now:tt.number,timeOffset:tt.number,polyfill:tt.bool,wrapperComponent:tt.elementType,wrapperProps:tt.object};hg=M.memo(hg);const n7e=hg,nj=({session:e,displaySender:t})=>{const[n,r]=y.useState(!0);return j.jsxs(ra,{isExpanded:n,children:[j.jsx(WT,{isToggleRightAligned:!0,onExpand:()=>r(a=>!a),children:j.jsxs(Fs,{children:["Started ",j.jsx(n7e,{timeStyle:"round-minute",date:new Date(e.timestamp*1e3)})," ",!e.hasSessionStarted&&" (or before) ",j.jsx(p_,{date:new Date(e.timestamp*1e3)}),t?j.jsxs(j.Fragment,{children:[j.jsx("br",{})," ",e.senderId]}):""]})}),j.jsx(FT,{children:j.jsx(Af,{children:e.messages.map(a=>{switch(a.type_name){case"bot":return j.jsx(uPe,{message:a},a.id);case"session_started":return j.jsx(cPe,{message:a},a.id);case"user":return j.jsx(fPe,{message:a},a.id)}})})})]})},r7e=()=>{const{senderId:e}=IU(),t=yw(e),n=t.isFirstLoad||t.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/senders",children:"Senders"})}),j.jsx(Dr,{children:e})]})}),t.isFirstLoad?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx("ul",{children:t.sessions.map(r=>j.jsxs(j.Fragment,{children:[j.jsx(nj,{session:r},r.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>t.loadMore(),isLoading:n,isDisabled:n,children:"Load more"})]})]})},a7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Timeline"})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx("ul",{children:e.sessions.map(n=>j.jsxs(j.Fragment,{children:[j.jsx(nj,{session:n,displaySender:!0},n.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})},i7e=({messages:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Messages"}),j.jsx(I_,{children:j.jsxs(Nf,{children:[j.jsx(Cs,{width:45,children:"Message"}),j.jsx(Cs,{width:25,children:"Intent"}),j.jsx(Cs,{width:15,children:"Confidence"}),j.jsx(Cs,{width:15,children:"Sender id"})]})}),j.jsx(R_,{children:e.map(t=>j.jsxs(Nf,{children:[j.jsx(Es,{children:t.data.text}),j.jsx(Es,{children:t.data.parse_data.intent.name}),j.jsx(Es,{children:Math.round(t.data.parse_data.intent.confidence*100)/100}),j.jsx(Es,{children:j.jsxs(di,{to:`/senders/${t.sender_id}`,children:[t.sender_id.slice(0,5),"..."]})})]},t.data.message_id))})]}),o7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading,[n,r]=M.useState(""),[a,i]=M.useState(!1),o=M.useCallback(u=>{const c=[];u.forEach(f=>{let d=!1;if(f.messages.forEach(p=>{if(p.type_name==="slot"&&p.data.name==="is_internal"){p.data.value===!0&&(d=!0);return}}),a&&d)return;f.messages.filter(p=>p.type_name!=="user"||p.data.text.startsWith("/")?!1:n!==""?p.data.parse_data.intent.name.includes(n.toLowerCase())||p.data.text.toLowerCase().includes(n.toLowerCase())||p.sender_id.includes(n):!0).forEach(p=>{const g=p;g.is_internal=d,c.push(g)})}),s(c)},[a,n]),[l,s]=M.useState([]);return M.useEffect(()=>{o(e.sessions)},[e.sessions,a,n,o]),j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/messages",children:"Messages"})})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(j.Fragment,{children:[j.jsx(hr,{variant:so.light,children:j.jsxs(IA,{hasGutter:!0,children:[j.jsx(cp,{children:j.jsx(yA,{placeholder:"Search by intent, message, or sender id",value:n,onChange:(u,c)=>r(c),onClear:()=>r("")})}),j.jsx(cp,{isFilled:!0}),j.jsx(cp,{children:j.jsx("div",{style:{paddingTop:"10px"},children:j.jsx(ur,{id:"toggle-external-only",label:"External Only",isChecked:a,onChange:(u,c)=>i(c)})})})]})}),j.jsxs(hr,{children:[j.jsx(i7e,{messages:l}),j.jsx("br",{}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})]})};Fr.addDefaultLocale(wZ);const l7e=ZU([{path:"/",element:j.jsx(hH,{}),children:[{index:!0,loader:async()=>tU("/dashboard")},{path:"dashboard",element:j.jsx($Ce,{})},{path:"senders",element:j.jsx(tJ,{})},{path:"senders/:senderId",element:j.jsx(r7e,{})},{path:"timeline",element:j.jsx(a7e,{})},{path:"messages",element:j.jsx(o7e,{})}]}]),s7e=new qW;Ty.createRoot(document.getElementById("root")).render(j.jsx(M.StrictMode,{children:j.jsx(QW,{client:s7e,children:j.jsx(sH,{router:l7e})})})); diff --git a/internal/public/index.html b/internal/public/index.html index b2c680cc..488f7f35 100644 --- a/internal/public/index.html +++ b/internal/public/index.html @@ -4,7 +4,7 @@ Astro internal UI - + From fc1b54c4bf821b7844f160a4ffdd14695432620c Mon Sep 17 00:00:00 2001 From: Justin Orringer Date: Wed, 13 Nov 2024 16:30:03 -0500 Subject: [PATCH 2/2] Changing icon --- .../src/components/DashboardComponent.tsx | 16 +-- .../{index-Cq3OpZlG.js => index-CeYjGDAt.js} | 134 +++++++++--------- internal/public/index.html | 2 +- 3 files changed, 76 insertions(+), 76 deletions(-) rename internal/public/assets/{index-Cq3OpZlG.js => index-CeYjGDAt.js} (79%) diff --git a/internal-ui/src/components/DashboardComponent.tsx b/internal-ui/src/components/DashboardComponent.tsx index dc4458ad..63d9095a 100644 --- a/internal-ui/src/components/DashboardComponent.tsx +++ b/internal-ui/src/components/DashboardComponent.tsx @@ -400,6 +400,14 @@ export const DashboardComponent = () => { }>{totalConversations} Conversations + {contactAdminUsage > 0 && + }>{contactAdminUsage * TIME_TO_LOOK_UP_ORG_ADMIN} Engineering Hours Saved + + + } }>{averageSessionTime} Minutes Active on Average }>{Math.floor(((userMessageCount - (intentCounts["nlu_fallback"] || 0)) / userMessageCount) * 100)}% Intents Recognized }>{firstTimeUsers} First Time Users @@ -411,14 +419,6 @@ export const DashboardComponent = () => { /> } - {contactAdminUsage > 0 && - }>{contactAdminUsage * TIME_TO_LOOK_UP_ORG_ADMIN} Engineering Hours Saved - - - } diff --git a/internal/public/assets/index-Cq3OpZlG.js b/internal/public/assets/index-CeYjGDAt.js similarity index 79% rename from internal/public/assets/index-Cq3OpZlG.js rename to internal/public/assets/index-CeYjGDAt.js index 0db186f3..07b9db79 100644 --- a/internal/public/assets/index-Cq3OpZlG.js +++ b/internal/public/assets/index-CeYjGDAt.js @@ -1,4 +1,4 @@ -var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Oe=(e,t,n,r)=>(Y0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Jd=(e,t,n,r)=>({set _(a){Oe(e,t,a,n)},get _(){return V(e,t,r)}}),et=(e,t,n)=>(Y0(e,t,"access private method"),n);function KP(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var XP={exports:{}},mg={},YP={exports:{}},Qe={};/** +var Q0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Q0(e,t,"read from private field"),n?n.call(e):t.get(e)),Me=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Oe=(e,t,n,r)=>(Q0(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Jd=(e,t,n,r)=>({set _(a){Oe(e,t,a,n)},get _(){return V(e,t,r)}}),et=(e,t,n)=>(Q0(e,t,"access private method"),n);function GP(e,t){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function at(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var KP={exports:{}},gg={},XP={exports:{}},Qe={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var pd=Symbol.for("react.element"),aj=Symbol.for("react.portal"),ij=Symbol.for("react.fragment"),oj=Symbol.for("react.strict_mode"),lj=Symbol.for("react.profiler"),sj=Symbol.for("react.provider"),uj=Symbol.for("react.context"),cj=Symbol.for("react.forward_ref"),fj=Symbol.for("react.suspense"),dj=Symbol.for("react.memo"),hj=Symbol.for("react.lazy"),$w=Symbol.iterator;function pj(e){return e===null||typeof e!="object"?null:(e=$w&&e[$w]||e["@@iterator"],typeof e=="function"?e:null)}var QP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JP=Object.assign,ZP={};function Pu(e,t,n){this.props=e,this.context=t,this.refs=ZP,this.updater=n||QP}Pu.prototype.isReactComponent={};Pu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Pu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function e7(){}e7.prototype=Pu.prototype;function G5(e,t,n){this.props=e,this.context=t,this.refs=ZP,this.updater=n||QP}var K5=G5.prototype=new e7;K5.constructor=G5;JP(K5,Pu.prototype);K5.isPureReactComponent=!0;var Lw=Array.isArray,t7=Object.prototype.hasOwnProperty,X5={current:null},n7={key:!0,ref:!0,__self:!0,__source:!0};function r7(e,t,n){var r,a={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)t7.call(t,r)&&!n7.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(l===1)a.children=n;else if(1{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _j=y,xj=Symbol.for("react.element"),wj=Symbol.for("react.fragment"),Sj=Object.prototype.hasOwnProperty,Oj=_j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cj={key:!0,ref:!0,__self:!0,__source:!0};function a7(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Sj.call(t,r)&&!Cj.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:xj,type:e,key:i,ref:o,props:a,_owner:Oj.current}}mg.Fragment=wj;mg.jsx=a7;mg.jsxs=a7;XP.exports=mg;var j=XP.exports,Ty={},i7={exports:{}},gr={},o7={exports:{}},l7={};/** + */var bj=y,_j=Symbol.for("react.element"),xj=Symbol.for("react.fragment"),wj=Object.prototype.hasOwnProperty,Sj=bj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Oj={key:!0,ref:!0,__self:!0,__source:!0};function r7(e,t,n){var r,a={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)wj.call(t,r)&&!Oj.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:_j,type:e,key:i,ref:o,props:a,_owner:Sj.current}}gg.Fragment=xj;gg.jsx=r7;gg.jsxs=r7;KP.exports=gg;var j=KP.exports,Ay={},a7={exports:{}},gr={},i7={exports:{}},o7={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t($,F){var k=$.length;$.push(F);e:for(;0>>1,te=$[X];if(0>>1;Xa(ae,k))uea(ve,ae)?($[X]=ve,$[ue]=k,X=ue):($[X]=ae,$[J]=k,X=J);else if(uea(ve,k))$[X]=ve,$[ue]=k,X=ue;else break e}}return F}function a($,F){var k=$.sortIndex-F.sortIndex;return k!==0?k:$.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=$)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function x($){if(g=!1,_($),!p)if(n(s)!==null)p=!0,U(O);else{var F=n(u);F!==null&&W(x,F.startTime-$)}}function O($,F){p=!1,g&&(g=!1,m(C),C=-1),h=!0;var k=d;try{for(_(F),f=n(s);f!==null&&(!(f.expirationTime>F)||$&&!P());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var te=X(f.expirationTime<=F);F=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(s)&&r(s),_(F)}else r(s);f=n(s)}if(f!==null)var R=!0;else{var J=n(u);J!==null&&W(x,J.startTime-F),R=!1}return R}finally{f=null,d=k,h=!1}}var S=!1,w=null,C=-1,A=5,I=-1;function P(){return!(e.unstable_now()-I$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var k=d;d=F;try{return $()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var k=d;d=$;try{return F()}finally{d=k}},e.unstable_scheduleCallback=function($,F,k){var X=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0X?($.sortIndex=k,t(u,$),n(s)===null&&$===n(u)&&(g?(m(C),C=-1):g=!0,W(x,k-X))):($.sortIndex=te,t(s,$),p||h||(p=!0,U(O))),$},e.unstable_shouldYield=P,e.unstable_wrapCallback=function($){var F=d;return function(){var k=d;d=F;try{return $.apply(this,arguments)}finally{d=k}}}})(l7);o7.exports=l7;var Ej=o7.exports;/** + */(function(e){function t($,F){var k=$.length;$.push(F);e:for(;0>>1,te=$[X];if(0>>1;Xa(ae,k))uea(ve,ae)?($[X]=ve,$[ue]=k,X=ue):($[X]=ae,$[J]=k,X=J);else if(uea(ve,k))$[X]=ve,$[ue]=k,X=ue;else break e}}return F}function a($,F){var k=$.sortIndex-F.sortIndex;return k!==0?k:$.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],c=1,f=null,d=3,h=!1,p=!1,g=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=$)r(u),F.sortIndex=F.expirationTime,t(s,F);else break;F=n(u)}}function x($){if(g=!1,_($),!p)if(n(s)!==null)p=!0,U(O);else{var F=n(u);F!==null&&W(x,F.startTime-$)}}function O($,F){p=!1,g&&(g=!1,m(C),C=-1),h=!0;var k=d;try{for(_(F),f=n(s);f!==null&&(!(f.expirationTime>F)||$&&!P());){var X=f.callback;if(typeof X=="function"){f.callback=null,d=f.priorityLevel;var te=X(f.expirationTime<=F);F=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(s)&&r(s),_(F)}else r(s);f=n(s)}if(f!==null)var R=!0;else{var J=n(u);J!==null&&W(x,J.startTime-F),R=!1}return R}finally{f=null,d=k,h=!1}}var S=!1,w=null,C=-1,A=5,I=-1;function P(){return!(e.unstable_now()-I$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var k=d;d=F;try{return $()}finally{d=k}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var k=d;d=$;try{return F()}finally{d=k}},e.unstable_scheduleCallback=function($,F,k){var X=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0X?($.sortIndex=k,t(u,$),n(s)===null&&$===n(u)&&(g?(m(C),C=-1):g=!0,W(x,k-X))):($.sortIndex=te,t(s,$),p||h||(p=!0,U(O))),$},e.unstable_shouldYield=P,e.unstable_wrapCallback=function($){var F=d;return function(){var k=d;d=F;try{return $.apply(this,arguments)}finally{d=k}}}})(o7);i7.exports=o7;var Cj=i7.exports;/** * @license React * react-dom.production.min.js * @@ -30,20 +30,20 @@ var Y0=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var V=(e,t,n)=>(Y0(e * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var s7=y,pr=Ej;function ce(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ay=Object.prototype.hasOwnProperty,kj=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dw={},Nw={};function Pj(e){return Ay.call(Nw,e)?!0:Ay.call(Dw,e)?!1:kj.test(e)?Nw[e]=!0:(Dw[e]=!0,!1)}function Tj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Aj(e,t,n,r){if(t===null||typeof t>"u"||Tj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fn(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yn[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Q5=/[\-:]([a-z])/g;function J5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Q5,J5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z5(e,t,n,r){var a=yn.hasOwnProperty(t)?yn[t]:null;(a!==null?a.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),My=Object.prototype.hasOwnProperty,Ej=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Dw={},Nw={};function kj(e){return My.call(Nw,e)?!0:My.call(Dw,e)?!1:Ej.test(e)?Nw[e]=!0:(Dw[e]=!0,!1)}function Pj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Tj(e,t,n,r){if(t===null||typeof t>"u"||Pj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fn(e,t,n,r,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var yn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yn[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yn[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yn[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yn[e]=new Fn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){yn[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yn[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yn[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yn[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yn[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var J5=/[\-:]([a-z])/g;function Z5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(J5,Z5);yn[t]=new Fn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(J5,Z5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(J5,Z5);yn[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});yn.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function e2(e,t,n,r){var a=yn.hasOwnProperty(t)?yn[t]:null;(a!==null?a.type!==0:r||!(2l||a[o]!==i[l]){var s=` -`+a[o].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Z0=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cc(e):""}function Mj(e){switch(e.tag){case 5:return Cc(e.type);case 16:return Cc("Lazy");case 13:return Cc("Suspense");case 19:return Cc("SuspenseList");case 0:case 2:case 15:return e=ev(e.type,!1),e;case 11:return e=ev(e.type.render,!1),e;case 1:return e=ev(e.type,!0),e;default:return""}}function $y(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fs:return"Fragment";case cs:return"Portal";case My:return"Profiler";case e2:return"StrictMode";case Iy:return"Suspense";case Ry:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f7:return(e.displayName||"Context")+".Consumer";case c7:return(e._context.displayName||"Context")+".Provider";case t2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case n2:return t=e.displayName||null,t!==null?t:$y(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return $y(e(t))}catch{}}return null}function Ij(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $y(t);case 8:return t===e2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function h7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rj(e){var t=h7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){e._valueTracker||(e._valueTracker=Rj(e))}function p7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=h7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ly(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m7(e,t){t=t.checked,t!=null&&Z5(e,"checked",t,!1)}function jy(e,t){m7(e,t);var n=wo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Dy(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dy(e,t.type,wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Dy(e,t,n){(t!=="number"||bp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function Ms(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$j=["Webkit","ms","Moz","O"];Object.keys(Nc).forEach(function(e){$j.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nc[t]=Nc[e]})});function b7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nc.hasOwnProperty(e)&&Nc[e]?(""+t).trim():t+"px"}function _7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=b7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var Lj=jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function zy(e,t){if(t){if(Lj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function By(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uy=null;function r2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hy=null,Is=null,Rs=null;function Ww(e){if(e=vd(e)){if(typeof Hy!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=_g(t),Hy(e.stateNode,e.type,t))}}function x7(e){Is?Rs?Rs.push(e):Rs=[e]:Is=e}function w7(){if(Is){var e=Is,t=Rs;if(Rs=Is=null,Ww(e),t)for(e=0;e>>=0,e===0?32:31-(qj(e)/Gj|0)|0}var rh=64,ah=4194304;function kc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=kc(l):(i&=o,i!==0&&(r=kc(i)))}else o=n&~a,o!==0?r=kc(o):i!==0&&(r=kc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function md(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ua(t),e[t]=n}function Qj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zc),Zw=" ",eS=!1;function U7(e,t){switch(e){case"keyup":return CD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function kD(e,t){switch(e){case"compositionend":return H7(t);case"keypress":return t.which!==32?null:(eS=!0,Zw);case"textInput":return e=t.data,e===Zw&&eS?null:e;default:return null}}function PD(e,t){if(ds)return e==="compositionend"||!f2&&U7(e,t)?(e=z7(),Jh=s2=oo=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aS(n)}}function G7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?G7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function K7(){for(var e=window,t=bp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bp(e.document)}return t}function d2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function DD(e){var t=K7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&G7(n.ownerDocument.documentElement,n)){if(r!==null&&d2(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=iS(n,i);var o=iS(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hs=null,Xy=null,Uc=null,Yy=!1;function oS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yy||hs==null||hs!==bp(r)||(r=hs,"selectionStart"in r&&d2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uc&&pf(Uc,r)||(Uc=r,r=Ep(Xy,"onSelect"),0gs||(e.current=nb[gs],nb[gs]=null,gs--)}function yt(e,t){gs++,nb[gs]=e.current,e.current=t}var So={},Cn=Ro(So),Yn=Ro(!1),bl=So;function su(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Qn(e){return e=e.childContextTypes,e!=null}function Pp(){Ot(Yn),Ot(Cn)}function hS(e,t,n){if(Cn.current!==So)throw Error(ce(168));yt(Cn,t),yt(Yn,n)}function r4(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ce(108,Ij(e)||"Unknown",a));return jt({},n,r)}function Tp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,bl=Cn.current,yt(Cn,e),yt(Yn,Yn.current),!0}function pS(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=r4(e,t,bl),r.__reactInternalMemoizedMergedChildContext=e,Ot(Yn),Ot(Cn),yt(Cn,e)):Ot(Yn),yt(Yn,n)}var oi=null,xg=!1,pv=!1;function a4(e){oi===null?oi=[e]:oi.push(e)}function XD(e){xg=!0,a4(e)}function $o(){if(!pv&&oi!==null){pv=!0;var e=0,t=ct;try{var n=oi;for(ct=1;e>=o,a-=o,ci=1<<32-ua(t)+a|n<C?(A=w,w=null):A=w.sibling;var I=d(m,w,_[C],x);if(I===null){w===null&&(w=A);break}e&&w&&I.alternate===null&&t(m,w),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I,w=A}if(C===_.length)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;C<_.length;C++)w=f(m,_[C],x),w!==null&&(v=i(w,v,C),S===null?O=w:S.sibling=w,S=w);return At&&Ho(m,C),O}for(w=r(m,w);C<_.length;C++)A=h(w,m,C,_[C],x),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?C:A.key),v=i(A,v,C),S===null?O=A:S.sibling=A,S=A);return e&&w.forEach(function(P){return t(m,P)}),At&&Ho(m,C),O}function g(m,v,_,x){var O=Yu(_);if(typeof O!="function")throw Error(ce(150));if(_=O.call(_),_==null)throw Error(ce(151));for(var S=O=null,w=v,C=v=0,A=null,I=_.next();w!==null&&!I.done;C++,I=_.next()){w.index>C?(A=w,w=null):A=w.sibling;var P=d(m,w,I.value,x);if(P===null){w===null&&(w=A);break}e&&w&&P.alternate===null&&t(m,w),v=i(P,v,C),S===null?O=P:S.sibling=P,S=P,w=A}if(I.done)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;!I.done;C++,I=_.next())I=f(m,I.value,x),I!==null&&(v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return At&&Ho(m,C),O}for(w=r(m,w);!I.done;C++,I=_.next())I=h(w,m,C,I.value,x),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?C:I.key),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return e&&w.forEach(function(T){return t(m,T)}),At&&Ho(m,C),O}function b(m,v,_,x){if(typeof _=="object"&&_!==null&&_.type===fs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case eh:e:{for(var O=_.key,S=v;S!==null;){if(S.key===O){if(O=_.type,O===fs){if(S.tag===7){n(m,S.sibling),v=a(S,_.props.children),v.return=m,m=v;break e}}else if(S.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yi&&xS(O)===S.type){n(m,S.sibling),v=a(S,_.props),v.ref=tc(m,S,_),v.return=m,m=v;break e}n(m,S);break}else t(m,S);S=S.sibling}_.type===fs?(v=pl(_.props.children,m.mode,x,_.key),v.return=m,m=v):(x=op(_.type,_.key,_.props,null,m.mode,x),x.ref=tc(m,v,_),x.return=m,m=x)}return o(m);case cs:e:{for(S=_.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(m,v.sibling),v=a(v,_.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=wv(_,m.mode,x),v.return=m,m=v}return o(m);case Yi:return S=_._init,b(m,v,S(_._payload),x)}if(Ec(_))return p(m,v,_,x);if(Yu(_))return g(m,v,_,x);fh(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(m,v.sibling),v=a(v,_),v.return=m,m=v):(n(m,v),v=xv(_,m.mode,x),v.return=m,m=v),o(m)):n(m,v)}return b}var cu=d4(!0),h4=d4(!1),yd={},Na=Ro(yd),yf=Ro(yd),bf=Ro(yd);function Jo(e){if(e===yd)throw Error(ce(174));return e}function x2(e,t){switch(yt(bf,t),yt(yf,e),yt(Na,yd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Fy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Fy(t,e)}Ot(Na),yt(Na,t)}function fu(){Ot(Na),Ot(yf),Ot(bf)}function p4(e){Jo(bf.current);var t=Jo(Na.current),n=Fy(t,e.type);t!==n&&(yt(yf,e),yt(Na,n))}function w2(e){yf.current===e&&(Ot(Na),Ot(yf))}var $t=Ro(0);function Lp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var mv=[];function S2(){for(var e=0;en?n:4,e(!0);var r=gv.transition;gv.transition={};try{e(!1),t()}finally{ct=n,gv.transition=r}}function A4(){return Br().memoizedState}function ZD(e,t,n){var r=vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},M4(e))I4(t,n);else if(n=s4(e,t,n,r),n!==null){var a=jn();ca(n,e,r,a),R4(n,t,r)}}function eN(e,t,n){var r=vo(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(M4(e))I4(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,fa(l,o)){var s=t.interleaved;s===null?(a.next=a,b2(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=s4(e,t,a,r),n!==null&&(a=jn(),ca(n,e,r,a),R4(n,t,r))}}function M4(e){var t=e.alternate;return e===Lt||t!==null&&t===Lt}function I4(e,t){Hc=jp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function R4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,i2(e,n)}}var Dp={readContext:zr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},tN={readContext:zr,useCallback:function(e,t){return wa().memoizedState=[e,t===void 0?null:t],e},useContext:zr,useEffect:SS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,np(4194308,4,C4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return np(4194308,4,e,t)},useInsertionEffect:function(e,t){return np(4,2,e,t)},useMemo:function(e,t){var n=wa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ZD.bind(null,Lt,e),[r.memoizedState,e]},useRef:function(e){var t=wa();return e={current:e},t.memoizedState=e},useState:wS,useDebugValue:P2,useDeferredValue:function(e){return wa().memoizedState=e},useTransition:function(){var e=wS(!1),t=e[0];return e=JD.bind(null,e[1]),wa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Lt,a=wa();if(At){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),an===null)throw Error(ce(349));xl&30||v4(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,SS(b4.bind(null,r,i,e),[e]),r.flags|=2048,wf(9,y4.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wa(),t=an.identifierPrefix;if(At){var n=fi,r=ci;n=(r&~(1<<32-ua(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_f++,0")&&(s=s.replace("",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{ev=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cc(e):""}function Aj(e){switch(e.tag){case 5:return Cc(e.type);case 16:return Cc("Lazy");case 13:return Cc("Suspense");case 19:return Cc("SuspenseList");case 0:case 2:case 15:return e=tv(e.type,!1),e;case 11:return e=tv(e.type.render,!1),e;case 1:return e=tv(e.type,!0),e;default:return""}}function Ly(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fs:return"Fragment";case cs:return"Portal";case Iy:return"Profiler";case t2:return"StrictMode";case Ry:return"Suspense";case $y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c7:return(e.displayName||"Context")+".Consumer";case u7:return(e._context.displayName||"Context")+".Provider";case n2:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case r2:return t=e.displayName||null,t!==null?t:Ly(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return Ly(e(t))}catch{}}return null}function Mj(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ly(t);case 8:return t===t2?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function d7(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ij(e){var t=d7(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function th(e){e._valueTracker||(e._valueTracker=Ij(e))}function h7(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=d7(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jy(e,t){var n=t.checked;return jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function zw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=wo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function p7(e,t){t=t.checked,t!=null&&e2(e,"checked",t,!1)}function Dy(e,t){p7(e,t);var n=wo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ny(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ny(e,t.type,wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ny(e,t,n){(t!=="number"||bp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ec=Array.isArray;function Ms(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=nh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sf(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Rj=["Webkit","ms","Moz","O"];Object.keys(Nc).forEach(function(e){Rj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nc[t]=Nc[e]})});function y7(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nc.hasOwnProperty(e)&&Nc[e]?(""+t).trim():t+"px"}function b7(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=y7(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}var $j=jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function By(e,t){if(t){if($j[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ce(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ce(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ce(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ce(62))}}function Uy(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hy=null;function a2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wy=null,Is=null,Rs=null;function Ww(e){if(e=vd(e)){if(typeof Wy!="function")throw Error(ce(280));var t=e.stateNode;t&&(t=xg(t),Wy(e.stateNode,e.type,t))}}function _7(e){Is?Rs?Rs.push(e):Rs=[e]:Is=e}function x7(){if(Is){var e=Is,t=Rs;if(Rs=Is=null,Ww(e),t)for(e=0;e>>=0,e===0?32:31-(Vj(e)/qj|0)|0}var rh=64,ah=4194304;function kc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~a;l!==0?r=kc(l):(i&=o,i!==0&&(r=kc(i)))}else o=n&~a,o!==0?r=kc(o):i!==0&&(r=kc(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&a)&&(a=r&-r,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function md(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ua(t),e[t]=n}function Yj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zc),Zw=" ",eS=!1;function B7(e,t){switch(e){case"keyup":return OD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function U7(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function ED(e,t){switch(e){case"compositionend":return U7(t);case"keypress":return t.which!==32?null:(eS=!0,Zw);case"textInput":return e=t.data,e===Zw&&eS?null:e;default:return null}}function kD(e,t){if(ds)return e==="compositionend"||!d2&&B7(e,t)?(e=F7(),Jh=u2=oo=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=aS(n)}}function q7(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?q7(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function G7(){for(var e=window,t=bp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bp(e.document)}return t}function h2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jD(e){var t=G7(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&q7(n.ownerDocument.documentElement,n)){if(r!==null&&h2(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=iS(n,i);var o=iS(n,r);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,hs=null,Yy=null,Uc=null,Qy=!1;function oS(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qy||hs==null||hs!==bp(r)||(r=hs,"selectionStart"in r&&h2(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Uc&&pf(Uc,r)||(Uc=r,r=Ep(Yy,"onSelect"),0gs||(e.current=rb[gs],rb[gs]=null,gs--)}function yt(e,t){gs++,rb[gs]=e.current,e.current=t}var So={},Cn=Ro(So),Yn=Ro(!1),bl=So;function su(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Qn(e){return e=e.childContextTypes,e!=null}function Pp(){Ot(Yn),Ot(Cn)}function hS(e,t,n){if(Cn.current!==So)throw Error(ce(168));yt(Cn,t),yt(Yn,n)}function n4(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in t))throw Error(ce(108,Mj(e)||"Unknown",a));return jt({},n,r)}function Tp(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,bl=Cn.current,yt(Cn,e),yt(Yn,Yn.current),!0}function pS(e,t,n){var r=e.stateNode;if(!r)throw Error(ce(169));n?(e=n4(e,t,bl),r.__reactInternalMemoizedMergedChildContext=e,Ot(Yn),Ot(Cn),yt(Cn,e)):Ot(Yn),yt(Yn,n)}var oi=null,wg=!1,mv=!1;function r4(e){oi===null?oi=[e]:oi.push(e)}function KD(e){wg=!0,r4(e)}function $o(){if(!mv&&oi!==null){mv=!0;var e=0,t=ct;try{var n=oi;for(ct=1;e>=o,a-=o,ci=1<<32-ua(t)+a|n<C?(A=w,w=null):A=w.sibling;var I=d(m,w,_[C],x);if(I===null){w===null&&(w=A);break}e&&w&&I.alternate===null&&t(m,w),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I,w=A}if(C===_.length)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;C<_.length;C++)w=f(m,_[C],x),w!==null&&(v=i(w,v,C),S===null?O=w:S.sibling=w,S=w);return At&&Ho(m,C),O}for(w=r(m,w);C<_.length;C++)A=h(w,m,C,_[C],x),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?C:A.key),v=i(A,v,C),S===null?O=A:S.sibling=A,S=A);return e&&w.forEach(function(P){return t(m,P)}),At&&Ho(m,C),O}function g(m,v,_,x){var O=Yu(_);if(typeof O!="function")throw Error(ce(150));if(_=O.call(_),_==null)throw Error(ce(151));for(var S=O=null,w=v,C=v=0,A=null,I=_.next();w!==null&&!I.done;C++,I=_.next()){w.index>C?(A=w,w=null):A=w.sibling;var P=d(m,w,I.value,x);if(P===null){w===null&&(w=A);break}e&&w&&P.alternate===null&&t(m,w),v=i(P,v,C),S===null?O=P:S.sibling=P,S=P,w=A}if(I.done)return n(m,w),At&&Ho(m,C),O;if(w===null){for(;!I.done;C++,I=_.next())I=f(m,I.value,x),I!==null&&(v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return At&&Ho(m,C),O}for(w=r(m,w);!I.done;C++,I=_.next())I=h(w,m,C,I.value,x),I!==null&&(e&&I.alternate!==null&&w.delete(I.key===null?C:I.key),v=i(I,v,C),S===null?O=I:S.sibling=I,S=I);return e&&w.forEach(function(T){return t(m,T)}),At&&Ho(m,C),O}function b(m,v,_,x){if(typeof _=="object"&&_!==null&&_.type===fs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case eh:e:{for(var O=_.key,S=v;S!==null;){if(S.key===O){if(O=_.type,O===fs){if(S.tag===7){n(m,S.sibling),v=a(S,_.props.children),v.return=m,m=v;break e}}else if(S.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Yi&&xS(O)===S.type){n(m,S.sibling),v=a(S,_.props),v.ref=tc(m,S,_),v.return=m,m=v;break e}n(m,S);break}else t(m,S);S=S.sibling}_.type===fs?(v=pl(_.props.children,m.mode,x,_.key),v.return=m,m=v):(x=op(_.type,_.key,_.props,null,m.mode,x),x.ref=tc(m,v,_),x.return=m,m=x)}return o(m);case cs:e:{for(S=_.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(m,v.sibling),v=a(v,_.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Sv(_,m.mode,x),v.return=m,m=v}return o(m);case Yi:return S=_._init,b(m,v,S(_._payload),x)}if(Ec(_))return p(m,v,_,x);if(Yu(_))return g(m,v,_,x);fh(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,v!==null&&v.tag===6?(n(m,v.sibling),v=a(v,_),v.return=m,m=v):(n(m,v),v=wv(_,m.mode,x),v.return=m,m=v),o(m)):n(m,v)}return b}var cu=f4(!0),d4=f4(!1),yd={},Na=Ro(yd),yf=Ro(yd),bf=Ro(yd);function Jo(e){if(e===yd)throw Error(ce(174));return e}function w2(e,t){switch(yt(bf,t),yt(yf,e),yt(Na,yd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zy(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zy(t,e)}Ot(Na),yt(Na,t)}function fu(){Ot(Na),Ot(yf),Ot(bf)}function h4(e){Jo(bf.current);var t=Jo(Na.current),n=zy(t,e.type);t!==n&&(yt(yf,e),yt(Na,n))}function S2(e){yf.current===e&&(Ot(Na),Ot(yf))}var $t=Ro(0);function Lp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gv=[];function O2(){for(var e=0;en?n:4,e(!0);var r=vv.transition;vv.transition={};try{e(!1),t()}finally{ct=n,vv.transition=r}}function T4(){return Br().memoizedState}function JD(e,t,n){var r=vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},A4(e))M4(t,n);else if(n=l4(e,t,n,r),n!==null){var a=jn();ca(n,e,r,a),I4(n,t,r)}}function ZD(e,t,n){var r=vo(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(A4(e))M4(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,fa(l,o)){var s=t.interleaved;s===null?(a.next=a,_2(t)):(a.next=s.next,s.next=a),t.interleaved=a;return}}catch{}finally{}n=l4(e,t,a,r),n!==null&&(a=jn(),ca(n,e,r,a),I4(n,t,r))}}function A4(e){var t=e.alternate;return e===Lt||t!==null&&t===Lt}function M4(e,t){Hc=jp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function I4(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,o2(e,n)}}var Dp={readContext:zr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},eN={readContext:zr,useCallback:function(e,t){return wa().memoizedState=[e,t===void 0?null:t],e},useContext:zr,useEffect:SS,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,np(4194308,4,O4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return np(4194308,4,e,t)},useInsertionEffect:function(e,t){return np(4,2,e,t)},useMemo:function(e,t){var n=wa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=wa();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=JD.bind(null,Lt,e),[r.memoizedState,e]},useRef:function(e){var t=wa();return e={current:e},t.memoizedState=e},useState:wS,useDebugValue:T2,useDeferredValue:function(e){return wa().memoizedState=e},useTransition:function(){var e=wS(!1),t=e[0];return e=QD.bind(null,e[1]),wa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Lt,a=wa();if(At){if(n===void 0)throw Error(ce(407));n=n()}else{if(n=t(),an===null)throw Error(ce(349));xl&30||g4(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,SS(y4.bind(null,r,i,e),[e]),r.flags|=2048,wf(9,v4.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=wa(),t=an.identifierPrefix;if(At){var n=fi,r=ci;n=(r&~(1<<32-ua(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_f++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ma]=t,e[vf]=r,U4(e,t,!1,!1),t.stateNode=e;e:{switch(o=By(n,r),n){case"dialog":wt("cancel",e),wt("close",e),a=r;break;case"iframe":case"object":case"embed":wt("load",e),a=r;break;case"video":case"audio":for(a=0;ahu&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lp(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),nc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!At)return _n(t),null}else 2*Ht()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ht(),t.sibling=null,n=$t.current,yt($t,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return $2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lr&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function uN(e,t){switch(p2(t),t.tag){case 1:return Qn(t.type)&&Pp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fu(),Ot(Yn),Ot(Cn),S2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return w2(t),null;case 13:if(Ot($t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));uu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot($t),null;case 4:return fu(),null;case 10:return y2(t.type._context),null;case 22:case 23:return $2(),null;case 24:return null;default:return null}}var hh=!1,On=!1,cN=typeof WeakSet=="function"?WeakSet:Set,we=null;function _s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ft(e,t,r)}else n.current=null}function pb(e,t,n){try{n()}catch(r){Ft(e,t,r)}}var IS=!1;function fN(e,t){if(Qy=Op,e=K7(),d2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===a&&(l=o),d===i&&++c===r&&(s=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jy={focusedElem:e,selectionRange:n},Op=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:ea(t.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(x){Ft(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=IS,IS=!1,p}function Wc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&pb(t,n,i)}a=a.next}while(a!==r)}}function Og(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function V4(e){var t=e.alternate;t!==null&&(e.alternate=null,V4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ma],delete t[vf],delete t[tb],delete t[GD],delete t[KD])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function q4(e){return e.tag===5||e.tag===3||e.tag===4}function RS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||q4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kp));else if(r!==4&&(e=e.child,e!==null))for(gb(e,t,n),e=e.sibling;e!==null;)gb(e,t,n),e=e.sibling}function vb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vb(e,t,n),e=e.sibling;e!==null;)vb(e,t,n),e=e.sibling}var hn=null,na=!1;function Hi(e,t,n){for(n=n.child;n!==null;)G4(e,t,n),n=n.sibling}function G4(e,t,n){if(Da&&typeof Da.onCommitFiberUnmount=="function")try{Da.onCommitFiberUnmount(gg,n)}catch{}switch(n.tag){case 5:On||_s(n,t);case 6:var r=hn,a=na;hn=null,Hi(e,t,n),hn=r,na=a,hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):hn.removeChild(n.stateNode));break;case 18:hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?hv(e.parentNode,n):e.nodeType===1&&hv(e,n),df(e)):hv(hn,n.stateNode));break;case 4:r=hn,a=na,hn=n.stateNode.containerInfo,na=!0,Hi(e,t,n),hn=r,na=a;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&pb(n,t,o),a=a.next}while(a!==r)}Hi(e,t,n);break;case 1:if(!On&&(_s(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ft(n,t,l)}Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,Hi(e,t,n),On=r):Hi(e,t,n);break;default:Hi(e,t,n)}}function $S(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new cN),t.forEach(function(r){var a=_N.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hN(r/1960))-r,10e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,zp=0,ot&6)throw Error(ce(331));var a=ot;for(ot|=4,we=e.current;we!==null;){var i=we,o=i.child;if(we.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sHt()-I2?hl(e,0):M2|=n),Jn(e,t)}function tT(e,t){t===0&&(e.mode&1?(t=ah,ah<<=1,!(ah&130023424)&&(ah=4194304)):t=1);var n=jn();e=Si(e,t),e!==null&&(md(e,t,n),Jn(e,n))}function bN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tT(e,n)}function _N(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),tT(e,n)}var nT;nT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yn.current)Gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gn=!1,lN(e,t,n);Gn=!!(e.flags&131072)}else Gn=!1,At&&t.flags&1048576&&i4(t,Mp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rp(e,t),e=t.pendingProps;var a=su(t,Cn.current);Ls(t,n),a=C2(null,t,r,e,a,n);var i=E2();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qn(r)?(i=!0,Tp(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,_2(t),a.updater=wg,t.stateNode=a,a._reactInternals=t,lb(t,r,e,n),t=cb(null,t,r,!0,i,n)):(t.tag=0,At&&i&&h2(t),Rn(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rp(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=wN(r),e=ea(r,e),a){case 0:t=ub(null,t,r,e,n);break e;case 1:t=TS(null,t,r,e,n);break e;case 11:t=kS(null,t,r,e,n);break e;case 14:t=PS(null,t,r,ea(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),ub(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),TS(e,t,r,a,n);case 3:e:{if(F4(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,a=i.element,u4(e,t),$p(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=du(Error(ce(423)),t),t=AS(e,t,r,n,a);break e}else if(r!==a){a=du(Error(ce(424)),t),t=AS(e,t,r,n,a);break e}else for(sr=po(t.stateNode.containerInfo.firstChild),dr=t,At=!0,oa=null,n=h4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uu(),r===a){t=Oi(e,t,n);break e}Rn(e,t,r,n)}t=t.child}return t;case 5:return p4(t),e===null&&ab(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,Zy(r,a)?o=null:i!==null&&Zy(r,i)&&(t.flags|=32),N4(e,t),Rn(e,t,o,n),t.child;case 6:return e===null&&ab(t),null;case 13:return z4(e,t,n);case 4:return x2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cu(t,null,r,n):Rn(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),kS(e,t,r,a,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,yt(Ip,r._currentValue),r._currentValue=o,i!==null)if(fa(i.value,o)){if(i.children===a.children&&!Yn.current){t=Oi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=mi(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ib(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ce(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ib(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Rn(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ls(t,n),a=zr(a),r=r(a),t.flags|=1,Rn(e,t,r,n),t.child;case 14:return r=t.type,a=ea(r,t.pendingProps),a=ea(r.type,a),PS(e,t,r,a,n);case 15:return j4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),rp(e,t),t.tag=1,Qn(r)?(e=!0,Tp(t)):e=!1,Ls(t,n),f4(t,r,a),lb(t,r,a,n),cb(null,t,r,!0,e,n);case 19:return B4(e,t,n);case 22:return D4(e,t,n)}throw Error(ce(156,t.tag))};function rT(e,t){return T7(e,t)}function xN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,n,r){return new xN(e,t,n,r)}function j2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wN(e){if(typeof e=="function")return j2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===t2)return 11;if(e===n2)return 14}return 2}function yo(e,t){var n=e.alternate;return n===null?(n=$r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function op(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")j2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case fs:return pl(n.children,a,i,t);case e2:o=8,a|=8;break;case My:return e=$r(12,n,t,a|2),e.elementType=My,e.lanes=i,e;case Iy:return e=$r(13,n,t,a),e.elementType=Iy,e.lanes=i,e;case Ry:return e=$r(19,n,t,a),e.elementType=Ry,e.lanes=i,e;case d7:return Eg(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c7:o=10;break e;case f7:o=9;break e;case t2:o=11;break e;case n2:o=14;break e;case Yi:o=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=$r(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function pl(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function Eg(e,t,n,r){return e=$r(22,e,r,t),e.elementType=d7,e.lanes=n,e.stateNode={isHidden:!1},e}function xv(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function wv(e,t,n){return t=$r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SN(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nv(0),this.expirationTimes=nv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nv(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function D2(e,t,n,r,a,i,o,l,s){return e=new SN(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$r(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_2(i),e}function ON(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lT)}catch(e){console.error(e)}}lT(),i7.exports=gr;var Mg=i7.exports;const TN=at(Mg),AN=KP({__proto__:null,default:TN},[Mg]);var US=Mg;Ty.createRoot=US.createRoot,Ty.hydrateRoot=US.hydrateRoot;function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const i=D(...r);i&&t.push(i)}else if(a==="object")for(const i in r)n.call(r,i)&&r[i]&&t.push(i)}),t.join(" ")}const wb={content:"pf-v5-c-content",modifiers:{visited:"pf-m-visited",plain:"pf-m-plain"}},MN={name:"--pf-v5-global--breakpoint--sm",value:"576px",var:"var(--pf-v5-global--breakpoint--sm)"},IN=MN,RN={name:"--pf-v5-global--breakpoint--md",value:"768px",var:"var(--pf-v5-global--breakpoint--md)"},$N=RN,LN={name:"--pf-v5-global--breakpoint--lg",value:"992px",var:"var(--pf-v5-global--breakpoint--lg)"},jN=LN,sT={name:"--pf-v5-global--breakpoint--xl",value:"1200px",var:"var(--pf-v5-global--breakpoint--xl)"},DN={name:"--pf-v5-global--breakpoint--2xl",value:"1450px",var:"var(--pf-v5-global--breakpoint--2xl)"},NN=DN,FN={name:"--pf-v5-global--height-breakpoint--sm",value:"0",var:"var(--pf-v5-global--height-breakpoint--sm)"},zN=FN,BN={name:"--pf-v5-global--height-breakpoint--md",value:"40rem",var:"var(--pf-v5-global--height-breakpoint--md)"},UN=BN,HN={name:"--pf-v5-global--height-breakpoint--lg",value:"48rem",var:"var(--pf-v5-global--height-breakpoint--lg)"},WN=HN,VN={name:"--pf-v5-global--height-breakpoint--xl",value:"60rem",var:"var(--pf-v5-global--height-breakpoint--xl)"},qN=VN,GN={name:"--pf-v5-global--height-breakpoint--2xl",value:"80rem",var:"var(--pf-v5-global--height-breakpoint--2xl)"},KN=GN;var Sb;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(Sb||(Sb={}));const Hp={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"},ac={sm:parseInt(IN.value),md:parseInt($N.value),lg:parseInt(jN.value),xl:parseInt(sT.value),"2xl":parseInt(NN.value)},ic={sm:parseInt(zN.value),md:parseInt(UN.value),lg:parseInt(WN.value),xl:parseInt(qN.value),"2xl":parseInt(KN.value)};/*! +`+i.stack}return{value:e,source:t,stack:a,digest:null}}function _v(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ub(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var rN=typeof WeakMap=="function"?WeakMap:Map;function R4(e,t,n){n=mi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fp||(Fp=!0,bb=r),ub(e,t)},n}function $4(e,t,n){n=mi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ub(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ub(e,t),typeof r!="function"&&(go===null?go=new Set([this]):go.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function OS(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new rN;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=vN.bind(null,e,t,n),t.then(e,e))}function CS(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ES(e,t,n,r,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mi(-1,1),t.tag=2,mo(n,t,1))),n.lanes|=1),e)}var aN=Mi.ReactCurrentOwner,Gn=!1;function Rn(e,t,n,r){t.child=e===null?d4(t,null,n,r):cu(t,e.child,n,r)}function kS(e,t,n,r,a){n=n.render;var i=t.ref;return Ls(t,a),r=E2(e,t,n,r,i,a),n=k2(),e!==null&&!Gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Oi(e,t,a)):(At&&n&&p2(t),t.flags|=1,Rn(e,t,r,a),t.child)}function PS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!D2(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,L4(e,t,i,r,a)):(e=op(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:pf,n(o,r)&&e.ref===t.ref)return Oi(e,t,a)}return t.flags|=1,e=yo(i,r),e.ref=t.ref,e.return=t,t.child=e}function L4(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(pf(i,r)&&e.ref===t.ref)if(Gn=!1,t.pendingProps=r=i,(e.lanes&a)!==0)e.flags&131072&&(Gn=!0);else return t.lanes=e.lanes,Oi(e,t,a)}return cb(e,t,n,r,a)}function j4(e,t,n){var r=t.pendingProps,a=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},yt(xs,lr),lr|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,yt(xs,lr),lr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,yt(xs,lr),lr|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,yt(xs,lr),lr|=r;return Rn(e,t,a,n),t.child}function D4(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function cb(e,t,n,r,a){var i=Qn(n)?bl:Cn.current;return i=su(t,i),Ls(t,a),n=E2(e,t,n,r,i,a),r=k2(),e!==null&&!Gn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Oi(e,t,a)):(At&&r&&p2(t),t.flags|=1,Rn(e,t,n,a),t.child)}function TS(e,t,n,r,a){if(Qn(n)){var i=!0;Tp(t)}else i=!1;if(Ls(t,a),t.stateNode===null)rp(e,t),c4(t,n,r),sb(t,n,r,a),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=zr(u):(u=Qn(n)?bl:Cn.current,u=su(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||s!==u)&&_S(t,o,r,u),Qi=!1;var d=t.memoizedState;o.state=d,$p(t,r,o,a),s=t.memoizedState,l!==r||d!==s||Yn.current||Qi?(typeof c=="function"&&(lb(t,n,c,r),s=t.memoizedState),(l=Qi||bS(t,n,l,r,d,s,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,s4(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ea(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=zr(s):(s=Qn(n)?bl:Cn.current,s=su(t,s));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==s)&&_S(t,o,r,s),Qi=!1,d=t.memoizedState,o.state=d,$p(t,r,o,a);var p=t.memoizedState;l!==f||d!==p||Yn.current||Qi?(typeof h=="function"&&(lb(t,n,h,r),p=t.memoizedState),(u=Qi||bS(t,n,u,r,d,p,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return fb(e,t,n,r,i,a)}function fb(e,t,n,r,a,i){D4(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return a&&pS(t,n,!1),Oi(e,t,i);r=t.stateNode,aN.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=cu(t,e.child,null,i),t.child=cu(t,null,l,i)):Rn(e,t,l,i),t.memoizedState=r.state,a&&pS(t,n,!0),t.child}function N4(e){var t=e.stateNode;t.pendingContext?hS(e,t.pendingContext,t.pendingContext!==t.context):t.context&&hS(e,t.context,!1),w2(e,t.containerInfo)}function AS(e,t,n,r,a){return uu(),g2(a),t.flags|=256,Rn(e,t,n,r),t.child}var db={dehydrated:null,treeContext:null,retryLane:0};function hb(e){return{baseLanes:e,cachePool:null,transitions:null}}function F4(e,t,n){var r=t.pendingProps,a=$t.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),yt($t,a&1),e===null)return ib(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=kg(o,r,0,null),e=pl(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=hb(n),t.memoizedState=db,e):A2(t,o));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return iN(e,t,o,r,l,a,n);if(i){i=r.fallback,o=t.mode,a=e.child,l=a.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=yo(a,s),r.subtreeFlags=a.subtreeFlags&14680064),l!==null?i=yo(l,i):(i=pl(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?hb(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=db,r}return i=e.child,e=i.sibling,r=yo(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function A2(e,t){return t=kg({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function dh(e,t,n,r){return r!==null&&g2(r),cu(t,e.child,null,n),e=A2(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iN(e,t,n,r,a,i,o){if(n)return t.flags&256?(t.flags&=-257,r=_v(Error(ce(422))),dh(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=kg({mode:"visible",children:r.children},a,0,null),i=pl(i,a,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&cu(t,e.child,null,o),t.child.memoizedState=hb(o),t.memoizedState=db,i);if(!(t.mode&1))return dh(e,t,o,null);if(a.data==="$!"){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(ce(419)),r=_v(i,r,void 0),dh(e,t,o,r)}if(l=(o&e.childLanes)!==0,Gn||l){if(r=an,r!==null){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(r.suspendedLanes|o)?0:a,a!==0&&a!==i.retryLane&&(i.retryLane=a,Si(e,a),ca(r,e,a,-1))}return j2(),r=_v(Error(ce(421))),dh(e,t,o,r)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=yN.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,sr=po(a.nextSibling),dr=t,At=!0,oa=null,e!==null&&(Ar[Mr++]=ci,Ar[Mr++]=fi,Ar[Mr++]=_l,ci=e.id,fi=e.overflow,_l=t),t=A2(t,r.children),t.flags|=4096,t)}function MS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ob(e.return,t,n)}function xv(e,t,n,r,a){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function z4(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Rn(e,t,r.children,n),r=$t.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&MS(e,n,t);else if(e.tag===19)MS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(yt($t,r),!(t.mode&1))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Lp(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),xv(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Lp(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}xv(t,!0,n,null,i);break;case"together":xv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rp(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Oi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),wl|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ce(153));if(t.child!==null){for(e=t.child,n=yo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=yo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oN(e,t,n){switch(t.tag){case 3:N4(t),uu();break;case 5:h4(t);break;case 1:Qn(t.type)&&Tp(t);break;case 4:w2(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;yt(Ip,r._currentValue),r._currentValue=a;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(yt($t,$t.current&1),t.flags|=128,null):n&t.child.childLanes?F4(e,t,n):(yt($t,$t.current&1),e=Oi(e,t,n),e!==null?e.sibling:null);yt($t,$t.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return z4(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),yt($t,$t.current),r)break;return null;case 22:case 23:return t.lanes=0,j4(e,t,n)}return Oi(e,t,n)}var B4,pb,U4,H4;B4=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};pb=function(){};U4=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Jo(Na.current);var i=null;switch(n){case"input":a=jy(e,a),r=jy(e,r),i=[];break;case"select":a=jt({},a,{value:void 0}),r=jt({},r,{value:void 0}),i=[];break;case"textarea":a=Fy(e,a),r=Fy(e,r),i=[];break;default:typeof a.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=kp)}By(n,r);var o;n=null;for(u in a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&a[u]!=null)if(u==="style"){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(lf.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var s=r[u];if(l=a!=null?a[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(i||(i=[]),i.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(lf.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&wt("scroll",e),i||l===s||(i=[])):(i=i||[]).push(u,s))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};H4=function(e,t,n,r){n!==r&&(t.flags|=4)};function nc(e,t){if(!At)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _n(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&14680064,r|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function lN(e,t,n){var r=t.pendingProps;switch(m2(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _n(t),null;case 1:return Qn(t.type)&&Pp(),_n(t),null;case 3:return r=t.stateNode,fu(),Ot(Yn),Ot(Cn),O2(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ch(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,oa!==null&&(wb(oa),oa=null))),pb(e,t),_n(t),null;case 5:S2(t);var a=Jo(bf.current);if(n=t.type,e!==null&&t.stateNode!=null)U4(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(ce(166));return _n(t),null}if(e=Jo(Na.current),ch(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ma]=t,r[vf]=i,e=(t.mode&1)!==0,n){case"dialog":wt("cancel",r),wt("close",r);break;case"iframe":case"object":case"embed":wt("load",r);break;case"video":case"audio":for(a=0;a<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ma]=t,e[vf]=r,B4(e,t,!1,!1),t.stateNode=e;e:{switch(o=Uy(n,r),n){case"dialog":wt("cancel",e),wt("close",e),a=r;break;case"iframe":case"object":case"embed":wt("load",e),a=r;break;case"video":case"audio":for(a=0;ahu&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lp(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),nc(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!At)return _n(t),null}else 2*Ht()-i.renderingStartTime>hu&&n!==1073741824&&(t.flags|=128,r=!0,nc(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ht(),t.sibling=null,n=$t.current,yt($t,r?n&1|2:n&1),t):(_n(t),null);case 22:case 23:return L2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lr&1073741824&&(_n(t),t.subtreeFlags&6&&(t.flags|=8192)):_n(t),null;case 24:return null;case 25:return null}throw Error(ce(156,t.tag))}function sN(e,t){switch(m2(t),t.tag){case 1:return Qn(t.type)&&Pp(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fu(),Ot(Yn),Ot(Cn),O2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return S2(t),null;case 13:if(Ot($t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ce(340));uu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ot($t),null;case 4:return fu(),null;case 10:return b2(t.type._context),null;case 22:case 23:return L2(),null;case 24:return null;default:return null}}var hh=!1,On=!1,uN=typeof WeakSet=="function"?WeakSet:Set,we=null;function _s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ft(e,t,r)}else n.current=null}function mb(e,t,n){try{n()}catch(r){Ft(e,t,r)}}var IS=!1;function cN(e,t){if(Jy=Op,e=G7(),h2(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===a&&(l=o),d===i&&++c===r&&(s=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zy={focusedElem:e,selectionRange:n},Op=!1,we=t;we!==null;)if(t=we,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,we=e;else for(;we!==null;){t=we;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,b=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:ea(t.type,g),b);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ce(163))}}catch(x){Ft(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,we=e;break}we=t.return}return p=IS,IS=!1,p}function Wc(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&mb(t,n,i)}a=a.next}while(a!==r)}}function Cg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function gb(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function W4(e){var t=e.alternate;t!==null&&(e.alternate=null,W4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ma],delete t[vf],delete t[nb],delete t[qD],delete t[GD])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function V4(e){return e.tag===5||e.tag===3||e.tag===4}function RS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V4(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function vb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=kp));else if(r!==4&&(e=e.child,e!==null))for(vb(e,t,n),e=e.sibling;e!==null;)vb(e,t,n),e=e.sibling}function yb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(yb(e,t,n),e=e.sibling;e!==null;)yb(e,t,n),e=e.sibling}var hn=null,na=!1;function Hi(e,t,n){for(n=n.child;n!==null;)q4(e,t,n),n=n.sibling}function q4(e,t,n){if(Da&&typeof Da.onCommitFiberUnmount=="function")try{Da.onCommitFiberUnmount(vg,n)}catch{}switch(n.tag){case 5:On||_s(n,t);case 6:var r=hn,a=na;hn=null,Hi(e,t,n),hn=r,na=a,hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):hn.removeChild(n.stateNode));break;case 18:hn!==null&&(na?(e=hn,n=n.stateNode,e.nodeType===8?pv(e.parentNode,n):e.nodeType===1&&pv(e,n),df(e)):pv(hn,n.stateNode));break;case 4:r=hn,a=na,hn=n.stateNode.containerInfo,na=!0,Hi(e,t,n),hn=r,na=a;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&mb(n,t,o),a=a.next}while(a!==r)}Hi(e,t,n);break;case 1:if(!On&&(_s(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ft(n,t,l)}Hi(e,t,n);break;case 21:Hi(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,Hi(e,t,n),On=r):Hi(e,t,n);break;default:Hi(e,t,n)}}function $S(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new uN),t.forEach(function(r){var a=bN.bind(null,e,r);n.has(r)||(n.add(r),r.then(a,a))})}}function Jr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=Ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dN(r/1960))-r,10e?16:e,lo===null)var r=!1;else{if(e=lo,lo=null,zp=0,ot&6)throw Error(ce(331));var a=ot;for(ot|=4,we=e.current;we!==null;){var i=we,o=i.child;if(we.flags&16){var l=i.deletions;if(l!==null){for(var s=0;sHt()-R2?hl(e,0):I2|=n),Jn(e,t)}function eT(e,t){t===0&&(e.mode&1?(t=ah,ah<<=1,!(ah&130023424)&&(ah=4194304)):t=1);var n=jn();e=Si(e,t),e!==null&&(md(e,t,n),Jn(e,n))}function yN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eT(e,n)}function bN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(ce(314))}r!==null&&r.delete(t),eT(e,n)}var tT;tT=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Yn.current)Gn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Gn=!1,oN(e,t,n);Gn=!!(e.flags&131072)}else Gn=!1,At&&t.flags&1048576&&a4(t,Mp,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rp(e,t),e=t.pendingProps;var a=su(t,Cn.current);Ls(t,n),a=E2(null,t,r,e,a,n);var i=k2();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qn(r)?(i=!0,Tp(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,x2(t),a.updater=Sg,t.stateNode=a,a._reactInternals=t,sb(t,r,e,n),t=fb(null,t,r,!0,i,n)):(t.tag=0,At&&i&&p2(t),Rn(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rp(e,t),e=t.pendingProps,a=r._init,r=a(r._payload),t.type=r,a=t.tag=xN(r),e=ea(r,e),a){case 0:t=cb(null,t,r,e,n);break e;case 1:t=TS(null,t,r,e,n);break e;case 11:t=kS(null,t,r,e,n);break e;case 14:t=PS(null,t,r,ea(r.type,e),n);break e}throw Error(ce(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),cb(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),TS(e,t,r,a,n);case 3:e:{if(N4(t),e===null)throw Error(ce(387));r=t.pendingProps,i=t.memoizedState,a=i.element,s4(e,t),$p(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=du(Error(ce(423)),t),t=AS(e,t,r,n,a);break e}else if(r!==a){a=du(Error(ce(424)),t),t=AS(e,t,r,n,a);break e}else for(sr=po(t.stateNode.containerInfo.firstChild),dr=t,At=!0,oa=null,n=d4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(uu(),r===a){t=Oi(e,t,n);break e}Rn(e,t,r,n)}t=t.child}return t;case 5:return h4(t),e===null&&ib(t),r=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,eb(r,a)?o=null:i!==null&&eb(r,i)&&(t.flags|=32),D4(e,t),Rn(e,t,o,n),t.child;case 6:return e===null&&ib(t),null;case 13:return F4(e,t,n);case 4:return w2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=cu(t,null,r,n):Rn(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),kS(e,t,r,a,n);case 7:return Rn(e,t,t.pendingProps,n),t.child;case 8:return Rn(e,t,t.pendingProps.children,n),t.child;case 12:return Rn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,yt(Ip,r._currentValue),r._currentValue=o,i!==null)if(fa(i.value,o)){if(i.children===a.children&&!Yn.current){t=Oi(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=mi(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),ob(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ce(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),ob(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Rn(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ls(t,n),a=zr(a),r=r(a),t.flags|=1,Rn(e,t,r,n),t.child;case 14:return r=t.type,a=ea(r,t.pendingProps),a=ea(r.type,a),PS(e,t,r,a,n);case 15:return L4(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ea(r,a),rp(e,t),t.tag=1,Qn(r)?(e=!0,Tp(t)):e=!1,Ls(t,n),c4(t,r,a),sb(t,r,a,n),fb(null,t,r,!0,e,n);case 19:return z4(e,t,n);case 22:return j4(e,t,n)}throw Error(ce(156,t.tag))};function nT(e,t){return P7(e,t)}function _N(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function $r(e,t,n,r){return new _N(e,t,n,r)}function D2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xN(e){if(typeof e=="function")return D2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===n2)return 11;if(e===r2)return 14}return 2}function yo(e,t){var n=e.alternate;return n===null?(n=$r(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function op(e,t,n,r,a,i){var o=2;if(r=e,typeof e=="function")D2(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case fs:return pl(n.children,a,i,t);case t2:o=8,a|=8;break;case Iy:return e=$r(12,n,t,a|2),e.elementType=Iy,e.lanes=i,e;case Ry:return e=$r(13,n,t,a),e.elementType=Ry,e.lanes=i,e;case $y:return e=$r(19,n,t,a),e.elementType=$y,e.lanes=i,e;case f7:return kg(n,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case u7:o=10;break e;case c7:o=9;break e;case n2:o=11;break e;case r2:o=14;break e;case Yi:o=16,r=null;break e}throw Error(ce(130,e==null?e:typeof e,""))}return t=$r(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function pl(e,t,n,r){return e=$r(7,e,r,t),e.lanes=n,e}function kg(e,t,n,r){return e=$r(22,e,r,t),e.elementType=f7,e.lanes=n,e.stateNode={isHidden:!1},e}function wv(e,t,n){return e=$r(6,e,null,t),e.lanes=n,e}function Sv(e,t,n){return t=$r(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wN(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rv(0),this.expirationTimes=rv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rv(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function N2(e,t,n,r,a,i,o,l,s){return e=new wN(e,t,n,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$r(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},x2(i),e}function SN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(oT)}catch(e){console.error(e)}}oT(),a7.exports=gr;var Ig=a7.exports;const PN=at(Ig),TN=GP({__proto__:null,default:PN},[Ig]);var US=Ig;Ay.createRoot=US.createRoot,Ay.hydrateRoot=US.hydrateRoot;function Q(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const i=D(...r);i&&t.push(i)}else if(a==="object")for(const i in r)n.call(r,i)&&r[i]&&t.push(i)}),t.join(" ")}const Sb={content:"pf-v5-c-content",modifiers:{visited:"pf-m-visited",plain:"pf-m-plain"}},AN={name:"--pf-v5-global--breakpoint--sm",value:"576px",var:"var(--pf-v5-global--breakpoint--sm)"},MN=AN,IN={name:"--pf-v5-global--breakpoint--md",value:"768px",var:"var(--pf-v5-global--breakpoint--md)"},RN=IN,$N={name:"--pf-v5-global--breakpoint--lg",value:"992px",var:"var(--pf-v5-global--breakpoint--lg)"},LN=$N,lT={name:"--pf-v5-global--breakpoint--xl",value:"1200px",var:"var(--pf-v5-global--breakpoint--xl)"},jN={name:"--pf-v5-global--breakpoint--2xl",value:"1450px",var:"var(--pf-v5-global--breakpoint--2xl)"},DN=jN,NN={name:"--pf-v5-global--height-breakpoint--sm",value:"0",var:"var(--pf-v5-global--height-breakpoint--sm)"},FN=NN,zN={name:"--pf-v5-global--height-breakpoint--md",value:"40rem",var:"var(--pf-v5-global--height-breakpoint--md)"},BN=zN,UN={name:"--pf-v5-global--height-breakpoint--lg",value:"48rem",var:"var(--pf-v5-global--height-breakpoint--lg)"},HN=UN,WN={name:"--pf-v5-global--height-breakpoint--xl",value:"60rem",var:"var(--pf-v5-global--height-breakpoint--xl)"},VN=WN,qN={name:"--pf-v5-global--height-breakpoint--2xl",value:"80rem",var:"var(--pf-v5-global--height-breakpoint--2xl)"},GN=qN;var Ob;(function(e){e.success="success",e.error="error",e.warning="warning",e.default="default"})(Ob||(Ob={}));const Hp={Tab:"Tab",Space:" ",Escape:"Escape",Enter:"Enter",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight"},ac={sm:parseInt(MN.value),md:parseInt(RN.value),lg:parseInt(LN.value),xl:parseInt(lT.value),"2xl":parseInt(DN.value)},ic={sm:parseInt(FN.value),md:parseInt(BN.value),lg:parseInt(HN.value),xl:parseInt(VN.value),"2xl":parseInt(GN.value)};/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var uT=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Wp=uT.join(","),cT=typeof Element>"u",Ol=cT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vp=!cT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},qp=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=a===""||a==="true",o=i||n&&t&&e(t.parentNode);return o},XN=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},fT=function(t,n,r){if(qp(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(Wp));return n&&Ol.call(t,Wp)&&a.unshift(t),a=a.filter(r),a},dT=function e(t,n,r){for(var a=[],i=Array.from(t);i.length;){var o=i.shift();if(!qp(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:o,candidates:u})}else{var c=Ol.call(o,Wp);c&&r.filter(o)&&(n||!t.includes(o))&&a.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!qp(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var h=e(f===!0?o.children:f.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:o,candidates:h})}else i.unshift.apply(i,o.children)}}return a},hT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Go=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||XN(t))&&!hT(t)?0:t.tabIndex},YN=function(t,n){var r=Go(t);return r<0&&n&&!hT(t)?0:r},QN=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},pT=function(t){return t.tagName==="INPUT"},JN=function(t){return pT(t)&&t.type==="hidden"},ZN=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},e9=function(t,n){for(var r=0;rsummary:first-of-type"),o=i?t.parentElement:t;if(Ol.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var l=t;t;){var s=t.parentElement,u=Vp(t);if(s&&!s.shadowRoot&&a(s)===!0)return HS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(a9(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return HS(t);return!1},o9=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},s9=function e(t){var n=[],r=[];return t.forEach(function(a,i){var o=!!a.scopeParent,l=o?a.scopeParent:a,s=YN(l,o),u=o?e(a.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:i,tabIndex:s,item:a,isScope:o,content:u})}),r.sort(QN).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(n)},u9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=dT([t],n.includeContainer,{filter:Ob.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:l9}):r=fT(t,n.includeContainer,Ob.bind(null,n)),s9(r)},c9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=dT([t],n.includeContainer,{filter:Gp.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=fT(t,n.includeContainer,Gp.bind(null,n)),r},ts=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,Wp)===!1?!1:Ob(n,t)},f9=uT.concat("iframe").join(","),Sv=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,f9)===!1?!1:Gp(n,t)};/*! +*/var sT=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Wp=sT.join(","),uT=typeof Element>"u",Ol=uT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vp=!uT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},qp=function e(t,n){var r;n===void 0&&(n=!0);var a=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=a===""||a==="true",o=i||n&&t&&e(t.parentNode);return o},KN=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},cT=function(t,n,r){if(qp(t))return[];var a=Array.prototype.slice.apply(t.querySelectorAll(Wp));return n&&Ol.call(t,Wp)&&a.unshift(t),a=a.filter(r),a},fT=function e(t,n,r){for(var a=[],i=Array.from(t);i.length;){var o=i.shift();if(!qp(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?a.push.apply(a,u):a.push({scopeParent:o,candidates:u})}else{var c=Ol.call(o,Wp);c&&r.filter(o)&&(n||!t.includes(o))&&a.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!qp(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var h=e(f===!0?o.children:f.children,!0,r);r.flatten?a.push.apply(a,h):a.push({scopeParent:o,candidates:h})}else i.unshift.apply(i,o.children)}}return a},dT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Go=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||KN(t))&&!dT(t)?0:t.tabIndex},XN=function(t,n){var r=Go(t);return r<0&&n&&!dT(t)?0:r},YN=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},hT=function(t){return t.tagName==="INPUT"},QN=function(t){return hT(t)&&t.type==="hidden"},JN=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ZN=function(t,n){for(var r=0;rsummary:first-of-type"),o=i?t.parentElement:t;if(Ol.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof a=="function"){for(var l=t;t;){var s=t.parentElement,u=Vp(t);if(s&&!s.shadowRoot&&a(s)===!0)return HS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(r9(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return HS(t);return!1},i9=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r=0)},l9=function e(t){var n=[],r=[];return t.forEach(function(a,i){var o=!!a.scopeParent,l=o?a.scopeParent:a,s=XN(l,o),u=o?e(a.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:i,tabIndex:s,item:a,isScope:o,content:u})}),r.sort(YN).reduce(function(a,i){return i.isScope?a.push.apply(a,i.content):a.push(i.content),a},[]).concat(n)},s9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=fT([t],n.includeContainer,{filter:Cb.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:o9}):r=cT(t,n.includeContainer,Cb.bind(null,n)),l9(r)},u9=function(t,n){n=n||{};var r;return n.getShadowRoot?r=fT([t],n.includeContainer,{filter:Gp.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=cT(t,n.includeContainer,Gp.bind(null,n)),r},ts=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,Wp)===!1?!1:Cb(n,t)},c9=sT.concat("iframe").join(","),Ov=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ol.call(t,c9)===!1?!1:Gp(n,t)};/*! * focus-trap 7.5.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VS(e){for(var t=1;t0){var r=t[t.length-1];r!==n&&r.pause()}var a=t.indexOf(n);a===-1||t.splice(a,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},m9=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},g9=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Gc=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},v9=function(t){return Gc(t)&&!t.shiftKey},y9=function(t){return Gc(t)&&t.shiftKey},GS=function(t){return setTimeout(t,0)},KS=function(t,n){var r=-1;return t.every(function(a,i){return n(a)?(r=i,!1):!0}),r},oc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?L-1:0),U=1;U=0)T=r.activeElement;else{var E=o.tabbableGroups[0],L=E&&E.firstTabbableNode;T=L||c("fallbackFocus")}if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},d=function(){if(o.containerGroups=o.containers.map(function(T){var E=u9(T,i.tabbableOptions),L=c9(T,i.tabbableOptions),N=E.length>0?E[0]:void 0,U=E.length>0?E[E.length-1]:void 0,W=L.find(function(k){return ts(k)}),$=L.slice().reverse().find(function(k){return ts(k)}),F=!!E.find(function(k){return Go(k)>0});return{container:T,tabbableNodes:E,focusableNodes:L,posTabIndexesFound:F,firstTabbableNode:N,lastTabbableNode:U,firstDomTabbableNode:W,lastDomTabbableNode:$,nextTabbableNode:function(X){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=E.indexOf(X);return R<0?te?L.slice(L.indexOf(X)+1).find(function(J){return ts(J)}):L.slice(0,L.indexOf(X)).reverse().find(function(J){return ts(J)}):E[R+(te?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(T){return T.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function P(T){var E=T.activeElement;if(E)return E.shadowRoot&&E.shadowRoot.activeElement!==null?P(E.shadowRoot):E},p=function P(T){if(T!==!1&&T!==h(document)){if(!T||!T.focus){P(f());return}T.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=T,m9(T)&&T.select()}},g=function(T){var E=c("setReturnFocus",T);return E||(E===!1?!1:T)},b=function(T){var E=T.target,L=T.event,N=T.isBackward,U=N===void 0?!1:N;E=E||gh(L),d();var W=null;if(o.tabbableGroups.length>0){var $=u(E,L),F=$>=0?o.containerGroups[$]:void 0;if($<0)U?W=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:W=o.tabbableGroups[0].firstTabbableNode;else if(U){var k=KS(o.tabbableGroups,function(ue){var ve=ue.firstTabbableNode;return E===ve});if(k<0&&(F.container===E||Sv(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E,!1))&&(k=$),k>=0){var X=k===0?o.tabbableGroups.length-1:k-1,te=o.tabbableGroups[X];W=Go(E)>=0?te.lastTabbableNode:te.lastDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E,!1))}else{var R=KS(o.tabbableGroups,function(ue){var ve=ue.lastTabbableNode;return E===ve});if(R<0&&(F.container===E||Sv(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E))&&(R=$),R>=0){var J=R===o.tabbableGroups.length-1?0:R+1,ae=o.tabbableGroups[J];W=Go(E)>=0?ae.firstTabbableNode:ae.firstDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E))}}else W=c("fallbackFocus");return W},m=function(T){var E=gh(T);if(!(u(E,T)>=0)){if(oc(i.clickOutsideDeactivates,T)){l.deactivate({returnFocus:i.returnFocusOnDeactivate});return}oc(i.allowOutsideClick,T)||T.preventDefault()}},v=function(T){var E=gh(T),L=u(E,T)>=0;if(L||E instanceof Document)L&&(o.mostRecentlyFocusedNode=E);else{T.stopImmediatePropagation();var N,U=!0;if(o.mostRecentlyFocusedNode)if(Go(o.mostRecentlyFocusedNode)>0){var W=u(o.mostRecentlyFocusedNode),$=o.containerGroups[W].tabbableNodes;if($.length>0){var F=$.findIndex(function(k){return k===o.mostRecentlyFocusedNode});F>=0&&(i.isKeyForward(o.recentNavEvent)?F+1<$.length&&(N=$[F+1],U=!1):F-1>=0&&(N=$[F-1],U=!1))}}else o.containerGroups.some(function(k){return k.tabbableNodes.some(function(X){return Go(X)>0})})||(U=!1);else U=!1;U&&(N=b({target:o.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(o.recentNavEvent)})),p(N||o.mostRecentlyFocusedNode||f())}o.recentNavEvent=void 0},_=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=T;var L=b({event:T,isBackward:E});L&&(Gc(T)&&T.preventDefault(),p(L))},x=function(T){if(g9(T)&&oc(i.escapeDeactivates,T)!==!1){T.preventDefault(),l.deactivate();return}(i.isKeyForward(T)||i.isKeyBackward(T))&&_(T,i.isKeyBackward(T))},O=function(T){var E=gh(T);u(E,T)>=0||oc(i.clickOutsideDeactivates,T)||oc(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},S=function(){if(o.active)return qS.activateTrap(a,l),o.delayInitialFocusTimer=i.delayInitialFocus?GS(function(){p(f())}):p(f()),r.addEventListener("focusin",v,!0),r.addEventListener("mousedown",m,{capture:!0,passive:!1}),r.addEventListener("touchstart",m,{capture:!0,passive:!1}),r.addEventListener("click",O,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),l},w=function(){if(o.active)return r.removeEventListener("focusin",v,!0),r.removeEventListener("mousedown",m,!0),r.removeEventListener("touchstart",m,!0),r.removeEventListener("click",O,!0),r.removeEventListener("keydown",x,!0),l},C=function(T){var E=T.some(function(L){var N=Array.from(L.removedNodes);return N.some(function(U){return U===o.mostRecentlyFocusedNode})});E&&p(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(C):void 0,I=function(){A&&(A.disconnect(),o.active&&!o.paused&&o.containers.map(function(T){A.observe(T,{subtree:!0,childList:!0})}))};return l={get active(){return o.active},get paused(){return o.paused},activate:function(T){if(o.active)return this;var E=s(T,"onActivate"),L=s(T,"onPostActivate"),N=s(T,"checkCanFocusTrap");N||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,E==null||E();var U=function(){N&&d(),S(),I(),L==null||L()};return N?(N(o.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(T){if(!o.active)return this;var E=VS({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,w(),o.active=!1,o.paused=!1,I(),qS.deactivateTrap(a,l);var L=s(E,"onDeactivate"),N=s(E,"onPostDeactivate"),U=s(E,"checkCanReturnFocus"),W=s(E,"returnFocus","returnFocusOnDeactivate");L==null||L();var $=function(){GS(function(){W&&p(g(o.nodeFocusedBeforeActivation)),N==null||N()})};return W&&U?(U(g(o.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(T){if(o.paused||!o.active)return this;var E=s(T,"onPause"),L=s(T,"onPostPause");return o.paused=!0,E==null||E(),w(),I(),L==null||L(),this},unpause:function(T){if(!o.paused||!o.active)return this;var E=s(T,"onUnpause"),L=s(T,"onPostUnpause");return o.paused=!1,E==null||E(),d(),S(),I(),L==null||L(),this},updateContainerElements:function(T){var E=[].concat(T).filter(Boolean);return o.containers=E.map(function(L){return typeof L=="string"?r.querySelector(L):L}),o.active&&d(),I(),this}},l.updateContainerElements(t),l};function x9(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>()=>{t.current()},[])}const B2=y.forwardRef(function(t,n){var{active:r=!0,paused:a=!1,focusTrapOptions:i={},preventScrollOnDeactivate:o=!1}=t,l=Q(t,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const s=y.useRef(null);y.useImperativeHandle(n,()=>s.current);const u=y.useRef(null);y.useEffect(()=>{const f=_9(s.current,Object.assign(Object.assign({},i),{returnFocusOnDeactivate:!1}));return u.current=f,()=>{f.deactivate()}},[]),y.useEffect(()=>{const f=u.current;r?f==null||f.activate():f==null||f.deactivate()},[r]),y.useEffect(()=>{const f=u.current;a?f==null||f.pause():f==null||f.unpause()},[a]);const c=y.useRef(typeof document<"u"?document.activeElement:null);return x9(()=>{i.returnFocusOnDeactivate!==!1&&c.current instanceof HTMLElement&&c.current.focus({preventScroll:o})}),M.createElement("div",Object.assign({ref:s},l))});B2.displayName="FocusTrap";function U2(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function w9(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function vh(e,t,n,r=!1){if(!e||!t)return!1;const a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=Math.ceil(a.left),l=Math.floor(a.right),s=Math.ceil(i.left),u=Math.floor(i.right),c=s>=o&&u<=l,f=(n||!r&&a.widtho||u>l&&sObject.entries(e||{}).reduce((n,[r,a])=>r==="default"?Object.assign(Object.assign({},n),{[t]:a}):Object.assign(Object.assign({},n),{[`${t}-on-${r}`]:a}),{}),Ci=(e,t,n="",r,a)=>{if(!e)return"";if(r&&!a){if(r in e)return t.modifiers[Ov(`${n}${e[r]}`)];const i=["2xl","xl","lg","md","sm","default"],o=i.indexOf(r);for(let l=o;l`${n}${o}${i!=="default"?`-on-${i}`:""}${a&&i!=="default"?"-height":""}`).map(Ov).map(i=>i.replace(/-?(\dxl)/gi,(o,l)=>`_${l}`)).map(i=>t.modifiers[i]).filter(Boolean).join(" ")},gT=e=>e===null?null:e>=ic["2xl"]?"2xl":e>=ic.xl?"xl":e>=ic.lg?"lg":e>=ic.md?"md":e>=ic.sm?"sm":"default",vT=e=>e===null?null:e>=ac["2xl"]?"2xl":e>=ac.xl?"xl":e>=ac.lg?"lg":e>=ac.md?"md":e>=ac.sm?"sm":"default",S9=e=>e.toUpperCase().replace("-","").replace("_",""),Ov=e=>e.replace(/([-_][a-z])/gi,S9),Oo=!!(typeof window<"u"&&window.document&&window.document.createElement),XS=(e,t)=>{const n=getComputedStyle(t),r=()=>{let o="";const l={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let s;return n.fontStretch in l?s=l[n.fontStretch]:s="normal",o=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+s+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,o},i=document.createElement("canvas").getContext("2d");return i.font=n.font||r(),i.measureText(e).width},O9=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},C9=(e,t)=>{const n=O9(e).width;let r=t;if(XS(t,e)>n){for(;XS(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},yh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},Ds=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let E9=0;function k9(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():U2()}class Mu extends y.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?k9():E9++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Mu.displayName="GenerateId";Mu.defaultProps={prefix:"pf-random-id-",isRandom:!1};const yT="*";let P9=0;const YS="OUIA-Generated-",Cv={};function Ll(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ii=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":T9(e,t,r)}),T9=(e,t,n)=>{const r=y.useMemo(()=>Lo(e,n),[e,n]);return t??r};function Lo(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,Cv[n]||(Cv[n]=0),`${YS}${e}-${t?`${t}-`:""}${++Cv[n]}`}catch{return`${YS}${e}-${t?`${t}-`:""}${++P9}`}}function Of(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 qa(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function H2(e){const t=qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cf(e){const t=qa(e).Element;return e instanceof t||e instanceof Element}function Ua(e){const t=qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function A9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function M9(e){return e===qa(e)||!Ua(e)?H2(e):A9(e)}function ma(e){return e?(e.nodeName||"").toLowerCase():null}function Ri(e){return(Cf(e)?e.ownerDocument:e.document).documentElement}function W2(e){return Of(Ri(e)).left+H2(e).scrollLeft}function gi(e){return qa(e).getComputedStyle(e)}function V2(e){const{overflow:t,overflowX:n,overflowY:r}=gi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function I9(e,t,n=!1){const r=Ri(t),a=Of(e),i=Ua(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((ma(t)!=="body"||V2(r))&&(o=M9(t)),Ua(t)?(l=Of(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=W2(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function q2(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Ig(e){return ma(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Ri(e)}function bT(e){return["html","body","#document"].indexOf(ma(e))>=0?e.ownerDocument.body:Ua(e)&&V2(e)?e:bT(Ig(e))}function Kc(e,t=[]){const n=bT(e),r=ma(n)==="body",a=qa(n),i=r?[a].concat(a.visualViewport||[],V2(n)?n:[]):n,o=t.concat(i);return r?o:o.concat(Kc(Ig(i)))}function R9(e){return["table","td","th"].indexOf(ma(e))>=0}function QS(e){if(!Ua(e)||gi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Ri(t);if(ma(t)==="body"&&gi(t).position==="static"&&gi(n).position!=="static")return n}return t}function $9(e){let t=Ig(e);for(;Ua(t)&&["html","body"].indexOf(ma(t))<0;){const n=gi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function bd(e){const t=qa(e);let n=QS(e);for(;n&&R9(n)&&gi(n).position==="static";)n=QS(n);return n&&ma(n)==="body"&&gi(n).position==="static"?t:n||$9(e)||t}const Ur="top",da="bottom",ha="right",Hr="left",G2="auto",_d=[Ur,da,ha,Hr],pu="start",K2="end",L9="clippingParents",_T="viewport",lc="popper",j9="reference",JS=_d.reduce((e,t)=>e.concat([`${t}-${pu}`,`${t}-${K2}`]),[]),xT=[..._d,G2].reduce((e,t)=>e.concat([t,`${t}-${pu}`,`${t}-${K2}`]),[]),D9="beforeRead",N9="read",F9="afterRead",z9="beforeMain",B9="main",U9="afterMain",H9="beforeWrite",W9="write",V9="afterWrite",q9=[D9,N9,F9,z9,B9,U9,H9,W9,V9];function G9(e){const t=new Map,n=new Set,r=[];e.forEach(i=>{t.set(i.name,i)});function a(i){n.add(i.name),[...i.requires||[],...i.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&a(s)}}),r.push(i)}return e.forEach(i=>{n.has(i.name)||a(i)}),r}function K9(e){const t=G9(e);return q9.reduce((n,r)=>n.concat(t.filter(a=>a.phase===r)),[])}function X9(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function Fa(e){return e.split("-")[0]}function Y9(e){const t=e.reduce((n,r)=>{const a=n[r.name];return n[r.name]=a?Object.assign(Object.assign(Object.assign({},a),r),{options:Object.assign(Object.assign({},a.options),r.options),data:Object.assign(Object.assign({},a.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Q9(e){const t=qa(e),n=Ri(e),r=t.visualViewport;let a=n.clientWidth,i=n.clientHeight,o=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:o+W2(e),y:l}}function J9(e){const t=Ri(e),n=H2(e),r=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+W2(e);const l=-n.scrollTop;return gi(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:o,y:l}}function wT(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 Cb(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z9(e){const t=Of(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 ZS(e,t){return t===_T?Cb(Q9(e)):Ua(t)?Z9(t):Cb(J9(Ri(e)))}function eF(e){const t=Kc(Ig(e)),r=["absolute","fixed"].indexOf(gi(e).position)>=0&&Ua(e)?bd(e):e;return Cf(r)?t.filter(a=>Cf(a)&&wT(a,r)&&ma(a)!=="body"):[]}function tF(e,t,n){const a=[...t==="clippingParents"?eF(e):[].concat(t),n],i=a[0],o=a.reduce((l,s)=>{const u=ZS(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},ZS(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ef(e){return e.split("-")[1]}function X2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ST({reference:e,element:t,placement:n}){const r=n?Fa(n):null,a=n?Ef(n):null,i=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case Ur:l={x:i,y:e.y-t.height};break;case da:l={x:i,y:e.y+e.height};break;case ha:l={x:e.x+e.width,y:o};break;case Hr:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?X2(r):null;if(s!=null){const u=s==="y"?"height":"width";switch(a){case pu:l[s]=Math.floor(l[s])-Math.floor(e[u]/2-t[u]/2);break;case K2:l[s]=Math.floor(l[s])+Math.ceil(e[u]/2-t[u]/2);break}}return l}function OT(){return{top:0,right:0,bottom:0,left:0}}function CT(e){return Object.assign(Object.assign({},OT()),e)}function ET(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function kf(e,t={}){const{placement:n=e.placement,boundary:r=L9,rootBoundary:a=_T,elementContext:i=lc,altBoundary:o=!1,padding:l=0}=t,s=CT(typeof l!="number"?l:ET(l,_d)),u=i===lc?j9:lc,c=e.elements.reference,f=e.rects.popper,d=e.elements[o?u:i],h=tF(Cf(d)?d:d.contextElement||Ri(e.elements.popper),r,a),p=Of(c),g=ST({reference:p,element:f,strategy:"absolute",placement:n}),b=Cb(Object.assign(Object.assign({},f),g)),m=i===lc?b:p,v={top:h.top-m.top+s.top,bottom:m.bottom-h.bottom+s.bottom,left:h.left-m.left+s.left,right:m.right-h.right+s.right},_=e.modifiersData.offset;if(i===lc&&_){const x=_[n];Object.keys(v).forEach(O=>{const S=[ha,da].indexOf(O)>=0?1:-1,w=[Ur,da].indexOf(O)>=0?"y":"x";v[O]+=x[w]*S})}return v}const eO={placement:"bottom",modifiers:[],strategy:"absolute"};function tO(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function nF(e={}){const{defaultModifiers:t=[],defaultOptions:n=eO}=e;return function(a,i,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},eO),n),modifiersData:{},elements:{reference:a,popper:i},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:Cf(a)?Kc(a):a.contextElement?Kc(a.contextElement):[],popper:Kc(i)};const p=K9(Y9([...t,...l.options.modifiers]));return l.orderedModifiers=p.filter(g=>g.enabled),f(),c.update()},forceUpdate(){if(u)return;const{reference:h,popper:p}=l.elements;if(tO(h,p)){l.rects={reference:I9(h,bd(p),l.options.strategy==="fixed"),popper:q2(p)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(g=>l.modifiersData[g.name]=Object.assign({},g.data));for(let g=0;gnew Promise(h=>{c.forceUpdate(),h(l)})),destroy(){d(),u=!0}};if(!tO(a,i))return c;c.setOptions(o).then(h=>{!u&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:p={},effect:g})=>{if(typeof g=="function"){const b=g({state:l,name:h,instance:c,options:p}),m=()=>{};s.push(b||m)}})}function d(){s.forEach(h=>h()),s=[]}return c}}const bh={passive:!0};function rF({state:e,instance:t,options:n}){const{scroll:r=!0,resize:a=!0}=n,i=qa(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,bh)}),a&&i.addEventListener("resize",t.update,bh),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,bh)}),a&&i.removeEventListener("resize",t.update,bh)}}const aF={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:rF,data:{}};function iF({state:e,name:t}){e.modifiersData[t]=ST({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const oF={name:"popperOffsets",enabled:!0,phase:"read",fn:iF,data:{}},lF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sF({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 nO({popper:e,popperRect:t,placement:n,offsets:r,position:a,gpuAcceleration:i,adaptive:o}){let{x:l,y:s}=sF(r);const u=r.hasOwnProperty("x"),c=r.hasOwnProperty("y");let f=Hr,d=Ur;const h=window;if(o){let g=bd(e);g===qa(e)&&(g=Ri(e)),n===Ur&&(d=da,s-=g.clientHeight-t.height,s*=i?1:-1),n===Hr&&(f=ha,l-=g.clientWidth-t.width,l*=i?1:-1)}const p=Object.assign({position:a},o&&lF);return i?Object.assign(Object.assign({},p),{[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({},p),{[d]:c?`${s}px`:"",[f]:u?`${l}px`:"",transform:""})}function uF({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,a={placement:Fa(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),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const cF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uF,data:{}};function fF({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},a=e.elements[t];!Ua(a)||!ma(a)||(Object.assign(a.style,n),Object.keys(r).forEach(i=>{const o=r[i];o===!1?a.removeAttribute(i):a.setAttribute(i,o===!0?"":o)}))})}function dF({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],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Ua(r)||!ma(r)||(Object.assign(r.style,o),Object.keys(a).forEach(l=>{r.removeAttribute(l)}))})}}const hF={name:"applyStyles",enabled:!0,phase:"write",fn:fF,effect:dF,requires:["computeStyles"]};function pF(e,t,n){const r=Fa(e),a=[Hr,Ur].indexOf(r)>=0?-1:1;let[i,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return i=i||0,o=(o||0)*a,[Hr,ha].indexOf(r)>=0?{x:o,y:i}:{x:i,y:o}}function mF({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,a=xT.reduce((l,s)=>(l[s]=pF(s,e.rects,r),l),{}),{x:i,y:o}=a[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=a}const gF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mF},vF={left:"right",right:"left",bottom:"top",top:"bottom"};function lp(e){return e.replace(/left|right|bottom|top/g,t=>vF[t])}const yF={start:"end",end:"start"};function rO(e){return e.replace(/start|end/g,t=>yF[t])}function bF(e,t={}){const{placement:n,boundary:r,rootBoundary:a,padding:i,flipVariations:o,allowedAutoPlacements:l=xT}=t,s=Ef(n),u=s?o?JS:JS.filter(d=>Ef(d)===s):_d;let c=u.filter(d=>l.indexOf(d)>=0);c.length===0&&(c=u);const f=c.reduce((d,h)=>(d[h]=kf(e,{placement:h,boundary:r,rootBoundary:a,padding:i})[Fa(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function _F(e){if(Fa(e)===G2)return[];const t=lp(e);return[rO(e),t,rO(t)]}function xF({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:a=!0,fallbackPlacements:i,padding:o,boundary:l,rootBoundary:s,altBoundary:u,flipVariations:c=!0,allowedAutoPlacements:f}=t,d=e.options.placement,p=Fa(d)===d,g=i||(p||!c?[lp(d)]:_F(d)),b=[d,...g].reduce((S,w)=>S.concat(Fa(w)===G2?bF(e,{placement:w,boundary:l,rootBoundary:s,padding:o,flipVariations:c,allowedAutoPlacements:f}):w),[]),m=e.rects.reference,v=e.rects.popper,_=new Map;let x=!0,O=b[0];for(let S=0;S=0,P=I?"width":"height",T=kf(e,{placement:w,boundary:l,rootBoundary:s,altBoundary:u,padding:o});let E=I?A?ha:Hr:A?da:Ur;m[P]>v[P]&&(E=lp(E));const L=lp(E),N=[];if(r&&N.push(T[C]<=0),a&&N.push(T[E]<=0,T[L]<=0),N.every(U=>U)){O=w,x=!1;break}_.set(w,N)}if(x){const S=c?3:1;for(let w=S;w>0;w--){const C=b.find(A=>{const I=_.get(A);if(I)return I.slice(0,w).every(P=>P)});if(C){O=C;break}}}e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}const wF={name:"flip",enabled:!0,phase:"main",fn:xF,requiresIfExists:["offset"],data:{_skip:!1}};function SF(e){return e==="x"?"y":"x"}function sp(e,t,n){return Math.max(e,Math.min(t,n))}function OF({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:a=!1,boundary:i,rootBoundary:o,altBoundary:l,padding:s,tether:u=!0,tetherOffset:c=0}=t,f=kf(e,{boundary:i,rootBoundary:o,padding:s,altBoundary:l}),d=Fa(e.placement),h=Ef(e.placement),p=!h,g=X2(d),b=SF(g),m=e.modifiersData.popperOffsets,v=e.rects.reference,_=e.rects.popper,x=typeof c=="function"?c(Object.assign(Object.assign({},e.rects),{placement:e.placement})):c,O={x:0,y:0};if(m){if(r){const S=g==="y"?Ur:Hr,w=g==="y"?da:ha,C=g==="y"?"height":"width",A=m[g],I=m[g]+f[S],P=m[g]-f[w],T=u?-_[C]/2:0,E=h===pu?v[C]:_[C],L=h===pu?-_[C]:-v[C],N=e.elements.arrow,U=u&&N?q2(N):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:OT(),$=W[S],F=W[w],k=sp(0,v[C],U[C]),X=p?v[C]/2-T-k-$-x:E-k-$-x,te=p?-v[C]/2+T+k+F+x:L+k+F+x,R=e.elements.arrow&&bd(e.elements.arrow),J=R?g==="y"?R.clientTop||0:R.clientLeft||0:0,ae=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,ue=m[g]+X-ae-J,ve=m[g]+te-ae,ke=sp(u?Math.min(I,ue):I,A,u?Math.max(P,ve):P);m[g]=ke,O[g]=ke-A}if(a){const S=g==="x"?Ur:Hr,w=g==="x"?da:ha,C=m[b],A=C+f[S],I=C-f[w],P=sp(A,C,I);m[b]=P,O[b]=P-C}e.modifiersData[n]=O}}const CF={name:"preventOverflow",enabled:!0,phase:"main",fn:OF,requiresIfExists:["offset"]};function EF({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Fa(e.placement),i=X2(a),l=[Hr,ha].indexOf(a)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,u=q2(n),c=i==="y"?Ur:Hr,f=i==="y"?da:ha,d=e.rects.reference[l]+e.rects.reference[i]-r[i]-e.rects.popper[l],h=r[i]-e.rects.reference[i],p=bd(n),g=p?i==="y"?p.clientHeight||0:p.clientWidth||0:0,b=d/2-h/2,m=s[c],v=g-u[l]-s[f],_=g/2-u[l]/2+b,x=sp(m,_,v),O=i;e.modifiersData[t]={[O]:x,centerOffset:x-_}}function kF({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:a=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||wT(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:CT(typeof a!="number"?a:ET(a,_d))}))}const PF={name:"arrow",enabled:!0,phase:"main",fn:EF,effect:kF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aO(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 iO(e){return[Ur,ha,da,Hr].some(t=>e[t]>=0)}function TF({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=kf(e,{elementContext:"reference"}),o=kf(e,{altBoundary:!0}),l=aO(i,n),s=aO(o,r,a),u=iO(l),c=iO(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 AF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:TF},MF=[aF,oF,cF,hF,gF,wF,CF,PF,AF],IF=nF({defaultModifiers:MF}),Eb=Oo?y.useLayoutEffect:y.useEffect,RF=(e,t)=>JSON.stringify(e)===JSON.stringify(t),oO=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),$F=[],LF=(e,t,n={})=>{const r=y.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||$F},[i,o]=y.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=y.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const f=Object.keys(c.elements);o({styles:oO(f.map(d=>[d,c.styles[d]||{}])),attributes:oO(f.map(d=>[d,c.attributes[d]]))})},requires:["computeStyles"]}),[]),s=y.useMemo(()=>{const c={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return RF(r.current,c)?r.current||c:(r.current=c,c)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),u=y.useRef();return Eb(()=>{u&&u.current&&u.current.setOptions(s)},[s]),Eb(()=>{if(e==null||t==null)return;const f=(n.createPopper||IF)(e,t,s);return u.current=f,()=>{f.destroy(),u.current=null}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:i.styles,attributes:i.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},jF={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"},DF=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=>jF[t]),NF=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,jl=({trigger:e,popper:t,direction:n="down",position:r="start",placement:a,width:i,minWidth:o="trigger",maxWidth:l,appendTo:s="inline",zIndex:u=9999,isVisible:c=!0,positionModifiers:f,distance:d=0,onMouseEnter:h,onMouseLeave:p,onFocus:g,onBlur:b,onDocumentClick:m,onTriggerClick:v,onTriggerEnter:_,onPopperClick:x,onPopperMouseEnter:O,onPopperMouseLeave:S,onDocumentKeyDown:w,enableFlip:C=!0,flipBehavior:A="flip",triggerRef:I,popperRef:P,animationDuration:T=0,entryDelay:E=0,exitDelay:L=0,onHidden:N=()=>{},onHide:U=()=>{},onMount:W=()=>{},onShow:$=()=>{},onShown:F=()=>{},preventOverflow:k=!1})=>{var X;const[te,R]=y.useState(null),[J,ae]=y.useState(null),[ue,ve]=y.useState(null),[ke,q]=y.useState(null),[Z,ie]=y.useState(!1),[K,Te]=y.useState(0),[ye,Ae]=y.useState(c),Ce=y.useRef(null),Re=y.useRef(null),Ge=y.useRef(null),_e=y.useRef(),re=J||te,oe=c||ye,xe=(X=(I==null?void 0:I.current)||te)===null||X===void 0?void 0:X.parentElement,De=Ds(xe),Je=y.useMemo(()=>{const Fe={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Fe),rtl:Object.assign({start:"right",end:"left"},Fe)}[De][r]},[r,De]),z=y.useCallback(Fe=>m(Fe,re,ue),[oe,te,J,ue,m]);y.useEffect(()=>{ie(!0),W()},[]),y.useEffect(()=>()=>{yh([Ce,Ge,Re])},[]),y.useEffect(()=>{I&&(I.current?ae(I.current):typeof I=="function"&&ae(I()))},[I,e]),y.useEffect(()=>{P&&(P.current?ve(P.current):typeof P=="function"&&ve(P()))},[oe,P]),y.useEffect(()=>{const Fe=new MutationObserver(()=>{Bt&&Bt()});return ue&&Fe.observe(ue,{attributes:!0,childList:!0,subtree:!0}),()=>{Fe.disconnect()}},[ue]);const Y=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.addEventListener(Za,Fe,{capture:H})},he=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.removeEventListener(Za,Fe,{capture:H})};y.useEffect(()=>(Y(h,re,"mouseenter"),Y(p,re,"mouseleave"),Y(g,re,"focus"),Y(b,re,"blur"),Y(v,re,"click"),Y(_,re,"keydown"),Y(x,ue,"click"),Y(O,ue,"mouseenter"),Y(S,ue,"mouseleave"),m&&Y(z,document,"click",!0),Y(w,document,"keydown",!0),()=>{he(h,re,"mouseenter"),he(p,re,"mouseleave"),he(g,re,"focus"),he(b,re,"blur"),he(v,re,"click"),he(_,re,"keydown"),he(x,ue,"click"),he(O,ue,"mouseenter"),he(S,ue,"mouseleave"),m&&he(z,document,"click",!0),he(w,document,"keydown",!0)}),[te,ue,h,p,g,b,v,_,x,O,S,m,w,J]);const se=()=>{if(a)return a;let Fe=n==="up"?"top":"bottom";return Je!=="center"&&(Fe=`${Fe}-${Je==="right"?"end":"start"}`),Fe},pe=y.useMemo(se,[n,Je,a]),He=y.useMemo(()=>DF(se()),[n,Je,a]),ge=y.useMemo(()=>({name:"widthMods",enabled:i!==void 0||o!==void 0||l!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Fe})=>{const xt=Fe.rects.reference.width;i&&(Fe.styles.popper.width=i==="trigger"?`${xt}px`:i),o&&(Fe.styles.popper.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.styles.popper.maxWidth=l==="trigger"?`${xt}px`:l)},effect:({state:Fe})=>{const xt=Fe.elements.reference.offsetWidth;return i&&(Fe.elements.popper.style.width=i==="trigger"?`${xt}px`:i),o&&(Fe.elements.popper.style.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.elements.popper.style.maxWidth=l==="trigger"?`${xt}px`:l),()=>{}}}),[i,o,l]),{styles:Pe,attributes:Ke,update:Bt,forceUpdate:$e}=LF(re,ue,{placement:pe,modifiers:[{name:"offset",options:{offset:[0,d]}},{name:"preventOverflow",enabled:k},{name:"hide",enabled:!0},{name:"flip",enabled:pe.startsWith("auto")||C,options:{fallbackPlacements:A==="flip"?[He]:A}},ge]});y.useEffect(()=>{var Fe,xt,Za,H,G,ee,de;const be=((H=(Za=(xt=(Fe=t==null?void 0:t.props)===null||Fe===void 0?void 0:Fe.children)===null||xt===void 0?void 0:xt[1])===null||Za===void 0?void 0:Za.props)===null||H===void 0?void 0:H.children)||((de=(ee=(G=t==null?void 0:t.props)===null||G===void 0?void 0:G.children)===null||ee===void 0?void 0:ee.props)===null||de===void 0?void 0:de.children);q(be),be&&ke&&be!==ke&&$e&&$e()},[t]),y.useEffect(()=>{_e.current{Ce.current=setTimeout(()=>{Ae(!1)},T)},L)),_e.current=L},[L]);const Ze=()=>{$(),yh([Ce,Ge]),Re.current=setTimeout(()=>{Ae(!0),Te(1),F()},E)},dt=()=>{U(),yh([Re]),Ge.current=setTimeout(()=>{Te(0),Ce.current=setTimeout(()=>{Ae(!1),N()},T)},L)};y.useEffect(()=>{c?Ze():dt()},[c]);const Gt=()=>{if(Ke&&Ke.popper&&Ke.popper["data-popper-placement"]){const Fe=Ke.popper["data-popper-placement"];return f[Fe]}return f.top},ya=Object.assign({className:D(t.props&&t.props.className,f&&Gt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Pe.popper),{zIndex:u,opacity:K,transition:NF(T)})},Ke.popper),Bi=()=>{const Fe=y.cloneElement(t,ya);return P?Fe:y.createElement("div",{style:{display:"contents"},ref:xt=>ve(xt==null?void 0:xt.firstElementChild)},Fe)},Kd=()=>{if(s==="inline")return Bi();{const Fe=typeof s=="function"?s():s;return Mg.createPortal(Bi(),Fe)}};return y.createElement(y.Fragment,null,!I&&e&&y.isValidElement(e)&&y.createElement("div",{style:{display:"contents"},ref:Fe=>R(Fe==null?void 0:Fe.firstElementChild)},e),I&&e&&y.isValidElement(e)&&e,Z&&oe&&Kd())};jl.displayName="Popper";const kT=(e,t,n=u=>document.activeElement.contains(u),r=u=>u,a=["A","BUTTON","INPUT"],i=!1,o=!1,l=!0,s=!0)=>{const u=document.activeElement,c=e.key;let f=null;if(!i&&["ArrowUp","ArrowDown"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){let g=0;for(;!f&&g=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,p)=>{if(n(h)){const g=t[p].querySelectorAll(a.join(","));if(!g.length||s){let b=u;for(;b;)if(b=c==="ArrowLeft"?b.previousElementSibling:b.nextElementSibling,b&&a.includes(b.tagName)){f=b;break}}else g.forEach((b,m)=>{e.target===b&&(d=m+(c==="ArrowLeft"?-1:1),d>=g.length&&(d=0),d<0&&(d=g.length-1),f=g[d])})}})}f&&(l&&(u.tabIndex=-1,f.tabIndex=0),f.focus())},FF=e=>{e&&e.length>0&&(e.forEach(t=>{t.tabIndex=-1}),e[0].tabIndex=0)};class Y2 extends y.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:a,noVerticalArrowHandling:i,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:u,validSiblingTags:c,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const p=d();if(!p){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const g=t.key;l||g==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||g===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),kT(t,p,r,a,c,i,o,u,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Oo&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Oo&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Y2.displayName="KeyboardHandler";Y2.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 Q2=(e,t,n)=>{let r;if(Oo){const{ResizeObserver:a}=window;if(e&&a){const i=new a(o=>{n?window.requestAnimationFrame(()=>{Array.isArray(o)&&o.length>0}):Array.isArray(o)&&o.length>0&&t()});i.observe(e),r=()=>i.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},Sa=e=>!!(e&&!isNaN(e)),nn={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},_h={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},zF={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var kb;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(kb||(kb={}));const Rg=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:a,isInline:i=!1,"aria-label":o,"aria-labelledBy":l}=e,s=Q(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return y.createElement("svg",Object.assign({className:D(_h.spinner,i?_h.modifiers.inline:_h.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},a&&{style:{[zF.name]:a}},o&&{"aria-label":o},l&&{"aria-labelledBy":l},!o&&!l&&{"aria-label":"Contents"},s),y.createElement("circle",{className:_h.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};Rg.displayName="Spinner";const Ev={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},J2=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:a}=e,i=Q(e,["isRead","className","children","screenReaderText"]);return y.createElement("span",Object.assign({},i,{className:D(Ev.badge,t?Ev.modifiers.read:Ev.modifiers.unread,n)}),r,a&&y.createElement("span",{className:"pf-v5-screen-reader"},a))};J2.displayName="Badge";var pn;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(pn||(pn={}));var Pb;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Pb||(Pb={}));var Xc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Xc||(Xc={}));const BF=e=>{var{children:t=null,className:n="",component:r="button",isActive:a=!1,isBlock:i=!1,isDisabled:o=!1,isAriaDisabled:l=!1,isLoading:s=null,isDanger:u=!1,spinnerAriaValueText:c,spinnerAriaLabelledBy:f,spinnerAriaLabel:d,size:h=Xc.default,inoperableEvents:p=["onClick","onKeyPress"],isInline:g=!1,type:b=Pb.button,variant:m=pn.primary,iconPosition:v="start","aria-label":_=null,icon:x=null,ouiaId:O,ouiaSafe:S=!0,tabIndex:w=null,innerRef:C,countOptions:A}=e,I=Q(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const P=Ii(gt.displayName,O,S,m),T=r,E=T==="button",L=g&&T==="span",N=p.reduce((W,$)=>Object.assign(Object.assign({},W),{[$]:F=>{F.preventDefault()}}),{}),U=()=>{if(o)return E?null:-1;if(l)return null;if(L)return 0};return y.createElement(T,Object.assign({},I,l?N:null,{"aria-disabled":o||l,"aria-label":_,className:D(nn.button,nn.modifiers[m],i&&nn.modifiers.block,o&&nn.modifiers.disabled,l&&nn.modifiers.ariaDisabled,a&&nn.modifiers.active,g&&m===pn.link&&nn.modifiers.inline,u&&(m===pn.secondary||m===pn.link)&&nn.modifiers.danger,s!==null&&m!==pn.plain&&nn.modifiers.progress,s&&nn.modifiers.inProgress,h===Xc.sm&&nn.modifiers.small,h===Xc.lg&&nn.modifiers.displayLg,n),disabled:E?o:null,tabIndex:w!==null?w:U(),type:E||L?b:null,role:L?"button":null,ref:C},P),s&&y.createElement("span",{className:D(nn.buttonProgress)},y.createElement(Rg,{size:kb.md,isInline:g,"aria-valuetext":c,"aria-label":d,"aria-labelledby":f})),m===pn.plain&&t===null&&x?x:null,m!==pn.plain&&x&&(v==="start"||v==="left")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.start)},x),t,m!==pn.plain&&x&&(v==="end"||v==="right")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.end)},x),A&&y.createElement("span",{className:D(nn.buttonCount,A.className)},y.createElement(J2,{isRead:A.isRead},A.count)))},gt=y.forwardRef((e,t)=>y.createElement(BF,Object.assign({innerRef:t},e)));gt.displayName="Button";let UF=0;function ht({name:e,xOffset:t=0,yOffset:n=0,width:r,height:a,svgPath:i}){var o;return o=class extends y.Component{constructor(){super(...arguments),this.id=`icon-title-${UF++}`}render(){const s=this.props,{title:u,className:c}=s,f=Q(s,["title","className"]),d=c?`pf-v5-svg ${c}`:"pf-v5-svg",h=!!u,p=[t,n,r,a].join(" ");return y.createElement("svg",Object.assign({className:d,viewBox:p,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},f),h&&y.createElement("title",{id:this.id},u),y.createElement("path",{d:i}))}},o.displayName=e,o}const HF={name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0},WF=ht(HF),Tb=WF,VF={bullseye:"pf-v5-l-bullseye"},wn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},PT=e=>{var{className:t,children:n,isLeftAligned:r}=e,a=Q(e,["className","children","isLeftAligned"]);return y.createElement("div",Object.assign({className:D(wn.tooltipContent,r&&wn.modifiers.textAlignLeft,t)},a),n)};PT.displayName="TooltipContent";const TT=e=>{var{className:t}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(wn.tooltipArrow,t)},n))};TT.displayName="TooltipArrow";const lO={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var sO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(sO||(sO={}));let qF=1;const $i=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:a=!1,isContentLeftAligned:i=!1,enableFlip:o=!0,className:l="",entryDelay:s=300,exitDelay:u=300,appendTo:c=()=>document.body,zIndex:f=9999,minWidth:d,maxWidth:h=lO.value,distance:p=15,aria:g="describedby",flipBehavior:b=["top","right","bottom","left","top","right","bottom"],id:m=`pf-tooltip-${qF++}`,children:v,animationDuration:_=300,triggerRef:x,"aria-live":O=x?"polite":"off",onTooltipHidden:S=()=>{}}=e,w=Q(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const C=r.includes("mouseenter"),A=r.includes("focus"),I=r.includes("click"),P=r==="manual",[T,E]=y.useState(!1),L=y.createRef(),N=J=>{P||J.key===Hp.Escape&&T&&$()},U=J=>{J.key===Hp.Enter&&(T?$():W())};y.useEffect(()=>{a?W():$()},[a]);const W=()=>{E(!0)},$=()=>{E(!1)},F={top:wn.modifiers.top,bottom:wn.modifiers.bottom,left:wn.modifiers.left,right:wn.modifiers.right,"top-start":wn.modifiers.topLeft,"top-end":wn.modifiers.topRight,"bottom-start":wn.modifiers.bottomLeft,"bottom-end":wn.modifiers.bottomRight,"left-start":wn.modifiers.leftTop,"left-end":wn.modifiers.leftBottom,"right-start":wn.modifiers.rightTop,"right-end":wn.modifiers.rightBottom},k=h!==lO.value,X=y.createElement("div",Object.assign({"aria-live":O,className:D(wn.tooltip,l),role:"tooltip",id:m,style:{maxWidth:k?h:null},ref:L},w),y.createElement(TT,null),y.createElement(PT,{isLeftAligned:i},t)),te=(J,ae)=>{T?$():J.target===ae&&W()},R=()=>g==="describedby"&&v&&v.props&&!v.props["aria-describedby"]?y.cloneElement(v,{"aria-describedby":m}):g==="labelledby"&&v.props&&!v.props["aria-labelledby"]?y.cloneElement(v,{"aria-labelledby":m}):v;return y.createElement(jl,{trigger:g!=="none"&&T?R():v,triggerRef:x,popper:X,popperRef:L,minWidth:d!==void 0?d:"revert",appendTo:c,isVisible:T,positionModifiers:F,distance:p,placement:n,onMouseEnter:C&&W,onMouseLeave:C&&$,onPopperMouseEnter:C&&W,onPopperMouseLeave:C&&$,onFocus:A&&W,onBlur:A&&$,onDocumentClick:I&&te,onDocumentKeyDown:P?null:N,onTriggerEnter:P?null:U,enableFlip:o,zIndex:f,flipBehavior:b,animationDuration:_,entryDelay:s,exitDelay:u,onHidden:S})};$i.displayName="Tooltip";const GF={name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0},Z2=ht(GF),KF={name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},AT=ht(KF),XF={name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},MT=ht(XF),YF={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},QF=ht(YF),Iu=QF,JF={name:"AngleUpIcon",height:512,width:320,svgPath:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z",yOffset:0,xOffset:0},ZF=ht(JF),ez=ZF,Ia={breadcrumb:"pf-v5-c-breadcrumb",breadcrumbDropdown:"pf-v5-c-breadcrumb__dropdown",breadcrumbHeading:"pf-v5-c-breadcrumb__heading",breadcrumbItem:"pf-v5-c-breadcrumb__item",breadcrumbItemDivider:"pf-v5-c-breadcrumb__item-divider",breadcrumbLink:"pf-v5-c-breadcrumb__link",breadcrumbList:"pf-v5-c-breadcrumb__list",dirRtl:"pf-v5-m-dir-rtl",dropdownToggle:"pf-v5-c-dropdown__toggle",modifiers:{current:"pf-m-current"}},Dl=e=>{var{children:t=null,className:n="","aria-label":r="Breadcrumb",ouiaId:a,ouiaSafe:i=!0}=e,o=Q(e,["children","className","aria-label","ouiaId","ouiaSafe"]);const l=Ii(Dl.displayName,a,i);return y.createElement("nav",Object.assign({},o,{"aria-label":r,className:D(Ia.breadcrumb,n)},l),y.createElement("ol",{className:Ia.breadcrumbList,role:"list"},y.Children.map(t,(s,u)=>{const c=u>0;return y.isValidElement(s)?y.cloneElement(s,{showDivider:c}):s})))};Dl.displayName="Breadcrumb";const Dr=e=>{var{children:t=null,className:n="",to:r=void 0,isActive:a=!1,isDropdown:i=!1,showDivider:o,target:l=void 0,component:s="a",render:u=void 0}=e,c=Q(e,["children","className","to","isActive","isDropdown","showDivider","target","component","render"]);const f=s,d=a?"page":void 0,h=D(Ia.breadcrumbLink,a&&Ia.modifiers.current);return y.createElement("li",Object.assign({},c,{className:D(Ia.breadcrumbItem,n)}),o&&y.createElement("span",{className:Ia.breadcrumbItemDivider},y.createElement(Iu,null)),s==="button"&&y.createElement("button",{className:h,"aria-current":d,type:"button"},t),i&&y.createElement("span",{className:D(Ia.breadcrumbDropdown)},t),u&&u({className:h,ariaCurrent:d}),r&&!u&&y.createElement(f,{href:r,target:l,className:h,"aria-current":d},t),!r&&s!=="button"&&!i&&t)};Dr.displayName="BreadcrumbItem";const Oa={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},tz={success:Z2,error:AT,warning:MT},uO=e=>{var{status:t,customIcon:n,className:r}=e,a=Q(e,["status","customIcon","className"]);const i=t&&tz[t];return y.createElement("span",Object.assign({className:D(Oa.formControlIcon,t&&Oa.modifiers.status,r)},a),n||y.createElement(i,null))};var Ab;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(Ab||(Ab={}));var cO;(function(e){e.default="default",e.plain="plain"})(cO||(cO={}));class xd extends y.Component{constructor(t){super(t),this.inputRef=y.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&C9(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:a,onFocus:i}=this.props;(r||a)&&this.restoreText(),i&&i(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:a,onBlur:i}=this.props;(r||a)&&this.handleResize(),i&&i(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:Lo(xd.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=Q2(t.current,this.handleResize,!0),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:a,value:i,placeholder:o,validated:l,onChange:s,onFocus:u,onBlur:c,isLeftTruncated:f,isStartTruncated:d,isExpanded:h,expandedProps:p,readOnly:g,readOnlyVariant:b,isRequired:m,isDisabled:v,customIcon:_,ouiaId:x,ouiaSafe:O}=t,S=Q(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),w=["success","error","warning"].includes(l),C=p?{"aria-expanded":p==null?void 0:p.isExpanded,"aria-controls":p==null?void 0:p.ariaControls,role:"combobox"}:{};return y.createElement("span",{className:D(Oa.formControl,b&&Oa.modifiers.readonly,b==="plain"&&Oa.modifiers.plain,v&&Oa.modifiers.disabled,(h||(p==null?void 0:p.isExpanded))&&Oa.modifiers.expanded,_&&Oa.modifiers.icon,w&&Oa.modifiers[l],r)},y.createElement("input",Object.assign({},S,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:a,value:this.sanitizeInputValue(i),"aria-invalid":S["aria-invalid"]?S["aria-invalid"]:l===Sb.error},C,{required:m,disabled:v,readOnly:!!b||g,ref:n||this.inputRef,placeholder:o},Ll(Ns.displayName,x!==void 0?x:this.state.ouiaStateId,O))),(_||w)&&y.createElement("span",{className:D(Oa.formControlUtilities)},_&&y.createElement(uO,{customIcon:_}),w&&y.createElement(uO,{status:l})))}}xd.displayName="TextInputBase";xd.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Ab.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const Ns=y.forwardRef((e,t)=>y.createElement(xd,Object.assign({},e,{innerRef:t})));Ns.displayName="TextInput";const Le={breadcrumb:"pf-v5-c-breadcrumb",check:"pf-v5-c-check",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuBreadcrumb:"pf-v5-c-menu__breadcrumb",menuContent:"pf-v5-c-menu__content",menuFooter:"pf-v5-c-menu__footer",menuGroup:"pf-v5-c-menu__group",menuGroupTitle:"pf-v5-c-menu__group-title",menuHeader:"pf-v5-c-menu__header",menuItem:"pf-v5-c-menu__item",menuItemAction:"pf-v5-c-menu__item-action",menuItemActionIcon:"pf-v5-c-menu__item-action-icon",menuItemCheck:"pf-v5-c-menu__item-check",menuItemDescription:"pf-v5-c-menu__item-description",menuItemExternalIcon:"pf-v5-c-menu__item-external-icon",menuItemIcon:"pf-v5-c-menu__item-icon",menuItemMain:"pf-v5-c-menu__item-main",menuItemSelectIcon:"pf-v5-c-menu__item-select-icon",menuItemText:"pf-v5-c-menu__item-text",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuList:"pf-v5-c-menu__list",menuListItem:"pf-v5-c-menu__list-item",menuSearch:"pf-v5-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",ariaDisabled:"pf-m-aria-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-v5-theme-dark"},fO={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},Cl=y.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"}),IT=y.createContext({itemId:null,isDisabled:!1});class $g extends y.Component{constructor(t){super(t),this.menuRef=y.createRef(),this.activeMenu=null,this.state={ouiaStateId:Lo(Pf.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(`.${Le.menu}`)&&!Array.from(r.getElementsByClassName(Le.menu)).includes(n.target.closest(`.${Le.menu}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const a=r.querySelector("#"+this.props.activeMenu)||r||null,i=a.getElementsByTagName("UL");if(i.length===0)return;const o=Array.from(i[0].children);if(!this.state.currentDrilldownMenuId||a.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:a.id});else return;const l=o.filter(s=>!(s.classList.contains("pf-m-disabled")||s.classList.contains(Le.divider)))[0].firstChild;l.focus(),l.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,a=document.activeElement;if(n.target.closest(`.${Le.menu}`)!==this.activeMenu&&!n.target.classList.contains(Ia.breadcrumbLink)&&(this.activeMenu=n.target.closest(`.${Le.menu}`),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const i=this.activeMenu,o=n.key,l=a.classList.contains(Ia.breadcrumbLink)||a.classList.contains(fO.dropdownToggle);if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(a.closest("li").classList.contains("pf-m-current-path")&&i.parentElement.tagName==="LI")a.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(a.nextElementSibling&&a.nextElementSibling.classList.contains(Le.menu)){const u=Array.from(a.nextElementSibling.getElementsByTagName("UL")[0].children).filter(c=>!(c.classList.contains("pf-m-disabled")||c.classList.contains(Le.divider)));a.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(Le.divider))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains(Le.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}),Oo&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Oo&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{id:n,children:r,className:a,onSelect:i,selected:o=null,onActionClick:l,ouiaId:s,ouiaSafe:u,containsFlyout:c,isNavFlyout:f,containsDrilldown:d,isMenuDrilledIn:h,isPlain:p,isScrollable:g,drilldownItemPath:b,drilledInMenus:m,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,parentMenu:O=null,activeItemId:S=null,innerRef:w,isRootMenu:C,activeMenu:A,role:I}=t,P=Q(t,["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"]),T=h||m&&m.includes(n)||!1;return y.createElement(Cl.Provider,{value:{menuId:n,parentMenu:O||n,onSelect:i,onActionClick:l,activeItemId:S,selected:o,drilledInMenus:m,drilldownItemPath:b,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,flyoutRef:this.state.flyoutRef,setFlyoutRef:E=>this.setState({flyoutRef:E}),disableHover:this.state.disableHover,role:I}},C&&y.createElement(Y2,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:E=>document.activeElement.closest("li")===E||document.activeElement.parentElement===E||document.activeElement.closest(`.${Le.menuSearch}`)===E||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===E,getFocusableElement:E=>{var L,N;return(E==null?void 0:E.tagName)==="DIV"&&E.querySelector("input")||((L=E.firstChild)===null||L===void 0?void 0:L.tagName)==="LABEL"&&E.querySelector("input")||((N=E.firstChild)===null||N===void 0?void 0:N.tagName)==="DIV"&&E.querySelector("a, button, input")||E.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(Ia.breadcrumbLink)||document.activeElement.classList.contains(fO.dropdownToggle)||document.activeElement.tagName==="INPUT"),noEnterHandling:!0,noSpaceHandling:!0}),y.createElement("div",Object.assign({id:n,className:D(Le.menu,p&&Le.modifiers.plain,g&&Le.modifiers.scrollable,c&&Le.modifiers.flyout,f&&Le.modifiers.nav,d&&Le.modifiers.drilldown,T&&Le.modifiers.drilledIn,a),ref:this.menuRef},Ll(Pf.displayName,s!==void 0?s:this.state.ouiaStateId,u),P),r))}}$g.displayName="Menu";$g.contextType=Cl;$g.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Pf=y.forwardRef((e,t)=>y.createElement($g,Object.assign({},e,{innerRef:t})));Pf.displayName="Menu";const nz={name:"--pf-v5-c-menu__content--Height",value:"auto",var:"var(--pf-v5-c-menu__content--Height)"},rz={name:"--pf-v5-c-menu__content--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-menu__content--MaxHeight)"},e_=y.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:a,maxMenuHeight:i}=e,o=Q(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=y.createRef(),s=(u,c,f)=>{if(u){let d=u.clientHeight,h=null,p=u.closest(`.${Le.menuList}`);for(;p!==null&&p.nodeType===1;)p.classList.contains(Le.menuList)&&(h=p),p=p.parentElement;if(h){const g=getComputedStyle(h),b=parseFloat(g.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(g.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+b}f&&f(c,d),n&&n(d.toString())}return t||l};return y.createElement(Cl.Consumer,null,({menuId:u,onGetMenuHeight:c})=>y.createElement("div",Object.assign({},o,{className:D(Le.menuContent,e.className),ref:f=>s(f,u,c),style:Object.assign(Object.assign({},a&&{[nz.name]:a}),i&&{[rz.name]:i})}),r))});e_.displayName="MenuContent";const az={name:"--pf-v5-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--top-offset)"},iz={name:"--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--m-left--right-offset)"},oz={name:"--pf-v5-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--left-offset)"},lz={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},sz=ht(lz),uz=sz,cz={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},t_=ht(cz),fz={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},dz=ht(fz),hz=dz,ti={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},RT=()=>{};class ur extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},this.state={ouiaStateId:Lo(ur.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,inputClassName:a,onChange:i,isLabelWrapped:o,isLabelBeforeButton:l,isValid:s,isDisabled:u,isRequired:c,isChecked:f,label:d,checked:h,defaultChecked:p,description:g,body:b,ouiaId:m,ouiaSafe:v,component:_}=t,x=Q(t,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);x.id||console.error("Checkbox:","id is required to make input accessible");const O={};([!0,!1].includes(h)||f===!0)&&(O.checked=h||f),i!==RT&&(O.checked=f),[!1,!0].includes(p)&&(O.defaultChecked=p);const S=y.createElement("input",Object.assign({},x,{className:D(ti.checkInput,a),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":n,disabled:u,required:c,ref:P=>P&&(P.indeterminate=f===null)},O,Ll(ur.displayName,m!==void 0?m:this.state.ouiaStateId,v))),w=o&&!_||_==="label",C=w?"span":"label",A=d?y.createElement(C,{className:D(ti.checkLabel,u&&ti.modifiers.disabled),htmlFor:w?void 0:x.id},d,c&&y.createElement("span",{className:D(ti.checkLabelRequired),"aria-hidden":"true"},yT)):null,I=_??(w?"label":"div");return O.checked=O.checked===null?!1:O.checked,y.createElement(I,{className:D(ti.check,!d&&ti.modifiers.standalone,r),htmlFor:w?x.id:void 0},l?y.createElement(y.Fragment,null,A,S):y.createElement(y.Fragment,null,S,A),g&&y.createElement("span",{className:D(ti.checkDescription)},g),b&&y.createElement("span",{className:D(ti.checkBody)},b))}}ur.displayName="Checkbox";ur.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:RT,ouiaSafe:!0};const pz={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},mz=ht(pz),n_=mz,gz=e=>{var{className:t="",icon:n,onClick:r,"aria-label":a,isFavorited:i=null,isDisabled:o,actionId:l,innerRef:s}=e,u=Q(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return y.createElement(Cl.Consumer,null,({onActionClick:c})=>y.createElement(IT.Consumer,null,({itemId:f,isDisabled:d})=>{const h=p=>{r&&r(p),c&&c(p,f,l)};return y.createElement("button",Object.assign({className:D(Le.menuItemAction,i!==null&&Le.modifiers.favorite,i&&Le.modifiers.favorited,t),"aria-label":a,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},u),y.createElement("span",{className:D(Le.menuItemActionIcon)},n==="favorites"||i!==null?y.createElement(n_,{"aria-hidden":!0}):n))}))},$T=y.forwardRef((e,t)=>y.createElement(gz,Object.assign({},e,{innerRef:t})));$T.displayName="MenuItemAction";const dO=y.createContext({direction:"right"}),vz=e=>{var{children:t,className:n,itemId:r=null,to:a,hasCheckbox:i=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:u=!1,flyoutMenu:c,direction:f,description:d=null,onClick:h=()=>{},component:p="button",isDisabled:g=!1,isAriaDisabled:b=!1,isExternalLink:m=!1,isSelected:v=null,isFocused:_,isDanger:x=!1,icon:O,actions:S,onShowFlyout:w,drilldownMenu:C,isOnPath:A,innerRef:I,id:P,"aria-label":T,tooltipProps:E,rel:L,target:N,download:U}=e,W=Q(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:$,parentMenu:F,onSelect:k,onActionClick:X,activeItemId:te,selected:R,drilldownItemPath:J,onDrillIn:ae,onDrillOut:ue,flyoutRef:ve,setFlyoutRef:ke,disableHover:q,role:Z}=y.useContext(Cl);let ie=a?"a":p;i&&!a&&(ie="label");const[K,Te]=y.useState(null),ye=y.useContext(dO),[Ae,Ce]=y.useState(ye.direction),Re=y.useRef(),Ge=Re===ve,_e=c!==void 0,re=ge=>{!Ge&&ge?ke(Re):Ge&&!ge&&ke(null),w&&ge&&w()};Eb(()=>{if(_e&&Re.current&&Oo){const ge=Re.current.lastElementChild;if(ge&&ge.classList.contains(Le.menu)){const Pe=Re.current.getClientRects()[0],Ke=ge.getClientRects()[0];if(Pe&&Ke){const Bt=Pe.x-Ke.width,$e=window.innerWidth-Pe.x-Pe.width-Ke.width;let Ze=Ae;$e<0&&Ze!=="left"?(Ce("left"),Ze="left"):Bt<0&&Ze!=="right"&&(Ce("right"),Ze="right");let dt=0;Bt<0&&$e<0&&(dt=Ze==="right"?-$e:-Bt),Ze==="left"?(ge.classList.add(Le.modifiers.left),ge.style.setProperty(iz.name,`-${dt}px`)):ge.style.setProperty(oz.name,`-${dt}px`);const Gt=window.innerHeight-Pe.y-Ke.height;window.innerHeight-Ke.height<0&&Gt<0||Gt<0&&ge.style.setProperty(az.name,`${Gt}px`)}}}},[Ge,c]),y.useEffect(()=>{Ce(ye.direction)},[ye]),y.useEffect(()=>{if(K)if(Ge){const ge=K.nextElementSibling;Array.from(ge.getElementsByTagName("UL")[0].children).filter(Ke=>!(Ke.classList.contains("pf-m-disabled")||Ke.classList.contains(Le.divider)))[0].firstChild.focus()}else K.focus()},[Ge,K]);const oe=ge=>{const Pe=ge.key,Ke=ge.target,Bt=ge.type;(Pe===" "||Pe==="Enter"||Pe==="ArrowRight"||Bt==="click")&&(ge.stopPropagation(),ge.preventDefault(),Ge||(re(!0),Te(Ke))),(Pe==="Escape"||Pe==="ArrowLeft")&&Ge&&(ge.stopPropagation(),re(!1))},xe=(ge,Pe)=>{b||(Pe&&Pe(ge,r),h&&h(ge))},De=A&&A||J&&J.includes(r)||!1;let Je;f&&(f==="down"?Je=ge=>ae&&ae(ge,$,typeof C=="function"?C().props.id:C.props.id,r):Je=ge=>ue&&ue(ge,F,r));let z={};ie==="a"?z={href:a,"aria-disabled":g||b?!0:null,disabled:null,target:m?"_blank":N,rel:L,download:U}:ie==="button"&&(z={type:"button","aria-disabled":b?!0:null}),A?z["aria-expanded"]=!0:_e&&(z["aria-haspopup"]="menu",z["aria-expanded"]=Ge);const Y=()=>o!==null?o?"page":null:r!==null&&te!==null?r===te:null,he=()=>v!==null?v:R!==null&&r!==null?Array.isArray(R)&&R.includes(r)||r===R:!1,se=()=>{q||(_e?re(!0):ke(null))};y.useEffect(()=>{if(_&&Re.current){const ge=Re.current,Pe=ge.parentElement;if(Pe){const Ke=ge.offsetTop-Pe.offsetTopy.createElement(ie,Object.assign({id:P,tabIndex:-1,className:D(Le.menuItem,he()&&!i&&Le.modifiers.selected,n),"aria-current":Y()},!i&&{disabled:g,"aria-label":T},!i&&!c&&{role:pe?"option":"menuitem"},!i&&!c&&pe&&{"aria-selected":he()},{ref:I},!i&&{onClick:Pe=>{b?Pe.preventDefault():(xe(Pe,k),Je&&Je(Pe),c&&oe(Pe))}},i&&{htmlFor:ge},z),y.createElement("span",{className:D(Le.menuItemMain)},f==="up"&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(t_,{"aria-hidden":!0})),O&&y.createElement("span",{className:D(Le.menuItemIcon)},O),i&&y.createElement("span",{className:D(Le.menuItemCheck)},y.createElement(ur,{id:ge,component:"span",isChecked:v||!1,onChange:Pe=>xe(Pe,k),isDisabled:g,"aria-disabled":b})),y.createElement("span",{className:D(Le.menuItemText)},t),m&&y.createElement("span",{className:D(Le.menuItemExternalIcon)},y.createElement(uz,{"aria-hidden":!0})),(c||f==="down")&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(Iu,{"aria-hidden":!0})),he()&&y.createElement("span",{className:D(Le.menuItemSelectIcon)},y.createElement(hz,{"aria-hidden":!0}))),d&&f!=="up"&&y.createElement("span",{className:D(Le.menuItemDescription)},y.createElement("span",null,d)))),Ge&&y.createElement(Cl.Provider,{value:{disableHover:q}},y.createElement(dO.Provider,{value:{direction:Ae}},c)),typeof C=="function"?C():C,y.createElement(IT.Provider,{value:{itemId:r,isDisabled:g}},S,l!==null&&y.createElement($T,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:ge=>X(ge,r),tabIndex:-1,actionId:"fav"})));return y.createElement("li",Object.assign({className:D(Le.menuListItem,g&&Le.modifiers.disabled,b&&Le.modifiers.ariaDisabled,De&&Le.modifiers.currentPath,s&&Le.modifiers.load,u&&Le.modifiers.loading,_&&Le.modifiers.focus,x&&Le.modifiers.danger,n),onMouseOver:()=>{b||se()}},c&&!b&&{onKeyDown:oe},{ref:Re,role:i?"menuitem":"none"},i&&{"aria-label":T},W),E?y.createElement($i,Object.assign({},E),He):He)},r_=y.forwardRef((e,t)=>y.createElement(vz,Object.assign({},e,{innerRef:t})));r_.displayName="MenuItem";const a_=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1,"aria-label":a}=e,i=Q(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:o}=y.useContext(Cl);return y.createElement("ul",Object.assign({role:o},o==="listbox"&&{"aria-multiselectable":r},{className:D(Le.menuList,n),"aria-label":a},i),t)};a_.displayName="MenuList";const yz=e=>{var{children:t,className:n,onSelect:r,isOpen:a,selected:i,toggle:o,shouldFocusToggleOnSelect:l=!1,shouldFocusFirstItemOnOpen:s=!0,onOpenChange:u,onOpenChangeKeys:c=["Escape","Tab"],isPlain:f,innerRef:d,zIndex:h=9999,role:p="listbox",popperProps:g,menuHeight:b,maxMenuHeight:m,isScrollable:v}=e,_=Q(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable"]);const x=M.useRef(),O=M.useRef(),S=d||x,w=typeof o=="function"||typeof o!="function"&&!o.toggleRef?O:o==null?void 0:o.toggleRef;M.useEffect(()=>{const A=P=>{var T,E,L;a&&u&&(!((T=S.current)===null||T===void 0)&&T.contains(P.target)||!((E=w.current)===null||E===void 0)&&E.contains(P.target))&&c.includes(P.key)&&(P.preventDefault(),u(!1),(L=w.current)===null||L===void 0||L.focus())},I=P=>{var T,E,L;a&&s&&(!((T=w.current)===null||T===void 0)&&T.contains(P.target))&&setTimeout(()=>{var N;const U=(N=S==null?void 0:S.current)===null||N===void 0?void 0:N.querySelector("li button:not(:disabled),li input:not(:disabled)");U&&U.focus()},0),a&&u&&!(!((E=w==null?void 0:w.current)===null||E===void 0)&&E.contains(P.target))&&a&&!(!((L=S.current)===null||L===void 0)&&L.contains(P.target))&&u(!1)};return window.addEventListener("keydown",A),window.addEventListener("click",I),()=>{window.removeEventListener("keydown",A),window.removeEventListener("click",I)}},[a,S,w,u,c]);const C=M.createElement(Pf,Object.assign({role:p,className:D(n),ref:S,onSelect:(A,I)=>{r&&r(A,I),l&&w.current.focus()},isPlain:f,selected:i,isScrollable:v??(b!==void 0||m!==void 0)},Ll(Tf.displayName,_.ouiaId!==void 0?_.ouiaId:Lo(Tf.displayName),_.ouiaSafe!==void 0?_.ouiaSafe:!0),_),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof o=="function"?o(w):o.toggleNode,triggerRef:w,popper:C,popperRef:S,isVisible:a,zIndex:h},g))},Tf=M.forwardRef((e,t)=>M.createElement(yz,Object.assign({innerRef:t},e)));Tf.displayName="Select";const i_=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,a=Q(e,["children","className","isAriaMultiselectable"]);return M.createElement(a_,Object.assign({isAriaMultiselectable:r,className:D(n)},a),t)};i_.displayName="SelectList";const bz=e=>{var{children:t,className:n,innerRef:r,value:a}=e,i=Q(e,["children","className","innerRef","value"]);return M.createElement(r_,Object.assign({itemId:a,ref:r,className:D(n)},i),t)},o_=M.forwardRef((e,t)=>M.createElement(bz,Object.assign({},e,{innerRef:t})));o_.displayName="SelectOption";const It={check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",menuToggle:"pf-v5-c-menu-toggle",menuToggleButton:"pf-v5-c-menu-toggle__button",menuToggleControls:"pf-v5-c-menu-toggle__controls",menuToggleCount:"pf-v5-c-menu-toggle__count",menuToggleIcon:"pf-v5-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v5-c-menu-toggle__status-icon",menuToggleText:"pf-v5-c-menu-toggle__text",menuToggleToggleIcon:"pf-v5-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",expanded:"pf-m-expanded",plain:"pf-m-plain",text:"pf-m-text",fullHeight:"pf-m-full-height",disabled:"pf-m-disabled",typeahead:"pf-m-typeahead",splitButton:"pf-m-split-button",action:"pf-m-action",active:"pf-m-active",fullWidth:"pf-m-full-width",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger"},textInputGroup:"pf-v5-c-text-input-group",themeDark:"pf-v5-theme-dark"},_z={name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0},xz=ht(_z),LT=xz;var Yc;(function(e){e.success="success",e.danger="danger",e.warning="warning"})(Yc||(Yc={}));class jT extends y.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Lo(mu.displayName,this.props.variant)}}render(){const t=this.props,{children:n,className:r,icon:a,badge:i,isExpanded:o,isDisabled:l,isFullHeight:s,isFullWidth:u,splitButtonOptions:c,variant:f,status:d,statusIcon:h,innerRef:p,onClick:g,"aria-label":b,ouiaId:m,ouiaSafe:v}=t,_=Q(t,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","splitButtonOptions","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe"]),x=f==="plain",O=f==="plainText",S=f==="typeahead",w=Ll(mu.displayName,m??this.state.ouiaStateId,v);let C=h;if(!h)switch(d){case Yc.success:C=y.createElement(Z2,{"aria-hidden":"true"});break;case Yc.warning:C=y.createElement(MT,{"aria-hidden":"true"});break;case Yc.danger:C=y.createElement(AT,{"aria-hidden":"true"});break}const A=y.createElement("span",{className:D(It.menuToggleControls)},d!==void 0&&y.createElement("span",{className:D(It.menuToggleStatusIcon)},C),y.createElement("span",{className:D(It.menuToggleToggleIcon)},y.createElement(LT,{"aria-hidden":!0}))),I=y.createElement(y.Fragment,null,a&&y.createElement("span",{className:D(It.menuToggleIcon)},a),S?n:y.createElement("span",{className:D(It.menuToggleText)},n),y.isValidElement(i)&&y.createElement("span",{className:D(It.menuToggleCount)},i),S?y.createElement("button",Object.assign({type:"button",className:D(It.menuToggleButton),"aria-expanded":o,onClick:g,"aria-label":b||"Menu toggle",tabIndex:-1},w),A):A),P=D(It.menuToggle,o&&It.modifiers.expanded,f==="primary"&&It.modifiers.primary,f==="secondary"&&It.modifiers.secondary,d&&It.modifiers[d],(x||O)&&It.modifiers.plain,O&&It.modifiers.text,s&&It.modifiers.fullHeight,u&&It.modifiers.fullWidth,l&&It.modifiers.disabled,r),T=Object.assign(Object.assign({children:x?n:I},l&&{disabled:!0}),_);return S?y.createElement("div",Object.assign({ref:p,className:D(P,It.modifiers.typeahead)},T)):c?y.createElement("div",{ref:p,className:D(P,It.modifiers.splitButton,(c==null?void 0:c.variant)==="action"&&It.modifiers.action)},c==null?void 0:c.items,y.createElement("button",Object.assign({className:D(It.menuToggleButton,n&&It.modifiers.text),type:"button","aria-expanded":o,"aria-label":b,disabled:l,onClick:g},_,w),n&&y.createElement("span",{className:D(It.menuToggleText)},n),A)):y.createElement("button",Object.assign({className:D(P),type:"button","aria-label":b,"aria-expanded":o,ref:p,disabled:l,onClick:g},T,w))}}jT.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,ouiaSafe:!0};const mu=y.forwardRef((e,t)=>y.createElement(jT,Object.assign({innerRef:t},e)));mu.displayName="MenuToggle";const ss={inputGroup:"pf-v5-c-input-group",inputGroupItem:"pf-v5-c-input-group__item",inputGroupText:"pf-v5-c-input-group__text",modifiers:{box:"pf-m-box",plain:"pf-m-plain",disabled:"pf-m-disabled",fill:"pf-m-fill"},themeDark:"pf-v5-theme-dark"},DT=e=>{var{className:t,children:n,innerRef:r}=e,a=Q(e,["className","children","innerRef"]);const i=y.useRef(null),o=r||i;return y.createElement("div",Object.assign({ref:o,className:D(ss.inputGroup,t)},a),n)};DT.displayName="InputGroupBase";const Qc=y.forwardRef((e,t)=>y.createElement(DT,Object.assign({innerRef:t},e)));Qc.displayName="InputGroup";const Ea=e=>{var{className:t,children:n,isFill:r=!1,isBox:a=!1,isPlain:i,isDisabled:o}=e,l=Q(e,["className","children","isFill","isBox","isPlain","isDisabled"]);return y.createElement("div",Object.assign({className:D(ss.inputGroupItem,r&&ss.modifiers.fill,a&&ss.modifiers.box,i&&ss.modifiers.plain,o&&ss.modifiers.disabled,t)},l),n)};Ea.displayName="InputGroupItem";const Rt={calendarMonth:"pf-v5-c-calendar-month",calendarMonthCalendar:"pf-v5-c-calendar-month__calendar",calendarMonthDate:"pf-v5-c-calendar-month__date",calendarMonthDatesCell:"pf-v5-c-calendar-month__dates-cell",calendarMonthDatesRow:"pf-v5-c-calendar-month__dates-row",calendarMonthDay:"pf-v5-c-calendar-month__day",calendarMonthDays:"pf-v5-c-calendar-month__days",calendarMonthHeader:"pf-v5-c-calendar-month__header",calendarMonthHeaderMonth:"pf-v5-c-calendar-month__header-month",calendarMonthHeaderNavControl:"pf-v5-c-calendar-month__header-nav-control",calendarMonthHeaderYear:"pf-v5-c-calendar-month__header-year",dirRtl:"pf-v5-m-dir-rtl",modifiers:{prevMonth:"pf-m-prev-month",nextMonth:"pf-m-next-month",current:"pf-m-current",inRange:"pf-m-in-range",startRange:"pf-m-start-range",endRange:"pf-m-end-range",adjacentMonth:"pf-m-adjacent-month",selected:"pf-m-selected",disabled:"pf-m-disabled",hover:"pf-m-hover",focus:"pf-m-focus"},themeDark:"pf-v5-theme-dark"};var hO;(function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"})(hO||(hO={}));const wz=(e,t,n,r)=>{const a=new Date(e,t),i=new Date(a);i.setDate(i.getDate()-i.getDay()+n);const o=[];i.getMonth()===a.getMonth()&&i.getDate()!==1&&i.setDate(i.getDate()-7);for(let l=0;l<6;l++){const s=[];for(let u=0;u<7;u++){const c=new Date(i);s.push({date:c,isValid:r.every(f=>f(c))}),i.setDate(i.getDate()+1)}if(o.push(s),i.getMonth()!==a.getMonth())break}return o},ns=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),kv=new Date,NT=e=>{var{date:t,locale:n=void 0,monthFormat:r=re=>re.toLocaleDateString(n,{month:"long"}),weekdayFormat:a=re=>re.toLocaleDateString(n,{weekday:"narrow"}),longWeekdayFormat:i=re=>re.toLocaleDateString(n,{weekday:"long"}),dayFormat:o=re=>re.getDate(),weekStart:l=0,onChange:s=()=>{},validators:u=[()=>!0],className:c,onSelectToggle:f=()=>{},onMonthChange:d=()=>{},rangeStart:h,prevMonthAriaLabel:p="Previous month",nextMonthAriaLabel:g="Next month",yearInputAriaLabel:b="Select year",cellAriaLabel:m,isDateFocused:v=!1,inlineProps:_}=e,x=Q(e,["date","locale","monthFormat","weekdayFormat","longWeekdayFormat","dayFormat","weekStart","onChange","validators","className","onSelectToggle","onMonthChange","rangeStart","prevMonthAriaLabel","nextMonthAriaLabel","yearInputAriaLabel","cellAriaLabel","isDateFocused","inlineProps"]);const O=[0,1,2,3,4,5,6,7,8,9,10,11].map(re=>new Date(1990,re)).map(r),[S,w]=M.useState(!1),A=Sa(t)?t:Sa(h)?h:kv,[I,P]=M.useState(A),T=re=>re.getFullYear(),E=T(I),[L,N]=M.useState(E.toString()),[U,W]=M.useState(void 0),$=M.useRef(),[F]=M.useState(U2("hidden-month-span")),[k,X]=M.useState(!1),te=re=>u.every(oe=>oe(re)),R=te(I);y.useEffect(()=>{Sa(t)&&!ns(I,t)?P(t):t||P(kv)},[t]),y.useEffect(()=>{(k||v)&&R&&$.current&&$.current.focus()},[I,v,R,$]);const J=(re,oe)=>{P(oe),X(!1),d(re,oe),N(T(oe).toString())},ae=re=>{const oe=new Date(I);re.key==="ArrowUp"?oe.setDate(oe.getDate()-7):re.key==="ArrowRight"?oe.setDate(oe.getDate()+1):re.key==="ArrowDown"?oe.setDate(oe.getDate()+7):re.key==="ArrowLeft"&&oe.setDate(oe.getDate()-1),oe.getTime()!==I.getTime()&&te(oe)&&(re.preventDefault(),P(oe),X(!0))},ue=re=>ve(I.getMonth(),re),ve=(re,oe)=>new Date(oe??I.getFullYear(),re,1),ke=1900,q=2100,Z=(re,oe)=>{if(/^\d{0,4}$/.test(oe)&&(N(oe),oe.length===4)){const xe=Number(oe);if(xe>=ke&&xe<=q){const De=ue(xe);P(De),X(!1),re.target.focus(),d(re,De)}else N(E.toString())}},ie=re=>{let oe=I.getMonth()+re,xe=I.getFullYear();return oe===-1?(oe=11,xe--):oe===12&&(oe=0,xe++),ve(oe,xe)},K=ie(-1),Te=ie(1),ye=I.getFullYear(),Ae=I.getMonth(),Ce=M.useMemo(()=>wz(ye,Ae,l,u),[ye,Ae,l,u]);if(!R){const re=Ce.reduce((oe,xe)=>[...oe,...xe],[]).filter(({date:oe,isValid:xe})=>xe&&oe.getMonth()===Ae).map(({date:oe})=>({date:oe,days:Math.abs(I.getTime()-oe.getTime())})).sort((oe,xe)=>oe.days-xe.days).map(({date:oe})=>oe)[0];re&&P(re)}const Re=U&&te(U),Ge=r(I),_e=M.createElement("div",Object.assign({className:D(Rt.calendarMonth,c)},x),M.createElement("div",{className:Rt.calendarMonthHeader},M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.prevMonth)},M.createElement(gt,{variant:"plain","aria-label":p,onClick:re=>J(re,K)},M.createElement(t_,{"aria-hidden":!0}))),M.createElement(Qc,null,M.createElement(Ea,{isFill:!0},M.createElement("div",{className:Rt.calendarMonthHeaderMonth},M.createElement("span",{id:F,hidden:!0},"Month"),M.createElement(Tf,{toggle:re=>M.createElement(mu,{ref:re,onClick:()=>w(!S),isExpanded:S,style:{width:"140px"}},Ge),"aria-labelledby":F,isOpen:S,onOpenChange:re=>{w(re),f(re)},onSelect:(re,oe)=>{setTimeout(()=>{w(!1),f(!1);const xe=ve(Number(oe));P(xe),X(!1),d(re,xe)},0)},selected:Ge},M.createElement(i_,null,O.map((re,oe)=>M.createElement(o_,{key:oe,value:oe,isSelected:re===Ge},re)))))),M.createElement(Ea,null,M.createElement("div",{className:Rt.calendarMonthHeaderYear},M.createElement(Ns,{"aria-label":b,type:"number",value:L,onChange:Z})))),M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.nextMonth)},M.createElement(gt,{variant:"plain","aria-label":g,onClick:re=>J(re,Te)},M.createElement(Iu,{"aria-hidden":!0})))),M.createElement("table",{className:Rt.calendarMonthCalendar,onMouseLeave:()=>W(void 0)},M.createElement("thead",{className:Rt.calendarMonthDays},M.createElement("tr",null,Ce[0].map(({date:re},oe)=>M.createElement("th",{key:oe,className:Rt.calendarMonthDay,scope:"col"},M.createElement("span",{className:"pf-v5-screen-reader"},i(re)),M.createElement("span",{"aria-hidden":!0},a(re)))))),M.createElement("tbody",{onKeyDown:ae},Ce.map((re,oe)=>M.createElement("tr",{key:oe,className:Rt.calendarMonthDatesRow},re.map(({date:xe,isValid:De},Je)=>{const z=o(xe),Y=ns(xe,kv),he=Sa(t)&&ns(xe,t),se=ns(xe,I),pe=xe.getMonth()!==I.getMonth(),He=Sa(h)&&ns(xe,h);let ge=!1,Pe=!1;if(Sa(h)){let Ke;Sa(t)&&(Ke=t),Re&&(!Sa(t)||U>t)&&(Ke=U),Ke&&(ge=xe>=h&&xe<=Ke,Pe=ns(xe,Ke))}return M.createElement("td",{key:Je,className:D(Rt.calendarMonthDatesCell,pe&&Rt.modifiers.adjacentMonth,Y&&Rt.modifiers.current,(he||He)&&Rt.modifiers.selected,!De&&!(ge||He||Pe||he)&&Rt.modifiers.disabled,ge&&Rt.modifiers.inRange,He&&Rt.modifiers.startRange,Pe&&Rt.modifiers.endRange)},M.createElement("button",Object.assign({className:D(Rt.calendarMonthDate,Pe&&Rt.modifiers.hover,!De&&Rt.modifiers.disabled),type:"button",onClick:Ke=>s(Ke,xe),onMouseOver:()=>W(xe),tabIndex:se?0:-1,disabled:!De,"aria-label":m?m(xe):`${o(xe)} ${r(xe)} ${T(xe)}`},se&&{ref:$}),z))}))))));if(_!==void 0){const re=_.component?_.component:"article";return M.createElement(re,Object.assign({},_.ariaLabelledby&&{"aria-labelledby":_.ariaLabelledby}),_.title,_e)}return _e};NT.displayName="CalendarMonth";const it={card:"pf-v5-c-card",cardActions:"pf-v5-c-card__actions",cardBody:"pf-v5-c-card__body",cardExpandableContent:"pf-v5-c-card__expandable-content",cardFooter:"pf-v5-c-card__footer",cardHeader:"pf-v5-c-card__header",cardHeaderMain:"pf-v5-c-card__header-main",cardHeaderToggle:"pf-v5-c-card__header-toggle",cardHeaderToggleIcon:"pf-v5-c-card__header-toggle-icon",cardSelectableActions:"pf-v5-c-card__selectable-actions",cardSrInput:"pf-v5-c-card__sr-input",cardTitle:"pf-v5-c-card__title",cardTitleText:"pf-v5-c-card__title-text",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",modifiers:{selectable:"pf-m-selectable",clickable:"pf-m-clickable",selected:"pf-m-selected",current:"pf-m-current",disabled:"pf-m-disabled",hoverableRaised:"pf-m-hoverable-raised",selectableRaised:"pf-m-selectable-raised",nonSelectableRaised:"pf-m-non-selectable-raised",selectedRaised:"pf-m-selected-raised",compact:"pf-m-compact",displayLg:"pf-m-display-lg",flat:"pf-m-flat",plain:"pf-m-plain",rounded:"pf-m-rounded",expanded:"pf-m-expanded",fullHeight:"pf-m-full-height",toggleRight:"pf-m-toggle-right",noOffset:"pf-m-no-offset",noFill:"pf-m-no-fill"},radio:"pf-v5-c-radio",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label",themeDark:"pf-v5-theme-dark"},Lg=y.createContext({cardId:"",registerTitleId:()=>{},isExpanded:!1,isClickable:!1,isSelectable:!1,isSelected:!1,isClicked:!1,isDisabled:!1}),ra=e=>{var{children:t,id:n="",className:r,component:a="div",isCompact:i=!1,isSelectable:o=!1,isClickable:l=!1,isDisabled:s=!1,isSelectableRaised:u=!1,isSelected:c=!1,isClicked:f=!1,isDisabledRaised:d=!1,isFlat:h=!1,isExpanded:p=!1,isRounded:g=!1,isLarge:b=!1,isFullHeight:m=!1,isPlain:v=!1,ouiaId:_,ouiaSafe:x=!0,hasSelectableInput:O=!1,selectableInputAriaLabel:S,onSelectableInputChange:w=()=>{}}=e,C=Q(e,["children","id","className","component","isCompact","isSelectable","isClickable","isDisabled","isSelectableRaised","isSelected","isClicked","isDisabledRaised","isFlat","isExpanded","isRounded","isLarge","isFullHeight","isPlain","ouiaId","ouiaSafe","hasSelectableInput","selectableInputAriaLabel","onSelectableInputChange"]);const A=a,I=Ii(ra.displayName,_,x),[P,T]=y.useState(""),[E,L]=y.useState();i&&b&&(console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"),b=!1);const N=()=>d?D(it.modifiers.nonSelectableRaised):u?D(it.modifiers.selectableRaised,c&&it.modifiers.selectedRaised):o&&l?D(it.modifiers.selectable,it.modifiers.clickable,(c||f)&&it.modifiers.current):o?D(it.modifiers.selectable,c&&it.modifiers.selected):l?D(it.modifiers.clickable,f&&it.modifiers.current):"",U=y.useRef(!1),W=$=>{T($),U.current=!!$};return y.useEffect(()=>{S?L({"aria-label":S}):P?L({"aria-labelledby":P}):O&&!U.current&&(L({}),console.warn("If no CardTitle component is passed as a child of Card the selectableInputAriaLabel prop must be passed"))},[O,S,P]),y.createElement(Lg.Provider,{value:{cardId:n,registerTitleId:W,isExpanded:p,isClickable:l,isSelectable:o,isSelected:c,isClicked:f,isDisabled:s,hasSelectableInput:O}},O&&y.createElement("input",Object.assign({className:"pf-v5-screen-reader",id:`${n}-input`},E,{type:"checkbox",checked:c,onChange:$=>w($,n),disabled:d,tabIndex:-1})),y.createElement(A,Object.assign({id:n,className:D(it.card,i&&it.modifiers.compact,p&&it.modifiers.expanded,h&&it.modifiers.flat,g&&it.modifiers.rounded,b&&it.modifiers.displayLg,m&&it.modifiers.fullHeight,v&&it.modifiers.plain,N(),s&&it.modifiers.disabled,r),tabIndex:u?"0":void 0},C,I),t))};ra.displayName="Card";const Af=e=>{var{children:t,className:n,component:r="div",isFilled:a=!0}=e,i=Q(e,["children","className","component","isFilled"]);const o=r;return y.createElement(o,Object.assign({className:D(it.cardBody,!a&&it.modifiers.noFill,n)},i),t)};Af.displayName="CardBody";const FT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement(Lg.Consumer,null,({isExpanded:a})=>a?y.createElement("div",Object.assign({className:D(it.cardExpandableContent,n)},r),t):null)};FT.displayName="CardExpandableContent";const zT=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(it.cardFooter,n)},a),t)};zT.displayName="CardFooter";const Fs=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const{cardId:i,registerTitleId:o}=y.useContext(Lg),l=r,s=i?`${i}-title`:"";return y.useEffect(()=>(o(s),()=>o("")),[o,s]),y.createElement("div",{className:D(it.cardTitle)},y.createElement(l,Object.assign({className:D(it.cardTitleText,n),id:s||void 0},a),t))};Fs.displayName="CardTitle";const BT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardHeaderMain,n)},r),t)};BT.displayName="CardHeaderMain";const UT=e=>{var{children:t,className:n,hasNoOffset:r=!1}=e,a=Q(e,["children","className","hasNoOffset"]);return y.createElement("div",Object.assign({className:D(it.cardActions,r&&it.modifiers.noOffset,n)},a),t)};UT.displayName="CardActions";const HT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardSelectableActions,n)},r),t)};HT.displayName="CardSelectableActions";const zo={modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"},radio:"pf-v5-c-radio",radioBody:"pf-v5-c-radio__body",radioDescription:"pf-v5-c-radio__description",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label"};class gu extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},!t.label&&!t["aria-label"]&&console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Lo(gu.displayName)}}render(){const t=this.props,{"aria-label":n,checked:r,className:a,inputClassName:i,defaultChecked:o,isLabelWrapped:l,isLabelBeforeButton:s,isChecked:u,isDisabled:c,isValid:f,label:d,onChange:h,description:p,body:g,ouiaId:b,ouiaSafe:m=!0,component:v}=t,_=Q(t,["aria-label","checked","className","inputClassName","defaultChecked","isLabelWrapped","isLabelBeforeButton","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Radio:","id is required to make input accessible");const x=y.createElement("input",Object.assign({},_,{className:D(zo.radioInput,i),type:"radio",onChange:this.handleChange,"aria-invalid":!f,disabled:c,checked:r||u},r===void 0&&{defaultChecked:o},!d&&{"aria-label":n},Ll(gu.displayName,b!==void 0?b:this.state.ouiaStateId,m))),O=l&&!v||v==="label",S=O?"span":"label",w=d?y.createElement(S,{className:D(zo.radioLabel,c&&zo.modifiers.disabled),htmlFor:O?void 0:_.id},d):null,C=v??(O?"label":"div");return y.createElement(C,{className:D(zo.radio,!d&&zo.modifiers.standalone,a),htmlFor:O?_.id:void 0},s?y.createElement(y.Fragment,null,w,x):y.createElement(y.Fragment,null,x,w),p&&y.createElement("span",{className:D(zo.radioDescription)},p),g&&y.createElement("span",{className:D(zo.radioBody)},g))}}gu.displayName="Radio";gu.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}};const WT=e=>{var{children:t,className:n,actions:r,selectableActions:a,id:i,onExpand:o,toggleButtonProps:l,isToggleRightAligned:s}=e,u=Q(e,["children","className","actions","selectableActions","id","onExpand","toggleButtonProps","isToggleRightAligned"]);return y.createElement(Lg.Consumer,null,({cardId:c,isClickable:f,isSelectable:d,isSelected:h,isClicked:p,isDisabled:g,hasSelectableInput:b})=>{const m=y.createElement("div",{className:D(it.cardHeaderToggle)},y.createElement(gt,Object.assign({variant:"plain",type:"button",onClick:S=>{o(S,c)}},l),y.createElement("span",{className:D(it.cardHeaderToggleIcon)},y.createElement(Iu,{"aria-hidden":"true"})))),v=f&&!d||d&&!f,_=b;r!=null&&r.actions&&v&&!_&&console.warn(`${f?"Clickable":"Selectable"} only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card.`);const x=S=>{a!=null&&a.onClickAction?a.onClickAction(S):a!=null&&a.to&&window.open(a.to,a.isExternalLink?"_blank":"_self")},O=()=>{var S;const w={className:"pf-m-standalone",inputClassName:f&&!d&&"pf-v5-screen-reader",label:y.createElement(y.Fragment,null),"aria-label":a.selectableActionAriaLabel,"aria-labelledby":a.selectableActionAriaLabelledby,id:a.selectableActionId,name:a.name,isDisabled:g},C=(S=a.isChecked)!==null&&S!==void 0?S:h;return f&&!d?Object.assign(Object.assign({},w),{onClick:x,isChecked:p}):d?Object.assign(Object.assign({},w),{onChange:a.onChange,isChecked:C}):w};return y.createElement("div",Object.assign({className:D(it.cardHeader,s&&it.modifiers.toggleRight,n),id:i},u),o&&!s&&m,(r||a&&(f||d))&&y.createElement(UT,{className:r==null?void 0:r.className,hasNoOffset:(r==null?void 0:r.hasNoOffset)||(a==null?void 0:a.hasNoOffset)},r==null?void 0:r.actions,a&&(f||d)&&y.createElement(HT,{className:a==null?void 0:a.className},(a==null?void 0:a.variant)==="single"||f&&!d?y.createElement(gu,Object.assign({},O())):y.createElement(ur,Object.assign({},O())))),t&&y.createElement(BT,null,t),o&&s&&m)})};WT.displayName="CardHeader";const Sz={name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0},Oz=ht(Sz),Cz=Oz,ut={modifiers:{noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",custom:"pf-m-custom",info:"pf-m-info"},popover:"pf-v5-c-popover",popoverArrow:"pf-v5-c-popover__arrow",popoverBody:"pf-v5-c-popover__body",popoverClose:"pf-v5-c-popover__close",popoverContent:"pf-v5-c-popover__content",popoverFooter:"pf-v5-c-popover__footer",popoverHeader:"pf-v5-c-popover__header",popoverTitle:"pf-v5-c-popover__title",popoverTitleIcon:"pf-v5-c-popover__title-icon",popoverTitleText:"pf-v5-c-popover__title-text",themeDark:"pf-v5-theme-dark"},Ez=y.createContext({}),VT=e=>{var{className:t=null,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ut.popoverContent,t)},r),n)};VT.displayName="PopoverContent";const qT=e=>{var{children:t,id:n,className:r}=e,a=Q(e,["children","id","className"]);return y.createElement("div",Object.assign({className:D(ut.popoverBody,r),id:n},a),t)};qT.displayName="PopoverBody";const GT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(ut.popoverTitleIcon,n)},r),t)};GT.displayName="PopoverHeaderIcon";const KT=e=>{var{children:t,className:n,headingLevel:r}=e,a=Q(e,["children","className","headingLevel"]);const i=r;return y.createElement(i,Object.assign({className:D(ut.popoverTitleText,n)},a),t)};KT.displayName="PopoverHeaderText";const XT=e=>{var{children:t,icon:n,className:r,titleHeadingLevel:a="h6",alertSeverityVariant:i,id:o,alertSeverityScreenReaderText:l}=e,s=Q(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return y.createElement("header",Object.assign({className:D(ut.popoverHeader,r)},s),y.createElement("div",{className:D(ut.popoverTitle),id:o},n&&y.createElement(GT,null,n),y.createElement(KT,{headingLevel:a},i&&l&&y.createElement("span",{className:"pf-v5-screen-reader"},l),t)))};XT.displayName="PopoverHeader";const YT=e=>{var{children:t,className:n=""}=e,r=Q(e,["children","className"]);return y.createElement("footer",Object.assign({className:D(ut.popoverFooter,n)},r),t)};YT.displayName="PopoverFooter";const QT=e=>{var{onClose:t=()=>{}}=e,n=Q(e,["onClose"]);return y.createElement("div",{className:D(ut.popoverClose)},y.createElement(gt,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),y.createElement(Tb,null)))};QT.displayName="PopoverCloseButton";const JT=e=>{var{className:t=""}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(ut.popoverArrow,t)},n))};JT.displayName="PopoverArrow";const Pv={name:"--pf-v5-c-popover--MaxWidth",value:"none",var:"var(--pf-v5-c-popover--MaxWidth)"},Tv={name:"--pf-v5-c-popover--MinWidth",value:"auto",var:"var(--pf-v5-c-popover--MinWidth)"};var pO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(pO||(pO={}));const kz={custom:ut.modifiers.custom,info:ut.modifiers.info,success:ut.modifiers.success,warning:ut.modifiers.warning,danger:ut.modifiers.danger},l_=e=>{var{children:t,position:n="top",enableFlip:r=!0,className:a="",isVisible:i=null,shouldClose:o=()=>null,shouldOpen:l=()=>null,"aria-label":s="",bodyContent:u,headerContent:c=null,headerComponent:f="h6",headerIcon:d=null,alertSeverityVariant:h,alertSeverityScreenReaderText:p,footerContent:g=null,appendTo:b=()=>document.body,hideOnOutsideClick:m=!0,onHide:v=()=>null,onHidden:_=()=>null,onShow:x=()=>null,onShown:O=()=>null,onMount:S=()=>null,zIndex:w=9999,triggerAction:C="click",minWidth:A=Tv&&Tv.value,maxWidth:I=Pv&&Pv.value,closeBtnAriaLabel:P="Close",showClose:T=!0,distance:E=25,flipBehavior:L=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:N=300,id:U,withFocusTrap:W,triggerRef:$,hasNoPadding:F=!1,hasAutoWidth:k=!1,elementToFocus:X}=e,te=Q(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const R=U||U2(),J=i!==null,[ae,ue]=y.useState(!1),[ve,ke]=y.useState(!!W),q=y.useRef(null);y.useEffect(()=>{S()},[]),y.useEffect(()=>{J&&(i?Z(void 0,!0):ie())},[i,J]);const Z=(z,Y)=>{z&&x(z),ue(!0),W!==!1&&Y&&ke(!0)},ie=z=>{z&&v(z),ue(!1)},K={top:ut.modifiers.top,bottom:ut.modifiers.bottom,left:ut.modifiers.left,right:ut.modifiers.right,"top-start":ut.modifiers.topLeft,"top-end":ut.modifiers.topRight,"bottom-start":ut.modifiers.bottomLeft,"bottom-end":ut.modifiers.bottomRight,"left-start":ut.modifiers.leftTop,"left-end":ut.modifiers.leftBottom,"right-start":ut.modifiers.rightTop,"right-end":ut.modifiers.rightBottom},Te=A!==Tv.value,ye=I!==Pv.value,Ae=z=>{z.key===Hp.Escape&&ae&&(J?o(z,ie):ie(z))},Ce=(z,Y,he)=>{if(m&&ae){const se=he&&he.contains(z.target),pe=Y&&Y.contains(z.target);if(se||pe)return;J?o(z,ie):ie(z)}},Re=z=>{J?ae?o(z,ie):l(z,Z):ae?ie(z):Z(z,!0)},Ge=()=>{ve&&ke(!1)},_e=z=>{J?l(z,Z):Z(z,!1)},re=z=>{J?o(z,ie):ie(z)},oe=z=>{J?l(z,Z):Z(z,!1)},xe=z=>{J?o(z,ie):ie(z)},De=z=>{z.stopPropagation(),J?o(z,ie):ie(z)},Je=y.createElement(B2,Object.assign({ref:q,active:ve,focusTrapOptions:{returnFocusOnDeactivate:W!==!1,clickOutsideDeactivates:!0,initialFocus:X||void 0,checkCanFocusTrap:z=>new Promise(Y=>{const he=setInterval(()=>{z.every(se=>getComputedStyle(se).visibility!=="hidden")&&(Y(),clearInterval(he))},10)}),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let z=null;return document&&document.activeElement&&(z=document.activeElement),z}},preventScrollOnDeactivate:!0,className:D(ut.popover,h&&kz[h],F&&ut.modifiers.noPadding,k&&ut.modifiers.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":c?void 0:s,"aria-labelledby":c?`popover-${R}-header`:void 0,"aria-describedby":`popover-${R}-body`,onMouseDown:Ge,style:{minWidth:Te?A:null,maxWidth:ye?I:null}},te),y.createElement(JT,null),y.createElement(VT,null,T&&C==="click"&&y.createElement(QT,{onClose:De,"aria-label":P}),c&&y.createElement(XT,{id:`popover-${R}-header`,icon:d,alertSeverityVariant:h,alertSeverityScreenReaderText:p||`${h} alert:`,titleHeadingLevel:f},typeof c=="function"?c(ie):c),y.createElement(qT,{id:`popover-${R}-body`},typeof u=="function"?u(ie):u),g&&y.createElement(YT,{id:`popover-${R}-footer`},typeof g=="function"?g(ie):g)));return y.createElement(Ez.Provider,{value:{headerComponent:f}},y.createElement(jl,{trigger:t,triggerRef:$,popper:Je,popperRef:q,minWidth:A,appendTo:b,isVisible:ae,onMouseEnter:C==="hover"&&_e,onMouseLeave:C==="hover"&&re,onPopperMouseEnter:C==="hover"&&_e,onPopperMouseLeave:C==="hover"&&re,onFocus:C==="hover"&&oe,onBlur:C==="hover"&&xe,positionModifiers:K,distance:E,placement:n,onTriggerClick:C==="click"&&Re,onDocumentClick:Ce,onDocumentKeyDown:Ae,enableFlip:r,zIndex:w,flipBehavior:L,animationDuration:N,onHidden:_,onShown:O,onHide:()=>ke(!1)}))};l_.displayName="Popover";const Av={divider:"pf-v5-c-divider",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",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var Mb;(function(e){e.hr="hr",e.li="li",e.div="div"})(Mb||(Mb={}));const ZT=e=>{var{className:t,component:n=Mb.hr,inset:r,orientation:a}=e,i=Q(e,["className","component","inset","orientation"]);const o=n;return y.createElement(o,Object.assign({className:D(Av.divider,Ci(r,Av),Ci(a,Av),t)},n!=="hr"&&{role:"separator"},i))};ZT.displayName="Divider";const kt={dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",drawerActions:"pf-v5-c-drawer__actions",drawerBody:"pf-v5-c-drawer__body",drawerClose:"pf-v5-c-drawer__close",drawerContent:"pf-v5-c-drawer__content",drawerHead:"pf-v5-c-drawer__head",drawerMain:"pf-v5-c-drawer__main",drawerPanel:"pf-v5-c-drawer__panel",drawerPanelMain:"pf-v5-c-drawer__panel-main",drawerSection:"pf-v5-c-drawer__section",drawerSplitter:"pf-v5-c-drawer__splitter",drawerSplitterHandle:"pf-v5-c-drawer__splitter-handle",modifiers:{panelBottom:"pf-m-panel-bottom",inline:"pf-m-inline",noBorder:"pf-m-no-border",resizable:"pf-m-resizable",static:"pf-m-static",panelLeft:"pf-m-panel-left",expanded:"pf-m-expanded",resizing:"pf-m-resizing",noBackground:"pf-m-no-background",light_200:"pf-m-light-200",noPadding:"pf-m-no-padding",padding:"pf-m-padding",vertical:"pf-m-vertical",width_25:"pf-m-width-25",width_33:"pf-m-width-33",width_50:"pf-m-width-50",width_66:"pf-m-width-66",width_75:"pf-m-width-75",width_100:"pf-m-width-100",width_25OnLg:"pf-m-width-25-on-lg",width_33OnLg:"pf-m-width-33-on-lg",width_50OnLg:"pf-m-width-50-on-lg",width_66OnLg:"pf-m-width-66-on-lg",width_75OnLg:"pf-m-width-75-on-lg",width_100OnLg:"pf-m-width-100-on-lg",width_25OnXl:"pf-m-width-25-on-xl",width_33OnXl:"pf-m-width-33-on-xl",width_50OnXl:"pf-m-width-50-on-xl",width_66OnXl:"pf-m-width-66-on-xl",width_75OnXl:"pf-m-width-75-on-xl",width_100OnXl:"pf-m-width-100-on-xl",width_25On_2xl:"pf-m-width-25-on-2xl",width_33On_2xl:"pf-m-width-33-on-2xl",width_50On_2xl:"pf-m-width-50-on-2xl",width_66On_2xl:"pf-m-width-66-on-2xl",width_75On_2xl:"pf-m-width-75-on-2xl",width_100On_2xl:"pf-m-width-100-on-2xl",inlineOnLg:"pf-m-inline-on-lg",staticOnLg:"pf-m-static-on-lg",inlineOnXl:"pf-m-inline-on-xl",staticOnXl:"pf-m-static-on-xl",inlineOn_2xl:"pf-m-inline-on-2xl",staticOn_2xl:"pf-m-static-on-2xl"},pageMain:"pf-v5-c-page__main",themeDark:"pf-v5-theme-dark"};var bo;(function(e){e.default="default",e.light200="light-200",e.noBackground="no-background"})(bo||(bo={}));const s_=y.createContext({isExpanded:!1,isStatic:!1,onExpand:()=>{},position:"end",drawerRef:null,drawerContentRef:null,isInline:!1}),eA=e=>{var{className:t="",children:n,isExpanded:r=!1,isInline:a=!1,isStatic:i=!1,position:o="end",onExpand:l=()=>{}}=e,s=Q(e,["className","children","isExpanded","isInline","isStatic","position","onExpand"]);const u=y.useRef(),c=y.useRef();return y.createElement(s_.Provider,{value:{isExpanded:r,isStatic:i,onExpand:l,position:o,drawerRef:u,drawerContentRef:c,isInline:a}},y.createElement("div",Object.assign({className:D(kt.drawer,r&&kt.modifiers.expanded,a&&kt.modifiers.inline,i&&kt.modifiers.static,(o==="left"||o==="start")&&kt.modifiers.panelLeft,o==="bottom"&&kt.modifiers.panelBottom,t),ref:u},s),n))};eA.displayName="Drawer";const tA=e=>{var{className:t="",children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(kt.drawerMain,t)},r),n)};tA.displayName="DrawerMain";const nA=e=>{var{className:t="",children:n,panelContent:r,colorVariant:a=bo.default}=e,i=Q(e,["className","children","panelContent","colorVariant"]);const{drawerContentRef:o}=y.useContext(s_);return y.createElement(tA,null,y.createElement("div",Object.assign({className:D(kt.drawerContent,a===bo.light200&&kt.modifiers.light_200,a===bo.noBackground&&kt.modifiers.noBackground,t),ref:o},i),n),r)};nA.displayName="DrawerContent";const rA=e=>{var{className:t="",children:n,hasPadding:r=!1}=e,a=Q(e,["className","children","hasPadding"]);return y.createElement("div",Object.assign({className:D(kt.drawerBody,r&&kt.modifiers.padding,t)},a),n)};rA.displayName="DrawerContentBody";const Mv={name:"--pf-v5-c-drawer__panel--md--FlexBasis",value:"50%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis)"},Pz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--min",value:"1.5rem",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--min)"},Tz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--max",value:"100%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--max)"};let Wi=null,sc=0;const aA=e=>{var{className:t="",id:n,children:r,hasNoBorder:a=!1,isResizable:i=!1,onResize:o,minSize:l,defaultSize:s,maxSize:u,increment:c=5,resizeAriaLabel:f="Resize",widths:d,colorVariant:h=bo.default,focusTrap:p}=e,g=Q(e,["className","id","children","hasNoBorder","isResizable","onResize","minSize","defaultSize","maxSize","increment","resizeAriaLabel","widths","colorVariant","focusTrap"]);const b=y.useRef(),m=y.useRef(),[v,_]=y.useState(0),{position:x,isExpanded:O,isStatic:S,onExpand:w,drawerRef:C,drawerContentRef:A,isInline:I}=y.useContext(s_),P=S?!1:!O,[T,E]=y.useState(!P),[L,N]=y.useState(!1),U=y.useRef(null);let W=0,$,F,k,X,te=!0;S&&(p!=null&&p.enabled)&&console.warn("DrawerPanelContent: The focusTrap.enabled prop cannot be true if the Drawer's isStatic prop is true. This will cause a permanent focus trap."),y.useEffect(()=>{!S&&O&&E(O)},[S,O]);const R=()=>{let _e,re;const oe=Ds(b.current)==="rtl";I&&(x==="end"||x==="right")?oe?(_e=b.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=b.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):I&&(x==="start"||x==="left")?oe?(_e=m.current.getBoundingClientRect().left-b.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-b.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):x==="end"||x==="right"?oe?(_e=A.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=A.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="start"||x==="left"?oe?(_e=m.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="bottom"&&(_e=A.current.getBoundingClientRect().bottom-m.current.getBoundingClientRect().top,re=A.current.getBoundingClientRect().bottom-A.current.getBoundingClientRect().top);const xe=_e/re*100;return Math.round((xe+Number.EPSILON)*100)/100},J=_e=>{_e.stopPropagation(),document.addEventListener("touchmove",Te,{passive:!1}),document.addEventListener("touchend",K),Wi=!0},ae=_e=>{_e.stopPropagation(),_e.preventDefault(),document.addEventListener("mousemove",ie),document.addEventListener("mouseup",ye),C.current.classList.add(D(kt.modifiers.resizing)),Wi=!0,te=!0},ue=_e=>{const re=x==="bottom"?_e.clientY:_e.clientX;ke(_e,re)},ve=_e=>{_e.preventDefault(),_e.stopImmediatePropagation();const re=x==="bottom"?_e.touches[0].clientY:_e.touches[0].clientX;ke(_e,re)},ke=(_e,re)=>{const oe=Ds(b.current)==="rtl";if(_e.stopPropagation(),!Wi)return;te&&($=b.current.getBoundingClientRect(),oe?(k=$.right,F=$.left):(F=$.right,k=$.left),X=$.bottom,te=!1);const xe=re;let De=0;x==="end"||x==="right"?De=oe?xe-F:F-xe:x==="start"||x==="left"?De=oe?k-xe:xe-k:De=X-xe,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Mv.name,De+"px"),W=De,_(R())},q=_e=>{Wi&&(C.current.classList.remove(D(kt.modifiers.resizing)),Wi=!1,o&&o(_e,W,n),te=!0,document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",ye))},Z=_e=>{_e.stopPropagation(),Wi&&(Wi=!1,o&&o(_e,W,n),document.removeEventListener("touchmove",Te),document.removeEventListener("touchend",K))},ie=y.useCallback(ue,[]),K=y.useCallback(Z,[]),Te=y.useCallback(ve,[]),ye=y.useCallback(q,[]),Ae=_e=>{const re=Ds(b.current)==="rtl",oe=_e.key;if(oe!=="Escape"&&oe!=="Enter"&&oe!=="ArrowUp"&&oe!=="ArrowDown"&&oe!=="ArrowLeft"&&oe!=="ArrowRight"){Wi&&_e.preventDefault();return}_e.preventDefault(),(oe==="Escape"||oe==="Enter")&&o&&o(_e,W,n);const xe=b.current.getBoundingClientRect();sc=x==="bottom"?xe.height:xe.width;let De=0;oe==="ArrowRight"?re?De=x==="left"||x==="start"?-c:c:De=x==="left"||x==="start"?c:-c:oe==="ArrowLeft"?re?De=x==="left"||x==="start"?c:-c:De=x==="left"||x==="start"?-c:c:oe==="ArrowUp"?De=c:oe==="ArrowDown"&&(De=-c),sc=sc+De,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Mv.name,sc+"px"),W=sc,_(R())},Ce={};s&&(Ce[Mv.name]=s),l&&(Ce[Pz.name]=l),u&&(Ce[Tz.name]=u);const Re=(p==null?void 0:p.enabled)&&!S,Ge=Re?B2:"div";return y.createElement(Mu,{prefix:"pf-drawer-panel-"},_e=>{const re={tabIndex:-1,"aria-modal":!0,role:"dialog",active:L,"aria-labelledby":(p==null?void 0:p["aria-labelledby"])||n||_e,focusTrapOptions:{fallbackFocus:()=>b.current,onActivate:()=>{U.current!==document.activeElement&&(U.current=document.activeElement)},onDeactivate:()=>{U.current&&U.current.focus&&U.current.focus()},clickOutsideDeactivates:!0,returnFocusOnDeactivate:!1,initialFocus:(p==null?void 0:p.elementToFocusOnExpand)||void 0,escapeDeactivates:!1}};return y.createElement(Ge,Object.assign({},Re&&re,{id:n||_e,className:D(kt.drawerPanel,i&&kt.modifiers.resizable,a&&kt.modifiers.noBorder,Ci(d,kt),h===bo.light200&&kt.modifiers.light_200,h===bo.noBackground&&kt.modifiers.noBackground,t),onTransitionEnd:oe=>{oe.target===b.current&&(!P&&oe.nativeEvent.propertyName==="transform"&&w(oe),E(!P),Re&&oe.nativeEvent.propertyName==="transform"&&N(xe=>!xe))},hidden:P},(s||l||u)&&{style:Ce},g,{ref:b}),T&&y.createElement(y.Fragment,null,i&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(kt.drawerSplitter,x!=="bottom"&&kt.modifiers.vertical),role:"separator",tabIndex:0,"aria-orientation":x==="bottom"?"horizontal":"vertical","aria-label":f,"aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,"aria-controls":n||_e,onMouseDown:ae,onKeyDown:Ae,onTouchStart:J,ref:m},y.createElement("div",{className:D(kt.drawerSplitterHandle),"aria-hidden":!0})),y.createElement("div",{className:D(kt.drawerPanelMain)},r)),!i&&r))})};aA.displayName="DrawerPanelContent";const Az=e=>{var{children:t,className:n,onSelect:r,isOpen:a,toggle:i,shouldFocusToggleOnSelect:o=!1,onOpenChange:l,isPlain:s,isScrollable:u,innerRef:c,ouiaId:f,ouiaSafe:d=!0,zIndex:h=9999,popperProps:p,onOpenChangeKeys:g=["Escape","Tab"],menuHeight:b,maxMenuHeight:m,shouldFocusFirstItemOnOpen:v=!0}=e,_=Q(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen"]);const x=M.useRef(),O=M.useRef(),S=Ii(u_.displayName,f,d),w=c||x,C=typeof i=="function"||typeof i!="function"&&!i.toggleRef?O:i==null?void 0:i.toggleRef;M.useEffect(()=>{const P=E=>{var L,N,U;a&&l&&(!((L=w.current)===null||L===void 0)&&L.contains(E.target)||!((N=C.current)===null||N===void 0)&&N.contains(E.target))&&g.includes(E.key)&&(l(!1),(U=C.current)===null||U===void 0||U.focus())},T=E=>{var L,N,U;a&&v&&(!((L=C.current)===null||L===void 0)&&L.contains(E.target))&&setTimeout(()=>{var W;const $=(W=w==null?void 0:w.current)===null||W===void 0?void 0:W.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');$&&$.focus()},0),a&&l&&!(!((N=C==null?void 0:C.current)===null||N===void 0)&&N.contains(E.target))&&a&&!(!((U=w.current)===null||U===void 0)&&U.contains(E.target))&&l(!1)};return window.addEventListener("keydown",P),window.addEventListener("click",T),()=>{window.removeEventListener("keydown",P),window.removeEventListener("click",T)}},[a,w,C,l,g]);const A=m!==void 0||b!==void 0||u,I=M.createElement(Pf,Object.assign({className:D(n),ref:w,onSelect:(P,T)=>{r&&r(P,T),o&&C.current.focus()},isPlain:s,isScrollable:A},_,S),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof i=="function"?i(C):i.toggleNode,triggerRef:C,popper:I,popperRef:w,isVisible:a,zIndex:h},p))},u_=M.forwardRef((e,t)=>M.createElement(Az,Object.assign({innerRef:t},e)));u_.displayName="Dropdown";const Mz=e=>{var{children:t,className:n,description:r,isDisabled:a,isAriaDisabled:i,value:o,onClick:l,ouiaId:s,ouiaSafe:u,innerRef:c,tooltipProps:f}=e,d=Q(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const h=Ii(c_.displayName,s,u);return M.createElement(r_,Object.assign({className:D(n),description:r,isDisabled:a,isAriaDisabled:i,itemId:o,onClick:l,tooltipProps:f,ref:c},h,d),t)},c_=M.forwardRef((e,t)=>M.createElement(Mz,Object.assign({},e,{innerRef:t})));c_.displayName="DropdownItem";const iA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return M.createElement(a_,Object.assign({className:D(n)},r),t)};iA.displayName="DropdownList";const ei={icon:"pf-v5-c-icon",iconContent:"pf-v5-c-icon__content",iconProgress:"pf-v5-c-icon__progress",modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl",inProgress:"pf-m-in-progress",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",info:"pf-m-info",custom:"pf-m-custom"},spinner:"pf-v5-c-spinner"},oA=e=>{var{children:t,className:n,progressIcon:r,size:a,iconSize:i,progressIconSize:o,status:l,isInline:s=!1,isInProgress:u=!1,defaultProgressArialabel:c="Loading...",shouldMirrorRTL:f=!1}=e,d=Q(e,["children","className","progressIcon","size","iconSize","progressIconSize","status","isInline","isInProgress","defaultProgressArialabel","shouldMirrorRTL"]);const h=r??y.createElement(Rg,{diameter:"1em","aria-label":c});return y.createElement("span",Object.assign({className:D(ei.icon,s&&ei.modifiers.inline,u&&ei.modifiers.inProgress,ei.modifiers[a],n)},d),y.createElement("span",{className:D(ei.iconContent,ei.modifiers[i],ei.modifiers[l],f&&"pf-v5-m-mirror-inline-rtl")},t),u&&y.createElement("span",{className:D(ei.iconProgress,ei.modifiers[o],n)},h))};oA.displayName="Icon";const Iz={name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0},Rz=ht(Iz),f_=Rz,$z={name:"SearchIcon",height:512,width:512,svgPath:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z",yOffset:0,xOffset:0},Lz=ht($z),mO=Lz,jz={name:"ArrowRightIcon",height:512,width:448,svgPath:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",yOffset:0,xOffset:0},Dz=ht(jz),Nz=Dz,Yt={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},lA=e=>{var{children:t=null,className:n=""}=e,r=Q(e,["children","className"]);const a=D(Yt.formGroup,Yt.modifiers.action,n),i=y.createElement("div",{className:D(Yt.formActions)},t);return y.createElement("div",Object.assign({},r,{className:a}),y.createElement("div",{className:D(Yt.formGroupControl)},i))};lA.displayName="ActionGroup";const Fz={name:"--pf-v5-c-form--m-limit-width--MaxWidth",value:"55rem",var:"var(--pf-v5-c-form--m-limit-width--MaxWidth)"},zz=e=>{var{children:t=null,className:n="",isHorizontal:r=!1,isWidthLimited:a=!1,maxWidth:i="",innerRef:o}=e,l=Q(e,["children","className","isHorizontal","isWidthLimited","maxWidth","innerRef"]);return y.createElement("form",Object.assign({noValidate:!0},i&&{style:Object.assign({[Fz.name]:i},l.style)},l,{className:D(Yt.form,r&&Yt.modifiers.horizontal,(a||i)&&Yt.modifiers.limitWidth,n),ref:o}),t)},sA=y.forwardRef((e,t)=>y.createElement(zz,Object.assign({innerRef:t},e)));sA.displayName="Form";const up=e=>{var{children:t=null,className:n="",label:r,labelInfo:a,labelIcon:i,isRequired:o=!1,isInline:l=!1,hasNoPaddingTop:s=!1,isStack:u=!1,fieldId:c,role:f}=e,d=Q(e,["children","className","label","labelInfo","labelIcon","isRequired","isInline","hasNoPaddingTop","isStack","fieldId","role"]);const h=f==="group"||f==="radiogroup",p=h?"span":"label",g=y.createElement(y.Fragment,null,y.createElement(p,Object.assign({className:D(Yt.formLabel)},!h&&{htmlFor:c}),y.createElement("span",{className:D(Yt.formLabelText)},r),o&&y.createElement("span",{className:D(Yt.formLabelRequired),"aria-hidden":"true"}," ",yT))," ",y.isValidElement(i)&&i);return y.createElement(Mu,null,b=>y.createElement("div",Object.assign({className:D(Yt.formGroup,n)},f&&{role:f},h&&{"aria-labelledby":`${c||b}-legend`},d),r&&y.createElement("div",Object.assign({className:D(Yt.formGroupLabel,a&&Yt.modifiers.info,s&&Yt.modifiers.noPaddingTop)},h&&{id:`${c||b}-legend`}),a&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(Yt.formGroupLabelMain)},g),y.createElement("div",{className:D(Yt.formGroupLabelInfo)},a)),!a&&g),y.createElement("div",{className:D(Yt.formGroupControl,l&&Yt.modifiers.inline,u&&Yt.modifiers.stack)},t)))};up.displayName="FormGroup";const ws={modifiers:{bordered:"pf-m-bordered",raised:"pf-m-raised",scrollable:"pf-m-scrollable"},panel:"pf-v5-c-panel",panelFooter:"pf-v5-c-panel__footer",panelHeader:"pf-v5-c-panel__header",panelMain:"pf-v5-c-panel__main",panelMainBody:"pf-v5-c-panel__main-body",themeDark:"pf-v5-theme-dark"},Bz=e=>{var{className:t,children:n,variant:r,isScrollable:a,innerRef:i}=e,o=Q(e,["className","children","variant","isScrollable","innerRef"]);return y.createElement("div",Object.assign({className:D(ws.panel,r==="raised"&&ws.modifiers.raised,r==="bordered"&&ws.modifiers.bordered,a&&ws.modifiers.scrollable,t),ref:i},o),n)},uA=y.forwardRef((e,t)=>y.createElement(Bz,Object.assign({innerRef:t},e)));uA.displayName="Panel";const Uz={name:"--pf-v5-c-panel__main--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-panel__main--MaxHeight)"},cA=e=>{var{className:t,children:n,maxHeight:r}=e,a=Q(e,["className","children","maxHeight"]);return y.createElement("div",Object.assign({className:D(ws.panelMain,t),style:{[Uz.name]:r}},a),n)};cA.displayName="PanelMain";const fA=e=>{var{className:t,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ws.panelMainBody,t)},r),n)};fA.displayName="PanelMainBody";const dA=({className:e,parentRef:t,parentInputRef:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,getAttrValueMap:s,onChange:u,onSearch:c,onClear:f,resetButtonLabel:d="Reset",submitSearchButtonLabel:h="Search",isSearchMenuOpen:p,onToggleAdvancedMenu:g})=>{const b=y.useRef(null),[m,v]=y.useState(!1);y.useEffect(()=>{a.length>0&&!l&&console.error("AdvancedSearchMenu: An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{p&&b&&b.current?(b.current.focus(),v(!0)):!p&&m&&n&&n.current&&n.current.focus()},[p]),y.useEffect(()=>(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",x),function(){document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",x)}));const _=A=>{const I=t&&t.current.contains(A.target);p&&!I&&g(A)},x=A=>{p&&A.key===Hp.Escape&&t&&t.current.contains(A.target)&&(g(A),n&&n.current.focus())},O=A=>{A.preventDefault(),c&&c(A,r,s()),p&&g(A)},S=(A,I,P)=>{const T=s();T[A]=I;let E="";Object.entries(T).forEach(([L,N])=>{if(N.trim()!==""){const U=N.includes(" ")?`'${N.replace(/(^'|'$)/g,"")}'`:N;L!=="haswords"?E=`${E} ${L}${l}${U}`:E=`${E} ${U}`}}),u&&u(P,E.replace(/^\s+/g,""))},w=A=>{const I=s();return I.hasOwnProperty(A)?I[A]:""},C=()=>{const A=[];return a.forEach((I,P)=>{const T=typeof I=="string"?I:I.display,E=typeof I=="string"?I:I.attr;P===0?A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{ref:b,type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)}))):A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)})))}),A.push(y.createElement(Mu,{key:"hasWords"},I=>y.createElement(up,{label:o,fieldId:I},y.createElement(Ns,{type:"text",id:I,value:w("haswords"),onChange:(P,T)=>S("haswords",T,P)})))),A};return p?y.createElement(uA,{variant:"raised",className:D(e)},y.createElement(cA,null,y.createElement(fA,null,y.createElement(sA,null,C(),i||null,y.createElement(lA,null,y.createElement(gt,{variant:"primary",type:"submit",onClick:O,isDisabled:!r},h),!!f&&y.createElement(gt,{variant:"link",type:"reset",onClick:f},d)))))):null};dA.displayName="SearchInput";const Tr={button:"pf-v5-c-button",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{disabled:"pf-m-disabled",plain:"pf-m-plain",icon:"pf-m-icon",hint:"pf-m-hint"},textInputGroup:"pf-v5-c-text-input-group",textInputGroupGroup:"pf-v5-c-text-input-group__group",textInputGroupIcon:"pf-v5-c-text-input-group__icon",textInputGroupMain:"pf-v5-c-text-input-group__main",textInputGroupText:"pf-v5-c-text-input-group__text",textInputGroupTextInput:"pf-v5-c-text-input-group__text-input",textInputGroupUtilities:"pf-v5-c-text-input-group__utilities",themeDark:"pf-v5-theme-dark"},hA=y.createContext({isDisabled:!1}),pA=e=>{var{children:t,className:n,isDisabled:r,isPlain:a,innerRef:i}=e,o=Q(e,["children","className","isDisabled","isPlain","innerRef"]);const l=y.useRef(null),s=i||l;return y.createElement(hA.Provider,{value:{isDisabled:r}},y.createElement("div",Object.assign({ref:s,className:D(Tr.textInputGroup,r&&Tr.modifiers.disabled,a&&Tr.modifiers.plain,n)},o),t))};pA.displayName="TextInputGroup";const Hz=e=>{var{children:t,className:n,icon:r,type:a="text",hint:i,onChange:o=()=>{},onFocus:l,onBlur:s,"aria-label":u="Type to filter",value:c,placeholder:f,innerRef:d,name:h,"aria-activedescendant":p,role:g,isExpanded:b,"aria-controls":m,inputId:v}=e,_=Q(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId"]);const{isDisabled:x}=y.useContext(hA),O=y.useRef(null),S=d||O,w=C=>{o(C,C.currentTarget.value)};return y.createElement("div",Object.assign({className:D(Tr.textInputGroupMain,r&&Tr.modifiers.icon,n)},_),t,y.createElement("span",{className:D(Tr.textInputGroupText)},i&&y.createElement("input",{className:D(Tr.textInputGroupTextInput,Tr.modifiers.hint),type:"text",disabled:!0,"aria-hidden":"true",value:i,id:v}),r&&y.createElement("span",{className:D(Tr.textInputGroupIcon)},r),y.createElement("input",Object.assign({ref:S,type:a,className:D(Tr.textInputGroupTextInput),"aria-label":u,disabled:x,onChange:w,onFocus:l,onBlur:s,value:c||"",placeholder:f,name:h,"aria-activedescendant":p,id:v},g&&{role:g},b!==void 0&&{"aria-expanded":b},m&&{"aria-controls":m}))))},mA=y.forwardRef((e,t)=>y.createElement(Hz,Object.assign({innerRef:t},e)));mA.displayName="TextInputGroupMain";const gA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(Tr.textInputGroupUtilities,n)},r),t)};gA.displayName="TextInputGroupUtilities";const vA=e=>{var{className:t,searchInputId:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,placeholder:s,hint:u,onChange:c,onSearch:f,onClear:d,onToggleAdvancedSearch:h,isAdvancedSearchOpen:p,resultsCount:g,onNextClick:b,onPreviousClick:m,innerRef:v,expandableInput:_,"aria-label":x="Search input",resetButtonLabel:O="Reset",openMenuButtonAriaLabel:S="Open advanced search",previousNavigationButtonAriaLabel:w="Previous",isPreviousNavigationButtonDisabled:C=!1,isNextNavigationButtonDisabled:A=!1,nextNavigationButtonAriaLabel:I="Next",submitSearchButtonLabel:P="Search",isDisabled:T=!1,appendTo:E,zIndex:L=9999,name:N,areUtilitiesDisplayed:U}=e,W=Q(e,["className","searchInputId","value","attributes","formAdditionalItems","hasWordsAttrLabel","advancedSearchDelimiter","placeholder","hint","onChange","onSearch","onClear","onToggleAdvancedSearch","isAdvancedSearchOpen","resultsCount","onNextClick","onPreviousClick","innerRef","expandableInput","aria-label","resetButtonLabel","openMenuButtonAriaLabel","previousNavigationButtonAriaLabel","isPreviousNavigationButtonDisabled","isNextNavigationButtonDisabled","nextNavigationButtonAriaLabel","submitSearchButtonLabel","isDisabled","appendTo","zIndex","name","areUtilitiesDisplayed"]);const[$,F]=y.useState(!1),[k,X]=y.useState(r),te=y.useRef(null),R=y.useRef(null),J=v||R,ae=y.useRef(null),ue=y.useRef(null),ve=y.useRef(null),[ke,q]=y.useState(!1),{isExpanded:Z,onToggleExpand:ie,toggleAriaLabel:K}=_||{};y.useEffect(()=>{var se,pe;if(ke)Z?(se=J==null?void 0:J.current)===null||se===void 0||se.focus():(pe=ae==null?void 0:ae.current)===null||pe===void 0||pe.focus();else return;q(!1)},[ke,Z,J,ae]),y.useEffect(()=>{X(r)},[r]),y.useEffect(()=>{a.length>0&&!l&&console.error("An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{F(p)},[p]);const Te=(se,pe)=>{c&&c(se,pe),X(pe)},ye=se=>{const pe=!$;F(pe),h&&h(se,pe)},Ae=se=>{se.preventDefault(),f&&f(se,r,Re()),F(!1)},Ce=se=>{let pe;return se.match(/\\?.|^$/g).reduce((He,ge)=>(ge==="'"||ge==='"'?(pe||(pe=ge),ge===pe&&(He.quote=!He.quote)):!He.quote&&ge===" "?He.a.push(""):He.a[He.a.length-1]+=ge.replace(/\\(.)/,"$1"),He),{a:[""]}).a},Re=()=>{const se={};return Ce(k).map(He=>{const ge=He.split(l);ge.length===2?se[ge[0]]=ge[1].replace(/(^'|'$)/g,""):ge.length===1&&(se.haswords=se.hasOwnProperty("haswords")?`${se.haswords} ${ge[0]}`:ge[0])}),se},Ge=se=>{se.key==="Enter"&&Ae(se)},_e=se=>{d&&d(se),J&&J.current&&J.current.focus()},re=se=>{X(""),ie(se,Z),q(!0)},oe=r&&(g||!!b&&!!m||!!d&&!_),xe=(se={})=>{var pe=Q(se,[]);return y.createElement(pA,Object.assign({isDisabled:T},pe),y.createElement(mA,{hint:u,icon:y.createElement(mO,null),innerRef:J,value:k,placeholder:s,"aria-label":x,onKeyDown:Ge,onChange:Te,name:N,inputId:n}),(oe||U)&&y.createElement(gA,null,g&&y.createElement(J2,{isRead:!0},g),!!b&&!!m&&y.createElement("div",{className:Tr.textInputGroupGroup},y.createElement(gt,{variant:pn.plain,"aria-label":w,isDisabled:T||C,onClick:m},y.createElement(ez,null)),y.createElement(gt,{variant:pn.plain,"aria-label":I,isDisabled:T||A,onClick:b},y.createElement(f_,null))),!!d&&!_&&y.createElement(gt,{variant:pn.plain,isDisabled:T,"aria-label":O,onClick:_e},y.createElement(Tb,null))))},De=y.createElement(gt,{variant:pn.plain,"aria-label":K,"aria-expanded":Z,icon:Z?y.createElement(Tb,null):y.createElement(mO,null),onClick:re,ref:ae}),Je=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({},pe),y.createElement(Ea,{isFill:!0},xe()," "),y.createElement(Ea,{isPlain:!0},De))},z=(se={})=>{var pe=Q(se,[]);return _?Je(Object.assign({},pe)):xe(Object.assign({},pe))},Y=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({ref:ue},pe),y.createElement(Ea,{isFill:!0},xe()),(a.length>0||h)&&y.createElement(Ea,{isPlain:!0},y.createElement(gt,{className:$&&"pf-m-expanded",variant:pn.control,"aria-label":S,onClick:ye,isDisabled:T,"aria-expanded":$},y.createElement(LT,null))),!!f&&y.createElement(Ea,null,y.createElement(gt,{type:"submit",variant:pn.control,"aria-label":P,onClick:Ae,isDisabled:T},y.createElement(oA,{shouldMirrorRTL:!0},y.createElement(Nz,null)))),_&&y.createElement(Ea,null,De))},he=Object.assign(Object.assign({},W),{className:t&&D(t),innerRef:te});if(_&&!Z)return y.createElement(Qc,Object.assign({},he),y.createElement(Ea,null,De));if(f||a.length>0||h){if(a.length>0){const se=y.createElement("div",{ref:ve},y.createElement(dA,{value:r,parentRef:te,parentInputRef:J,onSearch:f,onClear:d,onChange:c,onToggleAdvancedMenu:ye,resetButtonLabel:O,submitSearchButtonLabel:P,attributes:a,formAdditionalItems:i,hasWordsAttrLabel:o,advancedSearchDelimiter:l,getAttrValueMap:Re,isSearchMenuOpen:$})),pe=y.createElement("div",Object.assign({className:D(t),ref:te},W),y.createElement(jl,{trigger:Y(),triggerRef:ue,popper:se,popperRef:ve,isVisible:$,enableFlip:!0,appendTo:()=>E||te.current,zIndex:L})),He=y.createElement("div",Object.assign({className:D(t),ref:te},W),Y(),se);return E!=="inline"?pe:He}return Y(Object.assign({},he))}return z(he)};vA.displayName="SearchInputBase";const yA=y.forwardRef((e,t)=>y.createElement(vA,Object.assign({},e,{innerRef:t})));yA.displayName="SearchInput";var bA={exports:{}},Wz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vz=Wz,qz=Vz;function _A(){}function xA(){}xA.resetWarningCache=_A;var Gz=function(){function e(r,a,i,o,l,s){if(s!==qz){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xA,resetWarningCache:_A};return n.PropTypes=n,n};bA.exports=Gz();var Kz=bA.exports;const tt=at(Kz),Or={list:"pf-v5-c-list",listItem:"pf-v5-c-list__item",listItemIcon:"pf-v5-c-list__item-icon",modifiers:{iconLg:"pf-m-icon-lg",plain:"pf-m-plain",inline:"pf-m-inline",bordered:"pf-m-bordered"}};var Ib;(function(e){e.number="1",e.lowercaseLetter="a",e.uppercaseLetter="A",e.lowercaseRomanNumber="i",e.uppercaseRomanNumber="I"})(Ib||(Ib={}));var Rb;(function(e){e.inline="inline"})(Rb||(Rb={}));var Kp;(function(e){e.ol="ol",e.ul="ul"})(Kp||(Kp={}));const Xp=e=>{var{className:t="",children:n=null,variant:r=null,isBordered:a=!1,isPlain:i=!1,iconSize:o="default",type:l=Ib.number,ref:s=null,component:u=Kp.ul}=e,c=Q(e,["className","children","variant","isBordered","isPlain","iconSize","type","ref","component"]);return u===Kp.ol?y.createElement("ol",Object.assign({ref:s,type:l},i&&{role:"list"},c,{className:D(Or.list,r&&Or.modifiers[r],a&&Or.modifiers.bordered,i&&Or.modifiers.plain,o&&o==="large"&&Or.modifiers.iconLg,t)}),n):y.createElement("ul",Object.assign({ref:s},i&&{role:"list"},c,{className:D(Or.list,r&&Or.modifiers[r],a&&Or.modifiers.bordered,i&&Or.modifiers.plain,o&&o==="large"&&Or.modifiers.iconLg,t)}),n)};Xp.displayName="List";const or=e=>{var{icon:t=null,children:n=null}=e,r=Q(e,["icon","children"]);return y.createElement("li",Object.assign({className:D(t&&Or.listItem)},r),t&&y.createElement("span",{className:D(Or.listItemIcon)},t),n)};or.displayName="ListItem";const us={button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dropdown:"pf-v5-c-dropdown",masthead:"pf-v5-c-masthead",mastheadBrand:"pf-v5-c-masthead__brand",mastheadContent:"pf-v5-c-masthead__content",mastheadMain:"pf-v5-c-masthead__main",mastheadToggle:"pf-v5-c-masthead__toggle",menuToggle:"pf-v5-c-menu-toggle",modifiers:{light_200:"pf-m-light-200",light:"pf-m-light",plain:"pf-m-plain",resizeObserver:"pf-m-resize-observer",fullHeight:"pf-m-full-height",horizontal:"pf-m-horizontal",displayStack:"pf-m-display-stack",displayInline:"pf-m-display-inline",insetNone:"pf-m-inset-none",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",displayStackOnSm:"pf-m-display-stack-on-sm",displayInlineOnSm:"pf-m-display-inline-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",displayStackOnMd:"pf-m-display-stack-on-md",displayInlineOnMd:"pf-m-display-inline-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",displayStackOnLg:"pf-m-display-stack-on-lg",displayInlineOnLg:"pf-m-display-inline-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",displayStackOnXl:"pf-m-display-stack-on-xl",displayInlineOnXl:"pf-m-display-inline-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",displayStackOn_2xl:"pf-m-display-stack-on-2xl",displayInlineOn_2xl:"pf-m-display-inline-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl"},nav:"pf-v5-c-nav",page:"pf-v5-c-page",themeDark:"pf-v5-theme-dark",toolbar:"pf-v5-c-toolbar",toolbarContentSection:"pf-v5-c-toolbar__content-section",toolbarExpandableContent:"pf-v5-c-toolbar__expandable-content"},Xz={isManagedSidebar:!1,isSidebarOpen:!1,onSidebarToggle:()=>null,width:null,height:null,getBreakpoint:vT,getVerticalBreakpoint:gT},wd=y.createContext(Xz),Yz=wd.Provider,wA=wd.Consumer,SA=e=>{var{children:t,className:n,backgroundColor:r="dark",display:a={md:"inline"},inset:i}=e,o=Q(e,["children","className","backgroundColor","display","inset"]);const{width:l,getBreakpoint:s}=y.useContext(wd);return y.createElement("header",Object.assign({className:D(us.masthead,Ci(a,us,"display-",s(l)),Ci(i,us,"",s(l)),r==="light"&&us.modifiers.light,r==="light200"&&us.modifiers.light_200,n)},o),t)};SA.displayName="Masthead";const OA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(us.mastheadToggle,n)},r),t)};OA.displayName="MastheadToggle";const Nt={dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuContent:"pf-v5-c-menu__content",menuItem:"pf-v5-c-menu__item",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuListItem:"pf-v5-c-menu__list-item",modifiers:{flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",current:"pf-m-current",drillUp:"pf-m-drill-up",horizontal:"pf-m-horizontal",tertiary:"pf-m-tertiary",horizontalSubnav:"pf-m-horizontal-subnav",light:"pf-m-light",scrollable:"pf-m-scrollable",overflowHidden:"pf-m-overflow-hidden",expandable:"pf-m-expandable",expanded:"pf-m-expanded",drilldown:"pf-m-drilldown",hover:"pf-m-hover",start:"pf-m-start"},nav:"pf-v5-c-nav",navItem:"pf-v5-c-nav__item",navLink:"pf-v5-c-nav__link",navList:"pf-v5-c-nav__list",navScrollButton:"pf-v5-c-nav__scroll-button",navSection:"pf-v5-c-nav__section",navSectionTitle:"pf-v5-c-nav__section-title",navSubnav:"pf-v5-c-nav__subnav",navToggle:"pf-v5-c-nav__toggle",navToggleIcon:"pf-v5-c-nav__toggle-icon",themeDark:"pf-v5-theme-dark"},Qz={},Mf=y.createContext(Qz);class vu extends y.Component{constructor(){super(...arguments),this.state={isScrollable:!1,ouiaStateId:Lo(vu.displayName,this.props.variant),flyoutRef:null},this.navRef=y.createRef()}onSelect(t,n,r,a,i,o){i&&t.preventDefault(),this.props.onSelect(t,{groupId:n,itemId:r,to:a}),o&&o(t,r,n,a)}onToggle(t,n,r){this.props.onToggle(t,{groupId:n,isExpanded:r})}render(){const t=this.props,{"aria-label":n,children:r,className:a,onSelect:i,onToggle:o,theme:l,ouiaId:s,ouiaSafe:u,variant:c}=t,f=Q(t,["aria-label","children","className","onSelect","onToggle","theme","ouiaId","ouiaSafe","variant"]),d=["horizontal","tertiary"].includes(c);return y.createElement(Mf.Provider,{value:{onSelect:(h,p,g,b,m,v)=>this.onSelect(h,p,g,b,m,v),onToggle:(h,p,g)=>this.onToggle(h,p,g),updateIsScrollable:h=>this.setState({isScrollable:h}),isHorizontal:["horizontal","tertiary","horizontal-subnav"].includes(c),flyoutRef:this.state.flyoutRef,setFlyoutRef:h=>this.setState({flyoutRef:h}),navRef:this.navRef}},y.createElement("nav",Object.assign({className:D(Nt.nav,l==="light"&&Nt.modifiers.light,d&&Nt.modifiers.horizontal,c==="tertiary"&&Nt.modifiers.tertiary,c==="horizontal-subnav"&&Nt.modifiers.horizontalSubnav,this.state.isScrollable&&Nt.modifiers.scrollable,a),"aria-label":n||(["tertiary","horizontal-subnav"].includes(c)?"Local":"Global"),ref:this.navRef},Ll(vu.displayName,s!==void 0?s:this.state.ouiaStateId,u),f),r))}}vu.displayName="Nav";vu.defaultProps={onSelect:()=>{},onToggle:()=>{},theme:"dark",ouiaSafe:!0};const Ue={avatar:"pf-v5-c-avatar",brand:"pf-v5-c-brand",button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",masthead:"pf-v5-c-masthead",modifiers:{light:"pf-m-light",menu:"pf-m-menu",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",read:"pf-m-read",selected:"pf-m-selected",unread:"pf-m-unread",attention:"pf-m-attention",expanded:"pf-m-expanded",collapsed:"pf-m-collapsed",pageInsets:"pf-m-page-insets",insetNone:"pf-m-inset-none",fill:"pf-m-fill",noFill:"pf-m-no-fill",limitWidth:"pf-m-limit-width",alignCenter:"pf-m-align-center",overflowScroll:"pf-m-overflow-scroll",shadowBottom:"pf-m-shadow-bottom",shadowTop:"pf-m-shadow-top",stickyTop:"pf-m-sticky-top",stickyBottom:"pf-m-sticky-bottom",stickyTopOnSmHeight:"pf-m-sticky-top-on-sm-height",stickyBottomOnSmHeight:"pf-m-sticky-bottom-on-sm-height",stickyTopOnMdHeight:"pf-m-sticky-top-on-md-height",stickyBottomOnMdHeight:"pf-m-sticky-bottom-on-md-height",stickyTopOnLgHeight:"pf-m-sticky-top-on-lg-height",stickyBottomOnLgHeight:"pf-m-sticky-bottom-on-lg-height",stickyTopOnXlHeight:"pf-m-sticky-top-on-xl-height",stickyBottomOnXlHeight:"pf-m-sticky-bottom-on-xl-height",stickyTopOn_2xlHeight:"pf-m-sticky-top-on-2xl-height",stickyBottomOn_2xlHeight:"pf-m-sticky-bottom-on-2xl-height",light_100:"pf-m-light-100",dark_100:"pf-m-dark-100",dark_200:"pf-m-dark-200",padding:"pf-m-padding",noPadding:"pf-m-no-padding",paddingOnSm:"pf-m-padding-on-sm",noPaddingOnSm:"pf-m-no-padding-on-sm",paddingOnMd:"pf-m-padding-on-md",noPaddingOnMd:"pf-m-no-padding-on-md",paddingOnLg:"pf-m-padding-on-lg",noPaddingOnLg:"pf-m-no-padding-on-lg",paddingOnXl:"pf-m-padding-on-xl",noPaddingOnXl:"pf-m-no-padding-on-xl",paddingOn_2xl:"pf-m-padding-on-2xl",noPaddingOn_2xl:"pf-m-no-padding-on-2xl",light_200:"pf-m-light-200"},nav:"pf-v5-c-nav",notificationBadge:"pf-v5-c-notification-badge",page:"pf-v5-c-page",pageDrawer:"pf-v5-c-page__drawer",pageHeader:"pf-v5-c-page__header",pageHeaderBrand:"pf-v5-c-page__header-brand",pageHeaderBrandLink:"pf-v5-c-page__header-brand-link",pageHeaderBrandToggle:"pf-v5-c-page__header-brand-toggle",pageHeaderNav:"pf-v5-c-page__header-nav",pageHeaderTools:"pf-v5-c-page__header-tools",pageHeaderToolsGroup:"pf-v5-c-page__header-tools-group",pageHeaderToolsItem:"pf-v5-c-page__header-tools-item",pageMain:"pf-v5-c-page__main",pageMainBody:"pf-v5-c-page__main-body",pageMainBreadcrumb:"pf-v5-c-page__main-breadcrumb",pageMainDrawer:"pf-v5-c-page__main-drawer",pageMainGroup:"pf-v5-c-page__main-group",pageMainNav:"pf-v5-c-page__main-nav",pageMainSection:"pf-v5-c-page__main-section",pageMainSubnav:"pf-v5-c-page__main-subnav",pageMainTabs:"pf-v5-c-page__main-tabs",pageMainWizard:"pf-v5-c-page__main-wizard",pageSidebar:"pf-v5-c-page__sidebar",pageSidebarBody:"pf-v5-c-page__sidebar-body",themeDark:"pf-v5-theme-dark"},Jz={isSidebarOpen:!0},d_=y.createContext(Jz),CA=e=>{var{className:t="",children:n,isSidebarOpen:r=!0,theme:a="dark",id:i="page-sidebar"}=e,o=Q(e,["className","children","isSidebarOpen","theme","id"]);return y.createElement(wA,null,({isManagedSidebar:l,isSidebarOpen:s})=>{const u=l?s:r;return y.createElement("div",Object.assign({id:i,className:D(Ue.pageSidebar,a==="light"&&Ue.modifiers.light,u&&Ue.modifiers.expanded,!u&&Ue.modifiers.collapsed,t),"aria-hidden":!u},o),y.createElement(d_.Provider,{value:{isSidebarOpen:u}},n))})};CA.displayName="PageSidebar";class jg extends y.Component{constructor(){super(...arguments),this.direction="ltr",this.state={scrollViewAtStart:!1,scrollViewAtEnd:!1},this.navList=y.createRef(),this.observer=()=>{},this.handleScrollButtons=()=>{const t=this.navList.current;if(t){const n=vh(t,t.firstChild,!1),r=vh(t,t.lastChild,!1);this.setState({scrollViewAtStart:n,scrollViewAtEnd:r}),this.context.updateIsScrollable(!n||!r)}},this.scrollBack=()=>{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=0;i{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=n.length-1;i>=0&&!r;i--)vh(t,n[i],!1)&&(r=n[i],a=n[i+1]);a&&(this.direction==="ltr"?t.scrollLeft+=a.scrollWidth:t.scrollLeft-=a.scrollWidth),this.handleScrollButtons()}}}componentDidMount(){this.observer=Q2(this.navList.current,this.handleScrollButtons,!0),this.direction=Ds(this.navList.current),this.handleScrollButtons()}componentWillUnmount(){this.observer()}componentDidUpdate(){this.direction=Ds(this.navList.current)}render(){const t=this.props,{children:n,className:r,ariaLeftScroll:a,ariaRightScroll:i,backScrollAriaLabel:o,forwardScrollAriaLabel:l}=t,s=Q(t,["children","className","ariaLeftScroll","ariaRightScroll","backScrollAriaLabel","forwardScrollAriaLabel"]),{scrollViewAtStart:u,scrollViewAtEnd:c}=this.state;return y.createElement(Mf.Consumer,null,({isHorizontal:f})=>y.createElement(d_.Consumer,null,({isSidebarOpen:d})=>y.createElement(y.Fragment,null,f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":o||a,onClick:this.scrollBack,disabled:u,tabIndex:d?null:-1},y.createElement(t_,null)),y.createElement("ul",Object.assign({ref:this.navList,className:D(Nt.navList,r),onScroll:this.handleScrollButtons,role:"list"},s),n),f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":l||i,onClick:this.scrollForward,disabled:c,tabIndex:d?null:-1},y.createElement(Iu,null)))))}}jg.displayName="NavList";jg.contextType=Mf;jg.defaultProps={ariaLeftScroll:"Scroll left",backScrollAriaLabel:"Scroll back",ariaRightScroll:"Scroll right",forwardScrollAriaLabel:"Scroll foward"};const Ss=e=>{var{children:t,styleChildren:n=!0,className:r,to:a,isActive:i=!1,groupId:o=null,itemId:l=null,preventDefault:s=!1,onClick:u,component:c="a",flyout:f,onShowFlyout:d,ouiaId:h,ouiaSafe:p,zIndex:g=9999,hasNavLinkWrapper:b}=e,m=Q(e,["children","styleChildren","className","to","isActive","groupId","itemId","preventDefault","onClick","component","flyout","onShowFlyout","ouiaId","ouiaSafe","zIndex","hasNavLinkWrapper"]);const{flyoutRef:v,setFlyoutRef:_,navRef:x}=y.useContext(Mf),{isSidebarOpen:O}=y.useContext(d_),[S,w]=y.useState(null),[C,A]=y.useState(!1),I=y.useRef(),P=I===v,T=y.useRef(),E=f!==void 0,L=E?"button":c;a&&E&&console.error('NavItem cannot have both "to" and "flyout" props.');const N=(q,Z)=>{(!P||Z)&&q?_(I):(P||Z)&&!q&&_(null),d&&q&&d()},U=q=>{const Z=q.target.closest(`.${Nt.navItem}.pf-m-flyout`);E&&!P?N(!0):v!==null&&!Z&&_(null)},W=q=>{q.target.closest(".pf-m-flyout")||(E?N(!1,!0):v!==null&&_(null))},$=q=>{var Z,ie;const K=q.key,Te=q.target;(K===" "||K==="Enter"||K==="ArrowRight")&&E&&(!((Z=I==null?void 0:I.current)===null||Z===void 0)&&Z.contains(Te))&&(q.stopPropagation(),q.preventDefault(),P||(N(!0),w(Te))),(K==="Escape"||K==="ArrowLeft")&&((ie=T==null?void 0:T.current)===null||ie===void 0?void 0:ie.querySelectorAll(`.${Nt.menu}`).length)===1&&P&&(q.stopPropagation(),q.preventDefault(),N(!1))};y.useEffect(()=>(E&&window.addEventListener("click",W),()=>{E&&window.removeEventListener("click",W)}),[]),y.useEffect(()=>{S&&(P?Array.from(T.current.getElementsByTagName("UL")[0].children).filter(Z=>!(Z.classList.contains("pf-m-disabled")||Z.classList.contains(Nt.divider)))[0].firstChild.focus():S.focus())},[P,S]);const F=y.createElement("span",{className:D(Nt.navToggle)},y.createElement("span",{className:D(Nt.navToggleIcon)},y.createElement(Iu,{"aria-hidden":!0}))),k={"aria-haspopup":"menu","aria-expanded":P},X=O?null:-1,te=q=>{const Z=s||!a;return y.createElement(L,Object.assign({href:a,onClick:ie=>q.onSelect(ie,o,l,a,Z,u),className:D(Nt.navLink,i&&Nt.modifiers.current,C&&Nt.modifiers.hover,r),"aria-current":i?"page":null,tabIndex:X},E&&Object.assign({},k),m),b?y.createElement("span",{className:D(`${Nt.nav}__link-text`)},t):t,f&&F)},R=(q,Z)=>y.cloneElement(Z,Object.assign(Object.assign({onClick:ie=>q.onSelect(ie,o,l,a,s,u),"aria-current":i?"page":null},n&&{className:D(Nt.navLink,i&&Nt.modifiers.current,Z.props&&Z.props.className)}),{tabIndex:Z.props.tabIndex||X,children:E?y.createElement(y.Fragment,null,Z.props.children,F):Z.props.children})),J=Ii(Ss.displayName,h,p),ae=()=>{A(!0)},ue=()=>{A(!1)},ve=y.createElement(jl,{triggerRef:I,popper:y.createElement("div",{ref:T,onMouseEnter:ae,onMouseLeave:ue},f),popperRef:T,placement:"right-start",isVisible:P,onDocumentKeyDown:$,zIndex:g,appendTo:x==null?void 0:x.current});return y.createElement(y.Fragment,null,y.createElement("li",Object.assign({onMouseOver:U,className:D(Nt.navItem,E&&Nt.modifiers.flyout,r),ref:I},J),y.createElement(Mf.Consumer,null,q=>y.isValidElement(t)?R(q,t):te(q))),f&&ve)};Ss.displayName="NavItem";const Dg=e=>{var{children:t,className:n="",isVisited:r=!1}=e,a=Q(e,["children","className","isVisited"]);return y.createElement("div",Object.assign({},a,{className:D(wb.content,r&&wb.modifiers.visited,n)}),t)};Dg.displayName="TextContent";var El;(function(e){e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.p="p",e.a="a",e.small="small",e.blockquote="blockquote",e.pre="pre"})(El||(El={}));const Sd=e=>{var{children:t=null,className:n="",component:r=El.p,isVisitedLink:a=!1,ouiaId:i,ouiaSafe:o=!0}=e,l=Q(e,["children","className","component","isVisitedLink","ouiaId","ouiaSafe"]);const s=r,u=Ii(Sd.displayName,i,o);return y.createElement(s,Object.assign({},u,l,{"data-pf-content":!0,className:D(a&&r===El.a&&wb.modifiers.visited,n)}),t)};Sd.displayName="Text";const EA=e=>{var{className:t="",children:n,stickyOnBreakpoint:r,hasShadowTop:a=!1,hasShadowBottom:i=!1,hasOverflowScroll:o=!1,"aria-label":l}=e,s=Q(e,["className","children","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label"]);const{height:u,getVerticalBreakpoint:c}=y.useContext(wd);return y.useEffect(()=>{o&&!l&&console.warn("PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.")},[o,l]),y.createElement("div",Object.assign({},s,{className:D(Ue.pageMainGroup,Ci(r,Ue,"sticky-",c(u),!0),a&&Ue.modifiers.shadowTop,i&&Ue.modifiers.shadowBottom,o&&Ue.modifiers.overflowScroll,t)},o&&{tabIndex:0,role:"region","aria-label":l}),n)};EA.displayName="PageGroup";var gO;(function(e){e.vertical="vertical",e.horizontal="horizontal"})(gO||(gO={}));class h_ extends y.Component{constructor(t){super(t),this.mainRef=y.createRef(),this.pageRef=y.createRef(),this.observer=()=>{},this.getWindowWidth=()=>Oo?this.pageRef.current?this.pageRef.current.clientWidth:window.innerWidth:1200,this.isMobile=()=>this.getWindowWidth(){var o;const{onPageResize:l}=this.props,s=this.isMobile();if(l&&l(i,{mobileView:s,windowSize:this.getWindowWidth()}),s!==this.state.mobileView&&this.setState({mobileView:s}),!((o=this.pageRef)===null||o===void 0)&&o.current){const u=this.pageRef.current.clientWidth,c=this.pageRef.current.clientHeight;this.state.width!==u&&this.setState({width:u}),this.state.height!==c&&this.setState({height:c})}},this.handleResize=w9(this.resize,250),this.handleMainClick=()=>{this.isMobile()&&this.state.mobileIsSidebarOpen&&this.mainRef.current&&this.setState({mobileIsSidebarOpen:!1})},this.onSidebarToggleMobile=()=>{this.setState(i=>({mobileIsSidebarOpen:!i.mobileIsSidebarOpen}))},this.onSidebarToggleDesktop=()=>{this.setState(i=>({desktopIsSidebarOpen:!i.desktopIsSidebarOpen}))};const{isManagedSidebar:n,defaultManagedSidebarIsOpen:r}=t,a=n?r:!0;this.state={desktopIsSidebarOpen:a,mobileIsSidebarOpen:!1,mobileView:!1,width:null,height:null}}componentDidMount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer=Q2(this.pageRef.current,this.handleResize);const r=this.mainRef.current;r&&(r.addEventListener("mousedown",this.handleMainClick),r.addEventListener("touchstart",this.handleMainClick)),this.resize()}}componentWillUnmount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer();const r=this.mainRef.current;r&&(r.removeEventListener("mousedown",this.handleMainClick),r.removeEventListener("touchstart",this.handleMainClick))}}render(){const t=this.props,{breadcrumb:n,isBreadcrumbWidthLimited:r,className:a,children:i,header:o,sidebar:l,notificationDrawer:s,isNotificationDrawerExpanded:u,onNotificationDrawerExpand:c,drawerDefaultSize:f,drawerMinSize:d,drawerMaxSize:h,isTertiaryNavWidthLimited:p,skipToContent:g,role:b,mainContainerId:m,isManagedSidebar:v,defaultManagedSidebarIsOpen:_,onPageResize:x,getBreakpoint:O,getVerticalBreakpoint:S,mainAriaLabel:w,mainTabIndex:C,mainComponent:A,tertiaryNav:I,isTertiaryNavGrouped:P,isBreadcrumbGrouped:T,additionalGroupedContent:E,groupProps:L,breadcrumbProps:N}=t,U=Q(t,["breadcrumb","isBreadcrumbWidthLimited","className","children","header","sidebar","notificationDrawer","isNotificationDrawerExpanded","onNotificationDrawerExpand","drawerDefaultSize","drawerMinSize","drawerMaxSize","isTertiaryNavWidthLimited","skipToContent","role","mainContainerId","isManagedSidebar","defaultManagedSidebarIsOpen","onPageResize","getBreakpoint","getVerticalBreakpoint","mainAriaLabel","mainTabIndex","mainComponent","tertiaryNav","isTertiaryNavGrouped","isBreadcrumbGrouped","additionalGroupedContent","groupProps","breadcrumbProps"]),{mobileView:W,mobileIsSidebarOpen:$,desktopIsSidebarOpen:F,width:k,height:X}=this.state,te={isManagedSidebar:v,onSidebarToggle:W?this.onSidebarToggleMobile:this.onSidebarToggleDesktop,isSidebarOpen:W?$:F,width:k,height:X,getBreakpoint:O,getVerticalBreakpoint:S};let R=null;I&&p?R=y.createElement("div",{className:D(Ue.pageMainNav,Ue.modifiers.limitWidth)},y.createElement("div",{className:D(Ue.pageMainBody)},I)):I&&(R=y.createElement("div",{className:D(Ue.pageMainNav)},I));const J=n?y.createElement("section",{className:D(Ue.pageMainBreadcrumb,r&&Ue.modifiers.limitWidth,Ci(N==null?void 0:N.stickyOnBreakpoint,Ue,"sticky-",S(X),!0))},r?y.createElement("div",{className:D(Ue.pageMainBody)},n):n):null,ue=P||T||E?y.createElement(EA,Object.assign({},L),P&&R,T&&J,E):null,ve=A,ke=y.createElement(ve,{ref:this.mainRef,role:b,id:m,className:D(Ue.pageMain),tabIndex:C,"aria-label":w},ue,!P&&R,!T&&J,i),q=y.createElement(aA,{defaultSize:f,minSize:d,maxSize:h},s);return y.createElement(Yz,{value:te},y.createElement("div",Object.assign({ref:this.pageRef},U,{className:D(Ue.page,k!==null&&X!==null&&"pf-m-resize-observer",k!==null&&`pf-m-breakpoint-${O(k)}`,X!==null&&`pf-m-height-breakpoint-${S(X)}`,a)}),g,o,l,s&&y.createElement("div",{className:D(Ue.pageDrawer)},y.createElement(eA,{isExpanded:u,onExpand:Z=>c(Z)},y.createElement(nA,{panelContent:q},y.createElement(rA,null,ke)))),!s&&ke))}}h_.displayName="Page";h_.defaultProps={isManagedSidebar:!1,isBreadcrumbWidthLimited:!1,defaultManagedSidebarIsOpen:!0,mainTabIndex:-1,isNotificationDrawerExpanded:!1,onNotificationDrawerExpand:()=>null,mainComponent:"main",getBreakpoint:vT,getVerticalBreakpoint:gT};const kA=e=>{var{children:t,className:n,usePageInsets:r,isFilled:a}=e,i=Q(e,["children","className","usePageInsets","isFilled"]);return y.createElement("div",Object.assign({className:D(Ue.pageSidebarBody,r&&Ue.modifiers.pageInsets,a===!1&&Ue.modifiers.noFill,a===!0&&Ue.modifiers.fill,n)},i),t)};kA.displayName="PageSidebarBody";var so;(function(e){e.default="default",e.light="light",e.dark="dark",e.darker="darker"})(so||(so={}));var li;(function(e){e.default="default",e.nav="nav",e.subNav="subnav",e.breadcrumb="breadcrumb",e.tabs="tabs",e.wizard="wizard"})(li||(li={}));const Zz={[li.default]:Ue.pageMainSection,[li.nav]:Ue.pageMainNav,[li.subNav]:Ue.pageMainSubnav,[li.breadcrumb]:Ue.pageMainBreadcrumb,[li.tabs]:Ue.pageMainTabs,[li.wizard]:Ue.pageMainWizard},eB={[so.default]:"",[so.light]:Ue.modifiers.light,[so.dark]:Ue.modifiers.dark_200,[so.darker]:Ue.modifiers.dark_100},hr=e=>{var{className:t="",children:n,variant:r="default",type:a="default",padding:i,isFilled:o,isWidthLimited:l=!1,isCenterAligned:s=!1,stickyOnBreakpoint:u,hasShadowTop:c=!1,hasShadowBottom:f=!1,hasOverflowScroll:d=!1,"aria-label":h,component:p="section"}=e,g=Q(e,["className","children","variant","type","padding","isFilled","isWidthLimited","isCenterAligned","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label","component"]);const{height:b,getVerticalBreakpoint:m}=y.useContext(wd);y.useEffect(()=>{d&&!h&&console.warn("PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.")},[d,h]);const v=p;return y.createElement(v,Object.assign({},g,{className:D(Zz[a],Ci(i,Ue),Ci(u,Ue,"sticky-",m(b),!0),eB[r],o===!1&&Ue.modifiers.noFill,o===!0&&Ue.modifiers.fill,l&&Ue.modifiers.limitWidth,l&&s&&a!==li.subNav&&Ue.modifiers.alignCenter,c&&Ue.modifiers.shadowTop,f&&Ue.modifiers.shadowBottom,d&&Ue.modifiers.overflowScroll,t)},d&&{tabIndex:0},{"aria-label":h}),l&&y.createElement("div",{className:D(Ue.pageMainBody)},n),!l&&n)};hr.displayName="PageSection";const PA=e=>{var{children:t,isSidebarOpen:n=!0,onSidebarToggle:r=()=>{},id:a="nav-toggle"}=e,i=Q(e,["children","isSidebarOpen","onSidebarToggle","id"]);return y.createElement(wA,null,({isManagedSidebar:o,onSidebarToggle:l,isSidebarOpen:s})=>{const u=o?l:r,c=o?s:n;return y.createElement(gt,Object.assign({id:a,onClick:u,"aria-label":"Side navigation toggle","aria-expanded":c?"true":"false",variant:pn.plain},i),t)})};PA.displayName="PageToggleButton";const tB={name:"OutlinedClockIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z",yOffset:0,xOffset:0},nB=ht(tB),Iv={modifiers:{helpText:"pf-m-help-text"},timestamp:"pf-v5-c-timestamp"};var vO;(function(e){e.full="full",e.long="long",e.medium="medium",e.short="short"})(vO||(vO={}));var $b;(function(e){e.default="default",e.custom="custom"})($b||($b={}));const p_=e=>{var{children:t,className:n,customFormat:r,date:a,dateFormat:i,displaySuffix:o="",is12Hour:l,locale:s,shouldDisplayUTC:u,timeFormat:c,tooltip:f}=e,d=Q(e,["children","className","customFormat","date","dateFormat","displaySuffix","is12Hour","locale","shouldDisplayUTC","timeFormat","tooltip"]);const[h,p]=y.useState(()=>{const P=new Date(a);return Sa(P)?P:new Date});y.useEffect(()=>{const P=new Date(a);Sa(P)&&P.toString()!==new Date(h).toString()?p(P):a||p(new Date)},[a]);const g=c&&!r,b=Object.assign(Object.assign(Object.assign({},i&&!r&&{dateStyle:i}),r&&Object.assign({},r)),l!==void 0&&{hour12:l}),m=new Date(h).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:c})),v=c!=="short"?"medium":"short",_=P=>new Date(P).toUTCString().slice(0,-3),x=new Date(_(h)).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:v})),O=c==="full"?"Coordinated Universal Time":"UTC",S=P=>`${x} ${P||O}`,w=u?S(o):`${m}${o?" "+o:""}`,{dateTime:C}=d,A=Q(d,["dateTime"]),I=y.createElement("span",Object.assign({className:D(Iv.timestamp,f&&Iv.modifiers.helpText,n)},f&&{tabIndex:0},A),y.createElement("time",{className:`${Iv.timestamp}__text`,dateTime:C||new Date(h).toISOString()},t||w));return f?y.createElement($i,Object.assign({content:f.variant===$b.default?S(f.suffix):f.content},f.tooltipProps),I):I};p_.displayName="Timestamp";const TA=e=>{var{children:t=null,className:n="",component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(VF.bullseye,n)},a),t)};TA.displayName="Bullseye";const aa={grid:"pf-v5-l-grid",gridItem:"pf-v5-l-grid__item",modifiers:{all_1Col:"pf-m-all-1-col",all_2Col:"pf-m-all-2-col",all_3Col:"pf-m-all-3-col",all_4Col:"pf-m-all-4-col",all_5Col:"pf-m-all-5-col",all_6Col:"pf-m-all-6-col",all_7Col:"pf-m-all-7-col",all_8Col:"pf-m-all-8-col",all_9Col:"pf-m-all-9-col",all_10Col:"pf-m-all-10-col",all_11Col:"pf-m-all-11-col",all_12Col:"pf-m-all-12-col",all_1ColOnSm:"pf-m-all-1-col-on-sm",all_2ColOnSm:"pf-m-all-2-col-on-sm",all_3ColOnSm:"pf-m-all-3-col-on-sm",all_4ColOnSm:"pf-m-all-4-col-on-sm",all_5ColOnSm:"pf-m-all-5-col-on-sm",all_6ColOnSm:"pf-m-all-6-col-on-sm",all_7ColOnSm:"pf-m-all-7-col-on-sm",all_8ColOnSm:"pf-m-all-8-col-on-sm",all_9ColOnSm:"pf-m-all-9-col-on-sm",all_10ColOnSm:"pf-m-all-10-col-on-sm",all_11ColOnSm:"pf-m-all-11-col-on-sm",all_12ColOnSm:"pf-m-all-12-col-on-sm",all_1ColOnMd:"pf-m-all-1-col-on-md",all_2ColOnMd:"pf-m-all-2-col-on-md",all_3ColOnMd:"pf-m-all-3-col-on-md",all_4ColOnMd:"pf-m-all-4-col-on-md",all_5ColOnMd:"pf-m-all-5-col-on-md",all_6ColOnMd:"pf-m-all-6-col-on-md",all_7ColOnMd:"pf-m-all-7-col-on-md",all_8ColOnMd:"pf-m-all-8-col-on-md",all_9ColOnMd:"pf-m-all-9-col-on-md",all_10ColOnMd:"pf-m-all-10-col-on-md",all_11ColOnMd:"pf-m-all-11-col-on-md",all_12ColOnMd:"pf-m-all-12-col-on-md",all_1ColOnLg:"pf-m-all-1-col-on-lg",all_2ColOnLg:"pf-m-all-2-col-on-lg",all_3ColOnLg:"pf-m-all-3-col-on-lg",all_4ColOnLg:"pf-m-all-4-col-on-lg",all_5ColOnLg:"pf-m-all-5-col-on-lg",all_6ColOnLg:"pf-m-all-6-col-on-lg",all_7ColOnLg:"pf-m-all-7-col-on-lg",all_8ColOnLg:"pf-m-all-8-col-on-lg",all_9ColOnLg:"pf-m-all-9-col-on-lg",all_10ColOnLg:"pf-m-all-10-col-on-lg",all_11ColOnLg:"pf-m-all-11-col-on-lg",all_12ColOnLg:"pf-m-all-12-col-on-lg",all_1ColOnXl:"pf-m-all-1-col-on-xl",all_2ColOnXl:"pf-m-all-2-col-on-xl",all_3ColOnXl:"pf-m-all-3-col-on-xl",all_4ColOnXl:"pf-m-all-4-col-on-xl",all_5ColOnXl:"pf-m-all-5-col-on-xl",all_6ColOnXl:"pf-m-all-6-col-on-xl",all_7ColOnXl:"pf-m-all-7-col-on-xl",all_8ColOnXl:"pf-m-all-8-col-on-xl",all_9ColOnXl:"pf-m-all-9-col-on-xl",all_10ColOnXl:"pf-m-all-10-col-on-xl",all_11ColOnXl:"pf-m-all-11-col-on-xl",all_12ColOnXl:"pf-m-all-12-col-on-xl",all_1ColOn_2xl:"pf-m-all-1-col-on-2xl",all_2ColOn_2xl:"pf-m-all-2-col-on-2xl",all_3ColOn_2xl:"pf-m-all-3-col-on-2xl",all_4ColOn_2xl:"pf-m-all-4-col-on-2xl",all_5ColOn_2xl:"pf-m-all-5-col-on-2xl",all_6ColOn_2xl:"pf-m-all-6-col-on-2xl",all_7ColOn_2xl:"pf-m-all-7-col-on-2xl",all_8ColOn_2xl:"pf-m-all-8-col-on-2xl",all_9ColOn_2xl:"pf-m-all-9-col-on-2xl",all_10ColOn_2xl:"pf-m-all-10-col-on-2xl",all_11ColOn_2xl:"pf-m-all-11-col-on-2xl",all_12ColOn_2xl:"pf-m-all-12-col-on-2xl","1Col":"pf-m-1-col","2Col":"pf-m-2-col","3Col":"pf-m-3-col","4Col":"pf-m-4-col","5Col":"pf-m-5-col","6Col":"pf-m-6-col","7Col":"pf-m-7-col","8Col":"pf-m-8-col","9Col":"pf-m-9-col","10Col":"pf-m-10-col","11Col":"pf-m-11-col","12Col":"pf-m-12-col",offset_1Col:"pf-m-offset-1-col",offset_2Col:"pf-m-offset-2-col",offset_3Col:"pf-m-offset-3-col",offset_4Col:"pf-m-offset-4-col",offset_5Col:"pf-m-offset-5-col",offset_6Col:"pf-m-offset-6-col",offset_7Col:"pf-m-offset-7-col",offset_8Col:"pf-m-offset-8-col",offset_9Col:"pf-m-offset-9-col",offset_10Col:"pf-m-offset-10-col",offset_11Col:"pf-m-offset-11-col",offset_12Col:"pf-m-offset-12-col","1Row":"pf-m-1-row","2Row":"pf-m-2-row","3Row":"pf-m-3-row","4Row":"pf-m-4-row","5Row":"pf-m-5-row","6Row":"pf-m-6-row","7Row":"pf-m-7-row","8Row":"pf-m-8-row","9Row":"pf-m-9-row","10Row":"pf-m-10-row","11Row":"pf-m-11-row","12Row":"pf-m-12-row","1ColOnSm":"pf-m-1-col-on-sm","2ColOnSm":"pf-m-2-col-on-sm","3ColOnSm":"pf-m-3-col-on-sm","4ColOnSm":"pf-m-4-col-on-sm","5ColOnSm":"pf-m-5-col-on-sm","6ColOnSm":"pf-m-6-col-on-sm","7ColOnSm":"pf-m-7-col-on-sm","8ColOnSm":"pf-m-8-col-on-sm","9ColOnSm":"pf-m-9-col-on-sm","10ColOnSm":"pf-m-10-col-on-sm","11ColOnSm":"pf-m-11-col-on-sm","12ColOnSm":"pf-m-12-col-on-sm",offset_1ColOnSm:"pf-m-offset-1-col-on-sm",offset_2ColOnSm:"pf-m-offset-2-col-on-sm",offset_3ColOnSm:"pf-m-offset-3-col-on-sm",offset_4ColOnSm:"pf-m-offset-4-col-on-sm",offset_5ColOnSm:"pf-m-offset-5-col-on-sm",offset_6ColOnSm:"pf-m-offset-6-col-on-sm",offset_7ColOnSm:"pf-m-offset-7-col-on-sm",offset_8ColOnSm:"pf-m-offset-8-col-on-sm",offset_9ColOnSm:"pf-m-offset-9-col-on-sm",offset_10ColOnSm:"pf-m-offset-10-col-on-sm",offset_11ColOnSm:"pf-m-offset-11-col-on-sm",offset_12ColOnSm:"pf-m-offset-12-col-on-sm","1RowOnSm":"pf-m-1-row-on-sm","2RowOnSm":"pf-m-2-row-on-sm","3RowOnSm":"pf-m-3-row-on-sm","4RowOnSm":"pf-m-4-row-on-sm","5RowOnSm":"pf-m-5-row-on-sm","6RowOnSm":"pf-m-6-row-on-sm","7RowOnSm":"pf-m-7-row-on-sm","8RowOnSm":"pf-m-8-row-on-sm","9RowOnSm":"pf-m-9-row-on-sm","10RowOnSm":"pf-m-10-row-on-sm","11RowOnSm":"pf-m-11-row-on-sm","12RowOnSm":"pf-m-12-row-on-sm","1ColOnMd":"pf-m-1-col-on-md","2ColOnMd":"pf-m-2-col-on-md","3ColOnMd":"pf-m-3-col-on-md","4ColOnMd":"pf-m-4-col-on-md","5ColOnMd":"pf-m-5-col-on-md","6ColOnMd":"pf-m-6-col-on-md","7ColOnMd":"pf-m-7-col-on-md","8ColOnMd":"pf-m-8-col-on-md","9ColOnMd":"pf-m-9-col-on-md","10ColOnMd":"pf-m-10-col-on-md","11ColOnMd":"pf-m-11-col-on-md","12ColOnMd":"pf-m-12-col-on-md",offset_1ColOnMd:"pf-m-offset-1-col-on-md",offset_2ColOnMd:"pf-m-offset-2-col-on-md",offset_3ColOnMd:"pf-m-offset-3-col-on-md",offset_4ColOnMd:"pf-m-offset-4-col-on-md",offset_5ColOnMd:"pf-m-offset-5-col-on-md",offset_6ColOnMd:"pf-m-offset-6-col-on-md",offset_7ColOnMd:"pf-m-offset-7-col-on-md",offset_8ColOnMd:"pf-m-offset-8-col-on-md",offset_9ColOnMd:"pf-m-offset-9-col-on-md",offset_10ColOnMd:"pf-m-offset-10-col-on-md",offset_11ColOnMd:"pf-m-offset-11-col-on-md",offset_12ColOnMd:"pf-m-offset-12-col-on-md","1RowOnMd":"pf-m-1-row-on-md","2RowOnMd":"pf-m-2-row-on-md","3RowOnMd":"pf-m-3-row-on-md","4RowOnMd":"pf-m-4-row-on-md","5RowOnMd":"pf-m-5-row-on-md","6RowOnMd":"pf-m-6-row-on-md","7RowOnMd":"pf-m-7-row-on-md","8RowOnMd":"pf-m-8-row-on-md","9RowOnMd":"pf-m-9-row-on-md","10RowOnMd":"pf-m-10-row-on-md","11RowOnMd":"pf-m-11-row-on-md","12RowOnMd":"pf-m-12-row-on-md","1ColOnLg":"pf-m-1-col-on-lg","2ColOnLg":"pf-m-2-col-on-lg","3ColOnLg":"pf-m-3-col-on-lg","4ColOnLg":"pf-m-4-col-on-lg","5ColOnLg":"pf-m-5-col-on-lg","6ColOnLg":"pf-m-6-col-on-lg","7ColOnLg":"pf-m-7-col-on-lg","8ColOnLg":"pf-m-8-col-on-lg","9ColOnLg":"pf-m-9-col-on-lg","10ColOnLg":"pf-m-10-col-on-lg","11ColOnLg":"pf-m-11-col-on-lg","12ColOnLg":"pf-m-12-col-on-lg",offset_1ColOnLg:"pf-m-offset-1-col-on-lg",offset_2ColOnLg:"pf-m-offset-2-col-on-lg",offset_3ColOnLg:"pf-m-offset-3-col-on-lg",offset_4ColOnLg:"pf-m-offset-4-col-on-lg",offset_5ColOnLg:"pf-m-offset-5-col-on-lg",offset_6ColOnLg:"pf-m-offset-6-col-on-lg",offset_7ColOnLg:"pf-m-offset-7-col-on-lg",offset_8ColOnLg:"pf-m-offset-8-col-on-lg",offset_9ColOnLg:"pf-m-offset-9-col-on-lg",offset_10ColOnLg:"pf-m-offset-10-col-on-lg",offset_11ColOnLg:"pf-m-offset-11-col-on-lg",offset_12ColOnLg:"pf-m-offset-12-col-on-lg","1RowOnLg":"pf-m-1-row-on-lg","2RowOnLg":"pf-m-2-row-on-lg","3RowOnLg":"pf-m-3-row-on-lg","4RowOnLg":"pf-m-4-row-on-lg","5RowOnLg":"pf-m-5-row-on-lg","6RowOnLg":"pf-m-6-row-on-lg","7RowOnLg":"pf-m-7-row-on-lg","8RowOnLg":"pf-m-8-row-on-lg","9RowOnLg":"pf-m-9-row-on-lg","10RowOnLg":"pf-m-10-row-on-lg","11RowOnLg":"pf-m-11-row-on-lg","12RowOnLg":"pf-m-12-row-on-lg","1ColOnXl":"pf-m-1-col-on-xl","2ColOnXl":"pf-m-2-col-on-xl","3ColOnXl":"pf-m-3-col-on-xl","4ColOnXl":"pf-m-4-col-on-xl","5ColOnXl":"pf-m-5-col-on-xl","6ColOnXl":"pf-m-6-col-on-xl","7ColOnXl":"pf-m-7-col-on-xl","8ColOnXl":"pf-m-8-col-on-xl","9ColOnXl":"pf-m-9-col-on-xl","10ColOnXl":"pf-m-10-col-on-xl","11ColOnXl":"pf-m-11-col-on-xl","12ColOnXl":"pf-m-12-col-on-xl",offset_1ColOnXl:"pf-m-offset-1-col-on-xl",offset_2ColOnXl:"pf-m-offset-2-col-on-xl",offset_3ColOnXl:"pf-m-offset-3-col-on-xl",offset_4ColOnXl:"pf-m-offset-4-col-on-xl",offset_5ColOnXl:"pf-m-offset-5-col-on-xl",offset_6ColOnXl:"pf-m-offset-6-col-on-xl",offset_7ColOnXl:"pf-m-offset-7-col-on-xl",offset_8ColOnXl:"pf-m-offset-8-col-on-xl",offset_9ColOnXl:"pf-m-offset-9-col-on-xl",offset_10ColOnXl:"pf-m-offset-10-col-on-xl",offset_11ColOnXl:"pf-m-offset-11-col-on-xl",offset_12ColOnXl:"pf-m-offset-12-col-on-xl","1RowOnXl":"pf-m-1-row-on-xl","2RowOnXl":"pf-m-2-row-on-xl","3RowOnXl":"pf-m-3-row-on-xl","4RowOnXl":"pf-m-4-row-on-xl","5RowOnXl":"pf-m-5-row-on-xl","6RowOnXl":"pf-m-6-row-on-xl","7RowOnXl":"pf-m-7-row-on-xl","8RowOnXl":"pf-m-8-row-on-xl","9RowOnXl":"pf-m-9-row-on-xl","10RowOnXl":"pf-m-10-row-on-xl","11RowOnXl":"pf-m-11-row-on-xl","12RowOnXl":"pf-m-12-row-on-xl","1ColOn_2xl":"pf-m-1-col-on-2xl","2ColOn_2xl":"pf-m-2-col-on-2xl","3ColOn_2xl":"pf-m-3-col-on-2xl","4ColOn_2xl":"pf-m-4-col-on-2xl","5ColOn_2xl":"pf-m-5-col-on-2xl","6ColOn_2xl":"pf-m-6-col-on-2xl","7ColOn_2xl":"pf-m-7-col-on-2xl","8ColOn_2xl":"pf-m-8-col-on-2xl","9ColOn_2xl":"pf-m-9-col-on-2xl","10ColOn_2xl":"pf-m-10-col-on-2xl","11ColOn_2xl":"pf-m-11-col-on-2xl","12ColOn_2xl":"pf-m-12-col-on-2xl",offset_1ColOn_2xl:"pf-m-offset-1-col-on-2xl",offset_2ColOn_2xl:"pf-m-offset-2-col-on-2xl",offset_3ColOn_2xl:"pf-m-offset-3-col-on-2xl",offset_4ColOn_2xl:"pf-m-offset-4-col-on-2xl",offset_5ColOn_2xl:"pf-m-offset-5-col-on-2xl",offset_6ColOn_2xl:"pf-m-offset-6-col-on-2xl",offset_7ColOn_2xl:"pf-m-offset-7-col-on-2xl",offset_8ColOn_2xl:"pf-m-offset-8-col-on-2xl",offset_9ColOn_2xl:"pf-m-offset-9-col-on-2xl",offset_10ColOn_2xl:"pf-m-offset-10-col-on-2xl",offset_11ColOn_2xl:"pf-m-offset-11-col-on-2xl",offset_12ColOn_2xl:"pf-m-offset-12-col-on-2xl","1RowOn_2xl":"pf-m-1-row-on-2xl","2RowOn_2xl":"pf-m-2-row-on-2xl","3RowOn_2xl":"pf-m-3-row-on-2xl","4RowOn_2xl":"pf-m-4-row-on-2xl","5RowOn_2xl":"pf-m-5-row-on-2xl","6RowOn_2xl":"pf-m-6-row-on-2xl","7RowOn_2xl":"pf-m-7-row-on-2xl","8RowOn_2xl":"pf-m-8-row-on-2xl","9RowOn_2xl":"pf-m-9-row-on-2xl","10RowOn_2xl":"pf-m-10-row-on-2xl","11RowOn_2xl":"pf-m-11-row-on-2xl","12RowOn_2xl":"pf-m-12-row-on-2xl",gutter:"pf-m-gutter"}};var yO;(function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"})(yO||(yO={}));var Yp;(function(e){e.sm="Sm",e.md="Md",e.lg="Lg",e.xl="Xl",e.xl2="_2xl"})(Yp||(Yp={}));const AA={name:"--pf-v5-l-grid--item--Order",value:"0",var:"var(--pf-v5-l-grid--item--Order)"},MA=e=>{var{children:t=null,className:n="",component:r="div",hasGutter:a,span:i=null,order:o,style:l}=e,s=Q(e,["children","className","component","hasGutter","span","order","style"]);const u=[aa.grid,i&&aa.modifiers[`all_${i}Col`]],c=r;return Object.entries(Yp).forEach(([f,d])=>{const h=f,p=s[h];p&&u.push(aa.modifiers[`all_${p}ColOn${d}`]),delete s[h]}),y.createElement(c,Object.assign({className:D(...u,a&&aa.modifiers.gutter,n),style:l||o?Object.assign(Object.assign({},l),mT(o,AA.name)):void 0},s),t)};MA.displayName="Grid";const Gi=e=>{var{children:t=null,className:n="",component:r="div",span:a=null,rowSpan:i=null,offset:o=null,order:l,style:s}=e,u=Q(e,["children","className","component","span","rowSpan","offset","order","style"]);const c=[aa.gridItem,a&&aa.modifiers[`${a}Col`],i&&aa.modifiers[`${i}Row`],o&&aa.modifiers[`offset_${o}Col`]],f=r;return Object.entries(Yp).forEach(([d,h])=>{const p=d,g=`${p}RowSpan`,b=`${p}Offset`,m=u[p],v=u[g],_=u[b];m&&c.push(aa.modifiers[`${m}ColOn${h}`]),v&&c.push(aa.modifiers[`${v}RowOn${h}`]),_&&c.push(aa.modifiers[`offset_${_}ColOn${h}`]),delete u[p],delete u[g],delete u[b]}),y.createElement(f,Object.assign({className:D(...c,n),style:s||l?Object.assign(Object.assign({},s),mT(l,AA.name)):void 0},u),t)};Gi.displayName="GridItem";const Jc={modifiers:{wrap:"pf-m-wrap",fill:"pf-m-fill",gutter:"pf-m-gutter"},split:"pf-v5-l-split",splitItem:"pf-v5-l-split__item"},IA=e=>{var{hasGutter:t=!1,isWrappable:n=!1,className:r="",children:a=null,component:i="div"}=e,o=Q(e,["hasGutter","isWrappable","className","children","component"]);const l=i;return y.createElement(l,Object.assign({},o,{className:D(Jc.split,t&&Jc.modifiers.gutter,n&&Jc.modifiers.wrap,r)}),a)};IA.displayName="Split";const cp=e=>{var{isFilled:t=!1,className:n="",children:r=null}=e,a=Q(e,["isFilled","className","children"]);return y.createElement("div",Object.assign({},a,{className:D(Jc.splitItem,t&&Jc.modifiers.fill,n)}),r)};cp.displayName="SplitItem";const rB={name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0},aB=ht(rB),iB=aB,oB={name:"BalanceScaleIcon",height:512,width:640,svgPath:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z",yOffset:0,xOffset:0},lB=ht(oB),sB={name:"BarsIcon",height:512,width:448,svgPath:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z",yOffset:0,xOffset:0},uB=ht(sB),cB={name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0},fB=ht(cB),dB=fB,hB={name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0},pB=ht(hB),mB=pB,gB={name:"FilterIcon",height:512,width:512,svgPath:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z",yOffset:0,xOffset:0},vB=ht(gB),yB={name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0},bB=ht(yB),bO=bB,_B={name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0},xB=ht(_B),wB=xB,SB={name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0},OB=ht(SB),CB=OB,EB={name:"OutlinedQuestionCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z",yOffset:0,xOffset:0},kB=ht(EB),PB={name:"PowerOffIcon",height:512,width:512,svgPath:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z",yOffset:0,xOffset:0},_O=ht(PB),TB={name:"UserIcon",height:512,width:448,svgPath:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z",yOffset:0,xOffset:0},AB=ht(TB);/** +*/function WS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VS(e){for(var t=1;t0){var r=t[t.length-1];r!==n&&r.pause()}var a=t.indexOf(n);a===-1||t.splice(a,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},p9=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},m9=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Gc=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},g9=function(t){return Gc(t)&&!t.shiftKey},v9=function(t){return Gc(t)&&t.shiftKey},GS=function(t){return setTimeout(t,0)},KS=function(t,n){var r=-1;return t.every(function(a,i){return n(a)?(r=i,!1):!0}),r},oc=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a1?L-1:0),U=1;U=0)T=r.activeElement;else{var E=o.tabbableGroups[0],L=E&&E.firstTabbableNode;T=L||c("fallbackFocus")}if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},d=function(){if(o.containerGroups=o.containers.map(function(T){var E=s9(T,i.tabbableOptions),L=u9(T,i.tabbableOptions),N=E.length>0?E[0]:void 0,U=E.length>0?E[E.length-1]:void 0,W=L.find(function(k){return ts(k)}),$=L.slice().reverse().find(function(k){return ts(k)}),F=!!E.find(function(k){return Go(k)>0});return{container:T,tabbableNodes:E,focusableNodes:L,posTabIndexesFound:F,firstTabbableNode:N,lastTabbableNode:U,firstDomTabbableNode:W,lastDomTabbableNode:$,nextTabbableNode:function(X){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,R=E.indexOf(X);return R<0?te?L.slice(L.indexOf(X)+1).find(function(J){return ts(J)}):L.slice(0,L.indexOf(X)).reverse().find(function(J){return ts(J)}):E[R+(te?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(T){return T.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function P(T){var E=T.activeElement;if(E)return E.shadowRoot&&E.shadowRoot.activeElement!==null?P(E.shadowRoot):E},p=function P(T){if(T!==!1&&T!==h(document)){if(!T||!T.focus){P(f());return}T.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=T,p9(T)&&T.select()}},g=function(T){var E=c("setReturnFocus",T);return E||(E===!1?!1:T)},b=function(T){var E=T.target,L=T.event,N=T.isBackward,U=N===void 0?!1:N;E=E||gh(L),d();var W=null;if(o.tabbableGroups.length>0){var $=u(E,L),F=$>=0?o.containerGroups[$]:void 0;if($<0)U?W=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:W=o.tabbableGroups[0].firstTabbableNode;else if(U){var k=KS(o.tabbableGroups,function(ue){var ve=ue.firstTabbableNode;return E===ve});if(k<0&&(F.container===E||Ov(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E,!1))&&(k=$),k>=0){var X=k===0?o.tabbableGroups.length-1:k-1,te=o.tabbableGroups[X];W=Go(E)>=0?te.lastTabbableNode:te.lastDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E,!1))}else{var R=KS(o.tabbableGroups,function(ue){var ve=ue.lastTabbableNode;return E===ve});if(R<0&&(F.container===E||Ov(E,i.tabbableOptions)&&!ts(E,i.tabbableOptions)&&!F.nextTabbableNode(E))&&(R=$),R>=0){var J=R===o.tabbableGroups.length-1?0:R+1,ae=o.tabbableGroups[J];W=Go(E)>=0?ae.firstTabbableNode:ae.firstDomTabbableNode}else Gc(L)||(W=F.nextTabbableNode(E))}}else W=c("fallbackFocus");return W},m=function(T){var E=gh(T);if(!(u(E,T)>=0)){if(oc(i.clickOutsideDeactivates,T)){l.deactivate({returnFocus:i.returnFocusOnDeactivate});return}oc(i.allowOutsideClick,T)||T.preventDefault()}},v=function(T){var E=gh(T),L=u(E,T)>=0;if(L||E instanceof Document)L&&(o.mostRecentlyFocusedNode=E);else{T.stopImmediatePropagation();var N,U=!0;if(o.mostRecentlyFocusedNode)if(Go(o.mostRecentlyFocusedNode)>0){var W=u(o.mostRecentlyFocusedNode),$=o.containerGroups[W].tabbableNodes;if($.length>0){var F=$.findIndex(function(k){return k===o.mostRecentlyFocusedNode});F>=0&&(i.isKeyForward(o.recentNavEvent)?F+1<$.length&&(N=$[F+1],U=!1):F-1>=0&&(N=$[F-1],U=!1))}}else o.containerGroups.some(function(k){return k.tabbableNodes.some(function(X){return Go(X)>0})})||(U=!1);else U=!1;U&&(N=b({target:o.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(o.recentNavEvent)})),p(N||o.mostRecentlyFocusedNode||f())}o.recentNavEvent=void 0},_=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;o.recentNavEvent=T;var L=b({event:T,isBackward:E});L&&(Gc(T)&&T.preventDefault(),p(L))},x=function(T){if(m9(T)&&oc(i.escapeDeactivates,T)!==!1){T.preventDefault(),l.deactivate();return}(i.isKeyForward(T)||i.isKeyBackward(T))&&_(T,i.isKeyBackward(T))},O=function(T){var E=gh(T);u(E,T)>=0||oc(i.clickOutsideDeactivates,T)||oc(i.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},S=function(){if(o.active)return qS.activateTrap(a,l),o.delayInitialFocusTimer=i.delayInitialFocus?GS(function(){p(f())}):p(f()),r.addEventListener("focusin",v,!0),r.addEventListener("mousedown",m,{capture:!0,passive:!1}),r.addEventListener("touchstart",m,{capture:!0,passive:!1}),r.addEventListener("click",O,{capture:!0,passive:!1}),r.addEventListener("keydown",x,{capture:!0,passive:!1}),l},w=function(){if(o.active)return r.removeEventListener("focusin",v,!0),r.removeEventListener("mousedown",m,!0),r.removeEventListener("touchstart",m,!0),r.removeEventListener("click",O,!0),r.removeEventListener("keydown",x,!0),l},C=function(T){var E=T.some(function(L){var N=Array.from(L.removedNodes);return N.some(function(U){return U===o.mostRecentlyFocusedNode})});E&&p(f())},A=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(C):void 0,I=function(){A&&(A.disconnect(),o.active&&!o.paused&&o.containers.map(function(T){A.observe(T,{subtree:!0,childList:!0})}))};return l={get active(){return o.active},get paused(){return o.paused},activate:function(T){if(o.active)return this;var E=s(T,"onActivate"),L=s(T,"onPostActivate"),N=s(T,"checkCanFocusTrap");N||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,E==null||E();var U=function(){N&&d(),S(),I(),L==null||L()};return N?(N(o.containers.concat()).then(U,U),this):(U(),this)},deactivate:function(T){if(!o.active)return this;var E=VS({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},T);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,w(),o.active=!1,o.paused=!1,I(),qS.deactivateTrap(a,l);var L=s(E,"onDeactivate"),N=s(E,"onPostDeactivate"),U=s(E,"checkCanReturnFocus"),W=s(E,"returnFocus","returnFocusOnDeactivate");L==null||L();var $=function(){GS(function(){W&&p(g(o.nodeFocusedBeforeActivation)),N==null||N()})};return W&&U?(U(g(o.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(T){if(o.paused||!o.active)return this;var E=s(T,"onPause"),L=s(T,"onPostPause");return o.paused=!0,E==null||E(),w(),I(),L==null||L(),this},unpause:function(T){if(!o.paused||!o.active)return this;var E=s(T,"onUnpause"),L=s(T,"onPostUnpause");return o.paused=!1,E==null||E(),d(),S(),I(),L==null||L(),this},updateContainerElements:function(T){var E=[].concat(T).filter(Boolean);return o.containers=E.map(function(L){return typeof L=="string"?r.querySelector(L):L}),o.active&&d(),I(),this}},l.updateContainerElements(t),l};function _9(e){const t=y.useRef(e);t.current=e,y.useEffect(()=>()=>{t.current()},[])}const U2=y.forwardRef(function(t,n){var{active:r=!0,paused:a=!1,focusTrapOptions:i={},preventScrollOnDeactivate:o=!1}=t,l=Q(t,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const s=y.useRef(null);y.useImperativeHandle(n,()=>s.current);const u=y.useRef(null);y.useEffect(()=>{const f=b9(s.current,Object.assign(Object.assign({},i),{returnFocusOnDeactivate:!1}));return u.current=f,()=>{f.deactivate()}},[]),y.useEffect(()=>{const f=u.current;r?f==null||f.activate():f==null||f.deactivate()},[r]),y.useEffect(()=>{const f=u.current;a?f==null||f.pause():f==null||f.unpause()},[a]);const c=y.useRef(typeof document<"u"?document.activeElement:null);return _9(()=>{i.returnFocusOnDeactivate!==!1&&c.current instanceof HTMLElement&&c.current.focus({preventScroll:o})}),M.createElement("div",Object.assign({ref:s},l))});U2.displayName="FocusTrap";function H2(e="pf"){const t=new Date().getTime()+Math.random().toString(36).slice(2);return`${e}-${t}`}function x9(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function vh(e,t,n,r=!1){if(!e||!t)return!1;const a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o=Math.ceil(a.left),l=Math.floor(a.right),s=Math.ceil(i.left),u=Math.floor(i.right),c=s>=o&&u<=l,f=(n||!r&&a.widtho||u>l&&sObject.entries(e||{}).reduce((n,[r,a])=>r==="default"?Object.assign(Object.assign({},n),{[t]:a}):Object.assign(Object.assign({},n),{[`${t}-on-${r}`]:a}),{}),Ci=(e,t,n="",r,a)=>{if(!e)return"";if(r&&!a){if(r in e)return t.modifiers[Cv(`${n}${e[r]}`)];const i=["2xl","xl","lg","md","sm","default"],o=i.indexOf(r);for(let l=o;l`${n}${o}${i!=="default"?`-on-${i}`:""}${a&&i!=="default"?"-height":""}`).map(Cv).map(i=>i.replace(/-?(\dxl)/gi,(o,l)=>`_${l}`)).map(i=>t.modifiers[i]).filter(Boolean).join(" ")},mT=e=>e===null?null:e>=ic["2xl"]?"2xl":e>=ic.xl?"xl":e>=ic.lg?"lg":e>=ic.md?"md":e>=ic.sm?"sm":"default",gT=e=>e===null?null:e>=ac["2xl"]?"2xl":e>=ac.xl?"xl":e>=ac.lg?"lg":e>=ac.md?"md":e>=ac.sm?"sm":"default",w9=e=>e.toUpperCase().replace("-","").replace("_",""),Cv=e=>e.replace(/([-_][a-z])/gi,w9),Oo=!!(typeof window<"u"&&window.document&&window.document.createElement),XS=(e,t)=>{const n=getComputedStyle(t),r=()=>{let o="";const l={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let s;return n.fontStretch in l?s=l[n.fontStretch]:s="normal",o=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+s+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,o},i=document.createElement("canvas").getContext("2d");return i.font=n.font||r(),i.measureText(e).width},S9=e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}},O9=(e,t)=>{const n=S9(e).width;let r=t;if(XS(t,e)>n){for(;XS(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t},yh=e=>{e.forEach(t=>{t.current&&clearTimeout(t.current)})},Ds=(e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t};let C9=0;function E9(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():H2()}class Mu extends y.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?E9():C9++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Mu.displayName="GenerateId";Mu.defaultProps={prefix:"pf-random-id-",isRandom:!1};const vT="*";let k9=0;const YS="OUIA-Generated-",Ev={};function Ll(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ii=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":P9(e,t,r)}),P9=(e,t,n)=>{const r=y.useMemo(()=>Lo(e,n),[e,n]);return t??r};function Lo(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,Ev[n]||(Ev[n]=0),`${YS}${e}-${t?`${t}-`:""}${++Ev[n]}`}catch{return`${YS}${e}-${t?`${t}-`:""}${++k9}`}}function Of(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 qa(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function W2(e){const t=qa(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cf(e){const t=qa(e).Element;return e instanceof t||e instanceof Element}function Ua(e){const t=qa(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function T9(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function A9(e){return e===qa(e)||!Ua(e)?W2(e):T9(e)}function ma(e){return e?(e.nodeName||"").toLowerCase():null}function Ri(e){return(Cf(e)?e.ownerDocument:e.document).documentElement}function V2(e){return Of(Ri(e)).left+W2(e).scrollLeft}function gi(e){return qa(e).getComputedStyle(e)}function q2(e){const{overflow:t,overflowX:n,overflowY:r}=gi(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function M9(e,t,n=!1){const r=Ri(t),a=Of(e),i=Ua(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((ma(t)!=="body"||q2(r))&&(o=A9(t)),Ua(t)?(l=Of(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=V2(r))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function G2(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Rg(e){return ma(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Ri(e)}function yT(e){return["html","body","#document"].indexOf(ma(e))>=0?e.ownerDocument.body:Ua(e)&&q2(e)?e:yT(Rg(e))}function Kc(e,t=[]){const n=yT(e),r=ma(n)==="body",a=qa(n),i=r?[a].concat(a.visualViewport||[],q2(n)?n:[]):n,o=t.concat(i);return r?o:o.concat(Kc(Rg(i)))}function I9(e){return["table","td","th"].indexOf(ma(e))>=0}function QS(e){if(!Ua(e)||gi(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Ri(t);if(ma(t)==="body"&&gi(t).position==="static"&&gi(n).position!=="static")return n}return t}function R9(e){let t=Rg(e);for(;Ua(t)&&["html","body"].indexOf(ma(t))<0;){const n=gi(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function bd(e){const t=qa(e);let n=QS(e);for(;n&&I9(n)&&gi(n).position==="static";)n=QS(n);return n&&ma(n)==="body"&&gi(n).position==="static"?t:n||R9(e)||t}const Ur="top",da="bottom",ha="right",Hr="left",K2="auto",_d=[Ur,da,ha,Hr],pu="start",X2="end",$9="clippingParents",bT="viewport",lc="popper",L9="reference",JS=_d.reduce((e,t)=>e.concat([`${t}-${pu}`,`${t}-${X2}`]),[]),_T=[..._d,K2].reduce((e,t)=>e.concat([t,`${t}-${pu}`,`${t}-${X2}`]),[]),j9="beforeRead",D9="read",N9="afterRead",F9="beforeMain",z9="main",B9="afterMain",U9="beforeWrite",H9="write",W9="afterWrite",V9=[j9,D9,N9,F9,z9,B9,U9,H9,W9];function q9(e){const t=new Map,n=new Set,r=[];e.forEach(i=>{t.set(i.name,i)});function a(i){n.add(i.name),[...i.requires||[],...i.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&a(s)}}),r.push(i)}return e.forEach(i=>{n.has(i.name)||a(i)}),r}function G9(e){const t=q9(e);return V9.reduce((n,r)=>n.concat(t.filter(a=>a.phase===r)),[])}function K9(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function Fa(e){return e.split("-")[0]}function X9(e){const t=e.reduce((n,r)=>{const a=n[r.name];return n[r.name]=a?Object.assign(Object.assign(Object.assign({},a),r),{options:Object.assign(Object.assign({},a.options),r.options),data:Object.assign(Object.assign({},a.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Y9(e){const t=qa(e),n=Ri(e),r=t.visualViewport;let a=n.clientWidth,i=n.clientHeight,o=0,l=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:a,height:i,x:o+V2(e),y:l}}function Q9(e){const t=Ri(e),n=W2(e),r=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+V2(e);const l=-n.scrollTop;return gi(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:o,y:l}}function xT(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 Eb(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J9(e){const t=Of(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 ZS(e,t){return t===bT?Eb(Y9(e)):Ua(t)?J9(t):Eb(Q9(Ri(e)))}function Z9(e){const t=Kc(Rg(e)),r=["absolute","fixed"].indexOf(gi(e).position)>=0&&Ua(e)?bd(e):e;return Cf(r)?t.filter(a=>Cf(a)&&xT(a,r)&&ma(a)!=="body"):[]}function eF(e,t,n){const a=[...t==="clippingParents"?Z9(e):[].concat(t),n],i=a[0],o=a.reduce((l,s)=>{const u=ZS(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},ZS(e,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ef(e){return e.split("-")[1]}function Y2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wT({reference:e,element:t,placement:n}){const r=n?Fa(n):null,a=n?Ef(n):null,i=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case Ur:l={x:i,y:e.y-t.height};break;case da:l={x:i,y:e.y+e.height};break;case ha:l={x:e.x+e.width,y:o};break;case Hr:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?Y2(r):null;if(s!=null){const u=s==="y"?"height":"width";switch(a){case pu:l[s]=Math.floor(l[s])-Math.floor(e[u]/2-t[u]/2);break;case X2:l[s]=Math.floor(l[s])+Math.ceil(e[u]/2-t[u]/2);break}}return l}function ST(){return{top:0,right:0,bottom:0,left:0}}function OT(e){return Object.assign(Object.assign({},ST()),e)}function CT(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function kf(e,t={}){const{placement:n=e.placement,boundary:r=$9,rootBoundary:a=bT,elementContext:i=lc,altBoundary:o=!1,padding:l=0}=t,s=OT(typeof l!="number"?l:CT(l,_d)),u=i===lc?L9:lc,c=e.elements.reference,f=e.rects.popper,d=e.elements[o?u:i],h=eF(Cf(d)?d:d.contextElement||Ri(e.elements.popper),r,a),p=Of(c),g=wT({reference:p,element:f,strategy:"absolute",placement:n}),b=Eb(Object.assign(Object.assign({},f),g)),m=i===lc?b:p,v={top:h.top-m.top+s.top,bottom:m.bottom-h.bottom+s.bottom,left:h.left-m.left+s.left,right:m.right-h.right+s.right},_=e.modifiersData.offset;if(i===lc&&_){const x=_[n];Object.keys(v).forEach(O=>{const S=[ha,da].indexOf(O)>=0?1:-1,w=[Ur,da].indexOf(O)>=0?"y":"x";v[O]+=x[w]*S})}return v}const eO={placement:"bottom",modifiers:[],strategy:"absolute"};function tO(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function tF(e={}){const{defaultModifiers:t=[],defaultOptions:n=eO}=e;return function(a,i,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},eO),n),modifiersData:{},elements:{reference:a,popper:i},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:Cf(a)?Kc(a):a.contextElement?Kc(a.contextElement):[],popper:Kc(i)};const p=G9(X9([...t,...l.options.modifiers]));return l.orderedModifiers=p.filter(g=>g.enabled),f(),c.update()},forceUpdate(){if(u)return;const{reference:h,popper:p}=l.elements;if(tO(h,p)){l.rects={reference:M9(h,bd(p),l.options.strategy==="fixed"),popper:G2(p)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(g=>l.modifiersData[g.name]=Object.assign({},g.data));for(let g=0;gnew Promise(h=>{c.forceUpdate(),h(l)})),destroy(){d(),u=!0}};if(!tO(a,i))return c;c.setOptions(o).then(h=>{!u&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:p={},effect:g})=>{if(typeof g=="function"){const b=g({state:l,name:h,instance:c,options:p}),m=()=>{};s.push(b||m)}})}function d(){s.forEach(h=>h()),s=[]}return c}}const bh={passive:!0};function nF({state:e,instance:t,options:n}){const{scroll:r=!0,resize:a=!0}=n,i=qa(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,bh)}),a&&i.addEventListener("resize",t.update,bh),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,bh)}),a&&i.removeEventListener("resize",t.update,bh)}}const rF={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:nF,data:{}};function aF({state:e,name:t}){e.modifiersData[t]=wT({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const iF={name:"popperOffsets",enabled:!0,phase:"read",fn:aF,data:{}},oF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lF({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 nO({popper:e,popperRect:t,placement:n,offsets:r,position:a,gpuAcceleration:i,adaptive:o}){let{x:l,y:s}=lF(r);const u=r.hasOwnProperty("x"),c=r.hasOwnProperty("y");let f=Hr,d=Ur;const h=window;if(o){let g=bd(e);g===qa(e)&&(g=Ri(e)),n===Ur&&(d=da,s-=g.clientHeight-t.height,s*=i?1:-1),n===Hr&&(f=ha,l-=g.clientWidth-t.width,l*=i?1:-1)}const p=Object.assign({position:a},o&&oF);return i?Object.assign(Object.assign({},p),{[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({},p),{[d]:c?`${s}px`:"",[f]:u?`${l}px`:"",transform:""})}function sF({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,a={placement:Fa(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),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),nO(Object.assign(Object.assign({},a),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const uF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sF,data:{}};function cF({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},a=e.elements[t];!Ua(a)||!ma(a)||(Object.assign(a.style,n),Object.keys(r).forEach(i=>{const o=r[i];o===!1?a.removeAttribute(i):a.setAttribute(i,o===!0?"":o)}))})}function fF({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],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Ua(r)||!ma(r)||(Object.assign(r.style,o),Object.keys(a).forEach(l=>{r.removeAttribute(l)}))})}}const dF={name:"applyStyles",enabled:!0,phase:"write",fn:cF,effect:fF,requires:["computeStyles"]};function hF(e,t,n){const r=Fa(e),a=[Hr,Ur].indexOf(r)>=0?-1:1;let[i,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return i=i||0,o=(o||0)*a,[Hr,ha].indexOf(r)>=0?{x:o,y:i}:{x:i,y:o}}function pF({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,a=_T.reduce((l,s)=>(l[s]=hF(s,e.rects,r),l),{}),{x:i,y:o}=a[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=a}const mF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pF},gF={left:"right",right:"left",bottom:"top",top:"bottom"};function lp(e){return e.replace(/left|right|bottom|top/g,t=>gF[t])}const vF={start:"end",end:"start"};function rO(e){return e.replace(/start|end/g,t=>vF[t])}function yF(e,t={}){const{placement:n,boundary:r,rootBoundary:a,padding:i,flipVariations:o,allowedAutoPlacements:l=_T}=t,s=Ef(n),u=s?o?JS:JS.filter(d=>Ef(d)===s):_d;let c=u.filter(d=>l.indexOf(d)>=0);c.length===0&&(c=u);const f=c.reduce((d,h)=>(d[h]=kf(e,{placement:h,boundary:r,rootBoundary:a,padding:i})[Fa(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function bF(e){if(Fa(e)===K2)return[];const t=lp(e);return[rO(e),t,rO(t)]}function _F({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:a=!0,fallbackPlacements:i,padding:o,boundary:l,rootBoundary:s,altBoundary:u,flipVariations:c=!0,allowedAutoPlacements:f}=t,d=e.options.placement,p=Fa(d)===d,g=i||(p||!c?[lp(d)]:bF(d)),b=[d,...g].reduce((S,w)=>S.concat(Fa(w)===K2?yF(e,{placement:w,boundary:l,rootBoundary:s,padding:o,flipVariations:c,allowedAutoPlacements:f}):w),[]),m=e.rects.reference,v=e.rects.popper,_=new Map;let x=!0,O=b[0];for(let S=0;S=0,P=I?"width":"height",T=kf(e,{placement:w,boundary:l,rootBoundary:s,altBoundary:u,padding:o});let E=I?A?ha:Hr:A?da:Ur;m[P]>v[P]&&(E=lp(E));const L=lp(E),N=[];if(r&&N.push(T[C]<=0),a&&N.push(T[E]<=0,T[L]<=0),N.every(U=>U)){O=w,x=!1;break}_.set(w,N)}if(x){const S=c?3:1;for(let w=S;w>0;w--){const C=b.find(A=>{const I=_.get(A);if(I)return I.slice(0,w).every(P=>P)});if(C){O=C;break}}}e.placement!==O&&(e.modifiersData[n]._skip=!0,e.placement=O,e.reset=!0)}const xF={name:"flip",enabled:!0,phase:"main",fn:_F,requiresIfExists:["offset"],data:{_skip:!1}};function wF(e){return e==="x"?"y":"x"}function sp(e,t,n){return Math.max(e,Math.min(t,n))}function SF({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:a=!1,boundary:i,rootBoundary:o,altBoundary:l,padding:s,tether:u=!0,tetherOffset:c=0}=t,f=kf(e,{boundary:i,rootBoundary:o,padding:s,altBoundary:l}),d=Fa(e.placement),h=Ef(e.placement),p=!h,g=Y2(d),b=wF(g),m=e.modifiersData.popperOffsets,v=e.rects.reference,_=e.rects.popper,x=typeof c=="function"?c(Object.assign(Object.assign({},e.rects),{placement:e.placement})):c,O={x:0,y:0};if(m){if(r){const S=g==="y"?Ur:Hr,w=g==="y"?da:ha,C=g==="y"?"height":"width",A=m[g],I=m[g]+f[S],P=m[g]-f[w],T=u?-_[C]/2:0,E=h===pu?v[C]:_[C],L=h===pu?-_[C]:-v[C],N=e.elements.arrow,U=u&&N?G2(N):{width:0,height:0},W=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ST(),$=W[S],F=W[w],k=sp(0,v[C],U[C]),X=p?v[C]/2-T-k-$-x:E-k-$-x,te=p?-v[C]/2+T+k+F+x:L+k+F+x,R=e.elements.arrow&&bd(e.elements.arrow),J=R?g==="y"?R.clientTop||0:R.clientLeft||0:0,ae=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,ue=m[g]+X-ae-J,ve=m[g]+te-ae,ke=sp(u?Math.min(I,ue):I,A,u?Math.max(P,ve):P);m[g]=ke,O[g]=ke-A}if(a){const S=g==="x"?Ur:Hr,w=g==="x"?da:ha,C=m[b],A=C+f[S],I=C-f[w],P=sp(A,C,I);m[b]=P,O[b]=P-C}e.modifiersData[n]=O}}const OF={name:"preventOverflow",enabled:!0,phase:"main",fn:SF,requiresIfExists:["offset"]};function CF({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,a=Fa(e.placement),i=Y2(a),l=[Hr,ha].indexOf(a)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,u=G2(n),c=i==="y"?Ur:Hr,f=i==="y"?da:ha,d=e.rects.reference[l]+e.rects.reference[i]-r[i]-e.rects.popper[l],h=r[i]-e.rects.reference[i],p=bd(n),g=p?i==="y"?p.clientHeight||0:p.clientWidth||0:0,b=d/2-h/2,m=s[c],v=g-u[l]-s[f],_=g/2-u[l]/2+b,x=sp(m,_,v),O=i;e.modifiersData[t]={[O]:x,centerOffset:x-_}}function EF({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:a=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||xT(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:OT(typeof a!="number"?a:CT(a,_d))}))}const kF={name:"arrow",enabled:!0,phase:"main",fn:CF,effect:EF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function aO(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 iO(e){return[Ur,ha,da,Hr].some(t=>e[t]>=0)}function PF({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,a=e.modifiersData.preventOverflow,i=kf(e,{elementContext:"reference"}),o=kf(e,{altBoundary:!0}),l=aO(i,n),s=aO(o,r,a),u=iO(l),c=iO(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 TF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PF},AF=[rF,iF,uF,dF,mF,xF,OF,kF,TF],MF=tF({defaultModifiers:AF}),kb=Oo?y.useLayoutEffect:y.useEffect,IF=(e,t)=>JSON.stringify(e)===JSON.stringify(t),oO=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),RF=[],$F=(e,t,n={})=>{const r=y.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||RF},[i,o]=y.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"}},attributes:{}}),l=y.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:c})=>{const f=Object.keys(c.elements);o({styles:oO(f.map(d=>[d,c.styles[d]||{}])),attributes:oO(f.map(d=>[d,c.attributes[d]]))})},requires:["computeStyles"]}),[]),s=y.useMemo(()=>{const c={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[...a.modifiers,l,{name:"applyStyles",enabled:!1}]};return IF(r.current,c)?r.current||c:(r.current=c,c)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,l]),u=y.useRef();return kb(()=>{u&&u.current&&u.current.setOptions(s)},[s]),kb(()=>{if(e==null||t==null)return;const f=(n.createPopper||MF)(e,t,s);return u.current=f,()=>{f.destroy(),u.current=null}},[e,t,n.createPopper]),{state:u.current?u.current.state:null,styles:i.styles,attributes:i.attributes,update:u.current?u.current.update:null,forceUpdate:u.current?u.current.forceUpdate:null}},LF={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"},jF=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=>LF[t]),DF=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,jl=({trigger:e,popper:t,direction:n="down",position:r="start",placement:a,width:i,minWidth:o="trigger",maxWidth:l,appendTo:s="inline",zIndex:u=9999,isVisible:c=!0,positionModifiers:f,distance:d=0,onMouseEnter:h,onMouseLeave:p,onFocus:g,onBlur:b,onDocumentClick:m,onTriggerClick:v,onTriggerEnter:_,onPopperClick:x,onPopperMouseEnter:O,onPopperMouseLeave:S,onDocumentKeyDown:w,enableFlip:C=!0,flipBehavior:A="flip",triggerRef:I,popperRef:P,animationDuration:T=0,entryDelay:E=0,exitDelay:L=0,onHidden:N=()=>{},onHide:U=()=>{},onMount:W=()=>{},onShow:$=()=>{},onShown:F=()=>{},preventOverflow:k=!1})=>{var X;const[te,R]=y.useState(null),[J,ae]=y.useState(null),[ue,ve]=y.useState(null),[ke,q]=y.useState(null),[Z,ie]=y.useState(!1),[K,Te]=y.useState(0),[ye,Ae]=y.useState(c),Ce=y.useRef(null),Re=y.useRef(null),Ge=y.useRef(null),_e=y.useRef(),re=J||te,oe=c||ye,xe=(X=(I==null?void 0:I.current)||te)===null||X===void 0?void 0:X.parentElement,De=Ds(xe),Je=y.useMemo(()=>{const Fe={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},Fe),rtl:Object.assign({start:"right",end:"left"},Fe)}[De][r]},[r,De]),z=y.useCallback(Fe=>m(Fe,re,ue),[oe,te,J,ue,m]);y.useEffect(()=>{ie(!0),W()},[]),y.useEffect(()=>()=>{yh([Ce,Ge,Re])},[]),y.useEffect(()=>{I&&(I.current?ae(I.current):typeof I=="function"&&ae(I()))},[I,e]),y.useEffect(()=>{P&&(P.current?ve(P.current):typeof P=="function"&&ve(P()))},[oe,P]),y.useEffect(()=>{const Fe=new MutationObserver(()=>{Bt&&Bt()});return ue&&Fe.observe(ue,{attributes:!0,childList:!0,subtree:!0}),()=>{Fe.disconnect()}},[ue]);const Y=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.addEventListener(Za,Fe,{capture:H})},he=(Fe,xt,Za,H=!1)=>{Fe&&xt&&xt.removeEventListener(Za,Fe,{capture:H})};y.useEffect(()=>(Y(h,re,"mouseenter"),Y(p,re,"mouseleave"),Y(g,re,"focus"),Y(b,re,"blur"),Y(v,re,"click"),Y(_,re,"keydown"),Y(x,ue,"click"),Y(O,ue,"mouseenter"),Y(S,ue,"mouseleave"),m&&Y(z,document,"click",!0),Y(w,document,"keydown",!0),()=>{he(h,re,"mouseenter"),he(p,re,"mouseleave"),he(g,re,"focus"),he(b,re,"blur"),he(v,re,"click"),he(_,re,"keydown"),he(x,ue,"click"),he(O,ue,"mouseenter"),he(S,ue,"mouseleave"),m&&he(z,document,"click",!0),he(w,document,"keydown",!0)}),[te,ue,h,p,g,b,v,_,x,O,S,m,w,J]);const se=()=>{if(a)return a;let Fe=n==="up"?"top":"bottom";return Je!=="center"&&(Fe=`${Fe}-${Je==="right"?"end":"start"}`),Fe},pe=y.useMemo(se,[n,Je,a]),He=y.useMemo(()=>jF(se()),[n,Je,a]),ge=y.useMemo(()=>({name:"widthMods",enabled:i!==void 0||o!==void 0||l!==void 0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:Fe})=>{const xt=Fe.rects.reference.width;i&&(Fe.styles.popper.width=i==="trigger"?`${xt}px`:i),o&&(Fe.styles.popper.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.styles.popper.maxWidth=l==="trigger"?`${xt}px`:l)},effect:({state:Fe})=>{const xt=Fe.elements.reference.offsetWidth;return i&&(Fe.elements.popper.style.width=i==="trigger"?`${xt}px`:i),o&&(Fe.elements.popper.style.minWidth=o==="trigger"?`${xt}px`:o),l&&(Fe.elements.popper.style.maxWidth=l==="trigger"?`${xt}px`:l),()=>{}}}),[i,o,l]),{styles:Pe,attributes:Ke,update:Bt,forceUpdate:$e}=$F(re,ue,{placement:pe,modifiers:[{name:"offset",options:{offset:[0,d]}},{name:"preventOverflow",enabled:k},{name:"hide",enabled:!0},{name:"flip",enabled:pe.startsWith("auto")||C,options:{fallbackPlacements:A==="flip"?[He]:A}},ge]});y.useEffect(()=>{var Fe,xt,Za,H,G,ee,de;const be=((H=(Za=(xt=(Fe=t==null?void 0:t.props)===null||Fe===void 0?void 0:Fe.children)===null||xt===void 0?void 0:xt[1])===null||Za===void 0?void 0:Za.props)===null||H===void 0?void 0:H.children)||((de=(ee=(G=t==null?void 0:t.props)===null||G===void 0?void 0:G.children)===null||ee===void 0?void 0:ee.props)===null||de===void 0?void 0:de.children);q(be),be&&ke&&be!==ke&&$e&&$e()},[t]),y.useEffect(()=>{_e.current{Ce.current=setTimeout(()=>{Ae(!1)},T)},L)),_e.current=L},[L]);const Ze=()=>{$(),yh([Ce,Ge]),Re.current=setTimeout(()=>{Ae(!0),Te(1),F()},E)},dt=()=>{U(),yh([Re]),Ge.current=setTimeout(()=>{Te(0),Ce.current=setTimeout(()=>{Ae(!1),N()},T)},L)};y.useEffect(()=>{c?Ze():dt()},[c]);const Gt=()=>{if(Ke&&Ke.popper&&Ke.popper["data-popper-placement"]){const Fe=Ke.popper["data-popper-placement"];return f[Fe]}return f.top},ya=Object.assign({className:D(t.props&&t.props.className,f&&Gt()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),Pe.popper),{zIndex:u,opacity:K,transition:DF(T)})},Ke.popper),Bi=()=>{const Fe=y.cloneElement(t,ya);return P?Fe:y.createElement("div",{style:{display:"contents"},ref:xt=>ve(xt==null?void 0:xt.firstElementChild)},Fe)},Kd=()=>{if(s==="inline")return Bi();{const Fe=typeof s=="function"?s():s;return Ig.createPortal(Bi(),Fe)}};return y.createElement(y.Fragment,null,!I&&e&&y.isValidElement(e)&&y.createElement("div",{style:{display:"contents"},ref:Fe=>R(Fe==null?void 0:Fe.firstElementChild)},e),I&&e&&y.isValidElement(e)&&e,Z&&oe&&Kd())};jl.displayName="Popper";const ET=(e,t,n=u=>document.activeElement.contains(u),r=u=>u,a=["A","BUTTON","INPUT"],i=!1,o=!1,l=!0,s=!0)=>{const u=document.activeElement,c=e.key;let f=null;if(!i&&["ArrowUp","ArrowDown"].includes(c)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){let g=0;for(;!f&&g=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,p)=>{if(n(h)){const g=t[p].querySelectorAll(a.join(","));if(!g.length||s){let b=u;for(;b;)if(b=c==="ArrowLeft"?b.previousElementSibling:b.nextElementSibling,b&&a.includes(b.tagName)){f=b;break}}else g.forEach((b,m)=>{e.target===b&&(d=m+(c==="ArrowLeft"?-1:1),d>=g.length&&(d=0),d<0&&(d=g.length-1),f=g[d])})}})}f&&(l&&(u.tabIndex=-1,f.tabIndex=0),f.focus())},NF=e=>{e&&e.length>0&&(e.forEach(t=>{t.tabIndex=-1}),e[0].tabIndex=0)};class Q2 extends y.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:a,noVerticalArrowHandling:i,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:u,validSiblingTags:c,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const p=d();if(!p){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const g=t.key;l||g==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||g===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),ET(t,p,r,a,c,i,o,u,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Oo&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Oo&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Q2.displayName="KeyboardHandler";Q2.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 J2=(e,t,n)=>{let r;if(Oo){const{ResizeObserver:a}=window;if(e&&a){const i=new a(o=>{n?window.requestAnimationFrame(()=>{Array.isArray(o)&&o.length>0}):Array.isArray(o)&&o.length>0&&t()});i.observe(e),r=()=>i.unobserve(e)}else window.addEventListener("resize",t),r=()=>window.removeEventListener("resize",t)}return()=>{r&&r()}},Sa=e=>!!(e&&!isNaN(e)),nn={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},_h={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"},FF={name:"--pf-v5-c-spinner--diameter",value:"3.375rem",var:"var(--pf-v5-c-spinner--diameter)"};var Pb;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(Pb||(Pb={}));const $g=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",diameter:a,isInline:i=!1,"aria-label":o,"aria-labelledBy":l}=e,s=Q(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return y.createElement("svg",Object.assign({className:D(_h.spinner,i?_h.modifiers.inline:_h.modifiers[n],t),role:"progressbar","aria-valuetext":r,viewBox:"0 0 100 100"},a&&{style:{[FF.name]:a}},o&&{"aria-label":o},l&&{"aria-labelledBy":l},!o&&!l&&{"aria-label":"Contents"},s),y.createElement("circle",{className:_h.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};$g.displayName="Spinner";const kv={badge:"pf-v5-c-badge",modifiers:{read:"pf-m-read",unread:"pf-m-unread"},themeDark:"pf-v5-theme-dark"},Z2=e=>{var{isRead:t=!1,className:n="",children:r="",screenReaderText:a}=e,i=Q(e,["isRead","className","children","screenReaderText"]);return y.createElement("span",Object.assign({},i,{className:D(kv.badge,t?kv.modifiers.read:kv.modifiers.unread,n)}),r,a&&y.createElement("span",{className:"pf-v5-screen-reader"},a))};Z2.displayName="Badge";var pn;(function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"})(pn||(pn={}));var Tb;(function(e){e.button="button",e.submit="submit",e.reset="reset"})(Tb||(Tb={}));var Xc;(function(e){e.default="default",e.sm="sm",e.lg="lg"})(Xc||(Xc={}));const zF=e=>{var{children:t=null,className:n="",component:r="button",isActive:a=!1,isBlock:i=!1,isDisabled:o=!1,isAriaDisabled:l=!1,isLoading:s=null,isDanger:u=!1,spinnerAriaValueText:c,spinnerAriaLabelledBy:f,spinnerAriaLabel:d,size:h=Xc.default,inoperableEvents:p=["onClick","onKeyPress"],isInline:g=!1,type:b=Tb.button,variant:m=pn.primary,iconPosition:v="start","aria-label":_=null,icon:x=null,ouiaId:O,ouiaSafe:S=!0,tabIndex:w=null,innerRef:C,countOptions:A}=e,I=Q(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const P=Ii(gt.displayName,O,S,m),T=r,E=T==="button",L=g&&T==="span",N=p.reduce((W,$)=>Object.assign(Object.assign({},W),{[$]:F=>{F.preventDefault()}}),{}),U=()=>{if(o)return E?null:-1;if(l)return null;if(L)return 0};return y.createElement(T,Object.assign({},I,l?N:null,{"aria-disabled":o||l,"aria-label":_,className:D(nn.button,nn.modifiers[m],i&&nn.modifiers.block,o&&nn.modifiers.disabled,l&&nn.modifiers.ariaDisabled,a&&nn.modifiers.active,g&&m===pn.link&&nn.modifiers.inline,u&&(m===pn.secondary||m===pn.link)&&nn.modifiers.danger,s!==null&&m!==pn.plain&&nn.modifiers.progress,s&&nn.modifiers.inProgress,h===Xc.sm&&nn.modifiers.small,h===Xc.lg&&nn.modifiers.displayLg,n),disabled:E?o:null,tabIndex:w!==null?w:U(),type:E||L?b:null,role:L?"button":null,ref:C},P),s&&y.createElement("span",{className:D(nn.buttonProgress)},y.createElement($g,{size:Pb.md,isInline:g,"aria-valuetext":c,"aria-label":d,"aria-labelledby":f})),m===pn.plain&&t===null&&x?x:null,m!==pn.plain&&x&&(v==="start"||v==="left")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.start)},x),t,m!==pn.plain&&x&&(v==="end"||v==="right")&&y.createElement("span",{className:D(nn.buttonIcon,nn.modifiers.end)},x),A&&y.createElement("span",{className:D(nn.buttonCount,A.className)},y.createElement(Z2,{isRead:A.isRead},A.count)))},gt=y.forwardRef((e,t)=>y.createElement(zF,Object.assign({innerRef:t},e)));gt.displayName="Button";let BF=0;function ht({name:e,xOffset:t=0,yOffset:n=0,width:r,height:a,svgPath:i}){var o;return o=class extends y.Component{constructor(){super(...arguments),this.id=`icon-title-${BF++}`}render(){const s=this.props,{title:u,className:c}=s,f=Q(s,["title","className"]),d=c?`pf-v5-svg ${c}`:"pf-v5-svg",h=!!u,p=[t,n,r,a].join(" ");return y.createElement("svg",Object.assign({className:d,viewBox:p,fill:"currentColor","aria-labelledby":h?this.id:null,"aria-hidden":h?null:!0,role:"img",width:"1em",height:"1em"},f),h&&y.createElement("title",{id:this.id},u),y.createElement("path",{d:i}))}},o.displayName=e,o}const UF={name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0},HF=ht(UF),Ab=HF,WF={bullseye:"pf-v5-l-bullseye"},wn={modifiers:{top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},themeDark:"pf-v5-theme-dark",tooltip:"pf-v5-c-tooltip",tooltipArrow:"pf-v5-c-tooltip__arrow",tooltipContent:"pf-v5-c-tooltip__content"},kT=e=>{var{className:t,children:n,isLeftAligned:r}=e,a=Q(e,["className","children","isLeftAligned"]);return y.createElement("div",Object.assign({className:D(wn.tooltipContent,r&&wn.modifiers.textAlignLeft,t)},a),n)};kT.displayName="TooltipContent";const PT=e=>{var{className:t}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(wn.tooltipArrow,t)},n))};PT.displayName="TooltipArrow";const lO={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var sO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(sO||(sO={}));let VF=1;const $i=e=>{var{content:t,position:n="top",trigger:r="mouseenter focus",isVisible:a=!1,isContentLeftAligned:i=!1,enableFlip:o=!0,className:l="",entryDelay:s=300,exitDelay:u=300,appendTo:c=()=>document.body,zIndex:f=9999,minWidth:d,maxWidth:h=lO.value,distance:p=15,aria:g="describedby",flipBehavior:b=["top","right","bottom","left","top","right","bottom"],id:m=`pf-tooltip-${VF++}`,children:v,animationDuration:_=300,triggerRef:x,"aria-live":O=x?"polite":"off",onTooltipHidden:S=()=>{}}=e,w=Q(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const C=r.includes("mouseenter"),A=r.includes("focus"),I=r.includes("click"),P=r==="manual",[T,E]=y.useState(!1),L=y.createRef(),N=J=>{P||J.key===Hp.Escape&&T&&$()},U=J=>{J.key===Hp.Enter&&(T?$():W())};y.useEffect(()=>{a?W():$()},[a]);const W=()=>{E(!0)},$=()=>{E(!1)},F={top:wn.modifiers.top,bottom:wn.modifiers.bottom,left:wn.modifiers.left,right:wn.modifiers.right,"top-start":wn.modifiers.topLeft,"top-end":wn.modifiers.topRight,"bottom-start":wn.modifiers.bottomLeft,"bottom-end":wn.modifiers.bottomRight,"left-start":wn.modifiers.leftTop,"left-end":wn.modifiers.leftBottom,"right-start":wn.modifiers.rightTop,"right-end":wn.modifiers.rightBottom},k=h!==lO.value,X=y.createElement("div",Object.assign({"aria-live":O,className:D(wn.tooltip,l),role:"tooltip",id:m,style:{maxWidth:k?h:null},ref:L},w),y.createElement(PT,null),y.createElement(kT,{isLeftAligned:i},t)),te=(J,ae)=>{T?$():J.target===ae&&W()},R=()=>g==="describedby"&&v&&v.props&&!v.props["aria-describedby"]?y.cloneElement(v,{"aria-describedby":m}):g==="labelledby"&&v.props&&!v.props["aria-labelledby"]?y.cloneElement(v,{"aria-labelledby":m}):v;return y.createElement(jl,{trigger:g!=="none"&&T?R():v,triggerRef:x,popper:X,popperRef:L,minWidth:d!==void 0?d:"revert",appendTo:c,isVisible:T,positionModifiers:F,distance:p,placement:n,onMouseEnter:C&&W,onMouseLeave:C&&$,onPopperMouseEnter:C&&W,onPopperMouseLeave:C&&$,onFocus:A&&W,onBlur:A&&$,onDocumentClick:I&&te,onDocumentKeyDown:P?null:N,onTriggerEnter:P?null:U,enableFlip:o,zIndex:f,flipBehavior:b,animationDuration:_,entryDelay:s,exitDelay:u,onHidden:S})};$i.displayName="Tooltip";const qF={name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0},Kp=ht(qF),GF={name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},TT=ht(GF),KF={name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0},AT=ht(KF),XF={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},YF=ht(XF),Iu=YF,QF={name:"AngleUpIcon",height:512,width:320,svgPath:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z",yOffset:0,xOffset:0},JF=ht(QF),ZF=JF,Ia={breadcrumb:"pf-v5-c-breadcrumb",breadcrumbDropdown:"pf-v5-c-breadcrumb__dropdown",breadcrumbHeading:"pf-v5-c-breadcrumb__heading",breadcrumbItem:"pf-v5-c-breadcrumb__item",breadcrumbItemDivider:"pf-v5-c-breadcrumb__item-divider",breadcrumbLink:"pf-v5-c-breadcrumb__link",breadcrumbList:"pf-v5-c-breadcrumb__list",dirRtl:"pf-v5-m-dir-rtl",dropdownToggle:"pf-v5-c-dropdown__toggle",modifiers:{current:"pf-m-current"}},Dl=e=>{var{children:t=null,className:n="","aria-label":r="Breadcrumb",ouiaId:a,ouiaSafe:i=!0}=e,o=Q(e,["children","className","aria-label","ouiaId","ouiaSafe"]);const l=Ii(Dl.displayName,a,i);return y.createElement("nav",Object.assign({},o,{"aria-label":r,className:D(Ia.breadcrumb,n)},l),y.createElement("ol",{className:Ia.breadcrumbList,role:"list"},y.Children.map(t,(s,u)=>{const c=u>0;return y.isValidElement(s)?y.cloneElement(s,{showDivider:c}):s})))};Dl.displayName="Breadcrumb";const Dr=e=>{var{children:t=null,className:n="",to:r=void 0,isActive:a=!1,isDropdown:i=!1,showDivider:o,target:l=void 0,component:s="a",render:u=void 0}=e,c=Q(e,["children","className","to","isActive","isDropdown","showDivider","target","component","render"]);const f=s,d=a?"page":void 0,h=D(Ia.breadcrumbLink,a&&Ia.modifiers.current);return y.createElement("li",Object.assign({},c,{className:D(Ia.breadcrumbItem,n)}),o&&y.createElement("span",{className:Ia.breadcrumbItemDivider},y.createElement(Iu,null)),s==="button"&&y.createElement("button",{className:h,"aria-current":d,type:"button"},t),i&&y.createElement("span",{className:D(Ia.breadcrumbDropdown)},t),u&&u({className:h,ariaCurrent:d}),r&&!u&&y.createElement(f,{href:r,target:l,className:h,"aria-current":d},t),!r&&s!=="button"&&!i&&t)};Dr.displayName="BreadcrumbItem";const Oa={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"},ez={success:Kp,error:TT,warning:AT},uO=e=>{var{status:t,customIcon:n,className:r}=e,a=Q(e,["status","customIcon","className"]);const i=t&&ez[t];return y.createElement("span",Object.assign({className:D(Oa.formControlIcon,t&&Oa.modifiers.status,r)},a),n||y.createElement(i,null))};var Mb;(function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"})(Mb||(Mb={}));var cO;(function(e){e.default="default",e.plain="plain"})(cO||(cO={}));class xd extends y.Component{constructor(t){super(t),this.inputRef=y.createRef(),this.observer=()=>{},this.handleChange=n=>{this.props.onChange&&this.props.onChange(n,n.currentTarget.value)},this.handleResize=()=>{const n=this.props.innerRef||this.inputRef;n&&n.current&&O9(n.current,String(this.props.value))},this.restoreText=()=>{const n=this.props.innerRef||this.inputRef;n.current.value=String(this.props.value),n.current.scrollLeft=n.current.scrollWidth},this.onFocus=n=>{const{isLeftTruncated:r,isStartTruncated:a,onFocus:i}=this.props;(r||a)&&this.restoreText(),i&&i(n)},this.onBlur=n=>{const{isLeftTruncated:r,isStartTruncated:a,onBlur:i}=this.props;(r||a)&&this.handleResize(),i&&i(n)},this.sanitizeInputValue=n=>typeof n=="string"?n.replace(/\n/g," "):n,!t.id&&!t["aria-label"]&&!t["aria-labelledby"]&&console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:Lo(xd.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const t=this.props.innerRef||this.inputRef;this.observer=J2(t.current,this.handleResize,!0),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const t=this.props,{innerRef:n,className:r,type:a,value:i,placeholder:o,validated:l,onChange:s,onFocus:u,onBlur:c,isLeftTruncated:f,isStartTruncated:d,isExpanded:h,expandedProps:p,readOnly:g,readOnlyVariant:b,isRequired:m,isDisabled:v,customIcon:_,ouiaId:x,ouiaSafe:O}=t,S=Q(t,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),w=["success","error","warning"].includes(l),C=p?{"aria-expanded":p==null?void 0:p.isExpanded,"aria-controls":p==null?void 0:p.ariaControls,role:"combobox"}:{};return y.createElement("span",{className:D(Oa.formControl,b&&Oa.modifiers.readonly,b==="plain"&&Oa.modifiers.plain,v&&Oa.modifiers.disabled,(h||(p==null?void 0:p.isExpanded))&&Oa.modifiers.expanded,_&&Oa.modifiers.icon,w&&Oa.modifiers[l],r)},y.createElement("input",Object.assign({},S,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:a,value:this.sanitizeInputValue(i),"aria-invalid":S["aria-invalid"]?S["aria-invalid"]:l===Ob.error},C,{required:m,disabled:v,readOnly:!!b||g,ref:n||this.inputRef,placeholder:o},Ll(Ns.displayName,x!==void 0?x:this.state.ouiaStateId,O))),(_||w)&&y.createElement("span",{className:D(Oa.formControlUtilities)},_&&y.createElement(uO,{customIcon:_}),w&&y.createElement(uO,{status:l})))}}xd.displayName="TextInputBase";xd.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:Mb.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const Ns=y.forwardRef((e,t)=>y.createElement(xd,Object.assign({},e,{innerRef:t})));Ns.displayName="TextInput";const Le={breadcrumb:"pf-v5-c-breadcrumb",check:"pf-v5-c-check",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuBreadcrumb:"pf-v5-c-menu__breadcrumb",menuContent:"pf-v5-c-menu__content",menuFooter:"pf-v5-c-menu__footer",menuGroup:"pf-v5-c-menu__group",menuGroupTitle:"pf-v5-c-menu__group-title",menuHeader:"pf-v5-c-menu__header",menuItem:"pf-v5-c-menu__item",menuItemAction:"pf-v5-c-menu__item-action",menuItemActionIcon:"pf-v5-c-menu__item-action-icon",menuItemCheck:"pf-v5-c-menu__item-check",menuItemDescription:"pf-v5-c-menu__item-description",menuItemExternalIcon:"pf-v5-c-menu__item-external-icon",menuItemIcon:"pf-v5-c-menu__item-icon",menuItemMain:"pf-v5-c-menu__item-main",menuItemSelectIcon:"pf-v5-c-menu__item-select-icon",menuItemText:"pf-v5-c-menu__item-text",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuList:"pf-v5-c-menu__list",menuListItem:"pf-v5-c-menu__list-item",menuSearch:"pf-v5-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",ariaDisabled:"pf-m-aria-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-v5-theme-dark"},fO={badge:"pf-v5-c-badge",check:"pf-v5-c-check",divider:"pf-v5-c-divider",dropdown:"pf-v5-c-dropdown",dropdownGroup:"pf-v5-c-dropdown__group",dropdownGroupTitle:"pf-v5-c-dropdown__group-title",dropdownMenu:"pf-v5-c-dropdown__menu",dropdownMenuItem:"pf-v5-c-dropdown__menu-item",dropdownMenuItemDescription:"pf-v5-c-dropdown__menu-item-description",dropdownMenuItemIcon:"pf-v5-c-dropdown__menu-item-icon",dropdownMenuItemMain:"pf-v5-c-dropdown__menu-item-main",dropdownToggle:"pf-v5-c-dropdown__toggle",dropdownToggleButton:"pf-v5-c-dropdown__toggle-button",dropdownToggleCheck:"pf-v5-c-dropdown__toggle-check",dropdownToggleIcon:"pf-v5-c-dropdown__toggle-icon",dropdownToggleImage:"pf-v5-c-dropdown__toggle-image",dropdownToggleProgress:"pf-v5-c-dropdown__toggle-progress",dropdownToggleText:"pf-v5-c-dropdown__toggle-text",menu:"pf-v5-c-menu",modifiers:{fullHeight:"pf-m-full-height",expanded:"pf-m-expanded",action:"pf-m-action",disabled:"pf-m-disabled",plain:"pf-m-plain",text:"pf-m-text",splitButton:"pf-m-split-button",primary:"pf-m-primary",inProgress:"pf-m-in-progress",active:"pf-m-active",secondary:"pf-m-secondary",top:"pf-m-top",static:"pf-m-static",alignRight:"pf-m-align-right",alignLeft:"pf-m-align-left",alignRightOnSm:"pf-m-align-right-on-sm",alignLeftOnSm:"pf-m-align-left-on-sm",alignRightOnMd:"pf-m-align-right-on-md",alignLeftOnMd:"pf-m-align-left-on-md",alignRightOnLg:"pf-m-align-right-on-lg",alignLeftOnLg:"pf-m-align-left-on-lg",alignRightOnXl:"pf-m-align-right-on-xl",alignLeftOnXl:"pf-m-align-left-on-xl",alignRightOn_2xl:"pf-m-align-right-on-2xl",alignLeftOn_2xl:"pf-m-align-left-on-2xl",ariaDisabled:"pf-m-aria-disabled",icon:"pf-m-icon",description:"pf-m-description"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},Cl=y.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"}),MT=y.createContext({itemId:null,isDisabled:!1});class Lg extends y.Component{constructor(t){super(t),this.menuRef=y.createRef(),this.activeMenu=null,this.state={ouiaStateId:Lo(Pf.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(`.${Le.menu}`)&&!Array.from(r.getElementsByClassName(Le.menu)).includes(n.target.closest(`.${Le.menu}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const a=r.querySelector("#"+this.props.activeMenu)||r||null,i=a.getElementsByTagName("UL");if(i.length===0)return;const o=Array.from(i[0].children);if(!this.state.currentDrilldownMenuId||a.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:a.id});else return;const l=o.filter(s=>!(s.classList.contains("pf-m-disabled")||s.classList.contains(Le.divider)))[0].firstChild;l.focus(),l.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,a=document.activeElement;if(n.target.closest(`.${Le.menu}`)!==this.activeMenu&&!n.target.classList.contains(Ia.breadcrumbLink)&&(this.activeMenu=n.target.closest(`.${Le.menu}`),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const i=this.activeMenu,o=n.key,l=a.classList.contains(Ia.breadcrumbLink)||a.classList.contains(fO.dropdownToggle);if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(a.closest("li").classList.contains("pf-m-current-path")&&i.parentElement.tagName==="LI")a.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(a.nextElementSibling&&a.nextElementSibling.classList.contains(Le.menu)){const u=Array.from(a.nextElementSibling.getElementsByTagName("UL")[0].children).filter(c=>!(c.classList.contains("pf-m-disabled")||c.classList.contains(Le.divider)));a.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(Le.divider))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains(Le.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}),Oo&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Oo&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{id:n,children:r,className:a,onSelect:i,selected:o=null,onActionClick:l,ouiaId:s,ouiaSafe:u,containsFlyout:c,isNavFlyout:f,containsDrilldown:d,isMenuDrilledIn:h,isPlain:p,isScrollable:g,drilldownItemPath:b,drilledInMenus:m,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,parentMenu:O=null,activeItemId:S=null,innerRef:w,isRootMenu:C,activeMenu:A,role:I}=t,P=Q(t,["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"]),T=h||m&&m.includes(n)||!1;return y.createElement(Cl.Provider,{value:{menuId:n,parentMenu:O||n,onSelect:i,onActionClick:l,activeItemId:S,selected:o,drilledInMenus:m,drilldownItemPath:b,onDrillIn:v,onDrillOut:_,onGetMenuHeight:x,flyoutRef:this.state.flyoutRef,setFlyoutRef:E=>this.setState({flyoutRef:E}),disableHover:this.state.disableHover,role:I}},C&&y.createElement(Q2,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:E=>document.activeElement.closest("li")===E||document.activeElement.parentElement===E||document.activeElement.closest(`.${Le.menuSearch}`)===E||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===E,getFocusableElement:E=>{var L,N;return(E==null?void 0:E.tagName)==="DIV"&&E.querySelector("input")||((L=E.firstChild)===null||L===void 0?void 0:L.tagName)==="LABEL"&&E.querySelector("input")||((N=E.firstChild)===null||N===void 0?void 0:N.tagName)==="DIV"&&E.querySelector("a, button, input")||E.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(Ia.breadcrumbLink)||document.activeElement.classList.contains(fO.dropdownToggle)||document.activeElement.tagName==="INPUT"),noEnterHandling:!0,noSpaceHandling:!0}),y.createElement("div",Object.assign({id:n,className:D(Le.menu,p&&Le.modifiers.plain,g&&Le.modifiers.scrollable,c&&Le.modifiers.flyout,f&&Le.modifiers.nav,d&&Le.modifiers.drilldown,T&&Le.modifiers.drilledIn,a),ref:this.menuRef},Ll(Pf.displayName,s!==void 0?s:this.state.ouiaStateId,u),P),r))}}Lg.displayName="Menu";Lg.contextType=Cl;Lg.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const Pf=y.forwardRef((e,t)=>y.createElement(Lg,Object.assign({},e,{innerRef:t})));Pf.displayName="Menu";const tz={name:"--pf-v5-c-menu__content--Height",value:"auto",var:"var(--pf-v5-c-menu__content--Height)"},nz={name:"--pf-v5-c-menu__content--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-menu__content--MaxHeight)"},e_=y.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:a,maxMenuHeight:i}=e,o=Q(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=y.createRef(),s=(u,c,f)=>{if(u){let d=u.clientHeight,h=null,p=u.closest(`.${Le.menuList}`);for(;p!==null&&p.nodeType===1;)p.classList.contains(Le.menuList)&&(h=p),p=p.parentElement;if(h){const g=getComputedStyle(h),b=parseFloat(g.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(g.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+b}f&&f(c,d),n&&n(d.toString())}return t||l};return y.createElement(Cl.Consumer,null,({menuId:u,onGetMenuHeight:c})=>y.createElement("div",Object.assign({},o,{className:D(Le.menuContent,e.className),ref:f=>s(f,u,c),style:Object.assign(Object.assign({},a&&{[tz.name]:a}),i&&{[nz.name]:i})}),r))});e_.displayName="MenuContent";const rz={name:"--pf-v5-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--top-offset)"},az={name:"--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--m-left--right-offset)"},iz={name:"--pf-v5-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-v5-c-menu--m-flyout__menu--left-offset)"},oz={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},lz=ht(oz),sz=lz,uz={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},t_=ht(uz),cz={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},fz=ht(cz),dz=fz,ti={check:"pf-v5-c-check",checkBody:"pf-v5-c-check__body",checkDescription:"pf-v5-c-check__description",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",checkLabelRequired:"pf-v5-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},IT=()=>{};class ur extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},this.state={ouiaStateId:Lo(ur.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,inputClassName:a,onChange:i,isLabelWrapped:o,isLabelBeforeButton:l,isValid:s,isDisabled:u,isRequired:c,isChecked:f,label:d,checked:h,defaultChecked:p,description:g,body:b,ouiaId:m,ouiaSafe:v,component:_}=t,x=Q(t,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);x.id||console.error("Checkbox:","id is required to make input accessible");const O={};([!0,!1].includes(h)||f===!0)&&(O.checked=h||f),i!==IT&&(O.checked=f),[!1,!0].includes(p)&&(O.defaultChecked=p);const S=y.createElement("input",Object.assign({},x,{className:D(ti.checkInput,a),type:"checkbox",onChange:this.handleChange,"aria-invalid":!s,"aria-label":n,disabled:u,required:c,ref:P=>P&&(P.indeterminate=f===null)},O,Ll(ur.displayName,m!==void 0?m:this.state.ouiaStateId,v))),w=o&&!_||_==="label",C=w?"span":"label",A=d?y.createElement(C,{className:D(ti.checkLabel,u&&ti.modifiers.disabled),htmlFor:w?void 0:x.id},d,c&&y.createElement("span",{className:D(ti.checkLabelRequired),"aria-hidden":"true"},vT)):null,I=_??(w?"label":"div");return O.checked=O.checked===null?!1:O.checked,y.createElement(I,{className:D(ti.check,!d&&ti.modifiers.standalone,r),htmlFor:w?x.id:void 0},l?y.createElement(y.Fragment,null,A,S):y.createElement(y.Fragment,null,S,A),g&&y.createElement("span",{className:D(ti.checkDescription)},g),b&&y.createElement("span",{className:D(ti.checkBody)},b))}}ur.displayName="Checkbox";ur.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:IT,ouiaSafe:!0};const hz={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},pz=ht(hz),n_=pz,mz=e=>{var{className:t="",icon:n,onClick:r,"aria-label":a,isFavorited:i=null,isDisabled:o,actionId:l,innerRef:s}=e,u=Q(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return y.createElement(Cl.Consumer,null,({onActionClick:c})=>y.createElement(MT.Consumer,null,({itemId:f,isDisabled:d})=>{const h=p=>{r&&r(p),c&&c(p,f,l)};return y.createElement("button",Object.assign({className:D(Le.menuItemAction,i!==null&&Le.modifiers.favorite,i&&Le.modifiers.favorited,t),"aria-label":a,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},u),y.createElement("span",{className:D(Le.menuItemActionIcon)},n==="favorites"||i!==null?y.createElement(n_,{"aria-hidden":!0}):n))}))},RT=y.forwardRef((e,t)=>y.createElement(mz,Object.assign({},e,{innerRef:t})));RT.displayName="MenuItemAction";const dO=y.createContext({direction:"right"}),gz=e=>{var{children:t,className:n,itemId:r=null,to:a,hasCheckbox:i=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:u=!1,flyoutMenu:c,direction:f,description:d=null,onClick:h=()=>{},component:p="button",isDisabled:g=!1,isAriaDisabled:b=!1,isExternalLink:m=!1,isSelected:v=null,isFocused:_,isDanger:x=!1,icon:O,actions:S,onShowFlyout:w,drilldownMenu:C,isOnPath:A,innerRef:I,id:P,"aria-label":T,tooltipProps:E,rel:L,target:N,download:U}=e,W=Q(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:$,parentMenu:F,onSelect:k,onActionClick:X,activeItemId:te,selected:R,drilldownItemPath:J,onDrillIn:ae,onDrillOut:ue,flyoutRef:ve,setFlyoutRef:ke,disableHover:q,role:Z}=y.useContext(Cl);let ie=a?"a":p;i&&!a&&(ie="label");const[K,Te]=y.useState(null),ye=y.useContext(dO),[Ae,Ce]=y.useState(ye.direction),Re=y.useRef(),Ge=Re===ve,_e=c!==void 0,re=ge=>{!Ge&&ge?ke(Re):Ge&&!ge&&ke(null),w&&ge&&w()};kb(()=>{if(_e&&Re.current&&Oo){const ge=Re.current.lastElementChild;if(ge&&ge.classList.contains(Le.menu)){const Pe=Re.current.getClientRects()[0],Ke=ge.getClientRects()[0];if(Pe&&Ke){const Bt=Pe.x-Ke.width,$e=window.innerWidth-Pe.x-Pe.width-Ke.width;let Ze=Ae;$e<0&&Ze!=="left"?(Ce("left"),Ze="left"):Bt<0&&Ze!=="right"&&(Ce("right"),Ze="right");let dt=0;Bt<0&&$e<0&&(dt=Ze==="right"?-$e:-Bt),Ze==="left"?(ge.classList.add(Le.modifiers.left),ge.style.setProperty(az.name,`-${dt}px`)):ge.style.setProperty(iz.name,`-${dt}px`);const Gt=window.innerHeight-Pe.y-Ke.height;window.innerHeight-Ke.height<0&&Gt<0||Gt<0&&ge.style.setProperty(rz.name,`${Gt}px`)}}}},[Ge,c]),y.useEffect(()=>{Ce(ye.direction)},[ye]),y.useEffect(()=>{if(K)if(Ge){const ge=K.nextElementSibling;Array.from(ge.getElementsByTagName("UL")[0].children).filter(Ke=>!(Ke.classList.contains("pf-m-disabled")||Ke.classList.contains(Le.divider)))[0].firstChild.focus()}else K.focus()},[Ge,K]);const oe=ge=>{const Pe=ge.key,Ke=ge.target,Bt=ge.type;(Pe===" "||Pe==="Enter"||Pe==="ArrowRight"||Bt==="click")&&(ge.stopPropagation(),ge.preventDefault(),Ge||(re(!0),Te(Ke))),(Pe==="Escape"||Pe==="ArrowLeft")&&Ge&&(ge.stopPropagation(),re(!1))},xe=(ge,Pe)=>{b||(Pe&&Pe(ge,r),h&&h(ge))},De=A&&A||J&&J.includes(r)||!1;let Je;f&&(f==="down"?Je=ge=>ae&&ae(ge,$,typeof C=="function"?C().props.id:C.props.id,r):Je=ge=>ue&&ue(ge,F,r));let z={};ie==="a"?z={href:a,"aria-disabled":g||b?!0:null,disabled:null,target:m?"_blank":N,rel:L,download:U}:ie==="button"&&(z={type:"button","aria-disabled":b?!0:null}),A?z["aria-expanded"]=!0:_e&&(z["aria-haspopup"]="menu",z["aria-expanded"]=Ge);const Y=()=>o!==null?o?"page":null:r!==null&&te!==null?r===te:null,he=()=>v!==null?v:R!==null&&r!==null?Array.isArray(R)&&R.includes(r)||r===R:!1,se=()=>{q||(_e?re(!0):ke(null))};y.useEffect(()=>{if(_&&Re.current){const ge=Re.current,Pe=ge.parentElement;if(Pe){const Ke=ge.offsetTop-Pe.offsetTopy.createElement(ie,Object.assign({id:P,tabIndex:-1,className:D(Le.menuItem,he()&&!i&&Le.modifiers.selected,n),"aria-current":Y()},!i&&{disabled:g,"aria-label":T},!i&&!c&&{role:pe?"option":"menuitem"},!i&&!c&&pe&&{"aria-selected":he()},{ref:I},!i&&{onClick:Pe=>{b?Pe.preventDefault():(xe(Pe,k),Je&&Je(Pe),c&&oe(Pe))}},i&&{htmlFor:ge},z),y.createElement("span",{className:D(Le.menuItemMain)},f==="up"&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(t_,{"aria-hidden":!0})),O&&y.createElement("span",{className:D(Le.menuItemIcon)},O),i&&y.createElement("span",{className:D(Le.menuItemCheck)},y.createElement(ur,{id:ge,component:"span",isChecked:v||!1,onChange:Pe=>xe(Pe,k),isDisabled:g,"aria-disabled":b})),y.createElement("span",{className:D(Le.menuItemText)},t),m&&y.createElement("span",{className:D(Le.menuItemExternalIcon)},y.createElement(sz,{"aria-hidden":!0})),(c||f==="down")&&y.createElement("span",{className:D(Le.menuItemToggleIcon)},y.createElement(Iu,{"aria-hidden":!0})),he()&&y.createElement("span",{className:D(Le.menuItemSelectIcon)},y.createElement(dz,{"aria-hidden":!0}))),d&&f!=="up"&&y.createElement("span",{className:D(Le.menuItemDescription)},y.createElement("span",null,d)))),Ge&&y.createElement(Cl.Provider,{value:{disableHover:q}},y.createElement(dO.Provider,{value:{direction:Ae}},c)),typeof C=="function"?C():C,y.createElement(MT.Provider,{value:{itemId:r,isDisabled:g}},S,l!==null&&y.createElement(RT,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:ge=>X(ge,r),tabIndex:-1,actionId:"fav"})));return y.createElement("li",Object.assign({className:D(Le.menuListItem,g&&Le.modifiers.disabled,b&&Le.modifiers.ariaDisabled,De&&Le.modifiers.currentPath,s&&Le.modifiers.load,u&&Le.modifiers.loading,_&&Le.modifiers.focus,x&&Le.modifiers.danger,n),onMouseOver:()=>{b||se()}},c&&!b&&{onKeyDown:oe},{ref:Re,role:i?"menuitem":"none"},i&&{"aria-label":T},W),E?y.createElement($i,Object.assign({},E),He):He)},r_=y.forwardRef((e,t)=>y.createElement(gz,Object.assign({},e,{innerRef:t})));r_.displayName="MenuItem";const a_=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1,"aria-label":a}=e,i=Q(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:o}=y.useContext(Cl);return y.createElement("ul",Object.assign({role:o},o==="listbox"&&{"aria-multiselectable":r},{className:D(Le.menuList,n),"aria-label":a},i),t)};a_.displayName="MenuList";const vz=e=>{var{children:t,className:n,onSelect:r,isOpen:a,selected:i,toggle:o,shouldFocusToggleOnSelect:l=!1,shouldFocusFirstItemOnOpen:s=!0,onOpenChange:u,onOpenChangeKeys:c=["Escape","Tab"],isPlain:f,innerRef:d,zIndex:h=9999,role:p="listbox",popperProps:g,menuHeight:b,maxMenuHeight:m,isScrollable:v}=e,_=Q(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable"]);const x=M.useRef(),O=M.useRef(),S=d||x,w=typeof o=="function"||typeof o!="function"&&!o.toggleRef?O:o==null?void 0:o.toggleRef;M.useEffect(()=>{const A=P=>{var T,E,L;a&&u&&(!((T=S.current)===null||T===void 0)&&T.contains(P.target)||!((E=w.current)===null||E===void 0)&&E.contains(P.target))&&c.includes(P.key)&&(P.preventDefault(),u(!1),(L=w.current)===null||L===void 0||L.focus())},I=P=>{var T,E,L;a&&s&&(!((T=w.current)===null||T===void 0)&&T.contains(P.target))&&setTimeout(()=>{var N;const U=(N=S==null?void 0:S.current)===null||N===void 0?void 0:N.querySelector("li button:not(:disabled),li input:not(:disabled)");U&&U.focus()},0),a&&u&&!(!((E=w==null?void 0:w.current)===null||E===void 0)&&E.contains(P.target))&&a&&!(!((L=S.current)===null||L===void 0)&&L.contains(P.target))&&u(!1)};return window.addEventListener("keydown",A),window.addEventListener("click",I),()=>{window.removeEventListener("keydown",A),window.removeEventListener("click",I)}},[a,S,w,u,c]);const C=M.createElement(Pf,Object.assign({role:p,className:D(n),ref:S,onSelect:(A,I)=>{r&&r(A,I),l&&w.current.focus()},isPlain:f,selected:i,isScrollable:v??(b!==void 0||m!==void 0)},Ll(Tf.displayName,_.ouiaId!==void 0?_.ouiaId:Lo(Tf.displayName),_.ouiaSafe!==void 0?_.ouiaSafe:!0),_),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof o=="function"?o(w):o.toggleNode,triggerRef:w,popper:C,popperRef:S,isVisible:a,zIndex:h},g))},Tf=M.forwardRef((e,t)=>M.createElement(vz,Object.assign({innerRef:t},e)));Tf.displayName="Select";const i_=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,a=Q(e,["children","className","isAriaMultiselectable"]);return M.createElement(a_,Object.assign({isAriaMultiselectable:r,className:D(n)},a),t)};i_.displayName="SelectList";const yz=e=>{var{children:t,className:n,innerRef:r,value:a}=e,i=Q(e,["children","className","innerRef","value"]);return M.createElement(r_,Object.assign({itemId:a,ref:r,className:D(n)},i),t)},o_=M.forwardRef((e,t)=>M.createElement(yz,Object.assign({},e,{innerRef:t})));o_.displayName="SelectOption";const It={check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",menuToggle:"pf-v5-c-menu-toggle",menuToggleButton:"pf-v5-c-menu-toggle__button",menuToggleControls:"pf-v5-c-menu-toggle__controls",menuToggleCount:"pf-v5-c-menu-toggle__count",menuToggleIcon:"pf-v5-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v5-c-menu-toggle__status-icon",menuToggleText:"pf-v5-c-menu-toggle__text",menuToggleToggleIcon:"pf-v5-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",expanded:"pf-m-expanded",plain:"pf-m-plain",text:"pf-m-text",fullHeight:"pf-m-full-height",disabled:"pf-m-disabled",typeahead:"pf-m-typeahead",splitButton:"pf-m-split-button",action:"pf-m-action",active:"pf-m-active",fullWidth:"pf-m-full-width",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger"},textInputGroup:"pf-v5-c-text-input-group",themeDark:"pf-v5-theme-dark"},bz={name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0},_z=ht(bz),$T=_z;var Yc;(function(e){e.success="success",e.danger="danger",e.warning="warning"})(Yc||(Yc={}));class LT extends y.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Lo(mu.displayName,this.props.variant)}}render(){const t=this.props,{children:n,className:r,icon:a,badge:i,isExpanded:o,isDisabled:l,isFullHeight:s,isFullWidth:u,splitButtonOptions:c,variant:f,status:d,statusIcon:h,innerRef:p,onClick:g,"aria-label":b,ouiaId:m,ouiaSafe:v}=t,_=Q(t,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","splitButtonOptions","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe"]),x=f==="plain",O=f==="plainText",S=f==="typeahead",w=Ll(mu.displayName,m??this.state.ouiaStateId,v);let C=h;if(!h)switch(d){case Yc.success:C=y.createElement(Kp,{"aria-hidden":"true"});break;case Yc.warning:C=y.createElement(AT,{"aria-hidden":"true"});break;case Yc.danger:C=y.createElement(TT,{"aria-hidden":"true"});break}const A=y.createElement("span",{className:D(It.menuToggleControls)},d!==void 0&&y.createElement("span",{className:D(It.menuToggleStatusIcon)},C),y.createElement("span",{className:D(It.menuToggleToggleIcon)},y.createElement($T,{"aria-hidden":!0}))),I=y.createElement(y.Fragment,null,a&&y.createElement("span",{className:D(It.menuToggleIcon)},a),S?n:y.createElement("span",{className:D(It.menuToggleText)},n),y.isValidElement(i)&&y.createElement("span",{className:D(It.menuToggleCount)},i),S?y.createElement("button",Object.assign({type:"button",className:D(It.menuToggleButton),"aria-expanded":o,onClick:g,"aria-label":b||"Menu toggle",tabIndex:-1},w),A):A),P=D(It.menuToggle,o&&It.modifiers.expanded,f==="primary"&&It.modifiers.primary,f==="secondary"&&It.modifiers.secondary,d&&It.modifiers[d],(x||O)&&It.modifiers.plain,O&&It.modifiers.text,s&&It.modifiers.fullHeight,u&&It.modifiers.fullWidth,l&&It.modifiers.disabled,r),T=Object.assign(Object.assign({children:x?n:I},l&&{disabled:!0}),_);return S?y.createElement("div",Object.assign({ref:p,className:D(P,It.modifiers.typeahead)},T)):c?y.createElement("div",{ref:p,className:D(P,It.modifiers.splitButton,(c==null?void 0:c.variant)==="action"&&It.modifiers.action)},c==null?void 0:c.items,y.createElement("button",Object.assign({className:D(It.menuToggleButton,n&&It.modifiers.text),type:"button","aria-expanded":o,"aria-label":b,disabled:l,onClick:g},_,w),n&&y.createElement("span",{className:D(It.menuToggleText)},n),A)):y.createElement("button",Object.assign({className:D(P),type:"button","aria-label":b,"aria-expanded":o,ref:p,disabled:l,onClick:g},T,w))}}LT.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,ouiaSafe:!0};const mu=y.forwardRef((e,t)=>y.createElement(LT,Object.assign({innerRef:t},e)));mu.displayName="MenuToggle";const ss={inputGroup:"pf-v5-c-input-group",inputGroupItem:"pf-v5-c-input-group__item",inputGroupText:"pf-v5-c-input-group__text",modifiers:{box:"pf-m-box",plain:"pf-m-plain",disabled:"pf-m-disabled",fill:"pf-m-fill"},themeDark:"pf-v5-theme-dark"},jT=e=>{var{className:t,children:n,innerRef:r}=e,a=Q(e,["className","children","innerRef"]);const i=y.useRef(null),o=r||i;return y.createElement("div",Object.assign({ref:o,className:D(ss.inputGroup,t)},a),n)};jT.displayName="InputGroupBase";const Qc=y.forwardRef((e,t)=>y.createElement(jT,Object.assign({innerRef:t},e)));Qc.displayName="InputGroup";const Ea=e=>{var{className:t,children:n,isFill:r=!1,isBox:a=!1,isPlain:i,isDisabled:o}=e,l=Q(e,["className","children","isFill","isBox","isPlain","isDisabled"]);return y.createElement("div",Object.assign({className:D(ss.inputGroupItem,r&&ss.modifiers.fill,a&&ss.modifiers.box,i&&ss.modifiers.plain,o&&ss.modifiers.disabled,t)},l),n)};Ea.displayName="InputGroupItem";const Rt={calendarMonth:"pf-v5-c-calendar-month",calendarMonthCalendar:"pf-v5-c-calendar-month__calendar",calendarMonthDate:"pf-v5-c-calendar-month__date",calendarMonthDatesCell:"pf-v5-c-calendar-month__dates-cell",calendarMonthDatesRow:"pf-v5-c-calendar-month__dates-row",calendarMonthDay:"pf-v5-c-calendar-month__day",calendarMonthDays:"pf-v5-c-calendar-month__days",calendarMonthHeader:"pf-v5-c-calendar-month__header",calendarMonthHeaderMonth:"pf-v5-c-calendar-month__header-month",calendarMonthHeaderNavControl:"pf-v5-c-calendar-month__header-nav-control",calendarMonthHeaderYear:"pf-v5-c-calendar-month__header-year",dirRtl:"pf-v5-m-dir-rtl",modifiers:{prevMonth:"pf-m-prev-month",nextMonth:"pf-m-next-month",current:"pf-m-current",inRange:"pf-m-in-range",startRange:"pf-m-start-range",endRange:"pf-m-end-range",adjacentMonth:"pf-m-adjacent-month",selected:"pf-m-selected",disabled:"pf-m-disabled",hover:"pf-m-hover",focus:"pf-m-focus"},themeDark:"pf-v5-theme-dark"};var hO;(function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"})(hO||(hO={}));const xz=(e,t,n,r)=>{const a=new Date(e,t),i=new Date(a);i.setDate(i.getDate()-i.getDay()+n);const o=[];i.getMonth()===a.getMonth()&&i.getDate()!==1&&i.setDate(i.getDate()-7);for(let l=0;l<6;l++){const s=[];for(let u=0;u<7;u++){const c=new Date(i);s.push({date:c,isValid:r.every(f=>f(c))}),i.setDate(i.getDate()+1)}if(o.push(s),i.getMonth()!==a.getMonth())break}return o},ns=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),Pv=new Date,DT=e=>{var{date:t,locale:n=void 0,monthFormat:r=re=>re.toLocaleDateString(n,{month:"long"}),weekdayFormat:a=re=>re.toLocaleDateString(n,{weekday:"narrow"}),longWeekdayFormat:i=re=>re.toLocaleDateString(n,{weekday:"long"}),dayFormat:o=re=>re.getDate(),weekStart:l=0,onChange:s=()=>{},validators:u=[()=>!0],className:c,onSelectToggle:f=()=>{},onMonthChange:d=()=>{},rangeStart:h,prevMonthAriaLabel:p="Previous month",nextMonthAriaLabel:g="Next month",yearInputAriaLabel:b="Select year",cellAriaLabel:m,isDateFocused:v=!1,inlineProps:_}=e,x=Q(e,["date","locale","monthFormat","weekdayFormat","longWeekdayFormat","dayFormat","weekStart","onChange","validators","className","onSelectToggle","onMonthChange","rangeStart","prevMonthAriaLabel","nextMonthAriaLabel","yearInputAriaLabel","cellAriaLabel","isDateFocused","inlineProps"]);const O=[0,1,2,3,4,5,6,7,8,9,10,11].map(re=>new Date(1990,re)).map(r),[S,w]=M.useState(!1),A=Sa(t)?t:Sa(h)?h:Pv,[I,P]=M.useState(A),T=re=>re.getFullYear(),E=T(I),[L,N]=M.useState(E.toString()),[U,W]=M.useState(void 0),$=M.useRef(),[F]=M.useState(H2("hidden-month-span")),[k,X]=M.useState(!1),te=re=>u.every(oe=>oe(re)),R=te(I);y.useEffect(()=>{Sa(t)&&!ns(I,t)?P(t):t||P(Pv)},[t]),y.useEffect(()=>{(k||v)&&R&&$.current&&$.current.focus()},[I,v,R,$]);const J=(re,oe)=>{P(oe),X(!1),d(re,oe),N(T(oe).toString())},ae=re=>{const oe=new Date(I);re.key==="ArrowUp"?oe.setDate(oe.getDate()-7):re.key==="ArrowRight"?oe.setDate(oe.getDate()+1):re.key==="ArrowDown"?oe.setDate(oe.getDate()+7):re.key==="ArrowLeft"&&oe.setDate(oe.getDate()-1),oe.getTime()!==I.getTime()&&te(oe)&&(re.preventDefault(),P(oe),X(!0))},ue=re=>ve(I.getMonth(),re),ve=(re,oe)=>new Date(oe??I.getFullYear(),re,1),ke=1900,q=2100,Z=(re,oe)=>{if(/^\d{0,4}$/.test(oe)&&(N(oe),oe.length===4)){const xe=Number(oe);if(xe>=ke&&xe<=q){const De=ue(xe);P(De),X(!1),re.target.focus(),d(re,De)}else N(E.toString())}},ie=re=>{let oe=I.getMonth()+re,xe=I.getFullYear();return oe===-1?(oe=11,xe--):oe===12&&(oe=0,xe++),ve(oe,xe)},K=ie(-1),Te=ie(1),ye=I.getFullYear(),Ae=I.getMonth(),Ce=M.useMemo(()=>xz(ye,Ae,l,u),[ye,Ae,l,u]);if(!R){const re=Ce.reduce((oe,xe)=>[...oe,...xe],[]).filter(({date:oe,isValid:xe})=>xe&&oe.getMonth()===Ae).map(({date:oe})=>({date:oe,days:Math.abs(I.getTime()-oe.getTime())})).sort((oe,xe)=>oe.days-xe.days).map(({date:oe})=>oe)[0];re&&P(re)}const Re=U&&te(U),Ge=r(I),_e=M.createElement("div",Object.assign({className:D(Rt.calendarMonth,c)},x),M.createElement("div",{className:Rt.calendarMonthHeader},M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.prevMonth)},M.createElement(gt,{variant:"plain","aria-label":p,onClick:re=>J(re,K)},M.createElement(t_,{"aria-hidden":!0}))),M.createElement(Qc,null,M.createElement(Ea,{isFill:!0},M.createElement("div",{className:Rt.calendarMonthHeaderMonth},M.createElement("span",{id:F,hidden:!0},"Month"),M.createElement(Tf,{toggle:re=>M.createElement(mu,{ref:re,onClick:()=>w(!S),isExpanded:S,style:{width:"140px"}},Ge),"aria-labelledby":F,isOpen:S,onOpenChange:re=>{w(re),f(re)},onSelect:(re,oe)=>{setTimeout(()=>{w(!1),f(!1);const xe=ve(Number(oe));P(xe),X(!1),d(re,xe)},0)},selected:Ge},M.createElement(i_,null,O.map((re,oe)=>M.createElement(o_,{key:oe,value:oe,isSelected:re===Ge},re)))))),M.createElement(Ea,null,M.createElement("div",{className:Rt.calendarMonthHeaderYear},M.createElement(Ns,{"aria-label":b,type:"number",value:L,onChange:Z})))),M.createElement("div",{className:D(Rt.calendarMonthHeaderNavControl,Rt.modifiers.nextMonth)},M.createElement(gt,{variant:"plain","aria-label":g,onClick:re=>J(re,Te)},M.createElement(Iu,{"aria-hidden":!0})))),M.createElement("table",{className:Rt.calendarMonthCalendar,onMouseLeave:()=>W(void 0)},M.createElement("thead",{className:Rt.calendarMonthDays},M.createElement("tr",null,Ce[0].map(({date:re},oe)=>M.createElement("th",{key:oe,className:Rt.calendarMonthDay,scope:"col"},M.createElement("span",{className:"pf-v5-screen-reader"},i(re)),M.createElement("span",{"aria-hidden":!0},a(re)))))),M.createElement("tbody",{onKeyDown:ae},Ce.map((re,oe)=>M.createElement("tr",{key:oe,className:Rt.calendarMonthDatesRow},re.map(({date:xe,isValid:De},Je)=>{const z=o(xe),Y=ns(xe,Pv),he=Sa(t)&&ns(xe,t),se=ns(xe,I),pe=xe.getMonth()!==I.getMonth(),He=Sa(h)&&ns(xe,h);let ge=!1,Pe=!1;if(Sa(h)){let Ke;Sa(t)&&(Ke=t),Re&&(!Sa(t)||U>t)&&(Ke=U),Ke&&(ge=xe>=h&&xe<=Ke,Pe=ns(xe,Ke))}return M.createElement("td",{key:Je,className:D(Rt.calendarMonthDatesCell,pe&&Rt.modifiers.adjacentMonth,Y&&Rt.modifiers.current,(he||He)&&Rt.modifiers.selected,!De&&!(ge||He||Pe||he)&&Rt.modifiers.disabled,ge&&Rt.modifiers.inRange,He&&Rt.modifiers.startRange,Pe&&Rt.modifiers.endRange)},M.createElement("button",Object.assign({className:D(Rt.calendarMonthDate,Pe&&Rt.modifiers.hover,!De&&Rt.modifiers.disabled),type:"button",onClick:Ke=>s(Ke,xe),onMouseOver:()=>W(xe),tabIndex:se?0:-1,disabled:!De,"aria-label":m?m(xe):`${o(xe)} ${r(xe)} ${T(xe)}`},se&&{ref:$}),z))}))))));if(_!==void 0){const re=_.component?_.component:"article";return M.createElement(re,Object.assign({},_.ariaLabelledby&&{"aria-labelledby":_.ariaLabelledby}),_.title,_e)}return _e};DT.displayName="CalendarMonth";const it={card:"pf-v5-c-card",cardActions:"pf-v5-c-card__actions",cardBody:"pf-v5-c-card__body",cardExpandableContent:"pf-v5-c-card__expandable-content",cardFooter:"pf-v5-c-card__footer",cardHeader:"pf-v5-c-card__header",cardHeaderMain:"pf-v5-c-card__header-main",cardHeaderToggle:"pf-v5-c-card__header-toggle",cardHeaderToggleIcon:"pf-v5-c-card__header-toggle-icon",cardSelectableActions:"pf-v5-c-card__selectable-actions",cardSrInput:"pf-v5-c-card__sr-input",cardTitle:"pf-v5-c-card__title",cardTitleText:"pf-v5-c-card__title-text",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",checkLabel:"pf-v5-c-check__label",dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",modifiers:{selectable:"pf-m-selectable",clickable:"pf-m-clickable",selected:"pf-m-selected",current:"pf-m-current",disabled:"pf-m-disabled",hoverableRaised:"pf-m-hoverable-raised",selectableRaised:"pf-m-selectable-raised",nonSelectableRaised:"pf-m-non-selectable-raised",selectedRaised:"pf-m-selected-raised",compact:"pf-m-compact",displayLg:"pf-m-display-lg",flat:"pf-m-flat",plain:"pf-m-plain",rounded:"pf-m-rounded",expanded:"pf-m-expanded",fullHeight:"pf-m-full-height",toggleRight:"pf-m-toggle-right",noOffset:"pf-m-no-offset",noFill:"pf-m-no-fill"},radio:"pf-v5-c-radio",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label",themeDark:"pf-v5-theme-dark"},jg=y.createContext({cardId:"",registerTitleId:()=>{},isExpanded:!1,isClickable:!1,isSelectable:!1,isSelected:!1,isClicked:!1,isDisabled:!1}),ra=e=>{var{children:t,id:n="",className:r,component:a="div",isCompact:i=!1,isSelectable:o=!1,isClickable:l=!1,isDisabled:s=!1,isSelectableRaised:u=!1,isSelected:c=!1,isClicked:f=!1,isDisabledRaised:d=!1,isFlat:h=!1,isExpanded:p=!1,isRounded:g=!1,isLarge:b=!1,isFullHeight:m=!1,isPlain:v=!1,ouiaId:_,ouiaSafe:x=!0,hasSelectableInput:O=!1,selectableInputAriaLabel:S,onSelectableInputChange:w=()=>{}}=e,C=Q(e,["children","id","className","component","isCompact","isSelectable","isClickable","isDisabled","isSelectableRaised","isSelected","isClicked","isDisabledRaised","isFlat","isExpanded","isRounded","isLarge","isFullHeight","isPlain","ouiaId","ouiaSafe","hasSelectableInput","selectableInputAriaLabel","onSelectableInputChange"]);const A=a,I=Ii(ra.displayName,_,x),[P,T]=y.useState(""),[E,L]=y.useState();i&&b&&(console.warn("Card: Cannot use isCompact with isLarge. Defaulting to isCompact"),b=!1);const N=()=>d?D(it.modifiers.nonSelectableRaised):u?D(it.modifiers.selectableRaised,c&&it.modifiers.selectedRaised):o&&l?D(it.modifiers.selectable,it.modifiers.clickable,(c||f)&&it.modifiers.current):o?D(it.modifiers.selectable,c&&it.modifiers.selected):l?D(it.modifiers.clickable,f&&it.modifiers.current):"",U=y.useRef(!1),W=$=>{T($),U.current=!!$};return y.useEffect(()=>{S?L({"aria-label":S}):P?L({"aria-labelledby":P}):O&&!U.current&&(L({}),console.warn("If no CardTitle component is passed as a child of Card the selectableInputAriaLabel prop must be passed"))},[O,S,P]),y.createElement(jg.Provider,{value:{cardId:n,registerTitleId:W,isExpanded:p,isClickable:l,isSelectable:o,isSelected:c,isClicked:f,isDisabled:s,hasSelectableInput:O}},O&&y.createElement("input",Object.assign({className:"pf-v5-screen-reader",id:`${n}-input`},E,{type:"checkbox",checked:c,onChange:$=>w($,n),disabled:d,tabIndex:-1})),y.createElement(A,Object.assign({id:n,className:D(it.card,i&&it.modifiers.compact,p&&it.modifiers.expanded,h&&it.modifiers.flat,g&&it.modifiers.rounded,b&&it.modifiers.displayLg,m&&it.modifiers.fullHeight,v&&it.modifiers.plain,N(),s&&it.modifiers.disabled,r),tabIndex:u?"0":void 0},C,I),t))};ra.displayName="Card";const Af=e=>{var{children:t,className:n,component:r="div",isFilled:a=!0}=e,i=Q(e,["children","className","component","isFilled"]);const o=r;return y.createElement(o,Object.assign({className:D(it.cardBody,!a&&it.modifiers.noFill,n)},i),t)};Af.displayName="CardBody";const NT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement(jg.Consumer,null,({isExpanded:a})=>a?y.createElement("div",Object.assign({className:D(it.cardExpandableContent,n)},r),t):null)};NT.displayName="CardExpandableContent";const FT=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(it.cardFooter,n)},a),t)};FT.displayName="CardFooter";const Fs=e=>{var{children:t,className:n,component:r="div"}=e,a=Q(e,["children","className","component"]);const{cardId:i,registerTitleId:o}=y.useContext(jg),l=r,s=i?`${i}-title`:"";return y.useEffect(()=>(o(s),()=>o("")),[o,s]),y.createElement("div",{className:D(it.cardTitle)},y.createElement(l,Object.assign({className:D(it.cardTitleText,n),id:s||void 0},a),t))};Fs.displayName="CardTitle";const zT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardHeaderMain,n)},r),t)};zT.displayName="CardHeaderMain";const BT=e=>{var{children:t,className:n,hasNoOffset:r=!1}=e,a=Q(e,["children","className","hasNoOffset"]);return y.createElement("div",Object.assign({className:D(it.cardActions,r&&it.modifiers.noOffset,n)},a),t)};BT.displayName="CardActions";const UT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(it.cardSelectableActions,n)},r),t)};UT.displayName="CardSelectableActions";const zo={modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"},radio:"pf-v5-c-radio",radioBody:"pf-v5-c-radio__body",radioDescription:"pf-v5-c-radio__description",radioInput:"pf-v5-c-radio__input",radioLabel:"pf-v5-c-radio__label"};class gu extends y.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n,n.currentTarget.checked)},!t.label&&!t["aria-label"]&&console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Lo(gu.displayName)}}render(){const t=this.props,{"aria-label":n,checked:r,className:a,inputClassName:i,defaultChecked:o,isLabelWrapped:l,isLabelBeforeButton:s,isChecked:u,isDisabled:c,isValid:f,label:d,onChange:h,description:p,body:g,ouiaId:b,ouiaSafe:m=!0,component:v}=t,_=Q(t,["aria-label","checked","className","inputClassName","defaultChecked","isLabelWrapped","isLabelBeforeButton","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Radio:","id is required to make input accessible");const x=y.createElement("input",Object.assign({},_,{className:D(zo.radioInput,i),type:"radio",onChange:this.handleChange,"aria-invalid":!f,disabled:c,checked:r||u},r===void 0&&{defaultChecked:o},!d&&{"aria-label":n},Ll(gu.displayName,b!==void 0?b:this.state.ouiaStateId,m))),O=l&&!v||v==="label",S=O?"span":"label",w=d?y.createElement(S,{className:D(zo.radioLabel,c&&zo.modifiers.disabled),htmlFor:O?void 0:_.id},d):null,C=v??(O?"label":"div");return y.createElement(C,{className:D(zo.radio,!d&&zo.modifiers.standalone,a),htmlFor:O?_.id:void 0},s?y.createElement(y.Fragment,null,w,x):y.createElement(y.Fragment,null,x,w),p&&y.createElement("span",{className:D(zo.radioDescription)},p),g&&y.createElement("span",{className:D(zo.radioBody)},g))}}gu.displayName="Radio";gu.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}};const HT=e=>{var{children:t,className:n,actions:r,selectableActions:a,id:i,onExpand:o,toggleButtonProps:l,isToggleRightAligned:s}=e,u=Q(e,["children","className","actions","selectableActions","id","onExpand","toggleButtonProps","isToggleRightAligned"]);return y.createElement(jg.Consumer,null,({cardId:c,isClickable:f,isSelectable:d,isSelected:h,isClicked:p,isDisabled:g,hasSelectableInput:b})=>{const m=y.createElement("div",{className:D(it.cardHeaderToggle)},y.createElement(gt,Object.assign({variant:"plain",type:"button",onClick:S=>{o(S,c)}},l),y.createElement("span",{className:D(it.cardHeaderToggleIcon)},y.createElement(Iu,{"aria-hidden":"true"})))),v=f&&!d||d&&!f,_=b;r!=null&&r.actions&&v&&!_&&console.warn(`${f?"Clickable":"Selectable"} only cards should not contain any other actions. If you wish to include additional actions, use a clickable and selectable card.`);const x=S=>{a!=null&&a.onClickAction?a.onClickAction(S):a!=null&&a.to&&window.open(a.to,a.isExternalLink?"_blank":"_self")},O=()=>{var S;const w={className:"pf-m-standalone",inputClassName:f&&!d&&"pf-v5-screen-reader",label:y.createElement(y.Fragment,null),"aria-label":a.selectableActionAriaLabel,"aria-labelledby":a.selectableActionAriaLabelledby,id:a.selectableActionId,name:a.name,isDisabled:g},C=(S=a.isChecked)!==null&&S!==void 0?S:h;return f&&!d?Object.assign(Object.assign({},w),{onClick:x,isChecked:p}):d?Object.assign(Object.assign({},w),{onChange:a.onChange,isChecked:C}):w};return y.createElement("div",Object.assign({className:D(it.cardHeader,s&&it.modifiers.toggleRight,n),id:i},u),o&&!s&&m,(r||a&&(f||d))&&y.createElement(BT,{className:r==null?void 0:r.className,hasNoOffset:(r==null?void 0:r.hasNoOffset)||(a==null?void 0:a.hasNoOffset)},r==null?void 0:r.actions,a&&(f||d)&&y.createElement(UT,{className:a==null?void 0:a.className},(a==null?void 0:a.variant)==="single"||f&&!d?y.createElement(gu,Object.assign({},O())):y.createElement(ur,Object.assign({},O())))),t&&y.createElement(zT,null,t),o&&s&&m)})};HT.displayName="CardHeader";const wz={name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0},Sz=ht(wz),Oz=Sz,ut={modifiers:{noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",custom:"pf-m-custom",info:"pf-m-info"},popover:"pf-v5-c-popover",popoverArrow:"pf-v5-c-popover__arrow",popoverBody:"pf-v5-c-popover__body",popoverClose:"pf-v5-c-popover__close",popoverContent:"pf-v5-c-popover__content",popoverFooter:"pf-v5-c-popover__footer",popoverHeader:"pf-v5-c-popover__header",popoverTitle:"pf-v5-c-popover__title",popoverTitleIcon:"pf-v5-c-popover__title-icon",popoverTitleText:"pf-v5-c-popover__title-text",themeDark:"pf-v5-theme-dark"},Cz=y.createContext({}),WT=e=>{var{className:t=null,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ut.popoverContent,t)},r),n)};WT.displayName="PopoverContent";const VT=e=>{var{children:t,id:n,className:r}=e,a=Q(e,["children","id","className"]);return y.createElement("div",Object.assign({className:D(ut.popoverBody,r),id:n},a),t)};VT.displayName="PopoverBody";const qT=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(ut.popoverTitleIcon,n)},r),t)};qT.displayName="PopoverHeaderIcon";const GT=e=>{var{children:t,className:n,headingLevel:r}=e,a=Q(e,["children","className","headingLevel"]);const i=r;return y.createElement(i,Object.assign({className:D(ut.popoverTitleText,n)},a),t)};GT.displayName="PopoverHeaderText";const KT=e=>{var{children:t,icon:n,className:r,titleHeadingLevel:a="h6",alertSeverityVariant:i,id:o,alertSeverityScreenReaderText:l}=e,s=Q(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return y.createElement("header",Object.assign({className:D(ut.popoverHeader,r)},s),y.createElement("div",{className:D(ut.popoverTitle),id:o},n&&y.createElement(qT,null,n),y.createElement(GT,{headingLevel:a},i&&l&&y.createElement("span",{className:"pf-v5-screen-reader"},l),t)))};KT.displayName="PopoverHeader";const XT=e=>{var{children:t,className:n=""}=e,r=Q(e,["children","className"]);return y.createElement("footer",Object.assign({className:D(ut.popoverFooter,n)},r),t)};XT.displayName="PopoverFooter";const YT=e=>{var{onClose:t=()=>{}}=e,n=Q(e,["onClose"]);return y.createElement("div",{className:D(ut.popoverClose)},y.createElement(gt,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),y.createElement(Ab,null)))};YT.displayName="PopoverCloseButton";const QT=e=>{var{className:t=""}=e,n=Q(e,["className"]);return y.createElement("div",Object.assign({className:D(ut.popoverArrow,t)},n))};QT.displayName="PopoverArrow";const Tv={name:"--pf-v5-c-popover--MaxWidth",value:"none",var:"var(--pf-v5-c-popover--MaxWidth)"},Av={name:"--pf-v5-c-popover--MinWidth",value:"auto",var:"var(--pf-v5-c-popover--MinWidth)"};var pO;(function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"})(pO||(pO={}));const Ez={custom:ut.modifiers.custom,info:ut.modifiers.info,success:ut.modifiers.success,warning:ut.modifiers.warning,danger:ut.modifiers.danger},l_=e=>{var{children:t,position:n="top",enableFlip:r=!0,className:a="",isVisible:i=null,shouldClose:o=()=>null,shouldOpen:l=()=>null,"aria-label":s="",bodyContent:u,headerContent:c=null,headerComponent:f="h6",headerIcon:d=null,alertSeverityVariant:h,alertSeverityScreenReaderText:p,footerContent:g=null,appendTo:b=()=>document.body,hideOnOutsideClick:m=!0,onHide:v=()=>null,onHidden:_=()=>null,onShow:x=()=>null,onShown:O=()=>null,onMount:S=()=>null,zIndex:w=9999,triggerAction:C="click",minWidth:A=Av&&Av.value,maxWidth:I=Tv&&Tv.value,closeBtnAriaLabel:P="Close",showClose:T=!0,distance:E=25,flipBehavior:L=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:N=300,id:U,withFocusTrap:W,triggerRef:$,hasNoPadding:F=!1,hasAutoWidth:k=!1,elementToFocus:X}=e,te=Q(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const R=U||H2(),J=i!==null,[ae,ue]=y.useState(!1),[ve,ke]=y.useState(!!W),q=y.useRef(null);y.useEffect(()=>{S()},[]),y.useEffect(()=>{J&&(i?Z(void 0,!0):ie())},[i,J]);const Z=(z,Y)=>{z&&x(z),ue(!0),W!==!1&&Y&&ke(!0)},ie=z=>{z&&v(z),ue(!1)},K={top:ut.modifiers.top,bottom:ut.modifiers.bottom,left:ut.modifiers.left,right:ut.modifiers.right,"top-start":ut.modifiers.topLeft,"top-end":ut.modifiers.topRight,"bottom-start":ut.modifiers.bottomLeft,"bottom-end":ut.modifiers.bottomRight,"left-start":ut.modifiers.leftTop,"left-end":ut.modifiers.leftBottom,"right-start":ut.modifiers.rightTop,"right-end":ut.modifiers.rightBottom},Te=A!==Av.value,ye=I!==Tv.value,Ae=z=>{z.key===Hp.Escape&&ae&&(J?o(z,ie):ie(z))},Ce=(z,Y,he)=>{if(m&&ae){const se=he&&he.contains(z.target),pe=Y&&Y.contains(z.target);if(se||pe)return;J?o(z,ie):ie(z)}},Re=z=>{J?ae?o(z,ie):l(z,Z):ae?ie(z):Z(z,!0)},Ge=()=>{ve&&ke(!1)},_e=z=>{J?l(z,Z):Z(z,!1)},re=z=>{J?o(z,ie):ie(z)},oe=z=>{J?l(z,Z):Z(z,!1)},xe=z=>{J?o(z,ie):ie(z)},De=z=>{z.stopPropagation(),J?o(z,ie):ie(z)},Je=y.createElement(U2,Object.assign({ref:q,active:ve,focusTrapOptions:{returnFocusOnDeactivate:W!==!1,clickOutsideDeactivates:!0,initialFocus:X||void 0,checkCanFocusTrap:z=>new Promise(Y=>{const he=setInterval(()=>{z.every(se=>getComputedStyle(se).visibility!=="hidden")&&(Y(),clearInterval(he))},10)}),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let z=null;return document&&document.activeElement&&(z=document.activeElement),z}},preventScrollOnDeactivate:!0,className:D(ut.popover,h&&Ez[h],F&&ut.modifiers.noPadding,k&&ut.modifiers.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":c?void 0:s,"aria-labelledby":c?`popover-${R}-header`:void 0,"aria-describedby":`popover-${R}-body`,onMouseDown:Ge,style:{minWidth:Te?A:null,maxWidth:ye?I:null}},te),y.createElement(QT,null),y.createElement(WT,null,T&&C==="click"&&y.createElement(YT,{onClose:De,"aria-label":P}),c&&y.createElement(KT,{id:`popover-${R}-header`,icon:d,alertSeverityVariant:h,alertSeverityScreenReaderText:p||`${h} alert:`,titleHeadingLevel:f},typeof c=="function"?c(ie):c),y.createElement(VT,{id:`popover-${R}-body`},typeof u=="function"?u(ie):u),g&&y.createElement(XT,{id:`popover-${R}-footer`},typeof g=="function"?g(ie):g)));return y.createElement(Cz.Provider,{value:{headerComponent:f}},y.createElement(jl,{trigger:t,triggerRef:$,popper:Je,popperRef:q,minWidth:A,appendTo:b,isVisible:ae,onMouseEnter:C==="hover"&&_e,onMouseLeave:C==="hover"&&re,onPopperMouseEnter:C==="hover"&&_e,onPopperMouseLeave:C==="hover"&&re,onFocus:C==="hover"&&oe,onBlur:C==="hover"&&xe,positionModifiers:K,distance:E,placement:n,onTriggerClick:C==="click"&&Re,onDocumentClick:Ce,onDocumentKeyDown:Ae,enableFlip:r,zIndex:w,flipBehavior:L,animationDuration:N,onHidden:_,onShown:O,onHide:()=>ke(!1)}))};l_.displayName="Popover";const Mv={divider:"pf-v5-c-divider",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",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};var Ib;(function(e){e.hr="hr",e.li="li",e.div="div"})(Ib||(Ib={}));const JT=e=>{var{className:t,component:n=Ib.hr,inset:r,orientation:a}=e,i=Q(e,["className","component","inset","orientation"]);const o=n;return y.createElement(o,Object.assign({className:D(Mv.divider,Ci(r,Mv),Ci(a,Mv),t)},n!=="hr"&&{role:"separator"},i))};JT.displayName="Divider";const kt={dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",drawerActions:"pf-v5-c-drawer__actions",drawerBody:"pf-v5-c-drawer__body",drawerClose:"pf-v5-c-drawer__close",drawerContent:"pf-v5-c-drawer__content",drawerHead:"pf-v5-c-drawer__head",drawerMain:"pf-v5-c-drawer__main",drawerPanel:"pf-v5-c-drawer__panel",drawerPanelMain:"pf-v5-c-drawer__panel-main",drawerSection:"pf-v5-c-drawer__section",drawerSplitter:"pf-v5-c-drawer__splitter",drawerSplitterHandle:"pf-v5-c-drawer__splitter-handle",modifiers:{panelBottom:"pf-m-panel-bottom",inline:"pf-m-inline",noBorder:"pf-m-no-border",resizable:"pf-m-resizable",static:"pf-m-static",panelLeft:"pf-m-panel-left",expanded:"pf-m-expanded",resizing:"pf-m-resizing",noBackground:"pf-m-no-background",light_200:"pf-m-light-200",noPadding:"pf-m-no-padding",padding:"pf-m-padding",vertical:"pf-m-vertical",width_25:"pf-m-width-25",width_33:"pf-m-width-33",width_50:"pf-m-width-50",width_66:"pf-m-width-66",width_75:"pf-m-width-75",width_100:"pf-m-width-100",width_25OnLg:"pf-m-width-25-on-lg",width_33OnLg:"pf-m-width-33-on-lg",width_50OnLg:"pf-m-width-50-on-lg",width_66OnLg:"pf-m-width-66-on-lg",width_75OnLg:"pf-m-width-75-on-lg",width_100OnLg:"pf-m-width-100-on-lg",width_25OnXl:"pf-m-width-25-on-xl",width_33OnXl:"pf-m-width-33-on-xl",width_50OnXl:"pf-m-width-50-on-xl",width_66OnXl:"pf-m-width-66-on-xl",width_75OnXl:"pf-m-width-75-on-xl",width_100OnXl:"pf-m-width-100-on-xl",width_25On_2xl:"pf-m-width-25-on-2xl",width_33On_2xl:"pf-m-width-33-on-2xl",width_50On_2xl:"pf-m-width-50-on-2xl",width_66On_2xl:"pf-m-width-66-on-2xl",width_75On_2xl:"pf-m-width-75-on-2xl",width_100On_2xl:"pf-m-width-100-on-2xl",inlineOnLg:"pf-m-inline-on-lg",staticOnLg:"pf-m-static-on-lg",inlineOnXl:"pf-m-inline-on-xl",staticOnXl:"pf-m-static-on-xl",inlineOn_2xl:"pf-m-inline-on-2xl",staticOn_2xl:"pf-m-static-on-2xl"},pageMain:"pf-v5-c-page__main",themeDark:"pf-v5-theme-dark"};var bo;(function(e){e.default="default",e.light200="light-200",e.noBackground="no-background"})(bo||(bo={}));const s_=y.createContext({isExpanded:!1,isStatic:!1,onExpand:()=>{},position:"end",drawerRef:null,drawerContentRef:null,isInline:!1}),ZT=e=>{var{className:t="",children:n,isExpanded:r=!1,isInline:a=!1,isStatic:i=!1,position:o="end",onExpand:l=()=>{}}=e,s=Q(e,["className","children","isExpanded","isInline","isStatic","position","onExpand"]);const u=y.useRef(),c=y.useRef();return y.createElement(s_.Provider,{value:{isExpanded:r,isStatic:i,onExpand:l,position:o,drawerRef:u,drawerContentRef:c,isInline:a}},y.createElement("div",Object.assign({className:D(kt.drawer,r&&kt.modifiers.expanded,a&&kt.modifiers.inline,i&&kt.modifiers.static,(o==="left"||o==="start")&&kt.modifiers.panelLeft,o==="bottom"&&kt.modifiers.panelBottom,t),ref:u},s),n))};ZT.displayName="Drawer";const eA=e=>{var{className:t="",children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(kt.drawerMain,t)},r),n)};eA.displayName="DrawerMain";const tA=e=>{var{className:t="",children:n,panelContent:r,colorVariant:a=bo.default}=e,i=Q(e,["className","children","panelContent","colorVariant"]);const{drawerContentRef:o}=y.useContext(s_);return y.createElement(eA,null,y.createElement("div",Object.assign({className:D(kt.drawerContent,a===bo.light200&&kt.modifiers.light_200,a===bo.noBackground&&kt.modifiers.noBackground,t),ref:o},i),n),r)};tA.displayName="DrawerContent";const nA=e=>{var{className:t="",children:n,hasPadding:r=!1}=e,a=Q(e,["className","children","hasPadding"]);return y.createElement("div",Object.assign({className:D(kt.drawerBody,r&&kt.modifiers.padding,t)},a),n)};nA.displayName="DrawerContentBody";const Iv={name:"--pf-v5-c-drawer__panel--md--FlexBasis",value:"50%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis)"},kz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--min",value:"1.5rem",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--min)"},Pz={name:"--pf-v5-c-drawer__panel--md--FlexBasis--max",value:"100%",var:"var(--pf-v5-c-drawer__panel--md--FlexBasis--max)"};let Wi=null,sc=0;const rA=e=>{var{className:t="",id:n,children:r,hasNoBorder:a=!1,isResizable:i=!1,onResize:o,minSize:l,defaultSize:s,maxSize:u,increment:c=5,resizeAriaLabel:f="Resize",widths:d,colorVariant:h=bo.default,focusTrap:p}=e,g=Q(e,["className","id","children","hasNoBorder","isResizable","onResize","minSize","defaultSize","maxSize","increment","resizeAriaLabel","widths","colorVariant","focusTrap"]);const b=y.useRef(),m=y.useRef(),[v,_]=y.useState(0),{position:x,isExpanded:O,isStatic:S,onExpand:w,drawerRef:C,drawerContentRef:A,isInline:I}=y.useContext(s_),P=S?!1:!O,[T,E]=y.useState(!P),[L,N]=y.useState(!1),U=y.useRef(null);let W=0,$,F,k,X,te=!0;S&&(p!=null&&p.enabled)&&console.warn("DrawerPanelContent: The focusTrap.enabled prop cannot be true if the Drawer's isStatic prop is true. This will cause a permanent focus trap."),y.useEffect(()=>{!S&&O&&E(O)},[S,O]);const R=()=>{let _e,re;const oe=Ds(b.current)==="rtl";I&&(x==="end"||x==="right")?oe?(_e=b.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=b.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):I&&(x==="start"||x==="left")?oe?(_e=m.current.getBoundingClientRect().left-b.current.getBoundingClientRect().right,re=C.current.getBoundingClientRect().left-C.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-b.current.getBoundingClientRect().left,re=C.current.getBoundingClientRect().right-C.current.getBoundingClientRect().left):x==="end"||x==="right"?oe?(_e=A.current.getBoundingClientRect().left-m.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=A.current.getBoundingClientRect().right-m.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="start"||x==="left"?oe?(_e=m.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right,re=A.current.getBoundingClientRect().left-A.current.getBoundingClientRect().right):(_e=m.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left,re=A.current.getBoundingClientRect().right-A.current.getBoundingClientRect().left):x==="bottom"&&(_e=A.current.getBoundingClientRect().bottom-m.current.getBoundingClientRect().top,re=A.current.getBoundingClientRect().bottom-A.current.getBoundingClientRect().top);const xe=_e/re*100;return Math.round((xe+Number.EPSILON)*100)/100},J=_e=>{_e.stopPropagation(),document.addEventListener("touchmove",Te,{passive:!1}),document.addEventListener("touchend",K),Wi=!0},ae=_e=>{_e.stopPropagation(),_e.preventDefault(),document.addEventListener("mousemove",ie),document.addEventListener("mouseup",ye),C.current.classList.add(D(kt.modifiers.resizing)),Wi=!0,te=!0},ue=_e=>{const re=x==="bottom"?_e.clientY:_e.clientX;ke(_e,re)},ve=_e=>{_e.preventDefault(),_e.stopImmediatePropagation();const re=x==="bottom"?_e.touches[0].clientY:_e.touches[0].clientX;ke(_e,re)},ke=(_e,re)=>{const oe=Ds(b.current)==="rtl";if(_e.stopPropagation(),!Wi)return;te&&($=b.current.getBoundingClientRect(),oe?(k=$.right,F=$.left):(F=$.right,k=$.left),X=$.bottom,te=!1);const xe=re;let De=0;x==="end"||x==="right"?De=oe?xe-F:F-xe:x==="start"||x==="left"?De=oe?k-xe:xe-k:De=X-xe,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Iv.name,De+"px"),W=De,_(R())},q=_e=>{Wi&&(C.current.classList.remove(D(kt.modifiers.resizing)),Wi=!1,o&&o(_e,W,n),te=!0,document.removeEventListener("mousemove",ie),document.removeEventListener("mouseup",ye))},Z=_e=>{_e.stopPropagation(),Wi&&(Wi=!1,o&&o(_e,W,n),document.removeEventListener("touchmove",Te),document.removeEventListener("touchend",K))},ie=y.useCallback(ue,[]),K=y.useCallback(Z,[]),Te=y.useCallback(ve,[]),ye=y.useCallback(q,[]),Ae=_e=>{const re=Ds(b.current)==="rtl",oe=_e.key;if(oe!=="Escape"&&oe!=="Enter"&&oe!=="ArrowUp"&&oe!=="ArrowDown"&&oe!=="ArrowLeft"&&oe!=="ArrowRight"){Wi&&_e.preventDefault();return}_e.preventDefault(),(oe==="Escape"||oe==="Enter")&&o&&o(_e,W,n);const xe=b.current.getBoundingClientRect();sc=x==="bottom"?xe.height:xe.width;let De=0;oe==="ArrowRight"?re?De=x==="left"||x==="start"?-c:c:De=x==="left"||x==="start"?c:-c:oe==="ArrowLeft"?re?De=x==="left"||x==="start"?c:-c:De=x==="left"||x==="start"?-c:c:oe==="ArrowUp"?De=c:oe==="ArrowDown"&&(De=-c),sc=sc+De,x==="bottom"&&(b.current.style.overflowAnchor="none"),b.current.style.setProperty(Iv.name,sc+"px"),W=sc,_(R())},Ce={};s&&(Ce[Iv.name]=s),l&&(Ce[kz.name]=l),u&&(Ce[Pz.name]=u);const Re=(p==null?void 0:p.enabled)&&!S,Ge=Re?U2:"div";return y.createElement(Mu,{prefix:"pf-drawer-panel-"},_e=>{const re={tabIndex:-1,"aria-modal":!0,role:"dialog",active:L,"aria-labelledby":(p==null?void 0:p["aria-labelledby"])||n||_e,focusTrapOptions:{fallbackFocus:()=>b.current,onActivate:()=>{U.current!==document.activeElement&&(U.current=document.activeElement)},onDeactivate:()=>{U.current&&U.current.focus&&U.current.focus()},clickOutsideDeactivates:!0,returnFocusOnDeactivate:!1,initialFocus:(p==null?void 0:p.elementToFocusOnExpand)||void 0,escapeDeactivates:!1}};return y.createElement(Ge,Object.assign({},Re&&re,{id:n||_e,className:D(kt.drawerPanel,i&&kt.modifiers.resizable,a&&kt.modifiers.noBorder,Ci(d,kt),h===bo.light200&&kt.modifiers.light_200,h===bo.noBackground&&kt.modifiers.noBackground,t),onTransitionEnd:oe=>{oe.target===b.current&&(!P&&oe.nativeEvent.propertyName==="transform"&&w(oe),E(!P),Re&&oe.nativeEvent.propertyName==="transform"&&N(xe=>!xe))},hidden:P},(s||l||u)&&{style:Ce},g,{ref:b}),T&&y.createElement(y.Fragment,null,i&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(kt.drawerSplitter,x!=="bottom"&&kt.modifiers.vertical),role:"separator",tabIndex:0,"aria-orientation":x==="bottom"?"horizontal":"vertical","aria-label":f,"aria-valuenow":v,"aria-valuemin":0,"aria-valuemax":100,"aria-controls":n||_e,onMouseDown:ae,onKeyDown:Ae,onTouchStart:J,ref:m},y.createElement("div",{className:D(kt.drawerSplitterHandle),"aria-hidden":!0})),y.createElement("div",{className:D(kt.drawerPanelMain)},r)),!i&&r))})};rA.displayName="DrawerPanelContent";const Tz=e=>{var{children:t,className:n,onSelect:r,isOpen:a,toggle:i,shouldFocusToggleOnSelect:o=!1,onOpenChange:l,isPlain:s,isScrollable:u,innerRef:c,ouiaId:f,ouiaSafe:d=!0,zIndex:h=9999,popperProps:p,onOpenChangeKeys:g=["Escape","Tab"],menuHeight:b,maxMenuHeight:m,shouldFocusFirstItemOnOpen:v=!0}=e,_=Q(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen"]);const x=M.useRef(),O=M.useRef(),S=Ii(u_.displayName,f,d),w=c||x,C=typeof i=="function"||typeof i!="function"&&!i.toggleRef?O:i==null?void 0:i.toggleRef;M.useEffect(()=>{const P=E=>{var L,N,U;a&&l&&(!((L=w.current)===null||L===void 0)&&L.contains(E.target)||!((N=C.current)===null||N===void 0)&&N.contains(E.target))&&g.includes(E.key)&&(l(!1),(U=C.current)===null||U===void 0||U.focus())},T=E=>{var L,N,U;a&&v&&(!((L=C.current)===null||L===void 0)&&L.contains(E.target))&&setTimeout(()=>{var W;const $=(W=w==null?void 0:w.current)===null||W===void 0?void 0:W.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');$&&$.focus()},0),a&&l&&!(!((N=C==null?void 0:C.current)===null||N===void 0)&&N.contains(E.target))&&a&&!(!((U=w.current)===null||U===void 0)&&U.contains(E.target))&&l(!1)};return window.addEventListener("keydown",P),window.addEventListener("click",T),()=>{window.removeEventListener("keydown",P),window.removeEventListener("click",T)}},[a,w,C,l,g]);const A=m!==void 0||b!==void 0||u,I=M.createElement(Pf,Object.assign({className:D(n),ref:w,onSelect:(P,T)=>{r&&r(P,T),o&&C.current.focus()},isPlain:s,isScrollable:A},_,S),M.createElement(e_,{menuHeight:b,maxMenuHeight:m},t));return M.createElement(jl,Object.assign({trigger:typeof i=="function"?i(C):i.toggleNode,triggerRef:C,popper:I,popperRef:w,isVisible:a,zIndex:h},p))},u_=M.forwardRef((e,t)=>M.createElement(Tz,Object.assign({innerRef:t},e)));u_.displayName="Dropdown";const Az=e=>{var{children:t,className:n,description:r,isDisabled:a,isAriaDisabled:i,value:o,onClick:l,ouiaId:s,ouiaSafe:u,innerRef:c,tooltipProps:f}=e,d=Q(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const h=Ii(c_.displayName,s,u);return M.createElement(r_,Object.assign({className:D(n),description:r,isDisabled:a,isAriaDisabled:i,itemId:o,onClick:l,tooltipProps:f,ref:c},h,d),t)},c_=M.forwardRef((e,t)=>M.createElement(Az,Object.assign({},e,{innerRef:t})));c_.displayName="DropdownItem";const aA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return M.createElement(a_,Object.assign({className:D(n)},r),t)};aA.displayName="DropdownList";const ei={icon:"pf-v5-c-icon",iconContent:"pf-v5-c-icon__content",iconProgress:"pf-v5-c-icon__progress",modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl",inProgress:"pf-m-in-progress",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",info:"pf-m-info",custom:"pf-m-custom"},spinner:"pf-v5-c-spinner"},iA=e=>{var{children:t,className:n,progressIcon:r,size:a,iconSize:i,progressIconSize:o,status:l,isInline:s=!1,isInProgress:u=!1,defaultProgressArialabel:c="Loading...",shouldMirrorRTL:f=!1}=e,d=Q(e,["children","className","progressIcon","size","iconSize","progressIconSize","status","isInline","isInProgress","defaultProgressArialabel","shouldMirrorRTL"]);const h=r??y.createElement($g,{diameter:"1em","aria-label":c});return y.createElement("span",Object.assign({className:D(ei.icon,s&&ei.modifiers.inline,u&&ei.modifiers.inProgress,ei.modifiers[a],n)},d),y.createElement("span",{className:D(ei.iconContent,ei.modifiers[i],ei.modifiers[l],f&&"pf-v5-m-mirror-inline-rtl")},t),u&&y.createElement("span",{className:D(ei.iconProgress,ei.modifiers[o],n)},h))};iA.displayName="Icon";const Mz={name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0},Iz=ht(Mz),f_=Iz,Rz={name:"SearchIcon",height:512,width:512,svgPath:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z",yOffset:0,xOffset:0},$z=ht(Rz),mO=$z,Lz={name:"ArrowRightIcon",height:512,width:448,svgPath:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z",yOffset:0,xOffset:0},jz=ht(Lz),Dz=jz,Yt={dirRtl:"pf-v5-m-dir-rtl",form:"pf-v5-c-form",formActions:"pf-v5-c-form__actions",formFieldGroup:"pf-v5-c-form__field-group",formFieldGroupBody:"pf-v5-c-form__field-group-body",formFieldGroupHeader:"pf-v5-c-form__field-group-header",formFieldGroupHeaderActions:"pf-v5-c-form__field-group-header-actions",formFieldGroupHeaderDescription:"pf-v5-c-form__field-group-header-description",formFieldGroupHeaderMain:"pf-v5-c-form__field-group-header-main",formFieldGroupHeaderTitle:"pf-v5-c-form__field-group-header-title",formFieldGroupHeaderTitleText:"pf-v5-c-form__field-group-header-title-text",formFieldGroupToggle:"pf-v5-c-form__field-group-toggle",formFieldGroupToggleButton:"pf-v5-c-form__field-group-toggle-button",formFieldGroupToggleIcon:"pf-v5-c-form__field-group-toggle-icon",formFieldset:"pf-v5-c-form__fieldset",formGroup:"pf-v5-c-form__group",formGroupControl:"pf-v5-c-form__group-control",formGroupLabel:"pf-v5-c-form__group-label",formGroupLabelHelp:"pf-v5-c-form__group-label-help",formGroupLabelInfo:"pf-v5-c-form__group-label-info",formGroupLabelMain:"pf-v5-c-form__group-label-main",formHelperText:"pf-v5-c-form__helper-text",formHelperTextIcon:"pf-v5-c-form__helper-text-icon",formLabel:"pf-v5-c-form__label",formLabelRequired:"pf-v5-c-form__label-required",formLabelText:"pf-v5-c-form__label-text",formSection:"pf-v5-c-form__section",formSectionTitle:"pf-v5-c-form__section-title",modifiers:{horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"},themeDark:"pf-v5-theme-dark"},oA=e=>{var{children:t=null,className:n=""}=e,r=Q(e,["children","className"]);const a=D(Yt.formGroup,Yt.modifiers.action,n),i=y.createElement("div",{className:D(Yt.formActions)},t);return y.createElement("div",Object.assign({},r,{className:a}),y.createElement("div",{className:D(Yt.formGroupControl)},i))};oA.displayName="ActionGroup";const Nz={name:"--pf-v5-c-form--m-limit-width--MaxWidth",value:"55rem",var:"var(--pf-v5-c-form--m-limit-width--MaxWidth)"},Fz=e=>{var{children:t=null,className:n="",isHorizontal:r=!1,isWidthLimited:a=!1,maxWidth:i="",innerRef:o}=e,l=Q(e,["children","className","isHorizontal","isWidthLimited","maxWidth","innerRef"]);return y.createElement("form",Object.assign({noValidate:!0},i&&{style:Object.assign({[Nz.name]:i},l.style)},l,{className:D(Yt.form,r&&Yt.modifiers.horizontal,(a||i)&&Yt.modifiers.limitWidth,n),ref:o}),t)},lA=y.forwardRef((e,t)=>y.createElement(Fz,Object.assign({innerRef:t},e)));lA.displayName="Form";const up=e=>{var{children:t=null,className:n="",label:r,labelInfo:a,labelIcon:i,isRequired:o=!1,isInline:l=!1,hasNoPaddingTop:s=!1,isStack:u=!1,fieldId:c,role:f}=e,d=Q(e,["children","className","label","labelInfo","labelIcon","isRequired","isInline","hasNoPaddingTop","isStack","fieldId","role"]);const h=f==="group"||f==="radiogroup",p=h?"span":"label",g=y.createElement(y.Fragment,null,y.createElement(p,Object.assign({className:D(Yt.formLabel)},!h&&{htmlFor:c}),y.createElement("span",{className:D(Yt.formLabelText)},r),o&&y.createElement("span",{className:D(Yt.formLabelRequired),"aria-hidden":"true"}," ",vT))," ",y.isValidElement(i)&&i);return y.createElement(Mu,null,b=>y.createElement("div",Object.assign({className:D(Yt.formGroup,n)},f&&{role:f},h&&{"aria-labelledby":`${c||b}-legend`},d),r&&y.createElement("div",Object.assign({className:D(Yt.formGroupLabel,a&&Yt.modifiers.info,s&&Yt.modifiers.noPaddingTop)},h&&{id:`${c||b}-legend`}),a&&y.createElement(y.Fragment,null,y.createElement("div",{className:D(Yt.formGroupLabelMain)},g),y.createElement("div",{className:D(Yt.formGroupLabelInfo)},a)),!a&&g),y.createElement("div",{className:D(Yt.formGroupControl,l&&Yt.modifiers.inline,u&&Yt.modifiers.stack)},t)))};up.displayName="FormGroup";const ws={modifiers:{bordered:"pf-m-bordered",raised:"pf-m-raised",scrollable:"pf-m-scrollable"},panel:"pf-v5-c-panel",panelFooter:"pf-v5-c-panel__footer",panelHeader:"pf-v5-c-panel__header",panelMain:"pf-v5-c-panel__main",panelMainBody:"pf-v5-c-panel__main-body",themeDark:"pf-v5-theme-dark"},zz=e=>{var{className:t,children:n,variant:r,isScrollable:a,innerRef:i}=e,o=Q(e,["className","children","variant","isScrollable","innerRef"]);return y.createElement("div",Object.assign({className:D(ws.panel,r==="raised"&&ws.modifiers.raised,r==="bordered"&&ws.modifiers.bordered,a&&ws.modifiers.scrollable,t),ref:i},o),n)},sA=y.forwardRef((e,t)=>y.createElement(zz,Object.assign({innerRef:t},e)));sA.displayName="Panel";const Bz={name:"--pf-v5-c-panel__main--MaxHeight",value:"18.75rem",var:"var(--pf-v5-c-panel__main--MaxHeight)"},uA=e=>{var{className:t,children:n,maxHeight:r}=e,a=Q(e,["className","children","maxHeight"]);return y.createElement("div",Object.assign({className:D(ws.panelMain,t),style:{[Bz.name]:r}},a),n)};uA.displayName="PanelMain";const cA=e=>{var{className:t,children:n}=e,r=Q(e,["className","children"]);return y.createElement("div",Object.assign({className:D(ws.panelMainBody,t)},r),n)};cA.displayName="PanelMainBody";const fA=({className:e,parentRef:t,parentInputRef:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,getAttrValueMap:s,onChange:u,onSearch:c,onClear:f,resetButtonLabel:d="Reset",submitSearchButtonLabel:h="Search",isSearchMenuOpen:p,onToggleAdvancedMenu:g})=>{const b=y.useRef(null),[m,v]=y.useState(!1);y.useEffect(()=>{a.length>0&&!l&&console.error("AdvancedSearchMenu: An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{p&&b&&b.current?(b.current.focus(),v(!0)):!p&&m&&n&&n.current&&n.current.focus()},[p]),y.useEffect(()=>(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",x),function(){document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",x)}));const _=A=>{const I=t&&t.current.contains(A.target);p&&!I&&g(A)},x=A=>{p&&A.key===Hp.Escape&&t&&t.current.contains(A.target)&&(g(A),n&&n.current.focus())},O=A=>{A.preventDefault(),c&&c(A,r,s()),p&&g(A)},S=(A,I,P)=>{const T=s();T[A]=I;let E="";Object.entries(T).forEach(([L,N])=>{if(N.trim()!==""){const U=N.includes(" ")?`'${N.replace(/(^'|'$)/g,"")}'`:N;L!=="haswords"?E=`${E} ${L}${l}${U}`:E=`${E} ${U}`}}),u&&u(P,E.replace(/^\s+/g,""))},w=A=>{const I=s();return I.hasOwnProperty(A)?I[A]:""},C=()=>{const A=[];return a.forEach((I,P)=>{const T=typeof I=="string"?I:I.display,E=typeof I=="string"?I:I.attr;P===0?A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{ref:b,type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)}))):A.push(y.createElement(up,{label:T,fieldId:`${E}_${P}`,key:`${I}_${P}`},y.createElement(Ns,{type:"text",id:`${E}_${P}`,value:w(E),onChange:(L,N)=>S(E,N,L)})))}),A.push(y.createElement(Mu,{key:"hasWords"},I=>y.createElement(up,{label:o,fieldId:I},y.createElement(Ns,{type:"text",id:I,value:w("haswords"),onChange:(P,T)=>S("haswords",T,P)})))),A};return p?y.createElement(sA,{variant:"raised",className:D(e)},y.createElement(uA,null,y.createElement(cA,null,y.createElement(lA,null,C(),i||null,y.createElement(oA,null,y.createElement(gt,{variant:"primary",type:"submit",onClick:O,isDisabled:!r},h),!!f&&y.createElement(gt,{variant:"link",type:"reset",onClick:f},d)))))):null};fA.displayName="SearchInput";const Tr={button:"pf-v5-c-button",chipGroupMain:"pf-v5-c-chip-group__main",modifiers:{disabled:"pf-m-disabled",plain:"pf-m-plain",icon:"pf-m-icon",hint:"pf-m-hint"},textInputGroup:"pf-v5-c-text-input-group",textInputGroupGroup:"pf-v5-c-text-input-group__group",textInputGroupIcon:"pf-v5-c-text-input-group__icon",textInputGroupMain:"pf-v5-c-text-input-group__main",textInputGroupText:"pf-v5-c-text-input-group__text",textInputGroupTextInput:"pf-v5-c-text-input-group__text-input",textInputGroupUtilities:"pf-v5-c-text-input-group__utilities",themeDark:"pf-v5-theme-dark"},dA=y.createContext({isDisabled:!1}),hA=e=>{var{children:t,className:n,isDisabled:r,isPlain:a,innerRef:i}=e,o=Q(e,["children","className","isDisabled","isPlain","innerRef"]);const l=y.useRef(null),s=i||l;return y.createElement(dA.Provider,{value:{isDisabled:r}},y.createElement("div",Object.assign({ref:s,className:D(Tr.textInputGroup,r&&Tr.modifiers.disabled,a&&Tr.modifiers.plain,n)},o),t))};hA.displayName="TextInputGroup";const Uz=e=>{var{children:t,className:n,icon:r,type:a="text",hint:i,onChange:o=()=>{},onFocus:l,onBlur:s,"aria-label":u="Type to filter",value:c,placeholder:f,innerRef:d,name:h,"aria-activedescendant":p,role:g,isExpanded:b,"aria-controls":m,inputId:v}=e,_=Q(e,["children","className","icon","type","hint","onChange","onFocus","onBlur","aria-label","value","placeholder","innerRef","name","aria-activedescendant","role","isExpanded","aria-controls","inputId"]);const{isDisabled:x}=y.useContext(dA),O=y.useRef(null),S=d||O,w=C=>{o(C,C.currentTarget.value)};return y.createElement("div",Object.assign({className:D(Tr.textInputGroupMain,r&&Tr.modifiers.icon,n)},_),t,y.createElement("span",{className:D(Tr.textInputGroupText)},i&&y.createElement("input",{className:D(Tr.textInputGroupTextInput,Tr.modifiers.hint),type:"text",disabled:!0,"aria-hidden":"true",value:i,id:v}),r&&y.createElement("span",{className:D(Tr.textInputGroupIcon)},r),y.createElement("input",Object.assign({ref:S,type:a,className:D(Tr.textInputGroupTextInput),"aria-label":u,disabled:x,onChange:w,onFocus:l,onBlur:s,value:c||"",placeholder:f,name:h,"aria-activedescendant":p,id:v},g&&{role:g},b!==void 0&&{"aria-expanded":b},m&&{"aria-controls":m}))))},pA=y.forwardRef((e,t)=>y.createElement(Uz,Object.assign({innerRef:t},e)));pA.displayName="TextInputGroupMain";const mA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("div",Object.assign({className:D(Tr.textInputGroupUtilities,n)},r),t)};mA.displayName="TextInputGroupUtilities";const gA=e=>{var{className:t,searchInputId:n,value:r="",attributes:a=[],formAdditionalItems:i,hasWordsAttrLabel:o="Has words",advancedSearchDelimiter:l,placeholder:s,hint:u,onChange:c,onSearch:f,onClear:d,onToggleAdvancedSearch:h,isAdvancedSearchOpen:p,resultsCount:g,onNextClick:b,onPreviousClick:m,innerRef:v,expandableInput:_,"aria-label":x="Search input",resetButtonLabel:O="Reset",openMenuButtonAriaLabel:S="Open advanced search",previousNavigationButtonAriaLabel:w="Previous",isPreviousNavigationButtonDisabled:C=!1,isNextNavigationButtonDisabled:A=!1,nextNavigationButtonAriaLabel:I="Next",submitSearchButtonLabel:P="Search",isDisabled:T=!1,appendTo:E,zIndex:L=9999,name:N,areUtilitiesDisplayed:U}=e,W=Q(e,["className","searchInputId","value","attributes","formAdditionalItems","hasWordsAttrLabel","advancedSearchDelimiter","placeholder","hint","onChange","onSearch","onClear","onToggleAdvancedSearch","isAdvancedSearchOpen","resultsCount","onNextClick","onPreviousClick","innerRef","expandableInput","aria-label","resetButtonLabel","openMenuButtonAriaLabel","previousNavigationButtonAriaLabel","isPreviousNavigationButtonDisabled","isNextNavigationButtonDisabled","nextNavigationButtonAriaLabel","submitSearchButtonLabel","isDisabled","appendTo","zIndex","name","areUtilitiesDisplayed"]);const[$,F]=y.useState(!1),[k,X]=y.useState(r),te=y.useRef(null),R=y.useRef(null),J=v||R,ae=y.useRef(null),ue=y.useRef(null),ve=y.useRef(null),[ke,q]=y.useState(!1),{isExpanded:Z,onToggleExpand:ie,toggleAriaLabel:K}=_||{};y.useEffect(()=>{var se,pe;if(ke)Z?(se=J==null?void 0:J.current)===null||se===void 0||se.focus():(pe=ae==null?void 0:ae.current)===null||pe===void 0||pe.focus();else return;q(!1)},[ke,Z,J,ae]),y.useEffect(()=>{X(r)},[r]),y.useEffect(()=>{a.length>0&&!l&&console.error("An advancedSearchDelimiter prop is required when advanced search attributes are provided using the attributes prop")}),y.useEffect(()=>{F(p)},[p]);const Te=(se,pe)=>{c&&c(se,pe),X(pe)},ye=se=>{const pe=!$;F(pe),h&&h(se,pe)},Ae=se=>{se.preventDefault(),f&&f(se,r,Re()),F(!1)},Ce=se=>{let pe;return se.match(/\\?.|^$/g).reduce((He,ge)=>(ge==="'"||ge==='"'?(pe||(pe=ge),ge===pe&&(He.quote=!He.quote)):!He.quote&&ge===" "?He.a.push(""):He.a[He.a.length-1]+=ge.replace(/\\(.)/,"$1"),He),{a:[""]}).a},Re=()=>{const se={};return Ce(k).map(He=>{const ge=He.split(l);ge.length===2?se[ge[0]]=ge[1].replace(/(^'|'$)/g,""):ge.length===1&&(se.haswords=se.hasOwnProperty("haswords")?`${se.haswords} ${ge[0]}`:ge[0])}),se},Ge=se=>{se.key==="Enter"&&Ae(se)},_e=se=>{d&&d(se),J&&J.current&&J.current.focus()},re=se=>{X(""),ie(se,Z),q(!0)},oe=r&&(g||!!b&&!!m||!!d&&!_),xe=(se={})=>{var pe=Q(se,[]);return y.createElement(hA,Object.assign({isDisabled:T},pe),y.createElement(pA,{hint:u,icon:y.createElement(mO,null),innerRef:J,value:k,placeholder:s,"aria-label":x,onKeyDown:Ge,onChange:Te,name:N,inputId:n}),(oe||U)&&y.createElement(mA,null,g&&y.createElement(Z2,{isRead:!0},g),!!b&&!!m&&y.createElement("div",{className:Tr.textInputGroupGroup},y.createElement(gt,{variant:pn.plain,"aria-label":w,isDisabled:T||C,onClick:m},y.createElement(ZF,null)),y.createElement(gt,{variant:pn.plain,"aria-label":I,isDisabled:T||A,onClick:b},y.createElement(f_,null))),!!d&&!_&&y.createElement(gt,{variant:pn.plain,isDisabled:T,"aria-label":O,onClick:_e},y.createElement(Ab,null))))},De=y.createElement(gt,{variant:pn.plain,"aria-label":K,"aria-expanded":Z,icon:Z?y.createElement(Ab,null):y.createElement(mO,null),onClick:re,ref:ae}),Je=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({},pe),y.createElement(Ea,{isFill:!0},xe()," "),y.createElement(Ea,{isPlain:!0},De))},z=(se={})=>{var pe=Q(se,[]);return _?Je(Object.assign({},pe)):xe(Object.assign({},pe))},Y=(se={})=>{var pe=Q(se,[]);return y.createElement(Qc,Object.assign({ref:ue},pe),y.createElement(Ea,{isFill:!0},xe()),(a.length>0||h)&&y.createElement(Ea,{isPlain:!0},y.createElement(gt,{className:$&&"pf-m-expanded",variant:pn.control,"aria-label":S,onClick:ye,isDisabled:T,"aria-expanded":$},y.createElement($T,null))),!!f&&y.createElement(Ea,null,y.createElement(gt,{type:"submit",variant:pn.control,"aria-label":P,onClick:Ae,isDisabled:T},y.createElement(iA,{shouldMirrorRTL:!0},y.createElement(Dz,null)))),_&&y.createElement(Ea,null,De))},he=Object.assign(Object.assign({},W),{className:t&&D(t),innerRef:te});if(_&&!Z)return y.createElement(Qc,Object.assign({},he),y.createElement(Ea,null,De));if(f||a.length>0||h){if(a.length>0){const se=y.createElement("div",{ref:ve},y.createElement(fA,{value:r,parentRef:te,parentInputRef:J,onSearch:f,onClear:d,onChange:c,onToggleAdvancedMenu:ye,resetButtonLabel:O,submitSearchButtonLabel:P,attributes:a,formAdditionalItems:i,hasWordsAttrLabel:o,advancedSearchDelimiter:l,getAttrValueMap:Re,isSearchMenuOpen:$})),pe=y.createElement("div",Object.assign({className:D(t),ref:te},W),y.createElement(jl,{trigger:Y(),triggerRef:ue,popper:se,popperRef:ve,isVisible:$,enableFlip:!0,appendTo:()=>E||te.current,zIndex:L})),He=y.createElement("div",Object.assign({className:D(t),ref:te},W),Y(),se);return E!=="inline"?pe:He}return Y(Object.assign({},he))}return z(he)};gA.displayName="SearchInputBase";const vA=y.forwardRef((e,t)=>y.createElement(gA,Object.assign({},e,{innerRef:t})));vA.displayName="SearchInput";var yA={exports:{}},Hz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Wz=Hz,Vz=Wz;function bA(){}function _A(){}_A.resetWarningCache=bA;var qz=function(){function e(r,a,i,o,l,s){if(s!==Vz){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_A,resetWarningCache:bA};return n.PropTypes=n,n};yA.exports=qz();var Gz=yA.exports;const tt=at(Gz),Or={list:"pf-v5-c-list",listItem:"pf-v5-c-list__item",listItemIcon:"pf-v5-c-list__item-icon",modifiers:{iconLg:"pf-m-icon-lg",plain:"pf-m-plain",inline:"pf-m-inline",bordered:"pf-m-bordered"}};var Rb;(function(e){e.number="1",e.lowercaseLetter="a",e.uppercaseLetter="A",e.lowercaseRomanNumber="i",e.uppercaseRomanNumber="I"})(Rb||(Rb={}));var $b;(function(e){e.inline="inline"})($b||($b={}));var Xp;(function(e){e.ol="ol",e.ul="ul"})(Xp||(Xp={}));const Yp=e=>{var{className:t="",children:n=null,variant:r=null,isBordered:a=!1,isPlain:i=!1,iconSize:o="default",type:l=Rb.number,ref:s=null,component:u=Xp.ul}=e,c=Q(e,["className","children","variant","isBordered","isPlain","iconSize","type","ref","component"]);return u===Xp.ol?y.createElement("ol",Object.assign({ref:s,type:l},i&&{role:"list"},c,{className:D(Or.list,r&&Or.modifiers[r],a&&Or.modifiers.bordered,i&&Or.modifiers.plain,o&&o==="large"&&Or.modifiers.iconLg,t)}),n):y.createElement("ul",Object.assign({ref:s},i&&{role:"list"},c,{className:D(Or.list,r&&Or.modifiers[r],a&&Or.modifiers.bordered,i&&Or.modifiers.plain,o&&o==="large"&&Or.modifiers.iconLg,t)}),n)};Yp.displayName="List";const or=e=>{var{icon:t=null,children:n=null}=e,r=Q(e,["icon","children"]);return y.createElement("li",Object.assign({className:D(t&&Or.listItem)},r),t&&y.createElement("span",{className:D(Or.listItemIcon)},t),n)};or.displayName="ListItem";const us={button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dropdown:"pf-v5-c-dropdown",masthead:"pf-v5-c-masthead",mastheadBrand:"pf-v5-c-masthead__brand",mastheadContent:"pf-v5-c-masthead__content",mastheadMain:"pf-v5-c-masthead__main",mastheadToggle:"pf-v5-c-masthead__toggle",menuToggle:"pf-v5-c-menu-toggle",modifiers:{light_200:"pf-m-light-200",light:"pf-m-light",plain:"pf-m-plain",resizeObserver:"pf-m-resize-observer",fullHeight:"pf-m-full-height",horizontal:"pf-m-horizontal",displayStack:"pf-m-display-stack",displayInline:"pf-m-display-inline",insetNone:"pf-m-inset-none",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",displayStackOnSm:"pf-m-display-stack-on-sm",displayInlineOnSm:"pf-m-display-inline-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",displayStackOnMd:"pf-m-display-stack-on-md",displayInlineOnMd:"pf-m-display-inline-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",displayStackOnLg:"pf-m-display-stack-on-lg",displayInlineOnLg:"pf-m-display-inline-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",displayStackOnXl:"pf-m-display-stack-on-xl",displayInlineOnXl:"pf-m-display-inline-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",displayStackOn_2xl:"pf-m-display-stack-on-2xl",displayInlineOn_2xl:"pf-m-display-inline-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl"},nav:"pf-v5-c-nav",page:"pf-v5-c-page",themeDark:"pf-v5-theme-dark",toolbar:"pf-v5-c-toolbar",toolbarContentSection:"pf-v5-c-toolbar__content-section",toolbarExpandableContent:"pf-v5-c-toolbar__expandable-content"},Kz={isManagedSidebar:!1,isSidebarOpen:!1,onSidebarToggle:()=>null,width:null,height:null,getBreakpoint:gT,getVerticalBreakpoint:mT},wd=y.createContext(Kz),Xz=wd.Provider,xA=wd.Consumer,wA=e=>{var{children:t,className:n,backgroundColor:r="dark",display:a={md:"inline"},inset:i}=e,o=Q(e,["children","className","backgroundColor","display","inset"]);const{width:l,getBreakpoint:s}=y.useContext(wd);return y.createElement("header",Object.assign({className:D(us.masthead,Ci(a,us,"display-",s(l)),Ci(i,us,"",s(l)),r==="light"&&us.modifiers.light,r==="light200"&&us.modifiers.light_200,n)},o),t)};wA.displayName="Masthead";const SA=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("span",Object.assign({className:D(us.mastheadToggle,n)},r),t)};SA.displayName="MastheadToggle";const Nt={dirRtl:"pf-v5-m-dir-rtl",divider:"pf-v5-c-divider",menu:"pf-v5-c-menu",menuContent:"pf-v5-c-menu__content",menuItem:"pf-v5-c-menu__item",menuItemToggleIcon:"pf-v5-c-menu__item-toggle-icon",menuListItem:"pf-v5-c-menu__list-item",modifiers:{flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",current:"pf-m-current",drillUp:"pf-m-drill-up",horizontal:"pf-m-horizontal",tertiary:"pf-m-tertiary",horizontalSubnav:"pf-m-horizontal-subnav",light:"pf-m-light",scrollable:"pf-m-scrollable",overflowHidden:"pf-m-overflow-hidden",expandable:"pf-m-expandable",expanded:"pf-m-expanded",drilldown:"pf-m-drilldown",hover:"pf-m-hover",start:"pf-m-start"},nav:"pf-v5-c-nav",navItem:"pf-v5-c-nav__item",navLink:"pf-v5-c-nav__link",navList:"pf-v5-c-nav__list",navScrollButton:"pf-v5-c-nav__scroll-button",navSection:"pf-v5-c-nav__section",navSectionTitle:"pf-v5-c-nav__section-title",navSubnav:"pf-v5-c-nav__subnav",navToggle:"pf-v5-c-nav__toggle",navToggleIcon:"pf-v5-c-nav__toggle-icon",themeDark:"pf-v5-theme-dark"},Yz={},Mf=y.createContext(Yz);class vu extends y.Component{constructor(){super(...arguments),this.state={isScrollable:!1,ouiaStateId:Lo(vu.displayName,this.props.variant),flyoutRef:null},this.navRef=y.createRef()}onSelect(t,n,r,a,i,o){i&&t.preventDefault(),this.props.onSelect(t,{groupId:n,itemId:r,to:a}),o&&o(t,r,n,a)}onToggle(t,n,r){this.props.onToggle(t,{groupId:n,isExpanded:r})}render(){const t=this.props,{"aria-label":n,children:r,className:a,onSelect:i,onToggle:o,theme:l,ouiaId:s,ouiaSafe:u,variant:c}=t,f=Q(t,["aria-label","children","className","onSelect","onToggle","theme","ouiaId","ouiaSafe","variant"]),d=["horizontal","tertiary"].includes(c);return y.createElement(Mf.Provider,{value:{onSelect:(h,p,g,b,m,v)=>this.onSelect(h,p,g,b,m,v),onToggle:(h,p,g)=>this.onToggle(h,p,g),updateIsScrollable:h=>this.setState({isScrollable:h}),isHorizontal:["horizontal","tertiary","horizontal-subnav"].includes(c),flyoutRef:this.state.flyoutRef,setFlyoutRef:h=>this.setState({flyoutRef:h}),navRef:this.navRef}},y.createElement("nav",Object.assign({className:D(Nt.nav,l==="light"&&Nt.modifiers.light,d&&Nt.modifiers.horizontal,c==="tertiary"&&Nt.modifiers.tertiary,c==="horizontal-subnav"&&Nt.modifiers.horizontalSubnav,this.state.isScrollable&&Nt.modifiers.scrollable,a),"aria-label":n||(["tertiary","horizontal-subnav"].includes(c)?"Local":"Global"),ref:this.navRef},Ll(vu.displayName,s!==void 0?s:this.state.ouiaStateId,u),f),r))}}vu.displayName="Nav";vu.defaultProps={onSelect:()=>{},onToggle:()=>{},theme:"dark",ouiaSafe:!0};const Ue={avatar:"pf-v5-c-avatar",brand:"pf-v5-c-brand",button:"pf-v5-c-button",contextSelector:"pf-v5-c-context-selector",dirRtl:"pf-v5-m-dir-rtl",drawer:"pf-v5-c-drawer",masthead:"pf-v5-c-masthead",modifiers:{light:"pf-m-light",menu:"pf-m-menu",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",read:"pf-m-read",selected:"pf-m-selected",unread:"pf-m-unread",attention:"pf-m-attention",expanded:"pf-m-expanded",collapsed:"pf-m-collapsed",pageInsets:"pf-m-page-insets",insetNone:"pf-m-inset-none",fill:"pf-m-fill",noFill:"pf-m-no-fill",limitWidth:"pf-m-limit-width",alignCenter:"pf-m-align-center",overflowScroll:"pf-m-overflow-scroll",shadowBottom:"pf-m-shadow-bottom",shadowTop:"pf-m-shadow-top",stickyTop:"pf-m-sticky-top",stickyBottom:"pf-m-sticky-bottom",stickyTopOnSmHeight:"pf-m-sticky-top-on-sm-height",stickyBottomOnSmHeight:"pf-m-sticky-bottom-on-sm-height",stickyTopOnMdHeight:"pf-m-sticky-top-on-md-height",stickyBottomOnMdHeight:"pf-m-sticky-bottom-on-md-height",stickyTopOnLgHeight:"pf-m-sticky-top-on-lg-height",stickyBottomOnLgHeight:"pf-m-sticky-bottom-on-lg-height",stickyTopOnXlHeight:"pf-m-sticky-top-on-xl-height",stickyBottomOnXlHeight:"pf-m-sticky-bottom-on-xl-height",stickyTopOn_2xlHeight:"pf-m-sticky-top-on-2xl-height",stickyBottomOn_2xlHeight:"pf-m-sticky-bottom-on-2xl-height",light_100:"pf-m-light-100",dark_100:"pf-m-dark-100",dark_200:"pf-m-dark-200",padding:"pf-m-padding",noPadding:"pf-m-no-padding",paddingOnSm:"pf-m-padding-on-sm",noPaddingOnSm:"pf-m-no-padding-on-sm",paddingOnMd:"pf-m-padding-on-md",noPaddingOnMd:"pf-m-no-padding-on-md",paddingOnLg:"pf-m-padding-on-lg",noPaddingOnLg:"pf-m-no-padding-on-lg",paddingOnXl:"pf-m-padding-on-xl",noPaddingOnXl:"pf-m-no-padding-on-xl",paddingOn_2xl:"pf-m-padding-on-2xl",noPaddingOn_2xl:"pf-m-no-padding-on-2xl",light_200:"pf-m-light-200"},nav:"pf-v5-c-nav",notificationBadge:"pf-v5-c-notification-badge",page:"pf-v5-c-page",pageDrawer:"pf-v5-c-page__drawer",pageHeader:"pf-v5-c-page__header",pageHeaderBrand:"pf-v5-c-page__header-brand",pageHeaderBrandLink:"pf-v5-c-page__header-brand-link",pageHeaderBrandToggle:"pf-v5-c-page__header-brand-toggle",pageHeaderNav:"pf-v5-c-page__header-nav",pageHeaderTools:"pf-v5-c-page__header-tools",pageHeaderToolsGroup:"pf-v5-c-page__header-tools-group",pageHeaderToolsItem:"pf-v5-c-page__header-tools-item",pageMain:"pf-v5-c-page__main",pageMainBody:"pf-v5-c-page__main-body",pageMainBreadcrumb:"pf-v5-c-page__main-breadcrumb",pageMainDrawer:"pf-v5-c-page__main-drawer",pageMainGroup:"pf-v5-c-page__main-group",pageMainNav:"pf-v5-c-page__main-nav",pageMainSection:"pf-v5-c-page__main-section",pageMainSubnav:"pf-v5-c-page__main-subnav",pageMainTabs:"pf-v5-c-page__main-tabs",pageMainWizard:"pf-v5-c-page__main-wizard",pageSidebar:"pf-v5-c-page__sidebar",pageSidebarBody:"pf-v5-c-page__sidebar-body",themeDark:"pf-v5-theme-dark"},Qz={isSidebarOpen:!0},d_=y.createContext(Qz),OA=e=>{var{className:t="",children:n,isSidebarOpen:r=!0,theme:a="dark",id:i="page-sidebar"}=e,o=Q(e,["className","children","isSidebarOpen","theme","id"]);return y.createElement(xA,null,({isManagedSidebar:l,isSidebarOpen:s})=>{const u=l?s:r;return y.createElement("div",Object.assign({id:i,className:D(Ue.pageSidebar,a==="light"&&Ue.modifiers.light,u&&Ue.modifiers.expanded,!u&&Ue.modifiers.collapsed,t),"aria-hidden":!u},o),y.createElement(d_.Provider,{value:{isSidebarOpen:u}},n))})};OA.displayName="PageSidebar";class Dg extends y.Component{constructor(){super(...arguments),this.direction="ltr",this.state={scrollViewAtStart:!1,scrollViewAtEnd:!1},this.navList=y.createRef(),this.observer=()=>{},this.handleScrollButtons=()=>{const t=this.navList.current;if(t){const n=vh(t,t.firstChild,!1),r=vh(t,t.lastChild,!1);this.setState({scrollViewAtStart:n,scrollViewAtEnd:r}),this.context.updateIsScrollable(!n||!r)}},this.scrollBack=()=>{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=0;i{const t=this.navList.current;if(t){const n=Array.from(t.children);let r,a;for(let i=n.length-1;i>=0&&!r;i--)vh(t,n[i],!1)&&(r=n[i],a=n[i+1]);a&&(this.direction==="ltr"?t.scrollLeft+=a.scrollWidth:t.scrollLeft-=a.scrollWidth),this.handleScrollButtons()}}}componentDidMount(){this.observer=J2(this.navList.current,this.handleScrollButtons,!0),this.direction=Ds(this.navList.current),this.handleScrollButtons()}componentWillUnmount(){this.observer()}componentDidUpdate(){this.direction=Ds(this.navList.current)}render(){const t=this.props,{children:n,className:r,ariaLeftScroll:a,ariaRightScroll:i,backScrollAriaLabel:o,forwardScrollAriaLabel:l}=t,s=Q(t,["children","className","ariaLeftScroll","ariaRightScroll","backScrollAriaLabel","forwardScrollAriaLabel"]),{scrollViewAtStart:u,scrollViewAtEnd:c}=this.state;return y.createElement(Mf.Consumer,null,({isHorizontal:f})=>y.createElement(d_.Consumer,null,({isSidebarOpen:d})=>y.createElement(y.Fragment,null,f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":o||a,onClick:this.scrollBack,disabled:u,tabIndex:d?null:-1},y.createElement(t_,null)),y.createElement("ul",Object.assign({ref:this.navList,className:D(Nt.navList,r),onScroll:this.handleScrollButtons,role:"list"},s),n),f&&y.createElement("button",{className:D(Nt.navScrollButton),"aria-label":l||i,onClick:this.scrollForward,disabled:c,tabIndex:d?null:-1},y.createElement(Iu,null)))))}}Dg.displayName="NavList";Dg.contextType=Mf;Dg.defaultProps={ariaLeftScroll:"Scroll left",backScrollAriaLabel:"Scroll back",ariaRightScroll:"Scroll right",forwardScrollAriaLabel:"Scroll foward"};const Ss=e=>{var{children:t,styleChildren:n=!0,className:r,to:a,isActive:i=!1,groupId:o=null,itemId:l=null,preventDefault:s=!1,onClick:u,component:c="a",flyout:f,onShowFlyout:d,ouiaId:h,ouiaSafe:p,zIndex:g=9999,hasNavLinkWrapper:b}=e,m=Q(e,["children","styleChildren","className","to","isActive","groupId","itemId","preventDefault","onClick","component","flyout","onShowFlyout","ouiaId","ouiaSafe","zIndex","hasNavLinkWrapper"]);const{flyoutRef:v,setFlyoutRef:_,navRef:x}=y.useContext(Mf),{isSidebarOpen:O}=y.useContext(d_),[S,w]=y.useState(null),[C,A]=y.useState(!1),I=y.useRef(),P=I===v,T=y.useRef(),E=f!==void 0,L=E?"button":c;a&&E&&console.error('NavItem cannot have both "to" and "flyout" props.');const N=(q,Z)=>{(!P||Z)&&q?_(I):(P||Z)&&!q&&_(null),d&&q&&d()},U=q=>{const Z=q.target.closest(`.${Nt.navItem}.pf-m-flyout`);E&&!P?N(!0):v!==null&&!Z&&_(null)},W=q=>{q.target.closest(".pf-m-flyout")||(E?N(!1,!0):v!==null&&_(null))},$=q=>{var Z,ie;const K=q.key,Te=q.target;(K===" "||K==="Enter"||K==="ArrowRight")&&E&&(!((Z=I==null?void 0:I.current)===null||Z===void 0)&&Z.contains(Te))&&(q.stopPropagation(),q.preventDefault(),P||(N(!0),w(Te))),(K==="Escape"||K==="ArrowLeft")&&((ie=T==null?void 0:T.current)===null||ie===void 0?void 0:ie.querySelectorAll(`.${Nt.menu}`).length)===1&&P&&(q.stopPropagation(),q.preventDefault(),N(!1))};y.useEffect(()=>(E&&window.addEventListener("click",W),()=>{E&&window.removeEventListener("click",W)}),[]),y.useEffect(()=>{S&&(P?Array.from(T.current.getElementsByTagName("UL")[0].children).filter(Z=>!(Z.classList.contains("pf-m-disabled")||Z.classList.contains(Nt.divider)))[0].firstChild.focus():S.focus())},[P,S]);const F=y.createElement("span",{className:D(Nt.navToggle)},y.createElement("span",{className:D(Nt.navToggleIcon)},y.createElement(Iu,{"aria-hidden":!0}))),k={"aria-haspopup":"menu","aria-expanded":P},X=O?null:-1,te=q=>{const Z=s||!a;return y.createElement(L,Object.assign({href:a,onClick:ie=>q.onSelect(ie,o,l,a,Z,u),className:D(Nt.navLink,i&&Nt.modifiers.current,C&&Nt.modifiers.hover,r),"aria-current":i?"page":null,tabIndex:X},E&&Object.assign({},k),m),b?y.createElement("span",{className:D(`${Nt.nav}__link-text`)},t):t,f&&F)},R=(q,Z)=>y.cloneElement(Z,Object.assign(Object.assign({onClick:ie=>q.onSelect(ie,o,l,a,s,u),"aria-current":i?"page":null},n&&{className:D(Nt.navLink,i&&Nt.modifiers.current,Z.props&&Z.props.className)}),{tabIndex:Z.props.tabIndex||X,children:E?y.createElement(y.Fragment,null,Z.props.children,F):Z.props.children})),J=Ii(Ss.displayName,h,p),ae=()=>{A(!0)},ue=()=>{A(!1)},ve=y.createElement(jl,{triggerRef:I,popper:y.createElement("div",{ref:T,onMouseEnter:ae,onMouseLeave:ue},f),popperRef:T,placement:"right-start",isVisible:P,onDocumentKeyDown:$,zIndex:g,appendTo:x==null?void 0:x.current});return y.createElement(y.Fragment,null,y.createElement("li",Object.assign({onMouseOver:U,className:D(Nt.navItem,E&&Nt.modifiers.flyout,r),ref:I},J),y.createElement(Mf.Consumer,null,q=>y.isValidElement(t)?R(q,t):te(q))),f&&ve)};Ss.displayName="NavItem";const Ng=e=>{var{children:t,className:n="",isVisited:r=!1}=e,a=Q(e,["children","className","isVisited"]);return y.createElement("div",Object.assign({},a,{className:D(Sb.content,r&&Sb.modifiers.visited,n)}),t)};Ng.displayName="TextContent";var El;(function(e){e.h1="h1",e.h2="h2",e.h3="h3",e.h4="h4",e.h5="h5",e.h6="h6",e.p="p",e.a="a",e.small="small",e.blockquote="blockquote",e.pre="pre"})(El||(El={}));const Sd=e=>{var{children:t=null,className:n="",component:r=El.p,isVisitedLink:a=!1,ouiaId:i,ouiaSafe:o=!0}=e,l=Q(e,["children","className","component","isVisitedLink","ouiaId","ouiaSafe"]);const s=r,u=Ii(Sd.displayName,i,o);return y.createElement(s,Object.assign({},u,l,{"data-pf-content":!0,className:D(a&&r===El.a&&Sb.modifiers.visited,n)}),t)};Sd.displayName="Text";const CA=e=>{var{className:t="",children:n,stickyOnBreakpoint:r,hasShadowTop:a=!1,hasShadowBottom:i=!1,hasOverflowScroll:o=!1,"aria-label":l}=e,s=Q(e,["className","children","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label"]);const{height:u,getVerticalBreakpoint:c}=y.useContext(wd);return y.useEffect(()=>{o&&!l&&console.warn("PageGroup: An accessible aria-label is required when hasOverflowScroll is set to true.")},[o,l]),y.createElement("div",Object.assign({},s,{className:D(Ue.pageMainGroup,Ci(r,Ue,"sticky-",c(u),!0),a&&Ue.modifiers.shadowTop,i&&Ue.modifiers.shadowBottom,o&&Ue.modifiers.overflowScroll,t)},o&&{tabIndex:0,role:"region","aria-label":l}),n)};CA.displayName="PageGroup";var gO;(function(e){e.vertical="vertical",e.horizontal="horizontal"})(gO||(gO={}));class h_ extends y.Component{constructor(t){super(t),this.mainRef=y.createRef(),this.pageRef=y.createRef(),this.observer=()=>{},this.getWindowWidth=()=>Oo?this.pageRef.current?this.pageRef.current.clientWidth:window.innerWidth:1200,this.isMobile=()=>this.getWindowWidth(){var o;const{onPageResize:l}=this.props,s=this.isMobile();if(l&&l(i,{mobileView:s,windowSize:this.getWindowWidth()}),s!==this.state.mobileView&&this.setState({mobileView:s}),!((o=this.pageRef)===null||o===void 0)&&o.current){const u=this.pageRef.current.clientWidth,c=this.pageRef.current.clientHeight;this.state.width!==u&&this.setState({width:u}),this.state.height!==c&&this.setState({height:c})}},this.handleResize=x9(this.resize,250),this.handleMainClick=()=>{this.isMobile()&&this.state.mobileIsSidebarOpen&&this.mainRef.current&&this.setState({mobileIsSidebarOpen:!1})},this.onSidebarToggleMobile=()=>{this.setState(i=>({mobileIsSidebarOpen:!i.mobileIsSidebarOpen}))},this.onSidebarToggleDesktop=()=>{this.setState(i=>({desktopIsSidebarOpen:!i.desktopIsSidebarOpen}))};const{isManagedSidebar:n,defaultManagedSidebarIsOpen:r}=t,a=n?r:!0;this.state={desktopIsSidebarOpen:a,mobileIsSidebarOpen:!1,mobileView:!1,width:null,height:null}}componentDidMount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer=J2(this.pageRef.current,this.handleResize);const r=this.mainRef.current;r&&(r.addEventListener("mousedown",this.handleMainClick),r.addEventListener("touchstart",this.handleMainClick)),this.resize()}}componentWillUnmount(){const{isManagedSidebar:t,onPageResize:n}=this.props;if(t||n){this.observer();const r=this.mainRef.current;r&&(r.removeEventListener("mousedown",this.handleMainClick),r.removeEventListener("touchstart",this.handleMainClick))}}render(){const t=this.props,{breadcrumb:n,isBreadcrumbWidthLimited:r,className:a,children:i,header:o,sidebar:l,notificationDrawer:s,isNotificationDrawerExpanded:u,onNotificationDrawerExpand:c,drawerDefaultSize:f,drawerMinSize:d,drawerMaxSize:h,isTertiaryNavWidthLimited:p,skipToContent:g,role:b,mainContainerId:m,isManagedSidebar:v,defaultManagedSidebarIsOpen:_,onPageResize:x,getBreakpoint:O,getVerticalBreakpoint:S,mainAriaLabel:w,mainTabIndex:C,mainComponent:A,tertiaryNav:I,isTertiaryNavGrouped:P,isBreadcrumbGrouped:T,additionalGroupedContent:E,groupProps:L,breadcrumbProps:N}=t,U=Q(t,["breadcrumb","isBreadcrumbWidthLimited","className","children","header","sidebar","notificationDrawer","isNotificationDrawerExpanded","onNotificationDrawerExpand","drawerDefaultSize","drawerMinSize","drawerMaxSize","isTertiaryNavWidthLimited","skipToContent","role","mainContainerId","isManagedSidebar","defaultManagedSidebarIsOpen","onPageResize","getBreakpoint","getVerticalBreakpoint","mainAriaLabel","mainTabIndex","mainComponent","tertiaryNav","isTertiaryNavGrouped","isBreadcrumbGrouped","additionalGroupedContent","groupProps","breadcrumbProps"]),{mobileView:W,mobileIsSidebarOpen:$,desktopIsSidebarOpen:F,width:k,height:X}=this.state,te={isManagedSidebar:v,onSidebarToggle:W?this.onSidebarToggleMobile:this.onSidebarToggleDesktop,isSidebarOpen:W?$:F,width:k,height:X,getBreakpoint:O,getVerticalBreakpoint:S};let R=null;I&&p?R=y.createElement("div",{className:D(Ue.pageMainNav,Ue.modifiers.limitWidth)},y.createElement("div",{className:D(Ue.pageMainBody)},I)):I&&(R=y.createElement("div",{className:D(Ue.pageMainNav)},I));const J=n?y.createElement("section",{className:D(Ue.pageMainBreadcrumb,r&&Ue.modifiers.limitWidth,Ci(N==null?void 0:N.stickyOnBreakpoint,Ue,"sticky-",S(X),!0))},r?y.createElement("div",{className:D(Ue.pageMainBody)},n):n):null,ue=P||T||E?y.createElement(CA,Object.assign({},L),P&&R,T&&J,E):null,ve=A,ke=y.createElement(ve,{ref:this.mainRef,role:b,id:m,className:D(Ue.pageMain),tabIndex:C,"aria-label":w},ue,!P&&R,!T&&J,i),q=y.createElement(rA,{defaultSize:f,minSize:d,maxSize:h},s);return y.createElement(Xz,{value:te},y.createElement("div",Object.assign({ref:this.pageRef},U,{className:D(Ue.page,k!==null&&X!==null&&"pf-m-resize-observer",k!==null&&`pf-m-breakpoint-${O(k)}`,X!==null&&`pf-m-height-breakpoint-${S(X)}`,a)}),g,o,l,s&&y.createElement("div",{className:D(Ue.pageDrawer)},y.createElement(ZT,{isExpanded:u,onExpand:Z=>c(Z)},y.createElement(tA,{panelContent:q},y.createElement(nA,null,ke)))),!s&&ke))}}h_.displayName="Page";h_.defaultProps={isManagedSidebar:!1,isBreadcrumbWidthLimited:!1,defaultManagedSidebarIsOpen:!0,mainTabIndex:-1,isNotificationDrawerExpanded:!1,onNotificationDrawerExpand:()=>null,mainComponent:"main",getBreakpoint:gT,getVerticalBreakpoint:mT};const EA=e=>{var{children:t,className:n,usePageInsets:r,isFilled:a}=e,i=Q(e,["children","className","usePageInsets","isFilled"]);return y.createElement("div",Object.assign({className:D(Ue.pageSidebarBody,r&&Ue.modifiers.pageInsets,a===!1&&Ue.modifiers.noFill,a===!0&&Ue.modifiers.fill,n)},i),t)};EA.displayName="PageSidebarBody";var so;(function(e){e.default="default",e.light="light",e.dark="dark",e.darker="darker"})(so||(so={}));var li;(function(e){e.default="default",e.nav="nav",e.subNav="subnav",e.breadcrumb="breadcrumb",e.tabs="tabs",e.wizard="wizard"})(li||(li={}));const Jz={[li.default]:Ue.pageMainSection,[li.nav]:Ue.pageMainNav,[li.subNav]:Ue.pageMainSubnav,[li.breadcrumb]:Ue.pageMainBreadcrumb,[li.tabs]:Ue.pageMainTabs,[li.wizard]:Ue.pageMainWizard},Zz={[so.default]:"",[so.light]:Ue.modifiers.light,[so.dark]:Ue.modifiers.dark_200,[so.darker]:Ue.modifiers.dark_100},hr=e=>{var{className:t="",children:n,variant:r="default",type:a="default",padding:i,isFilled:o,isWidthLimited:l=!1,isCenterAligned:s=!1,stickyOnBreakpoint:u,hasShadowTop:c=!1,hasShadowBottom:f=!1,hasOverflowScroll:d=!1,"aria-label":h,component:p="section"}=e,g=Q(e,["className","children","variant","type","padding","isFilled","isWidthLimited","isCenterAligned","stickyOnBreakpoint","hasShadowTop","hasShadowBottom","hasOverflowScroll","aria-label","component"]);const{height:b,getVerticalBreakpoint:m}=y.useContext(wd);y.useEffect(()=>{d&&!h&&console.warn("PageSection: An accessible aria-label is required when hasOverflowScroll is set to true.")},[d,h]);const v=p;return y.createElement(v,Object.assign({},g,{className:D(Jz[a],Ci(i,Ue),Ci(u,Ue,"sticky-",m(b),!0),Zz[r],o===!1&&Ue.modifiers.noFill,o===!0&&Ue.modifiers.fill,l&&Ue.modifiers.limitWidth,l&&s&&a!==li.subNav&&Ue.modifiers.alignCenter,c&&Ue.modifiers.shadowTop,f&&Ue.modifiers.shadowBottom,d&&Ue.modifiers.overflowScroll,t)},d&&{tabIndex:0},{"aria-label":h}),l&&y.createElement("div",{className:D(Ue.pageMainBody)},n),!l&&n)};hr.displayName="PageSection";const kA=e=>{var{children:t,isSidebarOpen:n=!0,onSidebarToggle:r=()=>{},id:a="nav-toggle"}=e,i=Q(e,["children","isSidebarOpen","onSidebarToggle","id"]);return y.createElement(xA,null,({isManagedSidebar:o,onSidebarToggle:l,isSidebarOpen:s})=>{const u=o?l:r,c=o?s:n;return y.createElement(gt,Object.assign({id:a,onClick:u,"aria-label":"Side navigation toggle","aria-expanded":c?"true":"false",variant:pn.plain},i),t)})};kA.displayName="PageToggleButton";const eB={name:"OutlinedClockIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z",yOffset:0,xOffset:0},tB=ht(eB),Rv={modifiers:{helpText:"pf-m-help-text"},timestamp:"pf-v5-c-timestamp"};var vO;(function(e){e.full="full",e.long="long",e.medium="medium",e.short="short"})(vO||(vO={}));var Lb;(function(e){e.default="default",e.custom="custom"})(Lb||(Lb={}));const p_=e=>{var{children:t,className:n,customFormat:r,date:a,dateFormat:i,displaySuffix:o="",is12Hour:l,locale:s,shouldDisplayUTC:u,timeFormat:c,tooltip:f}=e,d=Q(e,["children","className","customFormat","date","dateFormat","displaySuffix","is12Hour","locale","shouldDisplayUTC","timeFormat","tooltip"]);const[h,p]=y.useState(()=>{const P=new Date(a);return Sa(P)?P:new Date});y.useEffect(()=>{const P=new Date(a);Sa(P)&&P.toString()!==new Date(h).toString()?p(P):a||p(new Date)},[a]);const g=c&&!r,b=Object.assign(Object.assign(Object.assign({},i&&!r&&{dateStyle:i}),r&&Object.assign({},r)),l!==void 0&&{hour12:l}),m=new Date(h).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:c})),v=c!=="short"?"medium":"short",_=P=>new Date(P).toUTCString().slice(0,-3),x=new Date(_(h)).toLocaleString(s,Object.assign(Object.assign({},b),g&&{timeStyle:v})),O=c==="full"?"Coordinated Universal Time":"UTC",S=P=>`${x} ${P||O}`,w=u?S(o):`${m}${o?" "+o:""}`,{dateTime:C}=d,A=Q(d,["dateTime"]),I=y.createElement("span",Object.assign({className:D(Rv.timestamp,f&&Rv.modifiers.helpText,n)},f&&{tabIndex:0},A),y.createElement("time",{className:`${Rv.timestamp}__text`,dateTime:C||new Date(h).toISOString()},t||w));return f?y.createElement($i,Object.assign({content:f.variant===Lb.default?S(f.suffix):f.content},f.tooltipProps),I):I};p_.displayName="Timestamp";const PA=e=>{var{children:t=null,className:n="",component:r="div"}=e,a=Q(e,["children","className","component"]);const i=r;return y.createElement(i,Object.assign({className:D(WF.bullseye,n)},a),t)};PA.displayName="Bullseye";const aa={grid:"pf-v5-l-grid",gridItem:"pf-v5-l-grid__item",modifiers:{all_1Col:"pf-m-all-1-col",all_2Col:"pf-m-all-2-col",all_3Col:"pf-m-all-3-col",all_4Col:"pf-m-all-4-col",all_5Col:"pf-m-all-5-col",all_6Col:"pf-m-all-6-col",all_7Col:"pf-m-all-7-col",all_8Col:"pf-m-all-8-col",all_9Col:"pf-m-all-9-col",all_10Col:"pf-m-all-10-col",all_11Col:"pf-m-all-11-col",all_12Col:"pf-m-all-12-col",all_1ColOnSm:"pf-m-all-1-col-on-sm",all_2ColOnSm:"pf-m-all-2-col-on-sm",all_3ColOnSm:"pf-m-all-3-col-on-sm",all_4ColOnSm:"pf-m-all-4-col-on-sm",all_5ColOnSm:"pf-m-all-5-col-on-sm",all_6ColOnSm:"pf-m-all-6-col-on-sm",all_7ColOnSm:"pf-m-all-7-col-on-sm",all_8ColOnSm:"pf-m-all-8-col-on-sm",all_9ColOnSm:"pf-m-all-9-col-on-sm",all_10ColOnSm:"pf-m-all-10-col-on-sm",all_11ColOnSm:"pf-m-all-11-col-on-sm",all_12ColOnSm:"pf-m-all-12-col-on-sm",all_1ColOnMd:"pf-m-all-1-col-on-md",all_2ColOnMd:"pf-m-all-2-col-on-md",all_3ColOnMd:"pf-m-all-3-col-on-md",all_4ColOnMd:"pf-m-all-4-col-on-md",all_5ColOnMd:"pf-m-all-5-col-on-md",all_6ColOnMd:"pf-m-all-6-col-on-md",all_7ColOnMd:"pf-m-all-7-col-on-md",all_8ColOnMd:"pf-m-all-8-col-on-md",all_9ColOnMd:"pf-m-all-9-col-on-md",all_10ColOnMd:"pf-m-all-10-col-on-md",all_11ColOnMd:"pf-m-all-11-col-on-md",all_12ColOnMd:"pf-m-all-12-col-on-md",all_1ColOnLg:"pf-m-all-1-col-on-lg",all_2ColOnLg:"pf-m-all-2-col-on-lg",all_3ColOnLg:"pf-m-all-3-col-on-lg",all_4ColOnLg:"pf-m-all-4-col-on-lg",all_5ColOnLg:"pf-m-all-5-col-on-lg",all_6ColOnLg:"pf-m-all-6-col-on-lg",all_7ColOnLg:"pf-m-all-7-col-on-lg",all_8ColOnLg:"pf-m-all-8-col-on-lg",all_9ColOnLg:"pf-m-all-9-col-on-lg",all_10ColOnLg:"pf-m-all-10-col-on-lg",all_11ColOnLg:"pf-m-all-11-col-on-lg",all_12ColOnLg:"pf-m-all-12-col-on-lg",all_1ColOnXl:"pf-m-all-1-col-on-xl",all_2ColOnXl:"pf-m-all-2-col-on-xl",all_3ColOnXl:"pf-m-all-3-col-on-xl",all_4ColOnXl:"pf-m-all-4-col-on-xl",all_5ColOnXl:"pf-m-all-5-col-on-xl",all_6ColOnXl:"pf-m-all-6-col-on-xl",all_7ColOnXl:"pf-m-all-7-col-on-xl",all_8ColOnXl:"pf-m-all-8-col-on-xl",all_9ColOnXl:"pf-m-all-9-col-on-xl",all_10ColOnXl:"pf-m-all-10-col-on-xl",all_11ColOnXl:"pf-m-all-11-col-on-xl",all_12ColOnXl:"pf-m-all-12-col-on-xl",all_1ColOn_2xl:"pf-m-all-1-col-on-2xl",all_2ColOn_2xl:"pf-m-all-2-col-on-2xl",all_3ColOn_2xl:"pf-m-all-3-col-on-2xl",all_4ColOn_2xl:"pf-m-all-4-col-on-2xl",all_5ColOn_2xl:"pf-m-all-5-col-on-2xl",all_6ColOn_2xl:"pf-m-all-6-col-on-2xl",all_7ColOn_2xl:"pf-m-all-7-col-on-2xl",all_8ColOn_2xl:"pf-m-all-8-col-on-2xl",all_9ColOn_2xl:"pf-m-all-9-col-on-2xl",all_10ColOn_2xl:"pf-m-all-10-col-on-2xl",all_11ColOn_2xl:"pf-m-all-11-col-on-2xl",all_12ColOn_2xl:"pf-m-all-12-col-on-2xl","1Col":"pf-m-1-col","2Col":"pf-m-2-col","3Col":"pf-m-3-col","4Col":"pf-m-4-col","5Col":"pf-m-5-col","6Col":"pf-m-6-col","7Col":"pf-m-7-col","8Col":"pf-m-8-col","9Col":"pf-m-9-col","10Col":"pf-m-10-col","11Col":"pf-m-11-col","12Col":"pf-m-12-col",offset_1Col:"pf-m-offset-1-col",offset_2Col:"pf-m-offset-2-col",offset_3Col:"pf-m-offset-3-col",offset_4Col:"pf-m-offset-4-col",offset_5Col:"pf-m-offset-5-col",offset_6Col:"pf-m-offset-6-col",offset_7Col:"pf-m-offset-7-col",offset_8Col:"pf-m-offset-8-col",offset_9Col:"pf-m-offset-9-col",offset_10Col:"pf-m-offset-10-col",offset_11Col:"pf-m-offset-11-col",offset_12Col:"pf-m-offset-12-col","1Row":"pf-m-1-row","2Row":"pf-m-2-row","3Row":"pf-m-3-row","4Row":"pf-m-4-row","5Row":"pf-m-5-row","6Row":"pf-m-6-row","7Row":"pf-m-7-row","8Row":"pf-m-8-row","9Row":"pf-m-9-row","10Row":"pf-m-10-row","11Row":"pf-m-11-row","12Row":"pf-m-12-row","1ColOnSm":"pf-m-1-col-on-sm","2ColOnSm":"pf-m-2-col-on-sm","3ColOnSm":"pf-m-3-col-on-sm","4ColOnSm":"pf-m-4-col-on-sm","5ColOnSm":"pf-m-5-col-on-sm","6ColOnSm":"pf-m-6-col-on-sm","7ColOnSm":"pf-m-7-col-on-sm","8ColOnSm":"pf-m-8-col-on-sm","9ColOnSm":"pf-m-9-col-on-sm","10ColOnSm":"pf-m-10-col-on-sm","11ColOnSm":"pf-m-11-col-on-sm","12ColOnSm":"pf-m-12-col-on-sm",offset_1ColOnSm:"pf-m-offset-1-col-on-sm",offset_2ColOnSm:"pf-m-offset-2-col-on-sm",offset_3ColOnSm:"pf-m-offset-3-col-on-sm",offset_4ColOnSm:"pf-m-offset-4-col-on-sm",offset_5ColOnSm:"pf-m-offset-5-col-on-sm",offset_6ColOnSm:"pf-m-offset-6-col-on-sm",offset_7ColOnSm:"pf-m-offset-7-col-on-sm",offset_8ColOnSm:"pf-m-offset-8-col-on-sm",offset_9ColOnSm:"pf-m-offset-9-col-on-sm",offset_10ColOnSm:"pf-m-offset-10-col-on-sm",offset_11ColOnSm:"pf-m-offset-11-col-on-sm",offset_12ColOnSm:"pf-m-offset-12-col-on-sm","1RowOnSm":"pf-m-1-row-on-sm","2RowOnSm":"pf-m-2-row-on-sm","3RowOnSm":"pf-m-3-row-on-sm","4RowOnSm":"pf-m-4-row-on-sm","5RowOnSm":"pf-m-5-row-on-sm","6RowOnSm":"pf-m-6-row-on-sm","7RowOnSm":"pf-m-7-row-on-sm","8RowOnSm":"pf-m-8-row-on-sm","9RowOnSm":"pf-m-9-row-on-sm","10RowOnSm":"pf-m-10-row-on-sm","11RowOnSm":"pf-m-11-row-on-sm","12RowOnSm":"pf-m-12-row-on-sm","1ColOnMd":"pf-m-1-col-on-md","2ColOnMd":"pf-m-2-col-on-md","3ColOnMd":"pf-m-3-col-on-md","4ColOnMd":"pf-m-4-col-on-md","5ColOnMd":"pf-m-5-col-on-md","6ColOnMd":"pf-m-6-col-on-md","7ColOnMd":"pf-m-7-col-on-md","8ColOnMd":"pf-m-8-col-on-md","9ColOnMd":"pf-m-9-col-on-md","10ColOnMd":"pf-m-10-col-on-md","11ColOnMd":"pf-m-11-col-on-md","12ColOnMd":"pf-m-12-col-on-md",offset_1ColOnMd:"pf-m-offset-1-col-on-md",offset_2ColOnMd:"pf-m-offset-2-col-on-md",offset_3ColOnMd:"pf-m-offset-3-col-on-md",offset_4ColOnMd:"pf-m-offset-4-col-on-md",offset_5ColOnMd:"pf-m-offset-5-col-on-md",offset_6ColOnMd:"pf-m-offset-6-col-on-md",offset_7ColOnMd:"pf-m-offset-7-col-on-md",offset_8ColOnMd:"pf-m-offset-8-col-on-md",offset_9ColOnMd:"pf-m-offset-9-col-on-md",offset_10ColOnMd:"pf-m-offset-10-col-on-md",offset_11ColOnMd:"pf-m-offset-11-col-on-md",offset_12ColOnMd:"pf-m-offset-12-col-on-md","1RowOnMd":"pf-m-1-row-on-md","2RowOnMd":"pf-m-2-row-on-md","3RowOnMd":"pf-m-3-row-on-md","4RowOnMd":"pf-m-4-row-on-md","5RowOnMd":"pf-m-5-row-on-md","6RowOnMd":"pf-m-6-row-on-md","7RowOnMd":"pf-m-7-row-on-md","8RowOnMd":"pf-m-8-row-on-md","9RowOnMd":"pf-m-9-row-on-md","10RowOnMd":"pf-m-10-row-on-md","11RowOnMd":"pf-m-11-row-on-md","12RowOnMd":"pf-m-12-row-on-md","1ColOnLg":"pf-m-1-col-on-lg","2ColOnLg":"pf-m-2-col-on-lg","3ColOnLg":"pf-m-3-col-on-lg","4ColOnLg":"pf-m-4-col-on-lg","5ColOnLg":"pf-m-5-col-on-lg","6ColOnLg":"pf-m-6-col-on-lg","7ColOnLg":"pf-m-7-col-on-lg","8ColOnLg":"pf-m-8-col-on-lg","9ColOnLg":"pf-m-9-col-on-lg","10ColOnLg":"pf-m-10-col-on-lg","11ColOnLg":"pf-m-11-col-on-lg","12ColOnLg":"pf-m-12-col-on-lg",offset_1ColOnLg:"pf-m-offset-1-col-on-lg",offset_2ColOnLg:"pf-m-offset-2-col-on-lg",offset_3ColOnLg:"pf-m-offset-3-col-on-lg",offset_4ColOnLg:"pf-m-offset-4-col-on-lg",offset_5ColOnLg:"pf-m-offset-5-col-on-lg",offset_6ColOnLg:"pf-m-offset-6-col-on-lg",offset_7ColOnLg:"pf-m-offset-7-col-on-lg",offset_8ColOnLg:"pf-m-offset-8-col-on-lg",offset_9ColOnLg:"pf-m-offset-9-col-on-lg",offset_10ColOnLg:"pf-m-offset-10-col-on-lg",offset_11ColOnLg:"pf-m-offset-11-col-on-lg",offset_12ColOnLg:"pf-m-offset-12-col-on-lg","1RowOnLg":"pf-m-1-row-on-lg","2RowOnLg":"pf-m-2-row-on-lg","3RowOnLg":"pf-m-3-row-on-lg","4RowOnLg":"pf-m-4-row-on-lg","5RowOnLg":"pf-m-5-row-on-lg","6RowOnLg":"pf-m-6-row-on-lg","7RowOnLg":"pf-m-7-row-on-lg","8RowOnLg":"pf-m-8-row-on-lg","9RowOnLg":"pf-m-9-row-on-lg","10RowOnLg":"pf-m-10-row-on-lg","11RowOnLg":"pf-m-11-row-on-lg","12RowOnLg":"pf-m-12-row-on-lg","1ColOnXl":"pf-m-1-col-on-xl","2ColOnXl":"pf-m-2-col-on-xl","3ColOnXl":"pf-m-3-col-on-xl","4ColOnXl":"pf-m-4-col-on-xl","5ColOnXl":"pf-m-5-col-on-xl","6ColOnXl":"pf-m-6-col-on-xl","7ColOnXl":"pf-m-7-col-on-xl","8ColOnXl":"pf-m-8-col-on-xl","9ColOnXl":"pf-m-9-col-on-xl","10ColOnXl":"pf-m-10-col-on-xl","11ColOnXl":"pf-m-11-col-on-xl","12ColOnXl":"pf-m-12-col-on-xl",offset_1ColOnXl:"pf-m-offset-1-col-on-xl",offset_2ColOnXl:"pf-m-offset-2-col-on-xl",offset_3ColOnXl:"pf-m-offset-3-col-on-xl",offset_4ColOnXl:"pf-m-offset-4-col-on-xl",offset_5ColOnXl:"pf-m-offset-5-col-on-xl",offset_6ColOnXl:"pf-m-offset-6-col-on-xl",offset_7ColOnXl:"pf-m-offset-7-col-on-xl",offset_8ColOnXl:"pf-m-offset-8-col-on-xl",offset_9ColOnXl:"pf-m-offset-9-col-on-xl",offset_10ColOnXl:"pf-m-offset-10-col-on-xl",offset_11ColOnXl:"pf-m-offset-11-col-on-xl",offset_12ColOnXl:"pf-m-offset-12-col-on-xl","1RowOnXl":"pf-m-1-row-on-xl","2RowOnXl":"pf-m-2-row-on-xl","3RowOnXl":"pf-m-3-row-on-xl","4RowOnXl":"pf-m-4-row-on-xl","5RowOnXl":"pf-m-5-row-on-xl","6RowOnXl":"pf-m-6-row-on-xl","7RowOnXl":"pf-m-7-row-on-xl","8RowOnXl":"pf-m-8-row-on-xl","9RowOnXl":"pf-m-9-row-on-xl","10RowOnXl":"pf-m-10-row-on-xl","11RowOnXl":"pf-m-11-row-on-xl","12RowOnXl":"pf-m-12-row-on-xl","1ColOn_2xl":"pf-m-1-col-on-2xl","2ColOn_2xl":"pf-m-2-col-on-2xl","3ColOn_2xl":"pf-m-3-col-on-2xl","4ColOn_2xl":"pf-m-4-col-on-2xl","5ColOn_2xl":"pf-m-5-col-on-2xl","6ColOn_2xl":"pf-m-6-col-on-2xl","7ColOn_2xl":"pf-m-7-col-on-2xl","8ColOn_2xl":"pf-m-8-col-on-2xl","9ColOn_2xl":"pf-m-9-col-on-2xl","10ColOn_2xl":"pf-m-10-col-on-2xl","11ColOn_2xl":"pf-m-11-col-on-2xl","12ColOn_2xl":"pf-m-12-col-on-2xl",offset_1ColOn_2xl:"pf-m-offset-1-col-on-2xl",offset_2ColOn_2xl:"pf-m-offset-2-col-on-2xl",offset_3ColOn_2xl:"pf-m-offset-3-col-on-2xl",offset_4ColOn_2xl:"pf-m-offset-4-col-on-2xl",offset_5ColOn_2xl:"pf-m-offset-5-col-on-2xl",offset_6ColOn_2xl:"pf-m-offset-6-col-on-2xl",offset_7ColOn_2xl:"pf-m-offset-7-col-on-2xl",offset_8ColOn_2xl:"pf-m-offset-8-col-on-2xl",offset_9ColOn_2xl:"pf-m-offset-9-col-on-2xl",offset_10ColOn_2xl:"pf-m-offset-10-col-on-2xl",offset_11ColOn_2xl:"pf-m-offset-11-col-on-2xl",offset_12ColOn_2xl:"pf-m-offset-12-col-on-2xl","1RowOn_2xl":"pf-m-1-row-on-2xl","2RowOn_2xl":"pf-m-2-row-on-2xl","3RowOn_2xl":"pf-m-3-row-on-2xl","4RowOn_2xl":"pf-m-4-row-on-2xl","5RowOn_2xl":"pf-m-5-row-on-2xl","6RowOn_2xl":"pf-m-6-row-on-2xl","7RowOn_2xl":"pf-m-7-row-on-2xl","8RowOn_2xl":"pf-m-8-row-on-2xl","9RowOn_2xl":"pf-m-9-row-on-2xl","10RowOn_2xl":"pf-m-10-row-on-2xl","11RowOn_2xl":"pf-m-11-row-on-2xl","12RowOn_2xl":"pf-m-12-row-on-2xl",gutter:"pf-m-gutter"}};var yO;(function(e){e.xs="xs",e.sm="sm",e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"})(yO||(yO={}));var Qp;(function(e){e.sm="Sm",e.md="Md",e.lg="Lg",e.xl="Xl",e.xl2="_2xl"})(Qp||(Qp={}));const TA={name:"--pf-v5-l-grid--item--Order",value:"0",var:"var(--pf-v5-l-grid--item--Order)"},AA=e=>{var{children:t=null,className:n="",component:r="div",hasGutter:a,span:i=null,order:o,style:l}=e,s=Q(e,["children","className","component","hasGutter","span","order","style"]);const u=[aa.grid,i&&aa.modifiers[`all_${i}Col`]],c=r;return Object.entries(Qp).forEach(([f,d])=>{const h=f,p=s[h];p&&u.push(aa.modifiers[`all_${p}ColOn${d}`]),delete s[h]}),y.createElement(c,Object.assign({className:D(...u,a&&aa.modifiers.gutter,n),style:l||o?Object.assign(Object.assign({},l),pT(o,TA.name)):void 0},s),t)};AA.displayName="Grid";const Gi=e=>{var{children:t=null,className:n="",component:r="div",span:a=null,rowSpan:i=null,offset:o=null,order:l,style:s}=e,u=Q(e,["children","className","component","span","rowSpan","offset","order","style"]);const c=[aa.gridItem,a&&aa.modifiers[`${a}Col`],i&&aa.modifiers[`${i}Row`],o&&aa.modifiers[`offset_${o}Col`]],f=r;return Object.entries(Qp).forEach(([d,h])=>{const p=d,g=`${p}RowSpan`,b=`${p}Offset`,m=u[p],v=u[g],_=u[b];m&&c.push(aa.modifiers[`${m}ColOn${h}`]),v&&c.push(aa.modifiers[`${v}RowOn${h}`]),_&&c.push(aa.modifiers[`offset_${_}ColOn${h}`]),delete u[p],delete u[g],delete u[b]}),y.createElement(f,Object.assign({className:D(...c,n),style:s||l?Object.assign(Object.assign({},s),pT(l,TA.name)):void 0},u),t)};Gi.displayName="GridItem";const Jc={modifiers:{wrap:"pf-m-wrap",fill:"pf-m-fill",gutter:"pf-m-gutter"},split:"pf-v5-l-split",splitItem:"pf-v5-l-split__item"},MA=e=>{var{hasGutter:t=!1,isWrappable:n=!1,className:r="",children:a=null,component:i="div"}=e,o=Q(e,["hasGutter","isWrappable","className","children","component"]);const l=i;return y.createElement(l,Object.assign({},o,{className:D(Jc.split,t&&Jc.modifiers.gutter,n&&Jc.modifiers.wrap,r)}),a)};MA.displayName="Split";const cp=e=>{var{isFilled:t=!1,className:n="",children:r=null}=e,a=Q(e,["isFilled","className","children"]);return y.createElement("div",Object.assign({},a,{className:D(Jc.splitItem,t&&Jc.modifiers.fill,n)}),r)};cp.displayName="SplitItem";const nB={name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0},rB=ht(nB),aB=rB,iB={name:"BalanceScaleIcon",height:512,width:640,svgPath:"M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z",yOffset:0,xOffset:0},oB=ht(iB),lB={name:"BarsIcon",height:512,width:448,svgPath:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z",yOffset:0,xOffset:0},sB=ht(lB),uB={name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0},cB=ht(uB),fB=cB,dB={name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0},hB=ht(dB),pB=hB,mB={name:"FilterIcon",height:512,width:512,svgPath:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z",yOffset:0,xOffset:0},gB=ht(mB),vB={name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0},yB=ht(vB),bO=yB,bB={name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0},_B=ht(bB),xB=_B,wB={name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0},SB=ht(wB),OB=SB,CB={name:"OutlinedQuestionCircleIcon",height:512,width:512,svgPath:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z",yOffset:0,xOffset:0},EB=ht(CB),kB={name:"PowerOffIcon",height:512,width:512,svgPath:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z",yOffset:0,xOffset:0},PB=ht(kB),TB={name:"UserIcon",height:512,width:448,svgPath:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z",yOffset:0,xOffset:0},AB=ht(TB);/** * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. @@ -52,8 +52,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function kl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IB(){return Math.random().toString(36).substr(2,8)}function wO(e,t){return{usr:e.state,key:e.key,idx:t}}function If(e,t,n,r){return n===void 0&&(n=null),Pt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:n,key:t&&t.key||r||IB()})}function Pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ga(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function RB(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Ut.Pop,s=null,u=c();u==null&&(u=0,o.replaceState(Pt({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=Ut.Pop;let b=c(),m=b==null?null:b-u;u=b,s&&s({action:l,location:g.location,delta:m})}function d(b,m){l=Ut.Push;let v=If(g.location,b,m);n&&n(v,b),u=c()+1;let _=wO(v,u),x=g.createHref(v);try{o.pushState(_,"",x)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(x)}i&&s&&s({action:l,location:g.location,delta:1})}function h(b,m){l=Ut.Replace;let v=If(g.location,b,m);n&&n(v,b),u=c();let _=wO(v,u),x=g.createHref(v);o.replaceState(_,"",x),i&&s&&s({action:l,location:g.location,delta:0})}function p(b){let m=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof b=="string"?b:Pl(b);return v=v.replace(/ $/,"%20"),Ye(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return l},get location(){return e(a,o)},listen(b){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(xO,f),s=b,()=>{a.removeEventListener(xO,f),s=null}},createHref(b){return t(a,b)},createURL:p,encodeLocation(b){let m=p(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return o.go(b)}};return g}var Tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tt||(Tt={}));const $B=new Set(["lazy","caseSensitive","path","id","index","children"]);function LB(e){return e.index===!0}function Lb(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((a,i)=>{let o=[...n,i],l=typeof a.id=="string"?a.id:o.join("-");if(Ye(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ye(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),LB(a)){let s=Pt({},a,t(a),{id:l});return r[l]=s,s}else{let s=Pt({},a,t(a),{id:l,children:void 0});return r[l]=s,a.children&&(s.children=Lb(a.children,t,o,r)),s}})}function Os(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ga(t):t,a=Ru(r.pathname||"/",n);if(a==null)return null;let i=RA(e);DB(i);let o=null;for(let l=0;o==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(Ye(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=vi([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),RA(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:WB(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let s of $A(i.path))a(i,o,s)}),t}function $A(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=$A(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function DB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:VB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const NB=/^:[\w-]+$/,FB=3,zB=2,BB=1,UB=10,HB=-2,SO=e=>e==="*";function WB(e,t){let n=e.split("/"),r=n.length;return n.some(SO)&&(r+=HB),t&&(r+=zB),n.filter(a=>!SO(a)).reduce((a,i)=>a+(NB.test(i)?FB:i===""?BB:UB),r)}function VB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function qB(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o{let{paramName:d,isOptional:h}=c;if(d==="*"){let g=l[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=l[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function KB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function XB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ru(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function YB(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ga(e):e;return{pathname:n?n.startsWith("/")?n:QB(n,t):t,search:ZB(r),hash:eU(a)}}function QB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Rv(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function LA(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m_(e,t){let n=LA(e);return t?n.map((r,a)=>a===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function g_(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Ga(e):(a=Pt({},e),Ye(!a.pathname||!a.pathname.includes("?"),Rv("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),Rv("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),Rv("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;a.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=YB(a,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const vi=e=>e.join("/").replace(/\/\/+/g,"/"),JB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,tU=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let a=new Headers(r.headers);return a.set("Location",t),new Response(null,Pt({},r,{headers:a}))};class v_{constructor(t,n,r,a){a===void 0&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function y_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const jA=["post","put","patch","delete"],nU=new Set(jA),rU=["get",...jA],aU=new Set(rU),iU=new Set([301,302,303,307,308]),oU=new Set([307,308]),$v={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},b_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sU=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),DA="remix-router-transitions";function uU(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ye(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;a=G=>({hasErrorBoundary:H(G)})}else a=sU;let i={},o=Lb(e.routes,a,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||hU,c=Pt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,d=new Set,h=null,p=null,g=null,b=e.hydrationData!=null,m=Os(o,e.history.location,s),v=null;if(m==null){let H=kr(404,{pathname:e.history.location.pathname}),{matches:G,route:ee}=RO(o);m=G,v={[ee.id]:H}}let _,x=m.some(H=>H.route.lazy),O=m.some(H=>H.route.loader);if(x)_=!1;else if(!O)_=!0;else if(c.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,G=e.hydrationData?e.hydrationData.errors:null,ee=de=>de.route.loader?typeof de.route.loader=="function"&&de.route.loader.hydrate===!0?!1:H&&H[de.route.id]!==void 0||G&&G[de.route.id]!==void 0:!0;if(G){let de=m.findIndex(be=>G[be.route.id]!==void 0);_=m.slice(0,de+1).every(ee)}else _=m.every(ee)}else _=e.hydrationData!=null;let S,w={historyAction:e.history.action,location:e.history.location,matches:m,initialized:_,navigation:$v,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=Ut.Pop,A=!1,I,P=!1,T=new Map,E=null,L=!1,N=!1,U=[],W=[],$=new Map,F=0,k=-1,X=new Map,te=new Set,R=new Map,J=new Map,ae=new Set,ue=new Map,ve=new Map,ke=!1;function q(){if(f=e.history.listen(H=>{let{action:G,location:ee,delta:de}=H;if(ke){ke=!1;return}kl(ve.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=Gt({currentLocation:w.location,nextLocation:ee,historyAction:G});if(be&&de!=null){ke=!0,e.history.go(de*-1),dt(be,{state:"blocked",location:ee,proceed(){dt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),e.history.go(de)},reset(){let We=new Map(w.blockers);We.set(be,uc),K({blockers:We})}});return}return Ce(G,ee)}),n){CU(t,T);let H=()=>EU(t,T);t.addEventListener("pagehide",H),E=()=>t.removeEventListener("pagehide",H)}return w.initialized||Ce(Ut.Pop,w.location,{initialHydration:!0}),S}function Z(){f&&f(),E&&E(),d.clear(),I&&I.abort(),w.fetchers.forEach((H,G)=>pe(G)),w.blockers.forEach((H,G)=>Ze(G))}function ie(H){return d.add(H),()=>d.delete(H)}function K(H,G){G===void 0&&(G={}),w=Pt({},w,H);let ee=[],de=[];c.v7_fetcherPersist&&w.fetchers.forEach((be,We)=>{be.state==="idle"&&(ae.has(We)?de.push(We):ee.push(We))}),[...d].forEach(be=>be(w,{deletedFetchers:de,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),c.v7_fetcherPersist&&(ee.forEach(be=>w.fetchers.delete(be)),de.forEach(be=>pe(be)))}function Te(H,G,ee){var de,be;let{flushSync:We}=ee===void 0?{}:ee,Ie=w.actionData!=null&&w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&w.navigation.state==="loading"&&((de=H.state)==null?void 0:de._isRedirect)!==!0,Se;G.actionData?Object.keys(G.actionData).length>0?Se=G.actionData:Se=null:Ie?Se=w.actionData:Se=null;let qe=G.loaderData?MO(w.loaderData,G.loaderData,G.matches||[],G.errors):w.loaderData,ze=w.blockers;ze.size>0&&(ze=new Map(ze),ze.forEach((Ne,Et)=>ze.set(Et,uc)));let cn=A===!0||w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&((be=H.state)==null?void 0:be._isRedirect)!==!0;l&&(o=l,l=void 0),L||C===Ut.Pop||(C===Ut.Push?e.history.push(H,H.state):C===Ut.Replace&&e.history.replace(H,H.state));let fn;if(C===Ut.Pop){let Ne=T.get(w.location.pathname);Ne&&Ne.has(H.pathname)?fn={currentLocation:w.location,nextLocation:H}:T.has(H.pathname)&&(fn={currentLocation:H,nextLocation:w.location})}else if(P){let Ne=T.get(w.location.pathname);Ne?Ne.add(H.pathname):(Ne=new Set([H.pathname]),T.set(w.location.pathname,Ne)),fn={currentLocation:w.location,nextLocation:H}}K(Pt({},G,{actionData:Se,loaderData:qe,historyAction:C,location:H,initialized:!0,navigation:$v,revalidation:"idle",restoreScrollPosition:xt(H,G.matches||w.matches),preventScrollReset:cn,blockers:ze}),{viewTransitionOpts:fn,flushSync:We===!0}),C=Ut.Pop,A=!1,P=!1,L=!1,N=!1,U=[],W=[]}async function ye(H,G){if(typeof H=="number"){e.history.go(H);return}let ee=jb(w.location,w.matches,s,c.v7_prependBasename,H,c.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:de,submission:be,error:We}=OO(c.v7_normalizeFormMethod,!1,ee,G),Ie=w.location,Se=If(w.location,de,G&&G.state);Se=Pt({},Se,e.history.encodeLocation(Se));let qe=G&&G.replace!=null?G.replace:void 0,ze=Ut.Push;qe===!0?ze=Ut.Replace:qe===!1||be!=null&&ia(be.formMethod)&&be.formAction===w.location.pathname+w.location.search&&(ze=Ut.Replace);let cn=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,fn=(G&&G.unstable_flushSync)===!0,Ne=Gt({currentLocation:Ie,nextLocation:Se,historyAction:ze});if(Ne){dt(Ne,{state:"blocked",location:Se,proceed(){dt(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),ye(H,G)},reset(){let Et=new Map(w.blockers);Et.set(Ne,uc),K({blockers:Et})}});return}return await Ce(ze,Se,{submission:be,pendingError:We,preventScrollReset:cn,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:fn})}function Ae(){if(z(),K({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Ce(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Ce(C||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Ce(H,G,ee){I&&I.abort(),I=null,C=H,L=(ee&&ee.startUninterruptedRevalidation)===!0,Fe(w.location,w.matches),A=(ee&&ee.preventScrollReset)===!0,P=(ee&&ee.enableViewTransition)===!0;let de=l||o,be=ee&&ee.overrideNavigation,We=Os(de,G,s),Ie=(ee&&ee.flushSync)===!0;if(!We){let Ne=kr(404,{pathname:G.pathname}),{matches:Et,route:tn}=RO(de);ya(),Te(G,{matches:Et,loaderData:{},errors:{[tn.id]:Ne}},{flushSync:Ie});return}if(w.initialized&&!N&&bU(w.location,G)&&!(ee&&ee.submission&&ia(ee.submission.formMethod))){Te(G,{matches:We},{flushSync:Ie});return}I=new AbortController;let Se=rs(e.history,G,I.signal,ee&&ee.submission),qe;if(ee&&ee.pendingError)qe=[Zc(We).route.id,{type:Tt.error,error:ee.pendingError}];else if(ee&&ee.submission&&ia(ee.submission.formMethod)){let Ne=await Re(Se,G,ee.submission,We,{replace:ee.replace,flushSync:Ie});if(Ne.shortCircuited)return;qe=Ne.pendingActionResult,be=Lv(G,ee.submission),Ie=!1,Se=rs(e.history,Se.url,Se.signal)}let{shortCircuited:ze,loaderData:cn,errors:fn}=await Ge(Se,G,We,be,ee&&ee.submission,ee&&ee.fetcherSubmission,ee&&ee.replace,ee&&ee.initialHydration===!0,Ie,qe);ze||(I=null,Te(G,Pt({matches:We},IO(qe),{loaderData:cn,errors:fn})))}async function Re(H,G,ee,de,be){be===void 0&&(be={}),z();let We=SU(G,ee);K({navigation:We},{flushSync:be.flushSync===!0});let Ie,Se=Nb(de,G);if(!Se.route.action&&!Se.route.lazy)Ie={type:Tt.error,error:kr(405,{method:H.method,pathname:G.pathname,routeId:Se.route.id})};else if(Ie=(await De("action",H,[Se],de))[0],H.signal.aborted)return{shortCircuited:!0};if(el(Ie)){let qe;return be&&be.replace!=null?qe=be.replace:qe=PO(Ie.response.headers.get("Location"),new URL(H.url),s)===w.location.pathname+w.location.search,await xe(H,Ie,{submission:ee,replace:qe}),{shortCircuited:!0}}if(Zo(Ie))throw kr(400,{type:"defer-action"});if(Ir(Ie)){let qe=Zc(de,Se.route.id);return(be&&be.replace)!==!0&&(C=Ut.Push),{pendingActionResult:[qe.route.id,Ie]}}return{pendingActionResult:[Se.route.id,Ie]}}async function Ge(H,G,ee,de,be,We,Ie,Se,qe,ze){let cn=de||Lv(G,be),fn=be||We||jO(cn),Ne=l||o,[Et,tn]=CO(e.history,w,ee,fn,G,c.v7_partialHydration&&Se===!0,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ne,s,ze);if(ya(nt=>!(ee&&ee.some(Pn=>Pn.route.id===nt))||Et&&Et.some(Pn=>Pn.route.id===nt)),k=++F,Et.length===0&&tn.length===0){let nt=Ke();return Te(G,Pt({matches:ee,loaderData:{},errors:ze&&Ir(ze[1])?{[ze[0]]:ze[1].error}:null},IO(ze),nt?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(!L&&(!c.v7_partialHydration||!Se)){tn.forEach(Pn=>{let _r=w.fetchers.get(Pn.key),dn=cc(void 0,_r?_r.data:void 0);w.fetchers.set(Pn.key,dn)});let nt;ze&&!Ir(ze[1])?nt={[ze[0]]:ze[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?nt=null:nt=w.actionData),K(Pt({navigation:cn},nt!==void 0?{actionData:nt}:{},tn.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe})}tn.forEach(nt=>{$.has(nt.key)&&ge(nt.key),nt.controller&&$.set(nt.key,nt.controller)});let Ku=()=>tn.forEach(nt=>ge(nt.key));I&&I.signal.addEventListener("abort",Ku);let{loaderResults:Ui,fetcherResults:Ql}=await Je(w.matches,ee,Et,tn,H);if(H.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ku),tn.forEach(nt=>$.delete(nt.key));let Jl=$O([...Ui,...Ql]);if(Jl){if(Jl.idx>=Et.length){let nt=tn[Jl.idx-Et.length].key;te.add(nt)}return await xe(H,Jl.result,{replace:Ie}),{shortCircuited:!0}}let{loaderData:Zl,errors:ba}=AO(w,ee,Et,Ui,ze,tn,Ql,ue);ue.forEach((nt,Pn)=>{nt.subscribe(_r=>{(_r||nt.done)&&ue.delete(Pn)})}),c.v7_partialHydration&&Se&&w.errors&&Object.entries(w.errors).filter(nt=>{let[Pn]=nt;return!Et.some(_r=>_r.route.id===Pn)}).forEach(nt=>{let[Pn,_r]=nt;ba=Object.assign(ba||{},{[Pn]:_r})});let Xd=Ke(),Yd=Bt(k),Qd=Xd||Yd||tn.length>0;return Pt({loaderData:Zl,errors:ba},Qd?{fetchers:new Map(w.fetchers)}:{})}function _e(H,G,ee,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(H)&&ge(H);let be=(de&&de.unstable_flushSync)===!0,We=l||o,Ie=jb(w.location,w.matches,s,c.v7_prependBasename,ee,c.v7_relativeSplatPath,G,de==null?void 0:de.relative),Se=Os(We,Ie,s);if(!Se){he(H,G,kr(404,{pathname:Ie}),{flushSync:be});return}let{path:qe,submission:ze,error:cn}=OO(c.v7_normalizeFormMethod,!0,Ie,de);if(cn){he(H,G,cn,{flushSync:be});return}let fn=Nb(Se,qe);if(A=(de&&de.preventScrollReset)===!0,ze&&ia(ze.formMethod)){re(H,G,qe,fn,Se,be,ze);return}R.set(H,{routeId:G,path:qe}),oe(H,G,qe,fn,Se,be,ze)}async function re(H,G,ee,de,be,We,Ie){if(z(),R.delete(H),!de.route.action&&!de.route.lazy){let dn=kr(405,{method:Ie.formMethod,pathname:ee,routeId:G});he(H,G,dn,{flushSync:We});return}let Se=w.fetchers.get(H);Y(H,OU(Ie,Se),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal,Ie);$.set(H,qe);let cn=F,Ne=(await De("action",ze,[de],be))[0];if(ze.signal.aborted){$.get(H)===qe&&$.delete(H);return}if(c.v7_fetcherPersist&&ae.has(H)){if(el(Ne)||Ir(Ne)){Y(H,Ki(void 0));return}}else{if(el(Ne))if($.delete(H),k>cn){Y(H,Ki(void 0));return}else return te.add(H),Y(H,cc(Ie)),xe(ze,Ne,{fetcherSubmission:Ie});if(Ir(Ne)){he(H,G,Ne.error);return}}if(Zo(Ne))throw kr(400,{type:"defer-action"});let Et=w.navigation.location||w.location,tn=rs(e.history,Et,qe.signal),Ku=l||o,Ui=w.navigation.state!=="idle"?Os(Ku,w.navigation.location,s):w.matches;Ye(Ui,"Didn't find any matches after fetcher action");let Ql=++F;X.set(H,Ql);let Jl=cc(Ie,Ne.data);w.fetchers.set(H,Jl);let[Zl,ba]=CO(e.history,w,Ui,Ie,Et,!1,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ku,s,[de.route.id,Ne]);ba.filter(dn=>dn.key!==H).forEach(dn=>{let Xu=dn.key,Rw=w.fetchers.get(Xu),rj=cc(void 0,Rw?Rw.data:void 0);w.fetchers.set(Xu,rj),$.has(Xu)&&ge(Xu),dn.controller&&$.set(Xu,dn.controller)}),K({fetchers:new Map(w.fetchers)});let Xd=()=>ba.forEach(dn=>ge(dn.key));qe.signal.addEventListener("abort",Xd);let{loaderResults:Yd,fetcherResults:Qd}=await Je(w.matches,Ui,Zl,ba,tn);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",Xd),X.delete(H),$.delete(H),ba.forEach(dn=>$.delete(dn.key));let nt=$O([...Yd,...Qd]);if(nt){if(nt.idx>=Zl.length){let dn=ba[nt.idx-Zl.length].key;te.add(dn)}return xe(tn,nt.result)}let{loaderData:Pn,errors:_r}=AO(w,w.matches,Zl,Yd,void 0,ba,Qd,ue);if(w.fetchers.has(H)){let dn=Ki(Ne.data);w.fetchers.set(H,dn)}Bt(Ql),w.navigation.state==="loading"&&Ql>k?(Ye(C,"Expected pending action"),I&&I.abort(),Te(w.navigation.location,{matches:Ui,loaderData:Pn,errors:_r,fetchers:new Map(w.fetchers)})):(K({errors:_r,loaderData:MO(w.loaderData,Pn,Ui,_r),fetchers:new Map(w.fetchers)}),N=!1)}async function oe(H,G,ee,de,be,We,Ie){let Se=w.fetchers.get(H);Y(H,cc(Ie,Se?Se.data:void 0),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal);$.set(H,qe);let cn=F,Ne=(await De("loader",ze,[de],be))[0];if(Zo(Ne)&&(Ne=await BA(Ne,ze.signal,!0)||Ne),$.get(H)===qe&&$.delete(H),!ze.signal.aborted){if(ae.has(H)){Y(H,Ki(void 0));return}if(el(Ne))if(k>cn){Y(H,Ki(void 0));return}else{te.add(H),await xe(ze,Ne);return}if(Ir(Ne)){he(H,G,Ne.error);return}Ye(!Zo(Ne),"Unhandled fetcher deferred data"),Y(H,Ki(Ne.data))}}async function xe(H,G,ee){let{submission:de,fetcherSubmission:be,replace:We}=ee===void 0?{}:ee;G.response.headers.has("X-Remix-Revalidate")&&(N=!0);let Ie=G.response.headers.get("Location");Ye(Ie,"Expected a Location header on the redirect Response"),Ie=PO(Ie,new URL(H.url),s);let Se=If(w.location,Ie,{_isRedirect:!0});if(n){let Et=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Et=!0;else if(b_.test(Ie)){const tn=e.history.createURL(Ie);Et=tn.origin!==t.location.origin||Ru(tn.pathname,s)==null}if(Et){We?t.location.replace(Ie):t.location.assign(Ie);return}}I=null;let qe=We===!0?Ut.Replace:Ut.Push,{formMethod:ze,formAction:cn,formEncType:fn}=w.navigation;!de&&!be&&ze&&cn&&fn&&(de=jO(w.navigation));let Ne=de||be;if(oU.has(G.response.status)&&Ne&&ia(Ne.formMethod))await Ce(qe,Se,{submission:Pt({},Ne,{formAction:Ie}),preventScrollReset:A});else{let Et=Lv(Se,de);await Ce(qe,Se,{overrideNavigation:Et,fetcherSubmission:be,preventScrollReset:A})}}async function De(H,G,ee,de){try{let be=await pU(u,H,G,ee,de,i,a);return await Promise.all(be.map((We,Ie)=>{if(_U(We)){let Se=We.result;return{type:Tt.redirect,response:vU(Se,G,ee[Ie].route.id,de,s,c.v7_relativeSplatPath)}}return gU(We)}))}catch(be){return ee.map(()=>({type:Tt.error,error:be}))}}async function Je(H,G,ee,de,be){let[We,...Ie]=await Promise.all([ee.length?De("loader",be,ee,G):[],...de.map(Se=>{if(Se.matches&&Se.match&&Se.controller){let qe=rs(e.history,Se.path,Se.controller.signal);return De("loader",qe,[Se.match],Se.matches).then(ze=>ze[0])}else return Promise.resolve({type:Tt.error,error:kr(404,{pathname:Se.path})})})]);return await Promise.all([LO(H,ee,We,We.map(()=>be.signal),!1,w.loaderData),LO(H,de.map(Se=>Se.match),Ie,de.map(Se=>Se.controller?Se.controller.signal:null),!0)]),{loaderResults:We,fetcherResults:Ie}}function z(){N=!0,U.push(...ya()),R.forEach((H,G)=>{$.has(G)&&(W.push(G),ge(G))})}function Y(H,G,ee){ee===void 0&&(ee={}),w.fetchers.set(H,G),K({fetchers:new Map(w.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function he(H,G,ee,de){de===void 0&&(de={});let be=Zc(w.matches,G);pe(H),K({errors:{[be.route.id]:ee},fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function se(H){return c.v7_fetcherPersist&&(J.set(H,(J.get(H)||0)+1),ae.has(H)&&ae.delete(H)),w.fetchers.get(H)||lU}function pe(H){let G=w.fetchers.get(H);$.has(H)&&!(G&&G.state==="loading"&&X.has(H))&&ge(H),R.delete(H),X.delete(H),te.delete(H),ae.delete(H),w.fetchers.delete(H)}function He(H){if(c.v7_fetcherPersist){let G=(J.get(H)||0)-1;G<=0?(J.delete(H),ae.add(H)):J.set(H,G)}else pe(H);K({fetchers:new Map(w.fetchers)})}function ge(H){let G=$.get(H);Ye(G,"Expected fetch controller: "+H),G.abort(),$.delete(H)}function Pe(H){for(let G of H){let ee=se(G),de=Ki(ee.data);w.fetchers.set(G,de)}}function Ke(){let H=[],G=!1;for(let ee of te){let de=w.fetchers.get(ee);Ye(de,"Expected fetcher: "+ee),de.state==="loading"&&(te.delete(ee),H.push(ee),G=!0)}return Pe(H),G}function Bt(H){let G=[];for(let[ee,de]of X)if(de0}function $e(H,G){let ee=w.blockers.get(H)||uc;return ve.get(H)!==G&&ve.set(H,G),ee}function Ze(H){w.blockers.delete(H),ve.delete(H)}function dt(H,G){let ee=w.blockers.get(H)||uc;Ye(ee.state==="unblocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="proceeding"||ee.state==="blocked"&&G.state==="unblocked"||ee.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+ee.state+" -> "+G.state);let de=new Map(w.blockers);de.set(H,G),K({blockers:de})}function Gt(H){let{currentLocation:G,nextLocation:ee,historyAction:de}=H;if(ve.size===0)return;ve.size>1&&kl(!1,"A router only supports one blocker at a time");let be=Array.from(ve.entries()),[We,Ie]=be[be.length-1],Se=w.blockers.get(We);if(!(Se&&Se.state==="proceeding")&&Ie({currentLocation:G,nextLocation:ee,historyAction:de}))return We}function ya(H){let G=[];return ue.forEach((ee,de)=>{(!H||H(de))&&(ee.cancel(),G.push(de),ue.delete(de))}),G}function Bi(H,G,ee){if(h=H,g=G,p=ee||null,!b&&w.navigation===$v){b=!0;let de=xt(w.location,w.matches);de!=null&&K({restoreScrollPosition:de})}return()=>{h=null,g=null,p=null}}function Kd(H,G){return p&&p(H,G.map(de=>jB(de,w.loaderData)))||H.key}function Fe(H,G){if(h&&g){let ee=Kd(H,G);h[ee]=g()}}function xt(H,G){if(h){let ee=Kd(H,G),de=h[ee];if(typeof de=="number")return de}return null}function Za(H){i={},l=Lb(H,a,void 0,i)}return S={get basename(){return s},get future(){return c},get state(){return w},get routes(){return o},get window(){return t},initialize:q,subscribe:ie,enableScrollRestoration:Bi,navigate:ye,fetch:_e,revalidate:Ae,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:se,deleteFetcher:He,dispose:Z,getBlocker:$e,deleteBlocker:Ze,_internalFetchControllers:$,_internalActiveDeferreds:ue,_internalSetRoutes:Za},S}function cU(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function jb(e,t,n,r,a,i,o,l){let s,u;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){u=f;break}}else s=t,u=t[t.length-1];let c=g_(a||".",m_(s,i),Ru(e.pathname,n)||e.pathname,l==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&u&&u.route.index&&!__(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:vi([n,c.pathname])),Pl(c)}function OO(e,t,n,r){if(!r||!cU(r))return{path:n};if(r.formMethod&&!wU(r.formMethod))return{path:n,error:kr(405,{method:r.formMethod})};let a=()=>({path:n,error:kr(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),l=FA(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ia(o))return a();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[g,b]=p;return""+h+g+"="+b+` -`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!ia(o))return a();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return a()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Db(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Db(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=TO(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=TO(s)}catch{return a()}let c={formMethod:o,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ia(c.formMethod))return{path:n,submission:c};let f=Ga(n);return t&&f.search&&__(f.search)&&s.append("index",""),f.search="?"+s,{path:Pl(f),submission:c}}function fU(e,t){let n=e;if(t){let r=e.findIndex(a=>a.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function CO(e,t,n,r,a,i,o,l,s,u,c,f,d,h,p,g){let b=g?Ir(g[1])?g[1].error:g[1].data:void 0,m=e.createURL(t.location),v=e.createURL(a),_=g&&Ir(g[1])?g[0]:void 0,x=_?fU(n,_):n,O=g?g[1].statusCode:void 0,S=o&&O&&O>=400,w=x.filter((A,I)=>{let{route:P}=A;if(P.lazy)return!0;if(P.loader==null)return!1;if(i)return typeof P.loader!="function"||P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(dU(t.loaderData,t.matches[I],A)||s.some(L=>L===A.route.id))return!0;let T=t.matches[I],E=A;return EO(A,Pt({currentUrl:m,currentParams:T.params,nextUrl:v,nextParams:E.params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l||m.pathname+m.search===v.pathname+v.search||m.search!==v.search||NA(T,E)}))}),C=[];return f.forEach((A,I)=>{if(i||!n.some(N=>N.route.id===A.routeId)||c.has(I))return;let P=Os(h,A.path,p);if(!P){C.push({key:I,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(I),E=Nb(P,A.path),L=!1;d.has(I)?L=!1:u.includes(I)?L=!0:T&&T.state!=="idle"&&T.data===void 0?L=l:L=EO(E,Pt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l})),L&&C.push({key:I,routeId:A.routeId,path:A.path,matches:P,match:E,controller:new AbortController})}),[w,C]}function dU(e,t,n){let r=!t||n.route.id!==t.route.id,a=e[n.route.id]===void 0;return r||a}function NA(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function EO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function kO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];Ye(a,"No route found in manifest");let i={};for(let o in r){let s=a[o]!==void 0&&o!=="hasErrorBoundary";kl(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!$B.has(o)&&(i[o]=r[o])}Object.assign(a,i),Object.assign(a,Pt({},t(a),{lazy:void 0}))}function hU(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function pU(e,t,n,r,a,i,o,l){let s=r.reduce((f,d)=>f.add(d.route.id),new Set),u=new Set,c=await e({matches:a.map(f=>{let d=s.has(f.route.id);return Pt({},f,{shouldLoad:d,resolve:p=>(u.add(f.route.id),d?mU(t,n,f,i,o,p,l):Promise.resolve({type:Tt.data,result:void 0}))})}),request:n,params:a[0].params,context:l});return a.forEach(f=>Ye(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,d)=>s.has(a[d].route.id))}async function mU(e,t,n,r,a,i,o){let l,s,u=c=>{let f,d=new Promise((g,b)=>f=b);s=()=>f(),t.signal.addEventListener("abort",s);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...g!==void 0?[g]:[]),p;return i?p=i(g=>h(g)):p=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([p,d])};try{let c=n.route[e];if(n.route.lazy)if(c){let f,[d]=await Promise.all([u(c).catch(h=>{f=h}),kO(n.route,a,r)]);if(f!==void 0)throw f;l=d}else if(await kO(n.route,a,r),c=n.route[e],c)l=await u(c);else if(e==="action"){let f=new URL(t.url),d=f.pathname+f.search;throw kr(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Tt.data,result:void 0};else if(c)l=await u(c);else{let f=new URL(t.url),d=f.pathname+f.search;throw kr(404,{pathname:d})}Ye(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Tt.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function gU(e){let{result:t,type:n,status:r}=e;if(zA(t)){let o;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?o=null:o=await t.json():o=await t.text()}catch(l){return{type:Tt.error,error:l}}return n===Tt.error?{type:Tt.error,error:new v_(t.status,t.statusText,o),statusCode:t.status,headers:t.headers}:{type:Tt.data,data:o,statusCode:t.status,headers:t.headers}}if(n===Tt.error)return{type:Tt.error,error:t,statusCode:y_(t)?t.status:r};if(xU(t)){var a,i;return{type:Tt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Tt.data,data:t,statusCode:r}}function vU(e,t,n,r,a,i){let o=e.headers.get("Location");if(Ye(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!b_.test(o)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);o=jb(new URL(t.url),l,a,!0,o,i),e.headers.set("Location",o)}return e}function PO(e,t,n){if(b_.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ru(a.pathname,n)!=null;if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}return e}function rs(e,t,n,r){let a=e.createURL(FA(t)).toString(),i={signal:n};if(r&&ia(r.formMethod)){let{formMethod:o,formEncType:l}=r;i.method=o.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Db(r.formData):i.body=r.formData}return new Request(a,i)}function Db(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function TO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function yU(e,t,n,r,a,i){let o={},l=null,s,u=!1,c={},f=r&&Ir(r[1])?r[1].error:void 0;return n.forEach((d,h)=>{let p=t[h].route.id;if(Ye(!el(d),"Cannot handle redirect results in processLoaderData"),Ir(d)){let g=d.error;if(f!==void 0&&(g=f,f=void 0),l=l||{},i)l[p]=g;else{let b=Zc(e,p);l[b.route.id]==null&&(l[b.route.id]=g)}o[p]=void 0,u||(u=!0,s=y_(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else Zo(d)?(a.set(p,d.deferredData),o[p]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers)):(o[p]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers))}),f!==void 0&&r&&(l={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:l,statusCode:s||200,loaderHeaders:c}}function AO(e,t,n,r,a,i,o,l){let{loaderData:s,errors:u}=yU(t,n,r,a,l,!1);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function RO(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function kr(e,t){let{pathname:n,routeId:r,method:a,type:i}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new v_(e||500,o,new Error(l),!0)}function $O(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(el(n))return{result:n,idx:t}}}function FA(e){let t=typeof e=="string"?Ga(e):e;return Pl(Pt({},t,{hash:""}))}function bU(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _U(e){return zA(e.result)&&iU.has(e.result.status)}function Zo(e){return e.type===Tt.deferred}function Ir(e){return e.type===Tt.error}function el(e){return(e&&e.type)===Tt.redirect}function xU(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function zA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wU(e){return aU.has(e.toLowerCase())}function ia(e){return nU.has(e.toLowerCase())}async function LO(e,t,n,r,a,i){for(let o=0;of.route.id===s.route.id),c=u!=null&&!NA(u,s)&&(i&&i[s.route.id])!==void 0;if(Zo(l)&&(a||c)){let f=r[o];Ye(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await BA(l,f,a).then(d=>{d&&(n[o]=d||n[o])})}}}async function BA(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Tt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Tt.error,error:a}}return{type:Tt.data,data:e.deferredData.data}}}function __(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nb(e,t){let n=typeof t=="string"?Ga(t).search:t.search;if(e[e.length-1].route.index&&__(n||""))return e[e.length-1];let r=LA(e);return r[r.length-1]}function jO(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:o}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Lv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SU(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function cc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function OU(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ki(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function CU(e,t){try{let n=e.sessionStorage.getItem(DA);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(a,new Set(i||[]))}}catch{}}function EU(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(DA,JSON.stringify(n))}catch(r){kl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Pt(){return Pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function kl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function IB(){return Math.random().toString(36).substr(2,8)}function xO(e,t){return{usr:e.state,key:e.key,idx:t}}function If(e,t,n,r){return n===void 0&&(n=null),Pt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ga(t):t,{state:n,key:t&&t.key||r||IB()})}function Pl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ga(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function RB(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l=Ut.Pop,s=null,u=c();u==null&&(u=0,o.replaceState(Pt({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){l=Ut.Pop;let b=c(),m=b==null?null:b-u;u=b,s&&s({action:l,location:g.location,delta:m})}function d(b,m){l=Ut.Push;let v=If(g.location,b,m);n&&n(v,b),u=c()+1;let _=xO(v,u),x=g.createHref(v);try{o.pushState(_,"",x)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(x)}i&&s&&s({action:l,location:g.location,delta:1})}function h(b,m){l=Ut.Replace;let v=If(g.location,b,m);n&&n(v,b),u=c();let _=xO(v,u),x=g.createHref(v);o.replaceState(_,"",x),i&&s&&s({action:l,location:g.location,delta:0})}function p(b){let m=a.location.origin!=="null"?a.location.origin:a.location.href,v=typeof b=="string"?b:Pl(b);return v=v.replace(/ $/,"%20"),Ye(m,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,m)}let g={get action(){return l},get location(){return e(a,o)},listen(b){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(_O,f),s=b,()=>{a.removeEventListener(_O,f),s=null}},createHref(b){return t(a,b)},createURL:p,encodeLocation(b){let m=p(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(b){return o.go(b)}};return g}var Tt;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tt||(Tt={}));const $B=new Set(["lazy","caseSensitive","path","id","index","children"]);function LB(e){return e.index===!0}function jb(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((a,i)=>{let o=[...n,i],l=typeof a.id=="string"?a.id:o.join("-");if(Ye(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ye(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),LB(a)){let s=Pt({},a,t(a),{id:l});return r[l]=s,s}else{let s=Pt({},a,t(a),{id:l,children:void 0});return r[l]=s,a.children&&(s.children=jb(a.children,t,o,r)),s}})}function Os(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Ga(t):t,a=Ru(r.pathname||"/",n);if(a==null)return null;let i=IA(e);DB(i);let o=null;for(let l=0;o==null&&l{let s={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};s.relativePath.startsWith("/")&&(Ye(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=vi([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(Ye(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),IA(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:WB(u,i.index),routesMeta:c})};return e.forEach((i,o)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))a(i,o);else for(let s of RA(i.path))a(i,o,s)}),t}function RA(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=RA(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function DB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:VB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const NB=/^:[\w-]+$/,FB=3,zB=2,BB=1,UB=10,HB=-2,wO=e=>e==="*";function WB(e,t){let n=e.split("/"),r=n.length;return n.some(wO)&&(r+=HB),t&&(r+=zB),n.filter(a=>!wO(a)).reduce((a,i)=>a+(NB.test(i)?FB:i===""?BB:UB),r)}function VB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function qB(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o{let{paramName:d,isOptional:h}=c;if(d==="*"){let g=l[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=l[f];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function KB(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),kl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function XB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kl(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ru(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function YB(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Ga(e):e;return{pathname:n?n.startsWith("/")?n:QB(n,t):t,search:ZB(r),hash:eU(a)}}function QB(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function $v(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $A(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function m_(e,t){let n=$A(e);return t?n.map((r,a)=>a===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function g_(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=Ga(e):(a=Pt({},e),Ye(!a.pathname||!a.pathname.includes("?"),$v("?","pathname","search",a)),Ye(!a.pathname||!a.pathname.includes("#"),$v("#","pathname","hash",a)),Ye(!a.search||!a.search.includes("#"),$v("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;a.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=YB(a,l),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const vi=e=>e.join("/").replace(/\/\/+/g,"/"),JB=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ZB=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,tU=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let a=new Headers(r.headers);return a.set("Location",t),new Response(null,Pt({},r,{headers:a}))};class v_{constructor(t,n,r,a){a===void 0&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function y_(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const LA=["post","put","patch","delete"],nU=new Set(LA),rU=["get",...LA],aU=new Set(rU),iU=new Set([301,302,303,307,308]),oU=new Set([307,308]),Lv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},lU={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},uc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},b_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sU=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jA="remix-router-transitions";function uU(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;Ye(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let H=e.detectErrorBoundary;a=G=>({hasErrorBoundary:H(G)})}else a=sU;let i={},o=jb(e.routes,a,void 0,i),l,s=e.basename||"/",u=e.unstable_dataStrategy||hU,c=Pt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},e.future),f=null,d=new Set,h=null,p=null,g=null,b=e.hydrationData!=null,m=Os(o,e.history.location,s),v=null;if(m==null){let H=kr(404,{pathname:e.history.location.pathname}),{matches:G,route:ee}=IO(o);m=G,v={[ee.id]:H}}let _,x=m.some(H=>H.route.lazy),O=m.some(H=>H.route.loader);if(x)_=!1;else if(!O)_=!0;else if(c.v7_partialHydration){let H=e.hydrationData?e.hydrationData.loaderData:null,G=e.hydrationData?e.hydrationData.errors:null,ee=de=>de.route.loader?typeof de.route.loader=="function"&&de.route.loader.hydrate===!0?!1:H&&H[de.route.id]!==void 0||G&&G[de.route.id]!==void 0:!0;if(G){let de=m.findIndex(be=>G[be.route.id]!==void 0);_=m.slice(0,de+1).every(ee)}else _=m.every(ee)}else _=e.hydrationData!=null;let S,w={historyAction:e.history.action,location:e.history.location,matches:m,initialized:_,navigation:Lv,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},C=Ut.Pop,A=!1,I,P=!1,T=new Map,E=null,L=!1,N=!1,U=[],W=[],$=new Map,F=0,k=-1,X=new Map,te=new Set,R=new Map,J=new Map,ae=new Set,ue=new Map,ve=new Map,ke=!1;function q(){if(f=e.history.listen(H=>{let{action:G,location:ee,delta:de}=H;if(ke){ke=!1;return}kl(ve.size===0||de!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=Gt({currentLocation:w.location,nextLocation:ee,historyAction:G});if(be&&de!=null){ke=!0,e.history.go(de*-1),dt(be,{state:"blocked",location:ee,proceed(){dt(be,{state:"proceeding",proceed:void 0,reset:void 0,location:ee}),e.history.go(de)},reset(){let We=new Map(w.blockers);We.set(be,uc),K({blockers:We})}});return}return Ce(G,ee)}),n){CU(t,T);let H=()=>EU(t,T);t.addEventListener("pagehide",H),E=()=>t.removeEventListener("pagehide",H)}return w.initialized||Ce(Ut.Pop,w.location,{initialHydration:!0}),S}function Z(){f&&f(),E&&E(),d.clear(),I&&I.abort(),w.fetchers.forEach((H,G)=>pe(G)),w.blockers.forEach((H,G)=>Ze(G))}function ie(H){return d.add(H),()=>d.delete(H)}function K(H,G){G===void 0&&(G={}),w=Pt({},w,H);let ee=[],de=[];c.v7_fetcherPersist&&w.fetchers.forEach((be,We)=>{be.state==="idle"&&(ae.has(We)?de.push(We):ee.push(We))}),[...d].forEach(be=>be(w,{deletedFetchers:de,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),c.v7_fetcherPersist&&(ee.forEach(be=>w.fetchers.delete(be)),de.forEach(be=>pe(be)))}function Te(H,G,ee){var de,be;let{flushSync:We}=ee===void 0?{}:ee,Ie=w.actionData!=null&&w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&w.navigation.state==="loading"&&((de=H.state)==null?void 0:de._isRedirect)!==!0,Se;G.actionData?Object.keys(G.actionData).length>0?Se=G.actionData:Se=null:Ie?Se=w.actionData:Se=null;let qe=G.loaderData?AO(w.loaderData,G.loaderData,G.matches||[],G.errors):w.loaderData,ze=w.blockers;ze.size>0&&(ze=new Map(ze),ze.forEach((Ne,Et)=>ze.set(Et,uc)));let cn=A===!0||w.navigation.formMethod!=null&&ia(w.navigation.formMethod)&&((be=H.state)==null?void 0:be._isRedirect)!==!0;l&&(o=l,l=void 0),L||C===Ut.Pop||(C===Ut.Push?e.history.push(H,H.state):C===Ut.Replace&&e.history.replace(H,H.state));let fn;if(C===Ut.Pop){let Ne=T.get(w.location.pathname);Ne&&Ne.has(H.pathname)?fn={currentLocation:w.location,nextLocation:H}:T.has(H.pathname)&&(fn={currentLocation:H,nextLocation:w.location})}else if(P){let Ne=T.get(w.location.pathname);Ne?Ne.add(H.pathname):(Ne=new Set([H.pathname]),T.set(w.location.pathname,Ne)),fn={currentLocation:w.location,nextLocation:H}}K(Pt({},G,{actionData:Se,loaderData:qe,historyAction:C,location:H,initialized:!0,navigation:Lv,revalidation:"idle",restoreScrollPosition:xt(H,G.matches||w.matches),preventScrollReset:cn,blockers:ze}),{viewTransitionOpts:fn,flushSync:We===!0}),C=Ut.Pop,A=!1,P=!1,L=!1,N=!1,U=[],W=[]}async function ye(H,G){if(typeof H=="number"){e.history.go(H);return}let ee=Db(w.location,w.matches,s,c.v7_prependBasename,H,c.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:de,submission:be,error:We}=SO(c.v7_normalizeFormMethod,!1,ee,G),Ie=w.location,Se=If(w.location,de,G&&G.state);Se=Pt({},Se,e.history.encodeLocation(Se));let qe=G&&G.replace!=null?G.replace:void 0,ze=Ut.Push;qe===!0?ze=Ut.Replace:qe===!1||be!=null&&ia(be.formMethod)&&be.formAction===w.location.pathname+w.location.search&&(ze=Ut.Replace);let cn=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,fn=(G&&G.unstable_flushSync)===!0,Ne=Gt({currentLocation:Ie,nextLocation:Se,historyAction:ze});if(Ne){dt(Ne,{state:"blocked",location:Se,proceed(){dt(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),ye(H,G)},reset(){let Et=new Map(w.blockers);Et.set(Ne,uc),K({blockers:Et})}});return}return await Ce(ze,Se,{submission:be,pendingError:We,preventScrollReset:cn,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:fn})}function Ae(){if(z(),K({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Ce(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Ce(C||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Ce(H,G,ee){I&&I.abort(),I=null,C=H,L=(ee&&ee.startUninterruptedRevalidation)===!0,Fe(w.location,w.matches),A=(ee&&ee.preventScrollReset)===!0,P=(ee&&ee.enableViewTransition)===!0;let de=l||o,be=ee&&ee.overrideNavigation,We=Os(de,G,s),Ie=(ee&&ee.flushSync)===!0;if(!We){let Ne=kr(404,{pathname:G.pathname}),{matches:Et,route:tn}=IO(de);ya(),Te(G,{matches:Et,loaderData:{},errors:{[tn.id]:Ne}},{flushSync:Ie});return}if(w.initialized&&!N&&bU(w.location,G)&&!(ee&&ee.submission&&ia(ee.submission.formMethod))){Te(G,{matches:We},{flushSync:Ie});return}I=new AbortController;let Se=rs(e.history,G,I.signal,ee&&ee.submission),qe;if(ee&&ee.pendingError)qe=[Zc(We).route.id,{type:Tt.error,error:ee.pendingError}];else if(ee&&ee.submission&&ia(ee.submission.formMethod)){let Ne=await Re(Se,G,ee.submission,We,{replace:ee.replace,flushSync:Ie});if(Ne.shortCircuited)return;qe=Ne.pendingActionResult,be=jv(G,ee.submission),Ie=!1,Se=rs(e.history,Se.url,Se.signal)}let{shortCircuited:ze,loaderData:cn,errors:fn}=await Ge(Se,G,We,be,ee&&ee.submission,ee&&ee.fetcherSubmission,ee&&ee.replace,ee&&ee.initialHydration===!0,Ie,qe);ze||(I=null,Te(G,Pt({matches:We},MO(qe),{loaderData:cn,errors:fn})))}async function Re(H,G,ee,de,be){be===void 0&&(be={}),z();let We=SU(G,ee);K({navigation:We},{flushSync:be.flushSync===!0});let Ie,Se=Fb(de,G);if(!Se.route.action&&!Se.route.lazy)Ie={type:Tt.error,error:kr(405,{method:H.method,pathname:G.pathname,routeId:Se.route.id})};else if(Ie=(await De("action",H,[Se],de))[0],H.signal.aborted)return{shortCircuited:!0};if(el(Ie)){let qe;return be&&be.replace!=null?qe=be.replace:qe=kO(Ie.response.headers.get("Location"),new URL(H.url),s)===w.location.pathname+w.location.search,await xe(H,Ie,{submission:ee,replace:qe}),{shortCircuited:!0}}if(Zo(Ie))throw kr(400,{type:"defer-action"});if(Ir(Ie)){let qe=Zc(de,Se.route.id);return(be&&be.replace)!==!0&&(C=Ut.Push),{pendingActionResult:[qe.route.id,Ie]}}return{pendingActionResult:[Se.route.id,Ie]}}async function Ge(H,G,ee,de,be,We,Ie,Se,qe,ze){let cn=de||jv(G,be),fn=be||We||LO(cn),Ne=l||o,[Et,tn]=OO(e.history,w,ee,fn,G,c.v7_partialHydration&&Se===!0,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ne,s,ze);if(ya(nt=>!(ee&&ee.some(Pn=>Pn.route.id===nt))||Et&&Et.some(Pn=>Pn.route.id===nt)),k=++F,Et.length===0&&tn.length===0){let nt=Ke();return Te(G,Pt({matches:ee,loaderData:{},errors:ze&&Ir(ze[1])?{[ze[0]]:ze[1].error}:null},MO(ze),nt?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(!L&&(!c.v7_partialHydration||!Se)){tn.forEach(Pn=>{let _r=w.fetchers.get(Pn.key),dn=cc(void 0,_r?_r.data:void 0);w.fetchers.set(Pn.key,dn)});let nt;ze&&!Ir(ze[1])?nt={[ze[0]]:ze[1].data}:w.actionData&&(Object.keys(w.actionData).length===0?nt=null:nt=w.actionData),K(Pt({navigation:cn},nt!==void 0?{actionData:nt}:{},tn.length>0?{fetchers:new Map(w.fetchers)}:{}),{flushSync:qe})}tn.forEach(nt=>{$.has(nt.key)&&ge(nt.key),nt.controller&&$.set(nt.key,nt.controller)});let Ku=()=>tn.forEach(nt=>ge(nt.key));I&&I.signal.addEventListener("abort",Ku);let{loaderResults:Ui,fetcherResults:Ql}=await Je(w.matches,ee,Et,tn,H);if(H.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",Ku),tn.forEach(nt=>$.delete(nt.key));let Jl=RO([...Ui,...Ql]);if(Jl){if(Jl.idx>=Et.length){let nt=tn[Jl.idx-Et.length].key;te.add(nt)}return await xe(H,Jl.result,{replace:Ie}),{shortCircuited:!0}}let{loaderData:Zl,errors:ba}=TO(w,ee,Et,Ui,ze,tn,Ql,ue);ue.forEach((nt,Pn)=>{nt.subscribe(_r=>{(_r||nt.done)&&ue.delete(Pn)})}),c.v7_partialHydration&&Se&&w.errors&&Object.entries(w.errors).filter(nt=>{let[Pn]=nt;return!Et.some(_r=>_r.route.id===Pn)}).forEach(nt=>{let[Pn,_r]=nt;ba=Object.assign(ba||{},{[Pn]:_r})});let Xd=Ke(),Yd=Bt(k),Qd=Xd||Yd||tn.length>0;return Pt({loaderData:Zl,errors:ba},Qd?{fetchers:new Map(w.fetchers)}:{})}function _e(H,G,ee,de){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");$.has(H)&&ge(H);let be=(de&&de.unstable_flushSync)===!0,We=l||o,Ie=Db(w.location,w.matches,s,c.v7_prependBasename,ee,c.v7_relativeSplatPath,G,de==null?void 0:de.relative),Se=Os(We,Ie,s);if(!Se){he(H,G,kr(404,{pathname:Ie}),{flushSync:be});return}let{path:qe,submission:ze,error:cn}=SO(c.v7_normalizeFormMethod,!0,Ie,de);if(cn){he(H,G,cn,{flushSync:be});return}let fn=Fb(Se,qe);if(A=(de&&de.preventScrollReset)===!0,ze&&ia(ze.formMethod)){re(H,G,qe,fn,Se,be,ze);return}R.set(H,{routeId:G,path:qe}),oe(H,G,qe,fn,Se,be,ze)}async function re(H,G,ee,de,be,We,Ie){if(z(),R.delete(H),!de.route.action&&!de.route.lazy){let dn=kr(405,{method:Ie.formMethod,pathname:ee,routeId:G});he(H,G,dn,{flushSync:We});return}let Se=w.fetchers.get(H);Y(H,OU(Ie,Se),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal,Ie);$.set(H,qe);let cn=F,Ne=(await De("action",ze,[de],be))[0];if(ze.signal.aborted){$.get(H)===qe&&$.delete(H);return}if(c.v7_fetcherPersist&&ae.has(H)){if(el(Ne)||Ir(Ne)){Y(H,Ki(void 0));return}}else{if(el(Ne))if($.delete(H),k>cn){Y(H,Ki(void 0));return}else return te.add(H),Y(H,cc(Ie)),xe(ze,Ne,{fetcherSubmission:Ie});if(Ir(Ne)){he(H,G,Ne.error);return}}if(Zo(Ne))throw kr(400,{type:"defer-action"});let Et=w.navigation.location||w.location,tn=rs(e.history,Et,qe.signal),Ku=l||o,Ui=w.navigation.state!=="idle"?Os(Ku,w.navigation.location,s):w.matches;Ye(Ui,"Didn't find any matches after fetcher action");let Ql=++F;X.set(H,Ql);let Jl=cc(Ie,Ne.data);w.fetchers.set(H,Jl);let[Zl,ba]=OO(e.history,w,Ui,Ie,Et,!1,c.unstable_skipActionErrorRevalidation,N,U,W,ae,R,te,Ku,s,[de.route.id,Ne]);ba.filter(dn=>dn.key!==H).forEach(dn=>{let Xu=dn.key,Rw=w.fetchers.get(Xu),nj=cc(void 0,Rw?Rw.data:void 0);w.fetchers.set(Xu,nj),$.has(Xu)&&ge(Xu),dn.controller&&$.set(Xu,dn.controller)}),K({fetchers:new Map(w.fetchers)});let Xd=()=>ba.forEach(dn=>ge(dn.key));qe.signal.addEventListener("abort",Xd);let{loaderResults:Yd,fetcherResults:Qd}=await Je(w.matches,Ui,Zl,ba,tn);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",Xd),X.delete(H),$.delete(H),ba.forEach(dn=>$.delete(dn.key));let nt=RO([...Yd,...Qd]);if(nt){if(nt.idx>=Zl.length){let dn=ba[nt.idx-Zl.length].key;te.add(dn)}return xe(tn,nt.result)}let{loaderData:Pn,errors:_r}=TO(w,w.matches,Zl,Yd,void 0,ba,Qd,ue);if(w.fetchers.has(H)){let dn=Ki(Ne.data);w.fetchers.set(H,dn)}Bt(Ql),w.navigation.state==="loading"&&Ql>k?(Ye(C,"Expected pending action"),I&&I.abort(),Te(w.navigation.location,{matches:Ui,loaderData:Pn,errors:_r,fetchers:new Map(w.fetchers)})):(K({errors:_r,loaderData:AO(w.loaderData,Pn,Ui,_r),fetchers:new Map(w.fetchers)}),N=!1)}async function oe(H,G,ee,de,be,We,Ie){let Se=w.fetchers.get(H);Y(H,cc(Ie,Se?Se.data:void 0),{flushSync:We});let qe=new AbortController,ze=rs(e.history,ee,qe.signal);$.set(H,qe);let cn=F,Ne=(await De("loader",ze,[de],be))[0];if(Zo(Ne)&&(Ne=await zA(Ne,ze.signal,!0)||Ne),$.get(H)===qe&&$.delete(H),!ze.signal.aborted){if(ae.has(H)){Y(H,Ki(void 0));return}if(el(Ne))if(k>cn){Y(H,Ki(void 0));return}else{te.add(H),await xe(ze,Ne);return}if(Ir(Ne)){he(H,G,Ne.error);return}Ye(!Zo(Ne),"Unhandled fetcher deferred data"),Y(H,Ki(Ne.data))}}async function xe(H,G,ee){let{submission:de,fetcherSubmission:be,replace:We}=ee===void 0?{}:ee;G.response.headers.has("X-Remix-Revalidate")&&(N=!0);let Ie=G.response.headers.get("Location");Ye(Ie,"Expected a Location header on the redirect Response"),Ie=kO(Ie,new URL(H.url),s);let Se=If(w.location,Ie,{_isRedirect:!0});if(n){let Et=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Et=!0;else if(b_.test(Ie)){const tn=e.history.createURL(Ie);Et=tn.origin!==t.location.origin||Ru(tn.pathname,s)==null}if(Et){We?t.location.replace(Ie):t.location.assign(Ie);return}}I=null;let qe=We===!0?Ut.Replace:Ut.Push,{formMethod:ze,formAction:cn,formEncType:fn}=w.navigation;!de&&!be&&ze&&cn&&fn&&(de=LO(w.navigation));let Ne=de||be;if(oU.has(G.response.status)&&Ne&&ia(Ne.formMethod))await Ce(qe,Se,{submission:Pt({},Ne,{formAction:Ie}),preventScrollReset:A});else{let Et=jv(Se,de);await Ce(qe,Se,{overrideNavigation:Et,fetcherSubmission:be,preventScrollReset:A})}}async function De(H,G,ee,de){try{let be=await pU(u,H,G,ee,de,i,a);return await Promise.all(be.map((We,Ie)=>{if(_U(We)){let Se=We.result;return{type:Tt.redirect,response:vU(Se,G,ee[Ie].route.id,de,s,c.v7_relativeSplatPath)}}return gU(We)}))}catch(be){return ee.map(()=>({type:Tt.error,error:be}))}}async function Je(H,G,ee,de,be){let[We,...Ie]=await Promise.all([ee.length?De("loader",be,ee,G):[],...de.map(Se=>{if(Se.matches&&Se.match&&Se.controller){let qe=rs(e.history,Se.path,Se.controller.signal);return De("loader",qe,[Se.match],Se.matches).then(ze=>ze[0])}else return Promise.resolve({type:Tt.error,error:kr(404,{pathname:Se.path})})})]);return await Promise.all([$O(H,ee,We,We.map(()=>be.signal),!1,w.loaderData),$O(H,de.map(Se=>Se.match),Ie,de.map(Se=>Se.controller?Se.controller.signal:null),!0)]),{loaderResults:We,fetcherResults:Ie}}function z(){N=!0,U.push(...ya()),R.forEach((H,G)=>{$.has(G)&&(W.push(G),ge(G))})}function Y(H,G,ee){ee===void 0&&(ee={}),w.fetchers.set(H,G),K({fetchers:new Map(w.fetchers)},{flushSync:(ee&&ee.flushSync)===!0})}function he(H,G,ee,de){de===void 0&&(de={});let be=Zc(w.matches,G);pe(H),K({errors:{[be.route.id]:ee},fetchers:new Map(w.fetchers)},{flushSync:(de&&de.flushSync)===!0})}function se(H){return c.v7_fetcherPersist&&(J.set(H,(J.get(H)||0)+1),ae.has(H)&&ae.delete(H)),w.fetchers.get(H)||lU}function pe(H){let G=w.fetchers.get(H);$.has(H)&&!(G&&G.state==="loading"&&X.has(H))&&ge(H),R.delete(H),X.delete(H),te.delete(H),ae.delete(H),w.fetchers.delete(H)}function He(H){if(c.v7_fetcherPersist){let G=(J.get(H)||0)-1;G<=0?(J.delete(H),ae.add(H)):J.set(H,G)}else pe(H);K({fetchers:new Map(w.fetchers)})}function ge(H){let G=$.get(H);Ye(G,"Expected fetch controller: "+H),G.abort(),$.delete(H)}function Pe(H){for(let G of H){let ee=se(G),de=Ki(ee.data);w.fetchers.set(G,de)}}function Ke(){let H=[],G=!1;for(let ee of te){let de=w.fetchers.get(ee);Ye(de,"Expected fetcher: "+ee),de.state==="loading"&&(te.delete(ee),H.push(ee),G=!0)}return Pe(H),G}function Bt(H){let G=[];for(let[ee,de]of X)if(de0}function $e(H,G){let ee=w.blockers.get(H)||uc;return ve.get(H)!==G&&ve.set(H,G),ee}function Ze(H){w.blockers.delete(H),ve.delete(H)}function dt(H,G){let ee=w.blockers.get(H)||uc;Ye(ee.state==="unblocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="blocked"||ee.state==="blocked"&&G.state==="proceeding"||ee.state==="blocked"&&G.state==="unblocked"||ee.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+ee.state+" -> "+G.state);let de=new Map(w.blockers);de.set(H,G),K({blockers:de})}function Gt(H){let{currentLocation:G,nextLocation:ee,historyAction:de}=H;if(ve.size===0)return;ve.size>1&&kl(!1,"A router only supports one blocker at a time");let be=Array.from(ve.entries()),[We,Ie]=be[be.length-1],Se=w.blockers.get(We);if(!(Se&&Se.state==="proceeding")&&Ie({currentLocation:G,nextLocation:ee,historyAction:de}))return We}function ya(H){let G=[];return ue.forEach((ee,de)=>{(!H||H(de))&&(ee.cancel(),G.push(de),ue.delete(de))}),G}function Bi(H,G,ee){if(h=H,g=G,p=ee||null,!b&&w.navigation===Lv){b=!0;let de=xt(w.location,w.matches);de!=null&&K({restoreScrollPosition:de})}return()=>{h=null,g=null,p=null}}function Kd(H,G){return p&&p(H,G.map(de=>jB(de,w.loaderData)))||H.key}function Fe(H,G){if(h&&g){let ee=Kd(H,G);h[ee]=g()}}function xt(H,G){if(h){let ee=Kd(H,G),de=h[ee];if(typeof de=="number")return de}return null}function Za(H){i={},l=jb(H,a,void 0,i)}return S={get basename(){return s},get future(){return c},get state(){return w},get routes(){return o},get window(){return t},initialize:q,subscribe:ie,enableScrollRestoration:Bi,navigate:ye,fetch:_e,revalidate:Ae,createHref:H=>e.history.createHref(H),encodeLocation:H=>e.history.encodeLocation(H),getFetcher:se,deleteFetcher:He,dispose:Z,getBlocker:$e,deleteBlocker:Ze,_internalFetchControllers:$,_internalActiveDeferreds:ue,_internalSetRoutes:Za},S}function cU(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Db(e,t,n,r,a,i,o,l){let s,u;if(o){s=[];for(let f of t)if(s.push(f),f.route.id===o){u=f;break}}else s=t,u=t[t.length-1];let c=g_(a||".",m_(s,i),Ru(e.pathname,n)||e.pathname,l==="path");return a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&u&&u.route.index&&!__(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:vi([n,c.pathname])),Pl(c)}function SO(e,t,n,r){if(!r||!cU(r))return{path:n};if(r.formMethod&&!wU(r.formMethod))return{path:n,error:kr(405,{method:r.formMethod})};let a=()=>({path:n,error:kr(400,{type:"invalid-body"})}),i=r.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),l=NA(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ia(o))return a();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[g,b]=p;return""+h+g+"="+b+` +`},""):String(r.body);return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!ia(o))return a();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:l,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return a()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let s,u;if(r.formData)s=Nb(r.formData),u=r.formData;else if(r.body instanceof FormData)s=Nb(r.body),u=r.body;else if(r.body instanceof URLSearchParams)s=r.body,u=PO(s);else if(r.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(r.body),u=PO(s)}catch{return a()}let c={formMethod:o,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ia(c.formMethod))return{path:n,submission:c};let f=Ga(n);return t&&f.search&&__(f.search)&&s.append("index",""),f.search="?"+s,{path:Pl(f),submission:c}}function fU(e,t){let n=e;if(t){let r=e.findIndex(a=>a.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function OO(e,t,n,r,a,i,o,l,s,u,c,f,d,h,p,g){let b=g?Ir(g[1])?g[1].error:g[1].data:void 0,m=e.createURL(t.location),v=e.createURL(a),_=g&&Ir(g[1])?g[0]:void 0,x=_?fU(n,_):n,O=g?g[1].statusCode:void 0,S=o&&O&&O>=400,w=x.filter((A,I)=>{let{route:P}=A;if(P.lazy)return!0;if(P.loader==null)return!1;if(i)return typeof P.loader!="function"||P.loader.hydrate?!0:t.loaderData[P.id]===void 0&&(!t.errors||t.errors[P.id]===void 0);if(dU(t.loaderData,t.matches[I],A)||s.some(L=>L===A.route.id))return!0;let T=t.matches[I],E=A;return CO(A,Pt({currentUrl:m,currentParams:T.params,nextUrl:v,nextParams:E.params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l||m.pathname+m.search===v.pathname+v.search||m.search!==v.search||DA(T,E)}))}),C=[];return f.forEach((A,I)=>{if(i||!n.some(N=>N.route.id===A.routeId)||c.has(I))return;let P=Os(h,A.path,p);if(!P){C.push({key:I,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(I),E=Fb(P,A.path),L=!1;d.has(I)?L=!1:u.includes(I)?L=!0:T&&T.state!=="idle"&&T.data===void 0?L=l:L=CO(E,Pt({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:b,unstable_actionStatus:O,defaultShouldRevalidate:S?!1:l})),L&&C.push({key:I,routeId:A.routeId,path:A.path,matches:P,match:E,controller:new AbortController})}),[w,C]}function dU(e,t,n){let r=!t||n.route.id!==t.route.id,a=e[n.route.id]===void 0;return r||a}function DA(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function CO(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function EO(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let a=n[e.id];Ye(a,"No route found in manifest");let i={};for(let o in r){let s=a[o]!==void 0&&o!=="hasErrorBoundary";kl(!s,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!s&&!$B.has(o)&&(i[o]=r[o])}Object.assign(a,i),Object.assign(a,Pt({},t(a),{lazy:void 0}))}function hU(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function pU(e,t,n,r,a,i,o,l){let s=r.reduce((f,d)=>f.add(d.route.id),new Set),u=new Set,c=await e({matches:a.map(f=>{let d=s.has(f.route.id);return Pt({},f,{shouldLoad:d,resolve:p=>(u.add(f.route.id),d?mU(t,n,f,i,o,p,l):Promise.resolve({type:Tt.data,result:void 0}))})}),request:n,params:a[0].params,context:l});return a.forEach(f=>Ye(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),c.filter((f,d)=>s.has(a[d].route.id))}async function mU(e,t,n,r,a,i,o){let l,s,u=c=>{let f,d=new Promise((g,b)=>f=b);s=()=>f(),t.signal.addEventListener("abort",s);let h=g=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:o},...g!==void 0?[g]:[]),p;return i?p=i(g=>h(g)):p=(async()=>{try{return{type:"data",result:await h()}}catch(g){return{type:"error",result:g}}})(),Promise.race([p,d])};try{let c=n.route[e];if(n.route.lazy)if(c){let f,[d]=await Promise.all([u(c).catch(h=>{f=h}),EO(n.route,a,r)]);if(f!==void 0)throw f;l=d}else if(await EO(n.route,a,r),c=n.route[e],c)l=await u(c);else if(e==="action"){let f=new URL(t.url),d=f.pathname+f.search;throw kr(405,{method:t.method,pathname:d,routeId:n.route.id})}else return{type:Tt.data,result:void 0};else if(c)l=await u(c);else{let f=new URL(t.url),d=f.pathname+f.search;throw kr(404,{pathname:d})}Ye(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:Tt.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return l}async function gU(e){let{result:t,type:n,status:r}=e;if(FA(t)){let o;try{let l=t.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?t.body==null?o=null:o=await t.json():o=await t.text()}catch(l){return{type:Tt.error,error:l}}return n===Tt.error?{type:Tt.error,error:new v_(t.status,t.statusText,o),statusCode:t.status,headers:t.headers}:{type:Tt.data,data:o,statusCode:t.status,headers:t.headers}}if(n===Tt.error)return{type:Tt.error,error:t,statusCode:y_(t)?t.status:r};if(xU(t)){var a,i;return{type:Tt.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}return{type:Tt.data,data:t,statusCode:r}}function vU(e,t,n,r,a,i){let o=e.headers.get("Location");if(Ye(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!b_.test(o)){let l=r.slice(0,r.findIndex(s=>s.route.id===n)+1);o=Db(new URL(t.url),l,a,!0,o,i),e.headers.set("Location",o)}return e}function kO(e,t,n){if(b_.test(e)){let r=e,a=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ru(a.pathname,n)!=null;if(a.origin===t.origin&&i)return a.pathname+a.search+a.hash}return e}function rs(e,t,n,r){let a=e.createURL(NA(t)).toString(),i={signal:n};if(r&&ia(r.formMethod)){let{formMethod:o,formEncType:l}=r;i.method=o.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Nb(r.formData):i.body=r.formData}return new Request(a,i)}function Nb(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function PO(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function yU(e,t,n,r,a,i){let o={},l=null,s,u=!1,c={},f=r&&Ir(r[1])?r[1].error:void 0;return n.forEach((d,h)=>{let p=t[h].route.id;if(Ye(!el(d),"Cannot handle redirect results in processLoaderData"),Ir(d)){let g=d.error;if(f!==void 0&&(g=f,f=void 0),l=l||{},i)l[p]=g;else{let b=Zc(e,p);l[b.route.id]==null&&(l[b.route.id]=g)}o[p]=void 0,u||(u=!0,s=y_(d.error)?d.error.status:500),d.headers&&(c[p]=d.headers)}else Zo(d)?(a.set(p,d.deferredData),o[p]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers)):(o[p]=d.data,d.statusCode&&d.statusCode!==200&&!u&&(s=d.statusCode),d.headers&&(c[p]=d.headers))}),f!==void 0&&r&&(l={[r[0]]:f},o[r[0]]=void 0),{loaderData:o,errors:l,statusCode:s||200,loaderHeaders:c}}function TO(e,t,n,r,a,i,o,l){let{loaderData:s,errors:u}=yU(t,n,r,a,l,!1);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function IO(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function kr(e,t){let{pathname:n,routeId:r,method:a,type:i}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a&&n&&r?l="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",a&&n&&r?l="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new v_(e||500,o,new Error(l),!0)}function RO(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(el(n))return{result:n,idx:t}}}function NA(e){let t=typeof e=="string"?Ga(e):e;return Pl(Pt({},t,{hash:""}))}function bU(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function _U(e){return FA(e.result)&&iU.has(e.result.status)}function Zo(e){return e.type===Tt.deferred}function Ir(e){return e.type===Tt.error}function el(e){return(e&&e.type)===Tt.redirect}function xU(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function FA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wU(e){return aU.has(e.toLowerCase())}function ia(e){return nU.has(e.toLowerCase())}async function $O(e,t,n,r,a,i){for(let o=0;of.route.id===s.route.id),c=u!=null&&!DA(u,s)&&(i&&i[s.route.id])!==void 0;if(Zo(l)&&(a||c)){let f=r[o];Ye(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await zA(l,f,a).then(d=>{d&&(n[o]=d||n[o])})}}}async function zA(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Tt.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Tt.error,error:a}}return{type:Tt.data,data:e.deferredData.data}}}function __(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fb(e,t){let n=typeof t=="string"?Ga(t).search:t.search;if(e[e.length-1].route.index&&__(n||""))return e[e.length-1];let r=$A(e);return r[r.length-1]}function LO(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:i,json:o}=e;if(!(!t||!n||!r)){if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function jv(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function SU(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function cc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function OU(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Ki(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function CU(e,t){try{let n=e.sessionStorage.getItem(jA);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(a,new Set(i||[]))}}catch{}}function EU(e,t){if(t.size>0){let n={};for(let[r,a]of t)n[r]=[...a];try{e.sessionStorage.setItem(jA,JSON.stringify(n))}catch(r){kl(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.23.0 * * Copyright (c) Remix Software Inc. @@ -62,7 +62,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=g_(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vi([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,i,e])}const AU=y.createContext(null);function MU(e){let t=y.useContext(Li).outlet;return t&&y.createElement(AU.Provider,{value:e},t)}function IU(){let{matches:e}=y.useContext(Li),t=e[e.length-1];return t?t.params:{}}function VA(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Nl),{matches:a}=y.useContext(Li),{pathname:i}=Cd(),o=JSON.stringify(m_(a,r.v7_relativeSplatPath));return y.useMemo(()=>g_(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function RU(e,t,n,r){Od()||Ye(!1);let{navigator:a}=y.useContext(Nl),{matches:i}=y.useContext(Li),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Cd(),c;if(t){var f;let b=typeof t=="string"?Ga(t):t;s==="/"||(f=b.pathname)!=null&&f.startsWith(s)||Ye(!1),c=b}else c=u;let d=c.pathname||"/",h=d;if(s!=="/"){let b=s.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=Os(e,{pathname:h}),g=NU(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:vi([s,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:vi([s,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&g?y.createElement(Fg.Provider,{value:{location:Rf({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ut.Pop}},g):g}function $U(){let e=UU(),t=y_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:a},n):null,null)}const LU=y.createElement($U,null);class jU extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Li.Provider,{value:this.props.routeContext},y.createElement(HA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DU(e){let{routeContext:t,match:n,children:r}=e,a=y.useContext(Ng);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Li.Provider,{value:t},r)}function NU(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Ye(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let h,p=!1,g=null,b=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||LU,s&&(u<0&&d===0?(WU("route-fallback",!1),p=!0,b=null):u===d&&(p=!0,b=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),v=()=>{let _;return h?_=g:p?_=b:f.route.Component?_=y.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=c,y.createElement(DU,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:_})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?y.createElement(jU,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var qA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qA||{}),Qp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qp||{});function FU(e){let t=y.useContext(Ng);return t||Ye(!1),t}function zU(e){let t=y.useContext(UA);return t||Ye(!1),t}function BU(e){let t=y.useContext(Li);return t||Ye(!1),t}function GA(e){let t=BU(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function UU(){var e;let t=y.useContext(HA),n=zU(Qp.UseRouteError),r=GA(Qp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function HU(){let{router:e}=FU(qA.UseNavigateStable),t=GA(Qp.UseNavigateStable),n=y.useRef(!1);return WA(()=>{n.current=!0}),y.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Rf({fromRouteId:t},i)))},[e,t])}const DO={};function WU(e,t,n){!t&&!DO[e]&&(DO[e]=!0)}function VU(e){return MU(e.context)}function qU(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ut.Pop,navigator:i,static:o=!1,future:l}=e;Od()&&Ye(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:o,future:Rf({v7_relativeSplatPath:!1},l)}),[s,l,i,o]);typeof r=="string"&&(r=Ga(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=Ru(c,s);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p},navigationType:a}},[s,c,f,d,h,p,a]);return g==null?null:y.createElement(Nl.Provider,{value:u},y.createElement(Fg.Provider,{children:n,value:g}))}new Promise(()=>{});function GU(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function Rf(){return Rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),y.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=g_(u,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:vi([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,i,e])}const AU=y.createContext(null);function MU(e){let t=y.useContext(Li).outlet;return t&&y.createElement(AU.Provider,{value:e},t)}function IU(){let{matches:e}=y.useContext(Li),t=e[e.length-1];return t?t.params:{}}function WA(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Nl),{matches:a}=y.useContext(Li),{pathname:i}=Cd(),o=JSON.stringify(m_(a,r.v7_relativeSplatPath));return y.useMemo(()=>g_(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function RU(e,t,n,r){Od()||Ye(!1);let{navigator:a}=y.useContext(Nl),{matches:i}=y.useContext(Li),o=i[i.length-1],l=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let u=Cd(),c;if(t){var f;let b=typeof t=="string"?Ga(t):t;s==="/"||(f=b.pathname)!=null&&f.startsWith(s)||Ye(!1),c=b}else c=u;let d=c.pathname||"/",h=d;if(s!=="/"){let b=s.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(b.length).join("/")}let p=Os(e,{pathname:h}),g=NU(p&&p.map(b=>Object.assign({},b,{params:Object.assign({},l,b.params),pathname:vi([s,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?s:vi([s,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,n,r);return t&&g?y.createElement(zg.Provider,{value:{location:Rf({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ut.Pop}},g):g}function $U(){let e=UU(),t=y_(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},t),n?y.createElement("pre",{style:a},n):null,null)}const LU=y.createElement($U,null);class jU extends y.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?y.createElement(Li.Provider,{value:this.props.routeContext},y.createElement(UA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function DU(e){let{routeContext:t,match:n,children:r}=e,a=y.useContext(Fg);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Li.Provider,{value:t},r)}function NU(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,l=(a=n)==null?void 0:a.errors;if(l!=null){let c=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);c>=0||Ye(!1),o=o.slice(0,Math.min(o.length,c+1))}let s=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let h,p=!1,g=null,b=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,g=f.route.errorElement||LU,s&&(u<0&&d===0?(WU("route-fallback",!1),p=!0,b=null):u===d&&(p=!0,b=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),v=()=>{let _;return h?_=g:p?_=b:f.route.Component?_=y.createElement(f.route.Component,null):f.route.element?_=f.route.element:_=c,y.createElement(DU,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:n!=null},children:_})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?y.createElement(jU,{location:n.location,revalidation:n.revalidation,component:g,error:h,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var VA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(VA||{}),Jp=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Jp||{});function FU(e){let t=y.useContext(Fg);return t||Ye(!1),t}function zU(e){let t=y.useContext(BA);return t||Ye(!1),t}function BU(e){let t=y.useContext(Li);return t||Ye(!1),t}function qA(e){let t=BU(),n=t.matches[t.matches.length-1];return n.route.id||Ye(!1),n.route.id}function UU(){var e;let t=y.useContext(UA),n=zU(Jp.UseRouteError),r=qA(Jp.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function HU(){let{router:e}=FU(VA.UseNavigateStable),t=qA(Jp.UseNavigateStable),n=y.useRef(!1);return HA(()=>{n.current=!0}),y.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Rf({fromRouteId:t},i)))},[e,t])}const jO={};function WU(e,t,n){!t&&!jO[e]&&(jO[e]=!0)}function VU(e){return MU(e.context)}function qU(e){let{basename:t="/",children:n=null,location:r,navigationType:a=Ut.Pop,navigator:i,static:o=!1,future:l}=e;Od()&&Ye(!1);let s=t.replace(/^\/*/,"/"),u=y.useMemo(()=>({basename:s,navigator:i,static:o,future:Rf({v7_relativeSplatPath:!1},l)}),[s,l,i,o]);typeof r=="string"&&(r=Ga(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default"}=r,g=y.useMemo(()=>{let b=Ru(c,s);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p},navigationType:a}},[s,c,f,d,h,p,a]);return g==null?null:y.createElement(Nl.Provider,{value:u},y.createElement(zg.Provider,{children:n,value:g}))}new Promise(()=>{});function GU(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. @@ -71,31 +71,31 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function XU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YU(e,t){return e.button===0&&(!t||t==="_self")&&!XU(e)}const QU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],JU="6";try{window.__reactRouterVersion=JU}catch{}function ZU(e,t){return uU({basename:t==null?void 0:t.basename,future:$f({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:MB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||eH(),routes:e,mapRouteProperties:GU,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function eH(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=$f({},t,{errors:tH(t.errors)})),t}function tH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new v_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let o=new i(a.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}const nH=y.createContext({isTransitioning:!1}),rH=y.createContext(new Map),aH="startTransition",NO=bj[aH],iH="flushSync",FO=AN[iH];function oH(e){NO?NO(e):e()}function fc(e){FO?FO(e):e()}class lH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function sH(e){let{fallbackElement:t,router:n,future:r}=e,[a,i]=y.useState(n.state),[o,l]=y.useState(),[s,u]=y.useState({isTransitioning:!1}),[c,f]=y.useState(),[d,h]=y.useState(),[p,g]=y.useState(),b=y.useRef(new Map),{v7_startTransition:m}=r||{},v=y.useCallback(w=>{m?oH(w):w()},[m]),_=y.useCallback((w,C)=>{let{deletedFetchers:A,unstable_flushSync:I,unstable_viewTransitionOpts:P}=C;A.forEach(E=>b.current.delete(E)),w.fetchers.forEach((E,L)=>{E.data!==void 0&&b.current.set(L,E.data)});let T=n.window==null||typeof n.window.document.startViewTransition!="function";if(!P||T){I?fc(()=>i(w)):v(()=>i(w));return}if(I){fc(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let E=n.window.document.startViewTransition(()=>{fc(()=>i(w))});E.finished.finally(()=>{fc(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),fc(()=>h(E));return}d?(c&&c.resolve(),d.skipTransition(),g({state:w,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(l(w),u({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[n.window,d,c,b,v]);y.useLayoutEffect(()=>n.subscribe(_),[n,_]),y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new lH)},[s]),y.useEffect(()=>{if(c&&o&&n.window){let w=o,C=c.promise,A=n.window.document.startViewTransition(async()=>{v(()=>i(w)),await C});A.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(A)}},[v,o,c,n.window]),y.useEffect(()=>{c&&o&&a.location.key===o.location.key&&c.resolve()},[c,d,a.location,o]),y.useEffect(()=>{!s.isTransitioning&&p&&(l(p.state),u({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),g(void 0))},[s.isTransitioning,p]),y.useEffect(()=>{},[]);let x=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,C,A)=>n.navigate(w,{state:C,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,C,A)=>n.navigate(w,{replace:!0,state:C,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),O=n.basename||"/",S=y.useMemo(()=>({router:n,navigator:x,static:!1,basename:O}),[n,x,O]);return y.createElement(y.Fragment,null,y.createElement(Ng.Provider,{value:S},y.createElement(UA.Provider,{value:a},y.createElement(rH.Provider,{value:b.current},y.createElement(nH.Provider,{value:s},y.createElement(qU,{basename:O,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?y.createElement(uH,{routes:n.routes,future:n.future,state:a}):t))))),null)}function uH(e){let{routes:t,future:n,state:r}=e;return RU(t,void 0,r,n)}const cH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,di=y.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=KU(t,QU),{basename:h}=y.useContext(Nl),p,g=!1;if(typeof u=="string"&&fH.test(u)&&(p=u,cH))try{let _=new URL(window.location.href),x=u.startsWith("//")?new URL(_.protocol+u):new URL(u),O=Ru(x.pathname,h);x.origin===_.origin&&O!=null?u=O+x.search+x.hash:g=!0}catch{}let b=kU(u,{relative:a}),m=dH(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:a,unstable_viewTransition:f});function v(_){r&&r(_),_.defaultPrevented||m(_)}return y.createElement("a",$f({},d,{href:p||b,onClick:g||i?r:v,ref:n,target:s}))});var zO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zO||(zO={}));var BO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(BO||(BO={}));function dH(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l}=t===void 0?{}:t,s=PU(),u=Cd(),c=VA(e,{relative:o});return y.useCallback(f=>{if(YU(f,n)){f.preventDefault();let d=r!==void 0?r:Pl(u)===Pl(c);s(e,{replace:d,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l})}},[u,s,c,r,a,n,e,i,o,l])}function hH(){const[e,t]=y.useState(!0),n=()=>{t(!e)},r=Cd(),a=j.jsx(SA,{children:j.jsx(OA,{children:j.jsx(PA,{variant:"plain","aria-label":"Global navigation",isSidebarOpen:e,onSidebarToggle:n,id:"vertical-nav-toggle",children:j.jsx(uB,{})})})}),i=j.jsx(CA,{isSidebarOpen:e,id:"vertical-sidebar",children:j.jsx(kA,{children:j.jsx(vu,{children:j.jsxs(jg,{children:[j.jsx(Ss,{itemId:"dashboard",isActive:r.pathname.startsWith("/dashboard"),children:j.jsx(di,{to:"dashboard",children:"Dashboard"})}),j.jsx(Ss,{itemId:"timeline",isActive:r.pathname.startsWith("/timeline"),children:j.jsx(di,{to:"timeline",children:"Timeline"})}),j.jsx(Ss,{itemId:"conversations",isActive:r.pathname.startsWith("/senders"),children:j.jsx(di,{to:"senders",children:"Senders"})}),j.jsx(Ss,{itemId:"messages",isActive:r.pathname.startsWith("/messages"),children:j.jsx(di,{to:"messages",children:"Messages"})})]})})})});return j.jsx(h_,{header:a,sidebar:i,children:j.jsx(VU,{})})}function KA(e,t){return function(){return e.apply(t,arguments)}}const{toString:pH}=Object.prototype,{getPrototypeOf:x_}=Object,zg=(e=>t=>{const n=pH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>zg(t)===e),Bg=e=>t=>typeof t===e,{isArray:$u}=Array,Lf=Bg("undefined");function mH(e){return e!==null&&!Lf(e)&&e.constructor!==null&&!Lf(e.constructor)&&Nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const XA=Ka("ArrayBuffer");function gH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&XA(e.buffer),t}const vH=Bg("string"),Nr=Bg("function"),YA=Bg("number"),Ug=e=>e!==null&&typeof e=="object",yH=e=>e===!0||e===!1,fp=e=>{if(zg(e)!=="object")return!1;const t=x_(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bH=Ka("Date"),_H=Ka("File"),xH=Ka("Blob"),wH=Ka("FileList"),SH=e=>Ug(e)&&Nr(e.pipe),OH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nr(e.append)&&((t=zg(e))==="formdata"||t==="object"&&Nr(e.toString)&&e.toString()==="[object FormData]"))},CH=Ka("URLSearchParams"),EH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ed(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),$u(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const JA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ZA=e=>!Lf(e)&&e!==JA;function Fb(){const{caseless:e}=ZA(this)&&this||{},t={},n=(r,a)=>{const i=e&&QA(t,a)||a;fp(t[i])&&fp(r)?t[i]=Fb(t[i],r):fp(r)?t[i]=Fb({},r):$u(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(Ed(t,(a,i)=>{n&&Nr(a)?e[i]=KA(a,n):e[i]=a},{allOwnKeys:r}),e),PH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TH=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},AH=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&x_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},IH=e=>{if(!e)return null;if($u(e))return e;let t=e.length;if(!YA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},RH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x_(Uint8Array)),$H=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},LH=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jH=Ka("HTMLFormElement"),DH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),UO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NH=Ka("RegExp"),eM=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ed(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},FH=e=>{eM(e,(t,n)=>{if(Nr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zH=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return $u(e)?r(e):r(String(e).split(t)),n},BH=()=>{},UH=(e,t)=>(e=+e,Number.isFinite(e)?e:t),jv="abcdefghijklmnopqrstuvwxyz",HO="0123456789",tM={DIGIT:HO,ALPHA:jv,ALPHA_DIGIT:jv+jv.toUpperCase()+HO},HH=(e=16,t=tM.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function WH(e){return!!(e&&Nr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const VH=e=>{const t=new Array(10),n=(r,a)=>{if(Ug(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=$u(r)?[]:{};return Ed(r,(o,l)=>{const s=n(o,a+1);!Lf(s)&&(i[l]=s)}),t[a]=void 0,i}}return r};return n(e,0)},qH=Ka("AsyncFunction"),GH=e=>e&&(Ug(e)||Nr(e))&&Nr(e.then)&&Nr(e.catch),ne={isArray:$u,isArrayBuffer:XA,isBuffer:mH,isFormData:OH,isArrayBufferView:gH,isString:vH,isNumber:YA,isBoolean:yH,isObject:Ug,isPlainObject:fp,isUndefined:Lf,isDate:bH,isFile:_H,isBlob:xH,isRegExp:NH,isFunction:Nr,isStream:SH,isURLSearchParams:CH,isTypedArray:RH,isFileList:wH,forEach:Ed,merge:Fb,extend:kH,trim:EH,stripBOM:PH,inherits:TH,toFlatObject:AH,kindOf:zg,kindOfTest:Ka,endsWith:MH,toArray:IH,forEachEntry:$H,matchAll:LH,isHTMLForm:jH,hasOwnProperty:UO,hasOwnProp:UO,reduceDescriptors:eM,freezeMethods:FH,toObjectSet:zH,toCamelCase:DH,noop:BH,toFiniteNumber:UH,findKey:QA,global:JA,isContextDefined:ZA,ALPHABET:tM,generateString:HH,isSpecCompliantForm:WH,toJSONObject:VH,isAsyncFn:qH,isThenable:GH};function rt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}ne.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nM=rt.prototype,rM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rM[e]={value:e}});Object.defineProperties(rt,rM);Object.defineProperty(nM,"isAxiosError",{value:!0});rt.from=(e,t,n,r,a,i)=>{const o=Object.create(nM);return ne.toFlatObject(e,o,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),rt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const KH=null;function zb(e){return ne.isPlainObject(e)||ne.isArray(e)}function aM(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function WO(e,t,n){return e?e.concat(t).map(function(a,i){return a=aM(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function XH(e){return ne.isArray(e)&&!e.some(zb)}const YH=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Hg(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!ne.isUndefined(b[g])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ne.isDate(p))return p.toISOString();if(!s&&ne.isBlob(p))throw new rt("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(p)||ne.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,g,b){let m=p;if(p&&!b&&typeof p=="object"){if(ne.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ne.isArray(p)&&XH(p)||(ne.isFileList(p)||ne.endsWith(g,"[]"))&&(m=ne.toArray(p)))return g=aM(g),m.forEach(function(_,x){!(ne.isUndefined(_)||_===null)&&t.append(o===!0?WO([g],x,i):o===null?g:g+"[]",u(_))}),!1}return zb(p)?!0:(t.append(WO(b,g,i),u(p)),!1)}const f=[],d=Object.assign(YH,{defaultVisitor:c,convertValue:u,isVisitable:zb});function h(p,g){if(!ne.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ne.forEach(p,function(m,v){(!(ne.isUndefined(m)||m===null)&&a.call(t,m,ne.isString(v)?v.trim():v,g,d))===!0&&h(m,g?g.concat(v):[v])}),f.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function VO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w_(e,t){this._pairs=[],e&&Hg(e,this,t)}const iM=w_.prototype;iM.append=function(t,n){this._pairs.push([t,n])};iM.toString=function(t){const n=t?function(r){return t.call(this,r,VO)}:VO;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function QH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function oM(e,t,n){if(!t)return e;const r=n&&n.encode||QH,a=n&&n.serialize;let i;if(a?i=a(t,n):i=ne.isURLSearchParams(t)?t.toString():new w_(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class qO{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JH=typeof URLSearchParams<"u"?URLSearchParams:w_,ZH=typeof FormData<"u"?FormData:null,eW=typeof Blob<"u"?Blob:null,tW={isBrowser:!0,classes:{URLSearchParams:JH,FormData:ZH,Blob:eW},protocols:["http","https","file","blob","url","data"]},sM=typeof window<"u"&&typeof document<"u",nW=(e=>sM&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),rW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sM,hasStandardBrowserEnv:nW,hasStandardBrowserWebWorkerEnv:rW},Symbol.toStringTag,{value:"Module"})),La={...aW,...tW};function iW(e,t){return Hg(e,new La.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return La.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function oW(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lW(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&ne.isArray(a)?a.length:o,s?(ne.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!l):((!a[o]||!ne.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&ne.isArray(a[o])&&(a[o]=lW(a[o])),!l)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,a)=>{t(oW(r),a,n,0)}),n}return null}function sW(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const S_={transitional:lM,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=ne.isObject(t);if(i&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return a?JSON.stringify(uM(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iW(t,this.formSerializer).toString();if((l=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Hg(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),sW(t)):t}],transformResponse:[function(t){const n=this.transitional||S_.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&ne.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?rt.from(l,rt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:La.classes.FormData,Blob:La.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{S_.headers[e]={}});const O_=S_,uW=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cW=e=>{const t={};let n,r,a;return e&&e.split(` -`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&uW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},GO=Symbol("internals");function dc(e){return e&&String(e).trim().toLowerCase()}function dp(e){return e===!1||e==null?e:ne.isArray(e)?e.map(dp):String(e)}function fW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dv(e,t,n,r,a){if(ne.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function hW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pW(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class Wg{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const c=dc(s);if(!c)throw new Error("header name must be a non-empty string");const f=ne.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=dp(l))}const o=(l,s)=>ne.forEach(l,(u,c)=>i(u,c,s));return ne.isPlainObject(t)||t instanceof this.constructor?o(t,n):ne.isString(t)&&(t=t.trim())&&!dW(t)?o(cW(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return fW(a);if(ne.isFunction(n))return n.call(this,a,r);if(ne.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=dc(o),o){const l=ne.findKey(r,o);l&&(!n||Dv(r,r[l],l,n))&&(delete r[l],a=!0)}}return ne.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Dv(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return ne.forEach(this,(a,i)=>{const o=ne.findKey(r,i);if(o){n[o]=dp(a),delete n[i];return}const l=t?hW(i):String(i).trim();l!==i&&delete n[i],n[l]=dp(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[GO]=this[GO]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=dc(o);r[l]||(pW(a,o),r[l]=!0)}return ne.isArray(t)?t.forEach(i):i(t),this}}Wg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Wg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(Wg);const yi=Wg;function Nv(e,t){const n=this||O_,r=t||n,a=yi.from(r.headers);let i=r.data;return ne.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function cM(e){return!!(e&&e.__CANCEL__)}function kd(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(kd,rt,{__CANCEL__:!0});function mW(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const gW=La.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&o.push("path="+r),ne.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fM(e,t){return e&&!vW(t)?yW(e,t):t}const bW=La.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const l=ne.isString(o)?a(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function _W(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,l=i-n,s=r(l),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&u?(o-i)/s:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const wW=typeof XMLHttpRequest<"u",SW=wW&&function(e){return new Promise(function(n,r){let a=e.data;const i=yi.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(ne.isFormData(a)){if(La.hasStandardBrowserEnv||La.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[g,...b]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=fM(e.baseURL,e.url);f.open(e.method.toUpperCase(),oM(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const g=yi.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};mW(function(_){n(_),u()},function(_){r(_),u()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new rt("Request aborted",rt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new rt("Network Error",rt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||lM;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new rt(b,m.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,f)),f=null},La.hasStandardBrowserEnv&&(l&&ne.isFunction(l)&&(l=l(e)),l||l!==!1&&bW(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&gW.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}a===void 0&&i.setContentType(null),"setRequestHeader"in f&&ne.forEach(i.toJSON(),function(b,m){f.setRequestHeader(m,b)}),ne.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",KO(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",KO(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{f&&(r(!g||g.type?new kd(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=_W(d);if(p&&La.protocols.indexOf(p)===-1){r(new rt("Unsupported protocol "+p+":",rt.ERR_BAD_REQUEST,e));return}f.send(a||null)})},Bb={http:KH,xhr:SW};ne.forEach(Bb,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const XO=e=>`- ${e}`,OW=e=>ne.isFunction(e)||e===null||e===!1,dM={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : -`+i.map(XO).join(` -`):" "+XO(i[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Bb};function Fv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kd(null,e)}function YO(e){return Fv(e),e.headers=yi.from(e.headers),e.data=Nv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),dM.getAdapter(e.adapter||O_.adapter)(e).then(function(r){return Fv(e),r.data=Nv.call(e,e.transformResponse,r),r.headers=yi.from(r.headers),r},function(r){return cM(r)||(Fv(e),r&&r.response&&(r.response.data=Nv.call(e,e.transformResponse,r.response),r.response.headers=yi.from(r.response.headers))),Promise.reject(r)})}const QO=e=>e instanceof yi?{...e}:e;function yu(e,t){t=t||{};const n={};function r(u,c,f){return ne.isPlainObject(u)&&ne.isPlainObject(c)?ne.merge.call({caseless:f},u,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function a(u,c,f){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!ne.isUndefined(c))return r(void 0,c)}function o(u,c){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,c)=>a(QO(u),QO(c),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,d=f(e[c],t[c],c);ne.isUndefined(d)&&f!==l||(n[c]=d)}),n}const hM="1.6.8",C_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const JO={};C_.transitional=function(t,n,r){function a(i,o){return"[Axios v"+hM+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new rt(a(o," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!JO[o]&&(JO[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};function CW(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new rt("option "+i+" must be "+s,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+i,rt.ERR_BAD_OPTION)}}const Ub={assertOptions:CW,validators:C_},Vi=Ub.validators;class Jp{constructor(t){this.defaults=t,this.interceptors={request:new qO,response:new qO}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Ub.assertOptions(r,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),a!=null&&(ne.isFunction(a)?n.paramsSerializer={serialize:a}:Ub.assertOptions(a,{encode:Vi.function,serialize:Vi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ne.merge(i.common,i[n.method]);i&&ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=yi.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!s){const p=[YO.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new kd(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new E_(function(a){t=a}),cancel:t}}}const EW=E_;function kW(e){return function(n){return e.apply(null,n)}}function PW(e){return ne.isObject(e)&&e.isAxiosError===!0}const Hb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hb).forEach(([e,t])=>{Hb[t]=e});const TW=Hb;function pM(e){const t=new hp(e),n=KA(hp.prototype.request,t);return ne.extend(n,hp.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return pM(yu(e,a))},n}const zt=pM(O_);zt.Axios=hp;zt.CanceledError=kd;zt.CancelToken=EW;zt.isCancel=cM;zt.VERSION=hM;zt.toFormData=Hg;zt.AxiosError=rt;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=kW;zt.isAxiosError=PW;zt.mergeConfig=yu;zt.AxiosHeaders=yi;zt.formToJSON=e=>uM(ne.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=dM.getAdapter;zt.HttpStatusCode=TW;zt.default=zt;var Pd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bu=typeof window>"u"||"Deno"in globalThis;function Pr(){}function AW(e,t){return typeof e=="function"?e(t):e}function Wb(e){return typeof e=="number"&&e>=0&&e!==1/0}function mM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ZO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==k_(o,t.options))return!1}else if(!Df(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function eC(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(jf(t.options.mutationKey)!==jf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function k_(e,t){return((t==null?void 0:t.queryKeyHashFn)||jf)(e)}function jf(e){return JSON.stringify(e,(t,n)=>qb(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Df(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Df(e[n],t[n])):!1}function gM(e,t){if(e===t)return e;const n=tC(e)&&tC(t);if(n||qb(e)&&qb(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{};let s=0;for(let u=0;u{setTimeout(t,e)})}function Gb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gM(e,t):t}function IW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var P_=Symbol(),il,eo,Ks,FP,$W=(FP=class extends Pd{constructor(){super();Me(this,il,void 0);Me(this,eo,void 0);Me(this,Ks,void 0);Oe(this,Ks,t=>{if(!bu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,eo)||this.setEventListener(V(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,eo))==null||t.call(this),Oe(this,eo,void 0))}setEventListener(t){var n;Oe(this,Ks,t),(n=V(this,eo))==null||n.call(this),Oe(this,eo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,il)!==t&&(Oe(this,il,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,il)=="boolean"?V(this,il):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},il=new WeakMap,eo=new WeakMap,Ks=new WeakMap,FP),T_=new $W,Xs,to,Ys,zP,LW=(zP=class extends Pd{constructor(){super();Me(this,Xs,!0);Me(this,to,void 0);Me(this,Ys,void 0);Oe(this,Ys,t=>{if(!bu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,to)||this.setEventListener(V(this,Ys))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,to))==null||t.call(this),Oe(this,to,void 0))}setEventListener(t){var n;Oe(this,Ys,t),(n=V(this,to))==null||n.call(this),Oe(this,to,t(this.setOnline.bind(this)))}setOnline(t){V(this,Xs)!==t&&(Oe(this,Xs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Xs)}},Xs=new WeakMap,to=new WeakMap,Ys=new WeakMap,zP),Zp=new LW;function jW(e){return Math.min(1e3*2**e,3e4)}function vM(e){return(e??"online")==="online"?Zp.isOnline():!0}var yM=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function zv(e){return e instanceof yM}function bM(e){let t=!1,n=0,r=!1,a,i,o;const l=new Promise((m,v)=>{i=m,o=v}),s=m=>{var v;r||(p(new yM(m)),(v=e.abort)==null||v.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>T_.isFocused()&&(e.networkMode==="always"||Zp.isOnline())&&e.canRun(),d=()=>vM(e.networkMode)&&e.canRun(),h=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),a==null||a(),i(m))},p=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),a==null||a(),o(m))},g=()=>new Promise(m=>{var v;a=_=>{(r||f())&&m(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;a=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;try{m=e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var w;if(r)return;const _=e.retry??(bu?0:3),x=e.retryDelay??jW,O=typeof x=="function"?x(n,v):x,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!S){p(v);return}n++,(w=e.onFail)==null||w.call(e,n,v),MW(O).then(()=>f()?void 0:g()).then(()=>{t?p(v):b()})})};return{promise:l,cancel:s,continue:()=>(a==null||a(),l),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?b():g().then(b),l)}}function DW(){let e=[],t=0,n=d=>{d()},r=d=>{d()},a=d=>setTimeout(d,0);const i=d=>{a=d},o=d=>{let h;t++;try{h=d()}finally{t--,t||u()}return h},l=d=>{t?e.push(d):a(()=>{n(d)})},s=d=>(...h)=>{l(()=>{d(...h)})},u=()=>{const d=e;e=[],d.length&&a(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:o,batchCalls:s,schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:i}}var mn=DW(),ol,BP,_M=(BP=class{constructor(){Me(this,ol,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wb(this.gcTime)&&Oe(this,ol,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bu?1/0:5*60*1e3))}clearGcTimeout(){V(this,ol)&&(clearTimeout(V(this,ol)),Oe(this,ol,void 0))}},ol=new WeakMap,BP),Qs,Js,Er,An,rd,ll,ta,ni,UP,NW=(UP=class extends _M{constructor(t){super();Me(this,ta);Me(this,Qs,void 0);Me(this,Js,void 0);Me(this,Er,void 0);Me(this,An,void 0);Me(this,rd,void 0);Me(this,ll,void 0);Oe(this,ll,!1),Oe(this,rd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Oe(this,Er,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Oe(this,Qs,t.state||FW(this.options)),this.state=V(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...V(this,rd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,Er).remove(this)}setData(t,n){const r=Gb(this.state.data,t,this.options);return et(this,ta,ni).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,ta,ni).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=V(this,An))==null?void 0:r.promise;return(a=V(this,An))==null||a.cancel(t),n?n.then(Pr).catch(Pr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Qs))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!mM(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,Er).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,An)&&(V(this,ll)?V(this,An).cancel({revert:!0}):V(this,An).cancelRetry()),this.scheduleGc()),V(this,Er).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,ta,ni).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,An))return V(this,An).continueRetry(),V(this,An).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,a={queryKey:this.queryKey,meta:this.meta},i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Oe(this,ll,!0),r.signal)})};i(a);const o=()=>!this.options.queryFn||this.options.queryFn===P_?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(Oe(this,ll,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)),l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(u=this.options.behavior)==null||u.onFetch(l,this),Oe(this,Js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&et(this,ta,ni).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const s=d=>{var h,p,g,b;zv(d)&&d.silent||et(this,ta,ni).call(this,{type:"error",error:d}),zv(d)||((p=(h=V(this,Er).config).onError)==null||p.call(h,d,this),(b=(g=V(this,Er).config).onSettled)==null||b.call(g,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Oe(this,An,bM({fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var h,p,g,b;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(p=(h=V(this,Er).config).onSuccess)==null||p.call(h,d,this),(b=(g=V(this,Er).config).onSettled)==null||b.call(g,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,h)=>{et(this,ta,ni).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{et(this,ta,ni).call(this,{type:"pause"})},onContinue:()=>{et(this,ta,ni).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),V(this,An).start()}},Qs=new WeakMap,Js=new WeakMap,Er=new WeakMap,An=new WeakMap,rd=new WeakMap,ll=new WeakMap,ta=new WeakSet,ni=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...xM(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return zv(a)&&a.revert&&V(this,Js)?{...V(this,Js),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,Er).notify({query:this,type:"updated",action:t})})},UP);function xM(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:vM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FW(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ka,HP,zW=(HP=class extends Pd{constructor(t={}){super();Me(this,ka,void 0);this.config=t,Oe(this,ka,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??k_(a,n);let o=this.get(i);return o||(o=new NW({cache:this,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){V(this,ka).has(t.queryHash)||(V(this,ka).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ka).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ka).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ka).get(t)}getAll(){return[...V(this,ka).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ZO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>ZO(t,r)):n}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ka=new WeakMap,HP),Pa,Mn,sl,Ta,Xi,WP,BW=(WP=class extends _M{constructor(t){super();Me(this,Ta);Me(this,Pa,void 0);Me(this,Mn,void 0);Me(this,sl,void 0);this.mutationId=t.mutationId,Oe(this,Mn,t.mutationCache),Oe(this,Pa,[]),this.state=t.state||UW(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Pa).includes(t)||(V(this,Pa).push(t),this.clearGcTimeout(),V(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Oe(this,Pa,V(this,Pa).filter(n=>n!==t)),this.scheduleGc(),V(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Pa).length||(this.state.status==="pending"?this.scheduleGc():V(this,Mn).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,l,s,u,c,f,d,h,p,g,b,m,v,_,x,O,S,w;Oe(this,sl,bM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{et(this,Ta,Xi).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{et(this,Ta,Xi).call(this,{type:"pause"})},onContinue:()=>{et(this,Ta,Xi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Mn).canRun(this)}));const n=this.state.status==="pending",r=!V(this,sl).canStart();try{if(!n){et(this,Ta,Xi).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(a=V(this,Mn).config).onMutate)==null?void 0:i.call(a,t,this));const A=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));A!==this.state.context&&et(this,Ta,Xi).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const C=await V(this,sl).start();return await((u=(s=V(this,Mn).config).onSuccess)==null?void 0:u.call(s,C,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,C,t,this.state.context)),await((h=(d=V(this,Mn).config).onSettled)==null?void 0:h.call(d,C,null,this.state.variables,this.state.context,this)),await((g=(p=this.options).onSettled)==null?void 0:g.call(p,C,null,t,this.state.context)),et(this,Ta,Xi).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=(b=V(this,Mn).config).onError)==null?void 0:m.call(b,C,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,C,t,this.state.context)),await((O=(x=V(this,Mn).config).onSettled)==null?void 0:O.call(x,void 0,C,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,C,t,this.state.context)),C}finally{et(this,Ta,Xi).call(this,{type:"error",error:C})}}finally{V(this,Mn).runNext(this)}}},Pa=new WeakMap,Mn=new WeakMap,sl=new WeakMap,Ta=new WeakSet,Xi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mn.batch(()=>{V(this,Pa).forEach(r=>{r.onMutationUpdate(t)}),V(this,Mn).notify({mutation:this,type:"updated",action:t})})},WP);function UW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ir,ad,VP,HW=(VP=class extends Pd{constructor(t={}){super();Me(this,ir,void 0);Me(this,ad,void 0);this.config=t,Oe(this,ir,new Map),Oe(this,ad,Date.now())}build(t,n,r){const a=new BW({mutationCache:this,mutationId:++Jd(this,ad)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){const n=xh(t),r=V(this,ir).get(n)??[];r.push(t),V(this,ir).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=xh(t);if(V(this,ir).has(n)){const a=(r=V(this,ir).get(n))==null?void 0:r.filter(i=>i!==t);a&&(a.length===0?V(this,ir).delete(n):V(this,ir).set(n,a))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,ir).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>eC(n,r))}findAll(t={}){return this.getAll().filter(n=>eC(t,n))}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pr))))}},ir=new WeakMap,ad=new WeakMap,VP);function xh(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function WW(e){return{onFetch:(t,n)=>{const r=async()=>{var p,g,b,m,v;const a=t.options,i=(b=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],l=((v=t.state.data)==null?void 0:v.pageParams)||[],s={pages:[],pageParams:[]};let u=!1;const c=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn&&t.options.queryFn!==P_?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),d=async(_,x,O)=>{if(u)return Promise.reject();if(x==null&&_.pages.length)return Promise.resolve(_);const S={queryKey:t.queryKey,pageParam:x,direction:O?"backward":"forward",meta:t.options.meta};c(S);const w=await f(S),{maxPages:C}=t.options,A=O?RW:IW;return{pages:A(_.pages,w,C),pageParams:A(_.pageParams,x,C)}};let h;if(i&&o.length){const _=i==="backward",x=_?VW:rC,O={pages:o,pageParams:l},S=x(a,O);h=await d(O,S,_)}else{h=await d(s,l[0]??a.initialPageParam);const _=e??o.length;for(let x=1;x<_;x++){const O=rC(a,h);h=await d(h,O)}}return h};t.options.persister?t.fetchFn=()=>{var a,i;return(i=(a=t.options).persister)==null?void 0:i.call(a,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function rC(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function VW(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Dt,no,ro,Zs,eu,ao,tu,nu,qP,qW=(qP=class{constructor(e={}){Me(this,Dt,void 0);Me(this,no,void 0);Me(this,ro,void 0);Me(this,Zs,void 0);Me(this,eu,void 0);Me(this,ao,void 0);Me(this,tu,void 0);Me(this,nu,void 0);Oe(this,Dt,e.queryCache||new zW),Oe(this,no,e.mutationCache||new HW),Oe(this,ro,e.defaultOptions||{}),Oe(this,Zs,new Map),Oe(this,eu,new Map),Oe(this,ao,0)}mount(){Jd(this,ao)._++,V(this,ao)===1&&(Oe(this,tu,T_.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onFocus())})),Oe(this,nu,Zp.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onOnline())})))}unmount(){var e,t;Jd(this,ao)._--,V(this,ao)===0&&((e=V(this,tu))==null||e.call(this),Oe(this,tu,void 0),(t=V(this,nu))==null||t.call(this),Oe(this,nu,void 0))}isFetching(e){return V(this,Dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,no).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,Dt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,Dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=V(this,Dt).get(r.queryHash),i=a==null?void 0:a.state.data,o=AW(t,i);if(o!==void 0)return V(this,Dt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return mn.batch(()=>V(this,Dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,Dt);mn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,Dt),r={type:"active",...e};return mn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=mn.batch(()=>V(this,Dt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Pr).catch(Pr)}invalidateQueries(e={},t={}){return mn.batch(()=>{if(V(this,Dt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=mn.batch(()=>V(this,Dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,Dt).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pr).catch(Pr)}fetchInfiniteQuery(e){return e.behavior=WW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pr).catch(Pr)}resumePausedMutations(){return Zp.isOnline()?V(this,no).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Dt)}getMutationCache(){return V(this,no)}getDefaultOptions(){return V(this,ro)}setDefaultOptions(e){Oe(this,ro,e)}setQueryDefaults(e,t){V(this,Zs).set(jf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,Zs).values()];let n={};return t.forEach(r=>{Df(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,eu).set(jf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,eu).values()];let n={};return t.forEach(r=>{Df(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ro).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=k_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===P_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ro).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,Dt).clear(),V(this,no).clear()}},Dt=new WeakMap,no=new WeakMap,ro=new WeakMap,Zs=new WeakMap,eu=new WeakMap,ao=new WeakMap,tu=new WeakMap,nu=new WeakMap,qP),Hn,pt,id,In,ul,ru,Aa,od,au,iu,cl,fl,io,ou,dl,Tc,ld,Kb,sd,Xb,ud,Yb,cd,Qb,fd,Jb,dd,Zb,hd,e1,pg,wM,GP,GW=(GP=class extends Pd{constructor(t,n){super();Me(this,dl);Me(this,ld);Me(this,sd);Me(this,ud);Me(this,cd);Me(this,fd);Me(this,dd);Me(this,hd);Me(this,pg);Me(this,Hn,void 0);Me(this,pt,void 0);Me(this,id,void 0);Me(this,In,void 0);Me(this,ul,void 0);Me(this,ru,void 0);Me(this,Aa,void 0);Me(this,od,void 0);Me(this,au,void 0);Me(this,iu,void 0);Me(this,cl,void 0);Me(this,fl,void 0);Me(this,io,void 0);Me(this,ou,new Set);this.options=n,Oe(this,Hn,t),Oe(this,Aa,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,pt).addObserver(this),aC(V(this,pt),this.options)?et(this,dl,Tc).call(this):this.updateResult(),et(this,cd,Qb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return t1(V(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return t1(V(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,et(this,fd,Jb).call(this),et(this,dd,Zb).call(this),V(this,pt).removeObserver(this)}setOptions(t,n){const r=this.options,a=V(this,pt);if(this.options=V(this,Hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");et(this,hd,e1).call(this),V(this,pt).setOptions(this.options),r._defaulted&&!Vb(this.options,r)&&V(this,Hn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,pt),observer:this});const i=this.hasListeners();i&&iC(V(this,pt),a,this.options,r)&&et(this,dl,Tc).call(this),this.updateResult(n),i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&et(this,ld,Kb).call(this);const o=et(this,sd,Xb).call(this);i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||o!==V(this,io))&&et(this,ud,Yb).call(this,o)}getOptimisticResult(t){const n=V(this,Hn).getQueryCache().build(V(this,Hn),t),r=this.createResult(n,t);return XW(this,r)&&(Oe(this,In,r),Oe(this,ru,this.options),Oe(this,ul,V(this,pt).state)),r}getCurrentResult(){return V(this,In)}trackResult(t,n){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),n==null||n(a),t[a])})}),r}trackProp(t){V(this,ou).add(t)}getCurrentQuery(){return V(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,Hn).defaultQueryOptions(t),r=V(this,Hn).getQueryCache().build(V(this,Hn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return et(this,dl,Tc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,In)))}createResult(t,n){var w;const r=V(this,pt),a=this.options,i=V(this,In),o=V(this,ul),l=V(this,ru),u=t!==r?t.state:V(this,id),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const C=this.hasListeners(),A=!C&&aC(t,n),I=C&&iC(t,r,n,a);(A||I)&&(f={...f,...xM(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:g,status:b}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(o==null?void 0:o.data)&&n.select===V(this,od))h=V(this,au);else try{Oe(this,od,n.select),h=n.select(f.data),h=Gb(i==null?void 0:i.data,h,n),Oe(this,au,h),Oe(this,Aa,null)}catch(C){Oe(this,Aa,C)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let C;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=i.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((w=V(this,iu))==null?void 0:w.state.data,V(this,iu)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),Oe(this,Aa,null)}catch(A){Oe(this,Aa,A)}C!==void 0&&(b="success",h=Gb(i==null?void 0:i.data,C,n),d=!0)}V(this,Aa)&&(p=V(this,Aa),h=V(this,au),g=Date.now(),b="error");const m=f.fetchStatus==="fetching",v=b==="pending",_=b==="error",x=v&&m,O=h!==void 0;return{status:b,fetchStatus:f.fetchStatus,isPending:v,isSuccess:b==="success",isError:_,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:_&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:_&&O,isStale:A_(t,n),refetch:this.refetch}}updateResult(t){const n=V(this,In),r=this.createResult(V(this,pt),this.options);if(Oe(this,ul,V(this,pt).state),Oe(this,ru,this.options),V(this,ul).data!==void 0&&Oe(this,iu,V(this,pt)),Vb(r,n))return;Oe(this,In,r);const a={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!V(this,ou).size)return!0;const s=new Set(l??V(this,ou));return this.options.throwOnError&&s.add("error"),Object.keys(V(this,In)).some(u=>{const c=u;return V(this,In)[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),et(this,pg,wM).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,cd,Qb).call(this)}},Hn=new WeakMap,pt=new WeakMap,id=new WeakMap,In=new WeakMap,ul=new WeakMap,ru=new WeakMap,Aa=new WeakMap,od=new WeakMap,au=new WeakMap,iu=new WeakMap,cl=new WeakMap,fl=new WeakMap,io=new WeakMap,ou=new WeakMap,dl=new WeakSet,Tc=function(t){et(this,hd,e1).call(this);let n=V(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pr)),n},ld=new WeakSet,Kb=function(){if(et(this,fd,Jb).call(this),bu||V(this,In).isStale||!Wb(this.options.staleTime))return;const n=mM(V(this,In).dataUpdatedAt,this.options.staleTime)+1;Oe(this,cl,setTimeout(()=>{V(this,In).isStale||this.updateResult()},n))},sd=new WeakSet,Xb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,pt)):this.options.refetchInterval)??!1},ud=new WeakSet,Yb=function(t){et(this,dd,Zb).call(this),Oe(this,io,t),!(bu||this.options.enabled===!1||!Wb(V(this,io))||V(this,io)===0)&&Oe(this,fl,setInterval(()=>{(this.options.refetchIntervalInBackground||T_.isFocused())&&et(this,dl,Tc).call(this)},V(this,io)))},cd=new WeakSet,Qb=function(){et(this,ld,Kb).call(this),et(this,ud,Yb).call(this,et(this,sd,Xb).call(this))},fd=new WeakSet,Jb=function(){V(this,cl)&&(clearTimeout(V(this,cl)),Oe(this,cl,void 0))},dd=new WeakSet,Zb=function(){V(this,fl)&&(clearInterval(V(this,fl)),Oe(this,fl,void 0))},hd=new WeakSet,e1=function(){const t=V(this,Hn).getQueryCache().build(V(this,Hn),this.options);if(t===V(this,pt))return;const n=V(this,pt);Oe(this,pt,t),Oe(this,id,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},pg=new WeakSet,wM=function(t){mn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,In))}),V(this,Hn).getQueryCache().notify({query:V(this,pt),type:"observerResultsUpdated"})})},GP);function KW(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function aC(e,t){return KW(e,t)||e.state.data!==void 0&&t1(e,t,t.refetchOnMount)}function t1(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&A_(e,t)}return!1}function iC(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&A_(e,n)}function A_(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function XW(e,t){return!Vb(e.getCurrentResult(),t)}var SM=y.createContext(void 0),YW=e=>{const t=y.useContext(SM);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QW=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),j.jsx(SM.Provider,{value:e,children:t})),OM=y.createContext(!1),JW=()=>y.useContext(OM);OM.Provider;function ZW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var eV=y.createContext(ZW()),tV=()=>y.useContext(eV);function nV(e,t){return typeof e=="function"?e(...t):!!e}var rV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},aV=e=>{y.useEffect(()=>{e.clearReset()},[e])},iV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&nV(n,[e.error,r]),oV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},lV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function uV(e,t,n){const r=YW(n),a=JW(),i=tV(),o=r.defaultQueryOptions(e);o._optimisticResults=a?"isRestoring":"optimistic",oV(o),rV(o,i),aV(i);const[l]=y.useState(()=>new t(r,o)),s=l.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(u=>{const c=a?()=>{}:l.subscribe(mn.batchCalls(u));return l.updateResult(),c},[l,a]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),y.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),lV(o,s))throw sV(o,l,i);if(iV({result:s,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw s.error;return o.notifyOnChangeProps?s:l.trackResult(s)}function cV(e,t){return uV(e,GW,t)}const fV=async()=>{const e=await zt.get("/api/virtual-assistant/v1/senders");if(e.status===200)return e.data.senders;throw new Error("Invalid request")},dV=()=>cV({queryKey:["senders"],queryFn:fV}),hV=e=>{var{items:t,isDisabled:n,rowData:r,extraData:a,actionsToggle:i,popperProps:o={position:"end",direction:"down"},innerRef:l,firstActionItemRef:s,isOnOpenChangeDisabled:u=!1}=e,c=Q(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,d]=y.useState(!1),h=()=>{d(!f)},p=(g,b)=>{b&&(g.preventDefault(),b(g,a&&a.rowIndex,r,a))};return y.createElement(y.Fragment,null,t.filter(g=>g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,isOutsideDropdown:x}=g,O=Q(g,["title","itemKey","onClick","isOutsideDropdown"]);return typeof m=="string"?y.createElement(gt,Object.assign({onClick:S=>p(S,_)},O,{isDisabled:n,key:v||`outside_dropdown_${b}`,"data-key":v||`outside_dropdown_${b}`}),m):y.cloneElement(m,Object.assign({onClick:_,isDisabled:n},O))}),y.createElement(u_,Object.assign({isOpen:f,onOpenChange:u?void 0:g=>d(g),toggle:g=>i?i({onToggle:h,isOpen:f,isDisabled:n,toggleRef:g}):y.createElement(mu,{"aria-label":"Kebab toggle",ref:g,onClick:h,isExpanded:f,isDisabled:n,variant:"plain"},y.createElement(mB,null))},r&&r.actionProps,{ref:l},c,{popperProps:o}),y.createElement(iA,null,t.filter(g=>!g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,tooltipProps:x,isSeparator:O,shouldCloseOnClick:S=!0}=g,w=Q(g,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(O)return y.createElement(ZT,{key:v||b,"data-key":v||b});const C=y.createElement(c_,Object.assign({onClick:A=>{p(A,_),S&&h()}},w,{key:v||b,"data-key":v||b,ref:b===0?s:void 0}),m);return x!=null&&x.content?y.createElement($i,Object.assign({key:v||b},x),C):C}))))},CM=y.forwardRef((e,t)=>y.createElement(hV,Object.assign({},e,{innerRef:t})));CM.displayName="ActionsColumn";const Ee={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",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",expanded:"pf-m-expanded",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",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",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-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"},EM=e=>{var{className:t="",children:n=null,isOpen:r,onToggle:a}=e,i=Q(e,["className","children","isOpen","onToggle"]);return y.createElement(y.Fragment,null,r!==void 0&&y.createElement(gt,Object.assign({className:D(t,r&&Ee.modifiers.expanded)},i,{variant:"plain","aria-label":i["aria-label"]||"Details",onClick:a,"aria-expanded":r}),y.createElement("div",{className:D(Ee.tableToggleIcon)},y.createElement(f_,null))),n)};EM.displayName="CollapseColumn";const kM=e=>{var{className:t,onClick:n,"aria-label":r,id:a}=e,i=Q(e,["className","onClick","aria-label","id"]);return y.createElement(gt,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":r||"Draggable row draggable button",onClick:n},i),y.createElement(Cz,{"aria-hidden":!0}))};kM.displayName="DraggableCell";const pV={button:"pf-v5-c-button",inlineEdit:"pf-v5-c-inline-edit",inlineEditAction:"pf-v5-c-inline-edit__action",inlineEditEditableText:"pf-v5-c-inline-edit__editable-text",inlineEditGroup:"pf-v5-c-inline-edit__group",inlineEditInput:"pf-v5-c-inline-edit__input",inlineEditLabel:"pf-v5-c-inline-edit__label",inlineEditValue:"pf-v5-c-inline-edit__value",modifiers:{iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"}};var oC;(function(e){e.div="div",e.nav="nav"})(oC||(oC={}));var lC;(function(e){e.wrap="wrap",e.nowrap="nowrap",e.truncate="truncate",e.breakWord="breakWord",e.fitContent="fitContent"})(lC||(lC={}));const Vg=e=>{var{children:t=null,className:n="",variant:r="span",wrapModifier:a=null,tooltip:i="",tooltipProps:o={},onMouseEnter:l=()=>{},focused:s=!1,tooltipHasDefaultBehavior:u=!1}=e,c=Q(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=r,d=y.createRef(),[h,p]=y.useState(i),g=v=>{v.target.offsetWidth{v.offsetWidth{u||(s?b(d.current):p(""))},[s,u]),h!==""?y.createElement($i,Object.assign({triggerRef:d,content:h},!u&&{isVisible:!0},o),m):m};Vg.displayName="TableText";const n1=({children:e,info:t,className:n,variant:r="tooltip",popoverProps:a,tooltipProps:i,ariaLabel:o})=>y.createElement("div",{className:D(Ee.tableColumnHelp,n)},typeof e=="string"?y.createElement(Vg,null,e):e,y.createElement("span",{className:D(Ee.tableColumnHelpAction)},r==="tooltip"?y.createElement($i,Object.assign({content:t},i),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null))):y.createElement(l_,Object.assign({bodyContent:t},a),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null)))));n1.displayName="HeaderCellInfoWrapper";const mV={button:"pf-v5-c-button",modifiers:{grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableCheck:"pf-v5-c-table__check",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr"},Vn={dirRtl:"pf-v5-m-dir-rtl",dropdown:"pf-v5-c-dropdown",modifiers:{treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableCheck:"pf-v5-c-table__check",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",tableTreeViewDetailsToggle:"pf-v5-c-table__tree-view-details-toggle",tableTreeViewIcon:"pf-v5-c-table__tree-view-icon",tableTreeViewMain:"pf-v5-c-table__tree-view-main",tableTreeViewText:"pf-v5-c-table__tree-view-text",tableTreeViewTitleCell:"pf-v5-c-table__tree-view-title-cell",tableTreeViewTitleHeaderCell:"pf-v5-c-table__tree-view-title-header-cell"};var r1;(function(e){e.radio="radio",e.checkbox="checkbox"})(r1||(r1={}));const PM=e=>{var{children:t=null,className:n,onSelect:r=null,selectVariant:a,tooltip:i,tooltipProps:o}=e,l=Q(e,["children","className","onSelect","selectVariant","tooltip","tooltipProps"]);const s=y.createRef(),u=y.createElement(y.Fragment,null,y.createElement("label",null,y.createElement("input",Object.assign({},l,{ref:s,type:a,onChange:r}))),t);return i?y.createElement($i,Object.assign({triggerRef:s,content:i},o),u):u};PM.displayName="SelectColumn";const TM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i,tooltip:o})=>{const{extraParams:{onSelect:l,selectVariant:s,allRowsSelected:u,isHeaderSelectDisabled:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.showSelect&&!r.fullWidth)return{component:"td",isVisible:!0};const d=t!==void 0?t:-1;function h(b){const m=t===void 0?b.currentTarget.checked:r&&!r.selected;l&&l(b,m,d,r,f)}const p=Object.assign(Object.assign(Object.assign({},d!==-1?{checked:r&&!!r.selected,"aria-label":`Select row ${t}`}:{checked:u,"aria-label":"Select all rows"}),r&&(r.disableCheckbox||r.disableSelection)&&{disabled:!0,className:ti.checkInput}),!r&&c&&{disabled:!0});let g="check-all";return d!==-1&&s===r1.checkbox?g=`checkrow${t}`:d!==-1&&(g="radioGroup"),{className:D(Ee.tableCheck),component:d!==-1?"td":"th",isVisible:!r||!r.fullWidth,children:y.createElement(PM,Object.assign({},p,{selectVariant:s,onSelect:h,name:g,tooltip:o}),e)}};var tl;(function(e){e.asc="asc",e.desc="desc"})(tl||(tl={}));const AM=e=>{var{children:t=null,className:n="",isSortedBy:r=!1,onSort:a=null,sortDirection:i="",type:o="button",tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u}=e,c=Q(e,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior"]);let f;const[d,h]=y.useState(!1);return r?f=i===tl.asc?CB:wB:f=iB,y.createElement("button",Object.assign({},c,{type:o,className:D(n,Ee.tableButton),onClick:p=>a&&a(p),onFocus:()=>h(!0),onBlur:()=>h(!1)}),y.createElement("div",{className:D(n,Ee.tableButtonContent)},y.createElement(Vg,{tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u,focused:d},t),y.createElement("span",{className:D(Ee.tableSortIndicator)},y.createElement(f,null))))};AM.displayName="SortColumn";const gV=e=>()=>MM(y.createElement(n_,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:Ee.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e==null?void 0:e.onSort}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0}),MM=(e,{columnIndex:t,column:n,property:r,className:a,ariaLabel:i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s})=>{const{extraParams:{sortBy:u,onSort:c}}=n,f={columnIndex:t,column:n,property:r},d=u&&t===u.index;function h(p){let g;d?g=u.direction===tl.asc?tl.desc:tl.asc:g=u.defaultDirection?u.defaultDirection:tl.asc,c&&c(p,t,g,f)}return{className:D(Ee.tableSort,d&&Ee.modifiers.selected,a),"aria-sort":d?`${u.direction}ending`:"none",children:y.createElement(AM,{isSortedBy:d,sortDirection:d?u.direction:"",onSort:h,"aria-label":i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s},e)}},sC=(e,t,n,r)=>typeof e=="function"?e(n,r):t,vV=(e,t,n)=>(r,{rowData:a,column:i,rowIndex:o,columnIndex:l,column:{extraParams:{actionsToggle:s,actionsPopperProps:u}},property:c})=>{const f={rowIndex:o,columnIndex:l,column:i,property:c},d=sC(t,e,a,f),h=sC(n,a&&a.disableActions,a,f),p=d&&d.length>0?{children:y.createElement(CM,{items:d,isDisabled:h,rowData:a,extraData:f,actionsToggle:s,popperProps:u},r)}:{};return Object.assign({className:D(Ee.tableAction),style:{paddingRight:0},isVisible:!0},p)},yV=e=>e.toUpperCase().replace("-","").replace("_",""),uC=e=>e.replace(/([-_][a-z])/gi,yV);function bV(e){return e[0].toUpperCase()+e.substring(1)}const IM=e=>()=>({className:D(Ee.modifiers[typeof e=="number"?`width_${e}`:`width${bV(e)}`])}),RM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onCollapse:o,rowLabeledBy:l="simple-node",expandId:s="expand-toggle",allRowsExpanded:u,collapseAllAriaLabel:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i},d=t!==void 0?t:-1,h=Object.assign({},d!==-1?{isOpen:r==null?void 0:r.isOpen,"aria-labelledby":`${l}${d} ${s}${d}`}:{isOpen:u,"aria-label":c||"Expand all rows"});function p(g){const b=r?!r.isOpen:!u;o&&o(g,t,b,r,f)}return{className:((r==null?void 0:r.isOpen)!==void 0||d===-1)&&D(Ee.tableToggle),isVisible:!(r!=null&&r.fullWidth),children:y.createElement(EM,Object.assign({"aria-labelledby":`${l}${d} ${s}${d}`,onToggle:p,id:s+d},h),e)}},_V=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{if(!e)return null;const{title:o,props:l}=e,{extraParams:{onExpand:s,expandId:u="expand-toggle"}}=a,c={rowIndex:t,columnIndex:n,column:a,property:i};function f(d){s&&s(d,t,n,l.isOpen,r,c)}return{className:D(Ee.tableCompoundExpansionToggle,l.isOpen&&Ee.modifiers.expanded),children:l.isOpen!==void 0&&y.createElement("button",{type:"button",className:D(Ee.tableButton),onClick:f,"aria-expanded":l.isOpen,"aria-controls":l.ariaControls,id:`${u}-${t}-${n}`},y.createElement(Vg,null,o))}},xV=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"],$M=xV.filter(e=>Ee.modifiers[e]).reduce((e,t)=>{const n=t.replace("_2xl","2Xl");return e[n]=Ee.modifiers[t],e},{}),LM=(...e)=>()=>({className:D(...e)}),wV=({tooltip:e,tooltipProps:t,popover:n,popoverProps:r,className:a,ariaLabel:i})=>l=>({className:Ee.modifiers.help,children:e?y.createElement(n1,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:i,className:a},l):y.createElement(n1,{variant:"popover",info:n,popoverProps:r,ariaLabel:i,className:a},l)}),jM=e=>{var{className:t="",onFavorite:n,isFavorited:r,rowIndex:a}=e,i=Q(e,["className","onFavorite","isFavorited","rowIndex"]);const o=a===void 0?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return y.createElement(gt,Object.assign({variant:"plain",className:t,type:"button","aria-label":r?"Starred":"Not starred",onClick:n},o,i),y.createElement(n_,{"aria-hidden":!0}))};jM.displayName="FavoritesCell";const SV=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onFavorite:o}}=a,l={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.fullWidth)return{component:"td",isVisible:!0};function s(c){o&&o(c,r&&!r.favorited,t,r,l)}const u=r.favoritesProps||{};return{className:D(Ee.tableFavorite,r&&r.favorited&&Ee.modifiers.favorited),isVisible:!r||!r.fullWidth,children:y.createElement(jM,Object.assign({rowIndex:t,onFavorite:s,isFavorited:r&&r.favorited},u))}},OV=(e,t,n)=>(r,{rowIndex:a,rowData:i})=>{const{isExpanded:o,isDetailsExpanded:l,"aria-level":s,"aria-setsize":u,toggleAriaLabel:c,checkAriaLabel:f,showDetailsAriaLabel:d,isChecked:h,checkboxId:p,icon:g}=i.props,b=r.title||r,m=y.createElement("div",{className:D(Vn.tableTreeViewText),key:"tree-view-text"},g&&y.createElement("span",{className:D(Vn.tableTreeViewIcon),key:"tree-view-text-icon"},g),y.createElement("span",{className:Ee.tableText,key:"table-text"},b)),v=(_,x)=>{t(x,_,a,b,i)};return{component:"th",className:Vn.tableTreeViewTitleCell,children:s!==void 0?y.createElement("div",{className:D(Vn.tableTreeViewMain)},u>0&&y.createElement("span",{className:D(Vn.tableToggle),key:"table-toggle"},y.createElement(gt,{variant:"plain",onClick:_=>e&&e(_,a,b,i),className:D(o&&Ee.modifiers.expanded),"aria-expanded":o,"aria-label":c||`${o?"Collapse":"Expand"} row ${a}`},y.createElement("div",{className:D(Vn.tableToggleIcon)},y.createElement(f_,{"aria-hidden":"true"})))),!!t&&y.createElement("span",{className:D(Vn.tableCheck),key:"table-check"},y.createElement("label",{htmlFor:p||`checkbox_${a}`},y.createElement(ur,{id:p||`checkbox_${a}`,"aria-label":f||`Row ${a} checkbox`,isChecked:h,onChange:(_,x)=>v(x,_)}))),m,!!n&&y.createElement("span",{className:D(Vn.tableTreeViewDetailsToggle),key:"view-details-toggle"},y.createElement(gt,{variant:"plain","aria-expanded":l,"aria-label":d||"Show row details",onClick:_=>n&&n(_,a,b,i)},y.createElement("span",{className:`${Ee.table}__details-toggle-icon`},y.createElement(dB,{"aria-hidden":!0}))))):m}};var a1;(function(e){e.none="",e.grid="grid",e.gridMd="grid-md",e.gridLg="grid-lg",e.gridXl="grid-xl",e.grid2xl="grid-2xl"})(a1||(a1={}));var cC;(function(e){e.compact="compact"})(cC||(cC={}));const DM=y.createContext({registerSelectableRow:()=>{}}),CV=e=>{var t,n,{children:r,className:a,variant:i,borders:o=!0,isStickyHeader:l=!1,gridBreakPoint:s=a1.gridMd,"aria-label":u,role:c="grid",innerRef:f,ouiaId:d,ouiaSafe:h=!0,isTreeTable:p=!1,isNested:g=!1,isStriped:b=!1,isExpandable:m=!1,hasNoInset:v=!1,nestedHeaderColumnSpans:_,selectableRowCaptionText:x}=e,O=Q(e,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const S=y.useRef(null),w=f||S,[C,A]=y.useState(!1),[I,P]=y.useState();y.useEffect(()=>{if(document.addEventListener("keydown",U),w&&w.current&&w.current.classList.contains("pf-m-tree-view")){const $=w.current.querySelector("tbody");$&&FF(Array.from($.querySelectorAll("button, a, input")))}return function(){document.removeEventListener("keydown",U)}},[w,w.current]),y.useEffect(()=>{P(x?y.createElement("caption",null,x,y.createElement("div",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")):y.createElement("caption",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."))},[x]);const T=Ii("Table",d,h),E=(t=mV.modifiers)===null||t===void 0?void 0:t[uC(s||"").replace(/-?2xl/,"_2xl")],L=`treeView${s.charAt(0).toUpperCase()+s.slice(1)}`,N=(n=Vn.modifiers)===null||n===void 0?void 0:n[uC(L||"").replace(/-?2xl/,"_2xl")],U=$=>{if(g||!(w&&w.current&&w.current.classList.contains(Vn.modifiers.treeView))||w&&w.current!==$.target.closest(`.${Ee.table}:not(.pf-m-nested)`))return;const F=document.activeElement,k=$.key,X=Array.from(w.current.querySelectorAll("tbody tr")).filter(R=>!R.classList.contains("pf-m-disabled")&&!R.hidden);(k==="Space"||k==="Enter")&&(F.click(),$.preventDefault()),kT($,X,R=>R===F.closest("tr"),R=>R.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0],["button","input","a"],void 0,!1,!0,!1)},W=()=>{!C&&A(!0)};return y.createElement(DM.Provider,{value:{registerSelectableRow:W}},y.createElement("table",Object.assign({"aria-label":u,role:c,className:D(a,Ee.table,p?N:E,Ee.modifiers[i],!o&&Ee.modifiers.noBorderRows,l&&Ee.modifiers.stickyHeader,p&&Vn.modifiers.treeView,b&&Ee.modifiers.striped,m&&Ee.modifiers.expandable,v&&Vn.modifiers.noInset,g&&"pf-m-nested"),ref:w},p&&{role:"treegrid"},T,O),C&&I,r))},M_=y.forwardRef((e,t)=>y.createElement(CV,Object.assign({},e,{innerRef:t})));M_.displayName="Table";const EV=e=>{var{children:t,className:n,isExpanded:r,isEditable:a,isHidden:i=!1,isClickable:o=!1,isRowSelected:l=!1,isStriped:s=!1,isBorderRow:u=!1,innerRef:c,ouiaId:f,ouiaSafe:d=!0,resetOffset:h=!1,onRowClick:p,isSelectable:g,"aria-label":b}=e,m=Q(e,["children","className","isExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const v=Ii("TableRow",f,d),[_,x]=y.useState("");let O=null;p&&(O=A=>{(A.key==="Enter"||A.key===" ")&&(p(A),A.preventDefault())});const S=i||r!==void 0&&!r,{registerSelectableRow:w}=y.useContext(DM);y.useEffect(()=>{g&&!S?(x(`${l?"Row selected":""}`),w()):x(void 0)},[l,g,w,S]);const C=b||_;return y.createElement(y.Fragment,null,y.createElement("tr",Object.assign({className:D(Ee.tableTr,n,r!==void 0&&Ee.tableExpandableRow,r&&Ee.modifiers.expanded,a&&pV.modifiers.inlineEditable,o&&Ee.modifiers.clickable,l&&Ee.modifiers.selected,s&&Ee.modifiers.striped,u&&Ee.modifiers.borderRow,h&&Ee.modifiers.firstCellOffsetReset),hidden:S},o&&{tabIndex:0},{"aria-label":C,ref:c},p&&{onClick:p,onKeyDown:O},v,m),t))},Nf=y.forwardRef((e,t)=>y.createElement(EV,Object.assign({},e,{innerRef:t})));Nf.displayName="Tr";const kV=e=>{var{children:t,className:n,noWrap:r=!1,innerRef:a,hasNestedHeader:i}=e,o=Q(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return y.createElement("thead",Object.assign({className:D(Ee.tableThead,n,r&&Ee.modifiers.nowrap,i&&Ee.modifiers.nestedColumnHeader),ref:a},o),t)},I_=y.forwardRef((e,t)=>y.createElement(kV,Object.assign({},e,{innerRef:t})));I_.displayName="Thead";const PV=e=>{var{children:t,className:n,isExpanded:r,innerRef:a,isEvenStriped:i=!1,isOddStriped:o=!1}=e,l=Q(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return y.createElement("tbody",Object.assign({role:"rowgroup",className:D(Ee.tableTbody,n,r&&Ee.modifiers.expanded,o&&Ee.modifiers.striped,i&&Ee.modifiers.stripedEven),ref:a},l),t)},R_=y.forwardRef((e,t)=>y.createElement(PV,Object.assign({},e,{innerRef:t})));R_.displayName="Tbody";const zs={modifiers:{borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",right:"pf-m-right",inlineEnd:"pf-m-inline-end",left:"pf-m-left",inlineStart:"pf-m-inline-start"},scrollInnerWrapper:"pf-v5-c-scroll-inner-wrapper",scrollOuterWrapper:"pf-v5-c-scroll-outer-wrapper",table:"pf-v5-c-table",tableStickyCell:"pf-v5-c-table__sticky-cell"};function TV(){this.__data__=[],this.size=0}var AV=TV;function MV(e,t){return e===t||e!==e&&t!==t}var Fl=MV,IV=Fl;function RV(e,t){for(var n=e.length;n--;)if(IV(e[n][0],t))return n;return-1}var qg=RV,$V=qg,LV=Array.prototype,jV=LV.splice;function DV(e){var t=this.__data__,n=$V(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jV.call(t,n,1),--this.size,!0}var NV=DV,FV=qg;function zV(e){var t=this.__data__,n=FV(t,e);return n<0?void 0:t[n][1]}var BV=zV,UV=qg;function HV(e){return UV(this.__data__,e)>-1}var WV=HV,VV=qg;function qV(e,t){var n=this.__data__,r=VV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var GV=qV,KV=AV,XV=NV,YV=BV,QV=WV,JV=GV;function Lu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=cX}var F_=fX,dX=$_,hX=F_;function pX(e){return e!=null&&hX(e.length)&&!dX(e)}var Bl=pX,mX=Bl,gX=ji;function vX(e){return gX(e)&&mX(e)}var yX=vX,tm={exports:{}};function bX(){return!1}var _X=bX;tm.exports;(function(e,t){var n=ga,r=_X,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(tm,tm.exports);var Jg=tm.exports,xX=jo,wX=N_,SX=ji,OX="[object Object]",CX=Function.prototype,EX=Object.prototype,GM=CX.toString,kX=EX.hasOwnProperty,PX=GM.call(Object);function TX(e){if(!SX(e)||xX(e)!=OX)return!1;var t=wX(e);if(t===null)return!0;var n=kX.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&GM.call(n)==PX}var KM=TX;const Zt=at(KM);var AX=jo,MX=F_,IX=ji,RX="[object Arguments]",$X="[object Array]",LX="[object Boolean]",jX="[object Date]",DX="[object Error]",NX="[object Function]",FX="[object Map]",zX="[object Number]",BX="[object Object]",UX="[object RegExp]",HX="[object Set]",WX="[object String]",VX="[object WeakMap]",qX="[object ArrayBuffer]",GX="[object DataView]",KX="[object Float32Array]",XX="[object Float64Array]",YX="[object Int8Array]",QX="[object Int16Array]",JX="[object Int32Array]",ZX="[object Uint8Array]",eY="[object Uint8ClampedArray]",tY="[object Uint16Array]",nY="[object Uint32Array]",St={};St[KX]=St[XX]=St[YX]=St[QX]=St[JX]=St[ZX]=St[eY]=St[tY]=St[nY]=!0;St[RX]=St[$X]=St[qX]=St[LX]=St[GX]=St[jX]=St[DX]=St[NX]=St[FX]=St[zX]=St[BX]=St[UX]=St[HX]=St[WX]=St[VX]=!1;function rY(e){return IX(e)&&MX(e.length)&&!!St[AX(e)]}var aY=rY;function iY(e){return function(t){return e(t)}}var Zg=iY,nm={exports:{}};nm.exports;(function(e,t){var n=NM,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(nm,nm.exports);var Ad=nm.exports,oY=aY,lY=Zg,xC=Ad,wC=xC&&xC.isTypedArray,sY=wC?lY(wC):oY,e0=sY;function uY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var XM=uY,cY=Yg,fY=Fl,dY=Object.prototype,hY=dY.hasOwnProperty;function pY(e,t,n){var r=e[t];(!(hY.call(e,t)&&fY(r,n))||n===void 0&&!(t in e))&&cY(e,t,n)}var YM=pY,mY=YM,gY=Yg;function vY(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=kQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MQ=AQ,IQ=EQ,RQ=MQ,$Q=RQ(IQ),t8=$Q,LQ=Md,jQ=e8,DQ=t8;function NQ(e,t){return DQ(jQ(e,t,LQ),e+"")}var n8=NQ,FQ=Fl,zQ=Bl,BQ=t0,UQ=yr;function HQ(e,t,n){if(!UQ(n))return!1;var r=typeof t;return(r=="number"?zQ(n)&&BQ(t,n.length):r=="string"&&t in n)?FQ(n[t],e):!1}var z_=HQ,WQ=n8,VQ=z_;function qQ(e){return WQ(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&VQ(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r{if(i==="children")return r&&a?y.cloneElement(r,{children:a}):Object.assign(Object.assign({},a),r);if(i==="className")return D(r,a)}):Uv({},t)}const i8={name:"--pf-v5-c-table__sticky-cell--MinWidth",value:"12.5rem",var:"var(--pf-v5-c-table__sticky-cell--MinWidth)"},o8={name:"--pf-v5-c-table__sticky-cell--Left",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Left)"},l8={name:"--pf-v5-c-table__sticky-cell--Right",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Right)"},QQ=e=>{var{children:t,className:n,component:r="th",dataLabel:a,scope:i="col",textCenter:o=!1,sort:l=null,modifier:s,select:u=null,expand:c=null,tooltip:f="",tooltipProps:d,onMouseEnter:h=()=>{},width:p,visibility:g,innerRef:b,info:m,isStickyColumn:v=!1,hasRightBorder:_=!1,hasLeftBorder:x=!1,stickyMinWidth:O="120px",stickyLeftOffset:S,stickyRightOffset:w,isSubheader:C=!1,screenReaderText:A,"aria-label":I}=e,P=Q(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);!t&&!A&&!I&&console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=ye=>{ye.target.offsetWidth$M[ye]))():null;let R=($==null?void 0:$.children)||(F==null?void 0:F.children)||(k==null?void 0:k.children)||t,J=null;m&&(J=wV(m)(R),R=J.children);const ae=a8($,F,k,X,te,J),{children:ue=null,isVisible:ve=null,className:ke="",component:q=r}=ae,Z=Q(ae,["children","isVisible","className","component"]);y.useEffect(()=>{N(U.current.offsetWidthE(!1),"data-label":a,onMouseEnter:f!==null?W:h,scope:r==="th"?i:null,ref:U,"aria-label":I,className:D(Ee.tableTh,n,o&&Ee.modifiers.center,C&&Ee.tableSubhead,v&&zs.tableStickyCell,_&&zs.modifiers.borderRight,x&&zs.modifiers.borderLeft,s&&Ee.modifiers[s],ke)},Z,P,v&&{style:Object.assign({[i8.name]:O||void 0,[o8.name]:S||0,[l8.name]:w||0},P.style)}),R||A&&y.createElement("span",{className:"pf-v5-screen-reader"},A));return f!==null&&(f===""?typeof R=="string":!0)&&!($||F)&&T?y.createElement(y.Fragment,null,ie,y.createElement($i,Object.assign({triggerRef:U,content:f||f===""&&t,isVisible:!0},d))):ie},Cs=y.forwardRef((e,t)=>y.createElement(QQ,Object.assign({},e,{innerRef:t})));Cs.displayName="Th";const JQ=(e,{rowData:t})=>{const{id:n}=t;return{className:"",children:y.createElement(kM,{id:n})}},ZQ=e=>{var{children:t,className:n,isActionCell:r=!1,component:a="td",dataLabel:i,textCenter:o=!1,modifier:l,select:s=null,actions:u=null,expand:c=null,treeRow:f=null,compoundExpand:d=null,noPadding:h,width:p,visibility:g,innerRef:b,favorites:m=null,draggableRow:v=null,tooltip:_="",onMouseEnter:x=()=>{},isStickyColumn:O=!1,hasRightBorder:S=!1,hasLeftBorder:w=!1,stickyMinWidth:C="120px",stickyLeftOffset:A,stickyRightOffset:I}=e,P=Q(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=Re=>{Re.target.offsetWidth$M[Re]))():null,ve=f!==null?OV(f.onCollapse,f.onCheckChange,f.onToggleRowDetails)({title:t},{rowIndex:f.rowIndex,rowData:{props:f.props}}):null,ke=a8($,te,R,J,ae,ue,F,ve,k),{isVisible:q=null,children:Z=null,className:ie="",component:K=a}=ke,Te=Q(ke,["isVisible","children","className","component"]),ye=n&&n.includes(Vn.tableTreeViewTitleCell)||ie&&ie.includes(Vn.tableTreeViewTitleCell);y.useEffect(()=>{N(U.current.offsetWidthE(!1),onMouseEnter:_!==null?W:x,className:D(Ee.tableTd,n,r&&Ee.tableAction,o&&Ee.modifiers.center,h&&Ee.modifiers.noPadding,O&&zs.tableStickyCell,S&&zs.modifiers.borderRight,w&&zs.modifiers.borderLeft,Ee.modifiers[l],k&&Ee.tableDraggable,ie),ref:U},Te,P,O&&{style:Object.assign({[i8.name]:C||void 0,[o8.name]:A||0,[l8.name]:I||0},P.style)}),Z||t);return _!==null&&(_===""?typeof t=="string":!0)&&T?y.createElement(y.Fragment,null,Ae,y.createElement($i,{triggerRef:U,content:_||_===""&&t,isVisible:!0})):Ae},Es=y.forwardRef((e,t)=>y.createElement(ZQ,Object.assign({},e,{innerRef:t})));Es.displayName="Td";const B_=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("caption",Object.assign({className:D(Ee.tableCaption,n)},r),t)};B_.displayName="Caption";const eJ=({senders:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Senders list"}),j.jsx(I_,{children:j.jsx(Nf,{children:j.jsx(Cs,{children:"Sender id"})})}),j.jsx(R_,{children:e.map(t=>j.jsx(Nf,{children:j.jsx(Es,{children:j.jsx(di,{to:`/senders/${t.sender_id}`,children:t.sender_id})})},t.sender_id))})]}),Id=()=>j.jsx(hr,{children:j.jsx(TA,{children:j.jsx(Rg,{size:"xl"})})}),tJ=()=>{const e=dV();return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Senders"})]})}),e.isLoading?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx(eJ,{senders:e.data})," "]})]})};var s8="en",U_={},i1={};function u8(){return s8}function nJ(e){s8=e}function rJ(e){return U_[e]}function aJ(e){if(!e)throw new Error("No locale data passed");U_[e.locale]=e,i1[e.locale.toLowerCase()]=e.locale}function TC(e){if(U_[e])return e;if(i1[e.toLowerCase()])return i1[e.toLowerCase()]}function c8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return AC(e);case"best fit":return AC(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function AC(e){var t=TC(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=TC(e);if(r)return r}}var B={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return a==1&&i!=11?"one":a>=2&&a<=4&&(i<12||i>14)?"few":r&&a==0||a>=5&&a<=9||i>=11&&i<=14?"many":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2),o=r&&n[0].slice(-6);return a==1&&i!=11&&i!=71&&i!=91?"one":a==2&&i!=12&&i!=72&&i!=92?"two":(a==3||a==4||a==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&o==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":i&&o>=2&&o<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ca:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1&&a?"one":r!=0&&i==0&&a?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=a.slice(-1);return i&&(r==1||r==2||r==3)||i&&o!=4&&o!=6&&o!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return t==1&&a?"one":r>=2&&r<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],a=Number(n[0])==t;return t==1||!a&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-2),l=a.slice(-2);return i&&o==1||l==1?"one":i&&o==2||l==2?"two":i&&(o==3||o==4)||l==3||l==4?"few":"other"},dz:function(t){return"other"},es:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1?"one":r!=0&&i==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t>=0&&t<2?"one":r!=0&&i==0&&a?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return r==1&&a||r==0&&!a?"one":r==2&&a?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],a=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==t,o=r.slice(-1),l=r.slice(-2);return i&&o==1&&l!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",a=Number(n[0])==t,i=a&&n[0].slice(-1),o=a&&n[0].slice(-2);return i==1&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",a=r.length,i=Number(n[0])==t,o=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return i&&o==0||l>=11&&l<=19||a==2&&s>=11&&s<=19?"zero":o==1&&l!=11||a==2&&u==1&&s!=11||a!=2&&u==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return t==1&&a?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&r!=1&&(i==0||i==1)||a&&i>=5&&i<=9||a&&o>=12&&o<=14?"many":"other"},pt:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return r==0||r==1?"one":r!=0&&i==0&&a?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],a=Number(n[0])==t,i=a&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&i>=1&&i<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return a&&i==1&&o!=11?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&i==0||a&&i>=5&&i<=9||a&&o>=11&&o<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"";return t==0||t==1||r==0&&a==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-2);return a&&i==1?"one":a&&i==2?"two":a&&(i==3||i==4)||!a?"few":"other"}};B.as=B.am;B.az=B.af;B.bg=B.af;B.bn=B.am;B.brx=B.af;B.ce=B.af;B.chr=B.af;B.de=B.ast;B.ee=B.af;B.el=B.af;B.en=B.ast;B.et=B.ast;B.eu=B.af;B.fa=B.am;B.fi=B.ast;B.fil=B.ceb;B.fo=B.af;B.fur=B.af;B.fy=B.ast;B.gl=B.ast;B.gu=B.am;B.ha=B.af;B.hi=B.am;B.hr=B.bs;B.hsb=B.dsb;B.hu=B.af;B.hy=B.ff;B.ia=B.ast;B.id=B.dz;B.ig=B.dz;B.it=B.ca;B.ja=B.dz;B.jgo=B.af;B.jv=B.dz;B.ka=B.af;B.kea=B.dz;B.kk=B.af;B.kl=B.af;B.km=B.dz;B.kn=B.am;B.ko=B.dz;B.ks=B.af;B.ku=B.af;B.ky=B.af;B.lb=B.af;B.lkt=B.dz;B.lo=B.dz;B.ml=B.af;B.mn=B.af;B.mr=B.af;B.ms=B.dz;B.my=B.dz;B.nb=B.af;B.ne=B.af;B.nl=B.ast;B.nn=B.af;B.no=B.af;B.or=B.af;B.pcm=B.am;B.ps=B.af;B.rm=B.af;B.sah=B.dz;B.sc=B.ast;B.sd=B.af;B.sk=B.cs;B.so=B.af;B.sq=B.af;B.sr=B.bs;B.su=B.dz;B.sv=B.ast;B.sw=B.ast;B.ta=B.af;B.te=B.af;B.th=B.dz;B.ti=B.pa;B.tk=B.af;B.to=B.dz;B.tr=B.af;B.ug=B.af;B.uk=B.ru;B.ur=B.ast;B.uz=B.af;B.vi=B.dz;B.wae=B.af;B.wo=B.dz;B.xh=B.af;B.yi=B.ast;B.yo=B.dz;B.yue=B.dz;B.zh=B.dz;B.zu=B.am;const MC=B;function IC(e){return e==="pt-PT"?e:oJ(e)}var iJ=/^([a-z0-9]+)/i;function oJ(e){var t=e.match(iJ);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function lJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pJ(this,e);var r=n.numeric,a=n.style,i=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(vJ.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(a!==void 0){if(yJ.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(i!==void 0){if(bJ.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if(typeof t=="string"&&(t=[t]),t.push(u8()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");o1.supportedLocalesOf(this.locale).length>0?this.pluralRules=new o1(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=c8(this.locale,{localeMatcher:this.localeMatcher})}return mJ(e,[{key:"format",value:function(){var n=FC(arguments),r=jC(n,2),a=r[0],i=r[1];return this.getRule(a,i).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var n=FC(arguments),r=jC(n,2),a=r[0],i=r[1],o=this.getRule(a,i),l=o.indexOf("{0}");if(l<0)return[{type:"literal",value:o}];var s=[];return l>0&&s.push({type:"literal",value:o.slice(0,l)}),s=s.concat(this.formatNumberToParts(Math.abs(a)).map(function(u){return LC(LC({},u),{},{unit:i})})),l+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return c8(n,t)})};Co.addLocale=aJ;Co.setDefaultLocale=nJ;Co.getDefaultLocale=u8;Co.PluralRules=o1;var Hv='Invalid "unit" argument';function _J(e){if(l1(e)==="symbol")throw new TypeError(Hv);if(typeof e!="string")throw new RangeError("".concat(Hv,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),gJ.indexOf(e)<0)throw new RangeError("".concat(Hv,": ").concat(e));return e}var xJ='Invalid "number" argument';function wJ(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(xJ,": ").concat(e));return e}function SJ(e){return 1/e===-1/0}function OJ(e){return e<0||e===0&&SJ(e)}function FC(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[wJ(e[0]),_J(e[1])]}function rm(e){"@babel/helpers - typeof";return rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rm(e)}function CJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PJ(e,t){if(e){if(typeof e=="string")return UC(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 UC(e,t)}}function UC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)if(i.pop(),a=i.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function AJ(){var e=(typeof Intl>"u"?"undefined":s1(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function u1(e){"@babel/helpers - typeof";return u1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u1(e)}function MJ(e){return RJ(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var IJ={}.constructor;function RJ(e){return u1(e)!==void 0&&e!==null&&e.constructor===IJ}var si=60,am=60*si,ml=24*am,c1=7*ml,f1=30.44*ml,f8=146097/400*ml;function Bs(e){switch(e){case"second":return 1;case"minute":return si;case"hour":return am;case"day":return ml;case"week":return c1;case"month":return f1;case"year":return f8}}function d8(e){return e.factor!==void 0?e.factor:Bs(e.unit||e.formatAs)||1}function zf(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function H_(e){switch(e){case"floor":return 1;default:return .5}}function d1(e){"@babel/helpers - typeof";return d1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d1(e)}function h8(e,t){var n=t.prevStep,r=t.timestamp,a=t.now,i=t.future,o=t.round,l;return n&&(n.id||n.unit)&&(l=e["threshold_for_".concat(n.id||n.unit)]),l===void 0&&e.threshold!==void 0&&(l=e.threshold,typeof l=="function"&&(l=l(a,i))),l===void 0&&(l=e.minTime),d1(l)==="object"&&(n&&n.id&&l[n.id]!==void 0?l=l[n.id]:l=l.default),typeof l=="function"&&(l=l(r,{future:i,getMinTimeForUnit:function(u,c){return HC(u,c||n&&n.formatAs,{round:o})}})),l===void 0&&e.test&&(e.test(r,{now:a,future:i})?l=0:l=9007199254740991),l===void 0&&(n?e.formatAs&&n.formatAs&&(l=HC(e.formatAs,n.formatAs,{round:o})):l=0),l===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),l}function HC(e,t,n){var r=n.round,a=Bs(e),i;if(t==="now"?i=Bs(e):i=Bs(t),a!==void 0&&i!==void 0)return a-i*(1-H_(r))}function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $J(e){for(var t=1;t0)return e[o-1]}return l}}}function p8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=h8(e[r],$J({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return a===void 0||Math.abs(t)=0:!0})}function FJ(e,t,n){var r=n.now,a=n.round;if(Bs(e)){var i=Bs(e)*1e3,o=t>r,l=Math.abs(t-r),s=zf(a)(l/i)*i;return o?s>0?l-s+BJ(a,i):l-s+1:-(l-s)+zJ(a,i)}}function zJ(e,t){return H_(e)*t}function BJ(e,t){return(1-H_(e))*t+1}var UJ=365*24*60*60*1e3,m8=1e3*UJ;function HJ(e,t,n){var r=n.prevStep,a=n.nextStep,i=n.now,o=n.future,l=n.round,s=e.getTime?e.getTime():e,u=function(p){return FJ(p,s,{now:i,round:l})},c=VJ(o?t:a,s,{future:o,now:i,round:l,prevStep:o?r:t});if(c!==void 0){var f;if(t&&(t.getTimeToNextUpdate&&(f=t.getTimeToNextUpdate(s,{getTimeToNextUpdateForUnit:u,getRoundFunction:zf,now:i,future:o,round:l})),f===void 0)){var d=t.unit||t.formatAs;d&&(f=u(d))}return f===void 0?c:Math.min(f,c)}}function WJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep,l=h8(e,{timestamp:t,now:r,future:a,round:i,prevStep:o});if(l!==void 0)return a?t-l*1e3+1:l===0&&t===r?m8:t+l*1e3}function VJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep;if(e){var l=WJ(e,t,{now:r,future:a,round:i,prevStep:o});return l===void 0?void 0:l-r}else return a?t-r+1:m8}var g8={};function ks(e){return g8[e]}function v8(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");g8[e.locale]=e}const qJ=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],h1={steps:qJ,labels:"long"};function VC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function qC(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fZ(e,t){return pZ(e)||hZ(e,t)||_8(e,t)||dZ()}function dZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _8(e,t){if(e){if(typeof e=="string")return l6(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 l6(e,t)}}function l6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;mZ(this,e),typeof t=="string"&&(t=[t]),this.locale=TJ(t.concat(e.getDefaultLocale()),ks),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Co,this.IntlPluralRules=Co.PluralRules),this.relativeTimeFormatCache=new BC,this.pluralRulesCache=new BC}return gZ(e,[{key:"format",value:function(n,r,a){a||(r&&!xZ(r)?(a=r,r=void 0):a={}),r||(r=p1),typeof r=="string"&&(r=uZ(r));var i=vZ(n),o=this.getLabels(r.flavour||r.labels),l=o.labels,s=o.labelsType,u;r.now!==void 0&&(u=r.now),u===void 0&&a.now!==void 0&&(u=a.now),u===void 0&&(u=Date.now());var c=(u-i)/1e3,f=a.future||c<0,d=_Z(l,ks(this.locale).now,ks(this.locale).long,f);if(r.custom){var h=r.custom({now:u,date:new Date(i),time:i,elapsed:c,locale:this.locale});if(h!==void 0)return h}var p=bZ(r.units,l,d),g=a.round||r.round,b=jJ(r.gradation||r.steps||p1.steps,c,{now:u,units:p,round:g,future:f,getNextStep:!0}),m=fZ(b,3),v=m[0],_=m[1],x=m[2],O=this.formatDateForStep(i,_,c,{labels:l,labelsType:s,nowLabel:d,now:u,future:f,round:g})||"";if(a.getTimeToNextUpdate){var S=HJ(i,_,{nextStep:x,prevStep:v,now:u,future:f,round:g});return[O,S]}return O}},{key:"formatDateForStep",value:function(n,r,a,i){var o=this,l=i.labels,s=i.labelsType,u=i.nowLabel,c=i.now,f=i.future,d=i.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(m,v){return o.formatValue(v,m,{labels:l,future:f})},now:c,future:f});var h=r.unit||r.formatAs;if(!h)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(h==="now")return u;var p=Math.abs(a)/d8(r);r.granularity&&(p=zf(d)(p/r.granularity)*r.granularity);var g=-1*Math.sign(a)*zf(d)(p);switch(g===0&&(f?g=0:g=-0),s){case"long":case"short":case"narrow":return this.getFormatter(s).format(g,h);default:return this.formatValue(g,h,{labels:l,future:f})}}}},{key:"formatValue",value:function(n,r,a){var i=a.labels,o=a.future;return this.getFormattingRule(i,r,n,{future:o}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,a,i){var o=i.future;if(this.locale,n=n[r],typeof n=="string")return n;var l=a===0?o?"future":"past":a<0?"past":"future",s=n[l]||n;if(typeof s=="string")return s;var u=this.getPluralRules().select(Math.abs(a));return s[u]||s.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(l){switch(l){case"tiny":case"mini-time":return"mini";default:return l}}),n=n.concat("long");for(var r=ks(this.locale),a=cZ(n),i;!(i=a()).done;){var o=i.value;if(r[o])return{labelsType:o,labels:r[o]}}}}]),e}(),x8="en";Fr.getDefaultLocale=function(){return x8};Fr.setDefaultLocale=function(e){return x8=e};Fr.addDefaultLocale=function(e){if(u6)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");u6=!0,Fr.setDefaultLocale(e.locale),Fr.addLocale(e)};var u6;Fr.addLocale=function(e){v8(e),Co.addLocale(e)};Fr.locale=Fr.addLocale;Fr.addLabels=function(e,t,n){var r=ks(e);r||(v8({locale:e}),r=ks(e)),r[t]=n};function vZ(e){if(e.constructor===Date||yZ(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(im(e),", ").concat(e))}function yZ(e){return im(e)==="object"&&typeof e.getTime=="function"}function bZ(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(a){return a==="now"||r.indexOf(a)>=0})),r}function _Z(e,t,n,r){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:r?a.future:a.past;if(n&&n.second&&n.second.current)return n.second.current}function xZ(e){return typeof e=="string"||MJ(e)}const wZ={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};var w8={exports:{}},ft={};/** @license React v16.13.1 + */function $f(){return $f=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function XU(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function YU(e,t){return e.button===0&&(!t||t==="_self")&&!XU(e)}const QU=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],JU="6";try{window.__reactRouterVersion=JU}catch{}function ZU(e,t){return uU({basename:t==null?void 0:t.basename,future:$f({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:MB({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||eH(),routes:e,mapRouteProperties:GU,unstable_dataStrategy:t==null?void 0:t.unstable_dataStrategy,window:t==null?void 0:t.window}).initialize()}function eH(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=$f({},t,{errors:tH(t.errors)})),t}function tH(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,a]of t)if(a&&a.__type==="RouteErrorResponse")n[r]=new v_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let o=new i(a.message);o.stack="",n[r]=o}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}const nH=y.createContext({isTransitioning:!1}),rH=y.createContext(new Map),aH="startTransition",DO=yj[aH],iH="flushSync",NO=TN[iH];function oH(e){DO?DO(e):e()}function fc(e){NO?NO(e):e()}class lH{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function sH(e){let{fallbackElement:t,router:n,future:r}=e,[a,i]=y.useState(n.state),[o,l]=y.useState(),[s,u]=y.useState({isTransitioning:!1}),[c,f]=y.useState(),[d,h]=y.useState(),[p,g]=y.useState(),b=y.useRef(new Map),{v7_startTransition:m}=r||{},v=y.useCallback(w=>{m?oH(w):w()},[m]),_=y.useCallback((w,C)=>{let{deletedFetchers:A,unstable_flushSync:I,unstable_viewTransitionOpts:P}=C;A.forEach(E=>b.current.delete(E)),w.fetchers.forEach((E,L)=>{E.data!==void 0&&b.current.set(L,E.data)});let T=n.window==null||typeof n.window.document.startViewTransition!="function";if(!P||T){I?fc(()=>i(w)):v(()=>i(w));return}if(I){fc(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let E=n.window.document.startViewTransition(()=>{fc(()=>i(w))});E.finished.finally(()=>{fc(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})})}),fc(()=>h(E));return}d?(c&&c.resolve(),d.skipTransition(),g({state:w,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(l(w),u({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[n.window,d,c,b,v]);y.useLayoutEffect(()=>n.subscribe(_),[n,_]),y.useEffect(()=>{s.isTransitioning&&!s.flushSync&&f(new lH)},[s]),y.useEffect(()=>{if(c&&o&&n.window){let w=o,C=c.promise,A=n.window.document.startViewTransition(async()=>{v(()=>i(w)),await C});A.finished.finally(()=>{f(void 0),h(void 0),l(void 0),u({isTransitioning:!1})}),h(A)}},[v,o,c,n.window]),y.useEffect(()=>{c&&o&&a.location.key===o.location.key&&c.resolve()},[c,d,a.location,o]),y.useEffect(()=>{!s.isTransitioning&&p&&(l(p.state),u({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),g(void 0))},[s.isTransitioning,p]),y.useEffect(()=>{},[]);let x=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:w=>n.navigate(w),push:(w,C,A)=>n.navigate(w,{state:C,preventScrollReset:A==null?void 0:A.preventScrollReset}),replace:(w,C,A)=>n.navigate(w,{replace:!0,state:C,preventScrollReset:A==null?void 0:A.preventScrollReset})}),[n]),O=n.basename||"/",S=y.useMemo(()=>({router:n,navigator:x,static:!1,basename:O}),[n,x,O]);return y.createElement(y.Fragment,null,y.createElement(Fg.Provider,{value:S},y.createElement(BA.Provider,{value:a},y.createElement(rH.Provider,{value:b.current},y.createElement(nH.Provider,{value:s},y.createElement(qU,{basename:O,location:a.location,navigationType:a.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},a.initialized||n.future.v7_partialHydration?y.createElement(uH,{routes:n.routes,future:n.future,state:a}):t))))),null)}function uH(e){let{routes:t,future:n,state:r}=e;return RU(t,void 0,r,n)}const cH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,di=y.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=KU(t,QU),{basename:h}=y.useContext(Nl),p,g=!1;if(typeof u=="string"&&fH.test(u)&&(p=u,cH))try{let _=new URL(window.location.href),x=u.startsWith("//")?new URL(_.protocol+u):new URL(u),O=Ru(x.pathname,h);x.origin===_.origin&&O!=null?u=O+x.search+x.hash:g=!0}catch{}let b=kU(u,{relative:a}),m=dH(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:a,unstable_viewTransition:f});function v(_){r&&r(_),_.defaultPrevented||m(_)}return y.createElement("a",$f({},d,{href:p||b,onClick:g||i?r:v,ref:n,target:s}))});var FO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(FO||(FO={}));var zO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zO||(zO={}));function dH(e,t){let{target:n,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l}=t===void 0?{}:t,s=PU(),u=Cd(),c=WA(e,{relative:o});return y.useCallback(f=>{if(YU(f,n)){f.preventDefault();let d=r!==void 0?r:Pl(u)===Pl(c);s(e,{replace:d,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:l})}},[u,s,c,r,a,n,e,i,o,l])}function hH(){const[e,t]=y.useState(!0),n=()=>{t(!e)},r=Cd(),a=j.jsx(wA,{children:j.jsx(SA,{children:j.jsx(kA,{variant:"plain","aria-label":"Global navigation",isSidebarOpen:e,onSidebarToggle:n,id:"vertical-nav-toggle",children:j.jsx(sB,{})})})}),i=j.jsx(OA,{isSidebarOpen:e,id:"vertical-sidebar",children:j.jsx(EA,{children:j.jsx(vu,{children:j.jsxs(Dg,{children:[j.jsx(Ss,{itemId:"dashboard",isActive:r.pathname.startsWith("/dashboard"),children:j.jsx(di,{to:"dashboard",children:"Dashboard"})}),j.jsx(Ss,{itemId:"timeline",isActive:r.pathname.startsWith("/timeline"),children:j.jsx(di,{to:"timeline",children:"Timeline"})}),j.jsx(Ss,{itemId:"conversations",isActive:r.pathname.startsWith("/senders"),children:j.jsx(di,{to:"senders",children:"Senders"})}),j.jsx(Ss,{itemId:"messages",isActive:r.pathname.startsWith("/messages"),children:j.jsx(di,{to:"messages",children:"Messages"})})]})})})});return j.jsx(h_,{header:a,sidebar:i,children:j.jsx(VU,{})})}function GA(e,t){return function(){return e.apply(t,arguments)}}const{toString:pH}=Object.prototype,{getPrototypeOf:x_}=Object,Bg=(e=>t=>{const n=pH.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ka=e=>(e=e.toLowerCase(),t=>Bg(t)===e),Ug=e=>t=>typeof t===e,{isArray:$u}=Array,Lf=Ug("undefined");function mH(e){return e!==null&&!Lf(e)&&e.constructor!==null&&!Lf(e.constructor)&&Nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const KA=Ka("ArrayBuffer");function gH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&KA(e.buffer),t}const vH=Ug("string"),Nr=Ug("function"),XA=Ug("number"),Hg=e=>e!==null&&typeof e=="object",yH=e=>e===!0||e===!1,fp=e=>{if(Bg(e)!=="object")return!1;const t=x_(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bH=Ka("Date"),_H=Ka("File"),xH=Ka("Blob"),wH=Ka("FileList"),SH=e=>Hg(e)&&Nr(e.pipe),OH=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nr(e.append)&&((t=Bg(e))==="formdata"||t==="object"&&Nr(e.toString)&&e.toString()==="[object FormData]"))},CH=Ka("URLSearchParams"),EH=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ed(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),$u(e))for(r=0,a=e.length;r0;)if(a=n[r],t===a.toLowerCase())return a;return null}const QA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,JA=e=>!Lf(e)&&e!==QA;function zb(){const{caseless:e}=JA(this)&&this||{},t={},n=(r,a)=>{const i=e&&YA(t,a)||a;fp(t[i])&&fp(r)?t[i]=zb(t[i],r):fp(r)?t[i]=zb({},r):$u(r)?t[i]=r.slice():t[i]=r};for(let r=0,a=arguments.length;r(Ed(t,(a,i)=>{n&&Nr(a)?e[i]=GA(a,n):e[i]=a},{allOwnKeys:r}),e),PH=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TH=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},AH=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&x_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},MH=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},IH=e=>{if(!e)return null;if($u(e))return e;let t=e.length;if(!XA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},RH=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&x_(Uint8Array)),$H=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},LH=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},jH=Ka("HTMLFormElement"),DH=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),BO=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NH=Ka("RegExp"),ZA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ed(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},FH=e=>{ZA(e,(t,n)=>{if(Nr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},zH=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return $u(e)?r(e):r(String(e).split(t)),n},BH=()=>{},UH=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Dv="abcdefghijklmnopqrstuvwxyz",UO="0123456789",eM={DIGIT:UO,ALPHA:Dv,ALPHA_DIGIT:Dv+Dv.toUpperCase()+UO},HH=(e=16,t=eM.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function WH(e){return!!(e&&Nr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const VH=e=>{const t=new Array(10),n=(r,a)=>{if(Hg(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const i=$u(r)?[]:{};return Ed(r,(o,l)=>{const s=n(o,a+1);!Lf(s)&&(i[l]=s)}),t[a]=void 0,i}}return r};return n(e,0)},qH=Ka("AsyncFunction"),GH=e=>e&&(Hg(e)||Nr(e))&&Nr(e.then)&&Nr(e.catch),ne={isArray:$u,isArrayBuffer:KA,isBuffer:mH,isFormData:OH,isArrayBufferView:gH,isString:vH,isNumber:XA,isBoolean:yH,isObject:Hg,isPlainObject:fp,isUndefined:Lf,isDate:bH,isFile:_H,isBlob:xH,isRegExp:NH,isFunction:Nr,isStream:SH,isURLSearchParams:CH,isTypedArray:RH,isFileList:wH,forEach:Ed,merge:zb,extend:kH,trim:EH,stripBOM:PH,inherits:TH,toFlatObject:AH,kindOf:Bg,kindOfTest:Ka,endsWith:MH,toArray:IH,forEachEntry:$H,matchAll:LH,isHTMLForm:jH,hasOwnProperty:BO,hasOwnProp:BO,reduceDescriptors:ZA,freezeMethods:FH,toObjectSet:zH,toCamelCase:DH,noop:BH,toFiniteNumber:UH,findKey:YA,global:QA,isContextDefined:JA,ALPHABET:eM,generateString:HH,isSpecCompliantForm:WH,toJSONObject:VH,isAsyncFn:qH,isThenable:GH};function rt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}ne.inherits(rt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tM=rt.prototype,nM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{nM[e]={value:e}});Object.defineProperties(rt,nM);Object.defineProperty(tM,"isAxiosError",{value:!0});rt.from=(e,t,n,r,a,i)=>{const o=Object.create(tM);return ne.toFlatObject(e,o,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),rt.call(o,e.message,t,n,r,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const KH=null;function Bb(e){return ne.isPlainObject(e)||ne.isArray(e)}function rM(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function HO(e,t,n){return e?e.concat(t).map(function(a,i){return a=rM(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function XH(e){return ne.isArray(e)&&!e.some(Bb)}const YH=ne.toFlatObject(ne,{},null,function(t){return/^is[A-Z]/.test(t)});function Wg(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!ne.isUndefined(b[g])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(ne.isDate(p))return p.toISOString();if(!s&&ne.isBlob(p))throw new rt("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(p)||ne.isTypedArray(p)?s&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,g,b){let m=p;if(p&&!b&&typeof p=="object"){if(ne.endsWith(g,"{}"))g=r?g:g.slice(0,-2),p=JSON.stringify(p);else if(ne.isArray(p)&&XH(p)||(ne.isFileList(p)||ne.endsWith(g,"[]"))&&(m=ne.toArray(p)))return g=rM(g),m.forEach(function(_,x){!(ne.isUndefined(_)||_===null)&&t.append(o===!0?HO([g],x,i):o===null?g:g+"[]",u(_))}),!1}return Bb(p)?!0:(t.append(HO(b,g,i),u(p)),!1)}const f=[],d=Object.assign(YH,{defaultVisitor:c,convertValue:u,isVisitable:Bb});function h(p,g){if(!ne.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),ne.forEach(p,function(m,v){(!(ne.isUndefined(m)||m===null)&&a.call(t,m,ne.isString(v)?v.trim():v,g,d))===!0&&h(m,g?g.concat(v):[v])}),f.pop()}}if(!ne.isObject(e))throw new TypeError("data must be an object");return h(e),t}function WO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function w_(e,t){this._pairs=[],e&&Wg(e,this,t)}const aM=w_.prototype;aM.append=function(t,n){this._pairs.push([t,n])};aM.toString=function(t){const n=t?function(r){return t.call(this,r,WO)}:WO;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function QH(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function iM(e,t,n){if(!t)return e;const r=n&&n.encode||QH,a=n&&n.serialize;let i;if(a?i=a(t,n):i=ne.isURLSearchParams(t)?t.toString():new w_(t,n).toString(r),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class VO{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ne.forEach(this.handlers,function(r){r!==null&&t(r)})}}const oM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JH=typeof URLSearchParams<"u"?URLSearchParams:w_,ZH=typeof FormData<"u"?FormData:null,eW=typeof Blob<"u"?Blob:null,tW={isBrowser:!0,classes:{URLSearchParams:JH,FormData:ZH,Blob:eW},protocols:["http","https","file","blob","url","data"]},lM=typeof window<"u"&&typeof document<"u",nW=(e=>lM&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),rW=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aW=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lM,hasStandardBrowserEnv:nW,hasStandardBrowserWebWorkerEnv:rW},Symbol.toStringTag,{value:"Module"})),La={...aW,...tW};function iW(e,t){return Wg(e,new La.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return La.isNode&&ne.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function oW(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function lW(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&ne.isArray(a)?a.length:o,s?(ne.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!l):((!a[o]||!ne.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&ne.isArray(a[o])&&(a[o]=lW(a[o])),!l)}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,(r,a)=>{t(oW(r),a,n,0)}),n}return null}function sW(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const S_={transitional:oM,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=ne.isObject(t);if(i&&ne.isHTMLForm(t)&&(t=new FormData(t)),ne.isFormData(t))return a?JSON.stringify(sM(t)):t;if(ne.isArrayBuffer(t)||ne.isBuffer(t)||ne.isStream(t)||ne.isFile(t)||ne.isBlob(t))return t;if(ne.isArrayBufferView(t))return t.buffer;if(ne.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return iW(t,this.formSerializer).toString();if((l=ne.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Wg(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),sW(t)):t}],transformResponse:[function(t){const n=this.transitional||S_.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(t&&ne.isString(t)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(o)throw l.name==="SyntaxError"?rt.from(l,rt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:La.classes.FormData,Blob:La.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],e=>{S_.headers[e]={}});const O_=S_,uW=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),cW=e=>{const t={};let n,r,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&uW[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qO=Symbol("internals");function dc(e){return e&&String(e).trim().toLowerCase()}function dp(e){return e===!1||e==null?e:ne.isArray(e)?e.map(dp):String(e)}function fW(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const dW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nv(e,t,n,r,a){if(ne.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ne.isString(t)){if(ne.isString(r))return t.indexOf(r)!==-1;if(ne.isRegExp(r))return r.test(t)}}function hW(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function pW(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}class Vg{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const c=dc(s);if(!c)throw new Error("header name must be a non-empty string");const f=ne.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=dp(l))}const o=(l,s)=>ne.forEach(l,(u,c)=>i(u,c,s));return ne.isPlainObject(t)||t instanceof this.constructor?o(t,n):ne.isString(t)&&(t=t.trim())&&!dW(t)?o(cW(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return fW(a);if(ne.isFunction(n))return n.call(this,a,r);if(ne.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=dc(t),t){const r=ne.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Nv(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=dc(o),o){const l=ne.findKey(r,o);l&&(!n||Nv(r,r[l],l,n))&&(delete r[l],a=!0)}}return ne.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Nv(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return ne.forEach(this,(a,i)=>{const o=ne.findKey(r,i);if(o){n[o]=dp(a),delete n[i];return}const l=t?hW(i):String(i).trim();l!==i&&delete n[i],n[l]=dp(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ne.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ne.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[qO]=this[qO]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=dc(o);r[l]||(pW(a,o),r[l]=!0)}return ne.isArray(t)?t.forEach(i):i(t),this}}Vg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Vg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ne.freezeMethods(Vg);const yi=Vg;function Fv(e,t){const n=this||O_,r=t||n,a=yi.from(r.headers);let i=r.data;return ne.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function uM(e){return!!(e&&e.__CANCEL__)}function kd(e,t,n){rt.call(this,e??"canceled",rt.ERR_CANCELED,t,n),this.name="CanceledError"}ne.inherits(kd,rt,{__CANCEL__:!0});function mW(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new rt("Request failed with status code "+n.status,[rt.ERR_BAD_REQUEST,rt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const gW=La.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const o=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),ne.isString(r)&&o.push("path="+r),ne.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vW(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function yW(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function cM(e,t){return e&&!vW(t)?yW(e,t):t}const bW=La.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const l=ne.isString(o)?a(o):o;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function _W(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function xW(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,l=i-n,s=r(l),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:l,rate:s||void 0,estimated:s&&o&&u?(o-i)/s:void 0,event:a};c[t?"download":"upload"]=!0,e(c)}}const wW=typeof XMLHttpRequest<"u",SW=wW&&function(e){return new Promise(function(n,r){let a=e.data;const i=yi.from(e.headers).normalize();let{responseType:o,withXSRFToken:l}=e,s;function u(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let c;if(ne.isFormData(a)){if(La.hasStandardBrowserEnv||La.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[g,...b]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...b].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+b))}const d=cM(e.baseURL,e.url);f.open(e.method.toUpperCase(),iM(d,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;const g=yi.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};mW(function(_){n(_),u()},function(_){r(_),u()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(r(new rt("Request aborted",rt.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new rt("Network Error",rt.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||oM;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new rt(b,m.clarifyTimeoutError?rt.ETIMEDOUT:rt.ECONNABORTED,e,f)),f=null},La.hasStandardBrowserEnv&&(l&&ne.isFunction(l)&&(l=l(e)),l||l!==!1&&bW(d))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&gW.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}a===void 0&&i.setContentType(null),"setRequestHeader"in f&&ne.forEach(i.toJSON(),function(b,m){f.setRequestHeader(m,b)}),ne.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",GO(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",GO(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{f&&(r(!g||g.type?new kd(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=_W(d);if(p&&La.protocols.indexOf(p)===-1){r(new rt("Unsupported protocol "+p+":",rt.ERR_BAD_REQUEST,e));return}f.send(a||null)})},Ub={http:KH,xhr:SW};ne.forEach(Ub,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const KO=e=>`- ${e}`,OW=e=>ne.isFunction(e)||e===null||e===!1,fM={getAdapter:e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since : +`+i.map(KO).join(` +`):" "+KO(i[0]):"as no adapter specified";throw new rt("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Ub};function zv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kd(null,e)}function XO(e){return zv(e),e.headers=yi.from(e.headers),e.data=Fv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),fM.getAdapter(e.adapter||O_.adapter)(e).then(function(r){return zv(e),r.data=Fv.call(e,e.transformResponse,r),r.headers=yi.from(r.headers),r},function(r){return uM(r)||(zv(e),r&&r.response&&(r.response.data=Fv.call(e,e.transformResponse,r.response),r.response.headers=yi.from(r.response.headers))),Promise.reject(r)})}const YO=e=>e instanceof yi?{...e}:e;function yu(e,t){t=t||{};const n={};function r(u,c,f){return ne.isPlainObject(u)&&ne.isPlainObject(c)?ne.merge.call({caseless:f},u,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function a(u,c,f){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!ne.isUndefined(c))return r(void 0,c)}function o(u,c){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const s={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,c)=>a(YO(u),YO(c),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=s[c]||a,d=f(e[c],t[c],c);ne.isUndefined(d)&&f!==l||(n[c]=d)}),n}const dM="1.6.8",C_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{C_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const QO={};C_.transitional=function(t,n,r){function a(i,o){return"[Axios v"+dM+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new rt(a(o," has been removed"+(n?" in "+n:"")),rt.ERR_DEPRECATED);return n&&!QO[o]&&(QO[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};function CW(e,t,n){if(typeof e!="object")throw new rt("options must be an object",rt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new rt("option "+i+" must be "+s,rt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new rt("Unknown option "+i,rt.ERR_BAD_OPTION)}}const Hb={assertOptions:CW,validators:C_},Vi=Hb.validators;class Zp{constructor(t){this.defaults=t,this.interceptors={request:new VO,response:new VO}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=yu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Hb.assertOptions(r,{silentJSONParsing:Vi.transitional(Vi.boolean),forcedJSONParsing:Vi.transitional(Vi.boolean),clarifyTimeoutError:Vi.transitional(Vi.boolean)},!1),a!=null&&(ne.isFunction(a)?n.paramsSerializer={serialize:a}:Hb.assertOptions(a,{encode:Vi.function,serialize:Vi.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&ne.merge(i.common,i[n.method]);i&&ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=yi.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(s=s&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!s){const p=[XO.bind(this),void 0];for(p.unshift.apply(p,l),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new kd(i,o,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new E_(function(a){t=a}),cancel:t}}}const EW=E_;function kW(e){return function(n){return e.apply(null,n)}}function PW(e){return ne.isObject(e)&&e.isAxiosError===!0}const Wb={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wb).forEach(([e,t])=>{Wb[t]=e});const TW=Wb;function hM(e){const t=new hp(e),n=GA(hp.prototype.request,t);return ne.extend(n,hp.prototype,t,{allOwnKeys:!0}),ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return hM(yu(e,a))},n}const zt=hM(O_);zt.Axios=hp;zt.CanceledError=kd;zt.CancelToken=EW;zt.isCancel=uM;zt.VERSION=dM;zt.toFormData=Wg;zt.AxiosError=rt;zt.Cancel=zt.CanceledError;zt.all=function(t){return Promise.all(t)};zt.spread=kW;zt.isAxiosError=PW;zt.mergeConfig=yu;zt.AxiosHeaders=yi;zt.formToJSON=e=>sM(ne.isHTMLForm(e)?new FormData(e):e);zt.getAdapter=fM.getAdapter;zt.HttpStatusCode=TW;zt.default=zt;var Pd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bu=typeof window>"u"||"Deno"in globalThis;function Pr(){}function AW(e,t){return typeof e=="function"?e(t):e}function Vb(e){return typeof e=="number"&&e>=0&&e!==1/0}function pM(e,t){return Math.max(e+(t||0)-Date.now(),0)}function JO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==k_(o,t.options))return!1}else if(!Df(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function ZO(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(jf(t.options.mutationKey)!==jf(i))return!1}else if(!Df(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function k_(e,t){return((t==null?void 0:t.queryKeyHashFn)||jf)(e)}function jf(e){return JSON.stringify(e,(t,n)=>Gb(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Df(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Df(e[n],t[n])):!1}function mM(e,t){if(e===t)return e;const n=eC(e)&&eC(t);if(n||Gb(e)&&Gb(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),o=i.length,l=n?[]:{};let s=0;for(let u=0;u{setTimeout(t,e)})}function Kb(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?mM(e,t):t}function IW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function RW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var P_=Symbol(),il,eo,Ks,NP,$W=(NP=class extends Pd{constructor(){super();Me(this,il,void 0);Me(this,eo,void 0);Me(this,Ks,void 0);Oe(this,Ks,t=>{if(!bu&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){V(this,eo)||this.setEventListener(V(this,Ks))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,eo))==null||t.call(this),Oe(this,eo,void 0))}setEventListener(t){var n;Oe(this,Ks,t),(n=V(this,eo))==null||n.call(this),Oe(this,eo,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){V(this,il)!==t&&(Oe(this,il,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof V(this,il)=="boolean"?V(this,il):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},il=new WeakMap,eo=new WeakMap,Ks=new WeakMap,NP),T_=new $W,Xs,to,Ys,FP,LW=(FP=class extends Pd{constructor(){super();Me(this,Xs,!0);Me(this,to,void 0);Me(this,Ys,void 0);Oe(this,Ys,t=>{if(!bu&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){V(this,to)||this.setEventListener(V(this,Ys))}onUnsubscribe(){var t;this.hasListeners()||((t=V(this,to))==null||t.call(this),Oe(this,to,void 0))}setEventListener(t){var n;Oe(this,Ys,t),(n=V(this,to))==null||n.call(this),Oe(this,to,t(this.setOnline.bind(this)))}setOnline(t){V(this,Xs)!==t&&(Oe(this,Xs,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return V(this,Xs)}},Xs=new WeakMap,to=new WeakMap,Ys=new WeakMap,FP),em=new LW;function jW(e){return Math.min(1e3*2**e,3e4)}function gM(e){return(e??"online")==="online"?em.isOnline():!0}var vM=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Bv(e){return e instanceof vM}function yM(e){let t=!1,n=0,r=!1,a,i,o;const l=new Promise((m,v)=>{i=m,o=v}),s=m=>{var v;r||(p(new vM(m)),(v=e.abort)==null||v.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>T_.isFocused()&&(e.networkMode==="always"||em.isOnline())&&e.canRun(),d=()=>gM(e.networkMode)&&e.canRun(),h=m=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,m),a==null||a(),i(m))},p=m=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,m),a==null||a(),o(m))},g=()=>new Promise(m=>{var v;a=_=>{(r||f())&&m(_)},(v=e.onPause)==null||v.call(e)}).then(()=>{var m;a=void 0,r||(m=e.onContinue)==null||m.call(e)}),b=()=>{if(r)return;let m;try{m=e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(h).catch(v=>{var w;if(r)return;const _=e.retry??(bu?0:3),x=e.retryDelay??jW,O=typeof x=="function"?x(n,v):x,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,v);if(t||!S){p(v);return}n++,(w=e.onFail)==null||w.call(e,n,v),MW(O).then(()=>f()?void 0:g()).then(()=>{t?p(v):b()})})};return{promise:l,cancel:s,continue:()=>(a==null||a(),l),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?b():g().then(b),l)}}function DW(){let e=[],t=0,n=d=>{d()},r=d=>{d()},a=d=>setTimeout(d,0);const i=d=>{a=d},o=d=>{let h;t++;try{h=d()}finally{t--,t||u()}return h},l=d=>{t?e.push(d):a(()=>{n(d)})},s=d=>(...h)=>{l(()=>{d(...h)})},u=()=>{const d=e;e=[],d.length&&a(()=>{r(()=>{d.forEach(h=>{n(h)})})})};return{batch:o,batchCalls:s,schedule:l,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{r=d},setScheduler:i}}var mn=DW(),ol,zP,bM=(zP=class{constructor(){Me(this,ol,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Vb(this.gcTime)&&Oe(this,ol,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bu?1/0:5*60*1e3))}clearGcTimeout(){V(this,ol)&&(clearTimeout(V(this,ol)),Oe(this,ol,void 0))}},ol=new WeakMap,zP),Qs,Js,Er,An,rd,ll,ta,ni,BP,NW=(BP=class extends bM{constructor(t){super();Me(this,ta);Me(this,Qs,void 0);Me(this,Js,void 0);Me(this,Er,void 0);Me(this,An,void 0);Me(this,rd,void 0);Me(this,ll,void 0);Oe(this,ll,!1),Oe(this,rd,t.defaultOptions),this.setOptions(t.options),this.observers=[],Oe(this,Er,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Oe(this,Qs,t.state||FW(this.options)),this.state=V(this,Qs),this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...V(this,rd),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&V(this,Er).remove(this)}setData(t,n){const r=Kb(this.state.data,t,this.options);return et(this,ta,ni).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){et(this,ta,ni).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,a;const n=(r=V(this,An))==null?void 0:r.promise;return(a=V(this,An))==null||a.cancel(t),n?n.then(Pr).catch(Pr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(V(this,Qs))}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!pM(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=V(this,An))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),V(this,Er).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(V(this,An)&&(V(this,ll)?V(this,An).cancel({revert:!0}):V(this,An).cancelRetry()),this.scheduleGc()),V(this,Er).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||et(this,ta,ni).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(V(this,An))return V(this,An).continueRetry(),V(this,An).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,a={queryKey:this.queryKey,meta:this.meta},i=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(Oe(this,ll,!0),r.signal)})};i(a);const o=()=>!this.options.queryFn||this.options.queryFn===P_?Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)):(Oe(this,ll,!1),this.options.persister?this.options.persister(this.options.queryFn,a,this):this.options.queryFn(a)),l={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:o};i(l),(u=this.options.behavior)==null||u.onFetch(l,this),Oe(this,Js,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&et(this,ta,ni).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta});const s=d=>{var h,p,g,b;Bv(d)&&d.silent||et(this,ta,ni).call(this,{type:"error",error:d}),Bv(d)||((p=(h=V(this,Er).config).onError)==null||p.call(h,d,this),(b=(g=V(this,Er).config).onSettled)==null||b.call(g,this.state.data,d,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Oe(this,An,yM({fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var h,p,g,b;if(d===void 0){s(new Error(`${this.queryHash} data is undefined`));return}this.setData(d),(p=(h=V(this,Er).config).onSuccess)==null||p.call(h,d,this),(b=(g=V(this,Er).config).onSettled)==null||b.call(g,d,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:s,onFail:(d,h)=>{et(this,ta,ni).call(this,{type:"failed",failureCount:d,error:h})},onPause:()=>{et(this,ta,ni).call(this,{type:"pause"})},onContinue:()=>{et(this,ta,ni).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),V(this,An).start()}},Qs=new WeakMap,Js=new WeakMap,Er=new WeakMap,An=new WeakMap,rd=new WeakMap,ll=new WeakMap,ta=new WeakSet,ni=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,..._M(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Bv(a)&&a.revert&&V(this,Js)?{...V(this,Js),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),mn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),V(this,Er).notify({query:this,type:"updated",action:t})})},BP);function _M(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gM(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FW(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ka,UP,zW=(UP=class extends Pd{constructor(t={}){super();Me(this,ka,void 0);this.config=t,Oe(this,ka,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??k_(a,n);let o=this.get(i);return o||(o=new NW({cache:this,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){V(this,ka).has(t.queryHash)||(V(this,ka).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=V(this,ka).get(t.queryHash);n&&(t.destroy(),n===t&&V(this,ka).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return V(this,ka).get(t)}getAll(){return[...V(this,ka).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>JO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>JO(t,r)):n}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){mn.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){mn.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ka=new WeakMap,UP),Pa,Mn,sl,Ta,Xi,HP,BW=(HP=class extends bM{constructor(t){super();Me(this,Ta);Me(this,Pa,void 0);Me(this,Mn,void 0);Me(this,sl,void 0);this.mutationId=t.mutationId,Oe(this,Mn,t.mutationCache),Oe(this,Pa,[]),this.state=t.state||UW(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){V(this,Pa).includes(t)||(V(this,Pa).push(t),this.clearGcTimeout(),V(this,Mn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Oe(this,Pa,V(this,Pa).filter(n=>n!==t)),this.scheduleGc(),V(this,Mn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){V(this,Pa).length||(this.state.status==="pending"?this.scheduleGc():V(this,Mn).remove(this))}continue(){var t;return((t=V(this,sl))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,i,o,l,s,u,c,f,d,h,p,g,b,m,v,_,x,O,S,w;Oe(this,sl,yM({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(C,A)=>{et(this,Ta,Xi).call(this,{type:"failed",failureCount:C,error:A})},onPause:()=>{et(this,Ta,Xi).call(this,{type:"pause"})},onContinue:()=>{et(this,Ta,Xi).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>V(this,Mn).canRun(this)}));const n=this.state.status==="pending",r=!V(this,sl).canStart();try{if(!n){et(this,Ta,Xi).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(a=V(this,Mn).config).onMutate)==null?void 0:i.call(a,t,this));const A=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t));A!==this.state.context&&et(this,Ta,Xi).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const C=await V(this,sl).start();return await((u=(s=V(this,Mn).config).onSuccess)==null?void 0:u.call(s,C,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,C,t,this.state.context)),await((h=(d=V(this,Mn).config).onSettled)==null?void 0:h.call(d,C,null,this.state.variables,this.state.context,this)),await((g=(p=this.options).onSettled)==null?void 0:g.call(p,C,null,t,this.state.context)),et(this,Ta,Xi).call(this,{type:"success",data:C}),C}catch(C){try{throw await((m=(b=V(this,Mn).config).onError)==null?void 0:m.call(b,C,t,this.state.context,this)),await((_=(v=this.options).onError)==null?void 0:_.call(v,C,t,this.state.context)),await((O=(x=V(this,Mn).config).onSettled)==null?void 0:O.call(x,void 0,C,this.state.variables,this.state.context,this)),await((w=(S=this.options).onSettled)==null?void 0:w.call(S,void 0,C,t,this.state.context)),C}finally{et(this,Ta,Xi).call(this,{type:"error",error:C})}}finally{V(this,Mn).runNext(this)}}},Pa=new WeakMap,Mn=new WeakMap,sl=new WeakMap,Ta=new WeakSet,Xi=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),mn.batch(()=>{V(this,Pa).forEach(r=>{r.onMutationUpdate(t)}),V(this,Mn).notify({mutation:this,type:"updated",action:t})})},HP);function UW(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ir,ad,WP,HW=(WP=class extends Pd{constructor(t={}){super();Me(this,ir,void 0);Me(this,ad,void 0);this.config=t,Oe(this,ir,new Map),Oe(this,ad,Date.now())}build(t,n,r){const a=new BW({mutationCache:this,mutationId:++Jd(this,ad)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){const n=xh(t),r=V(this,ir).get(n)??[];r.push(t),V(this,ir).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=xh(t);if(V(this,ir).has(n)){const a=(r=V(this,ir).get(n))==null?void 0:r.filter(i=>i!==t);a&&(a.length===0?V(this,ir).delete(n):V(this,ir).set(n,a))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=V(this,ir).get(xh(t)))==null?void 0:r.find(a=>a!==t&&a.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){mn.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...V(this,ir).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>ZO(n,r))}findAll(t={}){return this.getAll().filter(n=>ZO(t,n))}notify(t){mn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return mn.batch(()=>Promise.all(t.map(n=>n.continue().catch(Pr))))}},ir=new WeakMap,ad=new WeakMap,WP);function xh(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function WW(e){return{onFetch:(t,n)=>{const r=async()=>{var p,g,b,m,v;const a=t.options,i=(b=(g=(p=t.fetchOptions)==null?void 0:p.meta)==null?void 0:g.fetchMore)==null?void 0:b.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],l=((v=t.state.data)==null?void 0:v.pageParams)||[],s={pages:[],pageParams:[]};let u=!1;const c=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn&&t.options.queryFn!==P_?t.options.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)),d=async(_,x,O)=>{if(u)return Promise.reject();if(x==null&&_.pages.length)return Promise.resolve(_);const S={queryKey:t.queryKey,pageParam:x,direction:O?"backward":"forward",meta:t.options.meta};c(S);const w=await f(S),{maxPages:C}=t.options,A=O?RW:IW;return{pages:A(_.pages,w,C),pageParams:A(_.pageParams,x,C)}};let h;if(i&&o.length){const _=i==="backward",x=_?VW:nC,O={pages:o,pageParams:l},S=x(a,O);h=await d(O,S,_)}else{h=await d(s,l[0]??a.initialPageParam);const _=e??o.length;for(let x=1;x<_;x++){const O=nC(a,h);h=await d(h,O)}}return h};t.options.persister?t.fetchFn=()=>{var a,i;return(i=(a=t.options).persister)==null?void 0:i.call(a,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function nC(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function VW(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Dt,no,ro,Zs,eu,ao,tu,nu,VP,qW=(VP=class{constructor(e={}){Me(this,Dt,void 0);Me(this,no,void 0);Me(this,ro,void 0);Me(this,Zs,void 0);Me(this,eu,void 0);Me(this,ao,void 0);Me(this,tu,void 0);Me(this,nu,void 0);Oe(this,Dt,e.queryCache||new zW),Oe(this,no,e.mutationCache||new HW),Oe(this,ro,e.defaultOptions||{}),Oe(this,Zs,new Map),Oe(this,eu,new Map),Oe(this,ao,0)}mount(){Jd(this,ao)._++,V(this,ao)===1&&(Oe(this,tu,T_.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onFocus())})),Oe(this,nu,em.subscribe(async e=>{e&&(await this.resumePausedMutations(),V(this,Dt).onOnline())})))}unmount(){var e,t;Jd(this,ao)._--,V(this,ao)===0&&((e=V(this,tu))==null||e.call(this),Oe(this,tu,void 0),(t=V(this,nu))==null||t.call(this),Oe(this,nu,void 0))}isFetching(e){return V(this,Dt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return V(this,no).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=V(this,Dt).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return V(this,Dt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=V(this,Dt).get(r.queryHash),i=a==null?void 0:a.state.data,o=AW(t,i);if(o!==void 0)return V(this,Dt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return mn.batch(()=>V(this,Dt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=V(this,Dt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=V(this,Dt);mn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=V(this,Dt),r={type:"active",...e};return mn.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=mn.batch(()=>V(this,Dt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Pr).catch(Pr)}invalidateQueries(e={},t={}){return mn.batch(()=>{if(V(this,Dt).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=mn.batch(()=>V(this,Dt).findAll(e).filter(a=>!a.isDisabled()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Pr)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Pr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=V(this,Dt).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pr).catch(Pr)}fetchInfiniteQuery(e){return e.behavior=WW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pr).catch(Pr)}resumePausedMutations(){return em.isOnline()?V(this,no).resumePausedMutations():Promise.resolve()}getQueryCache(){return V(this,Dt)}getMutationCache(){return V(this,no)}getDefaultOptions(){return V(this,ro)}setDefaultOptions(e){Oe(this,ro,e)}setQueryDefaults(e,t){V(this,Zs).set(jf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...V(this,Zs).values()];let n={};return t.forEach(r=>{Df(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){V(this,eu).set(jf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...V(this,eu).values()];let n={};return t.forEach(r=>{Df(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...V(this,ro).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=k_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===P_&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...V(this,ro).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){V(this,Dt).clear(),V(this,no).clear()}},Dt=new WeakMap,no=new WeakMap,ro=new WeakMap,Zs=new WeakMap,eu=new WeakMap,ao=new WeakMap,tu=new WeakMap,nu=new WeakMap,VP),Hn,pt,id,In,ul,ru,Aa,od,au,iu,cl,fl,io,ou,dl,Tc,ld,Xb,sd,Yb,ud,Qb,cd,Jb,fd,Zb,dd,e1,hd,t1,mg,xM,qP,GW=(qP=class extends Pd{constructor(t,n){super();Me(this,dl);Me(this,ld);Me(this,sd);Me(this,ud);Me(this,cd);Me(this,fd);Me(this,dd);Me(this,hd);Me(this,mg);Me(this,Hn,void 0);Me(this,pt,void 0);Me(this,id,void 0);Me(this,In,void 0);Me(this,ul,void 0);Me(this,ru,void 0);Me(this,Aa,void 0);Me(this,od,void 0);Me(this,au,void 0);Me(this,iu,void 0);Me(this,cl,void 0);Me(this,fl,void 0);Me(this,io,void 0);Me(this,ou,new Set);this.options=n,Oe(this,Hn,t),Oe(this,Aa,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(V(this,pt).addObserver(this),rC(V(this,pt),this.options)?et(this,dl,Tc).call(this):this.updateResult(),et(this,cd,Jb).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return n1(V(this,pt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return n1(V(this,pt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,et(this,fd,Zb).call(this),et(this,dd,e1).call(this),V(this,pt).removeObserver(this)}setOptions(t,n){const r=this.options,a=V(this,pt);if(this.options=V(this,Hn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");et(this,hd,t1).call(this),V(this,pt).setOptions(this.options),r._defaulted&&!qb(this.options,r)&&V(this,Hn).getQueryCache().notify({type:"observerOptionsUpdated",query:V(this,pt),observer:this});const i=this.hasListeners();i&&aC(V(this,pt),a,this.options,r)&&et(this,dl,Tc).call(this),this.updateResult(n),i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&et(this,ld,Xb).call(this);const o=et(this,sd,Yb).call(this);i&&(V(this,pt)!==a||this.options.enabled!==r.enabled||o!==V(this,io))&&et(this,ud,Qb).call(this,o)}getOptimisticResult(t){const n=V(this,Hn).getQueryCache().build(V(this,Hn),t),r=this.createResult(n,t);return XW(this,r)&&(Oe(this,In,r),Oe(this,ru,this.options),Oe(this,ul,V(this,pt).state)),r}getCurrentResult(){return V(this,In)}trackResult(t,n){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),n==null||n(a),t[a])})}),r}trackProp(t){V(this,ou).add(t)}getCurrentQuery(){return V(this,pt)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=V(this,Hn).defaultQueryOptions(t),r=V(this,Hn).getQueryCache().build(V(this,Hn),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return et(this,dl,Tc).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),V(this,In)))}createResult(t,n){var w;const r=V(this,pt),a=this.options,i=V(this,In),o=V(this,ul),l=V(this,ru),u=t!==r?t.state:V(this,id),{state:c}=t;let f={...c},d=!1,h;if(n._optimisticResults){const C=this.hasListeners(),A=!C&&rC(t,n),I=C&&aC(t,r,n,a);(A||I)&&(f={...f,..._M(c.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:p,errorUpdatedAt:g,status:b}=f;if(n.select&&f.data!==void 0)if(i&&f.data===(o==null?void 0:o.data)&&n.select===V(this,od))h=V(this,au);else try{Oe(this,od,n.select),h=n.select(f.data),h=Kb(i==null?void 0:i.data,h,n),Oe(this,au,h),Oe(this,Aa,null)}catch(C){Oe(this,Aa,C)}else h=f.data;if(n.placeholderData!==void 0&&h===void 0&&b==="pending"){let C;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))C=i.data;else if(C=typeof n.placeholderData=="function"?n.placeholderData((w=V(this,iu))==null?void 0:w.state.data,V(this,iu)):n.placeholderData,n.select&&C!==void 0)try{C=n.select(C),Oe(this,Aa,null)}catch(A){Oe(this,Aa,A)}C!==void 0&&(b="success",h=Kb(i==null?void 0:i.data,C,n),d=!0)}V(this,Aa)&&(p=V(this,Aa),h=V(this,au),g=Date.now(),b="error");const m=f.fetchStatus==="fetching",v=b==="pending",_=b==="error",x=v&&m,O=h!==void 0;return{status:b,fetchStatus:f.fetchStatus,isPending:v,isSuccess:b==="success",isError:_,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:f.dataUpdatedAt,error:p,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!v,isLoadingError:_&&!O,isPaused:f.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:_&&O,isStale:A_(t,n),refetch:this.refetch}}updateResult(t){const n=V(this,In),r=this.createResult(V(this,pt),this.options);if(Oe(this,ul,V(this,pt).state),Oe(this,ru,this.options),V(this,ul).data!==void 0&&Oe(this,iu,V(this,pt)),qb(r,n))return;Oe(this,In,r);const a={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!V(this,ou).size)return!0;const s=new Set(l??V(this,ou));return this.options.throwOnError&&s.add("error"),Object.keys(V(this,In)).some(u=>{const c=u;return V(this,In)[c]!==n[c]&&s.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(a.listeners=!0),et(this,mg,xM).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&et(this,cd,Jb).call(this)}},Hn=new WeakMap,pt=new WeakMap,id=new WeakMap,In=new WeakMap,ul=new WeakMap,ru=new WeakMap,Aa=new WeakMap,od=new WeakMap,au=new WeakMap,iu=new WeakMap,cl=new WeakMap,fl=new WeakMap,io=new WeakMap,ou=new WeakMap,dl=new WeakSet,Tc=function(t){et(this,hd,t1).call(this);let n=V(this,pt).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Pr)),n},ld=new WeakSet,Xb=function(){if(et(this,fd,Zb).call(this),bu||V(this,In).isStale||!Vb(this.options.staleTime))return;const n=pM(V(this,In).dataUpdatedAt,this.options.staleTime)+1;Oe(this,cl,setTimeout(()=>{V(this,In).isStale||this.updateResult()},n))},sd=new WeakSet,Yb=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(V(this,pt)):this.options.refetchInterval)??!1},ud=new WeakSet,Qb=function(t){et(this,dd,e1).call(this),Oe(this,io,t),!(bu||this.options.enabled===!1||!Vb(V(this,io))||V(this,io)===0)&&Oe(this,fl,setInterval(()=>{(this.options.refetchIntervalInBackground||T_.isFocused())&&et(this,dl,Tc).call(this)},V(this,io)))},cd=new WeakSet,Jb=function(){et(this,ld,Xb).call(this),et(this,ud,Qb).call(this,et(this,sd,Yb).call(this))},fd=new WeakSet,Zb=function(){V(this,cl)&&(clearTimeout(V(this,cl)),Oe(this,cl,void 0))},dd=new WeakSet,e1=function(){V(this,fl)&&(clearInterval(V(this,fl)),Oe(this,fl,void 0))},hd=new WeakSet,t1=function(){const t=V(this,Hn).getQueryCache().build(V(this,Hn),this.options);if(t===V(this,pt))return;const n=V(this,pt);Oe(this,pt,t),Oe(this,id,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mg=new WeakSet,xM=function(t){mn.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(V(this,In))}),V(this,Hn).getQueryCache().notify({query:V(this,pt),type:"observerResultsUpdated"})})},qP);function KW(e,t){return t.enabled!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rC(e,t){return KW(e,t)||e.state.data!==void 0&&n1(e,t,t.refetchOnMount)}function n1(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&A_(e,t)}return!1}function aC(e,t,n,r){return(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&A_(e,n)}function A_(e,t){return t.enabled!==!1&&e.isStaleByTime(t.staleTime)}function XW(e,t){return!qb(e.getCurrentResult(),t)}var wM=y.createContext(void 0),YW=e=>{const t=y.useContext(wM);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},QW=({client:e,children:t})=>(y.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),j.jsx(wM.Provider,{value:e,children:t})),SM=y.createContext(!1),JW=()=>y.useContext(SM);SM.Provider;function ZW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var eV=y.createContext(ZW()),tV=()=>y.useContext(eV);function nV(e,t){return typeof e=="function"?e(...t):!!e}var rV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},aV=e=>{y.useEffect(()=>{e.clearReset()},[e])},iV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&nV(n,[e.error,r]),oV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},lV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,sV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function uV(e,t,n){const r=YW(n),a=JW(),i=tV(),o=r.defaultQueryOptions(e);o._optimisticResults=a?"isRestoring":"optimistic",oV(o),rV(o,i),aV(i);const[l]=y.useState(()=>new t(r,o)),s=l.getOptimisticResult(o);if(y.useSyncExternalStore(y.useCallback(u=>{const c=a?()=>{}:l.subscribe(mn.batchCalls(u));return l.updateResult(),c},[l,a]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),y.useEffect(()=>{l.setOptions(o,{listeners:!1})},[o,l]),lV(o,s))throw sV(o,l,i);if(iV({result:s,errorResetBoundary:i,throwOnError:o.throwOnError,query:r.getQueryCache().get(o.queryHash)}))throw s.error;return o.notifyOnChangeProps?s:l.trackResult(s)}function cV(e,t){return uV(e,GW,t)}const fV=async()=>{const e=await zt.get("/api/virtual-assistant/v1/senders");if(e.status===200)return e.data.senders;throw new Error("Invalid request")},dV=()=>cV({queryKey:["senders"],queryFn:fV}),hV=e=>{var{items:t,isDisabled:n,rowData:r,extraData:a,actionsToggle:i,popperProps:o={position:"end",direction:"down"},innerRef:l,firstActionItemRef:s,isOnOpenChangeDisabled:u=!1}=e,c=Q(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,d]=y.useState(!1),h=()=>{d(!f)},p=(g,b)=>{b&&(g.preventDefault(),b(g,a&&a.rowIndex,r,a))};return y.createElement(y.Fragment,null,t.filter(g=>g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,isOutsideDropdown:x}=g,O=Q(g,["title","itemKey","onClick","isOutsideDropdown"]);return typeof m=="string"?y.createElement(gt,Object.assign({onClick:S=>p(S,_)},O,{isDisabled:n,key:v||`outside_dropdown_${b}`,"data-key":v||`outside_dropdown_${b}`}),m):y.cloneElement(m,Object.assign({onClick:_,isDisabled:n},O))}),y.createElement(u_,Object.assign({isOpen:f,onOpenChange:u?void 0:g=>d(g),toggle:g=>i?i({onToggle:h,isOpen:f,isDisabled:n,toggleRef:g}):y.createElement(mu,{"aria-label":"Kebab toggle",ref:g,onClick:h,isExpanded:f,isDisabled:n,variant:"plain"},y.createElement(pB,null))},r&&r.actionProps,{ref:l},c,{popperProps:o}),y.createElement(aA,null,t.filter(g=>!g.isOutsideDropdown).map((g,b)=>{var{title:m,itemKey:v,onClick:_,tooltipProps:x,isSeparator:O,shouldCloseOnClick:S=!0}=g,w=Q(g,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(O)return y.createElement(JT,{key:v||b,"data-key":v||b});const C=y.createElement(c_,Object.assign({onClick:A=>{p(A,_),S&&h()}},w,{key:v||b,"data-key":v||b,ref:b===0?s:void 0}),m);return x!=null&&x.content?y.createElement($i,Object.assign({key:v||b},x),C):C}))))},OM=y.forwardRef((e,t)=>y.createElement(hV,Object.assign({},e,{innerRef:t})));OM.displayName="ActionsColumn";const Ee={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",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",expanded:"pf-m-expanded",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",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",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-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"},CM=e=>{var{className:t="",children:n=null,isOpen:r,onToggle:a}=e,i=Q(e,["className","children","isOpen","onToggle"]);return y.createElement(y.Fragment,null,r!==void 0&&y.createElement(gt,Object.assign({className:D(t,r&&Ee.modifiers.expanded)},i,{variant:"plain","aria-label":i["aria-label"]||"Details",onClick:a,"aria-expanded":r}),y.createElement("div",{className:D(Ee.tableToggleIcon)},y.createElement(f_,null))),n)};CM.displayName="CollapseColumn";const EM=e=>{var{className:t,onClick:n,"aria-label":r,id:a}=e,i=Q(e,["className","onClick","aria-label","id"]);return y.createElement(gt,Object.assign({id:a,variant:"plain",className:t,type:"button","aria-label":r||"Draggable row draggable button",onClick:n},i),y.createElement(Oz,{"aria-hidden":!0}))};EM.displayName="DraggableCell";const pV={button:"pf-v5-c-button",inlineEdit:"pf-v5-c-inline-edit",inlineEditAction:"pf-v5-c-inline-edit__action",inlineEditEditableText:"pf-v5-c-inline-edit__editable-text",inlineEditGroup:"pf-v5-c-inline-edit__group",inlineEditInput:"pf-v5-c-inline-edit__input",inlineEditLabel:"pf-v5-c-inline-edit__label",inlineEditValue:"pf-v5-c-inline-edit__value",modifiers:{iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"}};var iC;(function(e){e.div="div",e.nav="nav"})(iC||(iC={}));var oC;(function(e){e.wrap="wrap",e.nowrap="nowrap",e.truncate="truncate",e.breakWord="breakWord",e.fitContent="fitContent"})(oC||(oC={}));const qg=e=>{var{children:t=null,className:n="",variant:r="span",wrapModifier:a=null,tooltip:i="",tooltipProps:o={},onMouseEnter:l=()=>{},focused:s=!1,tooltipHasDefaultBehavior:u=!1}=e,c=Q(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=r,d=y.createRef(),[h,p]=y.useState(i),g=v=>{v.target.offsetWidth{v.offsetWidth{u||(s?b(d.current):p(""))},[s,u]),h!==""?y.createElement($i,Object.assign({triggerRef:d,content:h},!u&&{isVisible:!0},o),m):m};qg.displayName="TableText";const r1=({children:e,info:t,className:n,variant:r="tooltip",popoverProps:a,tooltipProps:i,ariaLabel:o})=>y.createElement("div",{className:D(Ee.tableColumnHelp,n)},typeof e=="string"?y.createElement(qg,null,e):e,y.createElement("span",{className:D(Ee.tableColumnHelpAction)},r==="tooltip"?y.createElement($i,Object.assign({content:t},i),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null))):y.createElement(l_,Object.assign({bodyContent:t},a),y.createElement(gt,{variant:"plain","aria-label":o||typeof t=="string"&&t||"More info"},y.createElement(bO,null)))));r1.displayName="HeaderCellInfoWrapper";const mV={button:"pf-v5-c-button",modifiers:{grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableCheck:"pf-v5-c-table__check",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr"},Vn={dirRtl:"pf-v5-m-dir-rtl",dropdown:"pf-v5-c-dropdown",modifiers:{treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableCheck:"pf-v5-c-table__check",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",tableTreeViewDetailsToggle:"pf-v5-c-table__tree-view-details-toggle",tableTreeViewIcon:"pf-v5-c-table__tree-view-icon",tableTreeViewMain:"pf-v5-c-table__tree-view-main",tableTreeViewText:"pf-v5-c-table__tree-view-text",tableTreeViewTitleCell:"pf-v5-c-table__tree-view-title-cell",tableTreeViewTitleHeaderCell:"pf-v5-c-table__tree-view-title-header-cell"};var a1;(function(e){e.radio="radio",e.checkbox="checkbox"})(a1||(a1={}));const kM=e=>{var{children:t=null,className:n,onSelect:r=null,selectVariant:a,tooltip:i,tooltipProps:o}=e,l=Q(e,["children","className","onSelect","selectVariant","tooltip","tooltipProps"]);const s=y.createRef(),u=y.createElement(y.Fragment,null,y.createElement("label",null,y.createElement("input",Object.assign({},l,{ref:s,type:a,onChange:r}))),t);return i?y.createElement($i,Object.assign({triggerRef:s,content:i},o),u):u};kM.displayName="SelectColumn";const PM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i,tooltip:o})=>{const{extraParams:{onSelect:l,selectVariant:s,allRowsSelected:u,isHeaderSelectDisabled:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.showSelect&&!r.fullWidth)return{component:"td",isVisible:!0};const d=t!==void 0?t:-1;function h(b){const m=t===void 0?b.currentTarget.checked:r&&!r.selected;l&&l(b,m,d,r,f)}const p=Object.assign(Object.assign(Object.assign({},d!==-1?{checked:r&&!!r.selected,"aria-label":`Select row ${t}`}:{checked:u,"aria-label":"Select all rows"}),r&&(r.disableCheckbox||r.disableSelection)&&{disabled:!0,className:ti.checkInput}),!r&&c&&{disabled:!0});let g="check-all";return d!==-1&&s===a1.checkbox?g=`checkrow${t}`:d!==-1&&(g="radioGroup"),{className:D(Ee.tableCheck),component:d!==-1?"td":"th",isVisible:!r||!r.fullWidth,children:y.createElement(kM,Object.assign({},p,{selectVariant:s,onSelect:h,name:g,tooltip:o}),e)}};var tl;(function(e){e.asc="asc",e.desc="desc"})(tl||(tl={}));const TM=e=>{var{children:t=null,className:n="",isSortedBy:r=!1,onSort:a=null,sortDirection:i="",type:o="button",tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u}=e,c=Q(e,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior"]);let f;const[d,h]=y.useState(!1);return r?f=i===tl.asc?OB:xB:f=aB,y.createElement("button",Object.assign({},c,{type:o,className:D(n,Ee.tableButton),onClick:p=>a&&a(p),onFocus:()=>h(!0),onBlur:()=>h(!1)}),y.createElement("div",{className:D(n,Ee.tableButtonContent)},y.createElement(qg,{tooltip:l,tooltipProps:s,tooltipHasDefaultBehavior:u,focused:d},t),y.createElement("span",{className:D(Ee.tableSortIndicator)},y.createElement(f,null))))};TM.displayName="SortColumn";const gV=e=>()=>AM(y.createElement(n_,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:Ee.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e==null?void 0:e.onSort}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0}),AM=(e,{columnIndex:t,column:n,property:r,className:a,ariaLabel:i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s})=>{const{extraParams:{sortBy:u,onSort:c}}=n,f={columnIndex:t,column:n,property:r},d=u&&t===u.index;function h(p){let g;d?g=u.direction===tl.asc?tl.desc:tl.asc:g=u.defaultDirection?u.defaultDirection:tl.asc,c&&c(p,t,g,f)}return{className:D(Ee.tableSort,d&&Ee.modifiers.selected,a),"aria-sort":d?`${u.direction}ending`:"none",children:y.createElement(TM,{isSortedBy:d,sortDirection:d?u.direction:"",onSort:h,"aria-label":i,tooltip:o,tooltipProps:l,tooltipHasDefaultBehavior:s},e)}},lC=(e,t,n,r)=>typeof e=="function"?e(n,r):t,vV=(e,t,n)=>(r,{rowData:a,column:i,rowIndex:o,columnIndex:l,column:{extraParams:{actionsToggle:s,actionsPopperProps:u}},property:c})=>{const f={rowIndex:o,columnIndex:l,column:i,property:c},d=lC(t,e,a,f),h=lC(n,a&&a.disableActions,a,f),p=d&&d.length>0?{children:y.createElement(OM,{items:d,isDisabled:h,rowData:a,extraData:f,actionsToggle:s,popperProps:u},r)}:{};return Object.assign({className:D(Ee.tableAction),style:{paddingRight:0},isVisible:!0},p)},yV=e=>e.toUpperCase().replace("-","").replace("_",""),sC=e=>e.replace(/([-_][a-z])/gi,yV);function bV(e){return e[0].toUpperCase()+e.substring(1)}const MM=e=>()=>({className:D(Ee.modifiers[typeof e=="number"?`width_${e}`:`width${bV(e)}`])}),IM=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onCollapse:o,rowLabeledBy:l="simple-node",expandId:s="expand-toggle",allRowsExpanded:u,collapseAllAriaLabel:c}}=a,f={rowIndex:t,columnIndex:n,column:a,property:i},d=t!==void 0?t:-1,h=Object.assign({},d!==-1?{isOpen:r==null?void 0:r.isOpen,"aria-labelledby":`${l}${d} ${s}${d}`}:{isOpen:u,"aria-label":c||"Expand all rows"});function p(g){const b=r?!r.isOpen:!u;o&&o(g,t,b,r,f)}return{className:((r==null?void 0:r.isOpen)!==void 0||d===-1)&&D(Ee.tableToggle),isVisible:!(r!=null&&r.fullWidth),children:y.createElement(CM,Object.assign({"aria-labelledby":`${l}${d} ${s}${d}`,onToggle:p,id:s+d},h),e)}},_V=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{if(!e)return null;const{title:o,props:l}=e,{extraParams:{onExpand:s,expandId:u="expand-toggle"}}=a,c={rowIndex:t,columnIndex:n,column:a,property:i};function f(d){s&&s(d,t,n,l.isOpen,r,c)}return{className:D(Ee.tableCompoundExpansionToggle,l.isOpen&&Ee.modifiers.expanded),children:l.isOpen!==void 0&&y.createElement("button",{type:"button",className:D(Ee.tableButton),onClick:f,"aria-expanded":l.isOpen,"aria-controls":l.ariaControls,id:`${u}-${t}-${n}`},y.createElement(qg,null,o))}},xV=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"],RM=xV.filter(e=>Ee.modifiers[e]).reduce((e,t)=>{const n=t.replace("_2xl","2Xl");return e[n]=Ee.modifiers[t],e},{}),$M=(...e)=>()=>({className:D(...e)}),wV=({tooltip:e,tooltipProps:t,popover:n,popoverProps:r,className:a,ariaLabel:i})=>l=>({className:Ee.modifiers.help,children:e?y.createElement(r1,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:i,className:a},l):y.createElement(r1,{variant:"popover",info:n,popoverProps:r,ariaLabel:i,className:a},l)}),LM=e=>{var{className:t="",onFavorite:n,isFavorited:r,rowIndex:a}=e,i=Q(e,["className","onFavorite","isFavorited","rowIndex"]);const o=a===void 0?{}:{id:`favorites-button-${a}`,"aria-labelledby":`favorites-button-${a}`};return y.createElement(gt,Object.assign({variant:"plain",className:t,type:"button","aria-label":r?"Starred":"Not starred",onClick:n},o,i),y.createElement(n_,{"aria-hidden":!0}))};LM.displayName="FavoritesCell";const SV=(e,{rowIndex:t,columnIndex:n,rowData:r,column:a,property:i})=>{const{extraParams:{onFavorite:o}}=a,l={rowIndex:t,columnIndex:n,column:a,property:i};if(r&&r.hasOwnProperty("parent")&&!r.fullWidth)return{component:"td",isVisible:!0};function s(c){o&&o(c,r&&!r.favorited,t,r,l)}const u=r.favoritesProps||{};return{className:D(Ee.tableFavorite,r&&r.favorited&&Ee.modifiers.favorited),isVisible:!r||!r.fullWidth,children:y.createElement(LM,Object.assign({rowIndex:t,onFavorite:s,isFavorited:r&&r.favorited},u))}},OV=(e,t,n)=>(r,{rowIndex:a,rowData:i})=>{const{isExpanded:o,isDetailsExpanded:l,"aria-level":s,"aria-setsize":u,toggleAriaLabel:c,checkAriaLabel:f,showDetailsAriaLabel:d,isChecked:h,checkboxId:p,icon:g}=i.props,b=r.title||r,m=y.createElement("div",{className:D(Vn.tableTreeViewText),key:"tree-view-text"},g&&y.createElement("span",{className:D(Vn.tableTreeViewIcon),key:"tree-view-text-icon"},g),y.createElement("span",{className:Ee.tableText,key:"table-text"},b)),v=(_,x)=>{t(x,_,a,b,i)};return{component:"th",className:Vn.tableTreeViewTitleCell,children:s!==void 0?y.createElement("div",{className:D(Vn.tableTreeViewMain)},u>0&&y.createElement("span",{className:D(Vn.tableToggle),key:"table-toggle"},y.createElement(gt,{variant:"plain",onClick:_=>e&&e(_,a,b,i),className:D(o&&Ee.modifiers.expanded),"aria-expanded":o,"aria-label":c||`${o?"Collapse":"Expand"} row ${a}`},y.createElement("div",{className:D(Vn.tableToggleIcon)},y.createElement(f_,{"aria-hidden":"true"})))),!!t&&y.createElement("span",{className:D(Vn.tableCheck),key:"table-check"},y.createElement("label",{htmlFor:p||`checkbox_${a}`},y.createElement(ur,{id:p||`checkbox_${a}`,"aria-label":f||`Row ${a} checkbox`,isChecked:h,onChange:(_,x)=>v(x,_)}))),m,!!n&&y.createElement("span",{className:D(Vn.tableTreeViewDetailsToggle),key:"view-details-toggle"},y.createElement(gt,{variant:"plain","aria-expanded":l,"aria-label":d||"Show row details",onClick:_=>n&&n(_,a,b,i)},y.createElement("span",{className:`${Ee.table}__details-toggle-icon`},y.createElement(fB,{"aria-hidden":!0}))))):m}};var i1;(function(e){e.none="",e.grid="grid",e.gridMd="grid-md",e.gridLg="grid-lg",e.gridXl="grid-xl",e.grid2xl="grid-2xl"})(i1||(i1={}));var uC;(function(e){e.compact="compact"})(uC||(uC={}));const jM=y.createContext({registerSelectableRow:()=>{}}),CV=e=>{var t,n,{children:r,className:a,variant:i,borders:o=!0,isStickyHeader:l=!1,gridBreakPoint:s=i1.gridMd,"aria-label":u,role:c="grid",innerRef:f,ouiaId:d,ouiaSafe:h=!0,isTreeTable:p=!1,isNested:g=!1,isStriped:b=!1,isExpandable:m=!1,hasNoInset:v=!1,nestedHeaderColumnSpans:_,selectableRowCaptionText:x}=e,O=Q(e,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const S=y.useRef(null),w=f||S,[C,A]=y.useState(!1),[I,P]=y.useState();y.useEffect(()=>{if(document.addEventListener("keydown",U),w&&w.current&&w.current.classList.contains("pf-m-tree-view")){const $=w.current.querySelector("tbody");$&&NF(Array.from($.querySelectorAll("button, a, input")))}return function(){document.removeEventListener("keydown",U)}},[w,w.current]),y.useEffect(()=>{P(x?y.createElement("caption",null,x,y.createElement("div",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")):y.createElement("caption",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."))},[x]);const T=Ii("Table",d,h),E=(t=mV.modifiers)===null||t===void 0?void 0:t[sC(s||"").replace(/-?2xl/,"_2xl")],L=`treeView${s.charAt(0).toUpperCase()+s.slice(1)}`,N=(n=Vn.modifiers)===null||n===void 0?void 0:n[sC(L||"").replace(/-?2xl/,"_2xl")],U=$=>{if(g||!(w&&w.current&&w.current.classList.contains(Vn.modifiers.treeView))||w&&w.current!==$.target.closest(`.${Ee.table}:not(.pf-m-nested)`))return;const F=document.activeElement,k=$.key,X=Array.from(w.current.querySelectorAll("tbody tr")).filter(R=>!R.classList.contains("pf-m-disabled")&&!R.hidden);(k==="Space"||k==="Enter")&&(F.click(),$.preventDefault()),ET($,X,R=>R===F.closest("tr"),R=>R.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0],["button","input","a"],void 0,!1,!0,!1)},W=()=>{!C&&A(!0)};return y.createElement(jM.Provider,{value:{registerSelectableRow:W}},y.createElement("table",Object.assign({"aria-label":u,role:c,className:D(a,Ee.table,p?N:E,Ee.modifiers[i],!o&&Ee.modifiers.noBorderRows,l&&Ee.modifiers.stickyHeader,p&&Vn.modifiers.treeView,b&&Ee.modifiers.striped,m&&Ee.modifiers.expandable,v&&Vn.modifiers.noInset,g&&"pf-m-nested"),ref:w},p&&{role:"treegrid"},T,O),C&&I,r))},M_=y.forwardRef((e,t)=>y.createElement(CV,Object.assign({},e,{innerRef:t})));M_.displayName="Table";const EV=e=>{var{children:t,className:n,isExpanded:r,isEditable:a,isHidden:i=!1,isClickable:o=!1,isRowSelected:l=!1,isStriped:s=!1,isBorderRow:u=!1,innerRef:c,ouiaId:f,ouiaSafe:d=!0,resetOffset:h=!1,onRowClick:p,isSelectable:g,"aria-label":b}=e,m=Q(e,["children","className","isExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const v=Ii("TableRow",f,d),[_,x]=y.useState("");let O=null;p&&(O=A=>{(A.key==="Enter"||A.key===" ")&&(p(A),A.preventDefault())});const S=i||r!==void 0&&!r,{registerSelectableRow:w}=y.useContext(jM);y.useEffect(()=>{g&&!S?(x(`${l?"Row selected":""}`),w()):x(void 0)},[l,g,w,S]);const C=b||_;return y.createElement(y.Fragment,null,y.createElement("tr",Object.assign({className:D(Ee.tableTr,n,r!==void 0&&Ee.tableExpandableRow,r&&Ee.modifiers.expanded,a&&pV.modifiers.inlineEditable,o&&Ee.modifiers.clickable,l&&Ee.modifiers.selected,s&&Ee.modifiers.striped,u&&Ee.modifiers.borderRow,h&&Ee.modifiers.firstCellOffsetReset),hidden:S},o&&{tabIndex:0},{"aria-label":C,ref:c},p&&{onClick:p,onKeyDown:O},v,m),t))},Nf=y.forwardRef((e,t)=>y.createElement(EV,Object.assign({},e,{innerRef:t})));Nf.displayName="Tr";const kV=e=>{var{children:t,className:n,noWrap:r=!1,innerRef:a,hasNestedHeader:i}=e,o=Q(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return y.createElement("thead",Object.assign({className:D(Ee.tableThead,n,r&&Ee.modifiers.nowrap,i&&Ee.modifiers.nestedColumnHeader),ref:a},o),t)},I_=y.forwardRef((e,t)=>y.createElement(kV,Object.assign({},e,{innerRef:t})));I_.displayName="Thead";const PV=e=>{var{children:t,className:n,isExpanded:r,innerRef:a,isEvenStriped:i=!1,isOddStriped:o=!1}=e,l=Q(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return y.createElement("tbody",Object.assign({role:"rowgroup",className:D(Ee.tableTbody,n,r&&Ee.modifiers.expanded,o&&Ee.modifiers.striped,i&&Ee.modifiers.stripedEven),ref:a},l),t)},R_=y.forwardRef((e,t)=>y.createElement(PV,Object.assign({},e,{innerRef:t})));R_.displayName="Tbody";const zs={modifiers:{borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",right:"pf-m-right",inlineEnd:"pf-m-inline-end",left:"pf-m-left",inlineStart:"pf-m-inline-start"},scrollInnerWrapper:"pf-v5-c-scroll-inner-wrapper",scrollOuterWrapper:"pf-v5-c-scroll-outer-wrapper",table:"pf-v5-c-table",tableStickyCell:"pf-v5-c-table__sticky-cell"};function TV(){this.__data__=[],this.size=0}var AV=TV;function MV(e,t){return e===t||e!==e&&t!==t}var Fl=MV,IV=Fl;function RV(e,t){for(var n=e.length;n--;)if(IV(e[n][0],t))return n;return-1}var Gg=RV,$V=Gg,LV=Array.prototype,jV=LV.splice;function DV(e){var t=this.__data__,n=$V(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():jV.call(t,n,1),--this.size,!0}var NV=DV,FV=Gg;function zV(e){var t=this.__data__,n=FV(t,e);return n<0?void 0:t[n][1]}var BV=zV,UV=Gg;function HV(e){return UV(this.__data__,e)>-1}var WV=HV,VV=Gg;function qV(e,t){var n=this.__data__,r=VV(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var GV=qV,KV=AV,XV=NV,YV=BV,QV=WV,JV=GV;function Lu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=cX}var F_=fX,dX=$_,hX=F_;function pX(e){return e!=null&&hX(e.length)&&!dX(e)}var Bl=pX,mX=Bl,gX=ji;function vX(e){return gX(e)&&mX(e)}var yX=vX,nm={exports:{}};function bX(){return!1}var _X=bX;nm.exports;(function(e,t){var n=ga,r=_X,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(nm,nm.exports);var Zg=nm.exports,xX=jo,wX=N_,SX=ji,OX="[object Object]",CX=Function.prototype,EX=Object.prototype,qM=CX.toString,kX=EX.hasOwnProperty,PX=qM.call(Object);function TX(e){if(!SX(e)||xX(e)!=OX)return!1;var t=wX(e);if(t===null)return!0;var n=kX.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qM.call(n)==PX}var GM=TX;const Zt=at(GM);var AX=jo,MX=F_,IX=ji,RX="[object Arguments]",$X="[object Array]",LX="[object Boolean]",jX="[object Date]",DX="[object Error]",NX="[object Function]",FX="[object Map]",zX="[object Number]",BX="[object Object]",UX="[object RegExp]",HX="[object Set]",WX="[object String]",VX="[object WeakMap]",qX="[object ArrayBuffer]",GX="[object DataView]",KX="[object Float32Array]",XX="[object Float64Array]",YX="[object Int8Array]",QX="[object Int16Array]",JX="[object Int32Array]",ZX="[object Uint8Array]",eY="[object Uint8ClampedArray]",tY="[object Uint16Array]",nY="[object Uint32Array]",St={};St[KX]=St[XX]=St[YX]=St[QX]=St[JX]=St[ZX]=St[eY]=St[tY]=St[nY]=!0;St[RX]=St[$X]=St[qX]=St[LX]=St[GX]=St[jX]=St[DX]=St[NX]=St[FX]=St[zX]=St[BX]=St[UX]=St[HX]=St[WX]=St[VX]=!1;function rY(e){return IX(e)&&MX(e.length)&&!!St[AX(e)]}var aY=rY;function iY(e){return function(t){return e(t)}}var e0=iY,rm={exports:{}};rm.exports;(function(e,t){var n=DM,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(rm,rm.exports);var Ad=rm.exports,oY=aY,lY=e0,_C=Ad,xC=_C&&_C.isTypedArray,sY=xC?lY(xC):oY,t0=sY;function uY(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var KM=uY,cY=Qg,fY=Fl,dY=Object.prototype,hY=dY.hasOwnProperty;function pY(e,t,n){var r=e[t];(!(hY.call(e,t)&&fY(r,n))||n===void 0&&!(t in e))&&cY(e,t,n)}var XM=pY,mY=XM,gY=Qg;function vY(e,t,n,r){var a=!n;n||(n={});for(var i=-1,o=t.length;++i-1&&e%1==0&&e0){if(++t>=kQ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MQ=AQ,IQ=EQ,RQ=MQ,$Q=RQ(IQ),e8=$Q,LQ=Md,jQ=ZM,DQ=e8;function NQ(e,t){return DQ(jQ(e,t,LQ),e+"")}var t8=NQ,FQ=Fl,zQ=Bl,BQ=n0,UQ=yr;function HQ(e,t,n){if(!UQ(n))return!1;var r=typeof t;return(r=="number"?zQ(n)&&BQ(t,n.length):r=="string"&&t in n)?FQ(n[t],e):!1}var z_=HQ,WQ=t8,VQ=z_;function qQ(e){return WQ(function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&VQ(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++r{if(i==="children")return r&&a?y.cloneElement(r,{children:a}):Object.assign(Object.assign({},a),r);if(i==="className")return D(r,a)}):Hv({},t)}const a8={name:"--pf-v5-c-table__sticky-cell--MinWidth",value:"12.5rem",var:"var(--pf-v5-c-table__sticky-cell--MinWidth)"},i8={name:"--pf-v5-c-table__sticky-cell--Left",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Left)"},o8={name:"--pf-v5-c-table__sticky-cell--Right",value:"0",var:"var(--pf-v5-c-table__sticky-cell--Right)"},QQ=e=>{var{children:t,className:n,component:r="th",dataLabel:a,scope:i="col",textCenter:o=!1,sort:l=null,modifier:s,select:u=null,expand:c=null,tooltip:f="",tooltipProps:d,onMouseEnter:h=()=>{},width:p,visibility:g,innerRef:b,info:m,isStickyColumn:v=!1,hasRightBorder:_=!1,hasLeftBorder:x=!1,stickyMinWidth:O="120px",stickyLeftOffset:S,stickyRightOffset:w,isSubheader:C=!1,screenReaderText:A,"aria-label":I}=e,P=Q(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);!t&&!A&&!I&&console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=ye=>{ye.target.offsetWidthRM[ye]))():null;let R=($==null?void 0:$.children)||(F==null?void 0:F.children)||(k==null?void 0:k.children)||t,J=null;m&&(J=wV(m)(R),R=J.children);const ae=r8($,F,k,X,te,J),{children:ue=null,isVisible:ve=null,className:ke="",component:q=r}=ae,Z=Q(ae,["children","isVisible","className","component"]);y.useEffect(()=>{N(U.current.offsetWidthE(!1),"data-label":a,onMouseEnter:f!==null?W:h,scope:r==="th"?i:null,ref:U,"aria-label":I,className:D(Ee.tableTh,n,o&&Ee.modifiers.center,C&&Ee.tableSubhead,v&&zs.tableStickyCell,_&&zs.modifiers.borderRight,x&&zs.modifiers.borderLeft,s&&Ee.modifiers[s],ke)},Z,P,v&&{style:Object.assign({[a8.name]:O||void 0,[i8.name]:S||0,[o8.name]:w||0},P.style)}),R||A&&y.createElement("span",{className:"pf-v5-screen-reader"},A));return f!==null&&(f===""?typeof R=="string":!0)&&!($||F)&&T?y.createElement(y.Fragment,null,ie,y.createElement($i,Object.assign({triggerRef:U,content:f||f===""&&t,isVisible:!0},d))):ie},Cs=y.forwardRef((e,t)=>y.createElement(QQ,Object.assign({},e,{innerRef:t})));Cs.displayName="Th";const JQ=(e,{rowData:t})=>{const{id:n}=t;return{className:"",children:y.createElement(EM,{id:n})}},ZQ=e=>{var{children:t,className:n,isActionCell:r=!1,component:a="td",dataLabel:i,textCenter:o=!1,modifier:l,select:s=null,actions:u=null,expand:c=null,treeRow:f=null,compoundExpand:d=null,noPadding:h,width:p,visibility:g,innerRef:b,favorites:m=null,draggableRow:v=null,tooltip:_="",onMouseEnter:x=()=>{},isStickyColumn:O=!1,hasRightBorder:S=!1,hasLeftBorder:w=!1,stickyMinWidth:C="120px",stickyLeftOffset:A,stickyRightOffset:I}=e,P=Q(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[T,E]=y.useState(!1),[L,N]=y.useState(!1),U=b||y.createRef(),W=Re=>{Re.target.offsetWidthRM[Re]))():null,ve=f!==null?OV(f.onCollapse,f.onCheckChange,f.onToggleRowDetails)({title:t},{rowIndex:f.rowIndex,rowData:{props:f.props}}):null,ke=r8($,te,R,J,ae,ue,F,ve,k),{isVisible:q=null,children:Z=null,className:ie="",component:K=a}=ke,Te=Q(ke,["isVisible","children","className","component"]),ye=n&&n.includes(Vn.tableTreeViewTitleCell)||ie&&ie.includes(Vn.tableTreeViewTitleCell);y.useEffect(()=>{N(U.current.offsetWidthE(!1),onMouseEnter:_!==null?W:x,className:D(Ee.tableTd,n,r&&Ee.tableAction,o&&Ee.modifiers.center,h&&Ee.modifiers.noPadding,O&&zs.tableStickyCell,S&&zs.modifiers.borderRight,w&&zs.modifiers.borderLeft,Ee.modifiers[l],k&&Ee.tableDraggable,ie),ref:U},Te,P,O&&{style:Object.assign({[a8.name]:C||void 0,[i8.name]:A||0,[o8.name]:I||0},P.style)}),Z||t);return _!==null&&(_===""?typeof t=="string":!0)&&T?y.createElement(y.Fragment,null,Ae,y.createElement($i,{triggerRef:U,content:_||_===""&&t,isVisible:!0})):Ae},Es=y.forwardRef((e,t)=>y.createElement(ZQ,Object.assign({},e,{innerRef:t})));Es.displayName="Td";const B_=e=>{var{children:t,className:n}=e,r=Q(e,["children","className"]);return y.createElement("caption",Object.assign({className:D(Ee.tableCaption,n)},r),t)};B_.displayName="Caption";const eJ=({senders:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Senders list"}),j.jsx(I_,{children:j.jsx(Nf,{children:j.jsx(Cs,{children:"Sender id"})})}),j.jsx(R_,{children:e.map(t=>j.jsx(Nf,{children:j.jsx(Es,{children:j.jsx(di,{to:`/senders/${t.sender_id}`,children:t.sender_id})})},t.sender_id))})]}),Id=()=>j.jsx(hr,{children:j.jsx(PA,{children:j.jsx($g,{size:"xl"})})}),tJ=()=>{const e=dV();return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Senders"})]})}),e.isLoading?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx(eJ,{senders:e.data})," "]})]})};var l8="en",U_={},o1={};function s8(){return l8}function nJ(e){l8=e}function rJ(e){return U_[e]}function aJ(e){if(!e)throw new Error("No locale data passed");U_[e.locale]=e,o1[e.locale.toLowerCase()]=e.locale}function PC(e){if(U_[e])return e;if(o1[e.toLowerCase()])return o1[e.toLowerCase()]}function u8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return TC(e);case"best fit":return TC(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function TC(e){var t=PC(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=PC(e);if(r)return r}}var B={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":a>=3&&a<=10?"few":a>=11&&a<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return a==1&&i!=11?"one":a>=2&&a<=4&&(i<12||i>14)?"few":r&&a==0||a>=5&&a<=9||i>=11&&i<=14?"many":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-1),i=r&&n[0].slice(-2),o=r&&n[0].slice(-6);return a==1&&i!=11&&i!=71&&i!=91?"one":a==2&&i!=12&&i!=72&&i!=92?"two":(a==3||a==4||a==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&o==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":i&&o>=2&&o<=4&&(l<12||l>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ca:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1&&a?"one":r!=0&&i==0&&a?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=a.slice(-1);return i&&(r==1||r==2||r==3)||i&&o!=4&&o!=6&&o!=9||!i&&l!=4&&l!=6&&l!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return t==1&&a?"one":r>=2&&r<=4&&a?"few":a?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],a=Number(n[0])==t;return t==1||!a&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-2),l=a.slice(-2);return i&&o==1||l==1?"one":i&&o==2||l==2?"two":i&&(o==3||o==4)||l==3||l==4?"few":"other"},dz:function(t){return"other"},es:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t==1?"one":r!=0&&i==0&&a?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return t>=0&&t<2?"one":r!=0&&i==0&&a?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],a=!n[1];return r==1&&a||r==0&&!a?"one":r==2&&a?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],a=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==t,o=r.slice(-1),l=r.slice(-2);return i&&o==1&&l!=11||a%10==1&&a%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",a=Number(n[0])==t,i=a&&n[0].slice(-1),o=a&&n[0].slice(-2);return i==1&&(o<11||o>19)?"one":i>=2&&i<=9&&(o<11||o>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",a=r.length,i=Number(n[0])==t,o=i&&n[0].slice(-1),l=i&&n[0].slice(-2),s=r.slice(-2),u=r.slice(-1);return i&&o==0||l>=11&&l<=19||a==2&&s>=11&&s<=19?"zero":o==1&&l!=11||a==2&&u==1&&s!=11||a!=2&&u==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"",i=!n[1],o=r.slice(-1),l=r.slice(-2),s=a.slice(-1),u=a.slice(-2);return i&&o==1&&l!=11||s==1&&u!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,a=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||a>=3&&a<=10?"few":a>=11&&a<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return t==1&&a?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&r!=1&&(i==0||i==1)||a&&i>=5&&i<=9||a&&o>=12&&o<=14?"many":"other"},pt:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-6);return r==0||r==1?"one":r!=0&&i==0&&a?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],a=Number(n[0])==t,i=a&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&i>=1&&i<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-1),o=r.slice(-2);return a&&i==1&&o!=11?"one":a&&i>=2&&i<=4&&(o<12||o>14)?"few":a&&i==0||a&&i>=5&&i<=9||a&&o>=11&&o<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],a=n[1]||"";return t==0||t==1||r==0&&a==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],a=!n[1],i=r.slice(-2);return a&&i==1?"one":a&&i==2?"two":a&&(i==3||i==4)||!a?"few":"other"}};B.as=B.am;B.az=B.af;B.bg=B.af;B.bn=B.am;B.brx=B.af;B.ce=B.af;B.chr=B.af;B.de=B.ast;B.ee=B.af;B.el=B.af;B.en=B.ast;B.et=B.ast;B.eu=B.af;B.fa=B.am;B.fi=B.ast;B.fil=B.ceb;B.fo=B.af;B.fur=B.af;B.fy=B.ast;B.gl=B.ast;B.gu=B.am;B.ha=B.af;B.hi=B.am;B.hr=B.bs;B.hsb=B.dsb;B.hu=B.af;B.hy=B.ff;B.ia=B.ast;B.id=B.dz;B.ig=B.dz;B.it=B.ca;B.ja=B.dz;B.jgo=B.af;B.jv=B.dz;B.ka=B.af;B.kea=B.dz;B.kk=B.af;B.kl=B.af;B.km=B.dz;B.kn=B.am;B.ko=B.dz;B.ks=B.af;B.ku=B.af;B.ky=B.af;B.lb=B.af;B.lkt=B.dz;B.lo=B.dz;B.ml=B.af;B.mn=B.af;B.mr=B.af;B.ms=B.dz;B.my=B.dz;B.nb=B.af;B.ne=B.af;B.nl=B.ast;B.nn=B.af;B.no=B.af;B.or=B.af;B.pcm=B.am;B.ps=B.af;B.rm=B.af;B.sah=B.dz;B.sc=B.ast;B.sd=B.af;B.sk=B.cs;B.so=B.af;B.sq=B.af;B.sr=B.bs;B.su=B.dz;B.sv=B.ast;B.sw=B.ast;B.ta=B.af;B.te=B.af;B.th=B.dz;B.ti=B.pa;B.tk=B.af;B.to=B.dz;B.tr=B.af;B.ug=B.af;B.uk=B.ru;B.ur=B.ast;B.uz=B.af;B.vi=B.dz;B.wae=B.af;B.wo=B.dz;B.xh=B.af;B.yi=B.ast;B.yo=B.dz;B.yue=B.dz;B.zh=B.dz;B.zu=B.am;const AC=B;function MC(e){return e==="pt-PT"?e:oJ(e)}var iJ=/^([a-z0-9]+)/i;function oJ(e){var t=e.match(iJ);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function lJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IC(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};pJ(this,e);var r=n.numeric,a=n.style,i=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(vJ.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(a!==void 0){if(yJ.indexOf(a)<0)throw new RangeError('Invalid "style" option: '.concat(a));this.style=a}if(i!==void 0){if(bJ.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if(typeof t=="string"&&(t=[t]),t.push(s8()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");l1.supportedLocalesOf(this.locale).length>0?this.pluralRules=new l1(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=u8(this.locale,{localeMatcher:this.localeMatcher})}return mJ(e,[{key:"format",value:function(){var n=NC(arguments),r=LC(n,2),a=r[0],i=r[1];return this.getRule(a,i).replace("{0}",this.formatNumber(Math.abs(a)))}},{key:"formatToParts",value:function(){var n=NC(arguments),r=LC(n,2),a=r[0],i=r[1],o=this.getRule(a,i),l=o.indexOf("{0}");if(l<0)return[{type:"literal",value:o}];var s=[];return l>0&&s.push({type:"literal",value:o.slice(0,l)}),s=s.concat(this.formatNumberToParts(Math.abs(a)).map(function(u){return $C($C({},u),{},{unit:i})})),l+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return u8(n,t)})};Co.addLocale=aJ;Co.setDefaultLocale=nJ;Co.getDefaultLocale=s8;Co.PluralRules=l1;var Wv='Invalid "unit" argument';function _J(e){if(s1(e)==="symbol")throw new TypeError(Wv);if(typeof e!="string")throw new RangeError("".concat(Wv,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),gJ.indexOf(e)<0)throw new RangeError("".concat(Wv,": ").concat(e));return e}var xJ='Invalid "number" argument';function wJ(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(xJ,": ").concat(e));return e}function SJ(e){return 1/e===-1/0}function OJ(e){return e<0||e===0&&SJ(e)}function NC(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[wJ(e[0]),_J(e[1])]}function am(e){"@babel/helpers - typeof";return am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},am(e)}function CJ(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=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PJ(e,t){if(e){if(typeof e=="string")return BC(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 BC(e,t)}}function BC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)if(i.pop(),a=i.join("-"),t(a))return a}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function AJ(){var e=(typeof Intl>"u"?"undefined":u1(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function c1(e){"@babel/helpers - typeof";return c1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c1(e)}function MJ(e){return RJ(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var IJ={}.constructor;function RJ(e){return c1(e)!==void 0&&e!==null&&e.constructor===IJ}var si=60,im=60*si,ml=24*im,f1=7*ml,d1=30.44*ml,c8=146097/400*ml;function Bs(e){switch(e){case"second":return 1;case"minute":return si;case"hour":return im;case"day":return ml;case"week":return f1;case"month":return d1;case"year":return c8}}function f8(e){return e.factor!==void 0?e.factor:Bs(e.unit||e.formatAs)||1}function zf(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function H_(e){switch(e){case"floor":return 1;default:return .5}}function h1(e){"@babel/helpers - typeof";return h1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h1(e)}function d8(e,t){var n=t.prevStep,r=t.timestamp,a=t.now,i=t.future,o=t.round,l;return n&&(n.id||n.unit)&&(l=e["threshold_for_".concat(n.id||n.unit)]),l===void 0&&e.threshold!==void 0&&(l=e.threshold,typeof l=="function"&&(l=l(a,i))),l===void 0&&(l=e.minTime),h1(l)==="object"&&(n&&n.id&&l[n.id]!==void 0?l=l[n.id]:l=l.default),typeof l=="function"&&(l=l(r,{future:i,getMinTimeForUnit:function(u,c){return UC(u,c||n&&n.formatAs,{round:o})}})),l===void 0&&e.test&&(e.test(r,{now:a,future:i})?l=0:l=9007199254740991),l===void 0&&(n?e.formatAs&&n.formatAs&&(l=UC(e.formatAs,n.formatAs,{round:o})):l=0),l===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),l}function UC(e,t,n){var r=n.round,a=Bs(e),i;if(t==="now"?i=Bs(e):i=Bs(t),a!==void 0&&i!==void 0)return a-i*(1-H_(r))}function HC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $J(e){for(var t=1;t0)return e[o-1]}return l}}}function h8(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=d8(e[r],$J({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return a===void 0||Math.abs(t)=0:!0})}function FJ(e,t,n){var r=n.now,a=n.round;if(Bs(e)){var i=Bs(e)*1e3,o=t>r,l=Math.abs(t-r),s=zf(a)(l/i)*i;return o?s>0?l-s+BJ(a,i):l-s+1:-(l-s)+zJ(a,i)}}function zJ(e,t){return H_(e)*t}function BJ(e,t){return(1-H_(e))*t+1}var UJ=365*24*60*60*1e3,p8=1e3*UJ;function HJ(e,t,n){var r=n.prevStep,a=n.nextStep,i=n.now,o=n.future,l=n.round,s=e.getTime?e.getTime():e,u=function(p){return FJ(p,s,{now:i,round:l})},c=VJ(o?t:a,s,{future:o,now:i,round:l,prevStep:o?r:t});if(c!==void 0){var f;if(t&&(t.getTimeToNextUpdate&&(f=t.getTimeToNextUpdate(s,{getTimeToNextUpdateForUnit:u,getRoundFunction:zf,now:i,future:o,round:l})),f===void 0)){var d=t.unit||t.formatAs;d&&(f=u(d))}return f===void 0?c:Math.min(f,c)}}function WJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep,l=d8(e,{timestamp:t,now:r,future:a,round:i,prevStep:o});if(l!==void 0)return a?t-l*1e3+1:l===0&&t===r?p8:t+l*1e3}function VJ(e,t,n){var r=n.now,a=n.future,i=n.round,o=n.prevStep;if(e){var l=WJ(e,t,{now:r,future:a,round:i,prevStep:o});return l===void 0?void 0:l-r}else return a?t-r+1:p8}var m8={};function ks(e){return m8[e]}function g8(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");m8[e.locale]=e}const qJ=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],p1={steps:qJ,labels:"long"};function WC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function VC(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fZ(e,t){return pZ(e)||hZ(e,t)||b8(e,t)||dZ()}function dZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b8(e,t){if(e){if(typeof e=="string")return o6(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 o6(e,t)}}function o6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;mZ(this,e),typeof t=="string"&&(t=[t]),this.locale=TJ(t.concat(e.getDefaultLocale()),ks),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=Co,this.IntlPluralRules=Co.PluralRules),this.relativeTimeFormatCache=new zC,this.pluralRulesCache=new zC}return gZ(e,[{key:"format",value:function(n,r,a){a||(r&&!xZ(r)?(a=r,r=void 0):a={}),r||(r=m1),typeof r=="string"&&(r=uZ(r));var i=vZ(n),o=this.getLabels(r.flavour||r.labels),l=o.labels,s=o.labelsType,u;r.now!==void 0&&(u=r.now),u===void 0&&a.now!==void 0&&(u=a.now),u===void 0&&(u=Date.now());var c=(u-i)/1e3,f=a.future||c<0,d=_Z(l,ks(this.locale).now,ks(this.locale).long,f);if(r.custom){var h=r.custom({now:u,date:new Date(i),time:i,elapsed:c,locale:this.locale});if(h!==void 0)return h}var p=bZ(r.units,l,d),g=a.round||r.round,b=jJ(r.gradation||r.steps||m1.steps,c,{now:u,units:p,round:g,future:f,getNextStep:!0}),m=fZ(b,3),v=m[0],_=m[1],x=m[2],O=this.formatDateForStep(i,_,c,{labels:l,labelsType:s,nowLabel:d,now:u,future:f,round:g})||"";if(a.getTimeToNextUpdate){var S=HJ(i,_,{nextStep:x,prevStep:v,now:u,future:f,round:g});return[O,S]}return O}},{key:"formatDateForStep",value:function(n,r,a,i){var o=this,l=i.labels,s=i.labelsType,u=i.nowLabel,c=i.now,f=i.future,d=i.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(m,v){return o.formatValue(v,m,{labels:l,future:f})},now:c,future:f});var h=r.unit||r.formatAs;if(!h)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(h==="now")return u;var p=Math.abs(a)/f8(r);r.granularity&&(p=zf(d)(p/r.granularity)*r.granularity);var g=-1*Math.sign(a)*zf(d)(p);switch(g===0&&(f?g=0:g=-0),s){case"long":case"short":case"narrow":return this.getFormatter(s).format(g,h);default:return this.formatValue(g,h,{labels:l,future:f})}}}},{key:"formatValue",value:function(n,r,a){var i=a.labels,o=a.future;return this.getFormattingRule(i,r,n,{future:o}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,a,i){var o=i.future;if(this.locale,n=n[r],typeof n=="string")return n;var l=a===0?o?"future":"past":a<0?"past":"future",s=n[l]||n;if(typeof s=="string")return s;var u=this.getPluralRules().select(Math.abs(a));return s[u]||s.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(l){switch(l){case"tiny":case"mini-time":return"mini";default:return l}}),n=n.concat("long");for(var r=ks(this.locale),a=cZ(n),i;!(i=a()).done;){var o=i.value;if(r[o])return{labelsType:o,labels:r[o]}}}}]),e}(),_8="en";Fr.getDefaultLocale=function(){return _8};Fr.setDefaultLocale=function(e){return _8=e};Fr.addDefaultLocale=function(e){if(s6)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");s6=!0,Fr.setDefaultLocale(e.locale),Fr.addLocale(e)};var s6;Fr.addLocale=function(e){g8(e),Co.addLocale(e)};Fr.locale=Fr.addLocale;Fr.addLabels=function(e,t,n){var r=ks(e);r||(g8({locale:e}),r=ks(e)),r[t]=n};function vZ(e){if(e.constructor===Date||yZ(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(om(e),", ").concat(e))}function yZ(e){return om(e)==="object"&&typeof e.getTime=="function"}function bZ(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(a){return a==="now"||r.indexOf(a)>=0})),r}function _Z(e,t,n,r){var a=e.now||t&&t.now;if(a)return typeof a=="string"?a:r?a.future:a.past;if(n&&n.second&&n.second.current)return n.second.current}function xZ(e){return typeof e=="string"||MJ(e)}const wZ={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};var x8={exports:{}},ft={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var sn=typeof Symbol=="function"&&Symbol.for,W_=sn?Symbol.for("react.element"):60103,V_=sn?Symbol.for("react.portal"):60106,r0=sn?Symbol.for("react.fragment"):60107,a0=sn?Symbol.for("react.strict_mode"):60108,i0=sn?Symbol.for("react.profiler"):60114,o0=sn?Symbol.for("react.provider"):60109,l0=sn?Symbol.for("react.context"):60110,q_=sn?Symbol.for("react.async_mode"):60111,s0=sn?Symbol.for("react.concurrent_mode"):60111,u0=sn?Symbol.for("react.forward_ref"):60112,c0=sn?Symbol.for("react.suspense"):60113,SZ=sn?Symbol.for("react.suspense_list"):60120,f0=sn?Symbol.for("react.memo"):60115,d0=sn?Symbol.for("react.lazy"):60116,OZ=sn?Symbol.for("react.block"):60121,CZ=sn?Symbol.for("react.fundamental"):60117,EZ=sn?Symbol.for("react.responder"):60118,kZ=sn?Symbol.for("react.scope"):60119;function br(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case W_:switch(e=e.type,e){case q_:case s0:case r0:case i0:case a0:case c0:return e;default:switch(e=e&&e.$$typeof,e){case l0:case u0:case d0:case f0:case o0:return e;default:return t}}case V_:return t}}}function S8(e){return br(e)===s0}ft.AsyncMode=q_;ft.ConcurrentMode=s0;ft.ContextConsumer=l0;ft.ContextProvider=o0;ft.Element=W_;ft.ForwardRef=u0;ft.Fragment=r0;ft.Lazy=d0;ft.Memo=f0;ft.Portal=V_;ft.Profiler=i0;ft.StrictMode=a0;ft.Suspense=c0;ft.isAsyncMode=function(e){return S8(e)||br(e)===q_};ft.isConcurrentMode=S8;ft.isContextConsumer=function(e){return br(e)===l0};ft.isContextProvider=function(e){return br(e)===o0};ft.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===W_};ft.isForwardRef=function(e){return br(e)===u0};ft.isFragment=function(e){return br(e)===r0};ft.isLazy=function(e){return br(e)===d0};ft.isMemo=function(e){return br(e)===f0};ft.isPortal=function(e){return br(e)===V_};ft.isProfiler=function(e){return br(e)===i0};ft.isStrictMode=function(e){return br(e)===a0};ft.isSuspense=function(e){return br(e)===c0};ft.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===r0||e===s0||e===i0||e===a0||e===c0||e===SZ||typeof e=="object"&&e!==null&&(e.$$typeof===d0||e.$$typeof===f0||e.$$typeof===o0||e.$$typeof===l0||e.$$typeof===u0||e.$$typeof===CZ||e.$$typeof===EZ||e.$$typeof===kZ||e.$$typeof===OZ)};ft.typeOf=br;w8.exports=ft;var PZ=w8.exports,G_=PZ,TZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O8={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},K_={};K_[G_.ForwardRef]=MZ;K_[G_.Memo]=O8;function c6(e){return G_.isMemo(e)?O8:K_[e.$$typeof]||TZ}var IZ=Object.defineProperty,RZ=Object.getOwnPropertyNames,f6=Object.getOwnPropertySymbols,$Z=Object.getOwnPropertyDescriptor,LZ=Object.getPrototypeOf,d6=Object.prototype;function C8(e,t,n){if(typeof t!="string"){if(d6){var r=LZ(t);r&&r!==d6&&C8(e,r,n)}var a=RZ(t);f6&&(a=a.concat(f6(t)));for(var i=c6(e),o=c6(t),l=0;l2?t[2]:void 0;for(a&&Pee(t[0],t[1],a)&&(r=1);++n+e;function $ee(e){return e*e}function Lee(e){return e*(2-e)}function y6(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function jee(e){return e*e*e}function Dee(e){return--e*e*e+1}function b6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var X_=3,Nee=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(X_),Fee=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(X_),_6=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}(X_),I8=Math.PI,R8=I8/2;function zee(e){return+e==1?1:1-Math.cos(e*R8)}function Bee(e){return Math.sin(e*R8)}function x6(e){return(1-Math.cos(I8*e))/2}function Eo(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Uee(e){return Eo(1-+e)}function Hee(e){return 1-Eo(e)}function w6(e){return((e*=2)<=1?Eo(1-e):2-Eo(e-1))/2}function Wee(e){return 1-Math.sqrt(1-e*e)}function Vee(e){return Math.sqrt(1- --e*e)}function S6(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var S1=4/11,qee=6/11,Gee=8/11,Kee=3/4,Xee=9/11,Yee=10/11,Qee=15/16,Jee=21/22,Zee=63/64,Sh=1/S1/S1;function ete(e){return 1-Uf(1-e)}function Uf(e){return(e=+e)l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&one?new nne:void 0;for(i.set(e,t),i.set(t,e);++ft||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var Nae=Dae,qv=Z_,Fae=p0,zae=Ld,Bae=Mae,Uae=Rae,Hae=Zg,Wae=Nae,Vae=Md,qae=er;function Gae(e,t,n){t.length?t=qv(t,function(i){return qae(i)?function(o){return Fae(o,i.length===1?i[0]:i)}:i}):t=[Vae];var r=-1;t=qv(t,Hae(zae));var a=Bae(e,function(i,o,l){var s=qv(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return Uae(a,function(i,o){return Wae(i,o,n)})}var Kae=Gae,Xae=Kae,U6=er;function Yae(e,t,n,r){return e==null?[]:(U6(t)||(t=t==null?[]:[t]),n=r?void 0:n,U6(n)||(n=n==null?[]:[n]),Xae(e,t,n))}var Qae=Yae;const m0=at(Qae);function ox(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function J8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jd(){}var Hf=.7,lm=1/Hf,Us="\\s*([+-]?\\d+)\\s*",Wf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",za="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jae=/^#([0-9a-f]{3,8})$/,Zae=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),eie=new RegExp(`^rgb\\(${za},${za},${za}\\)$`),tie=new RegExp(`^rgba\\(${Us},${Us},${Us},${Wf}\\)$`),nie=new RegExp(`^rgba\\(${za},${za},${za},${Wf}\\)$`),rie=new RegExp(`^hsl\\(${Wf},${za},${za}\\)$`),aie=new RegExp(`^hsla\\(${Wf},${za},${za},${Wf}\\)$`),H6={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};ox(jd,Vf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:W6,formatHex:W6,formatHex8:iie,formatHsl:oie,formatRgb:V6,toString:V6});function W6(){return this.rgb().formatHex()}function iie(){return this.rgb().formatHex8()}function oie(){return Z8(this).formatHsl()}function V6(){return this.rgb().formatRgb()}function Vf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Jae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?q6(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ch(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ch(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=Zae.exec(e))?new Kn(t[1],t[2],t[3],1):(t=eie.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tie.exec(e))?Ch(t[1],t[2],t[3],t[4]):(t=nie.exec(e))?Ch(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rie.exec(e))?X6(t[1],t[2]/100,t[3]/100,1):(t=aie.exec(e))?X6(t[1],t[2]/100,t[3]/100,t[4]):H6.hasOwnProperty(e)?q6(H6[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function q6(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Ch(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kn(e,t,n,r)}function lie(e){return e instanceof jd||(e=Vf(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function O1(e,t,n,r){return arguments.length===1?lie(e):new Kn(e,t,n,r??1)}function Kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ox(Kn,O1,J8(jd,{brighter(e){return e=e==null?lm:Math.pow(lm,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(gl(this.r),gl(this.g),gl(this.b),sm(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:G6,formatHex:G6,formatHex8:sie,formatRgb:K6,toString:K6}));function G6(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function sie(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function K6(){const e=sm(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function sm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function X6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new la(e,t,n,r)}function Z8(e){if(e instanceof la)return new la(e.h,e.s,e.l,e.opacity);if(e instanceof jd||(e=Vf(e)),!e)return new la;if(e instanceof la)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n0&&s<1?0:o,new la(o,l,s,e.opacity)}function uie(e,t,n,r){return arguments.length===1?Z8(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ox(la,uie,J8(jd,{brighter(e){return e=e==null?lm:Math.pow(lm,e),new la(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new la(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,a=2*n-r;return new Kn(Gv(e>=240?e-240:e+120,a,r),Gv(e,a,r),Gv(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new la(Y6(this.h),Eh(this.s),Eh(this.l),sm(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=sm(this.opacity);return`${e===1?"hsl(":"hsla("}${Y6(this.h)}, ${Eh(this.s)*100}%, ${Eh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Y6(e){return e=(e||0)%360,e<0?e+360:e}function Eh(e){return Math.max(0,Math.min(1,e||0))}function Gv(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 lx=e=>()=>e;function cie(e,t){return function(n){return e+n*t}}function fie(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 die(e){return(e=+e)==1?eI:function(t,n){return n-t?fie(t,n,e):lx(isNaN(t)?n:t)}}function eI(e,t){var n=t-e;return n?cie(e,n):lx(isNaN(e)?t:e)}const Q6=function e(t){var n=die(t);function r(a,i){var o=n((a=O1(a)).r,(i=O1(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=eI(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=l(c),a.b=s(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function hie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:um(r,a)})),n=Kv.lastIndex;return n2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,a=typeof t=="function"?t.apply(this,arguments):t;return Xa(r,a)(n)}}},rI=function(e,t){var n=function(u,c){return u===c||!cm(u)||!cm(c)?tI(u,c):typeof u=="function"||typeof c=="function"?nI(u,c):typeof u=="object"&&Zt(u)||typeof c=="object"&&Zt(c)?rI(u,c):Xa(u,c)},r=function(u){return Array.isArray(u)?m0(u,"key"):u},a={},i={},o=e,l=t,s;(o===null||typeof o!="object")&&(o={}),(l===null||typeof l!="object")&&(l={});for(s in l)s in o?a[s]=n(r(o[s]),r(l[s])):i[s]=l[s];return function(u){for(s in a)i[s]=a[s](u);return i}},wie=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Xa(n(e),n(t))},Sie=function(e,t){return e===t||!cm(e)||!cm(t)?tI(e,t):typeof e=="function"||typeof t=="function"?nI(e,t):Zt(e)||Zt(t)?rI(e,t):typeof e=="string"||typeof t=="string"?wie(e,t):Xa(e,t)},xu=0,Ac=0,pc=0,aI=1e3,fm,Mc,dm=0,Al=0,g0=0,qf=typeof performance=="object"&&performance.now?performance:Date,iI=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function hm(){return Al||(iI(Oie),Al=qf.now()+g0)}function Oie(){Al=0}function E1(){this._call=this._time=this._next=null}E1.prototype=oI.prototype={constructor:E1,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?hm():+n)+(t==null?0:+t),!this._next&&Mc!==this&&(Mc?Mc._next=this:fm=this,Mc=this),this._call=e,this._time=n,k1()},stop:function(){this._call&&(this._call=null,this._time=1/0,k1())}};function oI(e,t,n){var r=new E1;return r.restart(e,t,n),r}function Cie(){hm(),++xu;for(var e=fm,t;e;)(t=Al-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xu}function J6(){Al=(dm=qf.now())+g0,xu=Ac=0;try{Cie()}finally{xu=0,kie(),Al=0}}function Eie(){var e=qf.now(),t=e-dm;t>aI&&(g0-=t,dm=e)}function kie(){for(var e,t=fm,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:fm=n);Mc=e,k1(r)}function k1(e){if(!xu){Ac&&(Ac=clearTimeout(Ac));var t=e-Al;t>24?(e<1/0&&(Ac=setTimeout(J6,e-qf.now()-g0)),pc&&(pc=clearInterval(pc))):(pc||(dm=qf.now(),pc=setInterval(Eie,aI)),xu=1,iI(J6))}}function Pie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z6(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1){h({data:b.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),m.current&&p.unsubscribe(m.current),g.current.shift(),_();return}h({data:b.current(v(S)),animationInfo:{progress:S,animating:S<1}})}};return s(d.data,d.animationInfo)},Nie=N8,Fie=0;function zie(e){var t=++Fie;return Nie(e)+t}var Bie=zie;const y0=at(Bie);function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nE(e,t){for(var n=0;n"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 pm(e){return pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pm(e)}var sI=function(e){Wie(n,e);var t=Vie(n);function n(r){var a;return Uie(this,n),a=t.call(this,r),a.map=void 0,a.index=void 0,a.portalRegister=function(){return++a.index},a.portalUpdate=function(i,o){a.map[i]=o,a.forceUpdate()},a.portalDeregister=function(i){delete a.map[i],a.forceUpdate()},a.map={},a.index=1,a}return Hie(n,[{key:"getChildren",value:function(){var a=this;return Object.keys(this.map).map(function(i){var o=a.map[i];return o&&M.cloneElement(o,{key:i})})}},{key:"render",value:function(){return M.createElement("svg",this.props,this.getChildren())}}]),n}(M.Component);sI.displayName="Portal";var ux=M.createContext({});ux.displayName="PortalContext";var Xie=YM,Yie=h0,Qie=t0,rE=yr,Jie=$d;function Zie(e,t,n,r){if(!rE(e))return e;t=Yie(t,e);for(var a=-1,i=t.length,o=i-1,l=e;l!=null&&++a0&&n(l)?t>1?cI(l,t-1,n,r,a):hoe(a,l):r||(a[a.length]=l)}return a}var moe=cI,goe=moe;function voe(e){var t=e==null?0:e.length;return t?goe(e,1):[]}var yoe=voe,boe=yoe,_oe=e8,xoe=t8;function woe(e){return xoe(_oe(e,void 0,boe),e+"")}var Soe=woe,Ooe=soe,Coe=Soe,Eoe=Coe(function(e,t){return e==null?{}:Ooe(e,t)}),koe=Eoe;const Gf=at(koe);function Poe(e,t){var n=t!=="x",r=Wt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function Toe(e,t){if(t==="x"){var n=vt(e.startAngle||0),r=vt(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Ha(e)]}function fI(e){return Object.entries(e).reduce(function(t,n){return t[n[1]]=n[0],t},{})}function Uu(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 cx(e){var t=function(h){return h!==void 0},n=e._x,r=e._x1,a=e._x0,i=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(i)?i:c,x0:t(a)?a:n,y:t(u)?u:f,y0:t(s)?s:o};return me({},d,e)}function Dd(e,t){var n=e.scale,r=e.polar,a=e.horizontal,i=cx(t),o=e.origin||{x:0,y:0},l=a?n.y(i.y):n.x(i.x),s=a?n.y(i.y0):n.x(i.x0),u=a?n.x(i.x):n.y(i.y),c=a?n.x(i.x0):n.y(i.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 Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"padding",n=e[t],r=typeof n=="number"?n:0,a=typeof n=="object"?n:{};return{top:a.top||r,bottom:a.bottom||r,left:a.left||r,right:a.right||r}}function fx(e){var t=e&&e.type&&e.type.role;return t==="tooltip"}function dx(e,t){var n=e.theme,r=n===void 0?{}:n,a=e.labelComponent,i=r[t]&&r[t].style||{};if(!fx(a))return i;var o=r.tooltip&&r.tooltip.style||{},l=me({},o,i.labels);return me({},{labels:l},i)}function b0(e,t){var n="100%",r="100%";if(!e)return me({parent:{height:r,width:n}},t);var a=e.data,i=e.labels,o=e.parent,l=t&&t.parent||{},s=t&&t.labels||{},u=t&&t.data||{};return{parent:me({},o,l,{width:n,height:r}),labels:me({},i,s),data:me({},a,u)}}function le(e,t){return Xe(e)?e(t):e}function _t(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(function(n){return Xe(e[n])})?e:Object.keys(e).reduce(function(n,r){return n[r]=le(e[r],t),n},{})}function vt(e){return typeof e=="number"?e*(Math.PI/180):e}function bi(e){return typeof e=="number"?e/(Math.PI/180):e}function Ha(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-a-i)/2}function Nd(e){var t=e.width,n=e.height,r=Wt(e),a=r.top,i=r.bottom,o=r.left,l=r.right,s=Math.min(t-o-l,n-a-i)/2,u=t/2+o-l,c=n/2+a-i;return{x:u+s>t?s+o-l:u,y:c+s>n?s+a-i:c}}function ln(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?Toe(e,t):Poe(e,t)}function Wa(e){return e==null}function Xe(e){return typeof e=="function"}function _0(e){return Xe(e)?e:e==null?function(t){return t}:Y8(e)}function on(e,t,n){var r=e.theme&&e.theme[n]?e.theme[n]:{},a=Uu(r,["style"]),i=Aoe(e),o=i===void 0?{}:{horizontal:i};return me(o,e,a,t)}function dI(e,t){var n=e==="x"?"y":"x";return t?n:e}function hx(e,t,n){var r=t?e:0,a=t||e;a||(a=0);var i=a-r,o=Math.abs(i),l=i/o||1,s=n||1,u=Math.max(Math.ceil(o/s),0);return Array.from(Array(u),function(c,f){return r+f*l*s})}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(u,c){return u.concat(c)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],o=function(u,c,f){return u.reduce(function(d,h,p){var g=d,b=h.type&&h.type.role,m=h.props.name||"".concat(b,"-").concat(c[p]);if(h.props&&h.props.children){var v=Object.assign({},h.props,Gf(n,i)),_=h.type&&h.type.role==="stack"&&Xe(h.type.getChildren)?h.type.getChildren(v):M.Children.toArray(h.props.children).map(function(w){var C=Object.assign({},w.props,Gf(v,i));return M.cloneElement(w,C)}),x=_.map(function(w,C){return"".concat(m,"-").concat(C)}),O=o(_,x,h);g=a(g,O)}else{var S=t(h,m,f);S&&(g=a(g,S))}return g},r)},l=e.filter(y.isValidElement),s=l.map(function(u,c){return c});return o(l,s)}function Aoe(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;var t=function(n){return n.reduce(function(r,a){var i=a.props||{};return r||i.horizontal||!i.children?r||i.horizontal:t(M.Children.toArray(i.children))},!1)};return t(M.Children.toArray(e.children))}function oE(e,t){return $oe(e)||Roe(e,t)||Ioe(e,t)||Moe()}function Moe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ioe(e,t){if(e){if(typeof e=="string")return lE(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 lE(e,t)}}function lE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 gm(e){return gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gm(e)}var En=function(e){Hoe(n,e);var t=Woe(n);function n(r){var a;return Boe(this,n),a=t.call(this,r),a.containerId=void 0,a.portalRef=void 0,a.containerRef=void 0,a.shouldHandleWheel=void 0,a.savePortalRef=function(i){return a.portalRef=i,i},a.portalUpdate=function(i,o){return a.portalRef.portalUpdate(i,o)},a.portalRegister=function(){return a.portalRef.portalRegister()},a.portalDeregister=function(i){return a.portalRef.portalDeregister(i)},a.saveContainerRef=function(i){return Xe(a.props.containerRef)&&a.props.containerRef(i),a.containerRef=i,i},a.handleWheel=function(i){return i.preventDefault()},a.containerId=!Ff(r)||r.containerId===void 0?y0("victory-container-"):r.containerId,a.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),a}return Uoe(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(a){return"".concat(this.containerId,"-").concat(a)}},{key:"getChildren",value:function(a){return a.children}},{key:"getOUIAProps",value:function(a){var i=a.ouiaId,o=a.ouiaSafe,l=a.ouiaType;return as(as(as({},i&&{"data-ouia-component-id":i}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(a,i,o){var l=a.title,s=a.desc,u=a.portalComponent,c=a.className,f=a.width,d=a.height,h=a.portalZIndex,p=a.responsive,g=this.getChildren(a),b=p?{width:"100%",height:"100%"}:{width:f,height:d},m=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},b),v=Object.assign({zIndex:h,position:"absolute",top:0,left:0},b),_=Object.assign({pointerEvents:"all"},b),x=Object.assign({overflow:"visible"},b),O={width:f,height:d,viewBox:i.viewBox,preserveAspectRatio:i.preserveAspectRatio,style:x};return M.createElement(ux.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},M.createElement("div",mm({style:me({},o,m),className:c,ref:this.saveContainerRef},this.getOUIAProps(a)),M.createElement("svg",mm({},i,{style:_}),l?M.createElement("title",{id:this.getIdForElement("title")},l):null,s?M.createElement("desc",{id:this.getIdForElement("desc")},s):null,g),M.createElement("div",{style:v},M.cloneElement(u,as(as({},O),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var a=this.props,i=a.width,o=a.height,l=a.responsive,s=a.events,u=a.title,c=a.desc,f=a.tabIndex,d=a.preserveAspectRatio,h=a.role,p=l?this.props.style:Uu(this.props.style,["height","width"]),g=Ya(this.props),b=Object.assign(as({width:i,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(i," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},g),s);return this.renderContainer(this.props,b,p)}}]),n}(M.Component);En.displayName="VictoryContainer";En.role="container";En.defaultProps={className:"VictoryContainer",portalComponent:M.createElement(sI,null),portalZIndex:99,responsive:!0,role:"img"};En.contextType=v0;function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(e,t){for(var n=0;n"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 vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}var ko=function(e){Yoe(n,e);var t=Qoe(n);function n(){var r;Koe(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ile(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var x0=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=ale(e,tle),l=nle({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("rect",ym({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("rect",ym({},l,{ref:t}))}),ole=["children","desc","id","origin","tabIndex","title"];function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var fle=function(e){var t,n=e.children,r=e.desc,a=e.id;e.origin;var i=e.tabIndex,o=e.title,l=ule(e,ole),s=lle({id:(t=le(a,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(i,e)},l);return M.createElement("text",s,o&&M.createElement("title",null,o),r&&M.createElement("desc",null,r),n)},dle=["desc","id","tabIndex","origin"];function pE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vle=function(e){var t;e.desc;var n=e.id,r=e.tabIndex;e.origin;var a=mle(e,dle),i=hle({id:(t=le(n,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(r,e)},a);return M.createElement("tspan",i)};function yle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},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 ble(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style,r=e.horizontal,a=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"}function _le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function xle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.horizontal,r=e.style,a=r.labels||{},i=le(a.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*i:0,y:n?0:-1*o*i}}function wle(e,t){if(e.polar)return{};var n=xle(e,t);return{dx:n.x,dy:n.y}}function Sle(e,t){var n=e.polar,r=Dd(e,t),a=r.x,i=r.y;if(!n)return{x:a,y:i};var o=Ole(e,t);return{x:a+o.x,y:i+o.y}}function Ole(e,t){var n=e.style,r=Kf(e,t),a=n.labels||{},i=le(a.padding,e)||0,o=vt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}function mx(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,a=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||a}function Cle(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function vx(e,t){var n=mx(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function pI(e,t){var n=mx(e),r=Cle(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function yx(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var a=t!==void 0?t%360:Kf(e,r),i=a>90&&a<180||a>270?1:-1,o=0;a===0||a===180?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a);var l=n==="perpendicular"?0:90;return o+i*l}function Kf(e,t){var n=cx(t),r=n.x;return bi(e.scale.x(r))%360}function mI(e,t){var n=e.scale,r=e.data,a=e.style,i=e.horizontal,o=e.polar,l=e.width,s=e.height,u=e.theme,c=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=Kf(e,d),p=o?vx(e,h):ble(e,d),g=o?pI(e,h):yle(e,d),b=_le(e,d),m=gx(e,d,t),v=mx(e),_=Sle(e,d),x=_.x,O=_.y,S=wle(e,d),w=S.dx,C=S.dy,A={angle:b,data:r,datum:d,disableInlineStyles:f,horizontal:i,index:t,polar:o,scale:n,labelPlacement:v,text:m,textAnchor:p,verticalAnchor:g,x,y:O,dx:w,dy:C,width:l,height:s,style:a.labels};if(!fx(c))return A;var I=u&&u.tooltip||{};return me({},A,Uu(I,["style"]))}var M1=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0)return n.reduce(function(l,s){return[l,M1(s)].join(" ")},M1(e)).trim();if(e==null||typeof e=="string")return e;var a=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];a.push("".concat(i,"(").concat(o,")"))}return a.join(" ").trim()};function bx(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 Ele(e,t){return Tle(e)||Ple(e,t)||gI(e,t)||kle()}function kle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ple(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Tle(e){if(Array.isArray(e))return e}function Ale(e){return Rle(e)||Ile(e)||gI(e)||Mle()}function Mle(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gI(e,t){if(e){if(typeof e=="string")return I1(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 I1(e,t)}}function Ile(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rle(e){if(Array.isArray(e))return I1(e)}function I1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";return!r||n?Nle(e,t):Fle(e,t)}},Ml=function(e,t){return zle.impl(e,t)};function bE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _m(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},bI=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!Mt(t)||Array.isArray(n)&&!Mt(n)},qle=function(e,t){if(t.disableInlineStyles){var n=_t(e,t);return{fontSize:xE(n)}}var r=function(a){var i=_t(a?me({},a,vl):vl,t);return Object.assign({},i,{fontSize:xE(i)})};return Array.isArray(e)&&!Mt(e)?e.map(function(a){return r(a)}):r(e)},Gle=function(e,t){if(e)return Array.isArray(e)&&!Mt(e)?e.map(function(n){return _t(n,t)}):_t(e,t)},Kle=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(function(n){var r=le(n,e);return Wt({padding:r})});var t=le(e.backgroundPadding,e);return Wt({padding:t})},Xle=function(e){var t=le(e.lineHeight,e);return Array.isArray(t)&&Mt(t)?[1]:t},Yle=function(e,t){if(e!=null){if(Array.isArray(e))return e.map(function(r){return le(r,t)});var n=le(e,t);if(n!=null)return Array.isArray(n)?n:"".concat(n).split(` -`)}},Qle=function(e,t,n){var r=e.dy?le(e.dy,e):0,a=e.inline?1:e.text.length,i=le(e.capHeight,e),o=t?le(t,e):"middle",l=ef(Array(a).keys()).map(function(c){return $n(e.style,c).fontSize}),s=ef(Array(a).keys()).map(function(c){return $n(n,c)});if(o==="start")return r+(i/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(i/2-s[0]/2)*l[0]:r+i/2*l[0];if(a===1)return o==="end"?r+(i/2+(.5-a)*s[0])*l[0]:r+(i/2+(.5-a/2)*s[0])*l[0];var u=ef(Array(a).keys()).reduce(function(c,f){return c+(i/2+(.5-a)*s[f])*l[f]/a},0);return o==="end"?r+u:r+u/2+i/2*s[a-1]*l[a-1]},Jle=function(e,t,n){var r=e.polar,a=$n(e.style),i=r?yx(e):0,o=a.angle===void 0?le(e.angle,e):a.angle,l=o===void 0?i:o,s=e.transform||a.transform,u=s&&le(s,e),c=l&&{rotate:[l,t,n]};return u||l?M1(u,c):void 0},_I=function(e,t){var n=e.direction,r=e.textAnchor,a=e.x,i=e.dx;if(n==="rtl")return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:return a+(i||0)}},xI=function(e,t){var n=e.verticalAnchor,r=e.y,a=e.originalDy,i=a===void 0?0:a,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},Zle=function(e,t){var n=e.dx,r=n===void 0?0:n,a=e.transform,i=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,u=e.capHeight,c=t.map(function(b){return b.textSize}),f=l?Math.max.apply(Math,ef(c.map(function(b){return b.height}))):c.reduce(function(b,m,v){var _=v?0:u/2;return b+m.height*(t[v].lineHeight-_)},0),d=l?c.reduce(function(b,m,v){var _=v?r:0;return b+m.width+_},0):Math.max.apply(Math,ef(c.map(function(b){return b.width}))),h=_I(e,d),p=xI(e,f),g={key:"background",height:f+s.top+s.bottom,style:o,transform:a,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:p};return M.cloneElement(i,me({},i.props,g))},ese=function(e,t,n){var r=e.textAnchor,a=t.map(function(l){return l.widthWithPadding}),i=a.reduce(function(l,s){return l+s},0),o=-i/2;switch(r){case"start":return a.reduce(function(l,s,u){return un?l-s:l},0);default:return a.reduce(function(l,s,u){var c=ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}function wm(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function Po(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function hse(e){return wI(e)&&e.every(function(t){return typeof t=="string"})}function Sm(e,t){return e&&t?e.filter(function(n){return!t.includes(n)}):[]}function wE(e){return wI(e)&&e.every(Array.isArray)}function SI(e){return e.filter(function(t){return t!==void 0})}function pa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"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 Om(e){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Om(e)}var wx=function(e){Pse(n,e);var t=Tse(n);function n(r,a){var i;Ese(this,n),i=t.call(this,r,a),i.continuous=void 0,i.timer=void 0,i.transitionProps=void 0,i.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=i.props.children,l=o.props.polar;return i.continuous=!l&&o.type&&o.type.continuous===!0,i.timer=i.context.transitionTimer,i}return kse(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(a){var i=this;return Ba(this.props,a)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,a),function(){return i.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(a,i){var o=a.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?a:null;return{oldProps:s,nextProps:i}}}else return{};var u=M.Children.toArray(a.children),c=M.Children.toArray(i.children),f=CI(u,c),d=f.nodesWillExit,h=f.nodesWillEnter,p=f.childrenTransitions,g=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:p,nodesShouldEnter:g,oldProps:d?a:null,nextProps:i}}},{key:"getDomainFromChildren",value:function(a,i){var o=function(f){return f.reduce(function(d,h){if(h.type&&Xe(h.type.getDomain)){var p=h.props&&h.type.getDomain(h.props,i);return p?d.concat(p):d}else if(h.props&&h.props.children)return d.concat(o(M.Children.toArray(h.props.children)));return d},[])},l=M.Children.toArray(a.children)[0],s=l.props||{},u=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[i];if(!s.children&&u)return u;var c=o([l]);return c.length===0?[0,1]:[mr(c),pa(c)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(a){var i,o=(i=a.animate)===null||i===void 0?void 0:i.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||a:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||a}},{key:"getClipWidth",value:function(a,i){var o=function(){var s=ln(i.props,"x");return s?Math.abs(s[1]-s[0]):a.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var a,i=this,o=this.pickProps(),l=(a=this.props.animate)!==null&&a!==void 0&&a.getTransitions?this.props.animate.getTransitions:EI(o,this.state,function(b){return i.setState(b)}),s=M.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=me({domain:c,clipWidth:f},u,s.props),h=o.animationWhitelist||[],p=h.concat(["clipWidth"]),g=p.length?Gf(d,p):d;return M.createElement(Die,D1({},d.animate,{data:g}),function(b){if(s.props.groupComponent){var m=i.continuous?M.cloneElement(s.props.groupComponent,{clipWidth:b.clipWidth||0}):s.props.groupComponent;return M.cloneElement(s,me({animate:null,animating:!0,groupComponent:m},b,d))}return M.cloneElement(s,me({animate:null,animating:!0},b,d))})}}]),n}(M.Component);wx.displayName="VictoryTransition";wx.contextType=v0;var Rse=function(e){var t;return M.createElement("defs",null,M.createElement("clipPath",{id:(t=e.clipId)===null||t===void 0?void 0:t.toString()},e.children))},$se=["desc","id","tabIndex","origin"];function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nse(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var kI=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=Dse(e,$se),l=Lse({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("circle",Cm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("circle",Cm({},l,{ref:t}))});function kE(e){return Use(e)||Bse(e)||zse(e)||Fse()}function Fse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zse(e,t){if(e){if(typeof e=="string")return F1(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 F1(e,t)}}function Bse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Use(e){if(Array.isArray(e))return F1(e)}function F1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}var w0=function(e){qse(n,e);var t=Gse(n);function n(r){var a;return Wse(this,n),a=t.call(this,r),a.clipId=void 0,a.clipId=!Ff(r)||r.clipId===void 0?y0("victory-clip-"):r.clipId,a}return Vse(n,[{key:"calculateAttributes",value:function(a){var i=a.polar,o=a.origin,l=a.clipWidth,s=l===void 0?0:l,u=a.clipHeight,c=u===void 0?0:u,f=a.translateX,d=f===void 0?0:f,h=a.translateY,p=h===void 0?0:h,g=Wt({padding:a.clipPadding}),b=a.radius||Ha(a);return{x:(i?o.x:d)-g.left,y:(i?o.y:p)-g.top,width:Math.max((i?b:s)+g.left+g.right,0),height:Math.max((i?b:c)+g.top+g.bottom,0)}}},{key:"renderClippedGroup",value:function(a,i){var o=Ya(a),l=a.style,s=a.events,u=a.transform,c=a.children,f=a.className,d=a.groupComponent,h=a.tabIndex,p=this.renderClipComponent(a,i),g=Object.assign({className:f,style:l,transform:u,key:"clipped-group-".concat(i),clipPath:"url(#".concat(i,")")},s);return M.cloneElement(d,TE(TE({},g),{},{tabIndex:h},o),[p].concat(kE(M.Children.toArray(c))))}},{key:"renderGroup",value:function(a){var i=a.style,o=a.events,l=a.transform,s=a.children,u=a.className,c=a.groupComponent,f=a.tabIndex;return M.cloneElement(c,Object.assign({className:u,style:i,transform:l,"aria-label":a["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(a,i){var o=a.polar,l=a.origin,s=a.clipWidth,u=s===void 0?0:s,c=a.clipHeight,f=c===void 0?0:c,d=a.translateX,h=d===void 0?0:d,p=a.translateY,g=p===void 0?0:p,b=a.circleComponent,m=a.rectComponent,v=a.clipPathComponent,_=Wt({padding:a.clipPadding}),x=_.top,O=_.bottom,S=_.left,w=_.right,C;if(o){var A=a.radius||Ha(a),I={r:Math.max(A+S+w,A+x+O,0),cx:l.x-S,cy:l.y-x};C=M.cloneElement(b,I)}else{var P={x:h-S,y:g-x,width:Math.max(u+S+w,0),height:Math.max(f+x+O,0)};C=M.cloneElement(m,P)}return M.cloneElement(v,Object.assign({key:"clip-path-".concat(i)},a,{clipId:i}),C)}},{key:"getClipValue",value:function(a,i){var o={x:a.clipWidth,y:a.clipHeight};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(a,i){var o={x:a.translateX,y:a.translateY};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l?Math.min.apply(Math,kE(l)):void 0}},{key:"render",value:function(){var a=this.getClipValue(this.props,"y"),i=this.getClipValue(this.props,"x");if(i===void 0||a===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=me({},this.props,{clipHeight:a,clipWidth:i,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(M.Component);w0.displayName="VictoryClipContainer";w0.role="container";w0.defaultProps={circleComponent:M.createElement(kI,null),rectComponent:M.createElement(x0,null),clipPathComponent:M.createElement(Rse,null),groupComponent:M.createElement("g",null)};var Ic=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Tn="#252525",Yv="#969696",Qse="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",Jse="normal",Zse=14,nr={width:450,height:300,padding:50,colorScale:Ic},Kt={fontFamily:Qse,fontSize:Zse,letterSpacing:Jse,padding:10,fill:Tn,stroke:"transparent"},eue=Object.assign({textAnchor:"middle"},Kt),tue="round",nue="round",rue={area:Object.assign({style:{data:{fill:Tn},labels:Kt}},nr),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Tn,strokeWidth:1,strokeLinecap:tue,strokeLinejoin:nue},axisLabel:Object.assign({},eue,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Kt}},nr),bar:Object.assign({style:{data:{fill:Tn,padding:8,strokeWidth:0},labels:Kt}},nr),boxplot:Object.assign({style:{max:{padding:8,stroke:Tn,strokeWidth:1},maxLabels:Object.assign({},Kt,{padding:3}),median:{padding:8,stroke:Tn,strokeWidth:1},medianLabels:Object.assign({},Kt,{padding:3}),min:{padding:8,stroke:Tn,strokeWidth:1},minLabels:Object.assign({},Kt,{padding:3}),q1:{padding:8,fill:Yv},q1Labels:Object.assign({},Kt,{padding:3}),q3:{padding:8,fill:Yv},q3Labels:Object.assign({},Kt,{padding:3})},boxWidth:20},nr),candlestick:Object.assign({style:{data:{stroke:Tn,strokeWidth:1},labels:Object.assign({},Kt,{padding:5})},candleColors:{positive:"#ffffff",negative:Tn}},nr),chart:nr,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),group:Object.assign({colorScale:Ic},nr),histogram:Object.assign({style:{data:{fill:Yv,stroke:Tn,strokeWidth:2},labels:Kt}},nr),legend:{colorScale:Ic,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Kt,title:Object.assign({},Kt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Kt,{padding:20})},colorScale:Ic,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Tn,stroke:"transparent",strokeWidth:0},labels:Kt}},nr),stack:Object.assign({colorScale:Ic},nr),tooltip:{style:Object.assign({},Kt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Kt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},nr)},aue="#FFF59D",iue="#F4511E",oue="#DCE775",lue="#8BC34A",sue="#00796B",uue="#006064",Ph=[iue,aue,oue,lue,sue,uue],ME="#ECEFF1",IE="#90A4AE",Bn="#455A64",Th="#212121",cue="'Helvetica Neue', 'Helvetica', sans-serif",fue="normal",due=12,ri=8,zn={width:350,height:350,padding:50},Xt={fontFamily:cue,fontSize:due,letterSpacing:fue,padding:ri,fill:Bn,stroke:"transparent",strokeWidth:0},hue=Object.assign({textAnchor:"middle"},Xt),pue="10, 5",Qv="round",Jv="round",mue={area:Object.assign({style:{data:{fill:Th},labels:Xt}},zn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:IE,strokeWidth:2,strokeLinecap:Qv,strokeLinejoin:Jv},axisLabel:Object.assign({},hue,{padding:ri,stroke:"transparent"}),grid:{fill:"none",stroke:ME,strokeDasharray:pue,strokeLinecap:Qv,strokeLinejoin:Jv,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:IE,strokeWidth:1,strokeLinecap:Qv,strokeLinejoin:Jv},tickLabels:Object.assign({},Xt,{fill:Bn})}},zn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Bn,padding:ri,strokeWidth:0},labels:Xt}},zn),boxplot:Object.assign({style:{max:{padding:ri,stroke:Bn,strokeWidth:1},maxLabels:Object.assign({},Xt,{padding:3}),median:{padding:ri,stroke:Bn,strokeWidth:1},medianLabels:Object.assign({},Xt,{padding:3}),min:{padding:ri,stroke:Bn,strokeWidth:1},minLabels:Object.assign({},Xt,{padding:3}),q1:{padding:ri,fill:Bn},q1Labels:Object.assign({},Xt,{padding:3}),q3:{padding:ri,fill:Bn},q3Labels:Object.assign({},Xt,{padding:3})},boxWidth:20},zn),candlestick:Object.assign({style:{data:{stroke:Bn},labels:Object.assign({},Xt,{padding:5})},candleColors:{positive:"#ffffff",negative:Bn}},zn),chart:zn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),group:Object.assign({colorScale:Ph},zn),histogram:Object.assign({style:{data:{fill:Bn,stroke:Th,strokeWidth:2},labels:Xt}},zn),legend:{colorScale:Ph,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Xt,title:Object.assign({},Xt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),pie:Object.assign({colorScale:Ph,style:{data:{padding:ri,stroke:ME,strokeWidth:1},labels:Object.assign({},Xt,{padding:20})}},zn),scatter:Object.assign({style:{data:{fill:Bn,opacity:1,stroke:"transparent",strokeWidth:0},labels:Xt}},zn),stack:Object.assign({colorScale:Ph},zn),tooltip:{style:Object.assign({},Xt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Xt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},zn)},Di={grayscale:rue,material:mue},gue=["desc","id","tabIndex","origin"];function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ue(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Hl=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=bue(e,gue),l=vue({id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("path",km({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("path",km({},l,{ref:t}))});function $E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Due(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Nue=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=jue(e,Rue),l=$ue({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("line",Pm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("line",Pm({},l,{ref:t}))});function FE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t2?t[2]:void 0;for(a&&Pee(t[0],t[1],a)&&(r=1);++n+e;function $ee(e){return e*e}function Lee(e){return e*(2-e)}function v6(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function jee(e){return e*e*e}function Dee(e){return--e*e*e+1}function y6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var X_=3,Nee=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(X_),Fee=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(X_),b6=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}(X_),M8=Math.PI,I8=M8/2;function zee(e){return+e==1?1:1-Math.cos(e*I8)}function Bee(e){return Math.sin(e*I8)}function _6(e){return(1-Math.cos(M8*e))/2}function Eo(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Uee(e){return Eo(1-+e)}function Hee(e){return 1-Eo(e)}function x6(e){return((e*=2)<=1?Eo(1-e):2-Eo(e-1))/2}function Wee(e){return 1-Math.sqrt(1-e*e)}function Vee(e){return Math.sqrt(1- --e*e)}function w6(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var O1=4/11,qee=6/11,Gee=8/11,Kee=3/4,Xee=9/11,Yee=10/11,Qee=15/16,Jee=21/22,Zee=63/64,Sh=1/O1/O1;function ete(e){return 1-Uf(1-e)}function Uf(e){return(e=+e)l))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=n&one?new nne:void 0;for(i.set(e,t),i.set(t,e);++ft||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var Nae=Dae,Gv=Z_,Fae=m0,zae=Ld,Bae=Mae,Uae=Rae,Hae=e0,Wae=Nae,Vae=Md,qae=er;function Gae(e,t,n){t.length?t=Gv(t,function(i){return qae(i)?function(o){return Fae(o,i.length===1?i[0]:i)}:i}):t=[Vae];var r=-1;t=Gv(t,Hae(zae));var a=Bae(e,function(i,o,l){var s=Gv(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return Uae(a,function(i,o){return Wae(i,o,n)})}var Kae=Gae,Xae=Kae,B6=er;function Yae(e,t,n,r){return e==null?[]:(B6(t)||(t=t==null?[]:[t]),n=r?void 0:n,B6(n)||(n=n==null?[]:[n]),Xae(e,t,n))}var Qae=Yae;const g0=at(Qae);function ox(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Q8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jd(){}var Hf=.7,sm=1/Hf,Us="\\s*([+-]?\\d+)\\s*",Wf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",za="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jae=/^#([0-9a-f]{3,8})$/,Zae=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),eie=new RegExp(`^rgb\\(${za},${za},${za}\\)$`),tie=new RegExp(`^rgba\\(${Us},${Us},${Us},${Wf}\\)$`),nie=new RegExp(`^rgba\\(${za},${za},${za},${Wf}\\)$`),rie=new RegExp(`^hsl\\(${Wf},${za},${za}\\)$`),aie=new RegExp(`^hsla\\(${Wf},${za},${za},${Wf}\\)$`),U6={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};ox(jd,Vf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:H6,formatHex:H6,formatHex8:iie,formatHsl:oie,formatRgb:W6,toString:W6});function H6(){return this.rgb().formatHex()}function iie(){return this.rgb().formatHex8()}function oie(){return J8(this).formatHsl()}function W6(){return this.rgb().formatRgb()}function Vf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Jae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?V6(t):n===3?new Kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ch(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ch(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=Zae.exec(e))?new Kn(t[1],t[2],t[3],1):(t=eie.exec(e))?new Kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=tie.exec(e))?Ch(t[1],t[2],t[3],t[4]):(t=nie.exec(e))?Ch(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=rie.exec(e))?K6(t[1],t[2]/100,t[3]/100,1):(t=aie.exec(e))?K6(t[1],t[2]/100,t[3]/100,t[4]):U6.hasOwnProperty(e)?V6(U6[e]):e==="transparent"?new Kn(NaN,NaN,NaN,0):null}function V6(e){return new Kn(e>>16&255,e>>8&255,e&255,1)}function Ch(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kn(e,t,n,r)}function lie(e){return e instanceof jd||(e=Vf(e)),e?(e=e.rgb(),new Kn(e.r,e.g,e.b,e.opacity)):new Kn}function C1(e,t,n,r){return arguments.length===1?lie(e):new Kn(e,t,n,r??1)}function Kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ox(Kn,C1,Q8(jd,{brighter(e){return e=e==null?sm:Math.pow(sm,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new Kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kn(gl(this.r),gl(this.g),gl(this.b),um(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:q6,formatHex:q6,formatHex8:sie,formatRgb:G6,toString:G6}));function q6(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}`}function sie(){return`#${nl(this.r)}${nl(this.g)}${nl(this.b)}${nl((isNaN(this.opacity)?1:this.opacity)*255)}`}function G6(){const e=um(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function um(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function K6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new la(e,t,n,r)}function J8(e){if(e instanceof la)return new la(e.h,e.s,e.l,e.opacity);if(e instanceof jd||(e=Vf(e)),!e)return new la;if(e instanceof la)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n0&&s<1?0:o,new la(o,l,s,e.opacity)}function uie(e,t,n,r){return arguments.length===1?J8(e):new la(e,t,n,r??1)}function la(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ox(la,uie,Q8(jd,{brighter(e){return e=e==null?sm:Math.pow(sm,e),new la(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Hf:Math.pow(Hf,e),new la(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,a=2*n-r;return new Kn(Kv(e>=240?e-240:e+120,a,r),Kv(e,a,r),Kv(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new la(X6(this.h),Eh(this.s),Eh(this.l),um(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=um(this.opacity);return`${e===1?"hsl(":"hsla("}${X6(this.h)}, ${Eh(this.s)*100}%, ${Eh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function X6(e){return e=(e||0)%360,e<0?e+360:e}function Eh(e){return Math.max(0,Math.min(1,e||0))}function Kv(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 lx=e=>()=>e;function cie(e,t){return function(n){return e+n*t}}function fie(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 die(e){return(e=+e)==1?Z8:function(t,n){return n-t?fie(t,n,e):lx(isNaN(t)?n:t)}}function Z8(e,t){var n=t-e;return n?cie(e,n):lx(isNaN(e)?t:e)}const Y6=function e(t){var n=die(t);function r(a,i){var o=n((a=C1(a)).r,(i=C1(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=Z8(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=l(c),a.b=s(c),a.opacity=u(c),a+""}}return r.gamma=e,r}(1);function hie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;an&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:cm(r,a)})),n=Xv.lastIndex;return n2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,a=typeof t=="function"?t.apply(this,arguments):t;return Xa(r,a)(n)}}},nI=function(e,t){var n=function(u,c){return u===c||!fm(u)||!fm(c)?eI(u,c):typeof u=="function"||typeof c=="function"?tI(u,c):typeof u=="object"&&Zt(u)||typeof c=="object"&&Zt(c)?nI(u,c):Xa(u,c)},r=function(u){return Array.isArray(u)?g0(u,"key"):u},a={},i={},o=e,l=t,s;(o===null||typeof o!="object")&&(o={}),(l===null||typeof l!="object")&&(l={});for(s in l)s in o?a[s]=n(r(o[s]),r(l[s])):i[s]=l[s];return function(u){for(s in a)i[s]=a[s](u);return i}},wie=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Xa(n(e),n(t))},Sie=function(e,t){return e===t||!fm(e)||!fm(t)?eI(e,t):typeof e=="function"||typeof t=="function"?tI(e,t):Zt(e)||Zt(t)?nI(e,t):typeof e=="string"||typeof t=="string"?wie(e,t):Xa(e,t)},xu=0,Ac=0,pc=0,rI=1e3,dm,Mc,hm=0,Al=0,v0=0,qf=typeof performance=="object"&&performance.now?performance:Date,aI=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function pm(){return Al||(aI(Oie),Al=qf.now()+v0)}function Oie(){Al=0}function k1(){this._call=this._time=this._next=null}k1.prototype=iI.prototype={constructor:k1,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?pm():+n)+(t==null?0:+t),!this._next&&Mc!==this&&(Mc?Mc._next=this:dm=this,Mc=this),this._call=e,this._time=n,P1()},stop:function(){this._call&&(this._call=null,this._time=1/0,P1())}};function iI(e,t,n){var r=new k1;return r.restart(e,t,n),r}function Cie(){pm(),++xu;for(var e=dm,t;e;)(t=Al-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xu}function Q6(){Al=(hm=qf.now())+v0,xu=Ac=0;try{Cie()}finally{xu=0,kie(),Al=0}}function Eie(){var e=qf.now(),t=e-hm;t>rI&&(v0-=t,hm=e)}function kie(){for(var e,t=dm,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:dm=n);Mc=e,P1(r)}function P1(e){if(!xu){Ac&&(Ac=clearTimeout(Ac));var t=e-Al;t>24?(e<1/0&&(Ac=setTimeout(Q6,e-qf.now()-v0)),pc&&(pc=clearInterval(pc))):(pc||(hm=qf.now(),pc=setInterval(Eie,rI)),xu=1,aI(Q6))}}function Pie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J6(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1){h({data:b.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),m.current&&p.unsubscribe(m.current),g.current.shift(),_();return}h({data:b.current(v(S)),animationInfo:{progress:S,animating:S<1}})}};return s(d.data,d.animationInfo)},Nie=D8,Fie=0;function zie(e){var t=++Fie;return Nie(e)+t}var Bie=zie;const b0=at(Bie);function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tE(e,t){for(var n=0;n"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 mm(e){return mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mm(e)}var lI=function(e){Wie(n,e);var t=Vie(n);function n(r){var a;return Uie(this,n),a=t.call(this,r),a.map=void 0,a.index=void 0,a.portalRegister=function(){return++a.index},a.portalUpdate=function(i,o){a.map[i]=o,a.forceUpdate()},a.portalDeregister=function(i){delete a.map[i],a.forceUpdate()},a.map={},a.index=1,a}return Hie(n,[{key:"getChildren",value:function(){var a=this;return Object.keys(this.map).map(function(i){var o=a.map[i];return o&&M.cloneElement(o,{key:i})})}},{key:"render",value:function(){return M.createElement("svg",this.props,this.getChildren())}}]),n}(M.Component);lI.displayName="Portal";var ux=M.createContext({});ux.displayName="PortalContext";var Xie=XM,Yie=p0,Qie=n0,nE=yr,Jie=$d;function Zie(e,t,n,r){if(!nE(e))return e;t=Yie(t,e);for(var a=-1,i=t.length,o=i-1,l=e;l!=null&&++a0&&n(l)?t>1?uI(l,t-1,n,r,a):hoe(a,l):r||(a[a.length]=l)}return a}var moe=uI,goe=moe;function voe(e){var t=e==null?0:e.length;return t?goe(e,1):[]}var yoe=voe,boe=yoe,_oe=ZM,xoe=e8;function woe(e){return xoe(_oe(e,void 0,boe),e+"")}var Soe=woe,Ooe=soe,Coe=Soe,Eoe=Coe(function(e,t){return e==null?{}:Ooe(e,t)}),koe=Eoe;const Gf=at(koe);function Poe(e,t){var n=t!=="x",r=Wt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function Toe(e,t){if(t==="x"){var n=vt(e.startAngle||0),r=vt(e.endAngle||360);return[n,r]}return[e.innerRadius||0,Ha(e)]}function cI(e){return Object.entries(e).reduce(function(t,n){return t[n[1]]=n[0],t},{})}function Uu(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 cx(e){var t=function(h){return h!==void 0},n=e._x,r=e._x1,a=e._x0,i=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(i)?i:c,x0:t(a)?a:n,y:t(u)?u:f,y0:t(s)?s:o};return me({},d,e)}function Dd(e,t){var n=e.scale,r=e.polar,a=e.horizontal,i=cx(t),o=e.origin||{x:0,y:0},l=a?n.y(i.y):n.x(i.x),s=a?n.y(i.y0):n.x(i.x0),u=a?n.x(i.x):n.y(i.y),c=a?n.x(i.x0):n.y(i.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 Wt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"padding",n=e[t],r=typeof n=="number"?n:0,a=typeof n=="object"?n:{};return{top:a.top||r,bottom:a.bottom||r,left:a.left||r,right:a.right||r}}function fx(e){var t=e&&e.type&&e.type.role;return t==="tooltip"}function dx(e,t){var n=e.theme,r=n===void 0?{}:n,a=e.labelComponent,i=r[t]&&r[t].style||{};if(!fx(a))return i;var o=r.tooltip&&r.tooltip.style||{},l=me({},o,i.labels);return me({},{labels:l},i)}function _0(e,t){var n="100%",r="100%";if(!e)return me({parent:{height:r,width:n}},t);var a=e.data,i=e.labels,o=e.parent,l=t&&t.parent||{},s=t&&t.labels||{},u=t&&t.data||{};return{parent:me({},o,l,{width:n,height:r}),labels:me({},i,s),data:me({},a,u)}}function le(e,t){return Xe(e)?e(t):e}function _t(e,t){return t.disableInlineStyles?{}:!e||!Object.keys(e).some(function(n){return Xe(e[n])})?e:Object.keys(e).reduce(function(n,r){return n[r]=le(e[r],t),n},{})}function vt(e){return typeof e=="number"?e*(Math.PI/180):e}function bi(e){return typeof e=="number"?e/(Math.PI/180):e}function Ha(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-a-i)/2}function Nd(e){var t=e.width,n=e.height,r=Wt(e),a=r.top,i=r.bottom,o=r.left,l=r.right,s=Math.min(t-o-l,n-a-i)/2,u=t/2+o-l,c=n/2+a-i;return{x:u+s>t?s+o-l:u,y:c+s>n?s+a-i:c}}function ln(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?Toe(e,t):Poe(e,t)}function Wa(e){return e==null}function Xe(e){return typeof e=="function"}function x0(e){return Xe(e)?e:e==null?function(t){return t}:X8(e)}function on(e,t,n){var r=e.theme&&e.theme[n]?e.theme[n]:{},a=Uu(r,["style"]),i=Aoe(e),o=i===void 0?{}:{horizontal:i};return me(o,e,a,t)}function fI(e,t){var n=e==="x"?"y":"x";return t?n:e}function hx(e,t,n){var r=t?e:0,a=t||e;a||(a=0);var i=a-r,o=Math.abs(i),l=i/o||1,s=n||1,u=Math.max(Math.ceil(o/s),0);return Array.from(Array(u),function(c,f){return r+f*l*s})}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(u,c){return u.concat(c)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],o=function(u,c,f){return u.reduce(function(d,h,p){var g=d,b=h.type&&h.type.role,m=h.props.name||"".concat(b,"-").concat(c[p]);if(h.props&&h.props.children){var v=Object.assign({},h.props,Gf(n,i)),_=h.type&&h.type.role==="stack"&&Xe(h.type.getChildren)?h.type.getChildren(v):M.Children.toArray(h.props.children).map(function(w){var C=Object.assign({},w.props,Gf(v,i));return M.cloneElement(w,C)}),x=_.map(function(w,C){return"".concat(m,"-").concat(C)}),O=o(_,x,h);g=a(g,O)}else{var S=t(h,m,f);S&&(g=a(g,S))}return g},r)},l=e.filter(y.isValidElement),s=l.map(function(u,c){return c});return o(l,s)}function Aoe(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;var t=function(n){return n.reduce(function(r,a){var i=a.props||{};return r||i.horizontal||!i.children?r||i.horizontal:t(M.Children.toArray(i.children))},!1)};return t(M.Children.toArray(e.children))}function iE(e,t){return $oe(e)||Roe(e,t)||Ioe(e,t)||Moe()}function Moe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ioe(e,t){if(e){if(typeof e=="string")return oE(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 oE(e,t)}}function oE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 vm(e){return vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vm(e)}var En=function(e){Hoe(n,e);var t=Woe(n);function n(r){var a;return Boe(this,n),a=t.call(this,r),a.containerId=void 0,a.portalRef=void 0,a.containerRef=void 0,a.shouldHandleWheel=void 0,a.savePortalRef=function(i){return a.portalRef=i,i},a.portalUpdate=function(i,o){return a.portalRef.portalUpdate(i,o)},a.portalRegister=function(){return a.portalRef.portalRegister()},a.portalDeregister=function(i){return a.portalRef.portalDeregister(i)},a.saveContainerRef=function(i){return Xe(a.props.containerRef)&&a.props.containerRef(i),a.containerRef=i,i},a.handleWheel=function(i){return i.preventDefault()},a.containerId=!Ff(r)||r.containerId===void 0?b0("victory-container-"):r.containerId,a.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),a}return Uoe(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(a){return"".concat(this.containerId,"-").concat(a)}},{key:"getChildren",value:function(a){return a.children}},{key:"getOUIAProps",value:function(a){var i=a.ouiaId,o=a.ouiaSafe,l=a.ouiaType;return as(as(as({},i&&{"data-ouia-component-id":i}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(a,i,o){var l=a.title,s=a.desc,u=a.portalComponent,c=a.className,f=a.width,d=a.height,h=a.portalZIndex,p=a.responsive,g=this.getChildren(a),b=p?{width:"100%",height:"100%"}:{width:f,height:d},m=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},b),v=Object.assign({zIndex:h,position:"absolute",top:0,left:0},b),_=Object.assign({pointerEvents:"all"},b),x=Object.assign({overflow:"visible"},b),O={width:f,height:d,viewBox:i.viewBox,preserveAspectRatio:i.preserveAspectRatio,style:x};return M.createElement(ux.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},M.createElement("div",gm({style:me({},o,m),className:c,ref:this.saveContainerRef},this.getOUIAProps(a)),M.createElement("svg",gm({},i,{style:_}),l?M.createElement("title",{id:this.getIdForElement("title")},l):null,s?M.createElement("desc",{id:this.getIdForElement("desc")},s):null,g),M.createElement("div",{style:v},M.cloneElement(u,as(as({},O),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var a=this.props,i=a.width,o=a.height,l=a.responsive,s=a.events,u=a.title,c=a.desc,f=a.tabIndex,d=a.preserveAspectRatio,h=a.role,p=l?this.props.style:Uu(this.props.style,["height","width"]),g=Ya(this.props),b=Object.assign(as({width:i,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(i," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},g),s);return this.renderContainer(this.props,b,p)}}]),n}(M.Component);En.displayName="VictoryContainer";En.role="container";En.defaultProps={className:"VictoryContainer",portalComponent:M.createElement(lI,null),portalZIndex:99,responsive:!0,role:"img"};En.contextType=y0;function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cE(e,t){for(var n=0;n"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 ym(e){return ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ym(e)}var ko=function(e){Yoe(n,e);var t=Qoe(n);function n(){var r;Koe(this,n);for(var a=arguments.length,i=new Array(a),o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ile(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var w0=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=ale(e,tle),l=nle({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("rect",bm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("rect",bm({},l,{ref:t}))}),ole=["children","desc","id","origin","tabIndex","title"];function dE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var fle=function(e){var t,n=e.children,r=e.desc,a=e.id;e.origin;var i=e.tabIndex,o=e.title,l=ule(e,ole),s=lle({id:(t=le(a,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(i,e)},l);return M.createElement("text",s,o&&M.createElement("title",null,o),r&&M.createElement("desc",null,r),n)},dle=["desc","id","tabIndex","origin"];function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hle(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gle(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var vle=function(e){var t;e.desc;var n=e.id,r=e.tabIndex;e.origin;var a=mle(e,dle),i=hle({id:(t=le(n,e))===null||t===void 0?void 0:t.toString(),tabIndex:le(r,e)},a);return M.createElement("tspan",i)};function yle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},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 ble(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style,r=e.horizontal,a=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?a>=0?"start":"end":"middle"}function _le(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function xle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.horizontal,r=e.style,a=r.labels||{},i=le(a.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*i:0,y:n?0:-1*o*i}}function wle(e,t){if(e.polar)return{};var n=xle(e,t);return{dx:n.x,dy:n.y}}function Sle(e,t){var n=e.polar,r=Dd(e,t),a=r.x,i=r.y;if(!n)return{x:a,y:i};var o=Ole(e,t);return{x:a+o.x,y:i+o.y}}function Ole(e,t){var n=e.style,r=Kf(e,t),a=n.labels||{},i=le(a.padding,e)||0,o=vt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}function mx(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,a=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||a}function Cle(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function gx(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function vx(e,t){var n=mx(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function hI(e,t){var n=mx(e),r=Cle(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function yx(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var a=t!==void 0?t%360:Kf(e,r),i=a>90&&a<180||a>270?1:-1,o=0;a===0||a===180?o=90:a>0&&a<180?o=90-a:a>180&&a<360&&(o=270-a);var l=n==="perpendicular"?0:90;return o+i*l}function Kf(e,t){var n=cx(t),r=n.x;return bi(e.scale.x(r))%360}function pI(e,t){var n=e.scale,r=e.data,a=e.style,i=e.horizontal,o=e.polar,l=e.width,s=e.height,u=e.theme,c=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=Kf(e,d),p=o?vx(e,h):ble(e,d),g=o?hI(e,h):yle(e,d),b=_le(e,d),m=gx(e,d,t),v=mx(e),_=Sle(e,d),x=_.x,O=_.y,S=wle(e,d),w=S.dx,C=S.dy,A={angle:b,data:r,datum:d,disableInlineStyles:f,horizontal:i,index:t,polar:o,scale:n,labelPlacement:v,text:m,textAnchor:p,verticalAnchor:g,x,y:O,dx:w,dy:C,width:l,height:s,style:a.labels};if(!fx(c))return A;var I=u&&u.tooltip||{};return me({},A,Uu(I,["style"]))}var I1=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0)return n.reduce(function(l,s){return[l,I1(s)].join(" ")},I1(e)).trim();if(e==null||typeof e=="string")return e;var a=[];for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];a.push("".concat(i,"(").concat(o,")"))}return a.join(" ").trim()};function bx(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 Ele(e,t){return Tle(e)||Ple(e,t)||mI(e,t)||kle()}function kle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ple(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Tle(e){if(Array.isArray(e))return e}function Ale(e){return Rle(e)||Ile(e)||mI(e)||Mle()}function Mle(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mI(e,t){if(e){if(typeof e=="string")return R1(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 R1(e,t)}}function Ile(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rle(e){if(Array.isArray(e))return R1(e)}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:!1,r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";return!r||n?Nle(e,t):Fle(e,t)}},Ml=function(e,t){return zle.impl(e,t)};function yE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xm(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},yI=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!Mt(t)||Array.isArray(n)&&!Mt(n)},qle=function(e,t){if(t.disableInlineStyles){var n=_t(e,t);return{fontSize:_E(n)}}var r=function(a){var i=_t(a?me({},a,vl):vl,t);return Object.assign({},i,{fontSize:_E(i)})};return Array.isArray(e)&&!Mt(e)?e.map(function(a){return r(a)}):r(e)},Gle=function(e,t){if(e)return Array.isArray(e)&&!Mt(e)?e.map(function(n){return _t(n,t)}):_t(e,t)},Kle=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(function(n){var r=le(n,e);return Wt({padding:r})});var t=le(e.backgroundPadding,e);return Wt({padding:t})},Xle=function(e){var t=le(e.lineHeight,e);return Array.isArray(t)&&Mt(t)?[1]:t},Yle=function(e,t){if(e!=null){if(Array.isArray(e))return e.map(function(r){return le(r,t)});var n=le(e,t);if(n!=null)return Array.isArray(n)?n:"".concat(n).split(` +`)}},Qle=function(e,t,n){var r=e.dy?le(e.dy,e):0,a=e.inline?1:e.text.length,i=le(e.capHeight,e),o=t?le(t,e):"middle",l=ef(Array(a).keys()).map(function(c){return $n(e.style,c).fontSize}),s=ef(Array(a).keys()).map(function(c){return $n(n,c)});if(o==="start")return r+(i/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(i/2-s[0]/2)*l[0]:r+i/2*l[0];if(a===1)return o==="end"?r+(i/2+(.5-a)*s[0])*l[0]:r+(i/2+(.5-a/2)*s[0])*l[0];var u=ef(Array(a).keys()).reduce(function(c,f){return c+(i/2+(.5-a)*s[f])*l[f]/a},0);return o==="end"?r+u:r+u/2+i/2*s[a-1]*l[a-1]},Jle=function(e,t,n){var r=e.polar,a=$n(e.style),i=r?yx(e):0,o=a.angle===void 0?le(e.angle,e):a.angle,l=o===void 0?i:o,s=e.transform||a.transform,u=s&&le(s,e),c=l&&{rotate:[l,t,n]};return u||l?I1(u,c):void 0},bI=function(e,t){var n=e.direction,r=e.textAnchor,a=e.x,i=e.dx;if(n==="rtl")return a-t;switch(r){case"middle":return Math.round(a-t/2);case"end":return Math.round(a-t);default:return a+(i||0)}},_I=function(e,t){var n=e.verticalAnchor,r=e.y,a=e.originalDy,i=a===void 0?0:a,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},Zle=function(e,t){var n=e.dx,r=n===void 0?0:n,a=e.transform,i=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,u=e.capHeight,c=t.map(function(b){return b.textSize}),f=l?Math.max.apply(Math,ef(c.map(function(b){return b.height}))):c.reduce(function(b,m,v){var _=v?0:u/2;return b+m.height*(t[v].lineHeight-_)},0),d=l?c.reduce(function(b,m,v){var _=v?r:0;return b+m.width+_},0):Math.max.apply(Math,ef(c.map(function(b){return b.width}))),h=bI(e,d),p=_I(e,f),g={key:"background",height:f+s.top+s.bottom,style:o,transform:a,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:p};return M.cloneElement(i,me({},i.props,g))},ese=function(e,t,n){var r=e.textAnchor,a=t.map(function(l){return l.widthWithPadding}),i=a.reduce(function(l,s){return l+s},0),o=-i/2;switch(r){case"start":return a.reduce(function(l,s,u){return un?l-s:l},0);default:return a.reduce(function(l,s,u){var c=ue.length)&&(t=e.length);for(var n=0,r=new Array(t);n0}function Sm(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function Po(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function hse(e){return xI(e)&&e.every(function(t){return typeof t=="string"})}function Om(e,t){return e&&t?e.filter(function(n){return!t.includes(n)}):[]}function xE(e){return xI(e)&&e.every(Array.isArray)}function wI(e){return e.filter(function(t){return t!==void 0})}function pa(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r"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 Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}var wx=function(e){Pse(n,e);var t=Tse(n);function n(r,a){var i;Ese(this,n),i=t.call(this,r,a),i.continuous=void 0,i.timer=void 0,i.transitionProps=void 0,i.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=i.props.children,l=o.props.polar;return i.continuous=!l&&o.type&&o.type.continuous===!0,i.timer=i.context.transitionTimer,i}return kse(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(a){var i=this;return Ba(this.props,a)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,a),function(){return i.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(a,i){var o=a.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?a:null;return{oldProps:s,nextProps:i}}}else return{};var u=M.Children.toArray(a.children),c=M.Children.toArray(i.children),f=OI(u,c),d=f.nodesWillExit,h=f.nodesWillEnter,p=f.childrenTransitions,g=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:p,nodesShouldEnter:g,oldProps:d?a:null,nextProps:i}}},{key:"getDomainFromChildren",value:function(a,i){var o=function(f){return f.reduce(function(d,h){if(h.type&&Xe(h.type.getDomain)){var p=h.props&&h.type.getDomain(h.props,i);return p?d.concat(p):d}else if(h.props&&h.props.children)return d.concat(o(M.Children.toArray(h.props.children)));return d},[])},l=M.Children.toArray(a.children)[0],s=l.props||{},u=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[i];if(!s.children&&u)return u;var c=o([l]);return c.length===0?[0,1]:[mr(c),pa(c)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(a){var i,o=(i=a.animate)===null||i===void 0?void 0:i.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||a:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||a}},{key:"getClipWidth",value:function(a,i){var o=function(){var s=ln(i.props,"x");return s?Math.abs(s[1]-s[0]):a.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var a,i=this,o=this.pickProps(),l=(a=this.props.animate)!==null&&a!==void 0&&a.getTransitions?this.props.animate.getTransitions:CI(o,this.state,function(b){return i.setState(b)}),s=M.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=me({domain:c,clipWidth:f},u,s.props),h=o.animationWhitelist||[],p=h.concat(["clipWidth"]),g=p.length?Gf(d,p):d;return M.createElement(Die,N1({},d.animate,{data:g}),function(b){if(s.props.groupComponent){var m=i.continuous?M.cloneElement(s.props.groupComponent,{clipWidth:b.clipWidth||0}):s.props.groupComponent;return M.cloneElement(s,me({animate:null,animating:!0,groupComponent:m},b,d))}return M.cloneElement(s,me({animate:null,animating:!0},b,d))})}}]),n}(M.Component);wx.displayName="VictoryTransition";wx.contextType=y0;var Rse=function(e){var t;return M.createElement("defs",null,M.createElement("clipPath",{id:(t=e.clipId)===null||t===void 0?void 0:t.toString()},e.children))},$se=["desc","id","tabIndex","origin"];function Em(){return Em=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nse(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var EI=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=Dse(e,$se),l=Lse({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("circle",Em({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("circle",Em({},l,{ref:t}))});function EE(e){return Use(e)||Bse(e)||zse(e)||Fse()}function Fse(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zse(e,t){if(e){if(typeof e=="string")return z1(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 z1(e,t)}}function Bse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Use(e){if(Array.isArray(e))return z1(e)}function z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 km(e){return km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},km(e)}var S0=function(e){qse(n,e);var t=Gse(n);function n(r){var a;return Wse(this,n),a=t.call(this,r),a.clipId=void 0,a.clipId=!Ff(r)||r.clipId===void 0?b0("victory-clip-"):r.clipId,a}return Vse(n,[{key:"calculateAttributes",value:function(a){var i=a.polar,o=a.origin,l=a.clipWidth,s=l===void 0?0:l,u=a.clipHeight,c=u===void 0?0:u,f=a.translateX,d=f===void 0?0:f,h=a.translateY,p=h===void 0?0:h,g=Wt({padding:a.clipPadding}),b=a.radius||Ha(a);return{x:(i?o.x:d)-g.left,y:(i?o.y:p)-g.top,width:Math.max((i?b:s)+g.left+g.right,0),height:Math.max((i?b:c)+g.top+g.bottom,0)}}},{key:"renderClippedGroup",value:function(a,i){var o=Ya(a),l=a.style,s=a.events,u=a.transform,c=a.children,f=a.className,d=a.groupComponent,h=a.tabIndex,p=this.renderClipComponent(a,i),g=Object.assign({className:f,style:l,transform:u,key:"clipped-group-".concat(i),clipPath:"url(#".concat(i,")")},s);return M.cloneElement(d,PE(PE({},g),{},{tabIndex:h},o),[p].concat(EE(M.Children.toArray(c))))}},{key:"renderGroup",value:function(a){var i=a.style,o=a.events,l=a.transform,s=a.children,u=a.className,c=a.groupComponent,f=a.tabIndex;return M.cloneElement(c,Object.assign({className:u,style:i,transform:l,"aria-label":a["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(a,i){var o=a.polar,l=a.origin,s=a.clipWidth,u=s===void 0?0:s,c=a.clipHeight,f=c===void 0?0:c,d=a.translateX,h=d===void 0?0:d,p=a.translateY,g=p===void 0?0:p,b=a.circleComponent,m=a.rectComponent,v=a.clipPathComponent,_=Wt({padding:a.clipPadding}),x=_.top,O=_.bottom,S=_.left,w=_.right,C;if(o){var A=a.radius||Ha(a),I={r:Math.max(A+S+w,A+x+O,0),cx:l.x-S,cy:l.y-x};C=M.cloneElement(b,I)}else{var P={x:h-S,y:g-x,width:Math.max(u+S+w,0),height:Math.max(f+x+O,0)};C=M.cloneElement(m,P)}return M.cloneElement(v,Object.assign({key:"clip-path-".concat(i)},a,{clipId:i}),C)}},{key:"getClipValue",value:function(a,i){var o={x:a.clipWidth,y:a.clipHeight};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(a,i){var o={x:a.translateX,y:a.translateY};if(o[i]!==void 0)return o[i];var l=ln(a,i);return l?Math.min.apply(Math,EE(l)):void 0}},{key:"render",value:function(){var a=this.getClipValue(this.props,"y"),i=this.getClipValue(this.props,"x");if(i===void 0||a===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=me({},this.props,{clipHeight:a,clipWidth:i,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(M.Component);S0.displayName="VictoryClipContainer";S0.role="container";S0.defaultProps={circleComponent:M.createElement(EI,null),rectComponent:M.createElement(w0,null),clipPathComponent:M.createElement(Rse,null),groupComponent:M.createElement("g",null)};var Ic=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Tn="#252525",Qv="#969696",Qse="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",Jse="normal",Zse=14,nr={width:450,height:300,padding:50,colorScale:Ic},Kt={fontFamily:Qse,fontSize:Zse,letterSpacing:Jse,padding:10,fill:Tn,stroke:"transparent"},eue=Object.assign({textAnchor:"middle"},Kt),tue="round",nue="round",rue={area:Object.assign({style:{data:{fill:Tn},labels:Kt}},nr),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Tn,strokeWidth:1,strokeLinecap:tue,strokeLinejoin:nue},axisLabel:Object.assign({},eue,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Kt}},nr),bar:Object.assign({style:{data:{fill:Tn,padding:8,strokeWidth:0},labels:Kt}},nr),boxplot:Object.assign({style:{max:{padding:8,stroke:Tn,strokeWidth:1},maxLabels:Object.assign({},Kt,{padding:3}),median:{padding:8,stroke:Tn,strokeWidth:1},medianLabels:Object.assign({},Kt,{padding:3}),min:{padding:8,stroke:Tn,strokeWidth:1},minLabels:Object.assign({},Kt,{padding:3}),q1:{padding:8,fill:Qv},q1Labels:Object.assign({},Kt,{padding:3}),q3:{padding:8,fill:Qv},q3Labels:Object.assign({},Kt,{padding:3})},boxWidth:20},nr),candlestick:Object.assign({style:{data:{stroke:Tn,strokeWidth:1},labels:Object.assign({},Kt,{padding:5})},candleColors:{positive:"#ffffff",negative:Tn}},nr),chart:nr,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),group:Object.assign({colorScale:Ic},nr),histogram:Object.assign({style:{data:{fill:Qv,stroke:Tn,strokeWidth:2},labels:Kt}},nr),legend:{colorScale:Ic,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Kt,title:Object.assign({},Kt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Tn,strokeWidth:2},labels:Kt}},nr),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Kt,{padding:20})},colorScale:Ic,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Tn,stroke:"transparent",strokeWidth:0},labels:Kt}},nr),stack:Object.assign({colorScale:Ic},nr),tooltip:{style:Object.assign({},Kt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Kt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},nr)},aue="#FFF59D",iue="#F4511E",oue="#DCE775",lue="#8BC34A",sue="#00796B",uue="#006064",Ph=[iue,aue,oue,lue,sue,uue],AE="#ECEFF1",ME="#90A4AE",Bn="#455A64",Th="#212121",cue="'Helvetica Neue', 'Helvetica', sans-serif",fue="normal",due=12,ri=8,zn={width:350,height:350,padding:50},Xt={fontFamily:cue,fontSize:due,letterSpacing:fue,padding:ri,fill:Bn,stroke:"transparent",strokeWidth:0},hue=Object.assign({textAnchor:"middle"},Xt),pue="10, 5",Jv="round",Zv="round",mue={area:Object.assign({style:{data:{fill:Th},labels:Xt}},zn),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ME,strokeWidth:2,strokeLinecap:Jv,strokeLinejoin:Zv},axisLabel:Object.assign({},hue,{padding:ri,stroke:"transparent"}),grid:{fill:"none",stroke:AE,strokeDasharray:pue,strokeLinecap:Jv,strokeLinejoin:Zv,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ME,strokeWidth:1,strokeLinecap:Jv,strokeLinejoin:Zv},tickLabels:Object.assign({},Xt,{fill:Bn})}},zn),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Bn,padding:ri,strokeWidth:0},labels:Xt}},zn),boxplot:Object.assign({style:{max:{padding:ri,stroke:Bn,strokeWidth:1},maxLabels:Object.assign({},Xt,{padding:3}),median:{padding:ri,stroke:Bn,strokeWidth:1},medianLabels:Object.assign({},Xt,{padding:3}),min:{padding:ri,stroke:Bn,strokeWidth:1},minLabels:Object.assign({},Xt,{padding:3}),q1:{padding:ri,fill:Bn},q1Labels:Object.assign({},Xt,{padding:3}),q3:{padding:ri,fill:Bn},q3Labels:Object.assign({},Xt,{padding:3})},boxWidth:20},zn),candlestick:Object.assign({style:{data:{stroke:Bn},labels:Object.assign({},Xt,{padding:5})},candleColors:{positive:"#ffffff",negative:Bn}},zn),chart:zn,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),group:Object.assign({colorScale:Ph},zn),histogram:Object.assign({style:{data:{fill:Bn,stroke:Th,strokeWidth:2},labels:Xt}},zn),legend:{colorScale:Ph,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Xt,title:Object.assign({},Xt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Bn,strokeWidth:2},labels:Xt}},zn),pie:Object.assign({colorScale:Ph,style:{data:{padding:ri,stroke:AE,strokeWidth:1},labels:Object.assign({},Xt,{padding:20})}},zn),scatter:Object.assign({style:{data:{fill:Bn,opacity:1,stroke:"transparent",strokeWidth:0},labels:Xt}},zn),stack:Object.assign({colorScale:Ph},zn),tooltip:{style:Object.assign({},Xt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Xt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Th,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},zn)},Di={grayscale:rue,material:mue},gue=["desc","id","tabIndex","origin"];function Pm(){return Pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ue(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Hl=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=bue(e,gue),l=vue({id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("path",Pm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("path",Pm({},l,{ref:t}))});function RE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ah(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Due(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}var Nue=y.forwardRef(function(e,t){var n,r=e.desc,a=e.id,i=e.tabIndex;e.origin;var o=jue(e,Rue),l=$ue({vectorEffect:"non-scaling-stroke",id:(n=le(a,e))===null||n===void 0?void 0:n.toString(),tabIndex:le(i,e)},o);return r?M.createElement("line",Tm({},l,{ref:t}),M.createElement("desc",null,r)):M.createElement("line",Tm({},l,{ref:t}))});function NE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ih(e){for(var t=1;t-1}var gce=mce;function vce(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=Ice){var u=t?null:Ace(e);if(u)return Mce(u);o=!1,a=Tce,s=new Ece}else s=t?[]:l;e:for(;++re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce(function(a,i){var o=n[i],l=jI(e,t[i],n[i],i);return a[i]=l||o,Tm(a,function(s){return!Mt(s)})},{})}function jI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,a=Object.keys(t);return a.reduce(function(i,o){var l=n[o]||{},s=t[o]||{};if(o==="parent"){var u={eventKey:o,target:"parent"},c=BE(e,s,l,u);i[o]=c!==void 0?Object.assign({},l,c):l}else{var f=Il(Object.keys(s).concat(Object.keys(l)));i[o]=f.reduce(function(d,h){var p={eventKey:o,target:h,childName:r},g=BE(e,s[h],l[h],p);return d[h]=g!==void 0?Object.assign({},l[h],g):l[h],Tm(d,function(b){return!Mt(b)})},{})}return Tm(i,function(d){return!Mt(d)})},{})}function BE(e,t,n,r){var a=function(s,u){if(typeof s[u]=="string")return s[u]==="all"||s[u]===r[u];if(Array.isArray(s[u])){var c=s[u].map(function(f){return"".concat(f)});return c.includes(r[u])}return!1},i=Array.isArray(e)?e:[e];r.childName&&(i=e.filter(function(s){return a(s,"childName")}));var o=i.filter(function(s){return a(s,"target")});if(!Mt(o)){var l=o.filter(function(s){return a(s,"eventKey")});if(!Mt(l))return l.reduce(function(s,u){var c=u&&Xe(u.mutation)?u.mutation:function(){},f=c(Object.assign({},t,n));return Object.assign({},s,f)},{})}}function Ox(e,t){var n=Array.isArray(t)&&t.reduce(function(r,a){var i=e[a],o=i&&i.type&&i.type.defaultEvents,l=Xe(o)?o(i.props):o;return Array.isArray(l)?r.concat.apply(r,MI(l)):r},[]);return n&&n.length?n:void 0}function Am(e){var t=e.match(Sx);return t&&t[1]&&t[1].toLowerCase()}var DI=function(e){return Tm(e,function(t,n){return Sx.test(n)})},NI=function(e){return AI(e,function(t,n){return Sx.test(n)})},FI=function(e){return Object.assign(e,{nativeEvent:e})};function Lh(e){return gfe(e)||mfe(e)||pfe(e)||hfe()}function hfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pfe(e,t){if(e){if(typeof e=="string")return U1(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 U1(e,t)}}function mfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gfe(e){if(Array.isArray(e))return U1(e)}function U1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(e)}var Sfe=function(e){return!Wa(e._x)&&!Wa(e._y)},Ofe=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(r){bfe(i,r);var a=_fe(i);function i(o){var l;return vfe(this,i),l=a.call(this,o),l.state={},l.getEventState=LI.bind(mp(l)),l.getScopedEvents=RI.bind(mp(l)),l.getEvents=function(s,u,c){return II.call(mp(l),s,u,c,l.getScopedEvents)},l.externalMutations=l.getExternalMutations(l.props),l.calculatedState=l.getStateChanges(l.props),l.globalEvents={},l.prevGlobalEventKeys=[],l.boundGlobalEvents={},l.cacheValues(l.getCalculatedValues(o)),l}return yfe(i,[{key:"shouldComponentUpdate",value:function(l){var s=this.getExternalMutations(l),u=this.props.animating||this.props.animate,c=!Ba(s,this.externalMutations);if(u||c)return this.cacheValues(this.getCalculatedValues(l)),this.externalMutations=s,this.applyExternalMutations(l,s),!0;var f=this.getStateChanges(l);return Ba(this.calculatedState,f)?Ba(this.props,l)?!1:(this.cacheValues(this.getCalculatedValues(l)),!0):(this.cacheValues(this.getCalculatedValues(l)),!0)}},{key:"componentDidMount",value:function(){var l=this,s=Object.keys(this.globalEvents);s.forEach(function(u){return l.addGlobalListener(u)}),this.prevGlobalEventKeys=s}},{key:"componentDidUpdate",value:function(l){var s=this,u=this.getStateChanges(l);this.calculatedState=u;var c=Object.keys(this.globalEvents),f=Sm(this.prevGlobalEventKeys,c);f.forEach(function(h){return s.removeGlobalListener(h)});var d=Sm(c,this.prevGlobalEventKeys);d.forEach(function(h){return s.addGlobalListener(h)}),this.prevGlobalEventKeys=c}},{key:"componentWillUnmount",value:function(){var l=this;this.prevGlobalEventKeys.forEach(function(s){return l.removeGlobalListener(s)})}},{key:"addGlobalListener",value:function(l){var s=this,u=function(c){var f=s.globalEvents[l];return f&&f(FI(c))};this.boundGlobalEvents[l]=u,window.addEventListener(Am(l),u)}},{key:"removeGlobalListener",value:function(l){window.removeEventListener(Am(l),this.boundGlobalEvents[l])}},{key:"getStateChanges",value:function(l){var s=this;if(!this.hasEvents)return{};var u=function(d,h){var p=me({},s.getEventState(d,h),s.getSharedEventState(d,h));return Mt(p)?void 0:p},c=t.components||Ofe,f=c.map(function(d){if(!(!l.standalone&&d.name==="parent"))return d.index!==void 0?u(d.index,d.name):s.dataKeys.map(function(h){return u(h,d.name)}).filter(Boolean)}).filter(Boolean);return f}},{key:"applyExternalMutations",value:function(l,s){if(!Mt(s)){var u=l.externalEventMutations.reduce(function(f,d){return Xe(d.callback)?f.concat(d.callback):f},[]),c=u.length?function(){u.forEach(function(f){return f()})}:void 0;this.setState(s,c)}}},{key:"getCalculatedValues",value:function(l){var s=l.sharedEvents,u=e.expectedComponents,c=Ox(l,u),f=s&&Xe(s.getEventState)?s.getEventState:function(){},d=this.getBaseProps(l,f),h=Object.keys(d).filter(function(b){return b!=="parent"}),p=l.events||l.sharedEvents||c,g=this.getAllEvents(l);return{componentEvents:c,getSharedEventState:f,baseProps:d,dataKeys:h,hasEvents:p,events:g}}},{key:"getExternalMutations",value:function(l){var s=l.sharedEvents,u=l.externalEventMutations;return Mt(u)||s?void 0:jI(u,this.baseProps,this.state)}},{key:"cacheValues",value:function(l){var s=this;Object.keys(l).forEach(function(u){s[u]=l[u]})}},{key:"getBaseProps",value:function(l,s){var u=s||this.getSharedEventState.bind(this),c=u("parent","parent"),f=this.getEventState("parent","parent"),d=me({},f,c),h=d.parentControlledProps,p=h?Gf(d,h):{},g=me({},p,l);return typeof e.getBaseProps=="function"?e.getBaseProps(g):{}}},{key:"getAllEvents",value:function(l){if(Array.isArray(this.componentEvents)){var s;return Array.isArray(l.events)?(s=this.componentEvents).concat.apply(s,Lh(l.events)):this.componentEvents}return l.events}},{key:"getComponentProps",value:function(l,s,u){var c=this.props.name||e.role,f=this.dataKeys&&this.dataKeys[u]||u,d="".concat(c,"-").concat(s,"-").concat(f),h=this.baseProps[f]&&this.baseProps[f][s]||this.baseProps[f];if(!(!h&&!this.hasEvents)){var p=l&&typeof l=="object"&&"props"in l?l.props:void 0;if(this.hasEvents){var g=this.getEvents(this.props,s,f),b=me({index:u,key:d},this.getEventState(f,s),this.getSharedEventState(f,s),p,h,{id:d}),m=me({},$I(g,f,b),b.events);return Object.assign({},b,{events:m})}return me({index:u,key:d},p,h,{id:d})}}},{key:"renderContainer",value:function(l,s){var u=l.type&&l.type.role==="container",c=u?this.getComponentProps(l,"parent","parent"):{};return c.events&&(this.globalEvents=DI(c.events),c.events=NI(c.events)),M.cloneElement(l,c,s)}},{key:"animateComponent",value:function(l,s){var u,c=typeof l.animate=="object"&&((u=l.animate)===null||u===void 0?void 0:u.animationWhitelist)||s,f=this.constructor;return M.createElement(wx,{animate:l.animate,animationWhitelist:c},M.createElement(f,l))}},{key:"renderContinuousData",value:function(l){var s=this,u=l.dataComponent,c=l.labelComponent,f=l.groupComponent,d=this.dataKeys.filter(function(b){return b!=="all"}),h=d.reduce(function(b,m){var v=b,_=s.getComponentProps(c,"labels",m);return _&&_.text!==void 0&&_.text!==null&&(v=v.concat(M.cloneElement(c,_))),v},[]),p=this.getComponentProps(u,"data","all"),g=[M.cloneElement(u,p)].concat(Lh(h));return this.renderContainer(f,g)}},{key:"renderData",value:function(l){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sfe,c=l.dataComponent,f=l.labelComponent,d=l.groupComponent,h=this.dataKeys.reduce(function(b,m,v){var _=s.getComponentProps(c,"data",v);return u(_.datum)&&b.push(M.cloneElement(c,_)),b},[]),p=this.dataKeys.map(function(b,m){var v=s.getComponentProps(f,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(f,v)}).filter(Boolean),g=[].concat(Lh(h),Lh(p));return this.renderContainer(d,g)}}]),i}(e);return n}var Cfe=jo,Efe=ji,kfe="[object Date]";function Pfe(e){return Efe(e)&&Cfe(e)==kfe}var Tfe=Pfe,Afe=Tfe,Mfe=Zg,HE=Ad,WE=HE&&HE.isDate,Ife=WE?Mfe(WE):Afe,Rfe=Ife;const zI=at(Rfe);var $fe=Fl;function Lfe(e,t){for(var n=-1,r=e.length,a=0,i=[];++nt?1:e>=t?0:NaN}function Kfe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cx(e){let t,n,r;e.length!==2?(t=_o,n=(l,s)=>_o(e(l),s),r=(l,s)=>e(l)-s):(t=e===_o||e===Kfe?e:Xfe,n=e,r=e);function a(l,s,u=0,c=l.length){if(u>>1;n(l[f],s)<0?u=f+1:c=f}while(u>>1;n(l[f],s)<=0?u=f+1:c=f}while(uu&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function Xfe(){return 0}function BI(e){return e===null?NaN:+e}function*Yfe(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 Qfe=Cx(_o),Fd=Qfe.right;Cx(BI).center;class VE extends Map{constructor(t,n=ede){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(qE(this,t))}has(t){return super.has(qE(this,t))}set(t,n){return super.set(Jfe(this,t),n)}delete(t){return super.delete(Zfe(this,t))}}function qE({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Jfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ede(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tde(e=_o){if(e===_o)return UI;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 UI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const nde=Math.sqrt(50),rde=Math.sqrt(10),ade=Math.sqrt(2);function Im(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=nde?10:i>=rde?5:i>=ade?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/ut&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*ut&&--s),s0))return[];if(e===t)return[e];const r=t=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function KE(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 a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function HI(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?UI:tde(a);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)),p=Math.min(r,Math.floor(t+(s-u)*f/s+d));HI(e,t,h,p,a)}const i=e[t];let o=n,l=r;for(mc(e,n,t),a(e[r],i)>0&&mc(e,n,r);o0;)--l}a(e[n],i)===0?mc(e,n,l):(++l,mc(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function mc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ide(e,t,n){if(e=Float64Array.from(Yfe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return KE(e);if(t>=1)return GE(e);var r,a=(r-1)*t,i=Math.floor(a),o=GE(HI(e,i).subarray(0,i+1)),l=KE(e.subarray(i+1));return o+(l-o)*(a-i)}}function ode(e,t,n=BI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function lde(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++rt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fde(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?dde:fde,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(a((u||(u=l(t,e.map(r),um)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Rm),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=sx,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ln,c()):o!==Ln},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,a=h,c()}}function Px(){return S0()(Ln,Ln)}function hde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $m(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 wu(e){return e=$m(Math.abs(e)),e?e[1]:NaN}function pde(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function mde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xf(e){if(!(t=gde.exec(e)))throw new Error("invalid format: "+e);var t;return new Tx({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]})}Xf.prototype=Tx.prototype;function Tx(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+""}Tx.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 vde(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var VI;function yde(e,t){var n=$m(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(VI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+$m(e,Math.max(0,t+i-1))[0]}function YE(e,t){var n=$m(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const QE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hde,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)=>YE(e*100,t),r:YE,s:yde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function JE(e){return e}var ZE=Array.prototype.map,e3=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bde(e){var t=e.grouping===void 0||e.thousands===void 0?JE:pde(ZE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?JE:mde(ZE.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=Xf(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,b=f.zero,m=f.width,v=f.comma,_=f.precision,x=f.trim,O=f.type;O==="n"?(v=!0,O="g"):QE[O]||(_===void 0&&(_=12),x=!0,O="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",w=g==="$"?r:/[%p]/.test(O)?o:"",C=QE[O],A=/[defgprs%]/.test(O);_=_===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function I(P){var T=S,E=w,L,N,U;if(O==="c")E=C(P)+E,P="";else{P=+P;var W=P<0||1/P<0;if(P=isNaN(P)?s:C(Math.abs(P),_),x&&(P=vde(P)),W&&+P==0&&p!=="+"&&(W=!1),T=(W?p==="("?p:l:p==="-"||p==="("?"":p)+T,E=(O==="s"?e3[8+VI/3]:"")+E+(W&&p==="("?")":""),A){for(L=-1,N=P.length;++LU||U>57){E=(U===46?a+P.slice(L+1):P.slice(L))+E,P=P.slice(0,L);break}}}v&&!b&&(P=t(P,1/0));var $=T.length+P.length+E.length,F=$>1)+T+P+E+F.slice($);break;default:P=F+T+P+E;break}return i(P)}return I.toString=function(){return f+""},I}function c(f,d){var h=u((f=Xf(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(wu(d)/3)))*3,g=Math.pow(10,-p),b=e3[8+p/3];return function(m){return h(g*m)+b}}return{format:u,formatPrefix:c}}var jh,Ax,qI;_de({thousands:",",grouping:[3],currency:["$",""]});function _de(e){return jh=bde(e),Ax=jh.format,qI=jh.formatPrefix,jh}function xde(e){return Math.max(0,-wu(Math.abs(e)))}function wde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wu(t)/3)))*3-wu(Math.abs(e)))}function Sde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wu(t)-wu(e))+1}function GI(e,t,n,r){var a=q1(e,t,n),i;switch(r=Xf(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=wde(a,o))&&(r.precision=i),qI(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Sde(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=xde(a))&&(r.precision=i-(r.type==="%")*2);break}}return Ax(r)}function Do(e){var t=e.domain;return e.ticks=function(n){var r=t();return W1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return GI(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,c=10;for(l0;){if(u=V1(o,l,n),u===s)return r[a]=o,r[i]=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 Mx(){var e=Px();return e.copy=function(){return zd(e,Mx())},qr.apply(e,arguments),Do(e)}function KI(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,Rm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return KI(e).unknown(t)},e=arguments.length?Array.from(e,Rm):[0,1],Do(n)}function XI(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Pde(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 r3(e){return(t,n)=>-e(-t,n)}function Ix(e){const t=e(t3,n3),n=t.domain;let r=10,a,i;function o(){return a=Pde(r),i=kde(r),n()[0]<0?(a=r3(a),i=r3(i),e(Ode,Cde)):e(t3,n3),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=c0){for(;d<=h;++d)for(p=1;pc)break;m.push(g)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(g=d>0?p/i(-d):p*i(d),!(gc)break;m.push(g)}m.length*2{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Xf(s)).precision==null&&(s.trim=!0),s=Ax(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*rn(XI(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function YI(){const e=Ix(S0()).domain([1,10]);return e.copy=()=>zd(e,YI()).base(e.base()),qr.apply(e,arguments),e}function a3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function i3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Rx(e){var t=1,n=e(a3(t),i3(t));return n.constant=function(r){return arguments.length?e(a3(t=+r),i3(t)):t},Do(n)}function QI(){var e=Rx(S0());return e.copy=function(){return zd(e,QI()).constant(e.constant())},qr.apply(e,arguments)}function o3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Tde(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ade(e){return e<0?-e*e:e*e}function $x(e){var t=e(Ln,Ln),n=1;function r(){return n===1?e(Ln,Ln):n===.5?e(Tde,Ade):e(o3(n),o3(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Do(t)}function Lx(){var e=$x(S0());return e.copy=function(){return zd(e,Lx()).exponent(e.exponent())},qr.apply(e,arguments),e}function Mde(){return Lx.apply(null,arguments).exponent(.5)}function l3(e){return Math.sign(e)*e*e}function Ide(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function JI(){var e=Px(),t=[0,1],n=!1,r;function a(i){var o=Ide(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(l3(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Rm)).map(l3)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return JI(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qr.apply(a,arguments),Do(a)}function ZI(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o0?n[l-1]:e[0],l=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return eR().domain([e,t]).range(a).unknown(i)},qr.apply(Do(o),arguments)}function tR(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Fd(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return tR().domain(e).range(t).unknown(n)},qr.apply(a,arguments)}const ey=new Date,ty=new Date;function en(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(uen(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ey.setTime(+i),ty.setTime(+o),e(ey),e(ty),Math.floor(n(ey,ty))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const Lm=en(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Lm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Lm);Lm.range;const hi=1e3,Lr=hi*60,pi=Lr*60,Ei=pi*24,jx=Ei*7,s3=Ei*30,ny=Ei*365,rl=en(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCSeconds());rl.range;const Dx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());Dx.range;const Nx=en(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());Nx.range;const Fx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getHours());Fx.range;const zx=en(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCHours());zx.range;const Bd=en(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Ei,e=>e.getDate()-1);Bd.range;const O0=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>e.getUTCDate()-1);O0.range;const nR=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>Math.floor(e/Ei));nR.range;function Wl(e){return en(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())*Lr)/jx)}const C0=Wl(0),jm=Wl(1),Rde=Wl(2),$de=Wl(3),Su=Wl(4),Lde=Wl(5),jde=Wl(6);C0.range;jm.range;Rde.range;$de.range;Su.range;Lde.range;jde.range;function Vl(e){return en(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)/jx)}const E0=Vl(0),Dm=Vl(1),Dde=Vl(2),Nde=Vl(3),Ou=Vl(4),Fde=Vl(5),zde=Vl(6);E0.range;Dm.range;Dde.range;Nde.range;Ou.range;Fde.range;zde.range;const Bx=en(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());Bx.range;const Ux=en(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());Ux.range;const ki=en(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());ki.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});ki.range;const Pi=en(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});Pi.range;function rR(e,t,n,r,a,i){const o=[[rl,1,hi],[rl,5,5*hi],[rl,15,15*hi],[rl,30,30*hi],[i,1,Lr],[i,5,5*Lr],[i,15,15*Lr],[i,30,30*Lr],[a,1,pi],[a,3,3*pi],[a,6,6*pi],[a,12,12*pi],[r,1,Ei],[r,2,2*Ei],[n,1,jx],[t,1,s3],[t,3,3*s3],[e,1,ny]];function l(u,c,f){const d=cb).right(o,d);if(h===o.length)return e.every(q1(u/ny,c/ny,f));if(h===0)return Lm.every(Math.max(q1(u,c,f),1));const[p,g]=o[d/o[h-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(ye=ay(gc(K.y,0,1)),Ae=ye.getUTCDay(),ye=Ae>4||Ae===0?Dm.ceil(ye):Dm(ye),ye=O0.offset(ye,(K.V-1)*7),K.y=ye.getUTCFullYear(),K.m=ye.getUTCMonth(),K.d=ye.getUTCDate()+(K.w+6)%7):(ye=ry(gc(K.y,0,1)),Ae=ye.getDay(),ye=Ae>4||Ae===0?jm.ceil(ye):jm(ye),ye=Bd.offset(ye,(K.V-1)*7),K.y=ye.getFullYear(),K.m=ye.getMonth(),K.d=ye.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),Ae="Z"in K?ay(gc(K.y,0,1)).getUTCDay():ry(gc(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(Ae+5)%7:K.w+K.U*7-(Ae+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,ay(K)):ry(K)}}function C(q,Z,ie,K){for(var Te=0,ye=Z.length,Ae=ie.length,Ce,Re;Te=Ae)return-1;if(Ce=Z.charCodeAt(Te++),Ce===37){if(Ce=Z.charAt(Te++),Re=O[Ce in u3?Z.charAt(Te++):Ce],!Re||(K=Re(q,ie,K))<0)return-1}else if(Ce!=ie.charCodeAt(K++))return-1}return K}function A(q,Z,ie){var K=u.exec(Z.slice(ie));return K?(q.p=c.get(K[0].toLowerCase()),ie+K[0].length):-1}function I(q,Z,ie){var K=h.exec(Z.slice(ie));return K?(q.w=p.get(K[0].toLowerCase()),ie+K[0].length):-1}function P(q,Z,ie){var K=f.exec(Z.slice(ie));return K?(q.w=d.get(K[0].toLowerCase()),ie+K[0].length):-1}function T(q,Z,ie){var K=m.exec(Z.slice(ie));return K?(q.m=v.get(K[0].toLowerCase()),ie+K[0].length):-1}function E(q,Z,ie){var K=g.exec(Z.slice(ie));return K?(q.m=b.get(K[0].toLowerCase()),ie+K[0].length):-1}function L(q,Z,ie){return C(q,t,Z,ie)}function N(q,Z,ie){return C(q,n,Z,ie)}function U(q,Z,ie){return C(q,r,Z,ie)}function W(q){return o[q.getDay()]}function $(q){return i[q.getDay()]}function F(q){return s[q.getMonth()]}function k(q){return l[q.getMonth()]}function X(q){return a[+(q.getHours()>=12)]}function te(q){return 1+~~(q.getMonth()/3)}function R(q){return o[q.getUTCDay()]}function J(q){return i[q.getUTCDay()]}function ae(q){return s[q.getUTCMonth()]}function ue(q){return l[q.getUTCMonth()]}function ve(q){return a[+(q.getUTCHours()>=12)]}function ke(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Z=S(q+="",_);return Z.toString=function(){return q},Z},parse:function(q){var Z=w(q+="",!1);return Z.toString=function(){return q},Z},utcFormat:function(q){var Z=S(q+="",x);return Z.toString=function(){return q},Z},utcParse:function(q){var Z=w(q+="",!0);return Z.toString=function(){return q},Z}}}var u3={"-":"",_:" ",0:"0"},un=/^\s*\d+/,qde=/^%/,Gde=/[\\^$*+?|[\]().{}]/g;function lt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Xde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Yde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Jde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function c3(e,t,n){var r=un.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function f3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ehe(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 the(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function nhe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function d3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rhe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function h3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ahe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ihe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ohe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lhe(e,t,n){var r=un.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function she(e,t,n){var r=qde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uhe(e,t,n){var r=un.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function che(e,t,n){var r=un.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function p3(e,t){return lt(e.getDate(),t,2)}function fhe(e,t){return lt(e.getHours(),t,2)}function dhe(e,t){return lt(e.getHours()%12||12,t,2)}function hhe(e,t){return lt(1+Bd.count(ki(e),e),t,3)}function aR(e,t){return lt(e.getMilliseconds(),t,3)}function phe(e,t){return aR(e,t)+"000"}function mhe(e,t){return lt(e.getMonth()+1,t,2)}function ghe(e,t){return lt(e.getMinutes(),t,2)}function vhe(e,t){return lt(e.getSeconds(),t,2)}function yhe(e){var t=e.getDay();return t===0?7:t}function bhe(e,t){return lt(C0.count(ki(e)-1,e),t,2)}function iR(e){var t=e.getDay();return t>=4||t===0?Su(e):Su.ceil(e)}function _he(e,t){return e=iR(e),lt(Su.count(ki(e),e)+(ki(e).getDay()===4),t,2)}function xhe(e){return e.getDay()}function whe(e,t){return lt(jm.count(ki(e)-1,e),t,2)}function She(e,t){return lt(e.getFullYear()%100,t,2)}function Ohe(e,t){return e=iR(e),lt(e.getFullYear()%100,t,2)}function Che(e,t){return lt(e.getFullYear()%1e4,t,4)}function Ehe(e,t){var n=e.getDay();return e=n>=4||n===0?Su(e):Su.ceil(e),lt(e.getFullYear()%1e4,t,4)}function khe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lt(t/60|0,"0",2)+lt(t%60,"0",2)}function m3(e,t){return lt(e.getUTCDate(),t,2)}function Phe(e,t){return lt(e.getUTCHours(),t,2)}function The(e,t){return lt(e.getUTCHours()%12||12,t,2)}function Ahe(e,t){return lt(1+O0.count(Pi(e),e),t,3)}function oR(e,t){return lt(e.getUTCMilliseconds(),t,3)}function Mhe(e,t){return oR(e,t)+"000"}function Ihe(e,t){return lt(e.getUTCMonth()+1,t,2)}function Rhe(e,t){return lt(e.getUTCMinutes(),t,2)}function $he(e,t){return lt(e.getUTCSeconds(),t,2)}function Lhe(e){var t=e.getUTCDay();return t===0?7:t}function jhe(e,t){return lt(E0.count(Pi(e)-1,e),t,2)}function lR(e){var t=e.getUTCDay();return t>=4||t===0?Ou(e):Ou.ceil(e)}function Dhe(e,t){return e=lR(e),lt(Ou.count(Pi(e),e)+(Pi(e).getUTCDay()===4),t,2)}function Nhe(e){return e.getUTCDay()}function Fhe(e,t){return lt(Dm.count(Pi(e)-1,e),t,2)}function zhe(e,t){return lt(e.getUTCFullYear()%100,t,2)}function Bhe(e,t){return e=lR(e),lt(e.getUTCFullYear()%100,t,2)}function Uhe(e,t){return lt(e.getUTCFullYear()%1e4,t,4)}function Hhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ou(e):Ou.ceil(e),lt(e.getUTCFullYear()%1e4,t,4)}function Whe(){return"+0000"}function g3(){return"%"}function v3(e){return+e}function y3(e){return Math.floor(+e/1e3)}var os,sR,uR;Vhe({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 Vhe(e){return os=Vde(e),sR=os.format,os.parse,uR=os.utcFormat,os.utcParse,os}function qhe(e){return new Date(e)}function Ghe(e){return e instanceof Date?+e:+new Date(+e)}function Hx(e,t,n,r,a,i,o,l,s,u){var c=Px(),f=c.invert,d=c.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),b=u("%I %p"),m=u("%a %d"),v=u("%b %d"),_=u("%B"),x=u("%Y");function O(S){return(s(S)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>ide(e,i/r))},n.copy=function(){return hR(t).domain(e)},Ni.apply(n,arguments)}function P0(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=Ln,c,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+c(g))-i)*(r*ge.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"ascending";if(!t)return e;var r=t;(t==="x"||t==="y")&&(r="_".concat(t));var a=n==="ascending"?"asc":"desc";return m0(e,r,a)}function mpe(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Nm(t,"x"),y:Nm(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;var a=function(o,l){return r[l]==="log"?o["_".concat(l)]!==0:!0},i=function(o){var l=a(o,"x")?o._x:n,s=a(o,"y")?o._y:n,u=a(o,"y0")?o._y0:n;return Object.assign({},o,{_x:l,_y:s,_y0:u})};return e.map(function(o){return a(o,"x")&&a(o,"y")&&a(o,"y0")?o:i(o)})}function gpe(e){return Xe(e)?e:e==null?function(){}:Y8(e)}function vpe(e,t){var n=!!e.eventKey,r=gpe(e.eventKey);return t.map(function(a,i){if(a.eventKey!==void 0)return a;if(n){var o=r(a,i);return o!==void 0?Object.assign({eventKey:o},a):a}return a})}function ype(e,t,n){var r=function(p){return p!==void 0},a=mr(t.x),i=pa(t.x),o=mr(t.y),l=pa(t.y),s=function(p){return function(g){return r(g)&&gp}},c=s(a),f=s(o),d=u(i),h=u(l);return e.map(function(p){var g=p._x,b=p._y,m=p._y0,v=p._y1;(c(g)||d(g))&&(g=null);var _=r(m)?m:n,x=r(v)?v:b;return r(x)?(!r(_)&&(f(x)||h(x))&&(b=null),(f(_)&&f(x)||h(_)&&h(x))&&(b=m=v=null),f(_)&&!f(x)&&(m=o),h(_)&&!h(x)&&(m=l),Object.assign({},p,AI({_x:g,_y:b,_y0:m,_y1:v},Hfe))):p})}function iy(e,t){var n=SR(e,t),r=OR(e,t),a=_pe(e,t),i=Il([].concat(tf(n),tf(r),tf(a)));return i.length===0?null:i.reduce(function(o,l,s){return o[l]=s+1,o},{})}function _3(e,t,n){var r=Array.isArray(e)||Ud(e);if(!r||ppe(e)<1)return[];var a=["x","y","y0"];n=Array.isArray(n)?n:a;var i=function(d){return _0(t[d]!==void 0?t[d]:d)},o=n.reduce(function(d,h){return d[h]=i(h),d},{}),l=Gfe(n,a)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0",s;l===!1&&(s={x:n.indexOf("x")!==-1?iy(t,"x"):void 0,y:n.indexOf("y")!==-1?iy(t,"y"):void 0,y0:n.indexOf("y0")!==-1?iy(t,"y"):void 0});var u=l?e:e.reduce(function(d,h,p){var g=Y1(h),b={x:p,y:g},m=n.reduce(function(_,x){var O=o[x](g),S=O!==void 0?O:b[x];return S!==void 0&&(typeof S=="string"&&s[x]?(_["".concat(x,"Name")]=S,_["_".concat(x)]=s[x][S]):_["_".concat(x)]=S),_},{}),v=Object.assign({},m,g);return Mt(v)||d.push(v),d},[]),c=wR(u,t.sortKey,t.sortOrder),f=mpe(c,t);return vpe(t,f)}function bpe(e){var t=b3(e,"x"),n=b3(e,"y"),r=t.map(function(a,i){return{x:a,y:n[i]}});return r}function qx(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function tr(e){return e.data?_3(e.data,e):_3(bpe(e),e)}function SR(e,t){var n=e.tickValues,r=e.tickFormat,a;return!n||!Array.isArray(n)&&!n[t]?a=r&&Array.isArray(r)?r:[]:a=n[t]||n,a.filter(function(i){return typeof i=="string"})}function OR(e,t){if(!e.categories)return[];var n=qx(e,t),r=n&&n.filter(function(a){return typeof a=="string"});return r?SI(r):[]}function _pe(e,t){var n=Array.isArray(e.data)||Ud(e.data);if(!n)return[];var r=e[t]===void 0?t:e[t],a=_0(r),i=e.data.reduce(function(s,u){return s.push(Y1(u)),s},[]),o=wR(i,e.sortKey,e.sortOrder),l=o.reduce(function(s,u){var c=Y1(u);return s.push(a(c)),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 Gx(e){var t=function(i){return i&&i.type?i.type.role:""},n=t(e);if(n==="portal"){var r=M.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var a=["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return a.includes(n)}function x3(e){return Ope(e)||Spe(e)||wpe(e)||xpe()}function xpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wpe(e,t){if(e){if(typeof e=="string")return Q1(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 Q1(e,t)}}function Spe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ope(e){if(Array.isArray(e))return Q1(e)}function Q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"min",r=function(l){return n==="max"?Math.max.apply(Math,x3(l)):Math.min.apply(Math,x3(l))},a=n==="max"?-1/0:1/0,i=!1,o=e.flat().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 i=i||u instanceof Date||c instanceof Date,r([l,f])},a);return i?new Date(o):o}function Ppe(e,t,n){if(!t.domainPadding)return e;var r=Gl(t,n),a=ql(t,n),i=Epe(t,n);if(!i.left&&!i.right)return e;var o=mr(e),l=pa(e),s=dI(n,t.horizontal),u=ln(t,s),c=Math.abs(u[0]-u[1]),f=Math.max(c-i.left-i.right,1),d=Math.abs(l.valueOf()-o.valueOf())/f*c,h={left:d*i.left/c,right:d*i.right/c},p={min:o.valueOf()-h.left,max:l.valueOf()+h.right},g=Zt(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,b=o>=0&&p.min<=0||l<=0&&p.max>=0,m=function(S,w){var C=w==="min"&&o>=0&&S<=0||w==="max"&&l<=0&&S>=0;return C?0:S};if(b&&g!==!1){var v={left:Math.abs(l-o)*i.left/c,right:Math.abs(l-o)*i.right/c},_={min:m(o.valueOf()-v.left,"min"),max:m(l.valueOf()+v.right,"max")},x={left:Math.abs(_.max-_.min)*i.left/c,right:Math.abs(_.max-_.min)*i.right/c};p={min:m(o.valueOf()-x.left,"min"),max:m(l.valueOf()+x.right,"max")}}var O={min:r!==void 0?r:p.min,max:a!==void 0?a:p.max};return o instanceof Date||l instanceof Date?Ti(new Date(O.min),new Date(O.max)):Ti(O.min,O.max)}function Kx(e,t){var n=Xe(e)?e:Yx,r=Xe(t)?t:Xx;return function(a,i){var o=Qx(a,i);if(o)return r(o,a,i);var l=qx(a,i),s=l?Tpe(a,i,l):n(a,i);return s?r(s,a,i):void 0}}function Xx(e,t,n){return Cpe(Ppe(e,t,n),t,n)}function Fm(e,t){return Kx()(e,t)}function Tpe(e,t,n){var r=n||qx(e,t),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l;if(r){var u=Gl(e,t),c=ql(e,t),f=wm(r)?OR(e,t):[],d=f.length===0?null:f.reduce(function(m,v,_){return m[v]=_+1,m},{}),h=d?r.map(function(m){return d[m]}):r,p=u!==void 0?u:mr(h),g=c!==void 0?c:pa(h),b=Ti(p,g);return a&&t==="x"&&Math.abs(o-s)===360?Jx(b,h):b}}function Yx(e,t,n){var r=n||tr(e),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l,u=Gl(e,t),c=ql(e,t);if(r.length<1)return u!==void 0&&c!==void 0?Ti(u,c):void 0;var f=u!==void 0?u:w3(r,t,"min"),d=c!==void 0?c:w3(r,t,"max"),h=Ti(f,d);return a&&t==="x"&&Math.abs(o-s)===360?Jx(h,kpe(r,t)):h}function Ti(e,t){var n=function(r){var a=r===0?2*Math.pow(10,-10):Math.pow(10,-10),i=1,o=r instanceof Date?new Date(Number(r)-i):Number(r)-a,l=r instanceof Date?new Date(Number(r)+i):Number(r)+a;return r===0?[0,l]:[o,l]};return Number(e)===Number(t)?n(t):[e,t]}function Qx(e,t){var n=Gl(e,t),r=ql(e,t);if(Zt(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 Ti(n,r)}function J1(e,t){var n=Qx(e,t);if(n)return n;var r=tr(e),a=r.reduce(function(s,u){return u._y0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i.concat(o):i}return i},[])};return r(e)}function PR(e){var t=function(n){var r=Math.min.apply(Math,Ps(n)),a=Math.max.apply(Math,Ps(n));return a<0?a:Math.max(0,r)};return{x:Po(e.x)?new Date(Math.min.apply(Math,Ps(e.x))):t(e.x),y:Po(e.y)?new Date(Math.min.apply(Math,Ps(e.y))):t(e.y)}}function O3(e,t){var n=function(){return e<=0&&Math.max.apply(Math,Ps(t))<=0?"negative":"positive"};return Po(t)?"positive":n()}function T0(e){var t=e.orientation||(e.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[t]}function A0(e){return e.tickValues!==void 0&&wm(e.tickValues)}function Lpe(e){var t=e.tickValues,n=Gr(e),r=e.stringMap&&e.stringMap[n],a=t&&!Po(t)?function(u){return u}:void 0;if(!r)return A0(e)?function(u,c){return t[c]}:a;var i=r&&fI(r),o=m0(Object.values(r),function(u){return u}),l=o.map(function(u){return i[u]}),s=[""].concat(Ps(l),[""]);return function(u){return s[u]}}function jpe(e){var t=Gr(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],a=r&&hse(r)?r.map(function(o){return n[o]}):void 0,i=n&&Object.values(n);return a&&a.length!==0?a:i}function Zx(e){var t=e.tickValues,n=e.tickFormat;if((t==null?void 0:t.length)===0)return[];var r=Gr(e),a=e.stringMap&&e.stringMap[r],i=function(){if(!(!n||!Array.isArray(n)))return wm(n)?n.map(function(u,c){return c}):n},o=t;a&&(o=jpe(e)),t&&wm(t)&&(o=a?t.map(function(u){return a[u]}):hx(1,t.length+1));var l=o?Il(o):i(),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>=mr(f)&&d<=pa(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 TR(e,t){var n=e.tickFormat,r=Gr(e),a=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){var l=Zx(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&&Xe(n)){var c=function(f,d,h){var p=fI(a),g=h.map(function(b){return p[b]});return e.tickFormat(p[f],d,g)};return a?c:n}}else{var i=Lpe(e),o=t.tickFormat&&Xe(t.tickFormat)?t.tickFormat():function(f){return f};return i||o}return function(f){return f}}function C3(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(r,a){return a%n===0})}function AR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,a=Zx(e);if((a==null?void 0:a.length)===0)return[""];var i=a?a.map(function(f){return f.value}):void 0;if(i)return C3(i,r);if(t.ticks&&Xe(t.ticks)){var o=r||5,l=t.ticks(o),s=Array.isArray(l)&&l.length?l:t.domain(),u=C3(s,r);if(n){var c=u.filter(function(f){return f!==0});return c.length?c:u}return u}return t.domain()}function Dpe(e,t){var n=e.polar,r=e.startAngle,a=r===void 0?0:r,i=e.endAngle,o=i===void 0?360:i,l=Zx(e),s=l&&(l==null?void 0:l.length)!==0?l.map(function(_){return _.value}):void 0;if(Array.isArray(s)){var u=Gl(e,t),c=ql(e,t),f=A0(e),d=s.map(function(_){return Number(_)}),h=f?1:mr(d),p=f?s.length:pa(d),g=u!==void 0?u:h,b=c!==void 0?c:p,m=Ti(g,b),v=n&&t==="x"&&Math.abs(a-o)===360?Jx(m,d):m;return T0(e)&&!n&&v.reverse(),v}}function Wu(e,t){var n=Gr(e);if(!(t&&t!==n))return Kx(Dpe)(e,n)}function MR(e,t){if(e.axisValue){var n=t==="x"?"y":"x",r=Ff(e.scale)&&Xe(e.scale[n])?e.scale[n]:void 0;if(r){var a=t==="x"?"y":"x",i=Ff(e.stringMap)&&e.stringMap[a],o=i&&typeof e.axisValue=="string"?i[e.axisValue]:e.axisValue;return r(o)}}}function M0(e,t){if(!Ff(e.theme))return on(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return on(e,t,"axis");var r=me({},e.theme[n],e.theme.axis),a=Object.assign({},e.theme,{axis:r});return on(Object.assign({},e,{theme:a}),t,"axis")}function Npe(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Fpe(){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(a){var i=t===0?n[t+1]:n[t-1];return i[a]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(a){var i=t===0?n[t+1]:n[t-1];return i[a]};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 IR(e){var t=M.useRef();return M.useEffect(function(){t.current=e}),t.current}function E3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function k3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:qpe,t=M.useState(e),n=Bpe(t,2),r=n[0],a=n[1],i=M.useCallback(function(u){a(function(c){return k3(k3({},c),u)})},[a]),o=M.useCallback(function(u,c,f){if(!(u!=null&&u.animate))return c.props.animate;var d=function(){var m=r&&r.childrenTransitions;return m=wE(m)?m[f]:m,me({childrenTransitions:m},r)},h=u.animate&&u.animate.getTransitions,p=d(),g=u.animate&&u.animate.parentState||p;if(!h){var b=EI(u,p,function(m){return i(m)});h=function(m){return b(m,f)}}return me({getTransitions:h,parentState:g},u.animate,c.props.animate)},[r,i]),l=M.useCallback(function(u,c){if(u!=null&&u.animate)if(u.animate.parentState){var f=u.animate.parentState.nodesWillExit,d=f?u:null,h=me({oldProps:d,nextProps:c},u.animate.parentState);i(h)}else{var p=M.Children.toArray(u.children),g=M.Children.toArray(c.children),b=function(w){var C=function(A){return A.type&&A.type.continuous};return Array.isArray(w)?w.some(C):C(w)},m=!u.polar&&p.some(function(w){var C;return b(w)||(w==null||(C=w.props)===null||C===void 0?void 0:C.children)&&b(w.props.children)}),v=CI(p,g),_=v.nodesWillExit,x=v.nodesWillEnter,O=v.childrenTransitions,S=v.nodesShouldEnter;i({nodesWillExit:_,nodesWillEnter:x,nodesShouldEnter:S,childrenTransitions:wE(O)?O[0]:O,oldProps:_?u:void 0,nextProps:c,continuous:m})}},[i]),s=M.useCallback(function(u){return r&&r.nodesWillExit&&r.oldProps||u},[r]);return{state:r,setState:i,getAnimationProps:o,setAnimationState:l,getProps:s}};function Be(e){return function(){return e}}const T3=Math.abs,xn=Math.atan2,ii=Math.cos,Gpe=Math.max,Hs=Math.min,Wn=Math.sin,Ct=Math.sqrt,Sn=1e-12,To=Math.PI,zm=To/2,xo=2*To;function Kpe(e){return e>1?0:e<-1?To:Math.acos(e)}function A3(e){return e>=1?zm:e<=-1?-zm:Math.asin(e)}const e5=Math.PI,t5=2*e5,qo=1e-6,Xpe=t5-qo;function $R(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $R;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;aqo)if(!(Math.abs(f*s-u*c)>qo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=a-l,g=s*s+u*u,b=h*h+p*p,m=Math.sqrt(g),v=Math.sqrt(d),_=i*Math.tan((e5-Math.acos((g+d-b)/(2*m*v)))/2),x=_/v,O=_/m;Math.abs(x-1)>qo&&this._append`L${t+x*c},${n+x*f}`,this._append`A${i},${i},0,0,${+(f*h>c*p)},${this._x1=t+O*s},${this._y1=n+O*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,c=n+s,f=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>qo||Math.abs(this._y1-c)>qo)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%t5+t5),d>Xpe?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>qo&&this._append`A${r},${r},0,${+(d>=e5)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Hd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Qpe(t)}function Jpe(e){return e.innerRadius}function Zpe(e){return e.outerRadius}function eme(e){return e.startAngle}function tme(e){return e.endAngle}function nme(e){return e&&e.padAngle}function rme(e,t,n,r,a,i,o,l){var s=n-e,u=r-t,c=o-a,f=l-i,d=f*s-c*u;if(!(d*dL*L+N*N&&(C=I,A=P),{cx:C,cy:A,x01:-c,y01:-f,x11:C*(a/O-1),y11:A*(a/O-1)}}function I0(){var e=Jpe,t=Zpe,n=Be(0),r=null,a=eme,i=tme,o=nme,l=null,s=Hd(u);function u(){var c,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=a.apply(this,arguments)-zm,g=i.apply(this,arguments)-zm,b=T3(g-p),m=g>p;if(l||(l=c=s()),hSn))l.moveTo(0,0);else if(b>xo-Sn)l.moveTo(h*ii(p),h*Wn(p)),l.arc(0,0,h,p,g,!m),d>Sn&&(l.moveTo(d*ii(g),d*Wn(g)),l.arc(0,0,d,g,p,m));else{var v=p,_=g,x=p,O=g,S=b,w=b,C=o.apply(this,arguments)/2,A=C>Sn&&(r?+r.apply(this,arguments):Ct(d*d+h*h)),I=Hs(T3(h-d)/2,+n.apply(this,arguments)),P=I,T=I,E,L;if(A>Sn){var N=A3(A/d*Wn(C)),U=A3(A/h*Wn(C));(S-=N*2)>Sn?(N*=m?1:-1,x+=N,O-=N):(S=0,x=O=(p+g)/2),(w-=U*2)>Sn?(U*=m?1:-1,v+=U,_-=U):(w=0,v=_=(p+g)/2)}var W=h*ii(v),$=h*Wn(v),F=d*ii(O),k=d*Wn(O);if(I>Sn){var X=h*ii(_),te=h*Wn(_),R=d*ii(x),J=d*Wn(x),ae;if(bSn?T>Sn?(E=Dh(R,J,W,$,h,T,m),L=Dh(X,te,F,k,h,T,m),l.moveTo(E.cx+E.x01,E.cy+E.y01),TSn)||!(S>Sn)?l.lineTo(F,k):P>Sn?(E=Dh(F,k,X,te,d,-P,m),L=Dh(W,$,R,J,d,-P,m),l.lineTo(E.cx+E.x01,E.cy+E.y01),P=h;--p)l.point(_[p],x[p]);l.lineEnd(),l.areaEnd()}m&&(_[d]=+e(b,d,f),x[d]=+t(b,d,f),l.point(r?+r(b,d,f):_[d],n?+n(b,d,f):x[d]))}if(v)return l=null,v+""||null}function c(){return $0().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Be(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Be(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}function ime(e,t){return te?1:t>=e?0:NaN}function ome(e){return e}function DR(){var e=ome,t=ime,n=null,r=Be(0),a=Be(xo),i=Be(0);function o(l){var s,u=(l=R0(l)).length,c,f,d=0,h=new Array(u),p=new Array(u),g=+r.apply(this,arguments),b=Math.min(xo,Math.max(-xo,a.apply(this,arguments)-g)),m,v=Math.min(Math.abs(b)/u,i.apply(this,arguments)),_=v*(b<0?-1:1),x;for(s=0;s0&&(d+=x);for(t!=null?h.sort(function(O,S){return t(p[O],p[S])}):n!=null&&h.sort(function(O,S){return n(l[O],l[S])}),s=0,f=d?(b-u*_)/d:0;s0?x*f:0)+_,p[c]={data:l[c],index:s,value:x,startAngle:g,endAngle:m,padAngle:v};return p}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Be(+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:Be(+l),o):r},o.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Be(+l),o):a},o.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Be(+l),o):i},o}var NR=nw(Wd);function FR(e){this._curve=e}FR.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 nw(e){function t(n){return new FR(e(n))}return t._curve=e,t}function Rc(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(nw(n)):t()._curve},e}function n5(){return Rc($0().curve(NR))}function M3(){var e=jR().curve(NR),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=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 Rc(n())},delete e.lineX0,e.lineEndAngle=function(){return Rc(r())},delete e.lineX1,e.lineInnerRadius=function(){return Rc(a())},delete e.lineY0,e.lineOuterRadius=function(){return Rc(i())},delete e.lineY1,e.curve=function(o){return arguments.length?t(nw(o)):t()._curve},e}function $c(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class zR{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 lme{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=$c(this._x0,this._y0),a=$c(this._x0,this._y0=(this._y0+n)/2),i=$c(t,this._y0),o=$c(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...a,...i,...o)}this._x0=t,this._y0=n}}function BR(e){return new zR(e,!0)}function UR(e){return new zR(e,!1)}function sme(e){return new lme(e)}function ume(e){return e.source}function cme(e){return e.target}function L0(e){let t=ume,n=cme,r=ew,a=tw,i=null,o=null,l=Hd(s);function s(){let u;const c=ame.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(i==null&&(o=e(u=l())),o.lineStart(),c[0]=f,o.point(+r.apply(this,c),+a.apply(this,c)),c[0]=d,o.point(+r.apply(this,c),+a.apply(this,c)),o.lineEnd(),u)return o=null,u+""||null}return s.source=function(u){return arguments.length?(t=u,s):t},s.target=function(u){return arguments.length?(n=u,s):n},s.x=function(u){return arguments.length?(r=typeof u=="function"?u:Be(+u),s):r},s.y=function(u){return arguments.length?(a=typeof u=="function"?u:Be(+u),s):a},s.context=function(u){return arguments.length?(u==null?i=o=null:o=e(i=u),s):i},s}function fme(){return L0(BR)}function dme(){return L0(UR)}function hme(){const e=L0(sme);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const pme=Ct(3),HR={draw(e,t){const n=Ct(t+Hs(t/28,.75))*.59436,r=n/2,a=r*pme;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-r),e.lineTo(a,r),e.moveTo(-a,r),e.lineTo(a,-r)}},j0={draw(e,t){const n=Ct(t/To);e.moveTo(n,0),e.arc(0,0,n,0,xo)}},WR={draw(e,t){const n=Ct(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()}},VR=Ct(1/3),mme=VR*2,qR={draw(e,t){const n=Ct(t/mme),r=n*VR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},GR={draw(e,t){const n=Ct(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},KR={draw(e,t){const n=Ct(t-Hs(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},XR={draw(e,t){const n=Ct(t),r=-n/2;e.rect(r,r,n,n)}},YR={draw(e,t){const n=Ct(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},gme=.8908130915292852,QR=Wn(To/10)/Wn(7*To/10),vme=Wn(xo/10)*QR,yme=-ii(xo/10)*QR,JR={draw(e,t){const n=Ct(t*gme),r=vme*n,a=yme*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=xo*i/5,l=ii(o),s=Wn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},oy=Ct(3),ZR={draw(e,t){const n=-Ct(t/(oy*3));e.moveTo(0,n*2),e.lineTo(-oy*n,-n),e.lineTo(oy*n,-n),e.closePath()}},bme=Ct(3),e$={draw(e,t){const n=Ct(t)*.6824,r=n/2,a=n*bme/2;e.moveTo(0,-n),e.lineTo(a,r),e.lineTo(-a,r),e.closePath()}},xr=-.5,wr=Ct(3)/2,r5=1/Ct(12),_me=(r5/2+1)*3,t$={draw(e,t){const n=Ct(t/_me),r=n/2,a=n*r5,i=r,o=n*r5+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(xr*r-wr*a,wr*r+xr*a),e.lineTo(xr*i-wr*o,wr*i+xr*o),e.lineTo(xr*l-wr*s,wr*l+xr*s),e.lineTo(xr*r+wr*a,xr*a-wr*r),e.lineTo(xr*i+wr*o,xr*o-wr*i),e.lineTo(xr*l+wr*s,xr*s-wr*l),e.closePath()}},a5={draw(e,t){const n=Ct(t-Hs(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},I3=[j0,WR,qR,XR,JR,ZR,t$],xme=[j0,KR,a5,e$,HR,YR,GR];function wme(e,t){let n=null,r=Hd(a);e=typeof e=="function"?e:Be(e||j0),t=typeof t=="function"?t:Be(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Be(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Be(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Ao(){}function Bm(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 D0(e){this._context=e}D0.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:Bm(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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sme(e){return new D0(e)}function n$(e){this._context=e}n$.prototype={areaStart:Ao,areaEnd:Ao,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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ome(e){return new n$(e)}function r$(e){this._context=e}r$.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:Bm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cme(e){return new r$(e)}function a$(e,t){this._basis=new D0(e),this._beta=t}a$.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],a=t[0],i=e[n]-r,o=t[n]-a,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*i),this._beta*t[l]+(1-this._beta)*(a+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Eme=function e(t){function n(r){return t===1?new D0(r):new a$(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Um(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 rw(e,t){this._context=e,this._k=(1-t)/6}rw.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:Um(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:Um(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 kme=function e(t){function n(r){return new rw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aw(e,t){this._context=e,this._k=(1-t)/6}aw.prototype={areaStart:Ao,areaEnd:Ao,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:Um(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 Pme=function e(t){function n(r){return new aw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iw(e,t){this._context=e,this._k=(1-t)/6}iw.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:Um(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 Tme=function e(t){function n(r){return new iw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ow(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Sn){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,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Sn){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);i=(i*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,a,i,o,e._x2,e._y2)}function i$(e,t){this._context=e,this._alpha=t}i$.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:ow(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 Ame=function e(t){function n(r){return t?new i$(r,t):new rw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function o$(e,t){this._context=e,this._alpha=t}o$.prototype={areaStart:Ao,areaEnd:Ao,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:ow(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 Mme=function e(t){function n(r){return t?new o$(r,t):new aw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function l$(e,t){this._context=e,this._alpha=t}l$.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:ow(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 Ime=function e(t){function n(r){return t?new l$(r,t):new iw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function s$(e){this._context=e}s$.prototype={areaStart:Ao,areaEnd:Ao,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 Rme(e){return new s$(e)}function R3(e){return e<0?-1:1}function $3(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(R3(i)+R3(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function L3(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ly(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Hm(e){this._context=e}Hm.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:ly(this,this._t0,L3(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,ly(this,L3(this,n=$3(this,e,t)),n);break;default:ly(this,this._t0,n=$3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function u$(e){this._context=new c$(e)}(u$.prototype=Object.create(Hm.prototype)).point=function(e,t){Hm.prototype.point.call(this,t,e)};function c$(e){this._context=e}c$.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function $me(e){return new Hm(e)}function Lme(e){return new u$(e)}function f$(e){this._context=e}f$.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=j3(e),a=j3(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=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 Dme(e){return new N0(e,.5)}function Nme(e){return new N0(e,0)}function Fme(e){return new N0(e,1)}function Cu(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n=0;)n[t]=t;return n}function zme(e,t){return e[t]}function Bme(e){const t=[];return t.key=e,t}function Ume(){var e=Be([]),t=Eu,n=Cu,r=zme;function a(i){var o=Array.from(e.apply(this,arguments),Bme),l,s=o.length,u=-1,c;for(const f of i)for(l=0,++u;l0){for(var n,r,a=0,i=e[0].length,o;a0)for(var n,r=0,a,i,o,l,s,u=e[t[0]].length;r0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=l,a[0]=l+=i):(a[0]=0,a[1]=i)}function Vme(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;ri&&(i=a,n=t);return n}function h$(e){var t=e.map(p$);return Eu(e).sort(function(n,r){return t[n]-t[r]})}function p$(e){for(var t=0,n=-1,r=e.length,a;++n0}function v$(e){if(!g$(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function rge(e,t){if(g$(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=nge(e)?e.changedTouches[0]:e,r=tge(t||v$(n));return{x:z3(n.clientX,r,"x"),y:z3(n.clientY,r,"y")}}var age=Ld,ige=PI;function oge(e,t){return e&&e.length?ige(e,age(t)):[]}var lge=oge;const y$=at(lge);function sge(e,t,n,r){for(var a=-1,i=e==null?0:e.length;++ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?Yf("linear"):Yf(i[0])}function _$(e){var t=["groupComponent","containerComponent","labelComponent"],n=Ox(e,t),r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat.apply(n,sa(e.events)):n),r||[]}function $ge(e,t,n){var r=e.style,a=e.colorScale,i=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(a=t.props&&t.props.colorScale?t.props.colorScale:a,i=t.props&&t.props.color?t.props.color:i,!(!a&&!i)){var o=Array.isArray(a)?a:bx(a);return i||o[n%o.length]}}function Lge(e,t,n){var r=e&&e[n]&&e[n].style?e[n].style:{};return b0(t,r)}function jge(e,t,n){var r=n.style,a=n.role,i=e.props.style||{};if(Array.isArray(i))return i;var o=e.type&&e.type.role,l=o==="stack"?void 0:$ge(n,e,t),s=o==="line"?{fill:"none",stroke:l}:{fill:l},u=a==="stack"?{}:{width:b$(n)},c=me({},i.data,Object.assign({},u,r.data,s)),f=me({},i.labels,r.labels);return Wm(Wm({},i),{},{parent:r.parent,data:c,labels:f})}function Dge(e,t){var n=function(r){var a=r.props||{};if(!CR(r)||!a.categories)return null;var i=a.categories&&!Array.isArray(a.categories)?a.categories[t]:a.props.categories,o=i&&i.filter(function(l){return typeof l=="string"});return o?SI(o):[]};return Ul(e.slice(0),n)}function Nge(e){var t=function(a){var i=a.props||{},o;if(Gx(a))a.type&&Xe(a.type.getData)?o=a.type.getData(i):o=tr(i);else return null;return o.map(function(l){return{x:l.xName,y:l.yName}})},n={x:[],y:[]},r=function(a,i){var o=Array.isArray(i)?i.map(function(s){return s.x}).filter(Boolean):i.x,l=Array.isArray(i)?i.map(function(s){return s.y}).filter(Boolean):i.y;return{x:o!==void 0?a.x.concat(o):a.x,y:l!==void 0?a.y.concat(l):a.y}};return Ul(e.slice(0),t,{},n,r)}function U3(e,t,n){var r=Zt(e.categories)?e.categories[t]:e.categories,a=kR(n,t),i=a?SR(a.props,t):[],o=r||Dge(n,t);return Il([].concat(sa(o),sa(i)).flat())}function x$(e,t){var n=t||M.Children.toArray(e.children),r=U3(e,"x",n),a=U3(e,"y",n),i=Nge(n);return{x:Il([].concat(sa(r),sa(i.x)).flat()),y:Il([].concat(sa(a),sa(i.y)).flat())}}function w$(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,a=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,i=!r||!a,o=i?n||x$(e,t):{},l=r||o.x,s=a||o.y;return{x:l.length>0?l:void 0,y:s.length>0?s:void 0}}function Fge(e){for(var t=-1,n=e==null?0:e.length,r={};++t0){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=i.call(this,s,u))}else o.push(u);return a==null?u:a.call(this,s,u)}}})(l5,l5.exports);var Uge=l5.exports;const Hge=at(Uge);function Wge(e,t){return Gge(e)||qge(e,t)||S$(e,t)||Vge()}function Vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Gge(e){if(Array.isArray(e))return e}function Kge(e){return Qge(e)||Yge(e)||S$(e)||Xge()}function Xge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S$(e,t){if(e){if(typeof e=="string")return s5(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 s5(e,t)}}function Yge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qge(e){if(Array.isArray(e))return s5(e)}function s5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 qm(e){return qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qm(e)}var Vu=function(e){e0e(n,e);var t=t0e(n);function n(r){var a;return Jge(this,n),a=t.call(this,r),a.getScopedEvents=void 0,a.getEventState=void 0,a.baseProps=void 0,a.sharedEventsCache=void 0,a.globalEvents=void 0,a.prevGlobalEventKeys=void 0,a.boundGlobalEvents=void 0,a.getScopedEvents=RI.bind(c5(a)),a.getEventState=LI.bind(c5(a)),a.state=a.state||{},a.sharedEventsCache={},a.globalEvents={},a.prevGlobalEventKeys=[],a.boundGlobalEvents={},a.baseProps=a.getBaseProps(r),a}return Zge(n,[{key:"shouldComponentUpdate",value:function(a){if(!Ba(this.props,a)){this.baseProps=this.getBaseProps(a);var i=this.getExternalMutations(a,this.baseProps);this.applyExternalMutations(a,i)}return!0}},{key:"componentDidMount",value:function(){var a=this,i=Object.keys(this.globalEvents);i.forEach(function(o){return a.addGlobalListener(o)}),this.prevGlobalEventKeys=i}},{key:"componentDidUpdate",value:function(){var a=this,i=Object.keys(this.globalEvents),o=Sm(this.prevGlobalEventKeys,i);o.forEach(function(s){return a.removeGlobalListener(s)});var l=Sm(i,this.prevGlobalEventKeys);l.forEach(function(s){return a.addGlobalListener(s)}),this.prevGlobalEventKeys=i}},{key:"componentWillUnmount",value:function(){var a=this;this.prevGlobalEventKeys.forEach(function(i){return a.removeGlobalListener(i)})}},{key:"addGlobalListener",value:function(a){var i=this,o=function(l){var s=i.globalEvents[a];return s&&s(FI(l))};this.boundGlobalEvents[a]=o,window.addEventListener(Am(a),o)}},{key:"removeGlobalListener",value:function(a){window.removeEventListener(Am(a),this.boundGlobalEvents[a])}},{key:"getAllEvents",value:function(a){var i=["container","groupComponent"],o=Ox(a,i);return Array.isArray(o)?Array.isArray(a.events)?o.concat.apply(o,Kge(a.events)):o:a.events}},{key:"applyExternalMutations",value:function(a,i){if(!Mt(i)){var o=a.externalEventMutations.reduce(function(s,u){return Xe(u.callback)?s.concat(u.callback):s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(i,l)}}},{key:"getExternalMutations",value:function(a,i){return Mt(a.externalEventMutations)?void 0:dfe(a.externalEventMutations,i,this.state,Object.keys(i))}},{key:"cacheSharedEvents",value:function(a,i,o){this.sharedEventsCache[a]=[i,o]}},{key:"getCachedSharedEvents",value:function(a,i){var o=this.sharedEventsCache[a]||[],l=Wge(o,2),s=l[0],u=l[1];if(s&&Ba(i,u))return s}},{key:"getBaseProps",value:function(a){var i=a.container,o=M.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=i?i.props:{};return Object.assign({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(a){var i=function(l,s){if(l.type&&Xe(l.type.getBaseProps)){var u=l.props&&l.type.getBaseProps(l.props);return u?[[s,u]]:null}return null},o=Ul(a,i);return Bge(o)}},{key:"getNewChildren",value:function(a,i){var o=this,l=a.events,s=a.eventKey,u=function(d,h){return d.reduce(function(p,g,b){if(g.props.children){var m=M.Children.toArray(g.props.children),v=h.slice(b,b+m.length),_=M.cloneElement(g,g.props,u(m,v));return p.concat(_)}else if(h[b]!=="parent"&&g.type&&Xe(g.type.getBaseProps)){var x=g.props.name||h[b],O=Array.isArray(l)&&l.filter(function(C){return C.target==="parent"?!1:Array.isArray(C.childName)?C.childName.indexOf(x)>-1:C.childName===x||C.childName==="all"}),S=[x,i,O,Hge(o.state[x])],w=o.getCachedSharedEvents(x,S)||{events:O,getEvents:function(C,A){return o.getScopedEvents(C,A,x,i)},getEventState:function(C,A){return o.getEventState(C,A,x)}};return o.cacheSharedEvents(x,w,S),p.concat(M.cloneElement(g,Object.assign({key:"events-".concat(x),sharedEvents:w,eventKey:s,name:x},g.props)))}return p.concat(g)},[])},c=Object.keys(i),f=M.Children.toArray(a.children);return u(f,c)}},{key:"getContainer",value:function(a,i,o){var l=this,s=this.getNewChildren(a,i),u=Array.isArray(o)?o.filter(function(_){return _.target==="parent"}):[],c=u.length>0?{events:u,getEvents:function(_,x){return l.getScopedEvents(_,x,null,i)},getEventState:this.getEventState}:null,f=a.container||a.groupComponent,d=f.type&&f.type.role,h=f.props||{},p=II.bind(this),g=c&&p({sharedEvents:c},"parent"),b=me({},this.getEventState("parent","parent"),h,i.parent,{children:s}),m=me({},$I(g,"parent",b),h.events);this.globalEvents=DI(m);var v=NI(m);return d==="container"?M.cloneElement(f,Object.assign({},b,{events:v})):M.cloneElement(f,v,s)}},{key:"render",value:function(){var a=this.getAllEvents(this.props);return a?this.getContainer(this.props,this.baseProps,a):M.cloneElement(this.props.container,{children:this.props.children})}}]),n}(M.Component);Vu.displayName="VictorySharedEvents";Vu.role="shared-event-wrapper";Vu.contextType=v0;Vu.defaultProps={groupComponent:M.createElement("g",null)};function a0e(e){return s0e(e)||l0e(e)||o0e(e)||i0e()}function i0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0e(e,t){if(e){if(typeof e=="string")return f5(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 f5(e,t)}}function l0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s0e(e){if(Array.isArray(e))return f5(e)}function f5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},d0e=function(e,t,n){var r=e.position,a=e.transform;return{x1:a.x,y1:a.y,x2:a.x+r.x2,y2:a.y+r.y2,style:t,datum:n}},h0e=function(e,t,n,r,a){var i=e.position,o=e.transform;return{style:t,x:o.x+i.x,y:o.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:a,datum:r}},p0e=function(e,t,n){var r=e.edge,a=e.transform;return{x1:a.x,y1:a.y,x2:r.x+a.x,y2:r.y+a.y,style:t,datum:n}},m0e=function(e,t,n){var r=t.style,a=t.padding,i=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:i?n.x:a.left+n.x,x2:i?n.x:o-a.right+n.x,y1:i?a.top+n.y:n.y,y2:i?l-a.bottom+n.y:n.y}},g0e=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},v0e=function(e,t,n){var r=t.style,a=t.orientation,i=t.padding,o=t.labelPadding,l=t.isVertical,s=sw[a],u=i.left+i.right,c=i.top+i.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,p=l?n.x+s*o:(e.width-u)/2+i.left+n.x,g=l?(e.height-c)/2+i.top+n.y:s*o+n.y;return{x:p,y:g,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},y0e=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}},b0e=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=T0(e),a=n.fontSize||14;return e.label?a*(r?2.3:1.6):0},W3=function(e,t,n){var r=t||"positive",a={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},i={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?i[r][e]:a[r][e]},_0e=function(e,t){var n=t.style,r=t.scale,a=t.orientation,i=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:gp({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},p=a==="right"?i.right:i.left,g=a==="top"?i.top:i.bottom,b=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:p,m=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:g,v=n.axisLabel.fontSize||14,_=l.map(function(C,A){var I=s?e.tickValues[C-1]:C,P=_t(n.ticks,Object.assign({},h,{tick:I,index:A}));return P.size||0}),x=v+2*Math.max.apply(Math,a0e(_))+c,O=1.2*v,S=u?x:O,w=u?O:x;return{x:b??S,y:m??w}},uo=function(e,t){return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t},x0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={x:a==="bottom"||a==="top"?a:i.x,y:a==="left"||a==="right"?a:i.y},h={x:d.y==="left"?c:f,y:d.x==="bottom"?u:s},p={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Gm(e.offsetX)?e.offsetX:b,_=Gm(e.offsetY)?e.offsetY:m;return{x:v,y:_}},w0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={y:a==="bottom"||a==="top"?a:i.x,x:a==="left"||a==="right"?a:i.y},h={x:d.y==="bottom"?u:s,y:d.x==="left"?c:f},p={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Gm(e.offsetX)?e.offsetX:m,_=Gm(e.offsetY)?e.offsetY:b;return{x:v,y:_}},S0e=function(e,t,n){var r=t.orientation,a=t.axis,i=MR(e,a);return{top:{x:0,y:i!==void 0?i:n.y},bottom:{x:0,y:i!==void 0?i:e.height-n.y},left:{x:i!==void 0?i:n.x,y:0},right:{x:i!==void 0?i:e.width-n.x,y:0}}[r]},O0e=function(e,t,n){var r=e.tickStyle,a=e.labelStyle,i=r.size||0,o=r.padding||0,l=a.padding||0,s=i+o+l,u=sw[t];return{x:n?u*s:0,x2:n?u*i:0,y:n?0:u*s,y2:n?0:u*i}},C0e=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},E0e=function(e,t){var n=t.orientation,r=t.padding,a=t.isVertical,i=-sw[n],o=a?i*(e.width-(r.left+r.right)):0,l=a?0:i*(e.height-(r.top+r.bottom));return{x:o,y:l}},k0e=function(e,t){var n=e.padding,r=e.orientation,a=e.crossAxis,i=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:a?t.x-i:0,y:a?t.y-o:0}},P0e=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?w0e(e,t):x0e(e,t):n=_0e(e,t),{globalTransform:S0e(e,t,n),gridOffset:k0e(t,n),gridEdge:E0e(e,t)}},T0e=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},A0e=function(e){var t=f0e(e),n=O$(e,t),r=Wt(e),a=b0e(e,n),i=A0(e)?e.tickValues:void 0,o=Gr(e),l=Wu(e),s=c0e(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),p=AR(e,s,h),g=TR(e,s),b={x:ln(e,"x"),y:ln(e,"y")},m={x:e.domain&&e.domain.x?e.domain.x:u,y:e.domain&&e.domain.y?e.domain.y:c},v={x:e.domain&&e.domain.x?Va(e,"x").domain(e.domain.x).range(e.horizontal?b.y:b.x):f,y:e.domain&&e.domain.y?Va(e,"y").domain(e.domain.y).range(e.horizontal?b.x:b.y):d},_=m.x&&m.y?PR(m):void 0,x=_?{x:O3(_.x,m.x),y:O3(_.y,m.y)}:void 0,O=x?{x:W3("x",x.y,e.horizontal),y:W3("y",x.x,e.horizontal)}:void 0,S=O?e.orientation||O[o]:T0e(e),w=T0(Object.assign({},e,{orientation:S})),C=y0e(S,w);return{anchors:C,axis:o,crossAxis:h,domain:m,isVertical:w,labelPadding:a,orientation:S,orientations:O,origin:_,padding:r,scale:v,stringTicks:i,style:n,tickFormat:g,ticks:p}},M0e=function(e,t){var n=M0(e,t),r=A0e(n),a=r.axis,i=r.style,o=r.orientation,l=r.isVertical,s=r.scale,u=r.ticks,c=r.tickFormat,f=r.anchors,d=r.domain,h=r.stringTicks,p=a==="x"?"y":"x",g=n.width,b=n.height,m=n.standalone,v=n.theme,_=n.polar,x=n.padding,O=n.horizontal,S=P0e(n,r),w=S.globalTransform,C=S.gridOffset,A=S.gridEdge,I={scale:gp({},a,s[a]),polar:_,horizontal:O,ticks:u,stringTicks:h},P=m0e(n,r,w),T=v0e(n,r,w),E={parent:Object.assign({style:i.parent,ticks:u,standalone:m,theme:v,width:g,height:b,padding:x,domain:d},I)},L={dimension:p,range:gp({},p,ln(n,p)),scale:n.scale&&n.scale[p]?gp({},p,n.scale[p]):void 0};return u.reduce(function(N,U,W){var $,F,k,X=h?h[W]:U,te=c(U,W,u),R=g0e(i,Object.assign({},I,{tick:X,tickValue:U,index:W,text:te})),J={position:O0e(R,o,l),transform:C0e(($=s[a])===null||$===void 0?void 0:$.call(s,U),w,l)},ae={edge:A,transform:{x:l?-C.x+w.x:((F=s[a])===null||F===void 0?void 0:F.call(s,U))+w.x,y:l?((k=s[a])===null||k===void 0?void 0:k.call(s,U))+w.y:C.y+w.y}};return N[W]={axis:Object.assign({dimension:a},I,P),axisLabel:Object.assign({},I,T),ticks:Object.assign({},I,d0e(J,R.tickStyle,U)),tickLabels:Object.assign({},I,h0e(J,R.labelStyle,f,U,te)),grid:Object.assign({},I,L,p0e(ae,R.gridStyle,U))},N},E)};function I0e(e){return j0e(e)||L0e(e)||$0e(e)||R0e()}function R0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0e(e,t){if(e){if(typeof e=="string")return d5(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 d5(e,t)}}function L0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j0e(e){if(Array.isArray(e))return d5(e)}function d5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Km(e)}var C$={width:450,height:300,padding:50},W0e={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},va=function(e){F0e(n,e);var t=z0e(n);function n(){return D0e(this,n),t.apply(this,arguments)}return N0e(n,[{key:"renderLine",value:function(a){var i=a.axisComponent,o=this.getComponentProps(i,"axis",0);return M.cloneElement(i,o)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.label;if(!o)return null;var l=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,l)}},{key:"renderGridAndTicks",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.gridComponent,u=a.name,c=function(f){var d=f.style,h=d===void 0?{}:d,p=f.events,g=p===void 0?{}:p,b=h.stroke!=="transparent"&&h.stroke!=="none"&&h.strokeWidth!==0;return b||!Mt(g)};return this.dataKeys.map(function(f,d){var h=i.getComponentProps(o,"ticks",d),p=M.cloneElement(o,h),g=c(p.props)?p:void 0,b=i.getComponentProps(s,"grid",d),m=M.cloneElement(s,b),v=c(m.props)?m:void 0,_=i.getComponentProps(l,"tickLabels",d),x=M.cloneElement(l,_),O=[v,g,x].filter(Boolean);return M.cloneElement(a.groupComponent,{key:"".concat(u,"-tick-group-").concat(f)},O)})}},{key:"fixLabelOverlap",value:function(a,i){var o=T0(i),l=o?i.height:i.width,s=function(b){return b.type&&b.type.role==="label"},u=a.map(function(b){return b.props.children}).reduce(function(b,m){return b.concat(m)},[]).filter(s).map(function(b){return b.props}),c=function(b){return typeof b=="object"?Object.assign({},{top:0,right:0,bottom:0,left:0},b):{top:b,right:b,bottom:b,left:b}},f=u.reduce(function(b,m){var v=c(m.style.padding),_=Ml(m.text,{angle:m.angle,fontSize:m.style.fontSize,letterSpacing:m.style.letterSpacing,fontFamily:m.style.fontFamily});return b+(o?_.height+v.top+v.bottom:_.width+v.right+v.left)},0),d=Math.floor(l*a.length/f),h=Math.ceil(a.length/d)||1,p=function(b){return b.props.children.filter(s).reduce(function(m,v){return(o?v.props.y:v.props.x)||0},0)},g=a.sort(function(b,m){return o?p(m)-p(b):p(b)-p(m)});return g.filter(function(b,m){return m%h===0})}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=Jf.animationWhitelist,i=M0(this.props,C$),o=Ya(this.props);if(this.shouldAnimate())return this.animateComponent(i,a);var l=this.renderGridAndTicks(i),s=i.fixLabelOverlap?this.fixLabelOverlap(l,i):l,u=[this.renderLine(i),this.renderLabel(i)].concat(I0e(s)),c=M.cloneElement(i.containerComponent,o);return i.standalone?this.renderContainer(c,u):M.cloneElement(i.groupComponent,o,u)}}]),n}(M.Component);va.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];va.displayName="VictoryAxis";va.role="axis";va.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};va.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),tickLabelComponent:M.createElement(Dn,null),tickComponent:M.createElement(yl,null),gridComponent:M.createElement(yl,null),standalone:!0,theme:Di.grayscale,containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",{role:"presentation"}),fixLabelOverlap:!1};va.getDomain=Wu;va.getAxis=Gr;va.getStyles=function(e){return O$(e)};va.getBaseProps=function(e){return M0e(e,C$)};va.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Jf=Hu(va,W0e),Xn=function(e,t,n){return n==="x"?e*Math.cos(t):-e*Math.sin(t)},E$=function(e){var t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},V0e=function(e,t){var n=function(r){return t(r)%(2*Math.PI)};return y$(e,n)},uw=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},q0e=function(e){var t,n,r=e.theme,a=r===void 0?{}:r,i=e.dependentAxis,o=a.polarAxis&&a.polarAxis.style||a.axis&&a.axis.style,l=i?"polarDependentAxis":"polarIndependentAxis",s=i?"dependentAxis":"independentAxis",u=(a==null||(t=a[l])===null||t===void 0?void 0:t.style)||(a==null||(n=a[s])===null||n===void 0?void 0:n.style),c=function(){var f=["axis","axisLabel","grid","parent","tickLabels","ticks"];return f.reduce(function(d,h){return d[h]=me({},u==null?void 0:u[h],o==null?void 0:o[h]),d},{})};return o&&u?c():u||o},k$=function(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;if(o===void 0||l===void 0)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-r,l-a-i)/2},P$=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=E$(e);if(n==="angular"){var r=vt(e.startAngle),a=vt(e.endAngle);return[r,a]}var i=k$(e);return[e.innerRadius||0,i]},T$=function(e){var t=Gr(e),n=Va(e,t),r=Wu(e,t)||n.domain(),a=P$(e,t);return n.range(a),n.domain(r),n},A$=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{},r={height:"auto",width:"100%"};return{parent:me(r,n.parent,t.parent),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},F0=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,a=Gr(e),i=MR(e,a);return i===void 0||!r?t===void 0?n:t:bi(i)},G0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{tick:h,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:o,axisType:a,text:d}),g=p.tickStyle,b=a==="radial"?F0(e):void 0,m=g.padding||g.size||0,v=vt(90-b),_=a==="angular"?o(n):vt(-1*b),x=a==="angular"?i:o(n);return a==="angular"?{index:r,datum:h,style:g,x1:Xn(x,_,"x")+f.x,y1:Xn(x,_,"y")+f.y,x2:Xn(x+m,_,"x")+f.x,y2:Xn(x+m,_,"y")+f.y}:{index:r,datum:h,style:g,x1:x*Math.cos(_)+Math.cos(v)*m+f.x,x2:x*Math.cos(_)-Math.cos(v)*m+f.x,y1:x*Math.sin(_)+Math.sin(v)*m+f.y,y2:x*Math.sin(_)-Math.sin(v)*m+f.y}},K0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{text:d,tick:h,tickValue:n,index:r,ticks:u,stringTicks:c,radius:i,scale:s,axisType:a}),g=p.labelStyle,b=e.tickLabelComponent,m=b!=null&&b.props.labelPlacement?b.props.labelPlacement:e.labelPlacement,v=g.padding||0,_=0,x=a==="radial"?F0(e):void 0,O=a==="angular"?bi(s(n)):x+_,S=g.angle===void 0?yx(Object.assign({},e,{labelPlacement:m}),O):g.angle,w=a==="angular"?i+v:s(n),C=g.textAnchor||vx(Object.assign({},e,{labelPlacement:m}),O);return{index:r,datum:h,style:g,angle:S,textAnchor:C,text:d,x:w*Math.cos(vt(O))+f.x,y:-w*Math.sin(vt(O))+f.y}},X0e=function(e,t,n,r){var a=t.axisType,i=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,p=e.endAngle,g=e.innerRadius,b=g===void 0?0:g,m=s?s[r]:n,v=uw(o,{tick:m,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:l,axisType:a,text:d}),_=v.gridStyle,x=l(n);return a==="angular"?{index:r,datum:m,style:_,x1:Xn(i,x,"x")+f.x,y1:Xn(i,x,"y")+f.y,x2:Xn(b,x,"x")+f.x,y2:Xn(b,x,"y")+f.y}:{style:_,index:r,datum:m,cx:f.x,cy:f.y,r:l(n),startAngle:h,endAngle:p}},Y0e=function(e,t){var n=t.axisType,r=t.radius,a=t.style,i=t.origin,o=e.axisLabelComponent;if(n!=="radial")return{};var l=o!=null&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=a&&a.axisLabel||{},u=n==="radial"?F0(e):void 0,c=s.angle===void 0?yx(Object.assign({},e,{labelPlacement:l}),u):s.angle,f=r+(s.padding||0),d=s.textAnchor||vx(Object.assign({},e,{labelPlacement:l}),u),h=s.verticalAnchor||pI(Object.assign({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:d,verticalAnchor:h,text:e.label,x:Xn(f,vt(u),"x")+i.x,y:Xn(f,vt(u),"y")+i.y}},Q0e=function(e,t){var n=t.style,r=t.axisType,a=t.radius,i=t.origin,o=e.startAngle,l=e.endAngle,s=e.innerRadius,u=s===void 0?0:s,c=r==="radial"?vt(F0(e)):void 0;return r==="radial"?{style:n.axis,x1:Xn(u,c,"x")+i.x,x2:Xn(a,c,"x")+i.x,y1:Xn(u,c,"y")+i.y,y2:Xn(a,c,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:a,startAngle:o,endAngle:l}},J0e=function(e){var t=Object.assign({polar:!0},e),n=q0e(t),r=A$(t,n),a=Wt(t),i=Gr(t),o=E$(t),l=A0(t)?t.tickValues:void 0,s=Wu(t,i),u=P$(t,i),c=T$(t),f=AR(t,c),d=o==="angular"?V0e(f,c):f,h=TR(t,c),p=k$(t),g=Nd(t);return{axis:i,style:r,padding:a,stringTicks:l,axisType:o,scale:c,ticks:d,tickFormat:h,domain:s,range:u,radius:p,origin:g}},Z0e=function(e,t){var n=M0(e,t),r=J0e(n),a=r.style,i=r.scale,o=r.ticks,l=r.domain,s=n.width,u=n.height,c=n.standalone,f=n.theme,d=n.name,h=Q0e(n,r),p=Y0e(n,r),g={parent:{style:a.parent,ticks:o,scale:i,width:s,height:u,domain:l,standalone:c,theme:f,name:d}};return o.reduce(function(b,m,v){return b[v]={axis:h,axisLabel:p,ticks:G0e(n,r,m,v),tickLabels:K0e(n,r,m,v),grid:X0e(n,r,m,v)},b},g)};function uy(e){return rve(e)||nve(e)||tve(e)||eve()}function eve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tve(e,t){if(e){if(typeof e=="string")return p5(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 p5(e,t)}}function nve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rve(e){if(Array.isArray(e))return p5(e)}function p5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xm(e)}var cw={width:450,height:300,padding:50},Kr=function(e){ove(n,e);var t=lve(n);function n(){return ave(this,n),t.apply(this,arguments)}return ive(n,[{key:"renderAxisLine",value:function(a){var i=a.dependentAxis,o=i?a.axisComponent:a.circularAxisComponent,l=this.getComponentProps(o,"axis",0);return M.cloneElement(o,l)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.dependentAxis,l=a.label;if(!l||!o)return null;var s=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,s)}},{key:"renderAxis",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.name,u=function(v){var _=v.style,x=_===void 0?{}:_,O=v.events,S=O===void 0?{}:O,w=x.stroke!=="transparent"&&x.stroke!=="none"&&x.strokeWidth!==0;return w||!Mt(S)},c=a.dependentAxis?"radial":"angular",f=c==="radial"?a.circularGridComponent:a.gridComponent,d=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(o,"ticks",_)),O=M.cloneElement(o,x);return u(O.props)?O:void 0}).filter(Boolean),h=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-grid-").concat(v)},i.getComponentProps(f,"grid",_)),O=M.cloneElement(f,x);return u(O.props)?O:void 0}).filter(Boolean),p=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(l,"tickLabels",_));return M.cloneElement(l,x)}),g=this.renderAxisLine(a),b=this.renderLabel(a),m=[g,b].concat(uy(d),uy(h),uy(p));return this.renderGroup(a,m)}},{key:"renderGroup",value:function(a,i){var o=a.groupComponent;return M.cloneElement(o,{},i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=g5.animationWhitelist,i=M0(this.props,cw);if(this.shouldAnimate())return this.animateComponent(i,a);var o=this.renderAxis(i);return i.standalone?this.renderContainer(i.containerComponent,o):o}}]),n}(M.Component);Kr.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];Kr.displayName="VictoryAxis";Kr.role="axis";Kr.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};Kr.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),circularAxisComponent:M.createElement(LE,null),circularGridComponent:M.createElement(LE,null),containerComponent:M.createElement(En,null),endAngle:360,gridComponent:M.createElement(yl,null),groupComponent:M.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Di.grayscale,tickComponent:M.createElement(yl,null),tickLabelComponent:M.createElement(Dn,null)};Kr.getDomain=Wu;Kr.getAxis=Gr;Kr.getScale=T$;Kr.getStyles=function(e){return A$(e,cw.style)};Kr.getBaseProps=function(e){return Z0e(e,cw)};Kr.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var fve={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},g5=Hu(Kr,fve),dve={width:450,height:300,padding:50};function hve(e,t,n){var r=n.domain,a=n.scale,i=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:i,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:a}}function pve(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],a=t.range.x[1]-t.range.x[0],i=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:i,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:a};return M.cloneElement(n,me({},n.props,c))}function mve(e,t,n){var r=ER([e]);if(r.length>0)return hve(r[0],t,n);var a=n.categories,i=n.domain,o=n.range,l=n.scale,s=n.stringMap,u=n.horizontal;return{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}}function gve(e){var t=e.style&&e.style.parent;return{parent:me({},t,{height:"100%",width:"100%",userSelect:"none"})}}function M$(e,t){var n=gve(e),r=on(e,dve,"chart"),a=r.horizontal,i=r.polar,o=x$(r,t),l=w$(r,t,o),s=yve(r,t,o),u={x:G3(Object.assign({},r,{categories:l}),"x",t),y:G3(Object.assign({},r,{categories:l}),"y",t)},c={x:ln(r,"x"),y:ln(r,"y")},f={x:Qf(r,"x")||Vm(r,"x"),y:Qf(r,"y")||Vm(r,"y")},d={x:f.x.domain(u.x).range(a?c.y:c.x),y:f.y.domain(u.y).range(a?c.x:c.y)},h=i?Nd(r):PR(u),p=Wt(r);return{categories:l,domain:u,range:c,horizontal:a,scale:d,stringMap:s,style:n,origin:h,padding:p}}function vve(e,t,n){var r=t||I$(e),a=n||M$(e,r),i=a.style.parent,o=e.height,l=e.polar,s=e.theme,u=e.width,c=a.origin,f=a.horizontal,d=e.name||"chart";return r.filter(M.isValidElement).map(function(h,p){var g=h.type&&h.type.role,b=Array.isArray(h.props.style)?h.props.style:me({},h.props.style,{parent:i}),m=mve(h,e,a),v=h.props.name||"".concat(d,"-").concat(g,"-").concat(p),_=me({horizontal:f,height:o,polar:l,theme:s,width:u,style:b,name:v,origin:l?c:void 0,padding:a.padding,key:"".concat(v,"-key-").concat(p),standalone:!1},m);return M.cloneElement(h,_)})}var I$=function(e,t){var n=M.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{var r={dependent:S3(n,"dependent"),independent:S3(n,"independent")};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},G3=function(e,t,n){var r=n||M.Children.toArray(e.children),a=o5(e,t,r),i=kR(r,t),o=i&&i.props&&i.props.invertAxis;return o?a.concat().reverse():a},yve=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(i,o,l){return i[o]=l+1,i},{}),a=!n.y||n.y.length===0?null:n.y.reduce(function(i,o,l){return i[o]=l+1,i},{});return{x:r,y:a}};function K3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function X3(e){for(var t=1;t{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,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},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}}},h5e=[s5e.var,u5e.var,c5e.var,f5e.var,d5e.var],Y3=Fi({COLOR_SCALE:h5e}),p5e={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},m5e={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},g5e={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},v5e={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},y5e={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},b5e=[p5e.var,m5e.var,g5e.var,v5e.var,y5e.var],_5e=Fi({COLOR_SCALE:b5e}),x5e={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},w5e={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},S5e={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},O5e={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},C5e={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},E5e=[x5e.var,w5e.var,S5e.var,O5e.var,C5e.var],k5e=Fi({COLOR_SCALE:E5e}),P5e={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},T5e={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},A5e={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},M5e={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},I5e={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},R5e=[P5e.var,T5e.var,A5e.var,M5e.var,I5e.var],$5e=Fi({COLOR_SCALE:R5e}),L5e={name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"},j5e={name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"},D5e={name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"},N5e={name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"},F5e={name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"},z5e=[L5e.var,j5e.var,D5e.var,N5e.var,F5e.var],B5e=Fi({COLOR_SCALE:z5e}),U5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},H5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},W5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},V5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},G5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},K5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},X5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},Y5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},Q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},J5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},Z5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},e2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},t2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},n2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},r2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},a2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},i2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},o2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},l2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},s2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},u2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},c2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},f2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},d2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},h2e=[U5e.var,H5e.var,W5e.var,V5e.var,q5e.var,G5e.var,K5e.var,X5e.var,Y5e.var,Q5e.var,J5e.var,Z5e.var,e2e.var,t2e.var,n2e.var,r2e.var,a2e.var,i2e.var,o2e.var,l2e.var,s2e.var,u2e.var,c2e.var,f2e.var,d2e.var],p2e=Fi({COLOR_SCALE:h2e}),m2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},g2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},v2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},y2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},b2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},_2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},x2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},w2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},S2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},O2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},C2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},E2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},k2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},P2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},T2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},A2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},M2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},I2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},R2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},$2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},L2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},j2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},D2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},N2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},F2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},z2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},B2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},U2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},H2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},W2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},V2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},q2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},G2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},K2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},X2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},Y2e=[m2e.var,g2e.var,v2e.var,y2e.var,b2e.var,_2e.var,x2e.var,w2e.var,S2e.var,O2e.var,C2e.var,E2e.var,k2e.var,P2e.var,T2e.var,A2e.var,M2e.var,I2e.var,R2e.var,$2e.var,L2e.var,j2e.var,D2e.var,N2e.var,F2e.var,z2e.var,B2e.var,U2e.var,H2e.var,W2e.var,V2e.var,q2e.var,G2e.var,K2e.var,X2e.var],Q2e=Fi({COLOR_SCALE:Y2e}),J2e={name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"},Z2e={name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"},e_e={name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"},t_e={name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"},n_e={name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"},r_e=[J2e.var,Z2e.var,e_e.var,t_e.var,n_e.var],a_e=Fi({COLOR_SCALE:r_e}),i_e={name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"},o_e={name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"},l_e={name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"},s_e={name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"},u_e={name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"},c_e=[i_e.var,o_e.var,l_e.var,s_e.var,u_e.var],f_e=Fi({COLOR_SCALE:c_e}),F$=(e,t)=>R$(Xr(e),t),Xr=e=>{const t=Object.assign({},JSON.parse(JSON.stringify(o5e)));return R$(t,d_e(e))},d_e=e=>{switch(e){case xa.blue:return Y3;case xa.cyan:return _5e;case xa.gold:return k5e;case xa.gray:return $5e;case xa.green:return B5e;case xa.multi:case xa.multiOrdered:return p2e;case xa.multiUnordered:return Q2e;case xa.orange:return a_e;case xa.purple:return f_e;default:return Y3}},B0=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v5-c-chart ${t}`:"pf-v5-c-chart"},Qa=e=>{var{className:t,themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["className","themeColor","theme"]);const i=B0({className:t});return y.createElement(En,Object.assign({className:i,theme:r},a))};Qa.displayName="ChartContainer";Vr(Qa,En);var h_e=Math.ceil,p_e=Math.max;function m_e(e,t,n,r){for(var a=-1,i=p_e(h_e((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var g_e=m_e,v_e=/\s/;function y_e(e){for(var t=e.length;t--&&v_e.test(e.charAt(t)););return t}var b_e=y_e,__e=b_e,x_e=/^\s+/;function w_e(e){return e&&e.slice(0,__e(e)+1).replace(x_e,"")}var S_e=w_e,O_e=S_e,Q3=yr,C_e=Rd,J3=NaN,E_e=/^[-+]0x[0-9a-f]+$/i,k_e=/^0b[01]+$/i,P_e=/^0o[0-7]+$/i,T_e=parseInt;function A_e(e){if(typeof e=="number")return e;if(C_e(e))return J3;if(Q3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Q3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=O_e(e);var n=k_e.test(e);return n||P_e.test(e)?T_e(e.slice(2),n?2:8):E_e.test(e)?J3:+e}var z$=A_e,M_e=z$,Z3=1/0,I_e=17976931348623157e292;function R_e(e){if(!e)return e===0?e:0;if(e=M_e(e),e===Z3||e===-Z3){var t=e<0?-1:1;return t*I_e}return e===e?e:0}var $_e=R_e,L_e=g_e,j_e=z_,dy=$_e;function D_e(e){return function(t,n,r){return r&&typeof r!="number"&&j_e(t,n,r)&&(n=r=void 0),t=dy(t),n===void 0?(n=t,t=0):n=dy(n),r=r===void 0?te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),data:me({},n.data,t.data),labels:me({},n.labels,t.labels),border:me({},n.border,t.border),title:me({},n.title,t.title)}},H$=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},a=K_e(e,r),i=G_e(e),o=t==="horizontal",l=Wt({padding:e.borderPadding});return Object.assign({},e,{style:a,isHorizontal:o,colorScale:i,borderPadding:l})},X_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Y_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},W$=function(e){var t=e.data,n=e.style&&e.style.data||{},r=U$(e);return t.map(function(a,i){var o=a.symbol||{},l=r[i].fontSize,s=o.size||n.size||l/2.5,u=e.symbolSpacer||Math.max(s,l);return nk(nk({},a),{},{size:s,symbolSpacer:u,fontSize:l,textSize:Ml(a.name,r[i]),column:X_e(e,i),row:Y_e(e,i)})})},V$=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,a=lw(t,"column"),i=Object.keys(a);return i.reduce(function(o,l,s){var u=a[l].map(function(c){return c.textSize.width+c.size+c.symbolSpacer+r});return o[s]=Math.max.apply(Math,B$(u)),o},[])},q$=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,a=lw(t,"row");return Object.keys(a).reduce(function(i,o,l){var s=a[o],u=s.map(function(c){return c.textSize.height+c.symbolSpacer+r});return i[l]=Math.max.apply(Math,B$(u)),i},[])},G$=function(e){var t=e.style&&e.style.title||{},n=Ml(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Q_e=function(e,t,n){var r=e.column,a=e.row;return{x:ek(r).reduce(function(i,o){return i+n[o]},0),y:ek(a).reduce(function(i,o){return i+t[o]},0)}},J_e=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},Z_e=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,a=e.style&&e.style.title||{},i=r.props&&r.props.style||{},o=J_e(t,n);return Array.isArray(i)?i.map(function(l){return me({},l,a,o)}):me({},i,a,o)},exe=function(e,t){var n=e.title,r=e.titleOrientation,a=e.centerTitle,i=e.borderPadding,o=t.height,l=t.width,s=Z_e(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:a?l/2:i[f]+(u||0),y:a?o/2:i[d]+(u||0)},p=function(){return i[r]+(u||0)},g=c?h.x:p(),b=c?p():h.y;return{x:r==="right"?e.x+l-g:e.x+g,y:r==="bottom"?e.y+o-b:e.y+b,style:s,text:n}},txe=function(e,t,n){var r=e.x,a=e.y,i=e.borderPadding,o=e.style,l=(t||0)+i.top+i.bottom,s=(n||0)+i.left+i.right;return{x:r,y:a,height:l,width:s,style:Object.assign({fill:"none"},o.border)}},K$=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,H$(n)),a=r.title,i=r.titleOrientation,o=W$(r),l=V$(r,o),s=q$(r,o),u=a?G$(r):{height:0,width:0};return{height:i==="left"||i==="right"?Math.max(Nh(s),u.height):Nh(s)+u.height,width:i==="left"||i==="right"?Nh(l)+u.width:Math.max(Nh(l),u.width)}},nxe=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,H$(n)),a=r.data,i=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,p=r.titleOrientation,g=r.name,b=r.x,m=b===void 0?0:b,v=r.y,_=v===void 0?0:v,x=W$(r),O=V$(r,x),S=q$(r,x),w=U$(r),C=h?G$(r):{height:0,width:0},A={x:p==="left"?C.width:0,y:p==="top"?C.height:0},I={x:c&&typeof c=="object"&&c.left||0,y:f&&typeof f=="object"&&f.top||0},P=K$(r,t),T=P.height,E=P.width,L=txe(r,T,E),N=exe(r,L),U={parent:{data:a,standalone:i,theme:o,padding:l,name:g,height:r.height,width:r.width,style:s.parent},all:{border:L,title:N}};return x.reduce(function(W,$,F){var k=u[F%u.length],X=me({},$.symbol,s.data,{fill:k}),te=Wa($.eventKey)?F:$.eventKey,R=Q_e($,S,O),J=_+d.top+$.symbolSpacer,ae=m+d.left+$.symbolSpacer,ue={index:F,data:a,datum:$,symbol:X.type||X.symbol||"circle",size:$.size,style:X,y:J+R.y+A.y+I.y,x:ae+R.x+A.x+I.x},ve={datum:$,data:a,text:$.name,style:w[F],y:ue.y,x:ue.x+$.symbolSpacer+$.size/2};return W[te]={data:ue,labels:ve},W},U)};function Nh(e){if(e&&e.length){for(var t=0,n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ym(e)}var dw={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},pxe=[{name:"Series 1"},{name:"Series 2"}],Kl=function(e){uxe(n,e);var t=cxe(n);function n(){return lxe(this,n),t.apply(this,arguments)}return sxe(n,[{key:"renderChildren",value:function(a){var i=this,o=a.dataComponent,l=a.labelComponent,s=a.title,u=[];if(a.borderComponent){var c=this.getComponentProps(a.borderComponent,"border","all"),f=M.cloneElement(a.borderComponent,c);u.push(f)}if(o){var d=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(o,"data",m);return M.cloneElement(o,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,rk(d))}if(s&&a.titleComponent){var h=this.getComponentProps(s,"title","all"),p=M.cloneElement(a.titleComponent,h);u.push(p)}if(l){var g=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(l,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(l,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,rk(g))}return u}},{key:"render",value:function(){var a=this.constructor.role,i=on(this.props,dw,a),o=this.renderChildren(i);return i.standalone?this.renderContainer(i.containerComponent,o):M.cloneElement(i.groupComponent,{},o)}}]),n}(M.Component);Kl.displayName="VictoryLegend";Kl.role="legend";Kl.defaultProps={borderComponent:M.createElement(Iue,null),data:pxe,containerComponent:M.createElement(En,null),dataComponent:M.createElement(nce,null),groupComponent:M.createElement("g",null),labelComponent:M.createElement(Dn,null),standalone:!0,theme:Di.grayscale,titleComponent:M.createElement(Dn,null)};Kl.getBaseProps=function(e){return nxe(e,dw)};Kl.getDimensions=function(e){return K$(e,dw)};Kl.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var U0=Hu(Kl);const mxe={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},gxe=mxe,vxe={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},yxe=vxe,bxe=L$.var,_xe=j$.var,xxe=fw.value,wxe={label:{fontFamily:bxe,fontSize:xxe,letterSpacing:_xe,margin:gxe.value,fill:D$.var},legend:{margin:E8.value,position:yxe.value}},Sxe={name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"},Oxe=Sxe,Cxe={name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"},Exe=Cxe,kxe={name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"},Pxe=kxe,Txe={name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"},Axe=Txe,Mxe={label:{subTitle:{fill:Exe.var,fontSize:fw.value},subTitlePosition:Axe.value,title:{fill:Pxe.var,fontSize:Oxe.value}}},gn=wxe,bc=Mxe,Wr=e=>{var{style:t,textAnchor:n}=e,r=Q(e,["style","textAnchor"]);const a=o=>me(Object.assign(Object.assign({},o),{textAnchor:n}),{fill:gn.label.fill,fontFamily:gn.label.fontFamily,fontSize:gn.label.fontSize,letterSpacing:gn.label.letterSpacing}),i=Array.isArray(t)?t.map(a):a(t);return y.createElement(Dn,Object.assign({style:i,textAnchor:n},r))};Wr.displayName="ChartLabel";Vr(Wr,Dn);const rr={circle:(e,t,n)=>`M ${e}, ${t} + `).concat(l*Math.cos(a*(o+1))+t)});return"M ".concat(i.join("L")," z")}const Que=Object.freeze(Object.defineProperty({__proto__:null,circle:Uue,cross:Kue,diamond:Wue,minus:Xue,plus:Gue,square:Hue,star:Yue,triangleDown:Vue,triangleUp:que},Symbol.toStringTag,{value:"Module"}));function FE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rh(e){for(var t=1;t-1}var gce=mce;function vce(e,t,n){for(var r=-1,a=e==null?0:e.length;++r=Ice){var u=t?null:Ace(e);if(u)return Mce(u);o=!1,a=Tce,s=new Ece}else s=t?[]:l;e:for(;++re.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce(function(a,i){var o=n[i],l=LI(e,t[i],n[i],i);return a[i]=l||o,Am(a,function(s){return!Mt(s)})},{})}function LI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,a=Object.keys(t);return a.reduce(function(i,o){var l=n[o]||{},s=t[o]||{};if(o==="parent"){var u={eventKey:o,target:"parent"},c=zE(e,s,l,u);i[o]=c!==void 0?Object.assign({},l,c):l}else{var f=Il(Object.keys(s).concat(Object.keys(l)));i[o]=f.reduce(function(d,h){var p={eventKey:o,target:h,childName:r},g=zE(e,s[h],l[h],p);return d[h]=g!==void 0?Object.assign({},l[h],g):l[h],Am(d,function(b){return!Mt(b)})},{})}return Am(i,function(d){return!Mt(d)})},{})}function zE(e,t,n,r){var a=function(s,u){if(typeof s[u]=="string")return s[u]==="all"||s[u]===r[u];if(Array.isArray(s[u])){var c=s[u].map(function(f){return"".concat(f)});return c.includes(r[u])}return!1},i=Array.isArray(e)?e:[e];r.childName&&(i=e.filter(function(s){return a(s,"childName")}));var o=i.filter(function(s){return a(s,"target")});if(!Mt(o)){var l=o.filter(function(s){return a(s,"eventKey")});if(!Mt(l))return l.reduce(function(s,u){var c=u&&Xe(u.mutation)?u.mutation:function(){},f=c(Object.assign({},t,n));return Object.assign({},s,f)},{})}}function Ox(e,t){var n=Array.isArray(t)&&t.reduce(function(r,a){var i=e[a],o=i&&i.type&&i.type.defaultEvents,l=Xe(o)?o(i.props):o;return Array.isArray(l)?r.concat.apply(r,AI(l)):r},[]);return n&&n.length?n:void 0}function Mm(e){var t=e.match(Sx);return t&&t[1]&&t[1].toLowerCase()}var jI=function(e){return Am(e,function(t,n){return Sx.test(n)})},DI=function(e){return TI(e,function(t,n){return Sx.test(n)})},NI=function(e){return Object.assign(e,{nativeEvent:e})};function Lh(e){return gfe(e)||mfe(e)||pfe(e)||hfe()}function hfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pfe(e,t){if(e){if(typeof e=="string")return H1(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 H1(e,t)}}function mfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gfe(e){if(Array.isArray(e))return H1(e)}function H1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Im(e){return Im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Im(e)}var Sfe=function(e){return!Wa(e._x)&&!Wa(e._y)},Ofe=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function Hu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(r){bfe(i,r);var a=_fe(i);function i(o){var l;return vfe(this,i),l=a.call(this,o),l.state={},l.getEventState=$I.bind(mp(l)),l.getScopedEvents=II.bind(mp(l)),l.getEvents=function(s,u,c){return MI.call(mp(l),s,u,c,l.getScopedEvents)},l.externalMutations=l.getExternalMutations(l.props),l.calculatedState=l.getStateChanges(l.props),l.globalEvents={},l.prevGlobalEventKeys=[],l.boundGlobalEvents={},l.cacheValues(l.getCalculatedValues(o)),l}return yfe(i,[{key:"shouldComponentUpdate",value:function(l){var s=this.getExternalMutations(l),u=this.props.animating||this.props.animate,c=!Ba(s,this.externalMutations);if(u||c)return this.cacheValues(this.getCalculatedValues(l)),this.externalMutations=s,this.applyExternalMutations(l,s),!0;var f=this.getStateChanges(l);return Ba(this.calculatedState,f)?Ba(this.props,l)?!1:(this.cacheValues(this.getCalculatedValues(l)),!0):(this.cacheValues(this.getCalculatedValues(l)),!0)}},{key:"componentDidMount",value:function(){var l=this,s=Object.keys(this.globalEvents);s.forEach(function(u){return l.addGlobalListener(u)}),this.prevGlobalEventKeys=s}},{key:"componentDidUpdate",value:function(l){var s=this,u=this.getStateChanges(l);this.calculatedState=u;var c=Object.keys(this.globalEvents),f=Om(this.prevGlobalEventKeys,c);f.forEach(function(h){return s.removeGlobalListener(h)});var d=Om(c,this.prevGlobalEventKeys);d.forEach(function(h){return s.addGlobalListener(h)}),this.prevGlobalEventKeys=c}},{key:"componentWillUnmount",value:function(){var l=this;this.prevGlobalEventKeys.forEach(function(s){return l.removeGlobalListener(s)})}},{key:"addGlobalListener",value:function(l){var s=this,u=function(c){var f=s.globalEvents[l];return f&&f(NI(c))};this.boundGlobalEvents[l]=u,window.addEventListener(Mm(l),u)}},{key:"removeGlobalListener",value:function(l){window.removeEventListener(Mm(l),this.boundGlobalEvents[l])}},{key:"getStateChanges",value:function(l){var s=this;if(!this.hasEvents)return{};var u=function(d,h){var p=me({},s.getEventState(d,h),s.getSharedEventState(d,h));return Mt(p)?void 0:p},c=t.components||Ofe,f=c.map(function(d){if(!(!l.standalone&&d.name==="parent"))return d.index!==void 0?u(d.index,d.name):s.dataKeys.map(function(h){return u(h,d.name)}).filter(Boolean)}).filter(Boolean);return f}},{key:"applyExternalMutations",value:function(l,s){if(!Mt(s)){var u=l.externalEventMutations.reduce(function(f,d){return Xe(d.callback)?f.concat(d.callback):f},[]),c=u.length?function(){u.forEach(function(f){return f()})}:void 0;this.setState(s,c)}}},{key:"getCalculatedValues",value:function(l){var s=l.sharedEvents,u=e.expectedComponents,c=Ox(l,u),f=s&&Xe(s.getEventState)?s.getEventState:function(){},d=this.getBaseProps(l,f),h=Object.keys(d).filter(function(b){return b!=="parent"}),p=l.events||l.sharedEvents||c,g=this.getAllEvents(l);return{componentEvents:c,getSharedEventState:f,baseProps:d,dataKeys:h,hasEvents:p,events:g}}},{key:"getExternalMutations",value:function(l){var s=l.sharedEvents,u=l.externalEventMutations;return Mt(u)||s?void 0:LI(u,this.baseProps,this.state)}},{key:"cacheValues",value:function(l){var s=this;Object.keys(l).forEach(function(u){s[u]=l[u]})}},{key:"getBaseProps",value:function(l,s){var u=s||this.getSharedEventState.bind(this),c=u("parent","parent"),f=this.getEventState("parent","parent"),d=me({},f,c),h=d.parentControlledProps,p=h?Gf(d,h):{},g=me({},p,l);return typeof e.getBaseProps=="function"?e.getBaseProps(g):{}}},{key:"getAllEvents",value:function(l){if(Array.isArray(this.componentEvents)){var s;return Array.isArray(l.events)?(s=this.componentEvents).concat.apply(s,Lh(l.events)):this.componentEvents}return l.events}},{key:"getComponentProps",value:function(l,s,u){var c=this.props.name||e.role,f=this.dataKeys&&this.dataKeys[u]||u,d="".concat(c,"-").concat(s,"-").concat(f),h=this.baseProps[f]&&this.baseProps[f][s]||this.baseProps[f];if(!(!h&&!this.hasEvents)){var p=l&&typeof l=="object"&&"props"in l?l.props:void 0;if(this.hasEvents){var g=this.getEvents(this.props,s,f),b=me({index:u,key:d},this.getEventState(f,s),this.getSharedEventState(f,s),p,h,{id:d}),m=me({},RI(g,f,b),b.events);return Object.assign({},b,{events:m})}return me({index:u,key:d},p,h,{id:d})}}},{key:"renderContainer",value:function(l,s){var u=l.type&&l.type.role==="container",c=u?this.getComponentProps(l,"parent","parent"):{};return c.events&&(this.globalEvents=jI(c.events),c.events=DI(c.events)),M.cloneElement(l,c,s)}},{key:"animateComponent",value:function(l,s){var u,c=typeof l.animate=="object"&&((u=l.animate)===null||u===void 0?void 0:u.animationWhitelist)||s,f=this.constructor;return M.createElement(wx,{animate:l.animate,animationWhitelist:c},M.createElement(f,l))}},{key:"renderContinuousData",value:function(l){var s=this,u=l.dataComponent,c=l.labelComponent,f=l.groupComponent,d=this.dataKeys.filter(function(b){return b!=="all"}),h=d.reduce(function(b,m){var v=b,_=s.getComponentProps(c,"labels",m);return _&&_.text!==void 0&&_.text!==null&&(v=v.concat(M.cloneElement(c,_))),v},[]),p=this.getComponentProps(u,"data","all"),g=[M.cloneElement(u,p)].concat(Lh(h));return this.renderContainer(f,g)}},{key:"renderData",value:function(l){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sfe,c=l.dataComponent,f=l.labelComponent,d=l.groupComponent,h=this.dataKeys.reduce(function(b,m,v){var _=s.getComponentProps(c,"data",v);return u(_.datum)&&b.push(M.cloneElement(c,_)),b},[]),p=this.dataKeys.map(function(b,m){var v=s.getComponentProps(f,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(f,v)}).filter(Boolean),g=[].concat(Lh(h),Lh(p));return this.renderContainer(d,g)}}]),i}(e);return n}var Cfe=jo,Efe=ji,kfe="[object Date]";function Pfe(e){return Efe(e)&&Cfe(e)==kfe}var Tfe=Pfe,Afe=Tfe,Mfe=e0,UE=Ad,HE=UE&&UE.isDate,Ife=HE?Mfe(HE):Afe,Rfe=Ife;const FI=at(Rfe);var $fe=Fl;function Lfe(e,t){for(var n=-1,r=e.length,a=0,i=[];++nt?1:e>=t?0:NaN}function Kfe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function Cx(e){let t,n,r;e.length!==2?(t=_o,n=(l,s)=>_o(e(l),s),r=(l,s)=>e(l)-s):(t=e===_o||e===Kfe?e:Xfe,n=e,r=e);function a(l,s,u=0,c=l.length){if(u>>1;n(l[f],s)<0?u=f+1:c=f}while(u>>1;n(l[f],s)<=0?u=f+1:c=f}while(uu&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function Xfe(){return 0}function zI(e){return e===null?NaN:+e}function*Yfe(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 Qfe=Cx(_o),Fd=Qfe.right;Cx(zI).center;class WE extends Map{constructor(t,n=ede){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(VE(this,t))}has(t){return super.has(VE(this,t))}set(t,n){return super.set(Jfe(this,t),n)}delete(t){return super.delete(Zfe(this,t))}}function VE({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Jfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zfe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ede(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tde(e=_o){if(e===_o)return BI;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 BI(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const nde=Math.sqrt(50),rde=Math.sqrt(10),ade=Math.sqrt(2);function Rm(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=nde?10:i>=rde?5:i>=ade?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/ut&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*ut&&--s),s0))return[];if(e===t)return[e];const r=t=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u=r)&&(n=r);else{let r=-1;for(let a of e)(a=t(a,++r,e))!=null&&(n=a)&&(n=a)}return n}function GE(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 a of e)(a=t(a,++r,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a)}return n}function UI(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?BI:tde(a);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)),p=Math.min(r,Math.floor(t+(s-u)*f/s+d));UI(e,t,h,p,a)}const i=e[t];let o=n,l=r;for(mc(e,n,t),a(e[r],i)>0&&mc(e,n,r);o0;)--l}a(e[n],i)===0?mc(e,n,l):(++l,mc(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function mc(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ide(e,t,n){if(e=Float64Array.from(Yfe(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return GE(e);if(t>=1)return qE(e);var r,a=(r-1)*t,i=Math.floor(a),o=qE(UI(e,i).subarray(0,i+1)),l=GE(e.subarray(i+1));return o+(l-o)*(a-i)}}function ode(e,t,n=zI){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function lde(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++rt&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fde(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a2?dde:fde,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(a((u||(u=l(t,e.map(r),cm)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,$m),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=sx,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ln,c()):o!==Ln},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,a=h,c()}}function Px(){return O0()(Ln,Ln)}function hde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Lm(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 wu(e){return e=Lm(Math.abs(e)),e?e[1]:NaN}function pde(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function mde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xf(e){if(!(t=gde.exec(e)))throw new Error("invalid format: "+e);var t;return new Tx({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]})}Xf.prototype=Tx.prototype;function Tx(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+""}Tx.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 vde(e){e:for(var t=e.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var WI;function yde(e,t){var n=Lm(e,t);if(!n)return e+"";var r=n[0],a=n[1],i=a-(WI=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Lm(e,Math.max(0,t+i-1))[0]}function XE(e,t){var n=Lm(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const YE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hde,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)=>XE(e*100,t),r:XE,s:yde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function QE(e){return e}var JE=Array.prototype.map,ZE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bde(e){var t=e.grouping===void 0||e.thousands===void 0?QE:pde(JE.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?QE:mde(JE.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=Xf(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,b=f.zero,m=f.width,v=f.comma,_=f.precision,x=f.trim,O=f.type;O==="n"?(v=!0,O="g"):YE[O]||(_===void 0&&(_=12),x=!0,O="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var S=g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",w=g==="$"?r:/[%p]/.test(O)?o:"",C=YE[O],A=/[defgprs%]/.test(O);_=_===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function I(P){var T=S,E=w,L,N,U;if(O==="c")E=C(P)+E,P="";else{P=+P;var W=P<0||1/P<0;if(P=isNaN(P)?s:C(Math.abs(P),_),x&&(P=vde(P)),W&&+P==0&&p!=="+"&&(W=!1),T=(W?p==="("?p:l:p==="-"||p==="("?"":p)+T,E=(O==="s"?ZE[8+WI/3]:"")+E+(W&&p==="("?")":""),A){for(L=-1,N=P.length;++LU||U>57){E=(U===46?a+P.slice(L+1):P.slice(L))+E,P=P.slice(0,L);break}}}v&&!b&&(P=t(P,1/0));var $=T.length+P.length+E.length,F=$>1)+T+P+E+F.slice($);break;default:P=F+T+P+E;break}return i(P)}return I.toString=function(){return f+""},I}function c(f,d){var h=u((f=Xf(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(wu(d)/3)))*3,g=Math.pow(10,-p),b=ZE[8+p/3];return function(m){return h(g*m)+b}}return{format:u,formatPrefix:c}}var jh,Ax,VI;_de({thousands:",",grouping:[3],currency:["$",""]});function _de(e){return jh=bde(e),Ax=jh.format,VI=jh.formatPrefix,jh}function xde(e){return Math.max(0,-wu(Math.abs(e)))}function wde(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wu(t)/3)))*3-wu(Math.abs(e)))}function Sde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wu(t)-wu(e))+1}function qI(e,t,n,r){var a=G1(e,t,n),i;switch(r=Xf(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=wde(a,o))&&(r.precision=i),VI(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=Sde(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=xde(a))&&(r.precision=i-(r.type==="%")*2);break}}return Ax(r)}function Do(e){var t=e.domain;return e.ticks=function(n){var r=t();return V1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return qI(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,c=10;for(l0;){if(u=q1(o,l,n),u===s)return r[a]=o,r[i]=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 Mx(){var e=Px();return e.copy=function(){return zd(e,Mx())},qr.apply(e,arguments),Do(e)}function GI(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,$m),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return GI(e).unknown(t)},e=arguments.length?Array.from(e,$m):[0,1],Do(n)}function KI(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return iMath.pow(e,t)}function Pde(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 n3(e){return(t,n)=>-e(-t,n)}function Ix(e){const t=e(e3,t3),n=t.domain;let r=10,a,i;function o(){return a=Pde(r),i=kde(r),n()[0]<0?(a=n3(a),i=n3(i),e(Ode,Cde)):e(e3,t3),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=c0){for(;d<=h;++d)for(p=1;pc)break;m.push(g)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(g=d>0?p/i(-d):p*i(d),!(gc)break;m.push(g)}m.length*2{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Xf(s)).precision==null&&(s.trim=!0),s=Ax(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/i(Math.round(a(c)));return f*rn(KI(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function XI(){const e=Ix(O0()).domain([1,10]);return e.copy=()=>zd(e,XI()).base(e.base()),qr.apply(e,arguments),e}function r3(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function a3(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Rx(e){var t=1,n=e(r3(t),a3(t));return n.constant=function(r){return arguments.length?e(r3(t=+r),a3(t)):t},Do(n)}function YI(){var e=Rx(O0());return e.copy=function(){return zd(e,YI()).constant(e.constant())},qr.apply(e,arguments)}function i3(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Tde(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ade(e){return e<0?-e*e:e*e}function $x(e){var t=e(Ln,Ln),n=1;function r(){return n===1?e(Ln,Ln):n===.5?e(Tde,Ade):e(i3(n),i3(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Do(t)}function Lx(){var e=$x(O0());return e.copy=function(){return zd(e,Lx()).exponent(e.exponent())},qr.apply(e,arguments),e}function Mde(){return Lx.apply(null,arguments).exponent(.5)}function o3(e){return Math.sign(e)*e*e}function Ide(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function QI(){var e=Px(),t=[0,1],n=!1,r;function a(i){var o=Ide(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(o3(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,$m)).map(o3)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return QI(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},qr.apply(a,arguments),Do(a)}function JI(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o0?n[l-1]:e[0],l=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return ZI().domain([e,t]).range(a).unknown(i)},qr.apply(Do(o),arguments)}function eR(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Fd(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return eR().domain(e).range(t).unknown(n)},qr.apply(a,arguments)}const ty=new Date,ny=new Date;function en(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(uen(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(ty.setTime(+i),ny.setTime(+o),e(ty),e(ny),Math.floor(n(ty,ny))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const jm=en(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);jm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):jm);jm.range;const hi=1e3,Lr=hi*60,pi=Lr*60,Ei=pi*24,jx=Ei*7,l3=Ei*30,ry=Ei*365,rl=en(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hi)},(e,t)=>(t-e)/hi,e=>e.getUTCSeconds());rl.range;const Dx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getMinutes());Dx.range;const Nx=en(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Lr)},(e,t)=>(t-e)/Lr,e=>e.getUTCMinutes());Nx.range;const Fx=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hi-e.getMinutes()*Lr)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getHours());Fx.range;const zx=en(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*pi)},(e,t)=>(t-e)/pi,e=>e.getUTCHours());zx.range;const Bd=en(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Ei,e=>e.getDate()-1);Bd.range;const C0=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>e.getUTCDate()-1);C0.range;const tR=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ei,e=>Math.floor(e/Ei));tR.range;function Wl(e){return en(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())*Lr)/jx)}const E0=Wl(0),Dm=Wl(1),Rde=Wl(2),$de=Wl(3),Su=Wl(4),Lde=Wl(5),jde=Wl(6);E0.range;Dm.range;Rde.range;$de.range;Su.range;Lde.range;jde.range;function Vl(e){return en(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)/jx)}const k0=Vl(0),Nm=Vl(1),Dde=Vl(2),Nde=Vl(3),Ou=Vl(4),Fde=Vl(5),zde=Vl(6);k0.range;Nm.range;Dde.range;Nde.range;Ou.range;Fde.range;zde.range;const Bx=en(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());Bx.range;const Ux=en(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());Ux.range;const ki=en(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());ki.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});ki.range;const Pi=en(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());Pi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(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)});Pi.range;function nR(e,t,n,r,a,i){const o=[[rl,1,hi],[rl,5,5*hi],[rl,15,15*hi],[rl,30,30*hi],[i,1,Lr],[i,5,5*Lr],[i,15,15*Lr],[i,30,30*Lr],[a,1,pi],[a,3,3*pi],[a,6,6*pi],[a,12,12*pi],[r,1,Ei],[r,2,2*Ei],[n,1,jx],[t,1,l3],[t,3,3*l3],[e,1,ry]];function l(u,c,f){const d=cb).right(o,d);if(h===o.length)return e.every(G1(u/ry,c/ry,f));if(h===0)return jm.every(Math.max(G1(u,c,f),1));const[p,g]=o[d/o[h-1][2]53)return null;"w"in K||(K.w=1),"Z"in K?(ye=iy(gc(K.y,0,1)),Ae=ye.getUTCDay(),ye=Ae>4||Ae===0?Nm.ceil(ye):Nm(ye),ye=C0.offset(ye,(K.V-1)*7),K.y=ye.getUTCFullYear(),K.m=ye.getUTCMonth(),K.d=ye.getUTCDate()+(K.w+6)%7):(ye=ay(gc(K.y,0,1)),Ae=ye.getDay(),ye=Ae>4||Ae===0?Dm.ceil(ye):Dm(ye),ye=Bd.offset(ye,(K.V-1)*7),K.y=ye.getFullYear(),K.m=ye.getMonth(),K.d=ye.getDate()+(K.w+6)%7)}else("W"in K||"U"in K)&&("w"in K||(K.w="u"in K?K.u%7:"W"in K?1:0),Ae="Z"in K?iy(gc(K.y,0,1)).getUTCDay():ay(gc(K.y,0,1)).getDay(),K.m=0,K.d="W"in K?(K.w+6)%7+K.W*7-(Ae+5)%7:K.w+K.U*7-(Ae+6)%7);return"Z"in K?(K.H+=K.Z/100|0,K.M+=K.Z%100,iy(K)):ay(K)}}function C(q,Z,ie,K){for(var Te=0,ye=Z.length,Ae=ie.length,Ce,Re;Te=Ae)return-1;if(Ce=Z.charCodeAt(Te++),Ce===37){if(Ce=Z.charAt(Te++),Re=O[Ce in s3?Z.charAt(Te++):Ce],!Re||(K=Re(q,ie,K))<0)return-1}else if(Ce!=ie.charCodeAt(K++))return-1}return K}function A(q,Z,ie){var K=u.exec(Z.slice(ie));return K?(q.p=c.get(K[0].toLowerCase()),ie+K[0].length):-1}function I(q,Z,ie){var K=h.exec(Z.slice(ie));return K?(q.w=p.get(K[0].toLowerCase()),ie+K[0].length):-1}function P(q,Z,ie){var K=f.exec(Z.slice(ie));return K?(q.w=d.get(K[0].toLowerCase()),ie+K[0].length):-1}function T(q,Z,ie){var K=m.exec(Z.slice(ie));return K?(q.m=v.get(K[0].toLowerCase()),ie+K[0].length):-1}function E(q,Z,ie){var K=g.exec(Z.slice(ie));return K?(q.m=b.get(K[0].toLowerCase()),ie+K[0].length):-1}function L(q,Z,ie){return C(q,t,Z,ie)}function N(q,Z,ie){return C(q,n,Z,ie)}function U(q,Z,ie){return C(q,r,Z,ie)}function W(q){return o[q.getDay()]}function $(q){return i[q.getDay()]}function F(q){return s[q.getMonth()]}function k(q){return l[q.getMonth()]}function X(q){return a[+(q.getHours()>=12)]}function te(q){return 1+~~(q.getMonth()/3)}function R(q){return o[q.getUTCDay()]}function J(q){return i[q.getUTCDay()]}function ae(q){return s[q.getUTCMonth()]}function ue(q){return l[q.getUTCMonth()]}function ve(q){return a[+(q.getUTCHours()>=12)]}function ke(q){return 1+~~(q.getUTCMonth()/3)}return{format:function(q){var Z=S(q+="",_);return Z.toString=function(){return q},Z},parse:function(q){var Z=w(q+="",!1);return Z.toString=function(){return q},Z},utcFormat:function(q){var Z=S(q+="",x);return Z.toString=function(){return q},Z},utcParse:function(q){var Z=w(q+="",!0);return Z.toString=function(){return q},Z}}}var s3={"-":"",_:" ",0:"0"},un=/^\s*\d+/,qde=/^%/,Gde=/[\\^$*+?|[\]().{}]/g;function lt(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i[t.toLowerCase(),n]))}function Xde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Yde(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Qde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Jde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Zde(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function u3(e,t,n){var r=un.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function c3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ehe(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 the(e,t,n){var r=un.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function nhe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function f3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rhe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function d3(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ahe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ihe(e,t,n){var r=un.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ohe(e,t,n){var r=un.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lhe(e,t,n){var r=un.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function she(e,t,n){var r=qde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uhe(e,t,n){var r=un.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function che(e,t,n){var r=un.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function h3(e,t){return lt(e.getDate(),t,2)}function fhe(e,t){return lt(e.getHours(),t,2)}function dhe(e,t){return lt(e.getHours()%12||12,t,2)}function hhe(e,t){return lt(1+Bd.count(ki(e),e),t,3)}function rR(e,t){return lt(e.getMilliseconds(),t,3)}function phe(e,t){return rR(e,t)+"000"}function mhe(e,t){return lt(e.getMonth()+1,t,2)}function ghe(e,t){return lt(e.getMinutes(),t,2)}function vhe(e,t){return lt(e.getSeconds(),t,2)}function yhe(e){var t=e.getDay();return t===0?7:t}function bhe(e,t){return lt(E0.count(ki(e)-1,e),t,2)}function aR(e){var t=e.getDay();return t>=4||t===0?Su(e):Su.ceil(e)}function _he(e,t){return e=aR(e),lt(Su.count(ki(e),e)+(ki(e).getDay()===4),t,2)}function xhe(e){return e.getDay()}function whe(e,t){return lt(Dm.count(ki(e)-1,e),t,2)}function She(e,t){return lt(e.getFullYear()%100,t,2)}function Ohe(e,t){return e=aR(e),lt(e.getFullYear()%100,t,2)}function Che(e,t){return lt(e.getFullYear()%1e4,t,4)}function Ehe(e,t){var n=e.getDay();return e=n>=4||n===0?Su(e):Su.ceil(e),lt(e.getFullYear()%1e4,t,4)}function khe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lt(t/60|0,"0",2)+lt(t%60,"0",2)}function p3(e,t){return lt(e.getUTCDate(),t,2)}function Phe(e,t){return lt(e.getUTCHours(),t,2)}function The(e,t){return lt(e.getUTCHours()%12||12,t,2)}function Ahe(e,t){return lt(1+C0.count(Pi(e),e),t,3)}function iR(e,t){return lt(e.getUTCMilliseconds(),t,3)}function Mhe(e,t){return iR(e,t)+"000"}function Ihe(e,t){return lt(e.getUTCMonth()+1,t,2)}function Rhe(e,t){return lt(e.getUTCMinutes(),t,2)}function $he(e,t){return lt(e.getUTCSeconds(),t,2)}function Lhe(e){var t=e.getUTCDay();return t===0?7:t}function jhe(e,t){return lt(k0.count(Pi(e)-1,e),t,2)}function oR(e){var t=e.getUTCDay();return t>=4||t===0?Ou(e):Ou.ceil(e)}function Dhe(e,t){return e=oR(e),lt(Ou.count(Pi(e),e)+(Pi(e).getUTCDay()===4),t,2)}function Nhe(e){return e.getUTCDay()}function Fhe(e,t){return lt(Nm.count(Pi(e)-1,e),t,2)}function zhe(e,t){return lt(e.getUTCFullYear()%100,t,2)}function Bhe(e,t){return e=oR(e),lt(e.getUTCFullYear()%100,t,2)}function Uhe(e,t){return lt(e.getUTCFullYear()%1e4,t,4)}function Hhe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ou(e):Ou.ceil(e),lt(e.getUTCFullYear()%1e4,t,4)}function Whe(){return"+0000"}function m3(){return"%"}function g3(e){return+e}function v3(e){return Math.floor(+e/1e3)}var os,lR,sR;Vhe({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 Vhe(e){return os=Vde(e),lR=os.format,os.parse,sR=os.utcFormat,os.utcParse,os}function qhe(e){return new Date(e)}function Ghe(e){return e instanceof Date?+e:+new Date(+e)}function Hx(e,t,n,r,a,i,o,l,s,u){var c=Px(),f=c.invert,d=c.domain,h=u(".%L"),p=u(":%S"),g=u("%I:%M"),b=u("%I %p"),m=u("%a %d"),v=u("%b %d"),_=u("%B"),x=u("%Y");function O(S){return(s(S)t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>ide(e,i/r))},n.copy=function(){return dR(t).domain(e)},Ni.apply(n,arguments)}function T0(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=Ln,c,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+c(g))-i)*(r*ge.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"ascending";if(!t)return e;var r=t;(t==="x"||t==="y")&&(r="_".concat(t));var a=n==="ascending"?"asc":"desc";return g0(e,r,a)}function mpe(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Fm(t,"x"),y:Fm(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;var a=function(o,l){return r[l]==="log"?o["_".concat(l)]!==0:!0},i=function(o){var l=a(o,"x")?o._x:n,s=a(o,"y")?o._y:n,u=a(o,"y0")?o._y0:n;return Object.assign({},o,{_x:l,_y:s,_y0:u})};return e.map(function(o){return a(o,"x")&&a(o,"y")&&a(o,"y0")?o:i(o)})}function gpe(e){return Xe(e)?e:e==null?function(){}:X8(e)}function vpe(e,t){var n=!!e.eventKey,r=gpe(e.eventKey);return t.map(function(a,i){if(a.eventKey!==void 0)return a;if(n){var o=r(a,i);return o!==void 0?Object.assign({eventKey:o},a):a}return a})}function ype(e,t,n){var r=function(p){return p!==void 0},a=mr(t.x),i=pa(t.x),o=mr(t.y),l=pa(t.y),s=function(p){return function(g){return r(g)&&gp}},c=s(a),f=s(o),d=u(i),h=u(l);return e.map(function(p){var g=p._x,b=p._y,m=p._y0,v=p._y1;(c(g)||d(g))&&(g=null);var _=r(m)?m:n,x=r(v)?v:b;return r(x)?(!r(_)&&(f(x)||h(x))&&(b=null),(f(_)&&f(x)||h(_)&&h(x))&&(b=m=v=null),f(_)&&!f(x)&&(m=o),h(_)&&!h(x)&&(m=l),Object.assign({},p,TI({_x:g,_y:b,_y0:m,_y1:v},Hfe))):p})}function oy(e,t){var n=wR(e,t),r=SR(e,t),a=_pe(e,t),i=Il([].concat(tf(n),tf(r),tf(a)));return i.length===0?null:i.reduce(function(o,l,s){return o[l]=s+1,o},{})}function b3(e,t,n){var r=Array.isArray(e)||Ud(e);if(!r||ppe(e)<1)return[];var a=["x","y","y0"];n=Array.isArray(n)?n:a;var i=function(d){return x0(t[d]!==void 0?t[d]:d)},o=n.reduce(function(d,h){return d[h]=i(h),d},{}),l=Gfe(n,a)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0",s;l===!1&&(s={x:n.indexOf("x")!==-1?oy(t,"x"):void 0,y:n.indexOf("y")!==-1?oy(t,"y"):void 0,y0:n.indexOf("y0")!==-1?oy(t,"y"):void 0});var u=l?e:e.reduce(function(d,h,p){var g=Q1(h),b={x:p,y:g},m=n.reduce(function(_,x){var O=o[x](g),S=O!==void 0?O:b[x];return S!==void 0&&(typeof S=="string"&&s[x]?(_["".concat(x,"Name")]=S,_["_".concat(x)]=s[x][S]):_["_".concat(x)]=S),_},{}),v=Object.assign({},m,g);return Mt(v)||d.push(v),d},[]),c=xR(u,t.sortKey,t.sortOrder),f=mpe(c,t);return vpe(t,f)}function bpe(e){var t=y3(e,"x"),n=y3(e,"y"),r=t.map(function(a,i){return{x:a,y:n[i]}});return r}function qx(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function tr(e){return e.data?b3(e.data,e):b3(bpe(e),e)}function wR(e,t){var n=e.tickValues,r=e.tickFormat,a;return!n||!Array.isArray(n)&&!n[t]?a=r&&Array.isArray(r)?r:[]:a=n[t]||n,a.filter(function(i){return typeof i=="string"})}function SR(e,t){if(!e.categories)return[];var n=qx(e,t),r=n&&n.filter(function(a){return typeof a=="string"});return r?wI(r):[]}function _pe(e,t){var n=Array.isArray(e.data)||Ud(e.data);if(!n)return[];var r=e[t]===void 0?t:e[t],a=x0(r),i=e.data.reduce(function(s,u){return s.push(Q1(u)),s},[]),o=xR(i,e.sortKey,e.sortOrder),l=o.reduce(function(s,u){var c=Q1(u);return s.push(a(c)),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 Gx(e){var t=function(i){return i&&i.type?i.type.role:""},n=t(e);if(n==="portal"){var r=M.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var a=["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return a.includes(n)}function _3(e){return Ope(e)||Spe(e)||wpe(e)||xpe()}function xpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wpe(e,t){if(e){if(typeof e=="string")return J1(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 J1(e,t)}}function Spe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ope(e){if(Array.isArray(e))return J1(e)}function J1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:"min",r=function(l){return n==="max"?Math.max.apply(Math,_3(l)):Math.min.apply(Math,_3(l))},a=n==="max"?-1/0:1/0,i=!1,o=e.flat().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 i=i||u instanceof Date||c instanceof Date,r([l,f])},a);return i?new Date(o):o}function Ppe(e,t,n){if(!t.domainPadding)return e;var r=Gl(t,n),a=ql(t,n),i=Epe(t,n);if(!i.left&&!i.right)return e;var o=mr(e),l=pa(e),s=fI(n,t.horizontal),u=ln(t,s),c=Math.abs(u[0]-u[1]),f=Math.max(c-i.left-i.right,1),d=Math.abs(l.valueOf()-o.valueOf())/f*c,h={left:d*i.left/c,right:d*i.right/c},p={min:o.valueOf()-h.left,max:l.valueOf()+h.right},g=Zt(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,b=o>=0&&p.min<=0||l<=0&&p.max>=0,m=function(S,w){var C=w==="min"&&o>=0&&S<=0||w==="max"&&l<=0&&S>=0;return C?0:S};if(b&&g!==!1){var v={left:Math.abs(l-o)*i.left/c,right:Math.abs(l-o)*i.right/c},_={min:m(o.valueOf()-v.left,"min"),max:m(l.valueOf()+v.right,"max")},x={left:Math.abs(_.max-_.min)*i.left/c,right:Math.abs(_.max-_.min)*i.right/c};p={min:m(o.valueOf()-x.left,"min"),max:m(l.valueOf()+x.right,"max")}}var O={min:r!==void 0?r:p.min,max:a!==void 0?a:p.max};return o instanceof Date||l instanceof Date?Ti(new Date(O.min),new Date(O.max)):Ti(O.min,O.max)}function Kx(e,t){var n=Xe(e)?e:Yx,r=Xe(t)?t:Xx;return function(a,i){var o=Qx(a,i);if(o)return r(o,a,i);var l=qx(a,i),s=l?Tpe(a,i,l):n(a,i);return s?r(s,a,i):void 0}}function Xx(e,t,n){return Cpe(Ppe(e,t,n),t,n)}function zm(e,t){return Kx()(e,t)}function Tpe(e,t,n){var r=n||qx(e,t),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l;if(r){var u=Gl(e,t),c=ql(e,t),f=Sm(r)?SR(e,t):[],d=f.length===0?null:f.reduce(function(m,v,_){return m[v]=_+1,m},{}),h=d?r.map(function(m){return d[m]}):r,p=u!==void 0?u:mr(h),g=c!==void 0?c:pa(h),b=Ti(p,g);return a&&t==="x"&&Math.abs(o-s)===360?Jx(b,h):b}}function Yx(e,t,n){var r=n||tr(e),a=e.polar,i=e.startAngle,o=i===void 0?0:i,l=e.endAngle,s=l===void 0?360:l,u=Gl(e,t),c=ql(e,t);if(r.length<1)return u!==void 0&&c!==void 0?Ti(u,c):void 0;var f=u!==void 0?u:x3(r,t,"min"),d=c!==void 0?c:x3(r,t,"max"),h=Ti(f,d);return a&&t==="x"&&Math.abs(o-s)===360?Jx(h,kpe(r,t)):h}function Ti(e,t){var n=function(r){var a=r===0?2*Math.pow(10,-10):Math.pow(10,-10),i=1,o=r instanceof Date?new Date(Number(r)-i):Number(r)-a,l=r instanceof Date?new Date(Number(r)+i):Number(r)+a;return r===0?[0,l]:[o,l]};return Number(e)===Number(t)?n(t):[e,t]}function Qx(e,t){var n=Gl(e,t),r=ql(e,t);if(Zt(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 Ti(n,r)}function Z1(e,t){var n=Qx(e,t);if(n)return n;var r=tr(e),a=r.reduce(function(s,u){return u._y0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?i.concat(o):i}return i},[])};return r(e)}function kR(e){var t=function(n){var r=Math.min.apply(Math,Ps(n)),a=Math.max.apply(Math,Ps(n));return a<0?a:Math.max(0,r)};return{x:Po(e.x)?new Date(Math.min.apply(Math,Ps(e.x))):t(e.x),y:Po(e.y)?new Date(Math.min.apply(Math,Ps(e.y))):t(e.y)}}function S3(e,t){var n=function(){return e<=0&&Math.max.apply(Math,Ps(t))<=0?"negative":"positive"};return Po(t)?"positive":n()}function A0(e){var t=e.orientation||(e.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[t]}function M0(e){return e.tickValues!==void 0&&Sm(e.tickValues)}function Lpe(e){var t=e.tickValues,n=Gr(e),r=e.stringMap&&e.stringMap[n],a=t&&!Po(t)?function(u){return u}:void 0;if(!r)return M0(e)?function(u,c){return t[c]}:a;var i=r&&cI(r),o=g0(Object.values(r),function(u){return u}),l=o.map(function(u){return i[u]}),s=[""].concat(Ps(l),[""]);return function(u){return s[u]}}function jpe(e){var t=Gr(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],a=r&&hse(r)?r.map(function(o){return n[o]}):void 0,i=n&&Object.values(n);return a&&a.length!==0?a:i}function Zx(e){var t=e.tickValues,n=e.tickFormat;if((t==null?void 0:t.length)===0)return[];var r=Gr(e),a=e.stringMap&&e.stringMap[r],i=function(){if(!(!n||!Array.isArray(n)))return Sm(n)?n.map(function(u,c){return c}):n},o=t;a&&(o=jpe(e)),t&&Sm(t)&&(o=a?t.map(function(u){return a[u]}):hx(1,t.length+1));var l=o?Il(o):i(),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>=mr(f)&&d<=pa(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 PR(e,t){var n=e.tickFormat,r=Gr(e),a=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){var l=Zx(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&&Xe(n)){var c=function(f,d,h){var p=cI(a),g=h.map(function(b){return p[b]});return e.tickFormat(p[f],d,g)};return a?c:n}}else{var i=Lpe(e),o=t.tickFormat&&Xe(t.tickFormat)?t.tickFormat():function(f){return f};return i||o}return function(f){return f}}function O3(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(r,a){return a%n===0})}function TR(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,a=Zx(e);if((a==null?void 0:a.length)===0)return[""];var i=a?a.map(function(f){return f.value}):void 0;if(i)return O3(i,r);if(t.ticks&&Xe(t.ticks)){var o=r||5,l=t.ticks(o),s=Array.isArray(l)&&l.length?l:t.domain(),u=O3(s,r);if(n){var c=u.filter(function(f){return f!==0});return c.length?c:u}return u}return t.domain()}function Dpe(e,t){var n=e.polar,r=e.startAngle,a=r===void 0?0:r,i=e.endAngle,o=i===void 0?360:i,l=Zx(e),s=l&&(l==null?void 0:l.length)!==0?l.map(function(_){return _.value}):void 0;if(Array.isArray(s)){var u=Gl(e,t),c=ql(e,t),f=M0(e),d=s.map(function(_){return Number(_)}),h=f?1:mr(d),p=f?s.length:pa(d),g=u!==void 0?u:h,b=c!==void 0?c:p,m=Ti(g,b),v=n&&t==="x"&&Math.abs(a-o)===360?Jx(m,d):m;return A0(e)&&!n&&v.reverse(),v}}function Wu(e,t){var n=Gr(e);if(!(t&&t!==n))return Kx(Dpe)(e,n)}function AR(e,t){if(e.axisValue){var n=t==="x"?"y":"x",r=Ff(e.scale)&&Xe(e.scale[n])?e.scale[n]:void 0;if(r){var a=t==="x"?"y":"x",i=Ff(e.stringMap)&&e.stringMap[a],o=i&&typeof e.axisValue=="string"?i[e.axisValue]:e.axisValue;return r(o)}}}function I0(e,t){if(!Ff(e.theme))return on(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return on(e,t,"axis");var r=me({},e.theme[n],e.theme.axis),a=Object.assign({},e.theme,{axis:r});return on(Object.assign({},e,{theme:a}),t,"axis")}function Npe(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Fpe(){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(a){var i=t===0?n[t+1]:n[t-1];return i[a]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(a){var i=t===0?n[t+1]:n[t-1];return i[a]};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 MR(e){var t=M.useRef();return M.useEffect(function(){t.current=e}),t.current}function C3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function E3(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:qpe,t=M.useState(e),n=Bpe(t,2),r=n[0],a=n[1],i=M.useCallback(function(u){a(function(c){return E3(E3({},c),u)})},[a]),o=M.useCallback(function(u,c,f){if(!(u!=null&&u.animate))return c.props.animate;var d=function(){var m=r&&r.childrenTransitions;return m=xE(m)?m[f]:m,me({childrenTransitions:m},r)},h=u.animate&&u.animate.getTransitions,p=d(),g=u.animate&&u.animate.parentState||p;if(!h){var b=CI(u,p,function(m){return i(m)});h=function(m){return b(m,f)}}return me({getTransitions:h,parentState:g},u.animate,c.props.animate)},[r,i]),l=M.useCallback(function(u,c){if(u!=null&&u.animate)if(u.animate.parentState){var f=u.animate.parentState.nodesWillExit,d=f?u:null,h=me({oldProps:d,nextProps:c},u.animate.parentState);i(h)}else{var p=M.Children.toArray(u.children),g=M.Children.toArray(c.children),b=function(w){var C=function(A){return A.type&&A.type.continuous};return Array.isArray(w)?w.some(C):C(w)},m=!u.polar&&p.some(function(w){var C;return b(w)||(w==null||(C=w.props)===null||C===void 0?void 0:C.children)&&b(w.props.children)}),v=OI(p,g),_=v.nodesWillExit,x=v.nodesWillEnter,O=v.childrenTransitions,S=v.nodesShouldEnter;i({nodesWillExit:_,nodesWillEnter:x,nodesShouldEnter:S,childrenTransitions:xE(O)?O[0]:O,oldProps:_?u:void 0,nextProps:c,continuous:m})}},[i]),s=M.useCallback(function(u){return r&&r.nodesWillExit&&r.oldProps||u},[r]);return{state:r,setState:i,getAnimationProps:o,setAnimationState:l,getProps:s}};function Be(e){return function(){return e}}const P3=Math.abs,xn=Math.atan2,ii=Math.cos,Gpe=Math.max,Hs=Math.min,Wn=Math.sin,Ct=Math.sqrt,Sn=1e-12,To=Math.PI,Bm=To/2,xo=2*To;function Kpe(e){return e>1?0:e<-1?To:Math.acos(e)}function T3(e){return e>=1?Bm:e<=-1?-Bm:Math.asin(e)}const t5=Math.PI,n5=2*t5,qo=1e-6,Xpe=n5-qo;function RR(e){this._+=e[0];for(let t=1,n=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return RR;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;aqo)if(!(Math.abs(f*s-u*c)>qo)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=a-l,g=s*s+u*u,b=h*h+p*p,m=Math.sqrt(g),v=Math.sqrt(d),_=i*Math.tan((t5-Math.acos((g+d-b)/(2*m*v)))/2),x=_/v,O=_/m;Math.abs(x-1)>qo&&this._append`L${t+x*c},${n+x*f}`,this._append`A${i},${i},0,0,${+(f*h>c*p)},${this._x1=t+O*s},${this._y1=n+O*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,c=n+s,f=1^o,d=o?a-i:i-a;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>qo||Math.abs(this._y1-c)>qo)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%n5+n5),d>Xpe?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>qo&&this._append`A${r},${r},0,${+(d>=t5)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Hd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Qpe(t)}function Jpe(e){return e.innerRadius}function Zpe(e){return e.outerRadius}function eme(e){return e.startAngle}function tme(e){return e.endAngle}function nme(e){return e&&e.padAngle}function rme(e,t,n,r,a,i,o,l){var s=n-e,u=r-t,c=o-a,f=l-i,d=f*s-c*u;if(!(d*dL*L+N*N&&(C=I,A=P),{cx:C,cy:A,x01:-c,y01:-f,x11:C*(a/O-1),y11:A*(a/O-1)}}function R0(){var e=Jpe,t=Zpe,n=Be(0),r=null,a=eme,i=tme,o=nme,l=null,s=Hd(u);function u(){var c,f,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=a.apply(this,arguments)-Bm,g=i.apply(this,arguments)-Bm,b=P3(g-p),m=g>p;if(l||(l=c=s()),hSn))l.moveTo(0,0);else if(b>xo-Sn)l.moveTo(h*ii(p),h*Wn(p)),l.arc(0,0,h,p,g,!m),d>Sn&&(l.moveTo(d*ii(g),d*Wn(g)),l.arc(0,0,d,g,p,m));else{var v=p,_=g,x=p,O=g,S=b,w=b,C=o.apply(this,arguments)/2,A=C>Sn&&(r?+r.apply(this,arguments):Ct(d*d+h*h)),I=Hs(P3(h-d)/2,+n.apply(this,arguments)),P=I,T=I,E,L;if(A>Sn){var N=T3(A/d*Wn(C)),U=T3(A/h*Wn(C));(S-=N*2)>Sn?(N*=m?1:-1,x+=N,O-=N):(S=0,x=O=(p+g)/2),(w-=U*2)>Sn?(U*=m?1:-1,v+=U,_-=U):(w=0,v=_=(p+g)/2)}var W=h*ii(v),$=h*Wn(v),F=d*ii(O),k=d*Wn(O);if(I>Sn){var X=h*ii(_),te=h*Wn(_),R=d*ii(x),J=d*Wn(x),ae;if(bSn?T>Sn?(E=Dh(R,J,W,$,h,T,m),L=Dh(X,te,F,k,h,T,m),l.moveTo(E.cx+E.x01,E.cy+E.y01),TSn)||!(S>Sn)?l.lineTo(F,k):P>Sn?(E=Dh(F,k,X,te,d,-P,m),L=Dh(W,$,R,J,d,-P,m),l.lineTo(E.cx+E.x01,E.cy+E.y01),P=h;--p)l.point(_[p],x[p]);l.lineEnd(),l.areaEnd()}m&&(_[d]=+e(b,d,f),x[d]=+t(b,d,f),l.point(r?+r(b,d,f):_[d],n?+n(b,d,f):x[d]))}if(v)return l=null,v+""||null}function c(){return L0().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Be(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Be(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}function ime(e,t){return te?1:t>=e?0:NaN}function ome(e){return e}function jR(){var e=ome,t=ime,n=null,r=Be(0),a=Be(xo),i=Be(0);function o(l){var s,u=(l=$0(l)).length,c,f,d=0,h=new Array(u),p=new Array(u),g=+r.apply(this,arguments),b=Math.min(xo,Math.max(-xo,a.apply(this,arguments)-g)),m,v=Math.min(Math.abs(b)/u,i.apply(this,arguments)),_=v*(b<0?-1:1),x;for(s=0;s0&&(d+=x);for(t!=null?h.sort(function(O,S){return t(p[O],p[S])}):n!=null&&h.sort(function(O,S){return n(l[O],l[S])}),s=0,f=d?(b-u*_)/d:0;s0?x*f:0)+_,p[c]={data:l[c],index:s,value:x,startAngle:g,endAngle:m,padAngle:v};return p}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Be(+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:Be(+l),o):r},o.endAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Be(+l),o):a},o.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Be(+l),o):i},o}var DR=nw(Wd);function NR(e){this._curve=e}NR.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 nw(e){function t(n){return new NR(e(n))}return t._curve=e,t}function Rc(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(nw(n)):t()._curve},e}function r5(){return Rc(L0().curve(DR))}function A3(){var e=LR().curve(DR),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,i=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 Rc(n())},delete e.lineX0,e.lineEndAngle=function(){return Rc(r())},delete e.lineX1,e.lineInnerRadius=function(){return Rc(a())},delete e.lineY0,e.lineOuterRadius=function(){return Rc(i())},delete e.lineY1,e.curve=function(o){return arguments.length?t(nw(o)):t()._curve},e}function $c(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class FR{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 lme{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point===0)this._point=1;else{const r=$c(this._x0,this._y0),a=$c(this._x0,this._y0=(this._y0+n)/2),i=$c(t,this._y0),o=$c(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...a,...i,...o)}this._x0=t,this._y0=n}}function zR(e){return new FR(e,!0)}function BR(e){return new FR(e,!1)}function sme(e){return new lme(e)}function ume(e){return e.source}function cme(e){return e.target}function j0(e){let t=ume,n=cme,r=ew,a=tw,i=null,o=null,l=Hd(s);function s(){let u;const c=ame.call(arguments),f=t.apply(this,c),d=n.apply(this,c);if(i==null&&(o=e(u=l())),o.lineStart(),c[0]=f,o.point(+r.apply(this,c),+a.apply(this,c)),c[0]=d,o.point(+r.apply(this,c),+a.apply(this,c)),o.lineEnd(),u)return o=null,u+""||null}return s.source=function(u){return arguments.length?(t=u,s):t},s.target=function(u){return arguments.length?(n=u,s):n},s.x=function(u){return arguments.length?(r=typeof u=="function"?u:Be(+u),s):r},s.y=function(u){return arguments.length?(a=typeof u=="function"?u:Be(+u),s):a},s.context=function(u){return arguments.length?(u==null?i=o=null:o=e(i=u),s):i},s}function fme(){return j0(zR)}function dme(){return j0(BR)}function hme(){const e=j0(sme);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const pme=Ct(3),UR={draw(e,t){const n=Ct(t+Hs(t/28,.75))*.59436,r=n/2,a=r*pme;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-a,-r),e.lineTo(a,r),e.moveTo(-a,r),e.lineTo(a,-r)}},D0={draw(e,t){const n=Ct(t/To);e.moveTo(n,0),e.arc(0,0,n,0,xo)}},HR={draw(e,t){const n=Ct(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()}},WR=Ct(1/3),mme=WR*2,VR={draw(e,t){const n=Ct(t/mme),r=n*WR;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},qR={draw(e,t){const n=Ct(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},GR={draw(e,t){const n=Ct(t-Hs(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},KR={draw(e,t){const n=Ct(t),r=-n/2;e.rect(r,r,n,n)}},XR={draw(e,t){const n=Ct(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},gme=.8908130915292852,YR=Wn(To/10)/Wn(7*To/10),vme=Wn(xo/10)*YR,yme=-ii(xo/10)*YR,QR={draw(e,t){const n=Ct(t*gme),r=vme*n,a=yme*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=xo*i/5,l=ii(o),s=Wn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},ly=Ct(3),JR={draw(e,t){const n=-Ct(t/(ly*3));e.moveTo(0,n*2),e.lineTo(-ly*n,-n),e.lineTo(ly*n,-n),e.closePath()}},bme=Ct(3),ZR={draw(e,t){const n=Ct(t)*.6824,r=n/2,a=n*bme/2;e.moveTo(0,-n),e.lineTo(a,r),e.lineTo(-a,r),e.closePath()}},xr=-.5,wr=Ct(3)/2,a5=1/Ct(12),_me=(a5/2+1)*3,e$={draw(e,t){const n=Ct(t/_me),r=n/2,a=n*a5,i=r,o=n*a5+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(xr*r-wr*a,wr*r+xr*a),e.lineTo(xr*i-wr*o,wr*i+xr*o),e.lineTo(xr*l-wr*s,wr*l+xr*s),e.lineTo(xr*r+wr*a,xr*a-wr*r),e.lineTo(xr*i+wr*o,xr*o-wr*i),e.lineTo(xr*l+wr*s,xr*s-wr*l),e.closePath()}},i5={draw(e,t){const n=Ct(t-Hs(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},M3=[D0,HR,VR,KR,QR,JR,e$],xme=[D0,GR,i5,ZR,UR,XR,qR];function wme(e,t){let n=null,r=Hd(a);e=typeof e=="function"?e:Be(e||D0),t=typeof t=="function"?t:Be(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Be(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Be(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Ao(){}function Um(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 N0(e){this._context=e}N0.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:Um(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:Um(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Sme(e){return new N0(e)}function t$(e){this._context=e}t$.prototype={areaStart:Ao,areaEnd:Ao,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:Um(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ome(e){return new t$(e)}function n$(e){this._context=e}n$.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:Um(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Cme(e){return new n$(e)}function r$(e,t){this._basis=new N0(e),this._beta=t}r$.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],a=t[0],i=e[n]-r,o=t[n]-a,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*i),this._beta*t[l]+(1-this._beta)*(a+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Eme=function e(t){function n(r){return t===1?new N0(r):new r$(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Hm(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 rw(e,t){this._context=e,this._k=(1-t)/6}rw.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:Hm(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:Hm(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 kme=function e(t){function n(r){return new rw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aw(e,t){this._context=e,this._k=(1-t)/6}aw.prototype={areaStart:Ao,areaEnd:Ao,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:Hm(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 Pme=function e(t){function n(r){return new aw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function iw(e,t){this._context=e,this._k=(1-t)/6}iw.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:Hm(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 Tme=function e(t){function n(r){return new iw(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ow(e,t,n){var r=e._x1,a=e._y1,i=e._x2,o=e._y2;if(e._l01_a>Sn){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,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Sn){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);i=(i*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,a,i,o,e._x2,e._y2)}function a$(e,t){this._context=e,this._alpha=t}a$.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:ow(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 Ame=function e(t){function n(r){return t?new a$(r,t):new rw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function i$(e,t){this._context=e,this._alpha=t}i$.prototype={areaStart:Ao,areaEnd:Ao,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:ow(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 Mme=function e(t){function n(r){return t?new i$(r,t):new aw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function o$(e,t){this._context=e,this._alpha=t}o$.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:ow(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 Ime=function e(t){function n(r){return t?new o$(r,t):new iw(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function l$(e){this._context=e}l$.prototype={areaStart:Ao,areaEnd:Ao,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 Rme(e){return new l$(e)}function I3(e){return e<0?-1:1}function R3(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(I3(i)+I3(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function $3(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function sy(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Wm(e){this._context=e}Wm.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:sy(this,this._t0,$3(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,sy(this,$3(this,n=R3(this,e,t)),n);break;default:sy(this,this._t0,n=R3(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function s$(e){this._context=new u$(e)}(s$.prototype=Object.create(Wm.prototype)).point=function(e,t){Wm.prototype.point.call(this,t,e)};function u$(e){this._context=e}u$.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,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function $me(e){return new Wm(e)}function Lme(e){return new s$(e)}function c$(e){this._context=e}c$.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=L3(e),a=L3(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t=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 Dme(e){return new F0(e,.5)}function Nme(e){return new F0(e,0)}function Fme(e){return new F0(e,1)}function Cu(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n=0;)n[t]=t;return n}function zme(e,t){return e[t]}function Bme(e){const t=[];return t.key=e,t}function Ume(){var e=Be([]),t=Eu,n=Cu,r=zme;function a(i){var o=Array.from(e.apply(this,arguments),Bme),l,s=o.length,u=-1,c;for(const f of i)for(l=0,++u;l0){for(var n,r,a=0,i=e[0].length,o;a0)for(var n,r=0,a,i,o,l,s,u=e[t[0]].length;r0?(a[0]=o,a[1]=o+=i):i<0?(a[1]=l,a[0]=l+=i):(a[0]=0,a[1]=i)}function Vme(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;ri&&(i=a,n=t);return n}function d$(e){var t=e.map(h$);return Eu(e).sort(function(n,r){return t[n]-t[r]})}function h$(e){for(var t=0,n=-1,r=e.length,a;++n0}function g$(e){if(!m$(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function rge(e,t){if(m$(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=nge(e)?e.changedTouches[0]:e,r=tge(t||g$(n));return{x:F3(n.clientX,r,"x"),y:F3(n.clientY,r,"y")}}var age=Ld,ige=kI;function oge(e,t){return e&&e.length?ige(e,age(t)):[]}var lge=oge;const v$=at(lge);function sge(e,t,n,r){for(var a=-1,i=e==null?0:e.length;++ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?Yf("linear"):Yf(i[0])}function b$(e){var t=["groupComponent","containerComponent","labelComponent"],n=Ox(e,t),r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat.apply(n,sa(e.events)):n),r||[]}function $ge(e,t,n){var r=e.style,a=e.colorScale,i=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(a=t.props&&t.props.colorScale?t.props.colorScale:a,i=t.props&&t.props.color?t.props.color:i,!(!a&&!i)){var o=Array.isArray(a)?a:bx(a);return i||o[n%o.length]}}function Lge(e,t,n){var r=e&&e[n]&&e[n].style?e[n].style:{};return _0(t,r)}function jge(e,t,n){var r=n.style,a=n.role,i=e.props.style||{};if(Array.isArray(i))return i;var o=e.type&&e.type.role,l=o==="stack"?void 0:$ge(n,e,t),s=o==="line"?{fill:"none",stroke:l}:{fill:l},u=a==="stack"?{}:{width:y$(n)},c=me({},i.data,Object.assign({},u,r.data,s)),f=me({},i.labels,r.labels);return Vm(Vm({},i),{},{parent:r.parent,data:c,labels:f})}function Dge(e,t){var n=function(r){var a=r.props||{};if(!OR(r)||!a.categories)return null;var i=a.categories&&!Array.isArray(a.categories)?a.categories[t]:a.props.categories,o=i&&i.filter(function(l){return typeof l=="string"});return o?wI(o):[]};return Ul(e.slice(0),n)}function Nge(e){var t=function(a){var i=a.props||{},o;if(Gx(a))a.type&&Xe(a.type.getData)?o=a.type.getData(i):o=tr(i);else return null;return o.map(function(l){return{x:l.xName,y:l.yName}})},n={x:[],y:[]},r=function(a,i){var o=Array.isArray(i)?i.map(function(s){return s.x}).filter(Boolean):i.x,l=Array.isArray(i)?i.map(function(s){return s.y}).filter(Boolean):i.y;return{x:o!==void 0?a.x.concat(o):a.x,y:l!==void 0?a.y.concat(l):a.y}};return Ul(e.slice(0),t,{},n,r)}function B3(e,t,n){var r=Zt(e.categories)?e.categories[t]:e.categories,a=ER(n,t),i=a?wR(a.props,t):[],o=r||Dge(n,t);return Il([].concat(sa(o),sa(i)).flat())}function _$(e,t){var n=t||M.Children.toArray(e.children),r=B3(e,"x",n),a=B3(e,"y",n),i=Nge(n);return{x:Il([].concat(sa(r),sa(i.x)).flat()),y:Il([].concat(sa(a),sa(i.y)).flat())}}function x$(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,a=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,i=!r||!a,o=i?n||_$(e,t):{},l=r||o.x,s=a||o.y;return{x:l.length>0?l:void 0,y:s.length>0?s:void 0}}function Fge(e){for(var t=-1,n=e==null?0:e.length,r={};++t0){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=i.call(this,s,u))}else o.push(u);return a==null?u:a.call(this,s,u)}}})(s5,s5.exports);var Uge=s5.exports;const Hge=at(Uge);function Wge(e,t){return Gge(e)||qge(e,t)||w$(e,t)||Vge()}function Vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,o,l;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));a=!0);}catch(s){i=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function Gge(e){if(Array.isArray(e))return e}function Kge(e){return Qge(e)||Yge(e)||w$(e)||Xge()}function Xge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w$(e,t){if(e){if(typeof e=="string")return u5(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 u5(e,t)}}function Yge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qge(e){if(Array.isArray(e))return u5(e)}function u5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gm(e)}var Vu=function(e){e0e(n,e);var t=t0e(n);function n(r){var a;return Jge(this,n),a=t.call(this,r),a.getScopedEvents=void 0,a.getEventState=void 0,a.baseProps=void 0,a.sharedEventsCache=void 0,a.globalEvents=void 0,a.prevGlobalEventKeys=void 0,a.boundGlobalEvents=void 0,a.getScopedEvents=II.bind(f5(a)),a.getEventState=$I.bind(f5(a)),a.state=a.state||{},a.sharedEventsCache={},a.globalEvents={},a.prevGlobalEventKeys=[],a.boundGlobalEvents={},a.baseProps=a.getBaseProps(r),a}return Zge(n,[{key:"shouldComponentUpdate",value:function(a){if(!Ba(this.props,a)){this.baseProps=this.getBaseProps(a);var i=this.getExternalMutations(a,this.baseProps);this.applyExternalMutations(a,i)}return!0}},{key:"componentDidMount",value:function(){var a=this,i=Object.keys(this.globalEvents);i.forEach(function(o){return a.addGlobalListener(o)}),this.prevGlobalEventKeys=i}},{key:"componentDidUpdate",value:function(){var a=this,i=Object.keys(this.globalEvents),o=Om(this.prevGlobalEventKeys,i);o.forEach(function(s){return a.removeGlobalListener(s)});var l=Om(i,this.prevGlobalEventKeys);l.forEach(function(s){return a.addGlobalListener(s)}),this.prevGlobalEventKeys=i}},{key:"componentWillUnmount",value:function(){var a=this;this.prevGlobalEventKeys.forEach(function(i){return a.removeGlobalListener(i)})}},{key:"addGlobalListener",value:function(a){var i=this,o=function(l){var s=i.globalEvents[a];return s&&s(NI(l))};this.boundGlobalEvents[a]=o,window.addEventListener(Mm(a),o)}},{key:"removeGlobalListener",value:function(a){window.removeEventListener(Mm(a),this.boundGlobalEvents[a])}},{key:"getAllEvents",value:function(a){var i=["container","groupComponent"],o=Ox(a,i);return Array.isArray(o)?Array.isArray(a.events)?o.concat.apply(o,Kge(a.events)):o:a.events}},{key:"applyExternalMutations",value:function(a,i){if(!Mt(i)){var o=a.externalEventMutations.reduce(function(s,u){return Xe(u.callback)?s.concat(u.callback):s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(i,l)}}},{key:"getExternalMutations",value:function(a,i){return Mt(a.externalEventMutations)?void 0:dfe(a.externalEventMutations,i,this.state,Object.keys(i))}},{key:"cacheSharedEvents",value:function(a,i,o){this.sharedEventsCache[a]=[i,o]}},{key:"getCachedSharedEvents",value:function(a,i){var o=this.sharedEventsCache[a]||[],l=Wge(o,2),s=l[0],u=l[1];if(s&&Ba(i,u))return s}},{key:"getBaseProps",value:function(a){var i=a.container,o=M.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=i?i.props:{};return Object.assign({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(a){var i=function(l,s){if(l.type&&Xe(l.type.getBaseProps)){var u=l.props&&l.type.getBaseProps(l.props);return u?[[s,u]]:null}return null},o=Ul(a,i);return Bge(o)}},{key:"getNewChildren",value:function(a,i){var o=this,l=a.events,s=a.eventKey,u=function(d,h){return d.reduce(function(p,g,b){if(g.props.children){var m=M.Children.toArray(g.props.children),v=h.slice(b,b+m.length),_=M.cloneElement(g,g.props,u(m,v));return p.concat(_)}else if(h[b]!=="parent"&&g.type&&Xe(g.type.getBaseProps)){var x=g.props.name||h[b],O=Array.isArray(l)&&l.filter(function(C){return C.target==="parent"?!1:Array.isArray(C.childName)?C.childName.indexOf(x)>-1:C.childName===x||C.childName==="all"}),S=[x,i,O,Hge(o.state[x])],w=o.getCachedSharedEvents(x,S)||{events:O,getEvents:function(C,A){return o.getScopedEvents(C,A,x,i)},getEventState:function(C,A){return o.getEventState(C,A,x)}};return o.cacheSharedEvents(x,w,S),p.concat(M.cloneElement(g,Object.assign({key:"events-".concat(x),sharedEvents:w,eventKey:s,name:x},g.props)))}return p.concat(g)},[])},c=Object.keys(i),f=M.Children.toArray(a.children);return u(f,c)}},{key:"getContainer",value:function(a,i,o){var l=this,s=this.getNewChildren(a,i),u=Array.isArray(o)?o.filter(function(_){return _.target==="parent"}):[],c=u.length>0?{events:u,getEvents:function(_,x){return l.getScopedEvents(_,x,null,i)},getEventState:this.getEventState}:null,f=a.container||a.groupComponent,d=f.type&&f.type.role,h=f.props||{},p=MI.bind(this),g=c&&p({sharedEvents:c},"parent"),b=me({},this.getEventState("parent","parent"),h,i.parent,{children:s}),m=me({},RI(g,"parent",b),h.events);this.globalEvents=jI(m);var v=DI(m);return d==="container"?M.cloneElement(f,Object.assign({},b,{events:v})):M.cloneElement(f,v,s)}},{key:"render",value:function(){var a=this.getAllEvents(this.props);return a?this.getContainer(this.props,this.baseProps,a):M.cloneElement(this.props.container,{children:this.props.children})}}]),n}(M.Component);Vu.displayName="VictorySharedEvents";Vu.role="shared-event-wrapper";Vu.contextType=y0;Vu.defaultProps={groupComponent:M.createElement("g",null)};function a0e(e){return s0e(e)||l0e(e)||o0e(e)||i0e()}function i0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o0e(e,t){if(e){if(typeof e=="string")return d5(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 d5(e,t)}}function l0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s0e(e){if(Array.isArray(e))return d5(e)}function d5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},d0e=function(e,t,n){var r=e.position,a=e.transform;return{x1:a.x,y1:a.y,x2:a.x+r.x2,y2:a.y+r.y2,style:t,datum:n}},h0e=function(e,t,n,r,a){var i=e.position,o=e.transform;return{style:t,x:o.x+i.x,y:o.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:a,datum:r}},p0e=function(e,t,n){var r=e.edge,a=e.transform;return{x1:a.x,y1:a.y,x2:r.x+a.x,y2:r.y+a.y,style:t,datum:n}},m0e=function(e,t,n){var r=t.style,a=t.padding,i=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:i?n.x:a.left+n.x,x2:i?n.x:o-a.right+n.x,y1:i?a.top+n.y:n.y,y2:i?l-a.bottom+n.y:n.y}},g0e=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},v0e=function(e,t,n){var r=t.style,a=t.orientation,i=t.padding,o=t.labelPadding,l=t.isVertical,s=sw[a],u=i.left+i.right,c=i.top+i.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,p=l?n.x+s*o:(e.width-u)/2+i.left+n.x,g=l?(e.height-c)/2+i.top+n.y:s*o+n.y;return{x:p,y:g,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},y0e=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}},b0e=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=A0(e),a=n.fontSize||14;return e.label?a*(r?2.3:1.6):0},H3=function(e,t,n){var r=t||"positive",a={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},i={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?i[r][e]:a[r][e]},_0e=function(e,t){var n=t.style,r=t.scale,a=t.orientation,i=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:gp({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},p=a==="right"?i.right:i.left,g=a==="top"?i.top:i.bottom,b=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:p,m=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:g,v=n.axisLabel.fontSize||14,_=l.map(function(C,A){var I=s?e.tickValues[C-1]:C,P=_t(n.ticks,Object.assign({},h,{tick:I,index:A}));return P.size||0}),x=v+2*Math.max.apply(Math,a0e(_))+c,O=1.2*v,S=u?x:O,w=u?O:x;return{x:b??S,y:m??w}},uo=function(e,t){return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t},x0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={x:a==="bottom"||a==="top"?a:i.x,y:a==="left"||a==="right"?a:i.y},h={x:d.y==="left"?c:f,y:d.x==="bottom"?u:s},p={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Km(e.offsetX)?e.offsetX:b,_=Km(e.offsetY)?e.offsetY:m;return{x:v,y:_}},w0e=function(e,t){var n=t.scale,r=t.origin,a=t.orientation,i=t.orientations,o=t.domain,l=t.padding,s=l.top,u=l.bottom,c=l.left,f=l.right,d={y:a==="bottom"||a==="top"?a:i.x,x:a==="left"||a==="right"?a:i.y},h={x:d.y==="bottom"?u:s,y:d.x==="left"?c:f},p={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},g={x:uo(r.x,o.x[0])||uo(r.x,o.x[1])?0:n.x(r.x),y:uo(r.y,o.y[0])||uo(r.y,o.y[1])?0:n.y(r.y)},b=g.x?Math.abs(p.x-g.x):h.x,m=g.y?Math.abs(p.y-g.y):h.y,v=Km(e.offsetX)?e.offsetX:m,_=Km(e.offsetY)?e.offsetY:b;return{x:v,y:_}},S0e=function(e,t,n){var r=t.orientation,a=t.axis,i=AR(e,a);return{top:{x:0,y:i!==void 0?i:n.y},bottom:{x:0,y:i!==void 0?i:e.height-n.y},left:{x:i!==void 0?i:n.x,y:0},right:{x:i!==void 0?i:e.width-n.x,y:0}}[r]},O0e=function(e,t,n){var r=e.tickStyle,a=e.labelStyle,i=r.size||0,o=r.padding||0,l=a.padding||0,s=i+o+l,u=sw[t];return{x:n?u*s:0,x2:n?u*i:0,y:n?0:u*s,y2:n?0:u*i}},C0e=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},E0e=function(e,t){var n=t.orientation,r=t.padding,a=t.isVertical,i=-sw[n],o=a?i*(e.width-(r.left+r.right)):0,l=a?0:i*(e.height-(r.top+r.bottom));return{x:o,y:l}},k0e=function(e,t){var n=e.padding,r=e.orientation,a=e.crossAxis,i=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:a?t.x-i:0,y:a?t.y-o:0}},P0e=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?w0e(e,t):x0e(e,t):n=_0e(e,t),{globalTransform:S0e(e,t,n),gridOffset:k0e(t,n),gridEdge:E0e(e,t)}},T0e=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},A0e=function(e){var t=f0e(e),n=S$(e,t),r=Wt(e),a=b0e(e,n),i=M0(e)?e.tickValues:void 0,o=Gr(e),l=Wu(e),s=c0e(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),p=TR(e,s,h),g=PR(e,s),b={x:ln(e,"x"),y:ln(e,"y")},m={x:e.domain&&e.domain.x?e.domain.x:u,y:e.domain&&e.domain.y?e.domain.y:c},v={x:e.domain&&e.domain.x?Va(e,"x").domain(e.domain.x).range(e.horizontal?b.y:b.x):f,y:e.domain&&e.domain.y?Va(e,"y").domain(e.domain.y).range(e.horizontal?b.x:b.y):d},_=m.x&&m.y?kR(m):void 0,x=_?{x:S3(_.x,m.x),y:S3(_.y,m.y)}:void 0,O=x?{x:H3("x",x.y,e.horizontal),y:H3("y",x.x,e.horizontal)}:void 0,S=O?e.orientation||O[o]:T0e(e),w=A0(Object.assign({},e,{orientation:S})),C=y0e(S,w);return{anchors:C,axis:o,crossAxis:h,domain:m,isVertical:w,labelPadding:a,orientation:S,orientations:O,origin:_,padding:r,scale:v,stringTicks:i,style:n,tickFormat:g,ticks:p}},M0e=function(e,t){var n=I0(e,t),r=A0e(n),a=r.axis,i=r.style,o=r.orientation,l=r.isVertical,s=r.scale,u=r.ticks,c=r.tickFormat,f=r.anchors,d=r.domain,h=r.stringTicks,p=a==="x"?"y":"x",g=n.width,b=n.height,m=n.standalone,v=n.theme,_=n.polar,x=n.padding,O=n.horizontal,S=P0e(n,r),w=S.globalTransform,C=S.gridOffset,A=S.gridEdge,I={scale:gp({},a,s[a]),polar:_,horizontal:O,ticks:u,stringTicks:h},P=m0e(n,r,w),T=v0e(n,r,w),E={parent:Object.assign({style:i.parent,ticks:u,standalone:m,theme:v,width:g,height:b,padding:x,domain:d},I)},L={dimension:p,range:gp({},p,ln(n,p)),scale:n.scale&&n.scale[p]?gp({},p,n.scale[p]):void 0};return u.reduce(function(N,U,W){var $,F,k,X=h?h[W]:U,te=c(U,W,u),R=g0e(i,Object.assign({},I,{tick:X,tickValue:U,index:W,text:te})),J={position:O0e(R,o,l),transform:C0e(($=s[a])===null||$===void 0?void 0:$.call(s,U),w,l)},ae={edge:A,transform:{x:l?-C.x+w.x:((F=s[a])===null||F===void 0?void 0:F.call(s,U))+w.x,y:l?((k=s[a])===null||k===void 0?void 0:k.call(s,U))+w.y:C.y+w.y}};return N[W]={axis:Object.assign({dimension:a},I,P),axisLabel:Object.assign({},I,T),ticks:Object.assign({},I,d0e(J,R.tickStyle,U)),tickLabels:Object.assign({},I,h0e(J,R.labelStyle,f,U,te)),grid:Object.assign({},I,L,p0e(ae,R.gridStyle,U))},N},E)};function I0e(e){return j0e(e)||L0e(e)||$0e(e)||R0e()}function R0e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0e(e,t){if(e){if(typeof e=="string")return h5(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 h5(e,t)}}function L0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function j0e(e){if(Array.isArray(e))return h5(e)}function h5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xm(e)}var O$={width:450,height:300,padding:50},W0e={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},va=function(e){F0e(n,e);var t=z0e(n);function n(){return D0e(this,n),t.apply(this,arguments)}return N0e(n,[{key:"renderLine",value:function(a){var i=a.axisComponent,o=this.getComponentProps(i,"axis",0);return M.cloneElement(i,o)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.label;if(!o)return null;var l=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,l)}},{key:"renderGridAndTicks",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.gridComponent,u=a.name,c=function(f){var d=f.style,h=d===void 0?{}:d,p=f.events,g=p===void 0?{}:p,b=h.stroke!=="transparent"&&h.stroke!=="none"&&h.strokeWidth!==0;return b||!Mt(g)};return this.dataKeys.map(function(f,d){var h=i.getComponentProps(o,"ticks",d),p=M.cloneElement(o,h),g=c(p.props)?p:void 0,b=i.getComponentProps(s,"grid",d),m=M.cloneElement(s,b),v=c(m.props)?m:void 0,_=i.getComponentProps(l,"tickLabels",d),x=M.cloneElement(l,_),O=[v,g,x].filter(Boolean);return M.cloneElement(a.groupComponent,{key:"".concat(u,"-tick-group-").concat(f)},O)})}},{key:"fixLabelOverlap",value:function(a,i){var o=A0(i),l=o?i.height:i.width,s=function(b){return b.type&&b.type.role==="label"},u=a.map(function(b){return b.props.children}).reduce(function(b,m){return b.concat(m)},[]).filter(s).map(function(b){return b.props}),c=function(b){return typeof b=="object"?Object.assign({},{top:0,right:0,bottom:0,left:0},b):{top:b,right:b,bottom:b,left:b}},f=u.reduce(function(b,m){var v=c(m.style.padding),_=Ml(m.text,{angle:m.angle,fontSize:m.style.fontSize,letterSpacing:m.style.letterSpacing,fontFamily:m.style.fontFamily});return b+(o?_.height+v.top+v.bottom:_.width+v.right+v.left)},0),d=Math.floor(l*a.length/f),h=Math.ceil(a.length/d)||1,p=function(b){return b.props.children.filter(s).reduce(function(m,v){return(o?v.props.y:v.props.x)||0},0)},g=a.sort(function(b,m){return o?p(m)-p(b):p(b)-p(m)});return g.filter(function(b,m){return m%h===0})}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=Jf.animationWhitelist,i=I0(this.props,O$),o=Ya(this.props);if(this.shouldAnimate())return this.animateComponent(i,a);var l=this.renderGridAndTicks(i),s=i.fixLabelOverlap?this.fixLabelOverlap(l,i):l,u=[this.renderLine(i),this.renderLabel(i)].concat(I0e(s)),c=M.cloneElement(i.containerComponent,o);return i.standalone?this.renderContainer(c,u):M.cloneElement(i.groupComponent,o,u)}}]),n}(M.Component);va.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];va.displayName="VictoryAxis";va.role="axis";va.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};va.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),tickLabelComponent:M.createElement(Dn,null),tickComponent:M.createElement(yl,null),gridComponent:M.createElement(yl,null),standalone:!0,theme:Di.grayscale,containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",{role:"presentation"}),fixLabelOverlap:!1};va.getDomain=Wu;va.getAxis=Gr;va.getStyles=function(e){return S$(e)};va.getBaseProps=function(e){return M0e(e,O$)};va.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Jf=Hu(va,W0e),Xn=function(e,t,n){return n==="x"?e*Math.cos(t):-e*Math.sin(t)},C$=function(e){var t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},V0e=function(e,t){var n=function(r){return t(r)%(2*Math.PI)};return v$(e,n)},uw=function(e,t){return{tickStyle:_t(e.ticks,t),labelStyle:_t(e.tickLabels,t),gridStyle:_t(e.grid,t)}},q0e=function(e){var t,n,r=e.theme,a=r===void 0?{}:r,i=e.dependentAxis,o=a.polarAxis&&a.polarAxis.style||a.axis&&a.axis.style,l=i?"polarDependentAxis":"polarIndependentAxis",s=i?"dependentAxis":"independentAxis",u=(a==null||(t=a[l])===null||t===void 0?void 0:t.style)||(a==null||(n=a[s])===null||n===void 0?void 0:n.style),c=function(){var f=["axis","axisLabel","grid","parent","tickLabels","ticks"];return f.reduce(function(d,h){return d[h]=me({},u==null?void 0:u[h],o==null?void 0:o[h]),d},{})};return o&&u?c():u||o},E$=function(e){var t=Wt(e),n=t.left,r=t.right,a=t.top,i=t.bottom,o=e.width,l=e.height;if(o===void 0||l===void 0)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-r,l-a-i)/2},k$=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=C$(e);if(n==="angular"){var r=vt(e.startAngle),a=vt(e.endAngle);return[r,a]}var i=E$(e);return[e.innerRadius||0,i]},P$=function(e){var t=Gr(e),n=Va(e,t),r=Wu(e,t)||n.domain(),a=k$(e,t);return n.range(a),n.domain(r),n},T$=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{},r={height:"auto",width:"100%"};return{parent:me(r,n.parent,t.parent),axis:me({},n.axis,t.axis),axisLabel:me({},n.axisLabel,t.axisLabel),grid:me({},n.grid,t.grid),ticks:me({},n.ticks,t.ticks),tickLabels:me({},n.tickLabels,t.tickLabels)}},z0=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,a=Gr(e),i=AR(e,a);return i===void 0||!r?t===void 0?n:t:bi(i)},G0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{tick:h,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:o,axisType:a,text:d}),g=p.tickStyle,b=a==="radial"?z0(e):void 0,m=g.padding||g.size||0,v=vt(90-b),_=a==="angular"?o(n):vt(-1*b),x=a==="angular"?i:o(n);return a==="angular"?{index:r,datum:h,style:g,x1:Xn(x,_,"x")+f.x,y1:Xn(x,_,"y")+f.y,x2:Xn(x+m,_,"x")+f.x,y2:Xn(x+m,_,"y")+f.y}:{index:r,datum:h,style:g,x1:x*Math.cos(_)+Math.cos(v)*m+f.x,x2:x*Math.cos(_)-Math.cos(v)*m+f.x,y1:x*Math.sin(_)+Math.sin(v)*m+f.y,y2:x*Math.sin(_)-Math.sin(v)*m+f.y}},K0e=function(e,t,n,r){var a=t.axisType,i=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,p=uw(l,{text:d,tick:h,tickValue:n,index:r,ticks:u,stringTicks:c,radius:i,scale:s,axisType:a}),g=p.labelStyle,b=e.tickLabelComponent,m=b!=null&&b.props.labelPlacement?b.props.labelPlacement:e.labelPlacement,v=g.padding||0,_=0,x=a==="radial"?z0(e):void 0,O=a==="angular"?bi(s(n)):x+_,S=g.angle===void 0?yx(Object.assign({},e,{labelPlacement:m}),O):g.angle,w=a==="angular"?i+v:s(n),C=g.textAnchor||vx(Object.assign({},e,{labelPlacement:m}),O);return{index:r,datum:h,style:g,angle:S,textAnchor:C,text:d,x:w*Math.cos(vt(O))+f.x,y:-w*Math.sin(vt(O))+f.y}},X0e=function(e,t,n,r){var a=t.axisType,i=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,p=e.endAngle,g=e.innerRadius,b=g===void 0?0:g,m=s?s[r]:n,v=uw(o,{tick:m,tickValue:n,index:r,ticks:u,stringTicks:s,radius:i,scale:l,axisType:a,text:d}),_=v.gridStyle,x=l(n);return a==="angular"?{index:r,datum:m,style:_,x1:Xn(i,x,"x")+f.x,y1:Xn(i,x,"y")+f.y,x2:Xn(b,x,"x")+f.x,y2:Xn(b,x,"y")+f.y}:{style:_,index:r,datum:m,cx:f.x,cy:f.y,r:l(n),startAngle:h,endAngle:p}},Y0e=function(e,t){var n=t.axisType,r=t.radius,a=t.style,i=t.origin,o=e.axisLabelComponent;if(n!=="radial")return{};var l=o!=null&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=a&&a.axisLabel||{},u=n==="radial"?z0(e):void 0,c=s.angle===void 0?yx(Object.assign({},e,{labelPlacement:l}),u):s.angle,f=r+(s.padding||0),d=s.textAnchor||vx(Object.assign({},e,{labelPlacement:l}),u),h=s.verticalAnchor||hI(Object.assign({},e,{labelPlacement:l}),u);return{style:s,angle:c,textAnchor:d,verticalAnchor:h,text:e.label,x:Xn(f,vt(u),"x")+i.x,y:Xn(f,vt(u),"y")+i.y}},Q0e=function(e,t){var n=t.style,r=t.axisType,a=t.radius,i=t.origin,o=e.startAngle,l=e.endAngle,s=e.innerRadius,u=s===void 0?0:s,c=r==="radial"?vt(z0(e)):void 0;return r==="radial"?{style:n.axis,x1:Xn(u,c,"x")+i.x,x2:Xn(a,c,"x")+i.x,y1:Xn(u,c,"y")+i.y,y2:Xn(a,c,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:a,startAngle:o,endAngle:l}},J0e=function(e){var t=Object.assign({polar:!0},e),n=q0e(t),r=T$(t,n),a=Wt(t),i=Gr(t),o=C$(t),l=M0(t)?t.tickValues:void 0,s=Wu(t,i),u=k$(t,i),c=P$(t),f=TR(t,c),d=o==="angular"?V0e(f,c):f,h=PR(t,c),p=E$(t),g=Nd(t);return{axis:i,style:r,padding:a,stringTicks:l,axisType:o,scale:c,ticks:d,tickFormat:h,domain:s,range:u,radius:p,origin:g}},Z0e=function(e,t){var n=I0(e,t),r=J0e(n),a=r.style,i=r.scale,o=r.ticks,l=r.domain,s=n.width,u=n.height,c=n.standalone,f=n.theme,d=n.name,h=Q0e(n,r),p=Y0e(n,r),g={parent:{style:a.parent,ticks:o,scale:i,width:s,height:u,domain:l,standalone:c,theme:f,name:d}};return o.reduce(function(b,m,v){return b[v]={axis:h,axisLabel:p,ticks:G0e(n,r,m,v),tickLabels:K0e(n,r,m,v),grid:X0e(n,r,m,v)},b},g)};function cy(e){return rve(e)||nve(e)||tve(e)||eve()}function eve(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tve(e,t){if(e){if(typeof e=="string")return m5(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 m5(e,t)}}function nve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rve(e){if(Array.isArray(e))return m5(e)}function m5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ym(e)}var cw={width:450,height:300,padding:50},Kr=function(e){ove(n,e);var t=lve(n);function n(){return ave(this,n),t.apply(this,arguments)}return ive(n,[{key:"renderAxisLine",value:function(a){var i=a.dependentAxis,o=i?a.axisComponent:a.circularAxisComponent,l=this.getComponentProps(o,"axis",0);return M.cloneElement(o,l)}},{key:"renderLabel",value:function(a){var i=a.axisLabelComponent,o=a.dependentAxis,l=a.label;if(!l||!o)return null;var s=this.getComponentProps(i,"axisLabel",0);return M.cloneElement(i,s)}},{key:"renderAxis",value:function(a){var i=this,o=a.tickComponent,l=a.tickLabelComponent,s=a.name,u=function(v){var _=v.style,x=_===void 0?{}:_,O=v.events,S=O===void 0?{}:O,w=x.stroke!=="transparent"&&x.stroke!=="none"&&x.strokeWidth!==0;return w||!Mt(S)},c=a.dependentAxis?"radial":"angular",f=c==="radial"?a.circularGridComponent:a.gridComponent,d=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(o,"ticks",_)),O=M.cloneElement(o,x);return u(O.props)?O:void 0}).filter(Boolean),h=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-grid-").concat(v)},i.getComponentProps(f,"grid",_)),O=M.cloneElement(f,x);return u(O.props)?O:void 0}).filter(Boolean),p=this.dataKeys.map(function(v,_){var x=Object.assign({key:"".concat(s,"-tick-").concat(v)},i.getComponentProps(l,"tickLabels",_));return M.cloneElement(l,x)}),g=this.renderAxisLine(a),b=this.renderLabel(a),m=[g,b].concat(cy(d),cy(h),cy(p));return this.renderGroup(a,m)}},{key:"renderGroup",value:function(a,i){var o=a.groupComponent;return M.cloneElement(o,{},i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=v5.animationWhitelist,i=I0(this.props,cw);if(this.shouldAnimate())return this.animateComponent(i,a);var o=this.renderAxis(i);return i.standalone?this.renderContainer(i.containerComponent,o):o}}]),n}(M.Component);Kr.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];Kr.displayName="VictoryAxis";Kr.role="axis";Kr.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};Kr.defaultProps={axisComponent:M.createElement(yl,null),axisLabelComponent:M.createElement(Dn,null),circularAxisComponent:M.createElement($E,null),circularGridComponent:M.createElement($E,null),containerComponent:M.createElement(En,null),endAngle:360,gridComponent:M.createElement(yl,null),groupComponent:M.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Di.grayscale,tickComponent:M.createElement(yl,null),tickLabelComponent:M.createElement(Dn,null)};Kr.getDomain=Wu;Kr.getAxis=Gr;Kr.getScale=P$;Kr.getStyles=function(e){return T$(e,cw.style)};Kr.getBaseProps=function(e){return Z0e(e,cw)};Kr.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var fve={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},v5=Hu(Kr,fve),dve={width:450,height:300,padding:50};function hve(e,t,n){var r=n.domain,a=n.scale,i=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:i,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:a}}function pve(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],a=t.range.x[1]-t.range.x[0],i=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:i,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:a};return M.cloneElement(n,me({},n.props,c))}function mve(e,t,n){var r=CR([e]);if(r.length>0)return hve(r[0],t,n);var a=n.categories,i=n.domain,o=n.range,l=n.scale,s=n.stringMap,u=n.horizontal;return{categories:a,domain:i,range:o,scale:l,stringMap:s,horizontal:u}}function gve(e){var t=e.style&&e.style.parent;return{parent:me({},t,{height:"100%",width:"100%",userSelect:"none"})}}function A$(e,t){var n=gve(e),r=on(e,dve,"chart"),a=r.horizontal,i=r.polar,o=_$(r,t),l=x$(r,t,o),s=yve(r,t,o),u={x:q3(Object.assign({},r,{categories:l}),"x",t),y:q3(Object.assign({},r,{categories:l}),"y",t)},c={x:ln(r,"x"),y:ln(r,"y")},f={x:Qf(r,"x")||qm(r,"x"),y:Qf(r,"y")||qm(r,"y")},d={x:f.x.domain(u.x).range(a?c.y:c.x),y:f.y.domain(u.y).range(a?c.x:c.y)},h=i?Nd(r):kR(u),p=Wt(r);return{categories:l,domain:u,range:c,horizontal:a,scale:d,stringMap:s,style:n,origin:h,padding:p}}function vve(e,t,n){var r=t||M$(e),a=n||A$(e,r),i=a.style.parent,o=e.height,l=e.polar,s=e.theme,u=e.width,c=a.origin,f=a.horizontal,d=e.name||"chart";return r.filter(M.isValidElement).map(function(h,p){var g=h.type&&h.type.role,b=Array.isArray(h.props.style)?h.props.style:me({},h.props.style,{parent:i}),m=mve(h,e,a),v=h.props.name||"".concat(d,"-").concat(g,"-").concat(p),_=me({horizontal:f,height:o,polar:l,theme:s,width:u,style:b,name:v,origin:l?c:void 0,padding:a.padding,key:"".concat(v,"-key-").concat(p),standalone:!1},m);return M.cloneElement(h,_)})}var M$=function(e,t){var n=M.Children.toArray(e.children);if(n.length===0)n.push(t.independent,t.dependent);else{var r={dependent:w3(n,"dependent"),independent:w3(n,"independent")};r.dependent.length===0&&r.independent.length===0&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},q3=function(e,t,n){var r=n||M.Children.toArray(e.children),a=l5(e,t,r),i=ER(r,t),o=i&&i.props&&i.props.invertAxis;return o?a.concat().reverse():a},yve=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(i,o,l){return i[o]=l+1,i},{}),a=!n.y||n.y.length===0?null:n.y.reduce(function(i,o,l){return i[o]=l+1,i},{});return{x:r,y:a}};function G3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function K3(e){for(var t=1;t{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,style:{q1:{fill:t[0]},q3:{fill:t[0]}}},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}}},h5e=[s5e.var,u5e.var,c5e.var,f5e.var,d5e.var],X3=Fi({COLOR_SCALE:h5e}),p5e={name:"--pf-v5-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-v5-chart-theme--cyan--ColorScale--100, #009596)"},m5e={name:"--pf-v5-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--cyan--ColorScale--200, #a2d9d9)"},g5e={name:"--pf-v5-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-v5-chart-theme--cyan--ColorScale--300, #003737)"},v5e={name:"--pf-v5-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--cyan--ColorScale--400, #73c5c5)"},y5e={name:"--pf-v5-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-v5-chart-theme--cyan--ColorScale--500, #005f60)"},b5e=[p5e.var,m5e.var,g5e.var,v5e.var,y5e.var],_5e=Fi({COLOR_SCALE:b5e}),x5e={name:"--pf-v5-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-v5-chart-theme--gold--ColorScale--100, #f4c145)"},w5e={name:"--pf-v5-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--gold--ColorScale--200, #f9e0a2)"},S5e={name:"--pf-v5-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-v5-chart-theme--gold--ColorScale--300, #c58c00)"},O5e={name:"--pf-v5-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-v5-chart-theme--gold--ColorScale--400, #f6d173)"},C5e={name:"--pf-v5-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-v5-chart-theme--gold--ColorScale--500, #f0ab00)"},E5e=[x5e.var,w5e.var,S5e.var,O5e.var,C5e.var],k5e=Fi({COLOR_SCALE:E5e}),P5e={name:"--pf-v5-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--gray--ColorScale--100, #b8bbbe)"},T5e={name:"--pf-v5-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--gray--ColorScale--200, #f0f0f0)"},A5e={name:"--pf-v5-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-v5-chart-theme--gray--ColorScale--300, #6a6e73)"},M5e={name:"--pf-v5-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--gray--ColorScale--400, #d2d2d2)"},I5e={name:"--pf-v5-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--gray--ColorScale--500, #8a8d90)"},R5e=[P5e.var,T5e.var,A5e.var,M5e.var,I5e.var],$5e=Fi({COLOR_SCALE:R5e}),L5e={name:"--pf-v5-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-v5-chart-theme--green--ColorScale--100, #4cb140)"},j5e={name:"--pf-v5-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--green--ColorScale--200, #bde2b9)"},D5e={name:"--pf-v5-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-v5-chart-theme--green--ColorScale--300, #23511e)"},N5e={name:"--pf-v5-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-v5-chart-theme--green--ColorScale--400, #7cc674)"},F5e={name:"--pf-v5-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-v5-chart-theme--green--ColorScale--500, #38812f)"},z5e=[L5e.var,j5e.var,D5e.var,N5e.var,F5e.var],B5e=Fi({COLOR_SCALE:z5e}),U5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},H5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},W5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},V5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},G5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},K5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},X5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},Y5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},Q5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},J5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},Z5e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},e2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},t2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},n2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},r2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},a2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},i2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},o2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},l2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},s2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},u2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},c2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},f2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},d2e={name:"--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},h2e=[U5e.var,H5e.var,W5e.var,V5e.var,q5e.var,G5e.var,K5e.var,X5e.var,Y5e.var,Q5e.var,J5e.var,Z5e.var,e2e.var,t2e.var,n2e.var,r2e.var,a2e.var,i2e.var,o2e.var,l2e.var,s2e.var,u2e.var,c2e.var,f2e.var,d2e.var],p2e=Fi({COLOR_SCALE:h2e}),m2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},g2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},v2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},y2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},b2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},_2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},x2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},w2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},S2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},O2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},C2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},E2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},k2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},P2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},T2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},A2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},M2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},I2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},R2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},$2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},L2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},j2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},D2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},N2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},F2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},z2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},B2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},U2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},H2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},W2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},V2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},q2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},G2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},K2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},X2e={name:"--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-v5-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},Y2e=[m2e.var,g2e.var,v2e.var,y2e.var,b2e.var,_2e.var,x2e.var,w2e.var,S2e.var,O2e.var,C2e.var,E2e.var,k2e.var,P2e.var,T2e.var,A2e.var,M2e.var,I2e.var,R2e.var,$2e.var,L2e.var,j2e.var,D2e.var,N2e.var,F2e.var,z2e.var,B2e.var,U2e.var,H2e.var,W2e.var,V2e.var,q2e.var,G2e.var,K2e.var,X2e.var],Q2e=Fi({COLOR_SCALE:Y2e}),J2e={name:"--pf-v5-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-v5-chart-theme--orange--ColorScale--100, #ec7a08)"},Z2e={name:"--pf-v5-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-v5-chart-theme--orange--ColorScale--200, #f4b678)"},e_e={name:"--pf-v5-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-v5-chart-theme--orange--ColorScale--300, #8f4700)"},t_e={name:"--pf-v5-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-v5-chart-theme--orange--ColorScale--400, #ef9234)"},n_e={name:"--pf-v5-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-v5-chart-theme--orange--ColorScale--500, #c46100)"},r_e=[J2e.var,Z2e.var,e_e.var,t_e.var,n_e.var],a_e=Fi({COLOR_SCALE:r_e}),i_e={name:"--pf-v5-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-v5-chart-theme--purple--ColorScale--100, #5752d1)"},o_e={name:"--pf-v5-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-v5-chart-theme--purple--ColorScale--200, #b2b0ea)"},l_e={name:"--pf-v5-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-v5-chart-theme--purple--ColorScale--300, #2a265f)"},s_e={name:"--pf-v5-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-v5-chart-theme--purple--ColorScale--400, #8481dd)"},u_e={name:"--pf-v5-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-v5-chart-theme--purple--ColorScale--500, #3c3d99)"},c_e=[i_e.var,o_e.var,l_e.var,s_e.var,u_e.var],f_e=Fi({COLOR_SCALE:c_e}),N$=(e,t)=>I$(Xr(e),t),Xr=e=>{const t=Object.assign({},JSON.parse(JSON.stringify(o5e)));return I$(t,d_e(e))},d_e=e=>{switch(e){case xa.blue:return X3;case xa.cyan:return _5e;case xa.gold:return k5e;case xa.gray:return $5e;case xa.green:return B5e;case xa.multi:case xa.multiOrdered:return p2e;case xa.multiUnordered:return Q2e;case xa.orange:return a_e;case xa.purple:return f_e;default:return X3}},U0=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-v5-c-chart/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-v5-c-chart ${t}`:"pf-v5-c-chart"},Qa=e=>{var{className:t,themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["className","themeColor","theme"]);const i=U0({className:t});return y.createElement(En,Object.assign({className:i,theme:r},a))};Qa.displayName="ChartContainer";Vr(Qa,En);var h_e=Math.ceil,p_e=Math.max;function m_e(e,t,n,r){for(var a=-1,i=p_e(h_e((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var g_e=m_e,v_e=/\s/;function y_e(e){for(var t=e.length;t--&&v_e.test(e.charAt(t)););return t}var b_e=y_e,__e=b_e,x_e=/^\s+/;function w_e(e){return e&&e.slice(0,__e(e)+1).replace(x_e,"")}var S_e=w_e,O_e=S_e,Y3=yr,C_e=Rd,Q3=NaN,E_e=/^[-+]0x[0-9a-f]+$/i,k_e=/^0b[01]+$/i,P_e=/^0o[0-7]+$/i,T_e=parseInt;function A_e(e){if(typeof e=="number")return e;if(C_e(e))return Q3;if(Y3(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y3(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=O_e(e);var n=k_e.test(e);return n||P_e.test(e)?T_e(e.slice(2),n?2:8):E_e.test(e)?Q3:+e}var F$=A_e,M_e=F$,J3=1/0,I_e=17976931348623157e292;function R_e(e){if(!e)return e===0?e:0;if(e=M_e(e),e===J3||e===-J3){var t=e<0?-1:1;return t*I_e}return e===e?e:0}var $_e=R_e,L_e=g_e,j_e=z_,hy=$_e;function D_e(e){return function(t,n,r){return r&&typeof r!="number"&&j_e(t,n,r)&&(n=r=void 0),t=hy(t),n===void 0?(n=t,t=0):n=hy(n),r=r===void 0?te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:me(n.parent,t.parent,r),data:me({},n.data,t.data),labels:me({},n.labels,t.labels),border:me({},n.border,t.border),title:me({},n.title,t.title)}},U$=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},a=K_e(e,r),i=G_e(e),o=t==="horizontal",l=Wt({padding:e.borderPadding});return Object.assign({},e,{style:a,isHorizontal:o,colorScale:i,borderPadding:l})},X_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Y_e=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},H$=function(e){var t=e.data,n=e.style&&e.style.data||{},r=B$(e);return t.map(function(a,i){var o=a.symbol||{},l=r[i].fontSize,s=o.size||n.size||l/2.5,u=e.symbolSpacer||Math.max(s,l);return tk(tk({},a),{},{size:s,symbolSpacer:u,fontSize:l,textSize:Ml(a.name,r[i]),column:X_e(e,i),row:Y_e(e,i)})})},W$=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,a=lw(t,"column"),i=Object.keys(a);return i.reduce(function(o,l,s){var u=a[l].map(function(c){return c.textSize.width+c.size+c.symbolSpacer+r});return o[s]=Math.max.apply(Math,z$(u)),o},[])},V$=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,a=lw(t,"row");return Object.keys(a).reduce(function(i,o,l){var s=a[o],u=s.map(function(c){return c.textSize.height+c.symbolSpacer+r});return i[l]=Math.max.apply(Math,z$(u)),i},[])},q$=function(e){var t=e.style&&e.style.title||{},n=Ml(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Q_e=function(e,t,n){var r=e.column,a=e.row;return{x:Z3(r).reduce(function(i,o){return i+n[o]},0),y:Z3(a).reduce(function(i,o){return i+t[o]},0)}},J_e=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},Z_e=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,a=e.style&&e.style.title||{},i=r.props&&r.props.style||{},o=J_e(t,n);return Array.isArray(i)?i.map(function(l){return me({},l,a,o)}):me({},i,a,o)},exe=function(e,t){var n=e.title,r=e.titleOrientation,a=e.centerTitle,i=e.borderPadding,o=t.height,l=t.width,s=Z_e(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:a?l/2:i[f]+(u||0),y:a?o/2:i[d]+(u||0)},p=function(){return i[r]+(u||0)},g=c?h.x:p(),b=c?p():h.y;return{x:r==="right"?e.x+l-g:e.x+g,y:r==="bottom"?e.y+o-b:e.y+b,style:s,text:n}},txe=function(e,t,n){var r=e.x,a=e.y,i=e.borderPadding,o=e.style,l=(t||0)+i.top+i.bottom,s=(n||0)+i.left+i.right;return{x:r,y:a,height:l,width:s,style:Object.assign({fill:"none"},o.border)}},G$=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,U$(n)),a=r.title,i=r.titleOrientation,o=H$(r),l=W$(r,o),s=V$(r,o),u=a?q$(r):{height:0,width:0};return{height:i==="left"||i==="right"?Math.max(Nh(s),u.height):Nh(s)+u.height,width:i==="left"||i==="right"?Nh(l)+u.width:Math.max(Nh(l),u.width)}},nxe=function(e,t){var n=on(e,t,"legend"),r=Object.assign({},n,U$(n)),a=r.data,i=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,p=r.titleOrientation,g=r.name,b=r.x,m=b===void 0?0:b,v=r.y,_=v===void 0?0:v,x=H$(r),O=W$(r,x),S=V$(r,x),w=B$(r),C=h?q$(r):{height:0,width:0},A={x:p==="left"?C.width:0,y:p==="top"?C.height:0},I={x:c&&typeof c=="object"&&c.left||0,y:f&&typeof f=="object"&&f.top||0},P=G$(r,t),T=P.height,E=P.width,L=txe(r,T,E),N=exe(r,L),U={parent:{data:a,standalone:i,theme:o,padding:l,name:g,height:r.height,width:r.width,style:s.parent},all:{border:L,title:N}};return x.reduce(function(W,$,F){var k=u[F%u.length],X=me({},$.symbol,s.data,{fill:k}),te=Wa($.eventKey)?F:$.eventKey,R=Q_e($,S,O),J=_+d.top+$.symbolSpacer,ae=m+d.left+$.symbolSpacer,ue={index:F,data:a,datum:$,symbol:X.type||X.symbol||"circle",size:$.size,style:X,y:J+R.y+A.y+I.y,x:ae+R.x+A.x+I.x},ve={datum:$,data:a,text:$.name,style:w[F],y:ue.y,x:ue.x+$.symbolSpacer+$.size/2};return W[te]={data:ue,labels:ve},W},U)};function Nh(e){if(e&&e.length){for(var t=0,n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 Qm(e){return Qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qm(e)}var dw={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},pxe=[{name:"Series 1"},{name:"Series 2"}],Kl=function(e){uxe(n,e);var t=cxe(n);function n(){return lxe(this,n),t.apply(this,arguments)}return sxe(n,[{key:"renderChildren",value:function(a){var i=this,o=a.dataComponent,l=a.labelComponent,s=a.title,u=[];if(a.borderComponent){var c=this.getComponentProps(a.borderComponent,"border","all"),f=M.cloneElement(a.borderComponent,c);u.push(f)}if(o){var d=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(o,"data",m);return M.cloneElement(o,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,nk(d))}if(s&&a.titleComponent){var h=this.getComponentProps(s,"title","all"),p=M.cloneElement(a.titleComponent,h);u.push(p)}if(l){var g=this.dataKeys.map(function(b,m){if(b!=="all"){var v=i.getComponentProps(l,"labels",m);if(v.text!==void 0&&v.text!==null)return M.cloneElement(l,v)}}).filter(function(b){return b!==void 0});u.push.apply(u,nk(g))}return u}},{key:"render",value:function(){var a=this.constructor.role,i=on(this.props,dw,a),o=this.renderChildren(i);return i.standalone?this.renderContainer(i.containerComponent,o):M.cloneElement(i.groupComponent,{},o)}}]),n}(M.Component);Kl.displayName="VictoryLegend";Kl.role="legend";Kl.defaultProps={borderComponent:M.createElement(Iue,null),data:pxe,containerComponent:M.createElement(En,null),dataComponent:M.createElement(nce,null),groupComponent:M.createElement("g",null),labelComponent:M.createElement(Dn,null),standalone:!0,theme:Di.grayscale,titleComponent:M.createElement(Dn,null)};Kl.getBaseProps=function(e){return nxe(e,dw)};Kl.getDimensions=function(e){return G$(e,dw)};Kl.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var H0=Hu(Kl);const mxe={name:"--pf-v5-chart-global--label--Margin",value:8,var:"var(--pf-v5-chart-global--label--Margin, 8)"},gxe=mxe,vxe={name:"--pf-v5-chart-legend--position",value:"right",var:"var(--pf-v5-chart-legend--position, right)"},yxe=vxe,bxe=$$.var,_xe=L$.var,xxe=fw.value,wxe={label:{fontFamily:bxe,fontSize:xxe,letterSpacing:_xe,margin:gxe.value,fill:j$.var},legend:{margin:C8.value,position:yxe.value}},Sxe={name:"--pf-v5-chart-global--FontSize--2xl",value:24,var:"var(--pf-v5-chart-global--FontSize--2xl, 24)"},Oxe=Sxe,Cxe={name:"--pf-v5-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-v5-chart-donut--label--subtitle--Fill, #b8bbbe)"},Exe=Cxe,kxe={name:"--pf-v5-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-v5-chart-donut--label--title--Fill, #151515)"},Pxe=kxe,Txe={name:"--pf-v5-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-v5-chart-donut--label--subtitle--position, center)"},Axe=Txe,Mxe={label:{subTitle:{fill:Exe.var,fontSize:fw.value},subTitlePosition:Axe.value,title:{fill:Pxe.var,fontSize:Oxe.value}}},gn=wxe,bc=Mxe,Wr=e=>{var{style:t,textAnchor:n}=e,r=Q(e,["style","textAnchor"]);const a=o=>me(Object.assign(Object.assign({},o),{textAnchor:n}),{fill:gn.label.fill,fontFamily:gn.label.fontFamily,fontSize:gn.label.fontSize,letterSpacing:gn.label.letterSpacing}),i=Array.isArray(t)?t.map(a):a(t);return y.createElement(Dn,Object.assign({style:i,textAnchor:n},r))};Wr.displayName="ChartLabel";Vr(Wr,Dn);const rr={circle:(e,t,n)=>`M ${e}, ${t} m ${-n}, 0 a ${n}, ${n} 0 1,0 ${n*2},0 a ${n}, ${n} 0 1,0 ${-n*2},0`,dash:(e,t,n)=>{const r=1.1*n,a=r-r*.3,i=e-r,o=t+a/2,l=(e+r-i)*.3,s=l/3;return`M ${i}, ${o} @@ -223,9 +223,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho z`},triangleUp:(e,t,n)=>{const r=n/2*Math.sqrt(3),a=e-n,i=e+n,o=t-r,l=t+n;return`M ${a}, ${l} L ${i}, ${l} L ${e}, ${o} - z`}},Ixe=e=>{const{x:t,y:n}=e,r=le(e.size,e);if(e.getPath)return e.getPath(t,n,r);const a={circle:rr.circle,square:rr.square,diamond:rr.diamond,eyeSlash:rr.eyeSlash,triangleDown:rr.triangleDown,triangleLeft:rr.triangleLeft,triangleRight:rr.triangleRight,triangleUp:rr.triangleUp,plus:rr.plus,minus:rr.minus,star:rr.star,dash:rr.dash,threshold:rr.threshold},o=le(e.symbol,e);return(typeof a[o]=="function"?a[o]:a.square)(t,n,r)},H0=e=>{var{active:t,className:n,clipPath:r,datum:a,desc:i,events:o,pathComponent:l=y.createElement(Hl,null),role:s="presentation",shapeRendering:u="auto",tabIndex:c,transform:f}=e,d=Q(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:a,desc:i,events:o,role:s,shapeRendering:u,tabIndex:c,transform:f},d);return y.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:Ixe(h),desc:le(i,h)},o),{role:s,shapeRendering:u,style:_t(d.style,h),tabIndex:le(c,h),transform:f}))};H0.displayName="ChartPoint";const Vd=e=>{var{colorScale:t,containerComponent:n=y.createElement(Qa,null),dataComponent:r=y.createElement(H0,null),labelComponent:a=y.createElement(Wr,null),name:i,patternScale:o,responsive:l=!0,style:s,themeColor:u,titleComponent:c=y.createElement(Wr,null),theme:f=Xr(u)}=e,d=Q(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","titleComponent","theme"]);const h=()=>{if(!o)return s;const m=s?Object.assign({},s):{};return m.data=Object.assign({fill:({index:v})=>{const _=f&&f.legend&&f.legend.colorScale?f.legend.colorScale[v%f.legend.colorScale.length]:void 0,x=t?t[v%t.length]:_,O=o[v%o.length];return O||x}},m.data),m},p=y.cloneElement(n,Object.assign({responsive:l,theme:f},n.props)),g=()=>y.cloneElement(a,Object.assign(Object.assign({},i&&{id:m=>`${i}-${a.type.displayName}-${m.index}`}),a.props)),b=()=>y.cloneElement(c,Object.assign(Object.assign({},i&&{id:()=>`${i}-${c.type.displayName}`}),c.props));return y.createElement(U0,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:g(),name:i,style:h(),theme:f,titleComponent:b()},d))};Vd.displayName="ChartLegend";Vr(Vd,U0,{getBaseProps:!0});Vd.getBaseProps=e=>{const t=Xr(null);return U0.getBaseProps(Object.assign({titleComponent:y.createElement(Wr,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const W0=({height:e,padding:t,width:n})=>{const{top:r,bottom:a,left:i,right:o}=Wt({padding:t}),l=Ha({height:e,width:n,padding:t}),s=(n-l*2-i-o)/2,u=(e-l*2-r-a)/2;return{x:l+i+s,y:l+r+u}},ik=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:a,width:i})=>{const o=W0({height:t,padding:a,width:i}),l=Ha({height:t,width:i,padding:a});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+gn.label.margin+e+l;case"right":return o.x+gn.label.margin+e;default:return e}default:return e}},ok=({dy:e=0,height:t,labelPosition:n,padding:r,width:a})=>{const i=W0({height:t,padding:r,width:a}),o=Ha({height:t,width:a,padding:r});switch(n){case"center":case"right":return i.y+e;case"bottom":return i.y+o+gn.label.margin*2+e;default:return e}},X$=({text:e,theme:t})=>{const n=t.legend.style.labels;return Ml(e,Object.assign({},n))},Y$=(e,t)=>{let n=0;return e.map(r=>{const a=X$({text:r.name,theme:t}).width;a>n&&(n=a)}),n},Q$=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:a=0,height:i,legendComponent:o,padding:l,patternScale:s,position:u=gn.legend.position,theme:c,width:f,orientation:d=c.legend.orientation})=>{const h=o.props?o.props:{},p=e?$xe({dx:r,height:i,legendData:h.data,legendOrientation:h.legendOrientation?h.legendOrientation:d,legendPosition:u,legendProps:h,padding:l,theme:c,width:f}):void 0,g=me({},o.props,{itemsPerRow:p}),b=Lxe({chartType:t,dx:r,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendPosition:u,legendProps:g,padding:l,theme:c,width:f}),m=jxe({chartType:t,dy:a,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendProps:g,legendPosition:u,padding:l,theme:c,width:f}),v=me({},o.props,{colorScale:n,itemsPerRow:p,orientation:d,patternScale:s,standalone:!1,theme:c,x:b>0?b:0,y:m>0?m:0});return y.cloneElement(o,v)},Mo=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?U0.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Rxe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c},d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l});let h=0;switch(n){case"bottom-left":h=u+e;break;case"right":h=f.width+gn.legend.margin+u+e;break;default:h=e;break}return s-h>d.width},$xe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=r?r.length:0;for(let c=u;c>0;c--)if(Rxe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:Object.assign(Object.assign({},i),{itemsPerRow:c}),padding:o,theme:l,width:s})){u=c;break}return u},J$=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{const a=Mo({legendData:e,legendOrientation:t,legendProps:n,theme:r}),i=Mo({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(a.height-i.height)},Lxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);return t==="pie"?zxe(n):Nxe(n)},jxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);switch(t){case"pie":return Bxe(n);case"bullet":return Dxe(n);default:return Fxe(n)}},Dxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c};switch(n){case"bottom":case"bottom-left":return f.height+gn.legend.margin+e;case"right":{const d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),h=p=>p&&p.length>0?17:0;return(f.height-d.height)/2+h(r)}default:return e}},Nxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({padding:o}),h={height:Math.abs(t-(c+u)),width:Math.abs(s-(f+d))},p=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>p.width?Math.round((s-p.width)/2)+e:e;case"bottom-left":return f+e;case"right":return h.width+gn.legend.margin+f+e;default:return e}},Fxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({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+gn.legend.margin*2+u+e;case"right":{const p=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),g=h.height/2+u,b=m=>m&&m.length>0?2:0;return g-p.height/2+b(r)}default:return e}},zxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=W0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o}),f=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>f.width?Math.round((s-f.width)/2)+e:e;case"right":return u.x+gn.label.margin+e+c;default:return e}},Bxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=W0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o});switch(n){case"bottom":return u.y+gn.legend.margin+c+e;case"right":{const f=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),d=h=>h&&h.length>0?2:0;return u.y-f.height/2+d(r)}default:return e}},cr=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:cr(e,n,0),Uxe=[{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}],Hxe=()=>y0("pf-pattern"),Z$=(e,t)=>`${e}:${t}`,Qm=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const a=[...Uxe];return r>0&&r{const s=a[(l+t)%a.length],{d:u,fill:c,stroke:f=o,strokeWidth:d}=s,h=Q(s,["d","fill","stroke","strokeWidth"]),p=Z$(n,l);return y.createElement("pattern",Object.assign({id:p,key:p},h),y.createElement("path",{d:u,stroke:f,strokeWidth:d,fill:c}))})))},Wxe=(e,t)=>e.map((n,r)=>`url(#${Z$(t,r)})`),Vxe=(e,t)=>{const n=[];return(e||t).forEach(a=>n.push(a)),n},qxe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Wxe(e,t);return r&&r.length>0?r:void 0},Gxe=(e,t)=>t?e.map((n,r)=>{const a=t[r%t.length];return Object.assign(Object.assign({},a&&{_fill:a}),n)}):e,hw=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const a=Vxe(e,r);let i=n,o=!n&&t!==void 0;const l=y.useMemo(()=>o?Hxe():void 0,[o]);if(o&&(i=qxe({colorScale:a,patternId:l,patternScale:n})),Array.isArray(t))for(let s=0;sy.Children.toArray(e).map((n,r)=>{if(y.isValidElement(n)){const a=Q(n.props,[]),i=a.style?Object.assign({},a.style):{};if(t){const l=t[r%t.length];i.data=Object.assign(Object.assign({},l&&{fill:l}),i.data)}return y.cloneElement(n,Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),a),{style:i}))}return n});var lk=ju,sk=lk?lk.prototype:void 0;sk&&sk.valueOf;var uk=Ad;uk&&uk.isMap;var ck=Ad;ck&&ck.isSet;const Xxe=e=>F$(e,i5e),Yxe=(e,t)=>{const n=Xr(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},Qxe=e=>F$(e,l5e),Jm=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,hasPatterns:i,legendAllowWrap:o=!1,legendComponent:l=y.createElement(Vd,null),legendData:s,legendPosition:u=gn.legend.position,legendDirection:c="ltr",name:f,padding:d,patternScale:h,showAxis:p=!0,themeColor:g,theme:b=Yxe(g,p),containerComponent:m=y.createElement(Qa,null),legendOrientation:v=b.legend.orientation,height:_=b.chart.height,width:x=b.chart.width}=e,O=Q(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","padding","patternScale","showAxis","themeColor","theme","containerComponent","legendOrientation","height","width"]);const S={bottom:cr("bottom",d,b.chart.padding),left:cr("left",d,b.chart.padding),right:cr("right",d,b.chart.padding),top:cr("top",d,b.chart.padding)},{defaultColorScale:w,defaultPatternScale:C,isPatternDefs:A,patternId:I}=hw({colorScale:a,patternScale:h,hasPatterns:i,themeColorScale:b.chart.colorScale});let P;m.props.labelComponent&&m.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(P=y.cloneElement(m.props.labelComponent,Object.assign(Object.assign({theme:b},C&&{patternScale:C}),m.props.labelComponent.props)));const T=y.cloneElement(m,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:b},m.props),{className:B0({className:m.props.className})}),P&&{labelComponent:P}));let E=0;c==="rtl"&&(E=Y$(s,b));const L=y.cloneElement(l,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:s},f&&{name:`${f}-${l.type.displayName}`}),{orientation:v,theme:b}),c==="rtl"&&{dataComponent:l.props.dataComponent?y.cloneElement(l.props.dataComponent,{transform:`translate(${E})`}):y.createElement(H0,{transform:`translate(${E})`})}),c==="rtl"&&{labelComponent:l.props.labelComponent?y.cloneElement(l.props.labelComponent,{direction:"rtl",dx:E-30}):y.createElement(Wr,{direction:"rtl",dx:E-30})}),l.props)),N=()=>{if(!L.props.data)return null;let $=0,F=0,k=0,X=L.props.title?10:0;return y.Children.toArray(r).map(te=>{te.type.role==="axis"&&te.props.label&&!te.props.dependentAxis&&(k=X$({text:te.props.label,theme:b}).height+10,X=0)}),u==="bottom"?F+=k+X:u==="bottom-left"&&(F+=k+X,$=-10),p||(F-=E8.value),Q$(Object.assign({allowWrap:o===!0||typeof o=="function",chartType:"chart",colorScale:a,dx:$,dy:F,height:_,legendComponent:L,padding:S,position:u,theme:b,width:x},C&&{patternScale:C}))},U=()=>y.Children.toArray(r).map(($,F)=>{if(y.isValidElement($)){const k=Q($.props,[]);return y.cloneElement($,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a},C&&{patternScale:C}),f&&typeof $.name!==void 0&&{name:`${f}-${$.type.displayName}-${F}`}),{theme:b}),k),$.type.displayName==="ChartPie"&&{data:Gxe(k.data,C)}))}return $}),W=N();return y.useEffect(()=>{if(W!=null&&W.props&&typeof o=="function"){const $=J$({legendData:W.props.data,legendOrientation:W.props.orientation,legendProps:W.props,theme:b});o($)}},[W,o,b,x]),y.createElement(z0,Object.assign({colorScale:a,containerComponent:T,height:_,name:f,padding:S,theme:b,width:x},O),U(),W,A&&Qm({patternId:I,colorScale:w}))};Jm.displayName="Chart";Vr(Jm,z0);const Ts=e=>{var{axisLabelComponent:t=y.createElement(Wr,null),containerComponent:n=y.createElement(Qa,null),name:r,showGrid:a=!1,themeColor:i,tickLabelComponent:o=y.createElement(Wr,null),theme:l=Xr(i)}=e,s=Q(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);const u=y.cloneElement(n,Object.assign({theme:l},n.props)),c=()=>y.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),f=()=>y.cloneElement(o,Object.assign(Object.assign({},r&&{id:d=>`${r}-${o.type.displayName}-${d.index}`}),o.props));return y.createElement(Jf,Object.assign({axisLabelComponent:c(),containerComponent:u,name:r,theme:a?Xxe(i):l,tickLabelComponent:f()},s))};Ts.displayName="ChartAxis";Vr(Ts,Jf);var Jxe=function(e,t){var n=function(i){var o=_R(e.scale[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,l=o,s=mr(e.domain[i]),u=pa(e.domain[i]);return s<0&&u<=0?l=u:s>=0&&u>0&&(l=s),t["_".concat(i)]instanceof Date?new Date(l):l},r=t._y0!==void 0?t._y0:n("y"),a=t._x0!==void 0?t._x0:n("x");return Dd(e,Object.assign({},t,{_y0:r,_x0:a}))},Zxe=function(e){var t=e.polar,n=dx(e,"bar"),r=e.disableInlineStyles?{}:b0(e.style,n),a=e.range||{x:ln(e,"x"),y:ln(e,"y")},i={x:J1(e,"x"),y:J1(e,"y")},o={x:Va(e,"x").domain(i.x).range(e.horizontal?a.y:a.x),y:Va(e,"y").domain(i.y).range(e.horizontal?a.x:a.y)},l=t?e.origin||Nd(e):void 0,s=tr(e);return s=ype(s,i,0),{style:r,data:s,scale:o,domain:i,origin:l}},ewe=function(e,t){var n=on(e,t,"bar"),r=Object.assign({},n,Zxe(n)),a=r.alignment,i=r.barRatio,o=r.cornerRadius,l=r.data,s=r.disableInlineStyles,u=r.domain,c=r.events,f=r.height,d=r.horizontal,h=r.origin,p=r.padding,g=r.polar,b=r.scale,m=r.sharedEvents,v=r.standalone,_=r.style,x=r.theme,O=r.width,S=r.labels,w=r.name,C=r.barWidth,A=r.getPath,I={parent:{horizontal:d,domain:u,scale:b,width:O,height:f,data:l,standalone:v,name:w,theme:x,polar:g,origin:h,padding:p,style:_.parent}};return l.reduce(function(P,T,E){var L=Wa(T.eventKey)?E:T.eventKey,N=Jxe(r,T),U=N.x,W=N.y,$=N.y0,F=N.x0,k={alignment:a,barRatio:i,barWidth:C,cornerRadius:o,data:l,datum:T,disableInlineStyles:s,getPath:A,horizontal:d,index:E,polar:g,origin:h,scale:b,style:_.data,width:O,height:f,x:U,y:W,y0:$,x0:F};P[L]={data:k};var X=gx(r,T,E);return(X!=null||S&&(c||m))&&(P[L].labels=mI(r,E)),P},I)},twe=8,nwe=function(e,t){var n=t.scale,r=t.data,a=t.style;if(e)return le(e,t);if(a.width)return a.width;var i=n.x.range(),o=Math.abs(i[1]-i[0]),l=r.length+2,s=t.barRatio||.5,u=s*(r.length<2?twe:o/l);return Math.max(1,u)},rwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(a,i){Wa(e[a])?Wa(e[i])||(n[a]=le(e[i],t)):n[a]=le(e[a],t)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n};function awe(e){return Zt(e)}var iwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return e?awe(e)?rwe(e,t):(n.topLeft=le(e,t),n.topRight=le(e,t),n):n},owe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.disableInlineStyles)return{};var n=e.fill||"black",r={fill:"black",stroke:n};return _t(Object.assign(r,e),t)},ja=function(e,t){return{x:e,y:t,distance:function(n){return Math.sqrt(Math.pow(this.x-n.x,2)+Math.pow(this.y-n.y,2))},add:function(n){return ja(this.x+n.x,this.y+n.y)},subtract:function(n){return ja(this.x-n.x,this.y-n.y)},scalarMult:function(n){return ja(this.x*n,this.y*n)},scalarDivide:function(n){if(n===0)throw new Error("Division by 0 error");return ja(this.x/n,this.y/n)},equals:function(n){return this.x===n.x&&this.y===n.y}}},Zm=function(e,t){return{center:e,radius:t,hasIntersection:function(n){var r=this.center,a=n.center,i=this.radius,o=n.radius,l=r.distance(a);return!(l>i+o||le.length)&&(t=e.length);for(var n=0,r=new Array(t);no-n["top".concat(s)];if(b){var m=ja(f+c*n["top".concat(s)],o+t*n["top".concat(s)]),v=Zm(m,n["top".concat(s)]),_=ja(f+c*n["bottom".concat(s)],i-t*n["bottom".concat(s)]),x=Zm(_,n["bottom".concat(s)]),O=v.intersection(x),S=O.length>0;if(S){var w=O[u?0:1];h={x:w.x,y:w.y},p={x:w.x,y:w.y}}else{var C=n["top".concat(s)]>n["bottom".concat(s)];if(C){var A=v.solveX(i)[u?0:1];d={x:A,y:i},h={x:A,y:i},p={x:A,y:i}}else{var I=x.solveX(o)[u?0:1];h={x:I,y:o},p={x:I,y:o},g={x:I,y:o}}}}var P=[d,h,p,g];return u?P:P.reverse()};return l("Left").concat(l("Right"))},vwe=function(e,t,n){var r=e.y0,a=e.y1,i=e.x0b.x;if(v){var _=ja(i+n["".concat(c,"Left")],h-d*n["".concat(c,"Left")]),x=Zm(_,n["".concat(c,"Left")]),O=ja(o-n["".concat(c,"Right")],h-d*n["".concat(c,"Right")]),S=Zm(O,n["".concat(c,"Right")]),w=x.intersection(S),C=w.length>0;if(C){var A=w[t>0?1:0];g={x:A.x,y:A.y},b={x:A.x,y:A.y}}else{var I=n["".concat(c,"Right")]>n["".concat(c,"Left")];if(I){var P=S.solveY(i)[f?0:1];p={x:i,y:P},g={x:i,y:P},b={x:i,y:P}}else{var T=x.solveY(o)[f?0:1];m={x:o,y:T},b={x:o,y:T},g={x:o,y:T}}}}return[p,g,b,m]},s=l("top"),u=l("bottom");return[u[1],u[0]].concat(Cr(s),[u[3],u[2]])},ywe=function(e,t,n){var r=pw(e,t),a=r.y0>r.y1?1:-1,i=a>0?"0 0 1":"0 0 0",o=gwe(r,a,n);return eL(o,n,i)},bwe=function(e,t,n){var r=pw(e,t),a=r.x00?n.topLeft:n.bottomLeft,bottomRight:a>0?n.topRight:n.bottomRight,bottomLeft:a>0?n.bottomRight:n.topRight,topLeft:a>0?n.bottomLeft:n.topLeft},l=vwe(r,a,o);return eL(l,o,i)},_we=function(e,t){var n=e.datum,r=e.scale,a=e.index,i=e.alignment,o=e.style,l=r.y(n._y0||0),s=r.y(n._y1!==void 0?n._y1:n._y),u=r.x(n._x1!==void 0?n._x1:n._x),c,f;if(o.width){var d=dwe(e,o.width),h=i==="middle"?d/2:d;c=i==="start"?u:u-h,f=i==="end"?u:u+h}else c=pwe(e,Number(a)),f=mwe(e,Number(a));var p=function(S){var w=I0().innerRadius(l).outerRadius(s).startAngle(hk(c)).endAngle(hk(f)).cornerRadius(t[S]);return w()},g=function(S){var w=p("".concat(S,"Right")),C=w.match(/[A-Z]/g)||[],A=w.split(/[A-Z]/).slice(1),I=C.indexOf("L"),P=p("".concat(S,"Left")),T=P.match(/[A-Z]/g)||[],E=P.split(/[A-Z]/).slice(1),L=T.indexOf("L");return{rightMoves:C,rightCoords:A,rightMiddle:I,leftMoves:T,leftCoords:E,leftMiddle:L}},b=function(){var S=t.topRight,w=t.topLeft,C=s*Math.abs(f-c),A=g("top"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(ue){return ue<3},F=w>S&&$(T)?1:2,k;if(S>w){var X=$(T)?N:N-2;k=$(N)?N-1:X}else{var te=$(N)?1:2;k=$(T)?te:N-2}U=[].concat(Cr(I.slice(0,F)),Cr(E.slice(k))),W=[].concat(Cr(P.slice(0,F)),Cr(L.slice(k)))}var R=U.indexOf("L"),J=U.slice(0,R),ae=W.slice(0,R);return J.map(function(ue,ve){return{command:ue,coords:ae[ve].split(",")}})},m=function(){var S=t.bottomRight,w=t.bottomLeft,C=l*Math.abs(f-c),A=g("bottom"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(J,ae){return J.length-ae<4},F=S>w?$(I,T):$(E,N),k=F?-1:-3;U=[].concat(Cr(E.slice(0,N+2)),Cr(I.slice(k))),W=[].concat(Cr(L.slice(0,N+2)),Cr(P.slice(k)))}var X=U.indexOf("L"),te=U.slice(X,-1),R=W.slice(X,-1);return te.map(function(J,ae){return{command:J,coords:R[ae].split(",")}})},v=b(),_=m(),x=[].concat(Cr(v),Cr(_)),O=x.reduce(function(S,w){return"".concat(S).concat(w.command," ").concat(w.coords.join())},"");return"".concat(O," z")},xwe=function(e,t,n){return e.getPath?hwe(e,t):e.horizontal?bwe(e,t,n):ywe(e,t,n)},wwe=function(e,t){return _we(e,t)};function pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t"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 eg(e){return eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eg(e)}var tL={width:450,height:300,padding:50},$we=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],Ja=function(e){Twe(n,e);var t=Awe(n);function n(){return kwe(this,n),t.apply(this,arguments)}return Pwe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=tg.animationWhitelist,i=tg.role,o=on(this.props,tL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Ja.animationWhitelist=["data","domain","height","padding","style","width"];Ja.displayName="VictoryBar";Ja.role="bar";Ja.defaultTransitions={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(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}}};Ja.defaultProps={containerComponent:M.createElement(En,null),data:$we,dataComponent:M.createElement(Ewe,null),groupComponent:M.createElement("g",{role:"presentation"}),labelComponent:M.createElement(Dn,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Ja.getDomain=J1;Ja.getData=tr;Ja.getBaseProps=function(e){return ewe(e,tL)};Ja.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var tg=Hu(Ja);const mw=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(tg,Object.assign({containerComponent:i,theme:r},a))};mw.displayName="ChartBar";Vr(mw,tg);function gk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t{const{x:t,y:n}=e,r=le(e.size,e);if(e.getPath)return e.getPath(t,n,r);const a={circle:rr.circle,square:rr.square,diamond:rr.diamond,eyeSlash:rr.eyeSlash,triangleDown:rr.triangleDown,triangleLeft:rr.triangleLeft,triangleRight:rr.triangleRight,triangleUp:rr.triangleUp,plus:rr.plus,minus:rr.minus,star:rr.star,dash:rr.dash,threshold:rr.threshold},o=le(e.symbol,e);return(typeof a[o]=="function"?a[o]:a.square)(t,n,r)},W0=e=>{var{active:t,className:n,clipPath:r,datum:a,desc:i,events:o,pathComponent:l=y.createElement(Hl,null),role:s="presentation",shapeRendering:u="auto",tabIndex:c,transform:f}=e,d=Q(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:a,desc:i,events:o,role:s,shapeRendering:u,tabIndex:c,transform:f},d);return y.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:Ixe(h),desc:le(i,h)},o),{role:s,shapeRendering:u,style:_t(d.style,h),tabIndex:le(c,h),transform:f}))};W0.displayName="ChartPoint";const Vd=e=>{var{colorScale:t,containerComponent:n=y.createElement(Qa,null),dataComponent:r=y.createElement(W0,null),labelComponent:a=y.createElement(Wr,null),name:i,patternScale:o,responsive:l=!0,style:s,themeColor:u,titleComponent:c=y.createElement(Wr,null),theme:f=Xr(u)}=e,d=Q(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","titleComponent","theme"]);const h=()=>{if(!o)return s;const m=s?Object.assign({},s):{};return m.data=Object.assign({fill:({index:v})=>{const _=f&&f.legend&&f.legend.colorScale?f.legend.colorScale[v%f.legend.colorScale.length]:void 0,x=t?t[v%t.length]:_,O=o[v%o.length];return O||x}},m.data),m},p=y.cloneElement(n,Object.assign({responsive:l,theme:f},n.props)),g=()=>y.cloneElement(a,Object.assign(Object.assign({},i&&{id:m=>`${i}-${a.type.displayName}-${m.index}`}),a.props)),b=()=>y.cloneElement(c,Object.assign(Object.assign({},i&&{id:()=>`${i}-${c.type.displayName}`}),c.props));return y.createElement(H0,Object.assign({colorScale:t,containerComponent:p,dataComponent:r,labelComponent:g(),name:i,style:h(),theme:f,titleComponent:b()},d))};Vd.displayName="ChartLegend";Vr(Vd,H0,{getBaseProps:!0});Vd.getBaseProps=e=>{const t=Xr(null);return H0.getBaseProps(Object.assign({titleComponent:y.createElement(Wr,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const V0=({height:e,padding:t,width:n})=>{const{top:r,bottom:a,left:i,right:o}=Wt({padding:t}),l=Ha({height:e,width:n,padding:t}),s=(n-l*2-i-o)/2,u=(e-l*2-r-a)/2;return{x:l+i+s,y:l+r+u}},ak=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:a,width:i})=>{const o=V0({height:t,padding:a,width:i}),l=Ha({height:t,width:i,padding:a});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+gn.label.margin+e+l;case"right":return o.x+gn.label.margin+e;default:return e}default:return e}},ik=({dy:e=0,height:t,labelPosition:n,padding:r,width:a})=>{const i=V0({height:t,padding:r,width:a}),o=Ha({height:t,width:a,padding:r});switch(n){case"center":case"right":return i.y+e;case"bottom":return i.y+o+gn.label.margin*2+e;default:return e}},K$=({text:e,theme:t})=>{const n=t.legend.style.labels;return Ml(e,Object.assign({},n))},X$=(e,t)=>{let n=0;return e.map(r=>{const a=K$({text:r.name,theme:t}).width;a>n&&(n=a)}),n},Y$=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:a=0,height:i,legendComponent:o,padding:l,patternScale:s,position:u=gn.legend.position,theme:c,width:f,orientation:d=c.legend.orientation})=>{const h=o.props?o.props:{},p=e?$xe({dx:r,height:i,legendData:h.data,legendOrientation:h.legendOrientation?h.legendOrientation:d,legendPosition:u,legendProps:h,padding:l,theme:c,width:f}):void 0,g=me({},o.props,{itemsPerRow:p}),b=Lxe({chartType:t,dx:r,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendPosition:u,legendProps:g,padding:l,theme:c,width:f}),m=jxe({chartType:t,dy:a,height:i,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendProps:g,legendPosition:u,padding:l,theme:c,width:f}),v=me({},o.props,{colorScale:n,itemsPerRow:p,orientation:d,patternScale:s,standalone:!1,theme:c,x:b>0?b:0,y:m>0?m:0});return y.cloneElement(o,v)},Mo=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?H0.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},Rxe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c},d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l});let h=0;switch(n){case"bottom-left":h=u+e;break;case"right":h=f.width+gn.legend.margin+u+e;break;default:h=e;break}return s-h>d.width},$xe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{let u=r?r.length:0;for(let c=u;c>0;c--)if(Rxe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:Object.assign(Object.assign({},i),{itemsPerRow:c}),padding:o,theme:l,width:s})){u=c;break}return u},Q$=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>{const a=Mo({legendData:e,legendOrientation:t,legendProps:n,theme:r}),i=Mo({legendData:e,legendOrientation:t,legendProps:Object.assign(Object.assign({},n),{itemsPerRow:void 0}),theme:r});return Math.abs(a.height-i.height)},Lxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);return t==="pie"?zxe(n):Nxe(n)},jxe=e=>{var{chartType:t}=e,n=Q(e,["chartType"]);switch(t){case"pie":return Bxe(n);case"bullet":return Dxe(n);default:return Fxe(n)}},Dxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{left:u,right:c}=Wt({padding:o}),f={height:t,width:s-u-c};switch(n){case"bottom":case"bottom-left":return f.height+gn.legend.margin+e;case"right":{const d=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),h=p=>p&&p.length>0?17:0;return(f.height-d.height)/2+h(r)}default:return e}},Nxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({padding:o}),h={height:Math.abs(t-(c+u)),width:Math.abs(s-(f+d))},p=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>p.width?Math.round((s-p.width)/2)+e:e;case"bottom-left":return f+e;case"right":return h.width+gn.legend.margin+f+e;default:return e}},Fxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const{top:u,bottom:c,left:f,right:d}=Wt({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+gn.legend.margin*2+u+e;case"right":{const p=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),g=h.height/2+u,b=m=>m&&m.length>0?2:0;return g-p.height/2+b(r)}default:return e}},zxe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=V0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o}),f=Mo({legendData:n,legendOrientation:r,legendProps:i,theme:l});switch(a){case"bottom":return s>f.width?Math.round((s-f.width)/2)+e:e;case"right":return u.x+gn.label.margin+e+c;default:return e}},Bxe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:a,legendProps:i,padding:o,theme:l,width:s})=>{const u=V0({height:t,padding:o,width:s}),c=Ha({height:t,width:s,padding:o});switch(n){case"bottom":return u.y+gn.legend.margin+c+e;case"right":{const f=Mo({legendData:r,legendOrientation:a,legendProps:i,theme:l}),d=h=>h&&h.length>0?2:0;return u.y-f.height/2+d(r)}default:return e}},cr=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:cr(e,n,0),Uxe=[{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}],Hxe=()=>b0("pf-pattern"),J$=(e,t)=>`${e}:${t}`,Jm=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const a=[...Uxe];return r>0&&r{const s=a[(l+t)%a.length],{d:u,fill:c,stroke:f=o,strokeWidth:d}=s,h=Q(s,["d","fill","stroke","strokeWidth"]),p=J$(n,l);return y.createElement("pattern",Object.assign({id:p,key:p},h),y.createElement("path",{d:u,stroke:f,strokeWidth:d,fill:c}))})))},Wxe=(e,t)=>e.map((n,r)=>`url(#${J$(t,r)})`),Vxe=(e,t)=>{const n=[];return(e||t).forEach(a=>n.push(a)),n},qxe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Wxe(e,t);return r&&r.length>0?r:void 0},Gxe=(e,t)=>t?e.map((n,r)=>{const a=t[r%t.length];return Object.assign(Object.assign({},a&&{_fill:a}),n)}):e,hw=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const a=Vxe(e,r);let i=n,o=!n&&t!==void 0;const l=y.useMemo(()=>o?Hxe():void 0,[o]);if(o&&(i=qxe({colorScale:a,patternId:l,patternScale:n})),Array.isArray(t))for(let s=0;sy.Children.toArray(e).map((n,r)=>{if(y.isValidElement(n)){const a=Q(n.props,[]),i=a.style?Object.assign({},a.style):{};if(t){const l=t[r%t.length];i.data=Object.assign(Object.assign({},l&&{fill:l}),i.data)}return y.cloneElement(n,Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),a),{style:i}))}return n});var ok=ju,lk=ok?ok.prototype:void 0;lk&&lk.valueOf;var sk=Ad;sk&&sk.isMap;var uk=Ad;uk&&uk.isSet;const Xxe=e=>N$(e,i5e),Yxe=(e,t)=>{const n=Xr(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},Qxe=e=>N$(e,l5e),Zm=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,hasPatterns:i,legendAllowWrap:o=!1,legendComponent:l=y.createElement(Vd,null),legendData:s,legendPosition:u=gn.legend.position,legendDirection:c="ltr",name:f,padding:d,patternScale:h,showAxis:p=!0,themeColor:g,theme:b=Yxe(g,p),containerComponent:m=y.createElement(Qa,null),legendOrientation:v=b.legend.orientation,height:_=b.chart.height,width:x=b.chart.width}=e,O=Q(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","padding","patternScale","showAxis","themeColor","theme","containerComponent","legendOrientation","height","width"]);const S={bottom:cr("bottom",d,b.chart.padding),left:cr("left",d,b.chart.padding),right:cr("right",d,b.chart.padding),top:cr("top",d,b.chart.padding)},{defaultColorScale:w,defaultPatternScale:C,isPatternDefs:A,patternId:I}=hw({colorScale:a,patternScale:h,hasPatterns:i,themeColorScale:b.chart.colorScale});let P;m.props.labelComponent&&m.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(P=y.cloneElement(m.props.labelComponent,Object.assign(Object.assign({theme:b},C&&{patternScale:C}),m.props.labelComponent.props)));const T=y.cloneElement(m,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:b},m.props),{className:U0({className:m.props.className})}),P&&{labelComponent:P}));let E=0;c==="rtl"&&(E=X$(s,b));const L=y.cloneElement(l,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({data:s},f&&{name:`${f}-${l.type.displayName}`}),{orientation:v,theme:b}),c==="rtl"&&{dataComponent:l.props.dataComponent?y.cloneElement(l.props.dataComponent,{transform:`translate(${E})`}):y.createElement(W0,{transform:`translate(${E})`})}),c==="rtl"&&{labelComponent:l.props.labelComponent?y.cloneElement(l.props.labelComponent,{direction:"rtl",dx:E-30}):y.createElement(Wr,{direction:"rtl",dx:E-30})}),l.props)),N=()=>{if(!L.props.data)return null;let $=0,F=0,k=0,X=L.props.title?10:0;return y.Children.toArray(r).map(te=>{te.type.role==="axis"&&te.props.label&&!te.props.dependentAxis&&(k=K$({text:te.props.label,theme:b}).height+10,X=0)}),u==="bottom"?F+=k+X:u==="bottom-left"&&(F+=k+X,$=-10),p||(F-=C8.value),Y$(Object.assign({allowWrap:o===!0||typeof o=="function",chartType:"chart",colorScale:a,dx:$,dy:F,height:_,legendComponent:L,padding:S,position:u,theme:b,width:x},C&&{patternScale:C}))},U=()=>y.Children.toArray(r).map(($,F)=>{if(y.isValidElement($)){const k=Q($.props,[]);return y.cloneElement($,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a},C&&{patternScale:C}),f&&typeof $.name!==void 0&&{name:`${f}-${$.type.displayName}-${F}`}),{theme:b}),k),$.type.displayName==="ChartPie"&&{data:Gxe(k.data,C)}))}return $}),W=N();return y.useEffect(()=>{if(W!=null&&W.props&&typeof o=="function"){const $=Q$({legendData:W.props.data,legendOrientation:W.props.orientation,legendProps:W.props,theme:b});o($)}},[W,o,b,x]),y.createElement(B0,Object.assign({colorScale:a,containerComponent:T,height:_,name:f,padding:S,theme:b,width:x},O),U(),W,A&&Jm({patternId:I,colorScale:w}))};Zm.displayName="Chart";Vr(Zm,B0);const Ts=e=>{var{axisLabelComponent:t=y.createElement(Wr,null),containerComponent:n=y.createElement(Qa,null),name:r,showGrid:a=!1,themeColor:i,tickLabelComponent:o=y.createElement(Wr,null),theme:l=Xr(i)}=e,s=Q(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","tickLabelComponent","theme"]);const u=y.cloneElement(n,Object.assign({theme:l},n.props)),c=()=>y.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),f=()=>y.cloneElement(o,Object.assign(Object.assign({},r&&{id:d=>`${r}-${o.type.displayName}-${d.index}`}),o.props));return y.createElement(Jf,Object.assign({axisLabelComponent:c(),containerComponent:u,name:r,theme:a?Xxe(i):l,tickLabelComponent:f()},s))};Ts.displayName="ChartAxis";Vr(Ts,Jf);var Jxe=function(e,t){var n=function(i){var o=bR(e.scale[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,l=o,s=mr(e.domain[i]),u=pa(e.domain[i]);return s<0&&u<=0?l=u:s>=0&&u>0&&(l=s),t["_".concat(i)]instanceof Date?new Date(l):l},r=t._y0!==void 0?t._y0:n("y"),a=t._x0!==void 0?t._x0:n("x");return Dd(e,Object.assign({},t,{_y0:r,_x0:a}))},Zxe=function(e){var t=e.polar,n=dx(e,"bar"),r=e.disableInlineStyles?{}:_0(e.style,n),a=e.range||{x:ln(e,"x"),y:ln(e,"y")},i={x:Z1(e,"x"),y:Z1(e,"y")},o={x:Va(e,"x").domain(i.x).range(e.horizontal?a.y:a.x),y:Va(e,"y").domain(i.y).range(e.horizontal?a.x:a.y)},l=t?e.origin||Nd(e):void 0,s=tr(e);return s=ype(s,i,0),{style:r,data:s,scale:o,domain:i,origin:l}},ewe=function(e,t){var n=on(e,t,"bar"),r=Object.assign({},n,Zxe(n)),a=r.alignment,i=r.barRatio,o=r.cornerRadius,l=r.data,s=r.disableInlineStyles,u=r.domain,c=r.events,f=r.height,d=r.horizontal,h=r.origin,p=r.padding,g=r.polar,b=r.scale,m=r.sharedEvents,v=r.standalone,_=r.style,x=r.theme,O=r.width,S=r.labels,w=r.name,C=r.barWidth,A=r.getPath,I={parent:{horizontal:d,domain:u,scale:b,width:O,height:f,data:l,standalone:v,name:w,theme:x,polar:g,origin:h,padding:p,style:_.parent}};return l.reduce(function(P,T,E){var L=Wa(T.eventKey)?E:T.eventKey,N=Jxe(r,T),U=N.x,W=N.y,$=N.y0,F=N.x0,k={alignment:a,barRatio:i,barWidth:C,cornerRadius:o,data:l,datum:T,disableInlineStyles:s,getPath:A,horizontal:d,index:E,polar:g,origin:h,scale:b,style:_.data,width:O,height:f,x:U,y:W,y0:$,x0:F};P[L]={data:k};var X=gx(r,T,E);return(X!=null||S&&(c||m))&&(P[L].labels=pI(r,E)),P},I)},twe=8,nwe=function(e,t){var n=t.scale,r=t.data,a=t.style;if(e)return le(e,t);if(a.width)return a.width;var i=n.x.range(),o=Math.abs(i[1]-i[0]),l=r.length+2,s=t.barRatio||.5,u=s*(r.length<2?twe:o/l);return Math.max(1,u)},rwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(a,i){Wa(e[a])?Wa(e[i])||(n[a]=le(e[i],t)):n[a]=le(e[a],t)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n};function awe(e){return Zt(e)}var iwe=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return e?awe(e)?rwe(e,t):(n.topLeft=le(e,t),n.topRight=le(e,t),n):n},owe=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.disableInlineStyles)return{};var n=e.fill||"black",r={fill:"black",stroke:n};return _t(Object.assign(r,e),t)},ja=function(e,t){return{x:e,y:t,distance:function(n){return Math.sqrt(Math.pow(this.x-n.x,2)+Math.pow(this.y-n.y,2))},add:function(n){return ja(this.x+n.x,this.y+n.y)},subtract:function(n){return ja(this.x-n.x,this.y-n.y)},scalarMult:function(n){return ja(this.x*n,this.y*n)},scalarDivide:function(n){if(n===0)throw new Error("Division by 0 error");return ja(this.x/n,this.y/n)},equals:function(n){return this.x===n.x&&this.y===n.y}}},eg=function(e,t){return{center:e,radius:t,hasIntersection:function(n){var r=this.center,a=n.center,i=this.radius,o=n.radius,l=r.distance(a);return!(l>i+o||le.length)&&(t=e.length);for(var n=0,r=new Array(t);no-n["top".concat(s)];if(b){var m=ja(f+c*n["top".concat(s)],o+t*n["top".concat(s)]),v=eg(m,n["top".concat(s)]),_=ja(f+c*n["bottom".concat(s)],i-t*n["bottom".concat(s)]),x=eg(_,n["bottom".concat(s)]),O=v.intersection(x),S=O.length>0;if(S){var w=O[u?0:1];h={x:w.x,y:w.y},p={x:w.x,y:w.y}}else{var C=n["top".concat(s)]>n["bottom".concat(s)];if(C){var A=v.solveX(i)[u?0:1];d={x:A,y:i},h={x:A,y:i},p={x:A,y:i}}else{var I=x.solveX(o)[u?0:1];h={x:I,y:o},p={x:I,y:o},g={x:I,y:o}}}}var P=[d,h,p,g];return u?P:P.reverse()};return l("Left").concat(l("Right"))},vwe=function(e,t,n){var r=e.y0,a=e.y1,i=e.x0b.x;if(v){var _=ja(i+n["".concat(c,"Left")],h-d*n["".concat(c,"Left")]),x=eg(_,n["".concat(c,"Left")]),O=ja(o-n["".concat(c,"Right")],h-d*n["".concat(c,"Right")]),S=eg(O,n["".concat(c,"Right")]),w=x.intersection(S),C=w.length>0;if(C){var A=w[t>0?1:0];g={x:A.x,y:A.y},b={x:A.x,y:A.y}}else{var I=n["".concat(c,"Right")]>n["".concat(c,"Left")];if(I){var P=S.solveY(i)[f?0:1];p={x:i,y:P},g={x:i,y:P},b={x:i,y:P}}else{var T=x.solveY(o)[f?0:1];m={x:o,y:T},b={x:o,y:T},g={x:o,y:T}}}}return[p,g,b,m]},s=l("top"),u=l("bottom");return[u[1],u[0]].concat(Cr(s),[u[3],u[2]])},ywe=function(e,t,n){var r=pw(e,t),a=r.y0>r.y1?1:-1,i=a>0?"0 0 1":"0 0 0",o=gwe(r,a,n);return Z$(o,n,i)},bwe=function(e,t,n){var r=pw(e,t),a=r.x00?n.topLeft:n.bottomLeft,bottomRight:a>0?n.topRight:n.bottomRight,bottomLeft:a>0?n.bottomRight:n.topRight,topLeft:a>0?n.bottomLeft:n.topLeft},l=vwe(r,a,o);return Z$(l,o,i)},_we=function(e,t){var n=e.datum,r=e.scale,a=e.index,i=e.alignment,o=e.style,l=r.y(n._y0||0),s=r.y(n._y1!==void 0?n._y1:n._y),u=r.x(n._x1!==void 0?n._x1:n._x),c,f;if(o.width){var d=dwe(e,o.width),h=i==="middle"?d/2:d;c=i==="start"?u:u-h,f=i==="end"?u:u+h}else c=pwe(e,Number(a)),f=mwe(e,Number(a));var p=function(S){var w=R0().innerRadius(l).outerRadius(s).startAngle(dk(c)).endAngle(dk(f)).cornerRadius(t[S]);return w()},g=function(S){var w=p("".concat(S,"Right")),C=w.match(/[A-Z]/g)||[],A=w.split(/[A-Z]/).slice(1),I=C.indexOf("L"),P=p("".concat(S,"Left")),T=P.match(/[A-Z]/g)||[],E=P.split(/[A-Z]/).slice(1),L=T.indexOf("L");return{rightMoves:C,rightCoords:A,rightMiddle:I,leftMoves:T,leftCoords:E,leftMiddle:L}},b=function(){var S=t.topRight,w=t.topLeft,C=s*Math.abs(f-c),A=g("top"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(ue){return ue<3},F=w>S&&$(T)?1:2,k;if(S>w){var X=$(T)?N:N-2;k=$(N)?N-1:X}else{var te=$(N)?1:2;k=$(T)?te:N-2}U=[].concat(Cr(I.slice(0,F)),Cr(E.slice(k))),W=[].concat(Cr(P.slice(0,F)),Cr(L.slice(k)))}var R=U.indexOf("L"),J=U.slice(0,R),ae=W.slice(0,R);return J.map(function(ue,ve){return{command:ue,coords:ae[ve].split(",")}})},m=function(){var S=t.bottomRight,w=t.bottomLeft,C=l*Math.abs(f-c),A=g("bottom"),I=A.rightMoves,P=A.rightCoords,T=A.rightMiddle,E=A.leftMoves,L=A.leftCoords,N=A.leftMiddle,U,W;if(S===w||C<2*S+2*w)U=S>w?I:E,W=S>w?P:L;else{var $=function(J,ae){return J.length-ae<4},F=S>w?$(I,T):$(E,N),k=F?-1:-3;U=[].concat(Cr(E.slice(0,N+2)),Cr(I.slice(k))),W=[].concat(Cr(L.slice(0,N+2)),Cr(P.slice(k)))}var X=U.indexOf("L"),te=U.slice(X,-1),R=W.slice(X,-1);return te.map(function(J,ae){return{command:J,coords:R[ae].split(",")}})},v=b(),_=m(),x=[].concat(Cr(v),Cr(_)),O=x.reduce(function(S,w){return"".concat(S).concat(w.command," ").concat(w.coords.join())},"");return"".concat(O," z")},xwe=function(e,t,n){return e.getPath?hwe(e,t):e.horizontal?bwe(e,t,n):ywe(e,t,n)},wwe=function(e,t){return _we(e,t)};function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t"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 tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tg(e)}var eL={width:450,height:300,padding:50},$we=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],Ja=function(e){Twe(n,e);var t=Awe(n);function n(){return kwe(this,n),t.apply(this,arguments)}return Pwe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=ng.animationWhitelist,i=ng.role,o=on(this.props,eL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Ja.animationWhitelist=["data","domain","height","padding","style","width"];Ja.displayName="VictoryBar";Ja.role="bar";Ja.defaultTransitions={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(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}}};Ja.defaultProps={containerComponent:M.createElement(En,null),data:$we,dataComponent:M.createElement(Ewe,null),groupComponent:M.createElement("g",{role:"presentation"}),labelComponent:M.createElement(Dn,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Ja.getDomain=Z1;Ja.getData=tr;Ja.getBaseProps=function(e){return ewe(e,eL)};Ja.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var ng=Hu(Ja);const mw=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(ng,Object.assign({containerComponent:i,theme:r},a))};mw.displayName="ChartBar";Vr(mw,ng);function mk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 ng(e){return ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ng(e)}var tSe={cornerRadius:5,pointerLength:10,pointerWidth:10},Xl=function(e){Ywe(n,e);var t=Qwe(n);function n(r){var a;return Kwe(this,n),a=t.call(this,r),a.id=void 0,a.id=r.id===void 0?y0("tooltip-"):r.id,a}return Xwe(n,[{key:"getDefaultOrientation",value:function(a){var i=a.datum,o=a.horizontal,l=a.polar;if(!l){var s=o?"right":"top",u=o?"left":"bottom";return i&&i.y<0?u:s}return this.getPolarOrientation(a)}},{key:"getPolarOrientation",value:function(a){var i=Kf(a,a.datum),o=a.labelPlacement||"vertical";return o==="vertical"?this.getVerticalOrientations(i):o==="parallel"?i<90||i>270?"right":"left":i>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(a){return a<45||a>315?"right":a>=45&&a<=135?"top":a>135&&a<225?"left":"bottom"}},{key:"getStyles",value:function(a){var i=a.theme||Di.grayscale,o=i&&i.tooltip&&i.tooltip.style?i.tooltip.style:{},l=Array.isArray(a.style)?a.style.map(function(d){return me({},d,o)}):me({},a.style,o),s=i&&i.tooltip&&i.tooltip.flyoutStyle?i.tooltip.flyoutStyle:{},u=a.flyoutStyle?me({},a.flyoutStyle,s):s,c=Array.isArray(l)?l.map(function(d){return _t(d,a)}):_t(l,a),f=_t(u,Object.assign({},a,{style:c}));return{style:c,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(a){var i=a.cornerRadius,o=a.centerOffset,l=a.dx,s=a.dy,u=le(a.active,a),c=le(a.text,Object.assign({},a,{active:u}));c==null&&(c=""),typeof c=="number"&&(c=c.toString());var f=this.getStyles(Object.assign({},a,{active:u,text:c})),d=f.style,h=f.flyoutStyle,p=le(a.orientation,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h}))||this.getDefaultOrientation(a),g=le(a.flyoutPadding,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p}))||this.getLabelPadding(d),b=Wt({padding:g}),m=le(a.pointerWidth,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),v=le(a.pointerLength,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),_=Ml(c,d),x=this.getDimensions(Object.assign({},a,{style:d,flyoutStyle:h,active:u,text:c,orientation:p,flyoutPadding:b,pointerWidth:m,pointerLength:v}),_),O=x.flyoutHeight,S=x.flyoutWidth,w=Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p,flyoutHeight:O,flyoutWidth:S,flyoutPadding:b,pointerWidth:m,pointerLength:v}),C=Zt(o)&&(o==null?void 0:o.x)!==void 0?le(o.x,w):0,A=Zt(o)&&(o==null?void 0:o.y)!==void 0?le(o.y,w):0;return yk(yk({},w),{},{centerOffset:{x:C,y:A},dx:l!==void 0?le(l,w):0,dy:s!==void 0?le(s,w):0,cornerRadius:le(i,w)})}},{key:"getCalculatedValues",value:function(a){var i=a.style,o=a.text,l=a.flyoutStyle,s=a.flyoutHeight,u=a.flyoutWidth,c=Ml(o,i),f={height:s,width:u},d=this.getFlyoutCenter(a,f),h=this.getTransform(a);return{style:i,flyoutStyle:l,labelSize:c,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(a){var i=a.x,o=a.y,l=a.style,s=l||{},u=s.angle||a.angle||this.getDefaultAngle(a);return u?"rotate(".concat(u," ").concat(i," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(a){var i=a.polar,o=a.labelPlacement,l=a.orientation,s=a.datum;if(!i||!o||o==="vertical")return 0;var u=Kf(a,s),c=u>90&&u<180||u>270?1:-1,f=o==="perpendicular"?0:90,d=0;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(a,i,o){var l=a.x,s=a.y,u=o.width,c=o.height,f={x:[0,i.width],y:[0,i.height]},d={x:[l-u/2,l+u/2],y:[s-c/2,s+c/2]},h={x:[d.x[0]f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]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(a,i){var o=a.x,l=a.y,s=a.dx,u=a.dy,c=a.pointerLength,f=a.orientation,d=a.constrainToVisibleArea,h=a.centerOffset,p=i.height,g=i.width,b=f==="left"?-1:1,m=f==="bottom"?-1:1,v={x:f==="left"||f==="right"?o+b*(c+g/2+b*s):o+s,y:f==="top"||f==="bottom"?l-m*(c+p/2-m*u):l+u},_={x:Zt(a.center)&&a.center.x!==void 0?a.center.x:v.x,y:Zt(a.center)&&a.center.y!==void 0?a.center.y:v.y},x={x:_.x+h.x,y:_.y+h.y};return d?this.constrainTooltip(x,a,i):x}},{key:"getLabelPadding",value:function(a){if(!a)return 0;var i=Array.isArray(a)?a.map(function(o){return o.padding}):[a.padding];return Math.max.apply(Math,Uwe(i).concat([0]))}},{key:"getDimensions",value:function(a,i){var o=a.orientation,l=a.pointerLength,s=a.pointerWidth,u=a.flyoutHeight,c=a.flyoutWidth,f=a.flyoutPadding,d=le(a.cornerRadius,a),h=function(){var g=i.height+f.top+f.bottom,b=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(b,g)},p=function(){var g=i.width+f.left+f.right,b=o==="left"||o==="right"?2*d+l:2*d;return Math.max(b,g)};return{flyoutHeight:u?le(u,a):h(),flyoutWidth:c?le(c,a):p()}}},{key:"getLabelProps",value:function(a,i){var o=i.flyoutCenter,l=i.style,s=i.labelSize,u=i.dy,c=u===void 0?0:u,f=i.dx,d=f===void 0?0:f,h=a.text,p=a.datum,g=a.activePoints,b=a.labelComponent,m=a.index,v=a.flyoutPadding,_=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",x=function(){if(!_||_==="middle")return o.x;var O=_==="end"?-1:1;return o.x-O*(s.width/2)};return me({},b.props,{key:"".concat(this.id,"-label-").concat(m),text:h,datum:p,activePoints:g,textAnchor:_,dy:c,dx:d,style:l,x:x()+(v.left-v.right)/2,y:o.y+(v.top-v.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(a,i,o){var l={bottom:i.y+o.height/2,top:i.y-o.height/2,left:i.x-o.width/2,right:i.x+o.width/2},s=[{side:"top",val:l.top>a.y?l.top-a.y:-1},{side:"bottom",val:l.bottoma.x?l.left-a.x:-1}];return m0(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(a,i){var o=i.flyoutDimensions,l=i.flyoutStyle,s=i.flyoutCenter,u=a.x,c=a.y,f=a.dx,d=a.dy,h=a.datum,p=a.activePoints,g=a.index,b=a.pointerLength,m=a.pointerWidth,v=a.cornerRadius,_=a.events,x=a.flyoutComponent,O=le(a.pointerOrientation,a);return me({},x.props,{x:u,y:c,dx:f,dy:d,datum:h,activePoints:p,index:g,pointerLength:b,pointerWidth:m,cornerRadius:v,events:_,orientation:O||this.getPointerOrientation({x:u,y:c},s,o),key:"".concat(this.id,"-tooltip-").concat(g),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(a){var i=le(a.active,a),o=a.renderInPortal;if(!i)return o?M.createElement(ko,null):null;var l=this.getEvaluatedProps(a),s=l.flyoutComponent,u=l.labelComponent,c=l.groupComponent,f=this.getCalculatedValues(l),d=[M.cloneElement(s,this.getFlyoutProps(l,f)),M.cloneElement(u,this.getLabelProps(l,f))],h=M.cloneElement(c,{role:"presentation",transform:f.transform},d);return o?M.createElement(ko,null,h):h}},{key:"render",value:function(){var a=on(this.props,tSe,"tooltip");return this.renderTooltip(a)}}]),n}(M.Component);Xl.displayName="VictoryTooltip";Xl.role="tooltip";Xl.defaultProps={active:!1,renderInPortal:!0,labelComponent:M.createElement(Dn,null),flyoutComponent:M.createElement(Bwe,null),groupComponent:M.createElement("g",null)};Xl.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}}}]};const V0=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=y.createElement(Wr,null),labelTextAnchor:r,themeColor:a,theme:i=Xr(a)}=e,o=Q(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const l=y.cloneElement(n,Object.assign({textAnchor:r,theme:i},n.props));return y.createElement(Xl,Object.assign({constrainToVisibleArea:t,labelComponent:l,theme:i},o))};V0.displayName="ChartTooltip";Vr(V0,Xl);var nSe=ga,rSe=function(){return nSe.Date.now()},aSe=rSe,iSe=yr,hy=aSe,_k=z$,oSe="Expected a function",lSe=Math.max,sSe=Math.min;function uSe(e,t,n){var r,a,i,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(oSe);t=_k(t)||0,iSe(n)&&(c=!!n.leading,f="maxWait"in n,i=f?lSe(_k(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var w=r,C=a;return r=a=void 0,u=S,o=e.apply(C,w),o}function p(S){return u=S,l=setTimeout(m,t),c?h(S):o}function g(S){var w=S-s,C=S-u,A=t-w;return f?sSe(A,i-C):A}function b(S){var w=S-s,C=S-u;return s===void 0||w>=t||w<0||f&&C>=i}function m(){var S=hy();if(b(S))return v(S);l=setTimeout(m,g(S))}function v(S){return l=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function x(){return l===void 0?o:v(hy())}function O(){var S=hy(),w=b(S);if(r=arguments,a=this,s=S,w){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(m,t),h(s)}return l===void 0&&(l=setTimeout(m,t)),o}return O.cancel=_,O.flush=x,O}var cSe=uSe,fSe=cSe,dSe=yr,hSe="Expected a function";function pSe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(hSe);return dSe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),fSe(e,t,{leading:r,maxWait:t,trailing:a})}var mSe=pSe;const gSe=at(mSe);var vSe=function(e){return e==null||Xe(e)?e:"".concat(e)},ySe=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},bSe=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},_Se=function(e,t){var n=e.width,r=e.height,a=Zt(e.origin)?e.origin:{};return{x:a.x!==void 0?a.x:(t.left-t.right+n)/2,y:a.y!==void 0?a.y:(t.top-t.bottom+r)/2}},xSe=function(e,t){var n=Xe(e.padAngle)?0:e.padAngle,r=DR().sort(null).startAngle(vt(e.startAngle)).endAngle(vt(e.endAngle)).padAngle(vt(n)).value(function(a){return a._y});return r(t)},wSe=function(e){var t=e.colorScale,n=dx(e,"pie"),r=b0(e.style,n),a=Array.isArray(t)?t:bx(t),i=Wt(e),o=bSe(e,i),l=_Se(e,i),s=tr(e),u=xSe(e,s);return Object.assign({},e,{style:r,colors:a,padding:i,defaultRadius:o,data:s,slices:u,origin:l})},SSe=function(e,t){var n=t.style,r=t.colors,a=ySe(n,r,e);return Object.assign({fill:a},n.data)},OSe=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Xe(e.labels)?e.labels:t.xName||t._x,vSe(r)},CSe=function(e){return I0().outerRadius(e).innerRadius(e)},ESe=function(e,t,n){var r=n&&n.padding||0;return t||e+r},kSe=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},a=Object.assign({},t,r);return e.centroid(a)},PSe=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"},TSe=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},ASe=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},MSe=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=bi((e.startAngle+e.endAngle)/2):r=bi(t==="startAngle"?e.startAngle:e.endAngle);var a=r<0?360-r:r;return a%360},ISe=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},RSe=function(e,t,n){var r=t.index,a=t.datum,i=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,p=le(n.labelRadius,Object.assign({text:e},t)),g=le(n.labelPosition,Object.assign({text:e},t))||"centroid",b=le(n.labelPlacement,Object.assign({text:e},t))||"vertical",m=Object.assign({padding:0},u.labels),v=_t(m,Object.assign({labelRadius:p,text:e},t)),_=ESe(c,p,v),x=CSe(_),O=kSe(x,o,g),S=MSe(o,g,m),w=ISe(S,b),C=PSe(S,b),A=m.textAnchor||TSe(C),I=m.verticalAnchor||ASe(C),P={width:d,height:h,index:r,datum:a,data:i,slice:o,orientation:C,text:e,style:m,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:A,verticalAnchor:I,angle:w,calculatedLabelRadius:_};if(!fx(l))return P;var T=s&&s.tooltip||{};return me({},P,Uu(T,["style"]))},$Se=function(e){return Math.cos(e-vt(90))},LSe=function(e){return Math.sin(e-vt(90))},xk=function(e,t){return e*$Se(t)},wk=function(e,t){return e*LSe(t)},Sk=function(e){return e.reduce(function(t,n){return t+n},0)/e.length},jSe=function(e,t,n){var r=e.innerRadius,a=e.radius,i=e.slice,o=i.startAngle,l=i.endAngle,s=e.labelIndicatorInnerOffset,u=e.labelIndicatorOuterOffset,c=e.index,f=t.height,d=t.width,h=n.calculatedLabelRadius,p=Sk([r,a]),g=Sk([l,o]),b=d/2,m=f/2,v=p+s,_=h-u,x=b+xk(v,g),O=m+wk(v,g),S=b+xk(_,g),w=m+wk(_,g),C={x1:x,y1:O,x2:S,y2:w,index:c};return me({},C)},DSe=function(e,t){var n=on(e,t,"pie"),r=wSe(n),a=r.slices,i=r.style,o=r.data,l=r.origin,s=r.defaultRadius,u=r.labels,c=r.events,f=r.sharedEvents,d=r.height,h=r.width,p=r.standalone,g=r.name,b=r.innerRadius,m=r.cornerRadius,v=r.padAngle,_=r.disableInlineStyles,x=r.labelIndicator,O=n.radius||s,S={parent:{standalone:p,height:d,width:h,slices:a,name:g,style:i.parent}};return a.reduce(function(w,C,A){var I=me({},o[A],{startAngle:bi(C.startAngle),endAngle:bi(C.endAngle),padAngle:bi(C.padAngle)}),P=Wa(I.eventKey)?A:I.eventKey,T={index:A,slice:C,datum:I,data:o,origin:l,innerRadius:b,radius:O,cornerRadius:m,padAngle:v,style:_?{}:SSe(A,r),disableInlineStyles:_};w[P]={data:T};var E=OSe(n,I,A);if(E!=null||u&&(c||f)){var L=le(E,T);if(w[P].labels=RSe(L,Object.assign({},n,T),r),x){var N=w[P].labels;N.calculatedLabelRadius>O&&(w[P].labelIndicators=jSe(Object.assign({},n,T),r,N))}}return w},S)};function Ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zh(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 rg(e){return rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rg(e)}var nL={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",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},eOe=function(e){return!Wa(e._x)&&!Wa(e._y)},zi=function(e){XSe(n,e);var t=YSe(n);function n(){return GSe(this,n),t.apply(this,arguments)}return KSe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderComponents",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eOe,l=a.dataComponent,s=a.labelComponent,u=a.groupComponent,c=a.labelIndicator,f=a.labelPosition;if(!u)throw new Error("VictoryPie expects a groupComponent prop");var d=c&&f==="centroid",h=[];if(l){var p=this.dataKeys.reduce(function(v,_,x){var O=i.getComponentProps(l,"data",x);return o(O.datum)&&v.push(M.cloneElement(l,O)),v},[]);h.push.apply(h,py(p))}if(s){var g=this.dataKeys.map(function(v,_){var x=i.getComponentProps(s,"labels",_);if(x.text!==void 0&&x.text!==null)return M.cloneElement(s,x)}).filter(function(v){return v!==void 0});h.push.apply(h,py(g))}if(d&&c){var b=M.createElement(yl,null);typeof c=="object"&&(b=c);var m=this.dataKeys.map(function(v,_){var x=i.getComponentProps(b,"labelIndicators",_);return M.cloneElement(b,x)});h.push.apply(h,py(m))}return this.renderContainer(u,h)}},{key:"render",value:function(){var a=Zf.animationWhitelist,i=Zf.role,o=on(this.props,nL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderComponents(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);zi.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];zi.displayName="VictoryPie";zi.role="pie";zi.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}}}};zi.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:M.createElement(USe,null),labelComponent:M.createElement(Dn,null),containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",null),sortOrder:"ascending",theme:Di.grayscale};zi.getBaseProps=function(e){return DSe(e,nL)};zi.getData=tr;zi.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Zf=Hu(zi);const gw=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:a,constrainToVisibleArea:i=!1,containerComponent:o=y.createElement(Qa,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:u=y.createElement(Vd,null),legendData:c,legendPosition:f=gn.legend.position,legendDirection:d="ltr",name:h,patternScale:p,patternUnshiftIndex:g,padding:b,radius:m,standalone:v=!0,style:_,themeColor:x,theme:O=Xr(x),labelComponent:S=t?y.createElement(V0,{constrainToVisibleArea:i,theme:O}):void 0,legendOrientation:w=O.legend.orientation,height:C=O.pie.height,width:A=O.pie.width}=e,I=Q(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);const P={bottom:cr("bottom",b,O.pie.padding),left:cr("left",b,O.pie.padding),right:cr("right",b,O.pie.padding),top:cr("top",b,O.pie.padding)},{defaultColorScale:T,defaultPatternScale:E,isPatternDefs:L,patternId:N}=hw({colorScale:a,hasPatterns:l,patternScale:p,themeColorScale:O.pie.colorScale}),W=m||(()=>{const ae=Ha({height:C,width:A,padding:P});return ae>-1?ae:void 0})(),$=()=>{if(!E)return _;const ae=_?Object.assign({},_):{};return ae.data=Object.assign({fill:({slice:ue})=>{const ve=E[ue.index%E.length];return ve||T[ue.index%T.length]}},ae.data),ae},F=y.createElement(Zf,Object.assign({colorScale:a,height:C,key:"pf-chart-pie",labelComponent:S,name:h,padding:b,radius:W,standalone:!1,style:$(),theme:O,width:A},I));let k=0;d==="rtl"&&(k=Y$(c,O));const X=y.cloneElement(u,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a,data:c},h&&{name:`${h}-${u.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:w,theme:O}),d==="rtl"&&{dataComponent:u.props.dataComponent?y.cloneElement(u.props.dataComponent,{transform:`translate(${k})`}):y.createElement(H0,{transform:`translate(${k})`})}),d==="rtl"&&{labelComponent:u.props.labelComponent?y.cloneElement(u.props.labelComponent,{direction:"rtl",dx:k-30}):y.createElement(Wr,{direction:"rtl",dx:k-30})}),u.props)),te=()=>X.props.data?Q$(Object.assign({allowWrap:s===!0||typeof s=="function",chartType:"pie",height:C,legendComponent:X,padding:P,position:f,theme:O,width:A},E&&{patternScale:E})):null,R=v?y.cloneElement(o,Object.assign({desc:n,height:C,title:r,width:A,theme:O},o.props),[F,te(),L&&Qm({patternId:N,colorScale:T,patternUnshiftIndex:g})]):null,J=te();return y.useEffect(()=>{if(J!=null&&J.props&&typeof s=="function"){const ae=J$({legendData:J.props.data,legendOrientation:J.props.orientation,legendProps:J.props,theme:O});s(ae)}},[J,s,O,A]),v?y.createElement(y.Fragment,null,R):y.createElement(y.Fragment,null,F,J,L&&Qm({patternId:N,colorScale:T,patternUnshiftIndex:g}))};gw.displayName="ChartPie";Vr(gw,Zf);const nf=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:a=1.1,containerComponent:i=y.createElement(Qa,null),innerRadius:o,legendPosition:l=gn.legend.position,legendDirection:s="ltr",name:u,padAngle:c,padding:f,radius:d,standalone:h=!0,subTitle:p,subTitleComponent:g,subTitlePosition:b=bc.label.subTitlePosition,themeColor:m,title:v,titleComponent:_=y.createElement(Wr,null),theme:x=Qxe(m),height:O=x.pie.height,width:S=x.pie.width}=e,w=Q(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);const C={bottom:cr("bottom",f,x.pie.padding),left:cr("left",f,x.pie.padding),right:cr("right",f,x.pie.padding),top:cr("top",f,x.pie.padding)},A=d||Ha({height:O,width:S,padding:C}),I=o||A-9,P=p&&b==="center",T=()=>!g&&P?N({styles:[bc.label.title,bc.label.subTitle],titles:[v,p]}):y.createElement(y.Fragment,{key:"pf-chart-donut-titles"},N({titles:v,dy:P?-8:0}),L({textComponent:g,dy:P?15:0})),E=({datum:$})=>$._y>0?x.pie.padAngle:0,L=({dy:$=0,textComponent:F=y.createElement(Wr,null)})=>{if(!p)return null;const k=F.props?F.props:{};return y.cloneElement(F,Object.assign(Object.assign(Object.assign({},u&&{id:`${u}-${F.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:bc.label.subTitle,text:p,textAnchor:b==="right"?"start":"middle",verticalAnchor:"middle",x:ik({height:O,labelPosition:b,legendPosition:l,padding:C,width:S}),y:ok({dy:$,height:O,labelPosition:b,padding:C,width:S})}),k))},N=({dy:$=0,styles:F=bc.label.title,titles:k=v})=>{if(!k)return null;const X=_?_.props:{};return y.cloneElement(_,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(k)&&{capHeight:a}),u&&{id:`${u}-${_.type.displayName}-title`}),{key:"pf-chart-donut-title",style:F,text:k,textAnchor:"middle",verticalAnchor:"middle",x:ik({height:O,labelPosition:"center",legendPosition:l,padding:C,width:S}),y:ok({dy:$,height:O,labelPosition:"center",padding:C,width:S})}),X))},U=y.createElement(gw,Object.assign({allowTooltip:t,height:O,innerRadius:I>0?I:0,key:"pf-chart-donut-pie",legendPosition:l,legendDirection:s,name:u,padAngle:c!==void 0?c:E,padding:f,radius:A>0?A:0,standalone:!1,theme:x,width:S},w)),W=y.cloneElement(i,Object.assign({desc:n,height:O,title:r,width:S,theme:x},i.props),[U,T()]);return h?y.createElement(y.Fragment,null,W):y.createElement(y.Fragment,null,U,T())};nf.displayName="ChartDonut";Vr(nf,Zf);function Lc(e){return rOe(e)||nOe(e)||rL(e)||tOe()}function tOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rOe(e){if(Array.isArray(e))return E5(e)}function aOe(e,t){return lOe(e)||oOe(e,t)||rL(e,t)||iOe()}function iOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rL(e,t){if(e){if(typeof e=="string")return E5(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 E5(e,t)}}function E5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=e.data||e.y?tr(e):t,a=n||0;return r.map(function(i){var o=i._x instanceof Date?new Date(i._x.getTime()+a):i._x+a;return Object.assign({},i,{_x1:o})})}function oL(e,t,n){var r=on(e,aL,"stack"),a=t||M.Children.toArray(r.children),i=n||iL(r,a),o=i.datasets,l=r.labelComponent,s=r.polar,u=gOe(r,i),c=r.name||"group";return a.map(function(f,d){var h=f.type&&f.type.role,p=s?hOe(r,i,d,h):dOe(r,i,d,h),g=h==="voronoi"||h==="tooltip"||h==="label"?f.props.style:jge(f,d,i),b=r.labels?mOe(r,o,d):f.props.labels,m=f.props.name||"".concat(c,"-").concat(h,"-").concat(d);return M.cloneElement(f,Object.assign({labels:b,style:g,key:"".concat(m,"-key-").concat(d),name:m,data:yOe(r,o[d],p),colorScale:vOe(r,f),labelComponent:l||f.props.labelComponent,xOffset:p},u))})}function Pk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Tk(e){for(var t=1;t{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,containerComponent:i=y.createElement(Qa,null),hasPatterns:o,patternScale:l,themeColor:s,theme:u=Xr(s)}=e,c=Q(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","theme"]);const f=y.cloneElement(i,Object.assign(Object.assign({desc:t,title:n,theme:u},i.props),{className:B0({className:i.props.className})})),{defaultColorScale:d,defaultPatternScale:h,isPatternDefs:p,patternId:g}=hw({colorScale:a,hasPatterns:o,patternScale:l,themeColorScale:u.group.colorScale});return y.createElement(Ws,Object.assign({colorScale:a,containerComponent:f,theme:u},c),Kxe({children:r,patternScale:h}),p&&Qm({patternId:g,colorScale:d}))};ag.displayName="ChartGroup";Vr(ag,Ws);var OOe=function(e){var t=tr(e);t.length<2&&(t=[]);var n={x:ln(e,"x"),y:ln(e,"y")},r={x:Fm(e,"x"),y:Fm(e,"y")},a={x:Va(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Va(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},i=e.polar?e.origin||Nd(e):void 0,o=dx(e,"line"),l=b0(e.style,o);return{domain:r,data:t,scale:a,style:l,origin:i}},COe=function(e,t){var n=on(e,t,"line"),r=Object.assign({},n,OOe(n)),a=r.data,i=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,p=r.scale,g=r.sharedEvents,b=r.standalone,m=r.style,v=r.theme,_=r.width,x=r.labels,O=r.name,S=r.disableInlineStyles,w={parent:{style:m.parent,scale:p,data:a,height:s,width:_,name:O,domain:i,standalone:b,polar:h,origin:f,padding:d,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:p,data:a,interpolation:c,groupComponent:l,style:S?{}:m.data,theme:v,disableInlineStyles:S}}};return a.reduce(function(C,A,I){var P=gx(r,A,I);if(P!=null||x&&(o||g)){var T=Wa(A.eventKey)?I:A.eventKey;C[T]={labels:mI(r,I)}}return C},w)};function Ak(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t"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 ig(e){return ig=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ig(e)}var lL={width:450,height:300,padding:50,interpolation:"linear"},DOe={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Yr=function(e){IOe(n,e);var t=ROe(n);function n(r){return AOe(this,n),t.call(this,r)}return MOe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=n.animationWhitelist,i=n.role,o=on(this.props,lL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Yr.animationWhitelist=["data","domain","height","padding","samples","style","width"];Yr.displayName="VictoryLine";Yr.role="line";Yr.defaultTransitions=Npe();Yr.defaultPolarTransitions=Fpe();Yr.continuous=!0;Yr.defaultProps={containerComponent:M.createElement(En,null),dataComponent:M.createElement(TOe,null),labelComponent:M.createElement(Dn,{renderInPortal:!0}),groupComponent:M.createElement(w0,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Yr.getDomain=Fm;Yr.getData=tr;Yr.getBaseProps=function(e){return COe(e,lL)};Yr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var sL=Hu(Yr,DOe);const rf=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(sL,Object.assign({containerComponent:i,theme:r},a))};rf.displayName="ChartLine";Vr(rf,sL);var NOe=jo,FOe=ji,zOe="[object RegExp]";function BOe(e){return FOe(e)&&NOe(e)==zOe}var UOe=BOe,HOe=UOe,WOe=Zg,Ik=Ad,Rk=Ik&&Ik.isRegExp,VOe=Rk?WOe(Rk):HOe,qOe=VOe;const GOe=at(qOe);var uL={},cL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),a=function(m){var v=m.length>>1;if(v>0&&typeof m[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=m;var _=Math.max(2*v-5,0);this._triangles=new Uint32Array(_*3),this._halfedges=new Int32Array(_*3),this._hashSize=Math.ceil(Math.sqrt(v)),this._hullPrev=new Uint32Array(v),this._hullNext=new Uint32Array(v),this._hullTri=new Uint32Array(v),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(v),this._dists=new Float64Array(v),this.update()};a.from=function(m,v,_){v===void 0&&(v=p),_===void 0&&(_=g);for(var x=m.length,O=new Float64Array(x*2),S=0;S>1,C=1/0,A=1/0,I=-1/0,P=-1/0,T=0;TI&&(I=E),L>P&&(P=L),this._ids[T]=T}for(var N=(C+I)/2,U=(A+P)/2,W=1/0,$,F,k,X=0;X0&&(F=ae,W=ue)}for(var ve=v[2*F],ke=v[2*F+1],q=1/0,Z=0;ZGe&&(Ae[Ce++]=_e,Ge=this._dists[_e])}this.hull=Ae.subarray(0,Ce),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(R,J,ve,ke,K,Te)){var re=F,oe=ve,xe=ke;F=k,ve=K,ke=Te,k=re,K=oe,Te=xe}var De=f(R,J,ve,ke,K,Te);this._cx=De.x,this._cy=De.y;for(var Je=0;Je0&&Math.abs(He-he)<=n&&Math.abs(ge-se)<=n)&&(he=He,se=ge,!(pe===$||pe===F||pe===k))){for(var Pe=0,Ke=0,Bt=this._hashKey(He,ge);Ke0?3-v:1+v)/4}function o(b,m,v,_){var x=b-v,O=m-_;return x*x+O*O}function l(b,m,v,_,x,O){var S=(_-m)*(x-b),w=(v-b)*(O-m);return Math.abs(S-w)>=33306690738754716e-32*Math.abs(S+w)?S-w:0}function s(b,m,v,_,x,O){var S=l(x,O,b,m,v,_)||l(b,m,v,_,x,O)||l(v,_,x,O,b,m);return S<0}function u(b,m,v,_,x,O,S,w){var C=b-S,A=m-w,I=v-S,P=_-w,T=x-S,E=O-w,L=C*C+A*A,N=I*I+P*P,U=T*T+E*E;return C*(P*U-N*E)-A*(I*U-N*T)+L*(I*E-P*T)<0}function c(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=(A*I-w*P)*T,L=(S*P-C*I)*T;return E*E+L*L}function f(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=b+(A*I-w*P)*T,L=m+(S*P-C*I)*T;return{x:E,y:L}}function d(b,m,v,_){if(_-v<=20)for(var x=v+1;x<=_;x++){for(var O=b[x],S=m[O],w=x-1;w>=v&&m[b[w]]>S;)b[w+1]=b[w--];b[w+1]=O}else{var C=v+_>>1,A=v+1,I=_;h(b,C,A),m[b[v]]>m[b[_]]&&h(b,v,_),m[b[A]]>m[b[_]]&&h(b,A,_),m[b[v]]>m[b[A]]&&h(b,v,A);for(var P=b[A],T=m[P];;){do A++;while(m[b[A]]T);if(I=I-v?(d(b,m,A,_),d(b,m,v,I-1)):(d(b,m,v,I-1),d(b,m,A,_))}}function h(b,m,v){var _=b[m];b[m]=b[v],b[v]=_}function p(b){return b[0]}function g(b){return b[1]}return a})})(cL);var KOe=cL.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(KOe);function n(u){return u&&u.__esModule?u:{default:u}}function r(u){return u[0]}function a(u){return u[1]}function i(u){for(var c=u.triangles,f=u.coords,d=0;d1e-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,p=new Float64Array(h*2),g=0;g2&&i(h)){this.collinear=Int32Array.from({length:p.length/2},function(U,W){return W}).sort(function(U,W){return p[2*U]-p[2*W]||p[2*U+1]-p[2*W+1]});for(var g=this.collinear[0],b=this.collinear[this.collinear.length-1],m=[p[2*g],p[2*g+1],p[2*b],p[2*b+1]],v=1e-8*Math.sqrt(Math.pow(m[3]-m[1],2)+Math.pow(m[2]-m[0],2)),_=0,x=p.length/2;_0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=w[0],this.triangles[1]=w[1],this.triangles[2]=w[1],A[w[0]]=1,w.length===2&&(A[w[1]]=0))},c.neighbors=function(d){var h=[],p=this.inedges,g=this.hull,b=this._hullIndex,m=this.halfedges,v=this.triangles,_=p[d];if(_===-1)return h;var x=_,O=-1;do{if(O=v[x],h.push(O),x=x%3===2?x-2:x+1,v[x]!==d)break;if(x=m[x],x===-1){var S=g[(b[d]+1)%g.length];S!==O&&h.push(S);break}}while(x!==_);return h},c.find=function(d,h,p){if(p===void 0&&(p=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var g=p,b;(b=this._step(p,d,h))>=0&&b!==p&&b!==g;)p=b;return b},c._step=function(d,h,p){var g=this.inedges,b=this.points;if(g[d]===-1||!b.length)return(d+1)%(b.length>>1);for(var m=d,v=Math.pow(h-b[d*2],2)+Math.pow(p-b[d*2+1],2),O=this.neighbors(d),_=Array.isArray(O),x=0,O=_?O:O[Symbol.iterator]();;){var S;if(_){if(x>=O.length)break;S=O[x++]}else{if(x=O.next(),x.done)break;S=x.value}var w=S,C=Math.pow(h-b[w*2],2)+Math.pow(p-b[w*2+1],2);Ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u.left&&c<=a-u.right&&f>=u.top&&f<=i-u.bottom}},{key:"getDatasets",value:function(n){var r={x:mr(n.domain.x),y:mr(n.domain.y)},a=M.Children.toArray(n.children),i=function(s,u,c){var f=c&&c.type&&c.type.continuous,d=c?c.props&&c.props.style:n.style;return s.map(function(h,p){var g=cx(h),b=g.x,m=g.y,v=g.y0,_=g.x0,x=(Number(b)+Number(_))/2,O=(Number(m)+Number(v))/2;return Object.assign({_voronoiX:n.voronoiDimension==="y"?r.x:x,_voronoiY:n.voronoiDimension==="x"?r.y:O,eventKey:p,childName:u,continuous:f,style:d},h)})};if(n.data)return i(n.data);var o=function(s){var u=tr(s);return Array.isArray(u)&&u.length>0?u:void 0},l=function(s,u){var c=s.props||{},f=c.name||u,d=n.voronoiBlacklist||[],h=d.filter(function(v){return!!v&&typeof v.valueOf()=="string"}),p=d.filter(GOe),g=p.some(function(v){return v.test(f)});if(!Gx(s)||h.includes(f)||g)return null;var b=s.type&&Xe(s.type.getData)?s.type.getData:o,m=b(s.props);return m?i(m,f,s):null};return Ul(a,l,n)}},{key:"findPoints",value:function(n,r){return n.filter(function(a){return r._voronoiX===a._voronoiX&&r._voronoiY===a._voronoiY})}},{key:"withinRadius",value:function(n,r,a){if(!n)return!1;if(!a)return!0;var i=r.x,o=r.y,l=Math.pow(i-n[0],2)+Math.pow(o-n[1],2);return le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function Lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t"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 og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}function _Ce(e){var t;return t=function(n){mCe(a,n);var r=gCe(a);function a(){return hCe(this,a),r.apply(this,arguments)}return pCe(a,[{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 Gf(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=Dd(o,d),p=c?u:void 0;if(!f||s.length<2)return Uh(Uh({},h),{},{center:me({},l.center,p)});var g=f==="y"?u.x:h.x,b=f==="x"?u.y:h.y;return p=c?u:{x:g,y:b},{x:g,y:b,center:me({},l.center,p)}}},{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:{},p=s==="flyout"?d.flyoutStyle:d.style;return l.reduce(function(g,b,m){var v=me({},d,{datum:b,active:!0}),_=Xe(u)?u(v):void 0,x=_!==void 0?"".concat(_).split(` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wwe(e,t){if(e){if(typeof e=="string")return S5(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 S5(e,t)}}function Vwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qwe(e){if(Array.isArray(e))return S5(e)}function S5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 rg(e){return rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rg(e)}var tSe={cornerRadius:5,pointerLength:10,pointerWidth:10},Xl=function(e){Ywe(n,e);var t=Qwe(n);function n(r){var a;return Kwe(this,n),a=t.call(this,r),a.id=void 0,a.id=r.id===void 0?b0("tooltip-"):r.id,a}return Xwe(n,[{key:"getDefaultOrientation",value:function(a){var i=a.datum,o=a.horizontal,l=a.polar;if(!l){var s=o?"right":"top",u=o?"left":"bottom";return i&&i.y<0?u:s}return this.getPolarOrientation(a)}},{key:"getPolarOrientation",value:function(a){var i=Kf(a,a.datum),o=a.labelPlacement||"vertical";return o==="vertical"?this.getVerticalOrientations(i):o==="parallel"?i<90||i>270?"right":"left":i>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(a){return a<45||a>315?"right":a>=45&&a<=135?"top":a>135&&a<225?"left":"bottom"}},{key:"getStyles",value:function(a){var i=a.theme||Di.grayscale,o=i&&i.tooltip&&i.tooltip.style?i.tooltip.style:{},l=Array.isArray(a.style)?a.style.map(function(d){return me({},d,o)}):me({},a.style,o),s=i&&i.tooltip&&i.tooltip.flyoutStyle?i.tooltip.flyoutStyle:{},u=a.flyoutStyle?me({},a.flyoutStyle,s):s,c=Array.isArray(l)?l.map(function(d){return _t(d,a)}):_t(l,a),f=_t(u,Object.assign({},a,{style:c}));return{style:c,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(a){var i=a.cornerRadius,o=a.centerOffset,l=a.dx,s=a.dy,u=le(a.active,a),c=le(a.text,Object.assign({},a,{active:u}));c==null&&(c=""),typeof c=="number"&&(c=c.toString());var f=this.getStyles(Object.assign({},a,{active:u,text:c})),d=f.style,h=f.flyoutStyle,p=le(a.orientation,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h}))||this.getDefaultOrientation(a),g=le(a.flyoutPadding,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p}))||this.getLabelPadding(d),b=Wt({padding:g}),m=le(a.pointerWidth,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),v=le(a.pointerLength,Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p})),_=Ml(c,d),x=this.getDimensions(Object.assign({},a,{style:d,flyoutStyle:h,active:u,text:c,orientation:p,flyoutPadding:b,pointerWidth:m,pointerLength:v}),_),O=x.flyoutHeight,S=x.flyoutWidth,w=Object.assign({},a,{active:u,text:c,style:d,flyoutStyle:h,orientation:p,flyoutHeight:O,flyoutWidth:S,flyoutPadding:b,pointerWidth:m,pointerLength:v}),C=Zt(o)&&(o==null?void 0:o.x)!==void 0?le(o.x,w):0,A=Zt(o)&&(o==null?void 0:o.y)!==void 0?le(o.y,w):0;return vk(vk({},w),{},{centerOffset:{x:C,y:A},dx:l!==void 0?le(l,w):0,dy:s!==void 0?le(s,w):0,cornerRadius:le(i,w)})}},{key:"getCalculatedValues",value:function(a){var i=a.style,o=a.text,l=a.flyoutStyle,s=a.flyoutHeight,u=a.flyoutWidth,c=Ml(o,i),f={height:s,width:u},d=this.getFlyoutCenter(a,f),h=this.getTransform(a);return{style:i,flyoutStyle:l,labelSize:c,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(a){var i=a.x,o=a.y,l=a.style,s=l||{},u=s.angle||a.angle||this.getDefaultAngle(a);return u?"rotate(".concat(u," ").concat(i," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(a){var i=a.polar,o=a.labelPlacement,l=a.orientation,s=a.datum;if(!i||!o||o==="vertical")return 0;var u=Kf(a,s),c=u>90&&u<180||u>270?1:-1,f=o==="perpendicular"?0:90,d=0;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(a,i,o){var l=a.x,s=a.y,u=o.width,c=o.height,f={x:[0,i.width],y:[0,i.height]},d={x:[l-u/2,l+u/2],y:[s-c/2,s+c/2]},h={x:[d.x[0]f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]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(a,i){var o=a.x,l=a.y,s=a.dx,u=a.dy,c=a.pointerLength,f=a.orientation,d=a.constrainToVisibleArea,h=a.centerOffset,p=i.height,g=i.width,b=f==="left"?-1:1,m=f==="bottom"?-1:1,v={x:f==="left"||f==="right"?o+b*(c+g/2+b*s):o+s,y:f==="top"||f==="bottom"?l-m*(c+p/2-m*u):l+u},_={x:Zt(a.center)&&a.center.x!==void 0?a.center.x:v.x,y:Zt(a.center)&&a.center.y!==void 0?a.center.y:v.y},x={x:_.x+h.x,y:_.y+h.y};return d?this.constrainTooltip(x,a,i):x}},{key:"getLabelPadding",value:function(a){if(!a)return 0;var i=Array.isArray(a)?a.map(function(o){return o.padding}):[a.padding];return Math.max.apply(Math,Uwe(i).concat([0]))}},{key:"getDimensions",value:function(a,i){var o=a.orientation,l=a.pointerLength,s=a.pointerWidth,u=a.flyoutHeight,c=a.flyoutWidth,f=a.flyoutPadding,d=le(a.cornerRadius,a),h=function(){var g=i.height+f.top+f.bottom,b=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(b,g)},p=function(){var g=i.width+f.left+f.right,b=o==="left"||o==="right"?2*d+l:2*d;return Math.max(b,g)};return{flyoutHeight:u?le(u,a):h(),flyoutWidth:c?le(c,a):p()}}},{key:"getLabelProps",value:function(a,i){var o=i.flyoutCenter,l=i.style,s=i.labelSize,u=i.dy,c=u===void 0?0:u,f=i.dx,d=f===void 0?0:f,h=a.text,p=a.datum,g=a.activePoints,b=a.labelComponent,m=a.index,v=a.flyoutPadding,_=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",x=function(){if(!_||_==="middle")return o.x;var O=_==="end"?-1:1;return o.x-O*(s.width/2)};return me({},b.props,{key:"".concat(this.id,"-label-").concat(m),text:h,datum:p,activePoints:g,textAnchor:_,dy:c,dx:d,style:l,x:x()+(v.left-v.right)/2,y:o.y+(v.top-v.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(a,i,o){var l={bottom:i.y+o.height/2,top:i.y-o.height/2,left:i.x-o.width/2,right:i.x+o.width/2},s=[{side:"top",val:l.top>a.y?l.top-a.y:-1},{side:"bottom",val:l.bottoma.x?l.left-a.x:-1}];return g0(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(a,i){var o=i.flyoutDimensions,l=i.flyoutStyle,s=i.flyoutCenter,u=a.x,c=a.y,f=a.dx,d=a.dy,h=a.datum,p=a.activePoints,g=a.index,b=a.pointerLength,m=a.pointerWidth,v=a.cornerRadius,_=a.events,x=a.flyoutComponent,O=le(a.pointerOrientation,a);return me({},x.props,{x:u,y:c,dx:f,dy:d,datum:h,activePoints:p,index:g,pointerLength:b,pointerWidth:m,cornerRadius:v,events:_,orientation:O||this.getPointerOrientation({x:u,y:c},s,o),key:"".concat(this.id,"-tooltip-").concat(g),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(a){var i=le(a.active,a),o=a.renderInPortal;if(!i)return o?M.createElement(ko,null):null;var l=this.getEvaluatedProps(a),s=l.flyoutComponent,u=l.labelComponent,c=l.groupComponent,f=this.getCalculatedValues(l),d=[M.cloneElement(s,this.getFlyoutProps(l,f)),M.cloneElement(u,this.getLabelProps(l,f))],h=M.cloneElement(c,{role:"presentation",transform:f.transform},d);return o?M.createElement(ko,null,h):h}},{key:"render",value:function(){var a=on(this.props,tSe,"tooltip");return this.renderTooltip(a)}}]),n}(M.Component);Xl.displayName="VictoryTooltip";Xl.role="tooltip";Xl.defaultProps={active:!1,renderInPortal:!0,labelComponent:M.createElement(Dn,null),flyoutComponent:M.createElement(Bwe,null),groupComponent:M.createElement("g",null)};Xl.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}}}]};const q0=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=y.createElement(Wr,null),labelTextAnchor:r,themeColor:a,theme:i=Xr(a)}=e,o=Q(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","theme"]);const l=y.cloneElement(n,Object.assign({textAnchor:r,theme:i},n.props));return y.createElement(Xl,Object.assign({constrainToVisibleArea:t,labelComponent:l,theme:i},o))};q0.displayName="ChartTooltip";Vr(q0,Xl);var nSe=ga,rSe=function(){return nSe.Date.now()},aSe=rSe,iSe=yr,py=aSe,bk=F$,oSe="Expected a function",lSe=Math.max,sSe=Math.min;function uSe(e,t,n){var r,a,i,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(oSe);t=bk(t)||0,iSe(n)&&(c=!!n.leading,f="maxWait"in n,i=f?lSe(bk(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var w=r,C=a;return r=a=void 0,u=S,o=e.apply(C,w),o}function p(S){return u=S,l=setTimeout(m,t),c?h(S):o}function g(S){var w=S-s,C=S-u,A=t-w;return f?sSe(A,i-C):A}function b(S){var w=S-s,C=S-u;return s===void 0||w>=t||w<0||f&&C>=i}function m(){var S=py();if(b(S))return v(S);l=setTimeout(m,g(S))}function v(S){return l=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function x(){return l===void 0?o:v(py())}function O(){var S=py(),w=b(S);if(r=arguments,a=this,s=S,w){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(m,t),h(s)}return l===void 0&&(l=setTimeout(m,t)),o}return O.cancel=_,O.flush=x,O}var cSe=uSe,fSe=cSe,dSe=yr,hSe="Expected a function";function pSe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(hSe);return dSe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),fSe(e,t,{leading:r,maxWait:t,trailing:a})}var mSe=pSe;const gSe=at(mSe);var vSe=function(e){return e==null||Xe(e)?e:"".concat(e)},ySe=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},bSe=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},_Se=function(e,t){var n=e.width,r=e.height,a=Zt(e.origin)?e.origin:{};return{x:a.x!==void 0?a.x:(t.left-t.right+n)/2,y:a.y!==void 0?a.y:(t.top-t.bottom+r)/2}},xSe=function(e,t){var n=Xe(e.padAngle)?0:e.padAngle,r=jR().sort(null).startAngle(vt(e.startAngle)).endAngle(vt(e.endAngle)).padAngle(vt(n)).value(function(a){return a._y});return r(t)},wSe=function(e){var t=e.colorScale,n=dx(e,"pie"),r=_0(e.style,n),a=Array.isArray(t)?t:bx(t),i=Wt(e),o=bSe(e,i),l=_Se(e,i),s=tr(e),u=xSe(e,s);return Object.assign({},e,{style:r,colors:a,padding:i,defaultRadius:o,data:s,slices:u,origin:l})},SSe=function(e,t){var n=t.style,r=t.colors,a=ySe(n,r,e);return Object.assign({fill:a},n.data)},OSe=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Xe(e.labels)?e.labels:t.xName||t._x,vSe(r)},CSe=function(e){return R0().outerRadius(e).innerRadius(e)},ESe=function(e,t,n){var r=n&&n.padding||0;return t||e+r},kSe=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},a=Object.assign({},t,r);return e.centroid(a)},PSe=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"},TSe=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},ASe=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},MSe=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=bi((e.startAngle+e.endAngle)/2):r=bi(t==="startAngle"?e.startAngle:e.endAngle);var a=r<0?360-r:r;return a%360},ISe=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},RSe=function(e,t,n){var r=t.index,a=t.datum,i=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,p=le(n.labelRadius,Object.assign({text:e},t)),g=le(n.labelPosition,Object.assign({text:e},t))||"centroid",b=le(n.labelPlacement,Object.assign({text:e},t))||"vertical",m=Object.assign({padding:0},u.labels),v=_t(m,Object.assign({labelRadius:p,text:e},t)),_=ESe(c,p,v),x=CSe(_),O=kSe(x,o,g),S=MSe(o,g,m),w=ISe(S,b),C=PSe(S,b),A=m.textAnchor||TSe(C),I=m.verticalAnchor||ASe(C),P={width:d,height:h,index:r,datum:a,data:i,slice:o,orientation:C,text:e,style:m,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:A,verticalAnchor:I,angle:w,calculatedLabelRadius:_};if(!fx(l))return P;var T=s&&s.tooltip||{};return me({},P,Uu(T,["style"]))},$Se=function(e){return Math.cos(e-vt(90))},LSe=function(e){return Math.sin(e-vt(90))},_k=function(e,t){return e*$Se(t)},xk=function(e,t){return e*LSe(t)},wk=function(e){return e.reduce(function(t,n){return t+n},0)/e.length},jSe=function(e,t,n){var r=e.innerRadius,a=e.radius,i=e.slice,o=i.startAngle,l=i.endAngle,s=e.labelIndicatorInnerOffset,u=e.labelIndicatorOuterOffset,c=e.index,f=t.height,d=t.width,h=n.calculatedLabelRadius,p=wk([r,a]),g=wk([l,o]),b=d/2,m=f/2,v=p+s,_=h-u,x=b+_k(v,g),O=m+xk(v,g),S=b+_k(_,g),w=m+xk(_,g),C={x1:x,y1:O,x2:S,y2:w,index:c};return me({},C)},DSe=function(e,t){var n=on(e,t,"pie"),r=wSe(n),a=r.slices,i=r.style,o=r.data,l=r.origin,s=r.defaultRadius,u=r.labels,c=r.events,f=r.sharedEvents,d=r.height,h=r.width,p=r.standalone,g=r.name,b=r.innerRadius,m=r.cornerRadius,v=r.padAngle,_=r.disableInlineStyles,x=r.labelIndicator,O=n.radius||s,S={parent:{standalone:p,height:d,width:h,slices:a,name:g,style:i.parent}};return a.reduce(function(w,C,A){var I=me({},o[A],{startAngle:bi(C.startAngle),endAngle:bi(C.endAngle),padAngle:bi(C.padAngle)}),P=Wa(I.eventKey)?A:I.eventKey,T={index:A,slice:C,datum:I,data:o,origin:l,innerRadius:b,radius:O,cornerRadius:m,padAngle:v,style:_?{}:SSe(A,r),disableInlineStyles:_};w[P]={data:T};var E=OSe(n,I,A);if(E!=null||u&&(c||f)){var L=le(E,T);if(w[P].labels=RSe(L,Object.assign({},n,T),r),x){var N=w[P].labels;N.calculatedLabelRadius>O&&(w[P].labelIndicators=jSe(Object.assign({},n,T),r,N))}}return w},S)};function Sk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zh(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n"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 ag(e){return ag=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ag(e)}var tL={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",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},eOe=function(e){return!Wa(e._x)&&!Wa(e._y)},zi=function(e){XSe(n,e);var t=YSe(n);function n(){return GSe(this,n),t.apply(this,arguments)}return KSe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderComponents",value:function(a){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:eOe,l=a.dataComponent,s=a.labelComponent,u=a.groupComponent,c=a.labelIndicator,f=a.labelPosition;if(!u)throw new Error("VictoryPie expects a groupComponent prop");var d=c&&f==="centroid",h=[];if(l){var p=this.dataKeys.reduce(function(v,_,x){var O=i.getComponentProps(l,"data",x);return o(O.datum)&&v.push(M.cloneElement(l,O)),v},[]);h.push.apply(h,my(p))}if(s){var g=this.dataKeys.map(function(v,_){var x=i.getComponentProps(s,"labels",_);if(x.text!==void 0&&x.text!==null)return M.cloneElement(s,x)}).filter(function(v){return v!==void 0});h.push.apply(h,my(g))}if(d&&c){var b=M.createElement(yl,null);typeof c=="object"&&(b=c);var m=this.dataKeys.map(function(v,_){var x=i.getComponentProps(b,"labelIndicators",_);return M.cloneElement(b,x)});h.push.apply(h,my(m))}return this.renderContainer(u,h)}},{key:"render",value:function(){var a=Zf.animationWhitelist,i=Zf.role,o=on(this.props,tL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderComponents(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);zi.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];zi.displayName="VictoryPie";zi.role="pie";zi.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}}}};zi.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:M.createElement(USe,null),labelComponent:M.createElement(Dn,null),containerComponent:M.createElement(En,null),groupComponent:M.createElement("g",null),sortOrder:"ascending",theme:Di.grayscale};zi.getBaseProps=function(e){return DSe(e,tL)};zi.getData=tr;zi.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Zf=Hu(zi);const gw=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:a,constrainToVisibleArea:i=!1,containerComponent:o=y.createElement(Qa,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:u=y.createElement(Vd,null),legendData:c,legendPosition:f=gn.legend.position,legendDirection:d="ltr",name:h,patternScale:p,patternUnshiftIndex:g,padding:b,radius:m,standalone:v=!0,style:_,themeColor:x,theme:O=Xr(x),labelComponent:S=t?y.createElement(q0,{constrainToVisibleArea:i,theme:O}):void 0,legendOrientation:w=O.legend.orientation,height:C=O.pie.height,width:A=O.pie.width}=e,I=Q(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","legendDirection","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","theme","labelComponent","legendOrientation","height","width"]);const P={bottom:cr("bottom",b,O.pie.padding),left:cr("left",b,O.pie.padding),right:cr("right",b,O.pie.padding),top:cr("top",b,O.pie.padding)},{defaultColorScale:T,defaultPatternScale:E,isPatternDefs:L,patternId:N}=hw({colorScale:a,hasPatterns:l,patternScale:p,themeColorScale:O.pie.colorScale}),W=m||(()=>{const ae=Ha({height:C,width:A,padding:P});return ae>-1?ae:void 0})(),$=()=>{if(!E)return _;const ae=_?Object.assign({},_):{};return ae.data=Object.assign({fill:({slice:ue})=>{const ve=E[ue.index%E.length];return ve||T[ue.index%T.length]}},ae.data),ae},F=y.createElement(Zf,Object.assign({colorScale:a,height:C,key:"pf-chart-pie",labelComponent:S,name:h,padding:b,radius:W,standalone:!1,style:$(),theme:O,width:A},I));let k=0;d==="rtl"&&(k=X$(c,O));const X=y.cloneElement(u,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:a,data:c},h&&{name:`${h}-${u.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:w,theme:O}),d==="rtl"&&{dataComponent:u.props.dataComponent?y.cloneElement(u.props.dataComponent,{transform:`translate(${k})`}):y.createElement(W0,{transform:`translate(${k})`})}),d==="rtl"&&{labelComponent:u.props.labelComponent?y.cloneElement(u.props.labelComponent,{direction:"rtl",dx:k-30}):y.createElement(Wr,{direction:"rtl",dx:k-30})}),u.props)),te=()=>X.props.data?Y$(Object.assign({allowWrap:s===!0||typeof s=="function",chartType:"pie",height:C,legendComponent:X,padding:P,position:f,theme:O,width:A},E&&{patternScale:E})):null,R=v?y.cloneElement(o,Object.assign({desc:n,height:C,title:r,width:A,theme:O},o.props),[F,te(),L&&Jm({patternId:N,colorScale:T,patternUnshiftIndex:g})]):null,J=te();return y.useEffect(()=>{if(J!=null&&J.props&&typeof s=="function"){const ae=Q$({legendData:J.props.data,legendOrientation:J.props.orientation,legendProps:J.props,theme:O});s(ae)}},[J,s,O,A]),v?y.createElement(y.Fragment,null,R):y.createElement(y.Fragment,null,F,J,L&&Jm({patternId:N,colorScale:T,patternUnshiftIndex:g}))};gw.displayName="ChartPie";Vr(gw,Zf);const nf=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:a=1.1,containerComponent:i=y.createElement(Qa,null),innerRadius:o,legendPosition:l=gn.legend.position,legendDirection:s="ltr",name:u,padAngle:c,padding:f,radius:d,standalone:h=!0,subTitle:p,subTitleComponent:g,subTitlePosition:b=bc.label.subTitlePosition,themeColor:m,title:v,titleComponent:_=y.createElement(Wr,null),theme:x=Qxe(m),height:O=x.pie.height,width:S=x.pie.width}=e,w=Q(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendPosition","legendDirection","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","title","titleComponent","theme","height","width"]);const C={bottom:cr("bottom",f,x.pie.padding),left:cr("left",f,x.pie.padding),right:cr("right",f,x.pie.padding),top:cr("top",f,x.pie.padding)},A=d||Ha({height:O,width:S,padding:C}),I=o||A-9,P=p&&b==="center",T=()=>!g&&P?N({styles:[bc.label.title,bc.label.subTitle],titles:[v,p]}):y.createElement(y.Fragment,{key:"pf-chart-donut-titles"},N({titles:v,dy:P?-8:0}),L({textComponent:g,dy:P?15:0})),E=({datum:$})=>$._y>0?x.pie.padAngle:0,L=({dy:$=0,textComponent:F=y.createElement(Wr,null)})=>{if(!p)return null;const k=F.props?F.props:{};return y.cloneElement(F,Object.assign(Object.assign(Object.assign({},u&&{id:`${u}-${F.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:bc.label.subTitle,text:p,textAnchor:b==="right"?"start":"middle",verticalAnchor:"middle",x:ak({height:O,labelPosition:b,legendPosition:l,padding:C,width:S}),y:ik({dy:$,height:O,labelPosition:b,padding:C,width:S})}),k))},N=({dy:$=0,styles:F=bc.label.title,titles:k=v})=>{if(!k)return null;const X=_?_.props:{};return y.cloneElement(_,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(k)&&{capHeight:a}),u&&{id:`${u}-${_.type.displayName}-title`}),{key:"pf-chart-donut-title",style:F,text:k,textAnchor:"middle",verticalAnchor:"middle",x:ak({height:O,labelPosition:"center",legendPosition:l,padding:C,width:S}),y:ik({dy:$,height:O,labelPosition:"center",padding:C,width:S})}),X))},U=y.createElement(gw,Object.assign({allowTooltip:t,height:O,innerRadius:I>0?I:0,key:"pf-chart-donut-pie",legendPosition:l,legendDirection:s,name:u,padAngle:c!==void 0?c:E,padding:f,radius:A>0?A:0,standalone:!1,theme:x,width:S},w)),W=y.cloneElement(i,Object.assign({desc:n,height:O,title:r,width:S,theme:x},i.props),[U,T()]);return h?y.createElement(y.Fragment,null,W):y.createElement(y.Fragment,null,U,T())};nf.displayName="ChartDonut";Vr(nf,Zf);function Lc(e){return rOe(e)||nOe(e)||nL(e)||tOe()}function tOe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rOe(e){if(Array.isArray(e))return k5(e)}function aOe(e,t){return lOe(e)||oOe(e,t)||nL(e,t)||iOe()}function iOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nL(e,t){if(e){if(typeof e=="string")return k5(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 k5(e,t)}}function k5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=e.data||e.y?tr(e):t,a=n||0;return r.map(function(i){var o=i._x instanceof Date?new Date(i._x.getTime()+a):i._x+a;return Object.assign({},i,{_x1:o})})}function iL(e,t,n){var r=on(e,rL,"stack"),a=t||M.Children.toArray(r.children),i=n||aL(r,a),o=i.datasets,l=r.labelComponent,s=r.polar,u=gOe(r,i),c=r.name||"group";return a.map(function(f,d){var h=f.type&&f.type.role,p=s?hOe(r,i,d,h):dOe(r,i,d,h),g=h==="voronoi"||h==="tooltip"||h==="label"?f.props.style:jge(f,d,i),b=r.labels?mOe(r,o,d):f.props.labels,m=f.props.name||"".concat(c,"-").concat(h,"-").concat(d);return M.cloneElement(f,Object.assign({labels:b,style:g,key:"".concat(m,"-key-").concat(d),name:m,data:yOe(r,o[d],p),colorScale:vOe(r,f),labelComponent:l||f.props.labelComponent,xOffset:p},u))})}function kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Pk(e){for(var t=1;t{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:a,containerComponent:i=y.createElement(Qa,null),hasPatterns:o,patternScale:l,themeColor:s,theme:u=Xr(s)}=e,c=Q(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","theme"]);const f=y.cloneElement(i,Object.assign(Object.assign({desc:t,title:n,theme:u},i.props),{className:U0({className:i.props.className})})),{defaultColorScale:d,defaultPatternScale:h,isPatternDefs:p,patternId:g}=hw({colorScale:a,hasPatterns:o,patternScale:l,themeColorScale:u.group.colorScale});return y.createElement(Ws,Object.assign({colorScale:a,containerComponent:f,theme:u},c),Kxe({children:r,patternScale:h}),p&&Jm({patternId:g,colorScale:d}))};ig.displayName="ChartGroup";Vr(ig,Ws);var OOe=function(e){var t=tr(e);t.length<2&&(t=[]);var n={x:ln(e,"x"),y:ln(e,"y")},r={x:zm(e,"x"),y:zm(e,"y")},a={x:Va(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Va(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},i=e.polar?e.origin||Nd(e):void 0,o=dx(e,"line"),l=_0(e.style,o);return{domain:r,data:t,scale:a,style:l,origin:i}},COe=function(e,t){var n=on(e,t,"line"),r=Object.assign({},n,OOe(n)),a=r.data,i=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,p=r.scale,g=r.sharedEvents,b=r.standalone,m=r.style,v=r.theme,_=r.width,x=r.labels,O=r.name,S=r.disableInlineStyles,w={parent:{style:m.parent,scale:p,data:a,height:s,width:_,name:O,domain:i,standalone:b,polar:h,origin:f,padding:d,horizontal:u},all:{data:{horizontal:u,polar:h,origin:f,scale:p,data:a,interpolation:c,groupComponent:l,style:S?{}:m.data,theme:v,disableInlineStyles:S}}};return a.reduce(function(C,A,I){var P=gx(r,A,I);if(P!=null||x&&(o||g)){var T=Wa(A.eventKey)?I:A.eventKey;C[T]={labels:pI(r,I)}}return C},w)};function Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t"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 og(e){return og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},og(e)}var oL={width:450,height:300,padding:50,interpolation:"linear"},DOe={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Yr=function(e){IOe(n,e);var t=ROe(n);function n(r){return AOe(this,n),t.call(this,r)}return MOe(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var a=n.animationWhitelist,i=n.role,o=on(this.props,oL,i);if(this.shouldAnimate())return this.animateComponent(o,a);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return px(s,o)}}]),n}(M.Component);Yr.animationWhitelist=["data","domain","height","padding","samples","style","width"];Yr.displayName="VictoryLine";Yr.role="line";Yr.defaultTransitions=Npe();Yr.defaultPolarTransitions=Fpe();Yr.continuous=!0;Yr.defaultProps={containerComponent:M.createElement(En,null),dataComponent:M.createElement(TOe,null),labelComponent:M.createElement(Dn,{renderInPortal:!0}),groupComponent:M.createElement(S0,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Di.grayscale};Yr.getDomain=zm;Yr.getData=tr;Yr.getBaseProps=function(e){return COe(e,oL)};Yr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var lL=Hu(Yr,DOe);const rf=e=>{var{containerComponent:t=y.createElement(Qa,null),themeColor:n,theme:r=Xr(n)}=e,a=Q(e,["containerComponent","themeColor","theme"]);const i=y.cloneElement(t,Object.assign({theme:r},t.props));return y.createElement(lL,Object.assign({containerComponent:i,theme:r},a))};rf.displayName="ChartLine";Vr(rf,lL);var NOe=jo,FOe=ji,zOe="[object RegExp]";function BOe(e){return FOe(e)&&NOe(e)==zOe}var UOe=BOe,HOe=UOe,WOe=e0,Mk=Ad,Ik=Mk&&Mk.isRegExp,VOe=Ik?WOe(Ik):HOe,qOe=VOe;const GOe=at(qOe);var sL={},uL={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ui,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),a=function(m){var v=m.length>>1;if(v>0&&typeof m[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=m;var _=Math.max(2*v-5,0);this._triangles=new Uint32Array(_*3),this._halfedges=new Int32Array(_*3),this._hashSize=Math.ceil(Math.sqrt(v)),this._hullPrev=new Uint32Array(v),this._hullNext=new Uint32Array(v),this._hullTri=new Uint32Array(v),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(v),this._dists=new Float64Array(v),this.update()};a.from=function(m,v,_){v===void 0&&(v=p),_===void 0&&(_=g);for(var x=m.length,O=new Float64Array(x*2),S=0;S>1,C=1/0,A=1/0,I=-1/0,P=-1/0,T=0;TI&&(I=E),L>P&&(P=L),this._ids[T]=T}for(var N=(C+I)/2,U=(A+P)/2,W=1/0,$,F,k,X=0;X0&&(F=ae,W=ue)}for(var ve=v[2*F],ke=v[2*F+1],q=1/0,Z=0;ZGe&&(Ae[Ce++]=_e,Ge=this._dists[_e])}this.hull=Ae.subarray(0,Ce),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(R,J,ve,ke,K,Te)){var re=F,oe=ve,xe=ke;F=k,ve=K,ke=Te,k=re,K=oe,Te=xe}var De=f(R,J,ve,ke,K,Te);this._cx=De.x,this._cy=De.y;for(var Je=0;Je0&&Math.abs(He-he)<=n&&Math.abs(ge-se)<=n)&&(he=He,se=ge,!(pe===$||pe===F||pe===k))){for(var Pe=0,Ke=0,Bt=this._hashKey(He,ge);Ke0?3-v:1+v)/4}function o(b,m,v,_){var x=b-v,O=m-_;return x*x+O*O}function l(b,m,v,_,x,O){var S=(_-m)*(x-b),w=(v-b)*(O-m);return Math.abs(S-w)>=33306690738754716e-32*Math.abs(S+w)?S-w:0}function s(b,m,v,_,x,O){var S=l(x,O,b,m,v,_)||l(b,m,v,_,x,O)||l(v,_,x,O,b,m);return S<0}function u(b,m,v,_,x,O,S,w){var C=b-S,A=m-w,I=v-S,P=_-w,T=x-S,E=O-w,L=C*C+A*A,N=I*I+P*P,U=T*T+E*E;return C*(P*U-N*E)-A*(I*U-N*T)+L*(I*E-P*T)<0}function c(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=(A*I-w*P)*T,L=(S*P-C*I)*T;return E*E+L*L}function f(b,m,v,_,x,O){var S=v-b,w=_-m,C=x-b,A=O-m,I=S*S+w*w,P=C*C+A*A,T=.5/(S*A-w*C),E=b+(A*I-w*P)*T,L=m+(S*P-C*I)*T;return{x:E,y:L}}function d(b,m,v,_){if(_-v<=20)for(var x=v+1;x<=_;x++){for(var O=b[x],S=m[O],w=x-1;w>=v&&m[b[w]]>S;)b[w+1]=b[w--];b[w+1]=O}else{var C=v+_>>1,A=v+1,I=_;h(b,C,A),m[b[v]]>m[b[_]]&&h(b,v,_),m[b[A]]>m[b[_]]&&h(b,A,_),m[b[v]]>m[b[A]]&&h(b,v,A);for(var P=b[A],T=m[P];;){do A++;while(m[b[A]]T);if(I=I-v?(d(b,m,A,_),d(b,m,v,I-1)):(d(b,m,v,I-1),d(b,m,A,_))}}function h(b,m,v){var _=b[m];b[m]=b[v],b[v]=_}function p(b){return b[0]}function g(b){return b[1]}return a})})(uL);var KOe=uL.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(KOe);function n(u){return u&&u.__esModule?u:{default:u}}function r(u){return u[0]}function a(u){return u[1]}function i(u){for(var c=u.triangles,f=u.coords,d=0;d1e-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,p=new Float64Array(h*2),g=0;g2&&i(h)){this.collinear=Int32Array.from({length:p.length/2},function(U,W){return W}).sort(function(U,W){return p[2*U]-p[2*W]||p[2*U+1]-p[2*W+1]});for(var g=this.collinear[0],b=this.collinear[this.collinear.length-1],m=[p[2*g],p[2*g+1],p[2*b],p[2*b+1]],v=1e-8*Math.sqrt(Math.pow(m[3]-m[1],2)+Math.pow(m[2]-m[0],2)),_=0,x=p.length/2;_0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=w[0],this.triangles[1]=w[1],this.triangles[2]=w[1],A[w[0]]=1,w.length===2&&(A[w[1]]=0))},c.neighbors=function(d){var h=[],p=this.inedges,g=this.hull,b=this._hullIndex,m=this.halfedges,v=this.triangles,_=p[d];if(_===-1)return h;var x=_,O=-1;do{if(O=v[x],h.push(O),x=x%3===2?x-2:x+1,v[x]!==d)break;if(x=m[x],x===-1){var S=g[(b[d]+1)%g.length];S!==O&&h.push(S);break}}while(x!==_);return h},c.find=function(d,h,p){if(p===void 0&&(p=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var g=p,b;(b=this._step(p,d,h))>=0&&b!==p&&b!==g;)p=b;return b},c._step=function(d,h,p){var g=this.inedges,b=this.points;if(g[d]===-1||!b.length)return(d+1)%(b.length>>1);for(var m=d,v=Math.pow(h-b[d*2],2)+Math.pow(p-b[d*2+1],2),O=this.neighbors(d),_=Array.isArray(O),x=0,O=_?O:O[Symbol.iterator]();;){var S;if(_){if(x>=O.length)break;S=O[x++]}else{if(x=O.next(),x.done)break;S=x.value}var w=S,C=Math.pow(h-b[w*2],2)+Math.pow(p-b[w*2+1],2);Ce.length)&&(t=e.length);for(var n=0,r=new Array(t);n=u.left&&c<=a-u.right&&f>=u.top&&f<=i-u.bottom}},{key:"getDatasets",value:function(n){var r={x:mr(n.domain.x),y:mr(n.domain.y)},a=M.Children.toArray(n.children),i=function(s,u,c){var f=c&&c.type&&c.type.continuous,d=c?c.props&&c.props.style:n.style;return s.map(function(h,p){var g=cx(h),b=g.x,m=g.y,v=g.y0,_=g.x0,x=(Number(b)+Number(_))/2,O=(Number(m)+Number(v))/2;return Object.assign({_voronoiX:n.voronoiDimension==="y"?r.x:x,_voronoiY:n.voronoiDimension==="x"?r.y:O,eventKey:p,childName:u,continuous:f,style:d},h)})};if(n.data)return i(n.data);var o=function(s){var u=tr(s);return Array.isArray(u)&&u.length>0?u:void 0},l=function(s,u){var c=s.props||{},f=c.name||u,d=n.voronoiBlacklist||[],h=d.filter(function(v){return!!v&&typeof v.valueOf()=="string"}),p=d.filter(GOe),g=p.some(function(v){return v.test(f)});if(!Gx(s)||h.includes(f)||g)return null;var b=s.type&&Xe(s.type.getData)?s.type.getData:o,m=b(s.props);return m?i(m,f,s):null};return Ul(a,l,n)}},{key:"findPoints",value:function(n,r){return n.filter(function(a){return r._voronoiX===a._voronoiX&&r._voronoiY===a._voronoiY})}},{key:"withinRadius",value:function(n,r,a){if(!n)return!1;if(!a)return!0;var i=r.x,o=r.y,l=Math.pow(i-n[0],2)+Math.pow(o-n[1],2);return le.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fCe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function $k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uh(e){for(var t=1;t"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 lg(e){return lg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lg(e)}function _Ce(e){var t;return t=function(n){mCe(a,n);var r=gCe(a);function a(){return hCe(this,a),r.apply(this,arguments)}return pCe(a,[{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 Gf(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=Dd(o,d),p=c?u:void 0;if(!f||s.length<2)return Uh(Uh({},h),{},{center:me({},l.center,p)});var g=f==="y"?u.x:h.x,b=f==="x"?u.y:h.y;return p=c?u:{x:g,y:b},{x:g,y:b,center:me({},l.center,p)}}},{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:{},p=s==="flyout"?d.flyoutStyle:d.style;return l.reduce(function(g,b,m){var v=me({},d,{datum:b,active:!0}),_=Xe(u)?u(v):void 0,x=_!==void 0?"".concat(_).split(` `):[],O=b.style&&b.style[s]||{},S=Array.isArray(p)?p[m]:p,w=_t(me({},S,O,h[s]),v),C=x.length?x.map(function(){return w}):[w];return g.concat(C)},[])}},{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,p=h<0?"left":"right",g=h<0?"bottom":"top",b=u?p:g,m=c?void 0:b;return{orientation:m,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,p=c.props||{},g=l.reduce(function(w,C){var A=me({},p,{datum:C,active:!0}),I=Xe(s)?s(A):null;return I==null?w:w.concat("".concat(I).split(` -`))},[]),b=l[0],m=b.childName,v=b.eventKey;b.style,b.continuous;var _=cCe(b,aCe),x=o.name===m?m:"".concat(o.name,"-").concat(m),O=me({key:"".concat(x,"-").concat(v,"-voronoi-tooltip"),id:"".concat(x,"-").concat(v,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:l,datum:_,scale:u,theme:f},p,{text:g,width:d,height:h,style:this.getStyle(o,l,"labels"),flyoutStyle:this.getStyle(o,l,"flyout")[0]},this.getDefaultLabelProps(o,l)),S=this.getLabelPosition(o,O,l);return me({},S,O)}},{key:"getTooltip",value:function(o){var l=o.labels,s=o.activePoints,u=o.labelComponent;if(!l)return null;if(Array.isArray(s)&&s.length){var c=this.getLabelProps(o,s),f=c.text,d=Array.isArray(f)?f.filter(Boolean).length:f;return d?M.cloneElement(u,c):null}return null}},{key:"getChildren",value:function(o){return[].concat(iCe(M.Children.toArray(o.children)),[this.getTooltip(o)])}}]),a}(e),t.displayName="VictoryVoronoiContainer",t.defaultProps=Uh(Uh({},En.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:M.createElement(Xl,null),voronoiPadding:5}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseLeave:function(r,a){return n.disable?{}:Bh.onMouseLeave(r,a)},onTouchCancel:function(r,a){return n.disable?{}:Bh.onMouseLeave(r,a)},onMouseMove:function(r,a){return n.disable?{}:Bh.onMouseMove(r,a)},onTouchMove:function(r,a){return n.disable?{}:Bh.onMouseMove(r,a)}}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},t}var vw=_Ce(En);const ed=e=>{var{className:t,constrainToVisibleArea:n=!1,themeColor:r,theme:a=Xr(r),labelComponent:i=y.createElement(V0,null)}=e,o=Q(e,["className","constrainToVisibleArea","themeColor","theme","labelComponent"]);const l=B0({className:t}),s=y.cloneElement(i,Object.assign({constrainToVisibleArea:n,theme:a},i.props));return y.createElement(vw,Object.assign({className:l,labelComponent:s,theme:a},o))};ed.displayName="ChartVoronoiContainer";ed.defaultProps=vw.defaultProps;Vr(ed,vw);const fL=["bot","user","slot","session_started"],M5=1e3,dL=async(e,t)=>{const n=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",r=await zt.get(n,{params:{cursor:t,type_name:fL.join(","),limit:M5}});if(r.status===200)return r.data.messages;throw new Error("Invalid request")},xCe=async(e,t,n)=>{const r=await wCe(e,t,n);return hL([],r)},wCe=async(e,t,n)=>{const r=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",a=async(s,u,c,f)=>{const d=await zt.get(r,{params:{start_date:s,end_date:u,type_name:fL.join(","),offset:c,limit:f}});return{messages:d.data.messages,count:d.data.count,status:d.status}},i=[];let o=0,l=0;do{const s=await a(t,n,l,M5);if(s.status!=200)throw new Error("Invalid request");o=s.count,i.push(...s.messages),l+=M5,await new Promise(u=>setTimeout(u,100))}while(l{const n=await dL(e);t({kind:"load_finished",messages:n})},OCe=async(e,t,n)=>{const r=await dL(e,t);n({kind:"load_finished",messages:r})},hL=(e,t)=>{const n=e.flatMap(a=>a.messages).concat(...t).sort((a,i)=>a.id-i.id).filter((a,i,o)=>!i||a.id!=o[i-1].id),r=[];return n.forEach(a=>{const i=r.findIndex(o=>o.senderId===a.sender_id);i===-1||a.type_name==="session_started"?r.unshift({senderId:a.sender_id,messages:[a],timestamp:a.timestamp,lastTimestamp:a.timestamp,hasSessionStarted:a.type_name==="session_started"}):(r[i].messages.push(a),r[i].lastTimestamp=a.timestamp)}),r},CCe=(e,t)=>e.isFirstLoad&&t.kind!=="load_finished"?e:t.kind==="start_load"?{...e,isFirstLoad:!0,sessions:[]}:t.kind==="load_finished"?{...e,isFirstLoad:!1,isLoading:!1,sessions:hL(e.sessions,t.messages)}:t.kind==="start_load_after"?{...e,isLoading:!0}:e,ECe={isFirstLoad:!1,isLoading:!1,sessions:[]},yw=e=>{const[t,n]=y.useReducer(CCe,ECe);return y.useEffect(()=>{n({kind:"start_load"})},[]),y.useEffect(()=>{t.isFirstLoad&&SCe(e,n)},[t.isFirstLoad,e]),y.useEffect(()=>{if(t.isLoading&&t.sessions.length>0&&t.sessions[t.sessions.length-1].messages.length>0){const r=t.sessions.length-1;OCe(e,t.sessions[r].messages[0].id,n)}},[t.isLoading,e]),{...t,loadMore:()=>n({kind:"start_load_after"})}};function my(e){return e.type_name==="user"&&e.data&&typeof e.data.text=="string"}function kCe(e){return e.type_name==="bot"&&e.data&&typeof e.data.text=="string"}function PCe(e){return e.type_name==="slot"&&e.data&&typeof e.data.name=="string"}const TCe=e=>{var{innerRef:t,initialOptions:n,isDisabled:r,onSelect:a,onToggle:i,toggleContent:o,toggleWidth:l="200px",toggleProps:s}=e,u=Q(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps"]);const[c,f]=M.useState(!1),[d,h]=M.useState("Select a value"),p=n==null?void 0:n.map(v=>{const{content:_,value:x}=v,O=Q(v,["content","value"]),S=d.includes(`${x}`);return M.createElement(o_,Object.assign({value:x,key:x,isSelected:S},O),_)}),g=()=>{i&&i(!c),f(!c)},b=(v,_)=>{a&&a(v,_),h(_),i&&i(!0),f(!1)},m=v=>M.createElement(mu,Object.assign({ref:v,onClick:g,isExpanded:c,isDisabled:r,style:{width:l}},s),o||d);return M.createElement(Tf,Object.assign({isOpen:c,selected:d,onSelect:b,onOpenChange:v=>{i&&i(v),f(v)},toggle:m,shouldFocusToggleOnSelect:!0,ref:t},u),M.createElement(i_,null,p))},I5=M.forwardRef((e,t)=>M.createElement(TCe,Object.assign({},e,{innerRef:t})));I5.displayName="SimpleSelect";const ACe=({startDate:e,endDate:t,updateDateRange:n})=>{const[r,a]=y.useState(""),[i,o]=y.useState(""),[l,s]=y.useState([]),[u,c]=y.useState([]);y.useEffect(()=>{(()=>{const m=new Date,v=new Date;v.setDate(m.getDate()-180);const _=new Set,x=new Set;for(let O=new Date(v);O<=m;O.setMonth(O.getMonth()+1))_.add(O.toLocaleString("default",{month:"long"})),x.add(O.getFullYear().toString());s(Array.from(_).map(O=>({content:O,value:O}))),c(Array.from(x).map(O=>({content:O,value:O})))})()},[]);const f=b=>{b>new Date&&(b=new Date);let m=e,v=t;const _=Math.abs(b.getTime()-e.getTime()),x=Math.abs(b.getTime()-t.getTime());_O&&(v=new Date(m.getTime()+O)),n(m,v),a(""),o("")},d=b=>{const m=new Date,v=new Date;switch(b){case"1 week":v.setDate(m.getDate()-6);break;case"1 month":v.setMonth(m.getMonth()-1);break;case"3 months":v.setMonth(m.getMonth()-3);break;default:return}n(v,m),a(""),o("")},h=b=>{typeof b!="number"&&(a(b),g(b,i))},p=b=>{typeof b!="number"&&(o(b),g(r,b))},g=(b,m)=>{if(!(b&&m))return;const v=new Date(`${b} 1, ${m}`),_=new Date(v);_.setMonth(_.getMonth()+1),_.setDate(_.getDate()-1),n(v,_)};return j.jsxs(j.Fragment,{children:[j.jsx(NT,{date:t,onChange:(b,m)=>f(m),onMonthChange:()=>{},rangeStart:e}),j.jsxs(ra,{children:[j.jsx(Fs,{children:"Presets"}),j.jsxs(Af,{children:[j.jsxs(Xp,{variant:Rb.inline,children:[j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 week"),children:"1 week"}),j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 month"),children:"1 month"}),j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("3 months"),children:"3 months"})]}),j.jsx("br",{}),"By month:",j.jsx("br",{}),j.jsx(I5,{initialOptions:l,onSelect:(b,m)=>h(m)}),j.jsx(I5,{initialOptions:u,onSelect:(b,m)=>p(m)})]})]})]})},Dk=({content:e,title:t})=>j.jsx(l_,{"aria-label":"Popover question",headerContent:t,bodyContent:e,children:j.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:j.jsx("a",{children:j.jsx(kB,{})})})}),MCe=["nlu_fallback","intent_core_.*","intent_integration_.*","intent_notifications_.*","insights_vulnerability_.*","intent_enable_2fa","intent_disable_2fa","intent_access_.*","intent_favorites_.*","intent_feedback_.*","intent_image_builder_.*","intent_advisor_.*","intent_inventory_.*","intent_access_*","intent_services_offline"],ICe=.25,R5=new Date;R5.setDate(R5.getDate()-6);const RCe=()=>{const[e,t]=y.useState([]),[n,r]=y.useState([]),[a,i]=y.useState([]),[o,l]=y.useState({}),[s,u]=y.useState(0),[c,f]=y.useState(0),[d,h]=y.useState(0),[p,g]=y.useState(0),[b,m]=y.useState([]),[v,_]=y.useState([]),[x,O]=y.useState(0),[S,w]=y.useState(0),[C,A]=y.useState(0),[I,P]=y.useState(0),[T,E]=y.useState(0),[L,N]=y.useState(0),[U,W]=y.useState(0),[$,F]=y.useState(0),[k,X]=y.useState(R5),[te,R]=y.useState(new Date),[J,ae]=y.useState({internal:!1,external:!1,orgAdmins:!1,activeSessions:!1}),[ue,ve]=y.useState(!0),ke=y.useCallback(()=>{const q={},Z={};n.forEach(Ae=>{const Ce=new Date(Ae.timestamp*1e3).toISOString().split("T")[0];q[Ce]||(q[Ce]=0),q[Ce]++,Z[Ce]||(Z[Ce]=0),Ae.messages.filter(my).some(Re=>Re.data.text!=="/intent_core_session_start"?(Z[Ce]++,!0):!1)});const ie=[],K=[],Te=[],ye=new Date(k);for(;ye<=te;){const Ae=ye.toISOString().split("T")[0];ie.push({x:Ae.toString(),y:q[Ae]||0,name:"Total"}),K.push({x:Ae.toString(),y:Z[Ae]||0,name:"Active"}),Te.push({x:Ae.toString(),y:(q[Ae]||0)-(Z[Ae]||0),name:"Inactive"}),ye.setDate(ye.getDate()+1)}i(ie),m(K),_(Te)},[n,k,te]);return y.useEffect(()=>{let q=0;const Z=e.filter(Je=>{let z=!1,Y=!1;Je.messages.filter(my).forEach(se=>{se.data.text==="/intent_core_session_start"?z=se.data.metadata.is_org_admin:Y||(Y=!0)});const he=Je.messages.filter(PCe).filter(se=>se.data.name==="is_internal").some(se=>se.data.value);return J.internal&&!he||J.external&&he||J.orgAdmins&&!z||J.activeSessions&&!Y?!1:(Y&&q++,!0)});r(Z),g(q);let ie=0,K=0,Te=0,ye=0,Ae=0,Ce=0,Re=0,Ge=0,_e=0,re=0;const oe={};Z.forEach(Je=>{Je.messages.forEach(z=>{if(kCe(z))z.data.metadata.utter_action==="utter_closing_got_help_yes"?ie++:z.data.metadata.utter_action==="utter_closing_got_help_no"&&K++,z.data.metadata.utter_action==="utter_ask_closing_got_help"&&Ae++,z.data.metadata.utter_action==="utter_core_first_time"&&Ce++,Te++;else if(my(z)){const Y=z.data.parse_data.intent.name,he=MCe.find(se=>Y.match(se));he&&(oe[he]||(oe[he]=0),oe[he]++),Y==="intent_access_contact_admin"&&Re++,Y==="intent_access_request_tam"&&Ge++,Y==="intent_services_offline"&&_e++,ye++}}),re+=Je.lastTimestamp-Je.timestamp}),u(Te),f(ye),w(Ae),O(Ce),l(oe),N(Re),W(Ge),F(_e);const xe=re/1e3/60;E(Math.floor(xe/Z.length));const De=new Set(Z.map(Je=>Je.senderId));h(De.size),A(ie),P(K),ke(),ve(!1)},[J,e,ke]),y.useEffect(()=>{ve(!0),(async()=>{const Z=Math.floor(new Date(k.setHours(0,0,0,0)).getTime()/1e3),ie=new Date(te);ie.setHours(23,59,59,999);const K=Math.floor(ie.getTime()/1e3),Te=await xCe(void 0,Z,K);t(Te)})()},[k,te]),j.jsx(hr,{variant:so.light,isWidthLimited:!0,children:j.jsxs(MA,{hasGutter:!0,children:[j.jsxs(Gi,{span:3,rowSpan:4,children:[j.jsx(ACe,{startDate:k,endDate:te,updateDateRange:(q,Z)=>{X(q),R(Z)}}),j.jsxs(ra,{children:[j.jsxs(Fs,{children:["Filters ",j.jsx(vB,{})]}),j.jsxs(Af,{children:[j.jsx(ur,{label:"Internal",isChecked:J.internal,onChange:()=>{ae(q=>({...q,internal:!q.internal,external:q.internal&&q.external}))},id:"toggle-internal"}),j.jsx(ur,{label:"External",isChecked:J.external,onChange:()=>{ae(q=>({...q,internal:q.internal&&q.external,external:!q.external}))},id:"toggle-external"}),j.jsx(ur,{label:"Org Admins",isChecked:J.orgAdmins,onChange:()=>{ae(q=>({...q,orgAdmins:!q.orgAdmins}))},id:"toggle-org-admins"}),j.jsx(ur,{label:"Active Sessions",isChecked:J.activeSessions,onChange:()=>{ae(q=>({...q,activeSessions:!q.activeSessions}))},id:"toggle-active-sessions"}),ue&&j.jsx(Id,{})]})]})]}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Positive",y:C},{x:"Negative",y:I}],title:Math.ceil(C/(C+I)*100)+"%",subTitle:"Positive feedback",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"cyan"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Users",y:d}],title:d.toString(),subTitle:"User",constrainToVisibleArea:!0,themeColor:"green",labels:({datum:q})=>`${q.x}: ${q.y}`})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Bot",y:s},{x:"User",y:c}],title:(s+c).toString(),subTitle:"Messages",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"multi"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{isFullHeight:!0,isLarge:!0,children:j.jsx(Af,{component:"strong",children:j.jsxs(Xp,{isPlain:!0,iconSize:"large",children:[j.jsxs(or,{icon:j.jsx(Z2,{}),children:[S," Conversations"]}),j.jsxs(or,{icon:j.jsx(nB,{}),children:[T," Minutes Active on Average"]}),j.jsxs(or,{icon:j.jsx(lB,{}),children:[Math.floor((c-(o.nlu_fallback||0))/c*100),"% Intents Recognized"]}),j.jsxs(or,{icon:j.jsx(AB,{}),children:[x," First Time Users"]}),!J.activeSessions&&j.jsxs(or,{icon:j.jsx(_O,{}),children:[n.length-p," Inactive Sessions",j.jsx(Dk,{title:"When is a session inactive?",content:"If a user did not send a message after opening the assistant, the session has been inactive."})]}),L>0&&j.jsxs(or,{icon:j.jsx(_O,{}),children:[L*ICe," Engineering Hours Saved",j.jsx(Dk,{title:"What does this include?",content:"This considers the time it takes to look up an org admin and contact them."})]})]})})})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsxs(Fs,{children:[n.length," Sessions"]}),j.jsxs(Jm,{ariaTitle:"Sessions over time",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.x}: ${q.y} ${q.name}`}),name:"usage",legendData:[{name:"Total"},{name:"Active"},{name:"Inactive",symbol:{type:"dash"}}],legendOrientation:"horizontal",legendPosition:"bottom",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsxs(ag,{children:[j.jsx(rf,{data:a,interpolation:"monotoneX"}),j.jsx(rf,{data:b,interpolation:"monotoneX"}),j.jsx(rf,{data:v,style:{data:{strokeDasharray:"3,3"}},interpolation:"monotoneX"})]})]})]})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsx(Fs,{children:"Intents"}),j.jsxs(Jm,{ariaTitle:"Intents",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.y} ${q.x}`}),name:"by_intent",themeColor:"multi",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsx(ag,{children:Object.entries(o).map(([q,Z])=>j.jsx(mw,{data:[{x:q,y:Z}]}))})]}),j.jsxs(zT,{component:"strong",children:["Usage",j.jsxs(Xp,{children:[j.jsxs(or,{children:["Request TAM: ",U]}),j.jsxs(or,{children:["Contact Admin: ",L]}),j.jsxs(or,{children:["Services Offline: ",$]})]})]})]})})]})})},$Ce=()=>j.jsx(j.Fragment,{children:j.jsxs(hr,{children:[j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{component:di,to:"/dashboard",children:"Dashboard"})]}),j.jsx("div",{style:{display:"flex",justifyContent:"space-between",overflowY:"auto",gap:"5px",marginTop:"10px"},children:j.jsx(RCe,{})})]})});function LCe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jCe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DCe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NCe={};function Nk(e,t){return((t||NCe).jsx?DCe:jCe).test(e)}const FCe=/[ \t\n\f\r]/g;function zCe(e){return typeof e=="object"?e.type==="text"?Fk(e.value):!1:Fk(e)}function Fk(e){return e.replace(FCe,"")===""}class qd{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}qd.prototype.property={};qd.prototype.normal={};qd.prototype.space=null;function pL(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&VCe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Bk,XCe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Bk.test(i)){let o=i.replace(qCe,KCe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=bw}return new a(r,t)}function KCe(e){return"-"+e.toLowerCase()}function XCe(e){return e.charAt(1).toUpperCase()}const YCe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},QCe=pL([vL,gL,_L,xL,HCe],"html"),_w=pL([vL,gL,_L,xL,WCe],"svg");function JCe(e){return e.join(" ").trim()}var wL={},Uk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZCe=/\n/g,e6e=/^\s*/,t6e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n6e=/^:\s*/,r6e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a6e=/^[;\s]*/,i6e=/^\s+|\s+$/g,o6e=` -`,Hk="/",Wk="*",Xo="",l6e="comment",s6e="declaration",u6e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(p){var g=p.match(ZCe);g&&(n+=g.length);var b=p.lastIndexOf(o6e);r=~b?p.length-b:r+p.length}function i(){var p={line:n,column:r};return function(g){return g.position=new o(p),u(),g}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(p){var g=new Error(t.source+":"+n+":"+r+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(p){var g=p.exec(e);if(g){var b=g[0];return a(b),e=e.slice(b.length),g}}function u(){s(e6e)}function c(p){var g;for(p=p||[];g=f();)g!==!1&&p.push(g);return p}function f(){var p=i();if(!(Hk!=e.charAt(0)||Wk!=e.charAt(1))){for(var g=2;Xo!=e.charAt(g)&&(Wk!=e.charAt(g)||Hk!=e.charAt(g+1));)++g;if(g+=2,Xo===e.charAt(g-1))return l("End of comment missing");var b=e.slice(2,g-2);return r+=2,a(b),e=e.slice(g),r+=2,p({type:l6e,comment:b})}}function d(){var p=i(),g=s(t6e);if(g){if(f(),!s(n6e))return l("property missing ':'");var b=s(r6e),m=p({type:s6e,property:Vk(g[0].replace(Uk,Xo)),value:b?Vk(b[0].replace(Uk,Xo)):Xo});return s(a6e),m}}function h(){var p=[];c(p);for(var g;g=d();)g!==!1&&(p.push(g),c(p));return p}return u(),h()};function Vk(e){return e?e.replace(i6e,Xo):Xo}var c6e=ui&&ui.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wL,"__esModule",{value:!0});var f6e=c6e(u6e);function d6e(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,f6e.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,l=i.value;a?t(o,l,i):l&&(n=n||{},n[o]=l)}}),n}var qk=wL.default=d6e;const h6e=qk.default||qk,SL=OL("end"),xw=OL("start");function OL(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function p6e(e){const t=xw(e),n=SL(e);if(t&&n)return{start:t,end:n}}function af(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Gk(e.position):"start"in e||"end"in e?Gk(e):"line"in e||"column"in e?j5(e):""}function j5(e){return Kk(e&&e.line)+":"+Kk(e&&e.column)}function Gk(e){return j5(e&&e.start)+"-"+j5(e&&e.end)}function Kk(e){return e&&typeof e=="number"?e:1}class kn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=af(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}kn.prototype.file="";kn.prototype.name="";kn.prototype.reason="";kn.prototype.message="";kn.prototype.stack="";kn.prototype.column=void 0;kn.prototype.line=void 0;kn.prototype.ancestors=void 0;kn.prototype.cause=void 0;kn.prototype.fatal=void 0;kn.prototype.place=void 0;kn.prototype.ruleId=void 0;kn.prototype.source=void 0;const ww={}.hasOwnProperty,m6e=new Map,g6e=/[A-Z]/g,v6e=/-([a-z])/g,y6e=new Set(["table","tbody","thead","tfoot","tr"]),b6e=new Set(["td","th"]),CL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _6e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=P6e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=k6e(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_w:QCe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=EL(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function EL(e,t,n){if(t.type==="element")return x6e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w6e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return O6e(e,t,n);if(t.type==="mdxjsEsm")return S6e(e,t);if(t.type==="root")return C6e(e,t,n);if(t.type==="text")return E6e(e,t)}function x6e(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=PL(e,t.tagName,!1),o=T6e(e,t);let l=Ow(e,t);return y6e.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!zCe(s):!0})),kL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function w6e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}td(e,t.position)}function S6e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);td(e,t.position)}function O6e(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:PL(e,t.name,!0),o=A6e(e,t),l=Ow(e,t);return kL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function C6e(e,t,n){const r={};return Sw(r,Ow(e,t)),e.create(t,e.Fragment,r,n)}function E6e(e,t){return t.value}function kL(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Sw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function k6e(e,t,n){return r;function r(a,i,o,l){const u=Array.isArray(o.children)?n:t;return l?u(i,o,l):u(i,o)}}function P6e(e,t){return n;function n(r,a,i,o){const l=Array.isArray(i.children),s=xw(r);return t(a,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function T6e(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ww.call(t.properties,a)){const i=M6e(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&b6e.has(t.tagName)?r=l:n[o]=l}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function A6e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else td(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else td(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Ow(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:m6e;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Ai(e,e.length,0,t),e):t}const Qk={}.hasOwnProperty;function z6e(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function qs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $a=Fo(/[A-Za-z]/),fr=Fo(/[\dA-Za-z]/),H6e=Fo(/[#-'*+\--9=?A-Z^-~]/);function D5(e){return e!==null&&(e<32||e===127)}const N5=Fo(/\d/),W6e=Fo(/[\dA-Fa-f]/),V6e=Fo(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function Zn(e){return e!==null&&(e<0||e===32)}function st(e){return e===-2||e===-1||e===32}const q6e=Fo(new RegExp("\\p{P}|\\p{S}","u")),G6e=Fo(/\s/);function Fo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Gu(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function bt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return st(s)?(e.enter(n),l(s)):t(s)}function l(s){return st(s)&&i++o))return;const w=t.events.length;let C=w,A,I;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){I=t.events[C][1].end;break}A=!0}for(m(r),S=w;S_;){const O=n[x];t.containerState=O[1],O[0].exit.call(t,e)}n.length=_}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function J6e(e,t,n){return bt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zk(e){if(e===null||Zn(e)||G6e(e))return 1;if(q6e(e))return 2}function Ew(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);eP(f,-s),eP(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rr(u,Ew(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rr(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ai(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&st(S)?bt(e,v,"linePrefix",i+1)(S):v(S)}function v(S){return S===null||je(S)?e.check(tP,g,x)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||je(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),_)}function x(S){return e.exit("codeFenced"),t(S)}function O(S,w,C){let A=0;return I;function I(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),P}function P(N){return S.enter("codeFencedFence"),st(N)?bt(S,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):T(N)}function T(N){return N===l?(S.enter("codeFencedFenceSequence"),E(N)):C(N)}function E(N){return N===l?(A++,S.consume(N),E):A>=o?(S.exit("codeFencedFenceSequence"),st(N)?bt(S,L,"whitespace")(N):L(N)):C(N)}function L(N){return N===null||je(N)?(S.exit("codeFencedFence"),w(N)):C(N)}}}function cEe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const yy={name:"codeIndented",tokenize:dEe},fEe={tokenize:hEe,partial:!0};function dEe(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),bt(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):je(u)?e.attempt(fEe,o,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||je(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function hEe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):bt(e,i,"linePrefix",5)(o)}function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):je(o)?a(o):n(o)}}const pEe={name:"codeText",tokenize:vEe,resolve:mEe,previous:gEe};function mEe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&wc(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function LL(e,t,n,r,a,i,o,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||D5(m)?n(m):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(l),d(m)):m===null||m===60||je(m)?n(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function g(m){return!c&&(m===null||m===41||Zn(m))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(m)):c999||h===null||h===91||h===93&&!s||h===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):je(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||je(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!st(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function DL(e,t,n,r,a,i){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(r),e.enter(a),e.consume(d),e.exit(a),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):(e.enter(i),u(d))}function u(d){return d===o?(e.exit(i),s(o)):d===null?n(d):je(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),bt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||je(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function of(e,t){let n;return r;function r(a){return je(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):st(a)?bt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const CEe={name:"definition",tokenize:kEe},EEe={tokenize:PEe,partial:!0};function kEe(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return jL.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return a=qs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return Zn(h)?of(e,u)(h):u(h)}function u(h){return LL(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(EEe,f,f)(h)}function f(h){return st(h)?bt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||je(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function PEe(e,t,n){return r;function r(l){return Zn(l)?of(e,a)(l):n(l)}function a(l){return DL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return st(l)?bt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||je(l)?t(l):n(l)}}const TEe={name:"hardBreakEscape",tokenize:AEe};function AEe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return je(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const MEe={name:"headingAtx",tokenize:REe,resolve:IEe};function IEe(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ai(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function REe(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Zn(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||je(c)?(e.exit("atxHeading"),t(c)):st(c)?bt(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Zn(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const $Ee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],rP=["pre","script","style","textarea"],LEe={name:"htmlFlow",tokenize:FEe,resolveTo:NEe,concrete:!0},jEe={tokenize:BEe,partial:!0},DEe={tokenize:zEe,partial:!0};function NEe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function FEe(e,t,n){const r=this;let a,i,o,l,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),a=3,r.interrupt?t:k):$a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function d(R){return R===45?(e.consume(R),a=2,h):R===91?(e.consume(R),a=5,l=0,p):$a(R)?(e.consume(R),a=4,r.interrupt?t:k):n(R)}function h(R){return R===45?(e.consume(R),r.interrupt?t:k):n(R)}function p(R){const J="CDATA[";return R===J.charCodeAt(l++)?(e.consume(R),l===J.length?r.interrupt?t:T:p):n(R)}function g(R){return $a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Zn(R)){const J=R===47,ae=o.toLowerCase();return!J&&!i&&rP.includes(ae)?(a=1,r.interrupt?t(R):T(R)):$Ee.includes(o.toLowerCase())?(a=6,J?(e.consume(R),m):r.interrupt?t(R):T(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?v(R):_(R))}return R===45||fr(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function m(R){return R===62?(e.consume(R),r.interrupt?t:T):n(R)}function v(R){return st(R)?(e.consume(R),v):I(R)}function _(R){return R===47?(e.consume(R),I):R===58||R===95||$a(R)?(e.consume(R),x):st(R)?(e.consume(R),_):I(R)}function x(R){return R===45||R===46||R===58||R===95||fr(R)?(e.consume(R),x):O(R)}function O(R){return R===61?(e.consume(R),S):st(R)?(e.consume(R),O):_(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,w):st(R)?(e.consume(R),S):C(R)}function w(R){return R===s?(e.consume(R),s=null,A):R===null||je(R)?n(R):(e.consume(R),w)}function C(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Zn(R)?O(R):(e.consume(R),C)}function A(R){return R===47||R===62||st(R)?_(R):n(R)}function I(R){return R===62?(e.consume(R),P):n(R)}function P(R){return R===null||je(R)?T(R):st(R)?(e.consume(R),P):n(R)}function T(R){return R===45&&a===2?(e.consume(R),U):R===60&&a===1?(e.consume(R),W):R===62&&a===4?(e.consume(R),X):R===63&&a===3?(e.consume(R),k):R===93&&a===5?(e.consume(R),F):je(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(jEe,te,E)(R)):R===null||je(R)?(e.exit("htmlFlowData"),E(R)):(e.consume(R),T)}function E(R){return e.check(DEe,L,te)(R)}function L(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),N}function N(R){return R===null||je(R)?E(R):(e.enter("htmlFlowData"),T(R))}function U(R){return R===45?(e.consume(R),k):T(R)}function W(R){return R===47?(e.consume(R),o="",$):T(R)}function $(R){if(R===62){const J=o.toLowerCase();return rP.includes(J)?(e.consume(R),X):T(R)}return $a(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),$):T(R)}function F(R){return R===93?(e.consume(R),k):T(R)}function k(R){return R===62?(e.consume(R),X):R===45&&a===2?(e.consume(R),k):T(R)}function X(R){return R===null||je(R)?(e.exit("htmlFlowData"),te(R)):(e.consume(R),X)}function te(R){return e.exit("htmlFlow"),t(R)}}function zEe(e,t,n){const r=this;return a;function a(o){return je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function BEe(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(q0,t,n)}}const UEe={name:"htmlText",tokenize:HEe};function HEe(e,t,n){const r=this;let a,i,o;return l;function l(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),O):k===63?(e.consume(k),_):$a(k)?(e.consume(k),C):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),i=0,p):$a(k)?(e.consume(k),v):n(k)}function c(k){return k===45?(e.consume(k),h):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),d):je(k)?(o=f,W(k)):(e.consume(k),f)}function d(k){return k===45?(e.consume(k),h):f(k)}function h(k){return k===62?U(k):k===45?d(k):f(k)}function p(k){const X="CDATA[";return k===X.charCodeAt(i++)?(e.consume(k),i===X.length?g:p):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),b):je(k)?(o=g,W(k)):(e.consume(k),g)}function b(k){return k===93?(e.consume(k),m):g(k)}function m(k){return k===62?U(k):k===93?(e.consume(k),m):g(k)}function v(k){return k===null||k===62?U(k):je(k)?(o=v,W(k)):(e.consume(k),v)}function _(k){return k===null?n(k):k===63?(e.consume(k),x):je(k)?(o=_,W(k)):(e.consume(k),_)}function x(k){return k===62?U(k):_(k)}function O(k){return $a(k)?(e.consume(k),S):n(k)}function S(k){return k===45||fr(k)?(e.consume(k),S):w(k)}function w(k){return je(k)?(o=w,W(k)):st(k)?(e.consume(k),w):U(k)}function C(k){return k===45||fr(k)?(e.consume(k),C):k===47||k===62||Zn(k)?A(k):n(k)}function A(k){return k===47?(e.consume(k),U):k===58||k===95||$a(k)?(e.consume(k),I):je(k)?(o=A,W(k)):st(k)?(e.consume(k),A):U(k)}function I(k){return k===45||k===46||k===58||k===95||fr(k)?(e.consume(k),I):P(k)}function P(k){return k===61?(e.consume(k),T):je(k)?(o=P,W(k)):st(k)?(e.consume(k),P):A(k)}function T(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,E):je(k)?(o=T,W(k)):st(k)?(e.consume(k),T):(e.consume(k),L)}function E(k){return k===a?(e.consume(k),a=void 0,N):k===null?n(k):je(k)?(o=E,W(k)):(e.consume(k),E)}function L(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Zn(k)?A(k):(e.consume(k),L)}function N(k){return k===47||k===62||Zn(k)?A(k):n(k)}function U(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function W(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),$}function $(k){return st(k)?bt(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):F(k)}function F(k){return e.enter("htmlTextData"),o(k)}}const kw={name:"labelEnd",tokenize:XEe,resolveTo:KEe,resolveAll:GEe},WEe={tokenize:YEe},VEe={tokenize:QEe},qEe={tokenize:JEe};function GEe(e){let t=-1;for(;++t=3&&(u===null||je(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===a?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),st(u)?bt(e,l,"whitespace")(u):l(u))}}const Un={name:"list",tokenize:l3e,continuation:{tokenize:s3e},exit:c3e},i3e={tokenize:f3e,partial:!0},o3e={tokenize:u3e,partial:!0};function l3e(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:N5(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vp,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return N5(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(q0,r.interrupt?n:c,e.attempt(i3e,d,f))}function c(h){return r.containerState.initialBlankLine=!0,i++,d(h)}function f(h){return st(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function s3e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(q0,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bt(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!st(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(o3e,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,bt(e,e.attempt(Un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function u3e(e,t,n){const r=this;return bt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function c3e(e){e.exit(this.containerState.type)}function f3e(e,t,n){const r=this;return bt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!st(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const aP={name:"setextUnderline",tokenize:h3e,resolveTo:d3e};function d3e(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function h3e(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),st(u)?bt(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||je(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const p3e={tokenize:m3e};function m3e(e){const t=this,n=e.attempt(q0,r,e.attempt(this.parser.constructs.flowInitial,a,bt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(_Ee,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const g3e={resolveAll:FL()},v3e=NL("string"),y3e=NL("text");function NL(e){return{tokenize:t,resolveAll:FL(e==="text"?b3e:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const f=a[c];let d=-1;if(f)for(;++d-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function w3e(e,t){let n=-1;const r=[];let a;for(;++n{var{className:t,constrainToVisibleArea:n=!1,themeColor:r,theme:a=Xr(r),labelComponent:i=y.createElement(q0,null)}=e,o=Q(e,["className","constrainToVisibleArea","themeColor","theme","labelComponent"]);const l=U0({className:t}),s=y.cloneElement(i,Object.assign({constrainToVisibleArea:n,theme:a},i.props));return y.createElement(vw,Object.assign({className:l,labelComponent:s,theme:a},o))};ed.displayName="ChartVoronoiContainer";ed.defaultProps=vw.defaultProps;Vr(ed,vw);const cL=["bot","user","slot","session_started"],I5=1e3,fL=async(e,t)=>{const n=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",r=await zt.get(n,{params:{cursor:t,type_name:cL.join(","),limit:I5}});if(r.status===200)return r.data.messages;throw new Error("Invalid request")},xCe=async(e,t,n)=>{const r=await wCe(e,t,n);return dL([],r)},wCe=async(e,t,n)=>{const r=e?`/api/virtual-assistant/v1/messages/${e}`:"/api/virtual-assistant/v1/messages",a=async(s,u,c,f)=>{const d=await zt.get(r,{params:{start_date:s,end_date:u,type_name:cL.join(","),offset:c,limit:f}});return{messages:d.data.messages,count:d.data.count,status:d.status}},i=[];let o=0,l=0;do{const s=await a(t,n,l,I5);if(s.status!=200)throw new Error("Invalid request");o=s.count,i.push(...s.messages),l+=I5,await new Promise(u=>setTimeout(u,100))}while(l{const n=await fL(e);t({kind:"load_finished",messages:n})},OCe=async(e,t,n)=>{const r=await fL(e,t);n({kind:"load_finished",messages:r})},dL=(e,t)=>{const n=e.flatMap(a=>a.messages).concat(...t).sort((a,i)=>a.id-i.id).filter((a,i,o)=>!i||a.id!=o[i-1].id),r=[];return n.forEach(a=>{const i=r.findIndex(o=>o.senderId===a.sender_id);i===-1||a.type_name==="session_started"?r.unshift({senderId:a.sender_id,messages:[a],timestamp:a.timestamp,lastTimestamp:a.timestamp,hasSessionStarted:a.type_name==="session_started"}):(r[i].messages.push(a),r[i].lastTimestamp=a.timestamp)}),r},CCe=(e,t)=>e.isFirstLoad&&t.kind!=="load_finished"?e:t.kind==="start_load"?{...e,isFirstLoad:!0,sessions:[]}:t.kind==="load_finished"?{...e,isFirstLoad:!1,isLoading:!1,sessions:dL(e.sessions,t.messages)}:t.kind==="start_load_after"?{...e,isLoading:!0}:e,ECe={isFirstLoad:!1,isLoading:!1,sessions:[]},yw=e=>{const[t,n]=y.useReducer(CCe,ECe);return y.useEffect(()=>{n({kind:"start_load"})},[]),y.useEffect(()=>{t.isFirstLoad&&SCe(e,n)},[t.isFirstLoad,e]),y.useEffect(()=>{if(t.isLoading&&t.sessions.length>0&&t.sessions[t.sessions.length-1].messages.length>0){const r=t.sessions.length-1;OCe(e,t.sessions[r].messages[0].id,n)}},[t.isLoading,e]),{...t,loadMore:()=>n({kind:"start_load_after"})}};function gy(e){return e.type_name==="user"&&e.data&&typeof e.data.text=="string"}function kCe(e){return e.type_name==="bot"&&e.data&&typeof e.data.text=="string"}function PCe(e){return e.type_name==="slot"&&e.data&&typeof e.data.name=="string"}const TCe=e=>{var{innerRef:t,initialOptions:n,isDisabled:r,onSelect:a,onToggle:i,toggleContent:o,toggleWidth:l="200px",toggleProps:s}=e,u=Q(e,["innerRef","initialOptions","isDisabled","onSelect","onToggle","toggleContent","toggleWidth","toggleProps"]);const[c,f]=M.useState(!1),[d,h]=M.useState("Select a value"),p=n==null?void 0:n.map(v=>{const{content:_,value:x}=v,O=Q(v,["content","value"]),S=d.includes(`${x}`);return M.createElement(o_,Object.assign({value:x,key:x,isSelected:S},O),_)}),g=()=>{i&&i(!c),f(!c)},b=(v,_)=>{a&&a(v,_),h(_),i&&i(!0),f(!1)},m=v=>M.createElement(mu,Object.assign({ref:v,onClick:g,isExpanded:c,isDisabled:r,style:{width:l}},s),o||d);return M.createElement(Tf,Object.assign({isOpen:c,selected:d,onSelect:b,onOpenChange:v=>{i&&i(v),f(v)},toggle:m,shouldFocusToggleOnSelect:!0,ref:t},u),M.createElement(i_,null,p))},R5=M.forwardRef((e,t)=>M.createElement(TCe,Object.assign({},e,{innerRef:t})));R5.displayName="SimpleSelect";const ACe=({startDate:e,endDate:t,updateDateRange:n})=>{const[r,a]=y.useState(""),[i,o]=y.useState(""),[l,s]=y.useState([]),[u,c]=y.useState([]);y.useEffect(()=>{(()=>{const m=new Date,v=new Date;v.setDate(m.getDate()-180);const _=new Set,x=new Set;for(let O=new Date(v);O<=m;O.setMonth(O.getMonth()+1))_.add(O.toLocaleString("default",{month:"long"})),x.add(O.getFullYear().toString());s(Array.from(_).map(O=>({content:O,value:O}))),c(Array.from(x).map(O=>({content:O,value:O})))})()},[]);const f=b=>{b>new Date&&(b=new Date);let m=e,v=t;const _=Math.abs(b.getTime()-e.getTime()),x=Math.abs(b.getTime()-t.getTime());_O&&(v=new Date(m.getTime()+O)),n(m,v),a(""),o("")},d=b=>{const m=new Date,v=new Date;switch(b){case"1 week":v.setDate(m.getDate()-6);break;case"1 month":v.setMonth(m.getMonth()-1);break;case"3 months":v.setMonth(m.getMonth()-3);break;default:return}n(v,m),a(""),o("")},h=b=>{typeof b!="number"&&(a(b),g(b,i))},p=b=>{typeof b!="number"&&(o(b),g(r,b))},g=(b,m)=>{if(!(b&&m))return;const v=new Date(`${b} 1, ${m}`),_=new Date(v);_.setMonth(_.getMonth()+1),_.setDate(_.getDate()-1),n(v,_)};return j.jsxs(j.Fragment,{children:[j.jsx(DT,{date:t,onChange:(b,m)=>f(m),onMonthChange:()=>{},rangeStart:e}),j.jsxs(ra,{children:[j.jsx(Fs,{children:"Presets"}),j.jsxs(Af,{children:[j.jsxs(Yp,{variant:$b.inline,children:[j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 week"),children:"1 week"}),j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("1 month"),children:"1 month"}),j.jsx(or,{className:"pf-v5-c-button pf-m-link pf-m-inline",onClick:()=>d("3 months"),children:"3 months"})]}),j.jsx("br",{}),"By month:",j.jsx("br",{}),j.jsx(R5,{initialOptions:l,onSelect:(b,m)=>h(m)}),j.jsx(R5,{initialOptions:u,onSelect:(b,m)=>p(m)})]})]})]})},jk=({content:e,title:t})=>j.jsx(l_,{"aria-label":"Popover question",headerContent:t,bodyContent:e,children:j.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:j.jsx("a",{children:j.jsx(EB,{})})})}),MCe=["nlu_fallback","intent_core_.*","intent_integration_.*","intent_notifications_.*","insights_vulnerability_.*","intent_enable_2fa","intent_disable_2fa","intent_access_.*","intent_favorites_.*","intent_feedback_.*","intent_image_builder_.*","intent_advisor_.*","intent_inventory_.*","intent_access_*","intent_services_offline"],ICe=.25,$5=new Date;$5.setDate($5.getDate()-6);const RCe=()=>{const[e,t]=y.useState([]),[n,r]=y.useState([]),[a,i]=y.useState([]),[o,l]=y.useState({}),[s,u]=y.useState(0),[c,f]=y.useState(0),[d,h]=y.useState(0),[p,g]=y.useState(0),[b,m]=y.useState([]),[v,_]=y.useState([]),[x,O]=y.useState(0),[S,w]=y.useState(0),[C,A]=y.useState(0),[I,P]=y.useState(0),[T,E]=y.useState(0),[L,N]=y.useState(0),[U,W]=y.useState(0),[$,F]=y.useState(0),[k,X]=y.useState($5),[te,R]=y.useState(new Date),[J,ae]=y.useState({internal:!1,external:!1,orgAdmins:!1,activeSessions:!1}),[ue,ve]=y.useState(!0),ke=y.useCallback(()=>{const q={},Z={};n.forEach(Ae=>{const Ce=new Date(Ae.timestamp*1e3).toISOString().split("T")[0];q[Ce]||(q[Ce]=0),q[Ce]++,Z[Ce]||(Z[Ce]=0),Ae.messages.filter(gy).some(Re=>Re.data.text!=="/intent_core_session_start"?(Z[Ce]++,!0):!1)});const ie=[],K=[],Te=[],ye=new Date(k);for(;ye<=te;){const Ae=ye.toISOString().split("T")[0];ie.push({x:Ae.toString(),y:q[Ae]||0,name:"Total"}),K.push({x:Ae.toString(),y:Z[Ae]||0,name:"Active"}),Te.push({x:Ae.toString(),y:(q[Ae]||0)-(Z[Ae]||0),name:"Inactive"}),ye.setDate(ye.getDate()+1)}i(ie),m(K),_(Te)},[n,k,te]);return y.useEffect(()=>{let q=0;const Z=e.filter(Je=>{let z=!1,Y=!1;Je.messages.filter(gy).forEach(se=>{se.data.text==="/intent_core_session_start"?z=se.data.metadata.is_org_admin:Y||(Y=!0)});const he=Je.messages.filter(PCe).filter(se=>se.data.name==="is_internal").some(se=>se.data.value);return J.internal&&!he||J.external&&he||J.orgAdmins&&!z||J.activeSessions&&!Y?!1:(Y&&q++,!0)});r(Z),g(q);let ie=0,K=0,Te=0,ye=0,Ae=0,Ce=0,Re=0,Ge=0,_e=0,re=0;const oe={};Z.forEach(Je=>{Je.messages.forEach(z=>{if(kCe(z))z.data.metadata.utter_action==="utter_closing_got_help_yes"?ie++:z.data.metadata.utter_action==="utter_closing_got_help_no"&&K++,z.data.metadata.utter_action==="utter_ask_closing_got_help"&&Ae++,z.data.metadata.utter_action==="utter_core_first_time"&&Ce++,Te++;else if(gy(z)){const Y=z.data.parse_data.intent.name,he=MCe.find(se=>Y.match(se));he&&(oe[he]||(oe[he]=0),oe[he]++),Y==="intent_access_contact_admin"&&Re++,Y==="intent_access_request_tam"&&Ge++,Y==="intent_services_offline"&&_e++,ye++}}),re+=Je.lastTimestamp-Je.timestamp}),u(Te),f(ye),w(Ae),O(Ce),l(oe),N(Re),W(Ge),F(_e);const xe=re/1e3/60;E(Math.floor(xe/Z.length));const De=new Set(Z.map(Je=>Je.senderId));h(De.size),A(ie),P(K),ke(),ve(!1)},[J,e,ke]),y.useEffect(()=>{ve(!0),(async()=>{const Z=Math.floor(new Date(k.setHours(0,0,0,0)).getTime()/1e3),ie=new Date(te);ie.setHours(23,59,59,999);const K=Math.floor(ie.getTime()/1e3),Te=await xCe(void 0,Z,K);t(Te)})()},[k,te]),j.jsx(hr,{variant:so.light,isWidthLimited:!0,children:j.jsxs(AA,{hasGutter:!0,children:[j.jsxs(Gi,{span:3,rowSpan:4,children:[j.jsx(ACe,{startDate:k,endDate:te,updateDateRange:(q,Z)=>{X(q),R(Z)}}),j.jsxs(ra,{children:[j.jsxs(Fs,{children:["Filters ",j.jsx(gB,{})]}),j.jsxs(Af,{children:[j.jsx(ur,{label:"Internal",isChecked:J.internal,onChange:()=>{ae(q=>({...q,internal:!q.internal,external:q.internal&&q.external}))},id:"toggle-internal"}),j.jsx(ur,{label:"External",isChecked:J.external,onChange:()=>{ae(q=>({...q,internal:q.internal&&q.external,external:!q.external}))},id:"toggle-external"}),j.jsx(ur,{label:"Org Admins",isChecked:J.orgAdmins,onChange:()=>{ae(q=>({...q,orgAdmins:!q.orgAdmins}))},id:"toggle-org-admins"}),j.jsx(ur,{label:"Active Sessions",isChecked:J.activeSessions,onChange:()=>{ae(q=>({...q,activeSessions:!q.activeSessions}))},id:"toggle-active-sessions"}),ue&&j.jsx(Id,{})]})]})]}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Positive",y:C},{x:"Negative",y:I}],title:Math.ceil(C/(C+I)*100)+"%",subTitle:"Positive feedback",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"cyan"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Users",y:d}],title:d.toString(),subTitle:"User",constrainToVisibleArea:!0,themeColor:"green",labels:({datum:q})=>`${q.x}: ${q.y}`})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{children:j.jsx(nf,{data:[{x:"Bot",y:s},{x:"User",y:c}],title:(s+c).toString(),subTitle:"Messages",constrainToVisibleArea:!0,labels:({datum:q})=>`${q.x}: ${q.y}`,themeColor:"multi"})})}),j.jsx(Gi,{span:2,rowSpan:1,children:j.jsx(ra,{isFullHeight:!0,isLarge:!0,children:j.jsx(Af,{component:"strong",children:j.jsxs(Yp,{isPlain:!0,iconSize:"large",children:[j.jsxs(or,{icon:j.jsx(Kp,{}),children:[S," Conversations"]}),L>0&&j.jsxs(or,{icon:j.jsx(Kp,{}),children:[L*ICe," Engineering Hours Saved",j.jsx(jk,{title:"What does this include?",content:"This considers the time it takes to look up an org admin and contact them."})]}),j.jsxs(or,{icon:j.jsx(tB,{}),children:[T," Minutes Active on Average"]}),j.jsxs(or,{icon:j.jsx(oB,{}),children:[Math.floor((c-(o.nlu_fallback||0))/c*100),"% Intents Recognized"]}),j.jsxs(or,{icon:j.jsx(AB,{}),children:[x," First Time Users"]}),!J.activeSessions&&j.jsxs(or,{icon:j.jsx(PB,{}),children:[n.length-p," Inactive Sessions",j.jsx(jk,{title:"When is a session inactive?",content:"If a user did not send a message after opening the assistant, the session has been inactive."})]})]})})})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsxs(Fs,{children:[n.length," Sessions"]}),j.jsxs(Zm,{ariaTitle:"Sessions over time",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.x}: ${q.y} ${q.name}`}),name:"usage",legendData:[{name:"Total"},{name:"Active"},{name:"Inactive",symbol:{type:"dash"}}],legendOrientation:"horizontal",legendPosition:"bottom",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsxs(ig,{children:[j.jsx(rf,{data:a,interpolation:"monotoneX"}),j.jsx(rf,{data:b,interpolation:"monotoneX"}),j.jsx(rf,{data:v,style:{data:{strokeDasharray:"3,3"}},interpolation:"monotoneX"})]})]})]})}),j.jsx(Gi,{span:4,rowSpan:4,children:j.jsxs(ra,{children:[j.jsx(Fs,{children:"Intents"}),j.jsxs(Zm,{ariaTitle:"Intents",containerComponent:j.jsx(ed,{labels:({datum:q})=>`${q.y} ${q.x}`}),name:"by_intent",themeColor:"multi",children:[j.jsx(Ts,{tickValues:[]}),j.jsx(Ts,{dependentAxis:!0,showGrid:!0}),j.jsx(ig,{children:Object.entries(o).map(([q,Z])=>j.jsx(mw,{data:[{x:q,y:Z}]}))})]}),j.jsxs(FT,{component:"strong",children:["Usage",j.jsxs(Yp,{children:[j.jsxs(or,{children:["Request TAM: ",U]}),j.jsxs(or,{children:["Contact Admin: ",L]}),j.jsxs(or,{children:["Services Offline: ",$]})]})]})]})})]})})},$Ce=()=>j.jsx(j.Fragment,{children:j.jsxs(hr,{children:[j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{component:di,to:"/dashboard",children:"Dashboard"})]}),j.jsx("div",{style:{display:"flex",justifyContent:"space-between",overflowY:"auto",gap:"5px",marginTop:"10px"},children:j.jsx(RCe,{})})]})});function LCe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jCe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,DCe=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NCe={};function Dk(e,t){return((t||NCe).jsx?DCe:jCe).test(e)}const FCe=/[ \t\n\f\r]/g;function zCe(e){return typeof e=="object"?e.type==="text"?Nk(e.value):!1:Nk(e)}function Nk(e){return e.replace(FCe,"")===""}class qd{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}qd.prototype.property={};qd.prototype.normal={};qd.prototype.space=null;function hL(e,t){const n={},r={};let a=-1;for(;++a4&&n.slice(0,4)==="data"&&VCe.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(zk,XCe);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!zk.test(i)){let o=i.replace(qCe,KCe);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=bw}return new a(r,t)}function KCe(e){return"-"+e.toLowerCase()}function XCe(e){return e.charAt(1).toUpperCase()}const YCe={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},QCe=hL([gL,mL,bL,_L,HCe],"html"),_w=hL([gL,mL,bL,_L,WCe],"svg");function JCe(e){return e.join(" ").trim()}var xL={},Bk=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ZCe=/\n/g,e6e=/^\s*/,t6e=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n6e=/^:\s*/,r6e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a6e=/^[;\s]*/,i6e=/^\s+|\s+$/g,o6e=` +`,Uk="/",Hk="*",Xo="",l6e="comment",s6e="declaration",u6e=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(p){var g=p.match(ZCe);g&&(n+=g.length);var b=p.lastIndexOf(o6e);r=~b?p.length-b:r+p.length}function i(){var p={line:n,column:r};return function(g){return g.position=new o(p),u(),g}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(p){var g=new Error(t.source+":"+n+":"+r+": "+p);if(g.reason=p,g.filename=t.source,g.line=n,g.column=r,g.source=e,!t.silent)throw g}function s(p){var g=p.exec(e);if(g){var b=g[0];return a(b),e=e.slice(b.length),g}}function u(){s(e6e)}function c(p){var g;for(p=p||[];g=f();)g!==!1&&p.push(g);return p}function f(){var p=i();if(!(Uk!=e.charAt(0)||Hk!=e.charAt(1))){for(var g=2;Xo!=e.charAt(g)&&(Hk!=e.charAt(g)||Uk!=e.charAt(g+1));)++g;if(g+=2,Xo===e.charAt(g-1))return l("End of comment missing");var b=e.slice(2,g-2);return r+=2,a(b),e=e.slice(g),r+=2,p({type:l6e,comment:b})}}function d(){var p=i(),g=s(t6e);if(g){if(f(),!s(n6e))return l("property missing ':'");var b=s(r6e),m=p({type:s6e,property:Wk(g[0].replace(Bk,Xo)),value:b?Wk(b[0].replace(Bk,Xo)):Xo});return s(a6e),m}}function h(){var p=[];c(p);for(var g;g=d();)g!==!1&&(p.push(g),c(p));return p}return u(),h()};function Wk(e){return e?e.replace(i6e,Xo):Xo}var c6e=ui&&ui.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xL,"__esModule",{value:!0});var f6e=c6e(u6e);function d6e(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,f6e.default)(e),a=typeof t=="function";return r.forEach(function(i){if(i.type==="declaration"){var o=i.property,l=i.value;a?t(o,l,i):l&&(n=n||{},n[o]=l)}}),n}var Vk=xL.default=d6e;const h6e=Vk.default||Vk,wL=SL("end"),xw=SL("start");function SL(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function p6e(e){const t=xw(e),n=wL(e);if(t&&n)return{start:t,end:n}}function af(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qk(e.position):"start"in e||"end"in e?qk(e):"line"in e||"column"in e?D5(e):""}function D5(e){return Gk(e&&e.line)+":"+Gk(e&&e.column)}function qk(e){return D5(e&&e.start)+"-"+D5(e&&e.end)}function Gk(e){return e&&typeof e=="number"?e:1}class kn extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?i.ruleId=r:(i.source=r.slice(0,s),i.ruleId=r.slice(s+1))}if(!i.place&&i.ancestors&&i.ancestors){const s=i.ancestors[i.ancestors.length-1];s&&(i.place=s.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=af(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}kn.prototype.file="";kn.prototype.name="";kn.prototype.reason="";kn.prototype.message="";kn.prototype.stack="";kn.prototype.column=void 0;kn.prototype.line=void 0;kn.prototype.ancestors=void 0;kn.prototype.cause=void 0;kn.prototype.fatal=void 0;kn.prototype.place=void 0;kn.prototype.ruleId=void 0;kn.prototype.source=void 0;const ww={}.hasOwnProperty,m6e=new Map,g6e=/[A-Z]/g,v6e=/-([a-z])/g,y6e=new Set(["table","tbody","thead","tfoot","tr"]),b6e=new Set(["td","th"]),OL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _6e(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=P6e(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=k6e(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?_w:QCe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=CL(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function CL(e,t,n){if(t.type==="element")return x6e(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return w6e(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return O6e(e,t,n);if(t.type==="mdxjsEsm")return S6e(e,t);if(t.type==="root")return C6e(e,t,n);if(t.type==="text")return E6e(e,t)}function x6e(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=kL(e,t.tagName,!1),o=T6e(e,t);let l=Ow(e,t);return y6e.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!zCe(s):!0})),EL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function w6e(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}td(e,t.position)}function S6e(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);td(e,t.position)}function O6e(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=_w,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:kL(e,t.name,!0),o=A6e(e,t),l=Ow(e,t);return EL(e,o,i,t),Sw(o,l),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function C6e(e,t,n){const r={};return Sw(r,Ow(e,t)),e.create(t,e.Fragment,r,n)}function E6e(e,t){return t.value}function EL(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Sw(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function k6e(e,t,n){return r;function r(a,i,o,l){const u=Array.isArray(o.children)?n:t;return l?u(i,o,l):u(i,o)}}function P6e(e,t){return n;function n(r,a,i,o){const l=Array.isArray(i.children),s=xw(r);return t(a,i,o,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function T6e(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&ww.call(t.properties,a)){const i=M6e(e,a,t.properties[a]);if(i){const[o,l]=i;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&b6e.has(t.tagName)?r=l:n[o]=l}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function A6e(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else td(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,i=e.evaluater.evaluateExpression(l.expression)}else td(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function Ow(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:m6e;for(;++ra?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i0?(Ai(e,e.length,0,t),e):t}const Yk={}.hasOwnProperty;function z6e(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function qs(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $a=Fo(/[A-Za-z]/),fr=Fo(/[\dA-Za-z]/),H6e=Fo(/[#-'*+\--9=?A-Z^-~]/);function N5(e){return e!==null&&(e<32||e===127)}const F5=Fo(/\d/),W6e=Fo(/[\dA-Fa-f]/),V6e=Fo(/[!-/:-@[-`{-~]/);function je(e){return e!==null&&e<-2}function Zn(e){return e!==null&&(e<0||e===32)}function st(e){return e===-2||e===-1||e===32}const q6e=Fo(new RegExp("\\p{P}|\\p{S}","u")),G6e=Fo(/\s/);function Fo(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Gu(e){const t=[];let n=-1,r=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(o=String.fromCharCode(i,l),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function bt(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(s){return st(s)?(e.enter(n),l(s)):t(s)}function l(s){return st(s)&&i++o))return;const w=t.events.length;let C=w,A,I;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(A){I=t.events[C][1].end;break}A=!0}for(m(r),S=w;S_;){const O=n[x];t.containerState=O[1],O[0].exit.call(t,e)}n.length=_}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function J6e(e,t,n){return bt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jk(e){if(e===null||Zn(e)||G6e(e))return 1;if(q6e(e))return 2}function Ew(e,t,n){const r=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),d=Object.assign({},e[n][1].start);Zk(f,-s),Zk(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},l={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:d},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},l.end)},e[r][1].end=Object.assign({},o.start),e[n][1].start=Object.assign({},l.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Rr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Rr(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Rr(u,Ew(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Rr(u,[["exit",i,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Rr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Ai(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&st(S)?bt(e,v,"linePrefix",i+1)(S):v(S)}function v(S){return S===null||je(S)?e.check(eP,g,x)(S):(e.enter("codeFlowValue"),_(S))}function _(S){return S===null||je(S)?(e.exit("codeFlowValue"),v(S)):(e.consume(S),_)}function x(S){return e.exit("codeFenced"),t(S)}function O(S,w,C){let A=0;return I;function I(N){return S.enter("lineEnding"),S.consume(N),S.exit("lineEnding"),P}function P(N){return S.enter("codeFencedFence"),st(N)?bt(S,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):T(N)}function T(N){return N===l?(S.enter("codeFencedFenceSequence"),E(N)):C(N)}function E(N){return N===l?(A++,S.consume(N),E):A>=o?(S.exit("codeFencedFenceSequence"),st(N)?bt(S,L,"whitespace")(N):L(N)):C(N)}function L(N){return N===null||je(N)?(S.exit("codeFencedFence"),w(N)):C(N)}}}function cEe(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const by={name:"codeIndented",tokenize:dEe},fEe={tokenize:hEe,partial:!0};function dEe(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),bt(e,i,"linePrefix",5)(u)}function i(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?s(u):je(u)?e.attempt(fEe,o,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||je(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function hEe(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):bt(e,i,"linePrefix",5)(o)}function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(o):je(o)?a(o):n(o)}}const pEe={name:"codeText",tokenize:vEe,resolve:mEe,previous:gEe};function mEe(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&wc(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),wc(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wc(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function $L(e,t,n,r,a,i,o,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(m){return m===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||N5(m)?n(m):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),g(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(l),d(m)):m===null||m===60||je(m)?n(m):(e.consume(m),m===92?p:h)}function p(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function g(m){return!c&&(m===null||m===41||Zn(m))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(m)):c999||h===null||h===91||h===93&&!s||h===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):je(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||je(h)||l++>999?(e.exit("chunkString"),c(h)):(e.consume(h),s||(s=!st(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),l++,f):f(h)}}function jL(e,t,n,r,a,i){let o;return l;function l(d){return d===34||d===39||d===40?(e.enter(r),e.enter(a),e.consume(d),e.exit(a),o=d===40?41:d,s):n(d)}function s(d){return d===o?(e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):(e.enter(i),u(d))}function u(d){return d===o?(e.exit(i),s(o)):d===null?n(d):je(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),bt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||je(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function of(e,t){let n;return r;function r(a){return je(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):st(a)?bt(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const CEe={name:"definition",tokenize:kEe},EEe={tokenize:PEe,partial:!0};function kEe(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),o(h)}function o(h){return LL.call(r,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function l(h){return a=qs(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return Zn(h)?of(e,u)(h):u(h)}function u(h){return $L(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(EEe,f,f)(h)}function f(h){return st(h)?bt(e,d,"whitespace")(h):d(h)}function d(h){return h===null||je(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function PEe(e,t,n){return r;function r(l){return Zn(l)?of(e,a)(l):n(l)}function a(l){return jL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return st(l)?bt(e,o,"whitespace")(l):o(l)}function o(l){return l===null||je(l)?t(l):n(l)}}const TEe={name:"hardBreakEscape",tokenize:AEe};function AEe(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return je(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const MEe={name:"headingAtx",tokenize:REe,resolve:IEe};function IEe(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ai(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function REe(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),i(c)}function i(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||Zn(c)?(e.exit("atxHeadingSequence"),l(c)):n(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||je(c)?(e.exit("atxHeading"),t(c)):st(c)?bt(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Zn(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}const $Ee=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nP=["pre","script","style","textarea"],LEe={name:"htmlFlow",tokenize:FEe,resolveTo:NEe,concrete:!0},jEe={tokenize:BEe,partial:!0},DEe={tokenize:zEe,partial:!0};function NEe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function FEe(e,t,n){const r=this;let a,i,o,l,s;return u;function u(R){return c(R)}function c(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),f}function f(R){return R===33?(e.consume(R),d):R===47?(e.consume(R),i=!0,g):R===63?(e.consume(R),a=3,r.interrupt?t:k):$a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function d(R){return R===45?(e.consume(R),a=2,h):R===91?(e.consume(R),a=5,l=0,p):$a(R)?(e.consume(R),a=4,r.interrupt?t:k):n(R)}function h(R){return R===45?(e.consume(R),r.interrupt?t:k):n(R)}function p(R){const J="CDATA[";return R===J.charCodeAt(l++)?(e.consume(R),l===J.length?r.interrupt?t:T:p):n(R)}function g(R){return $a(R)?(e.consume(R),o=String.fromCharCode(R),b):n(R)}function b(R){if(R===null||R===47||R===62||Zn(R)){const J=R===47,ae=o.toLowerCase();return!J&&!i&&nP.includes(ae)?(a=1,r.interrupt?t(R):T(R)):$Ee.includes(o.toLowerCase())?(a=6,J?(e.consume(R),m):r.interrupt?t(R):T(R)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(R):i?v(R):_(R))}return R===45||fr(R)?(e.consume(R),o+=String.fromCharCode(R),b):n(R)}function m(R){return R===62?(e.consume(R),r.interrupt?t:T):n(R)}function v(R){return st(R)?(e.consume(R),v):I(R)}function _(R){return R===47?(e.consume(R),I):R===58||R===95||$a(R)?(e.consume(R),x):st(R)?(e.consume(R),_):I(R)}function x(R){return R===45||R===46||R===58||R===95||fr(R)?(e.consume(R),x):O(R)}function O(R){return R===61?(e.consume(R),S):st(R)?(e.consume(R),O):_(R)}function S(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),s=R,w):st(R)?(e.consume(R),S):C(R)}function w(R){return R===s?(e.consume(R),s=null,A):R===null||je(R)?n(R):(e.consume(R),w)}function C(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Zn(R)?O(R):(e.consume(R),C)}function A(R){return R===47||R===62||st(R)?_(R):n(R)}function I(R){return R===62?(e.consume(R),P):n(R)}function P(R){return R===null||je(R)?T(R):st(R)?(e.consume(R),P):n(R)}function T(R){return R===45&&a===2?(e.consume(R),U):R===60&&a===1?(e.consume(R),W):R===62&&a===4?(e.consume(R),X):R===63&&a===3?(e.consume(R),k):R===93&&a===5?(e.consume(R),F):je(R)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(jEe,te,E)(R)):R===null||je(R)?(e.exit("htmlFlowData"),E(R)):(e.consume(R),T)}function E(R){return e.check(DEe,L,te)(R)}function L(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),N}function N(R){return R===null||je(R)?E(R):(e.enter("htmlFlowData"),T(R))}function U(R){return R===45?(e.consume(R),k):T(R)}function W(R){return R===47?(e.consume(R),o="",$):T(R)}function $(R){if(R===62){const J=o.toLowerCase();return nP.includes(J)?(e.consume(R),X):T(R)}return $a(R)&&o.length<8?(e.consume(R),o+=String.fromCharCode(R),$):T(R)}function F(R){return R===93?(e.consume(R),k):T(R)}function k(R){return R===62?(e.consume(R),X):R===45&&a===2?(e.consume(R),k):T(R)}function X(R){return R===null||je(R)?(e.exit("htmlFlowData"),te(R)):(e.consume(R),X)}function te(R){return e.exit("htmlFlow"),t(R)}}function zEe(e,t,n){const r=this;return a;function a(o){return je(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function BEe(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(G0,t,n)}}const UEe={name:"htmlText",tokenize:HEe};function HEe(e,t,n){const r=this;let a,i,o;return l;function l(k){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(k),s}function s(k){return k===33?(e.consume(k),u):k===47?(e.consume(k),O):k===63?(e.consume(k),_):$a(k)?(e.consume(k),C):n(k)}function u(k){return k===45?(e.consume(k),c):k===91?(e.consume(k),i=0,p):$a(k)?(e.consume(k),v):n(k)}function c(k){return k===45?(e.consume(k),h):n(k)}function f(k){return k===null?n(k):k===45?(e.consume(k),d):je(k)?(o=f,W(k)):(e.consume(k),f)}function d(k){return k===45?(e.consume(k),h):f(k)}function h(k){return k===62?U(k):k===45?d(k):f(k)}function p(k){const X="CDATA[";return k===X.charCodeAt(i++)?(e.consume(k),i===X.length?g:p):n(k)}function g(k){return k===null?n(k):k===93?(e.consume(k),b):je(k)?(o=g,W(k)):(e.consume(k),g)}function b(k){return k===93?(e.consume(k),m):g(k)}function m(k){return k===62?U(k):k===93?(e.consume(k),m):g(k)}function v(k){return k===null||k===62?U(k):je(k)?(o=v,W(k)):(e.consume(k),v)}function _(k){return k===null?n(k):k===63?(e.consume(k),x):je(k)?(o=_,W(k)):(e.consume(k),_)}function x(k){return k===62?U(k):_(k)}function O(k){return $a(k)?(e.consume(k),S):n(k)}function S(k){return k===45||fr(k)?(e.consume(k),S):w(k)}function w(k){return je(k)?(o=w,W(k)):st(k)?(e.consume(k),w):U(k)}function C(k){return k===45||fr(k)?(e.consume(k),C):k===47||k===62||Zn(k)?A(k):n(k)}function A(k){return k===47?(e.consume(k),U):k===58||k===95||$a(k)?(e.consume(k),I):je(k)?(o=A,W(k)):st(k)?(e.consume(k),A):U(k)}function I(k){return k===45||k===46||k===58||k===95||fr(k)?(e.consume(k),I):P(k)}function P(k){return k===61?(e.consume(k),T):je(k)?(o=P,W(k)):st(k)?(e.consume(k),P):A(k)}function T(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),a=k,E):je(k)?(o=T,W(k)):st(k)?(e.consume(k),T):(e.consume(k),L)}function E(k){return k===a?(e.consume(k),a=void 0,N):k===null?n(k):je(k)?(o=E,W(k)):(e.consume(k),E)}function L(k){return k===null||k===34||k===39||k===60||k===61||k===96?n(k):k===47||k===62||Zn(k)?A(k):(e.consume(k),L)}function N(k){return k===47||k===62||Zn(k)?A(k):n(k)}function U(k){return k===62?(e.consume(k),e.exit("htmlTextData"),e.exit("htmlText"),t):n(k)}function W(k){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),$}function $(k){return st(k)?bt(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):F(k)}function F(k){return e.enter("htmlTextData"),o(k)}}const kw={name:"labelEnd",tokenize:XEe,resolveTo:KEe,resolveAll:GEe},WEe={tokenize:YEe},VEe={tokenize:QEe},qEe={tokenize:JEe};function GEe(e){let t=-1;for(;++t=3&&(u===null||je(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===a?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),st(u)?bt(e,l,"whitespace")(u):l(u))}}const Un={name:"list",tokenize:l3e,continuation:{tokenize:s3e},exit:c3e},i3e={tokenize:f3e,partial:!0},o3e={tokenize:u3e,partial:!0};function l3e(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return l;function l(h){const p=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:F5(h)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(vp,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return F5(h)&&++o<10?(e.consume(h),s):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(G0,r.interrupt?n:c,e.attempt(i3e,d,f))}function c(h){return r.containerState.initialBlankLine=!0,i++,d(h)}function f(h){return st(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):n(h)}function d(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function s3e(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(G0,a,i);function a(l){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,bt(e,t,"listItemIndent",r.containerState.size+1)(l)}function i(l){return r.containerState.furtherBlankLines||!st(l)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(l)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(o3e,t,o)(l))}function o(l){return r.containerState._closeFlow=!0,r.interrupt=void 0,bt(e,e.attempt(Un,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function u3e(e,t,n){const r=this;return bt(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function c3e(e){e.exit(this.containerState.type)}function f3e(e,t,n){const r=this;return bt(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!st(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const rP={name:"setextUnderline",tokenize:h3e,resolveTo:d3e};function d3e(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=o,e.push(["exit",o,t]),e}function h3e(e,t,n){const r=this;let a;return i;function i(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===a?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),st(u)?bt(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||je(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const p3e={tokenize:m3e};function m3e(e){const t=this,n=e.attempt(G0,r,e.attempt(this.parser.constructs.flowInitial,a,bt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(_Ee,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const g3e={resolveAll:NL()},v3e=DL("string"),y3e=DL("text");function DL(e){return{tokenize:t,resolveAll:NL(e==="text"?b3e:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,l);return o;function o(c){return u(c)?i(c):l(c)}function l(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return u(c)?(n.exit("data"),i(c)):(n.consume(c),s)}function u(c){if(c===null)return!0;const f=a[c];let d=-1;if(f)for(;++d-1){const l=o[0];typeof l=="string"?o[0]=l.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function w3e(e,t){let n=-1;const r=[];let a;for(;++n0){const He=he.tokenStack[he.tokenStack.length-1];(He[1]||oP).call(he,void 0,He[0])}for(Y.position={start:qi(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:qi(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe0){const He=he.tokenStack[he.tokenStack.length-1];(He[1]||iP).call(he,void 0,He[0])}for(Y.position={start:qi(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:qi(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},pe=-1;++pe1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function X3e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Y3e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function UL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Q3e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return UL(e,t);const a={src:Gu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function J3e(e,t){const n={src:Gu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Z3e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function eke(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return UL(e,t);const a={href:Gu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function tke(e,t){const n={href:Gu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nke(e,t,n){const r=e.all(t),a=n?rke(n):HL(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function X3e(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Y3e(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function BL(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&o.type==="text"?o.value+=r:a.push({type:"text",value:r}),a}function Q3e(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return BL(e,t);const a={src:Gu(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function J3e(e,t){const n={src:Gu(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Z3e(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function eke(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return BL(e,t);const a={href:Gu(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function tke(e,t){const n={href:Gu(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nke(e,t,n){const r=e.all(t),a=n?rke(n):UL(t),i={},o=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l1}function ake(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=xw(t.children[1]),s=SL(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function uke(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(uP(t.slice(a),a>0,!1)),i.join("")}function uP(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===lP||i===sP;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===lP||i===sP;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function dke(e,t){const n={type:"text",value:fke(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function hke(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pke={blockquote:H3e,break:W3e,code:V3e,delete:q3e,emphasis:G3e,footnoteReference:K3e,heading:X3e,html:Y3e,imageReference:Q3e,image:J3e,inlineCode:Z3e,linkReference:eke,link:tke,listItem:nke,list:ake,paragraph:ike,root:oke,strong:lke,table:ske,tableCell:cke,tableRow:uke,text:dke,thematicBreak:hke,toml:Hh,yaml:Hh,definition:Hh,footnoteDefinition:Hh};function Hh(){}const WL=-1,G0=0,lg=1,sg=2,Pw=3,Tw=4,Aw=5,Mw=6,VL=7,qL=8,cP=typeof self=="object"?self:globalThis,mke=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case G0:case WL:return n(o,a);case lg:{const l=n([],a);for(const s of o)l.push(r(s));return l}case sg:{const l=n({},a);for(const[s,u]of o)l[r(s)]=r(u);return l}case Pw:return n(new Date(o),a);case Tw:{const{source:l,flags:s}=o;return n(new RegExp(l,s),a)}case Aw:{const l=n(new Map,a);for(const[s,u]of o)l.set(r(s),r(u));return l}case Mw:{const l=n(new Set,a);for(const s of o)l.add(r(s));return l}case VL:{const{name:l,message:s}=o;return n(new cP[l](s),a)}case qL:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new cP[i](o),a)};return r},fP=e=>mke(new Map,e)(0),ls="",{toString:gke}={},{keys:vke}=Object,Sc=e=>{const t=typeof e;if(t!=="object"||!e)return[G0,t];const n=gke.call(e).slice(8,-1);switch(n){case"Array":return[lg,ls];case"Object":return[sg,ls];case"Date":return[Pw,ls];case"RegExp":return[Tw,ls];case"Map":return[Aw,ls];case"Set":return[Mw,ls]}return n.includes("Array")?[lg,n]:n.includes("Error")?[VL,n]:[sg,n]},Wh=([e,t])=>e===G0&&(t==="function"||t==="symbol"),yke=(e,t,n,r)=>{const a=(o,l)=>{const s=r.push(o)-1;return n.set(l,s),s},i=o=>{if(n.has(o))return n.get(o);let[l,s]=Sc(o);switch(l){case G0:{let c=o;switch(s){case"bigint":l=qL,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return a([WL],o)}return a([l,c],o)}case lg:{if(s)return a([s,[...o]],o);const c=[],f=a([l,c],o);for(const d of o)c.push(i(d));return f}case sg:{if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],f=a([l,c],o);for(const d of vke(o))(e||!Wh(Sc(o[d])))&&c.push([i(d),i(o[d])]);return f}case Pw:return a([l,o.toISOString()],o);case Tw:{const{source:c,flags:f}=o;return a([l,{source:c,flags:f}],o)}case Aw:{const c=[],f=a([l,c],o);for(const[d,h]of o)(e||!(Wh(Sc(d))||Wh(Sc(h))))&&c.push([i(d),i(h)]);return f}case Mw:{const c=[],f=a([l,c],o);for(const d of o)(e||!Wh(Sc(d)))&&c.push(i(d));return f}}const{message:u}=o;return a([l,{name:s,message:u}],o)};return i},dP=(e,{json:t,lossy:n}={})=>{const r=[];return yke(!(t||n),!!t,new Map,r)(e),r},ug=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fP(dP(e,t)):structuredClone(e):(e,t)=>fP(dP(e,t));function bke(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _ke(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xke(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bke,r=e.options.footnoteBackLabel||_ke,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s0&&p.push({type:"text",value:" "});let v=typeof n=="string"?n:n(s,h);typeof v=="string"&&(v={type:"text",value:v}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const v=b.children[b.children.length-1];v&&v.type==="text"?v.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),l.push(m)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...ug(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` +`});const u={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,u),e.applyData(t,u)}function rke(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function ake(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=xw(t.children[1]),s=wL(t.children[t.children.length-1]);l&&s&&(o.position={start:l,end:s}),a.push(o)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function uke(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let s=-1;const u=[];for(;++s0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(sP(t.slice(a),a>0,!1)),i.join("")}function sP(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===oP||i===lP;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===oP||i===lP;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function dke(e,t){const n={type:"text",value:fke(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function hke(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const pke={blockquote:H3e,break:W3e,code:V3e,delete:q3e,emphasis:G3e,footnoteReference:K3e,heading:X3e,html:Y3e,imageReference:Q3e,image:J3e,inlineCode:Z3e,linkReference:eke,link:tke,listItem:nke,list:ake,paragraph:ike,root:oke,strong:lke,table:ske,tableCell:cke,tableRow:uke,text:dke,thematicBreak:hke,toml:Hh,yaml:Hh,definition:Hh,footnoteDefinition:Hh};function Hh(){}const HL=-1,K0=0,sg=1,ug=2,Pw=3,Tw=4,Aw=5,Mw=6,WL=7,VL=8,uP=typeof self=="object"?self:globalThis,mke=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case K0:case HL:return n(o,a);case sg:{const l=n([],a);for(const s of o)l.push(r(s));return l}case ug:{const l=n({},a);for(const[s,u]of o)l[r(s)]=r(u);return l}case Pw:return n(new Date(o),a);case Tw:{const{source:l,flags:s}=o;return n(new RegExp(l,s),a)}case Aw:{const l=n(new Map,a);for(const[s,u]of o)l.set(r(s),r(u));return l}case Mw:{const l=n(new Set,a);for(const s of o)l.add(r(s));return l}case WL:{const{name:l,message:s}=o;return n(new uP[l](s),a)}case VL:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a)}return n(new uP[i](o),a)};return r},cP=e=>mke(new Map,e)(0),ls="",{toString:gke}={},{keys:vke}=Object,Sc=e=>{const t=typeof e;if(t!=="object"||!e)return[K0,t];const n=gke.call(e).slice(8,-1);switch(n){case"Array":return[sg,ls];case"Object":return[ug,ls];case"Date":return[Pw,ls];case"RegExp":return[Tw,ls];case"Map":return[Aw,ls];case"Set":return[Mw,ls]}return n.includes("Array")?[sg,n]:n.includes("Error")?[WL,n]:[ug,n]},Wh=([e,t])=>e===K0&&(t==="function"||t==="symbol"),yke=(e,t,n,r)=>{const a=(o,l)=>{const s=r.push(o)-1;return n.set(l,s),s},i=o=>{if(n.has(o))return n.get(o);let[l,s]=Sc(o);switch(l){case K0:{let c=o;switch(s){case"bigint":l=VL,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return a([HL],o)}return a([l,c],o)}case sg:{if(s)return a([s,[...o]],o);const c=[],f=a([l,c],o);for(const d of o)c.push(i(d));return f}case ug:{if(s)switch(s){case"BigInt":return a([s,o.toString()],o);case"Boolean":case"Number":case"String":return a([s,o.valueOf()],o)}if(t&&"toJSON"in o)return i(o.toJSON());const c=[],f=a([l,c],o);for(const d of vke(o))(e||!Wh(Sc(o[d])))&&c.push([i(d),i(o[d])]);return f}case Pw:return a([l,o.toISOString()],o);case Tw:{const{source:c,flags:f}=o;return a([l,{source:c,flags:f}],o)}case Aw:{const c=[],f=a([l,c],o);for(const[d,h]of o)(e||!(Wh(Sc(d))||Wh(Sc(h))))&&c.push([i(d),i(h)]);return f}case Mw:{const c=[],f=a([l,c],o);for(const d of o)(e||!Wh(Sc(d)))&&c.push(i(d));return f}}const{message:u}=o;return a([l,{name:s,message:u}],o)};return i},fP=(e,{json:t,lossy:n}={})=>{const r=[];return yke(!(t||n),!!t,new Map,r)(e),r},cg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?cP(fP(e,t)):structuredClone(e):(e,t)=>cP(fP(e,t));function bke(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function _ke(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function xke(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||bke,r=e.options.footnoteBackLabel||_ke,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let s=-1;for(;++s0&&p.push({type:"text",value:" "});let v=typeof n=="string"?n:n(s,h);typeof v=="string"&&(v={type:"text",value:v}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const v=b.children[b.children.length-1];v&&v.type==="text"?v.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...p)}else c.push(...p);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,m),l.push(m)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...cg(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` -`}]}}const GL=function(e){if(e==null)return Cke;if(typeof e=="function")return K0(e);if(typeof e=="object")return Array.isArray(e)?wke(e):Ske(e);if(typeof e=="string")return Oke(e);throw new Error("Expected function, string, or object as test")};function wke(e){const t=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let h=KL,p,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(h=Ake(n(s,c)),h[0]===hP))return h;if("children"in s&&s.children){const m=s;if(m.children&&h[0]!==Pke)for(g=(r?m.children.length:-1)+o,b=c.concat(m);g>-1&&g":""))+")"})}return d;function d(){let h=GL,p,g,b;if((!t||i(s,u,c[c.length-1]||void 0))&&(h=Ake(n(s,c)),h[0]===dP))return h;if("children"in s&&s.children){const m=s;if(m.children&&h[0]!==Pke)for(g=(r?m.children.length:-1)+o,b=c.concat(m);g>-1&&g0&&n.push({type:"text",value:` -`}),n}function pP(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function mP(e,t){const n=Ike(e,t),r=n.one(e,void 0),a=xke(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` -`},a),i}function Dke(e,t){return e&&"run"in e?async function(n,r){const a=mP(n,{file:r,...t});await e.run(a,r)}:function(n,r){return mP(n,{file:r,...t||e})}}function gP(e){if(e)throw e}var yp=Object.prototype.hasOwnProperty,YL=Object.prototype.toString,vP=Object.defineProperty,yP=Object.getOwnPropertyDescriptor,bP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):YL.call(t)==="[object Array]"},_P=function(t){if(!t||YL.call(t)!=="[object Object]")return!1;var n=yp.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yp.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||yp.call(t,a)},xP=function(t,n){vP&&n.name==="__proto__"?vP(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},wP=function(t,n){if(n==="__proto__")if(yp.call(t,n)){if(yP)return yP(t,n).value}else return;return t[n]},Nke=function e(){var t,n,r,a,i,o,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});so.length;let s;l&&o.push(a);try{s=e.apply(this,o)}catch(u){const c=u;if(l&&n)throw c;return a(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(o,...l){n||(n=!0,t(o,...l))}function i(o){a(null,o)}}const Ca={basename:Bke,dirname:Uke,extname:Hke,join:Wke,sep:"/"};function Bke(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Gd(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Uke(e){if(Gd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Hke(e){Gd(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Wke(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function qke(e,t){let n="",r=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function Gd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gke={cwd:Kke};function Kke(){return"/"}function U5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xke(e){if(typeof e=="string")e=new URL(e);else if(!U5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Yke(e)}function Yke(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...p]=c;const g=r[d][1];B5(g)&&B5(h)&&(h=_y(!0,g,h)),r[d]=[u,h,...p]}}}}const ePe=new Iw().freeze();function Oy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ey(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function OP(e){if(!B5(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function CP(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vh(e){return tPe(e)?e:new QL(e)}function tPe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nPe(e){return typeof e=="string"||rPe(e)}function rPe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aPe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",EP=[],kP={allowDangerousHtml:!0},iPe=/^(https?|ircs?|mailto|xmpp)$/i,oPe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lPe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,l=e.rehypePlugins||EP,s=e.remarkPlugins||EP,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...kP}:kP,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||sPe,h=ePe().use(U3e).use(s).use(Dke,u).use(l),p=new QL;typeof r=="string"&&(p.value=r);for(const v of oPe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+aPe+v.id,void 0);const g=h.parse(p);let b=h.runSync(g,p);return a&&(b={type:"element",tagName:"div",properties:{className:a},children:b.type==="root"?b.children:[b]}),XL(b,m),_6e(b,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function m(v,_,x){if(v.type==="raw"&&x&&typeof _=="number")return c?x.children.splice(_,1):x.children[_]={type:"text",value:v.value},_;if(v.type==="element"){let O;for(O in vy)if(Object.hasOwn(vy,O)&&Object.hasOwn(v.properties,O)){const S=v.properties[O],w=vy[O];(w===null||w.includes(v.tagName))&&(v.properties[O]=d(String(S||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):o?o.includes(v.tagName):!1;if(!O&&n&&typeof _=="number"&&(O=!n(v,_,x)),O&&x&&typeof _=="number")return f&&v.children?x.children.splice(_,1,...v.children):x.children.splice(_,1),_}}}function sPe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||iPe.test(e.slice(0,t))?e:""}const uPe=({message:e})=>j.jsx(Dg,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"Astro:"})," ",j.jsx(lPe,{children:e.data.text})]})}),cPe=()=>j.jsx(Dg,{children:j.jsx(Sd,{component:El.p,children:j.jsx("b",{children:" Session started"})})}),fPe=({message:e})=>{if(e.data.text!=="/intent_core_session_start")return j.jsx(Dg,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"User:"})," ",e.data.text,j.jsxs("div",{children:["  (",e.data.parse_data.intent.name,")  ",j.jsx(p_,{date:new Date(e.timestamp*1e3)})]})]})})};var dPe=["date","verboseDate","tooltip","children"];function H5(){return H5=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pPe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function cg(e,t){var n=e.date,r=e.verboseDate,a=e.tooltip,i=e.children,o=hPe(e,dPe),l=y.useMemo(function(){return n.toISOString()},[n]);return M.createElement("time",H5({ref:t},o,{dateTime:l,title:a?r:void 0}),i)}cg=M.forwardRef(cg);cg.propTypes={date:tt.instanceOf(Date).isRequired,verboseDate:tt.string,tooltip:tt.bool.isRequired,children:tt.string.isRequired};var PP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function mPe(e,t){return!!(e===t||PP(e)&&PP(t))}function gPe(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"?"undefined":W5(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function fg(e){"@babel/helpers - typeof";return fg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fg(e)}function bPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TP(e,t){for(var n=0;n"u"?ui:window,qh=["moz","webkit"],Gs="AnimationFrame",ku=_i["request"+Gs],nd=_i["cancel"+Gs]||_i["cancelRequest"+Gs];for(var Oc=0;!ku&&Ocr)return n}else if(r=a-1,re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.nextUpdateTime)LP(n,this.instances);else break}},scheduleNextTick:function(){var t=this;this.scheduledTick=RP(function(){t.tick(),t.scheduleNextTick()})},start:function(){this.scheduleNextTick()},stop:function(){RP.cancel(this.scheduledTick)}};function BPe(e){var t=e.getNextValue(),n=LPe(t,2),r=n[0],a=n[1];e.setValue(r),e.nextUpdateTime=a}function LP(e,t){BPe(e),tj(t,e),ej(t,e)}function ej(e,t){var n=UPe(e,t);e.splice(n,0,t)}function tj(e,t){var n=e.indexOf(t);e.splice(n,1)}function UPe(e,t){var n=t.nextUpdateTime;return $Pe(e,function(r){return r.nextUpdateTime===n?0:r.nextUpdateTime>n?1:-1})}function Gh(e,t){return qPe(e)||VPe(e,t)||WPe(e,t)||HPe()}function HPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WPe(e,t){if(e){if(typeof e=="string")return jP(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 jP(e,t)}}function jP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.getTime()&&(W=t.getTime(),$=!0),l!==void 0){var F=t.getTime()-l*1e3;W>F&&(W=F,$=!0)}var k=_.format(t,i,{getTimeToNextUpdate:!0,now:W,future:n,round:o}),X=Gh(k,2),te=X[0],R=X[1];return $?R=XPe:R=f||R||60*1e3,[te,W+R]},[t,n,i,f,o,l,_,p]),O=y.useRef();O.current=x;var S=y.useMemo(x,[]),w=Gh(S,2),C=w[0],A=w[1],I=y.useState(C),P=Gh(I,2),T=P[0],E=P[1],L=y.useRef();y.useEffect(function(){if(h)return L.current=zPe.add({getNextValue:function(){return O.current()},setValue:E,nextUpdateTime:A}),function(){return L.current.stop()}},[h]),y.useEffect(function(){if(L.current)L.current.forceUpdate();else{var W=x(),$=Gh(W,1),F=$[0];E(F)}},[x]);var N=y.useMemo(function(){return OPe(v,c)},[v,c]),U=y.useMemo(function(){return s?s(t):N(t)},[t,s,N]);return{date:t,formattedDate:T,verboseDate:U}}var KPe=365*24*60*60*1e3,XPe=1e3*KPe,YPe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},q5=tt.oneOfType,DP=tt.arrayOf,As=tt.string,NP=tt.number,Dc=tt.shape,Kh=tt.func,QPe=q5([Dc({minTime:NP,formatAs:As.isRequired}),Dc({test:Kh,formatAs:As.isRequired}),Dc({minTime:NP,format:Kh.isRequired}),Dc({test:Kh,format:Kh.isRequired})]),JPe=q5([As,Dc({steps:DP(QPe).isRequired,labels:q5([As,DP(As)]).isRequired,round:As})]),ZPe=["date","future","timeStyle","round","minTimeLeft","locale","locales","formatVerboseDate","verboseDateFormat","updateInterval","tick","now","timeOffset","polyfill","tooltip","component","container","wrapperComponent","wrapperProps"];function dg(){return dg=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t7e(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function hg(e){var t=e.date,n=e.future,r=e.timeStyle,a=e.round,i=e.minTimeLeft,o=e.locale,l=e.locales,s=l===void 0?[]:l,u=e.formatVerboseDate,c=e.verboseDateFormat,f=e.updateInterval,d=e.tick,h=e.now,p=e.timeOffset,g=e.polyfill,b=e.tooltip,m=b===void 0?!0:b,v=e.component,_=v===void 0?cg:v,x=e.container,O=e.wrapperComponent,S=e.wrapperProps,w=e7e(e,ZPe),C=GPe({date:t,future:n,timeStyle:r,round:a,minTimeLeft:i,locale:o,locales:s,formatVerboseDate:u,verboseDateFormat:c,updateInterval:f,tick:d,now:h,timeOffset:p,polyfill:g}),A=C.date,I=C.verboseDate,P=C.formattedDate,T=M.createElement(_,dg({date:A,verboseDate:I,tooltip:m},w),P),E=O||x;return E?M.createElement(E,dg({},S,{verboseDate:I}),T):T}hg.propTypes={date:tt.oneOfType([tt.instanceOf(Date),tt.number]).isRequired,locale:tt.string,locales:tt.arrayOf(tt.string),future:tt.bool,timeStyle:JPe,round:tt.string,minTimeLeft:tt.number,component:tt.elementType,tooltip:tt.bool,formatVerboseDate:tt.func,verboseDateFormat:tt.object,updateInterval:tt.oneOfType([tt.number,tt.arrayOf(tt.shape({threshold:tt.number,interval:tt.number.isRequired}))]),tick:tt.bool,now:tt.number,timeOffset:tt.number,polyfill:tt.bool,wrapperComponent:tt.elementType,wrapperProps:tt.object};hg=M.memo(hg);const n7e=hg,nj=({session:e,displaySender:t})=>{const[n,r]=y.useState(!0);return j.jsxs(ra,{isExpanded:n,children:[j.jsx(WT,{isToggleRightAligned:!0,onExpand:()=>r(a=>!a),children:j.jsxs(Fs,{children:["Started ",j.jsx(n7e,{timeStyle:"round-minute",date:new Date(e.timestamp*1e3)})," ",!e.hasSessionStarted&&" (or before) ",j.jsx(p_,{date:new Date(e.timestamp*1e3)}),t?j.jsxs(j.Fragment,{children:[j.jsx("br",{})," ",e.senderId]}):""]})}),j.jsx(FT,{children:j.jsx(Af,{children:e.messages.map(a=>{switch(a.type_name){case"bot":return j.jsx(uPe,{message:a},a.id);case"session_started":return j.jsx(cPe,{message:a},a.id);case"user":return j.jsx(fPe,{message:a},a.id)}})})})]})},r7e=()=>{const{senderId:e}=IU(),t=yw(e),n=t.isFirstLoad||t.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/senders",children:"Senders"})}),j.jsx(Dr,{children:e})]})}),t.isFirstLoad?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx("ul",{children:t.sessions.map(r=>j.jsxs(j.Fragment,{children:[j.jsx(nj,{session:r},r.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>t.loadMore(),isLoading:n,isDisabled:n,children:"Load more"})]})]})},a7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Timeline"})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx("ul",{children:e.sessions.map(n=>j.jsxs(j.Fragment,{children:[j.jsx(nj,{session:n,displaySender:!0},n.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})},i7e=({messages:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Messages"}),j.jsx(I_,{children:j.jsxs(Nf,{children:[j.jsx(Cs,{width:45,children:"Message"}),j.jsx(Cs,{width:25,children:"Intent"}),j.jsx(Cs,{width:15,children:"Confidence"}),j.jsx(Cs,{width:15,children:"Sender id"})]})}),j.jsx(R_,{children:e.map(t=>j.jsxs(Nf,{children:[j.jsx(Es,{children:t.data.text}),j.jsx(Es,{children:t.data.parse_data.intent.name}),j.jsx(Es,{children:Math.round(t.data.parse_data.intent.confidence*100)/100}),j.jsx(Es,{children:j.jsxs(di,{to:`/senders/${t.sender_id}`,children:[t.sender_id.slice(0,5),"..."]})})]},t.data.message_id))})]}),o7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading,[n,r]=M.useState(""),[a,i]=M.useState(!1),o=M.useCallback(u=>{const c=[];u.forEach(f=>{let d=!1;if(f.messages.forEach(p=>{if(p.type_name==="slot"&&p.data.name==="is_internal"){p.data.value===!0&&(d=!0);return}}),a&&d)return;f.messages.filter(p=>p.type_name!=="user"||p.data.text.startsWith("/")?!1:n!==""?p.data.parse_data.intent.name.includes(n.toLowerCase())||p.data.text.toLowerCase().includes(n.toLowerCase())||p.sender_id.includes(n):!0).forEach(p=>{const g=p;g.is_internal=d,c.push(g)})}),s(c)},[a,n]),[l,s]=M.useState([]);return M.useEffect(()=>{o(e.sessions)},[e.sessions,a,n,o]),j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/messages",children:"Messages"})})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(j.Fragment,{children:[j.jsx(hr,{variant:so.light,children:j.jsxs(IA,{hasGutter:!0,children:[j.jsx(cp,{children:j.jsx(yA,{placeholder:"Search by intent, message, or sender id",value:n,onChange:(u,c)=>r(c),onClear:()=>r("")})}),j.jsx(cp,{isFilled:!0}),j.jsx(cp,{children:j.jsx("div",{style:{paddingTop:"10px"},children:j.jsx(ur,{id:"toggle-external-only",label:"External Only",isChecked:a,onChange:(u,c)=>i(c)})})})]})}),j.jsxs(hr,{children:[j.jsx(i7e,{messages:l}),j.jsx("br",{}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})]})};Fr.addDefaultLocale(wZ);const l7e=ZU([{path:"/",element:j.jsx(hH,{}),children:[{index:!0,loader:async()=>tU("/dashboard")},{path:"dashboard",element:j.jsx($Ce,{})},{path:"senders",element:j.jsx(tJ,{})},{path:"senders/:senderId",element:j.jsx(r7e,{})},{path:"timeline",element:j.jsx(a7e,{})},{path:"messages",element:j.jsx(o7e,{})}]}]),s7e=new qW;Ty.createRoot(document.getElementById("root")).render(j.jsx(M.StrictMode,{children:j.jsx(QW,{client:s7e,children:j.jsx(sH,{router:l7e})})})); +`}),n}function hP(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function pP(e,t){const n=Ike(e,t),r=n.one(e,void 0),a=xke(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` +`},a),i}function Dke(e,t){return e&&"run"in e?async function(n,r){const a=pP(n,{file:r,...t});await e.run(a,r)}:function(n,r){return pP(n,{file:r,...t||e})}}function mP(e){if(e)throw e}var yp=Object.prototype.hasOwnProperty,XL=Object.prototype.toString,gP=Object.defineProperty,vP=Object.getOwnPropertyDescriptor,yP=function(t){return typeof Array.isArray=="function"?Array.isArray(t):XL.call(t)==="[object Array]"},bP=function(t){if(!t||XL.call(t)!=="[object Object]")return!1;var n=yp.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&yp.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var a;for(a in t);return typeof a>"u"||yp.call(t,a)},_P=function(t,n){gP&&n.name==="__proto__"?gP(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},xP=function(t,n){if(n==="__proto__")if(yp.call(t,n)){if(vP)return vP(t,n).value}else return;return t[n]},Nke=function e(){var t,n,r,a,i,o,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});so.length;let s;l&&o.push(a);try{s=e.apply(this,o)}catch(u){const c=u;if(l&&n)throw c;return a(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(o,...l){n||(n=!0,t(o,...l))}function i(o){a(null,o)}}const Ca={basename:Bke,dirname:Uke,extname:Hke,join:Wke,sep:"/"};function Bke(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Gd(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(r=a):(l=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Uke(e){if(Gd(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Hke(e){Gd(e);let t=e.length,n=-1,r=0,a=-1,i=0,o;for(;t--;){const l=e.codePointAt(t);if(l===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),l===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Wke(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function qke(e,t){let n="",r=0,a=-1,i=0,o=-1,l,s;for(;++o<=e.length;){if(o2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),a=o,i=0;continue}}else if(n.length>0){n="",r=0,a=o,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,o):n=e.slice(a+1,o),r=o-a-1;a=o,i=0}else l===46&&i>-1?i++:i=-1}return n}function Gd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Gke={cwd:Kke};function Kke(){return"/"}function H5(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xke(e){if(typeof e=="string")e=new URL(e);else if(!H5(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Yke(e)}function Yke(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[h,...p]=c;const g=r[d][1];U5(g)&&U5(h)&&(h=xy(!0,g,h)),r[d]=[u,h,...p]}}}}const ePe=new Iw().freeze();function Cy(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ey(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ky(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function SP(e){if(!U5(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function OP(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Vh(e){return tPe(e)?e:new YL(e)}function tPe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function nPe(e){return typeof e=="string"||rPe(e)}function rPe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aPe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",CP=[],EP={allowDangerousHtml:!0},iPe=/^(https?|ircs?|mailto|xmpp)$/i,oPe=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lPe(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,o=e.disallowedElements,l=e.rehypePlugins||CP,s=e.remarkPlugins||CP,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...EP}:EP,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||sPe,h=ePe().use(U3e).use(s).use(Dke,u).use(l),p=new YL;typeof r=="string"&&(p.value=r);for(const v of oPe)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+aPe+v.id,void 0);const g=h.parse(p);let b=h.runSync(g,p);return a&&(b={type:"element",tagName:"div",properties:{className:a},children:b.type==="root"?b.children:[b]}),KL(b,m),_6e(b,{Fragment:j.Fragment,components:i,ignoreInvalidStyle:!0,jsx:j.jsx,jsxs:j.jsxs,passKeys:!0,passNode:!0});function m(v,_,x){if(v.type==="raw"&&x&&typeof _=="number")return c?x.children.splice(_,1):x.children[_]={type:"text",value:v.value},_;if(v.type==="element"){let O;for(O in yy)if(Object.hasOwn(yy,O)&&Object.hasOwn(v.properties,O)){const S=v.properties[O],w=yy[O];(w===null||w.includes(v.tagName))&&(v.properties[O]=d(String(S||""),O,v))}}if(v.type==="element"){let O=t?!t.includes(v.tagName):o?o.includes(v.tagName):!1;if(!O&&n&&typeof _=="number"&&(O=!n(v,_,x)),O&&x&&typeof _=="number")return f&&v.children?x.children.splice(_,1,...v.children):x.children.splice(_,1),_}}}function sPe(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||iPe.test(e.slice(0,t))?e:""}const uPe=({message:e})=>j.jsx(Ng,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"Astro:"})," ",j.jsx(lPe,{children:e.data.text})]})}),cPe=()=>j.jsx(Ng,{children:j.jsx(Sd,{component:El.p,children:j.jsx("b",{children:" Session started"})})}),fPe=({message:e})=>{if(e.data.text!=="/intent_core_session_start")return j.jsx(Ng,{children:j.jsxs(Sd,{component:El.p,children:[j.jsx("b",{children:"User:"})," ",e.data.text,j.jsxs("div",{children:["  (",e.data.parse_data.intent.name,")  ",j.jsx(p_,{date:new Date(e.timestamp*1e3)})]})]})})};var dPe=["date","verboseDate","tooltip","children"];function W5(){return W5=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pPe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function fg(e,t){var n=e.date,r=e.verboseDate,a=e.tooltip,i=e.children,o=hPe(e,dPe),l=y.useMemo(function(){return n.toISOString()},[n]);return M.createElement("time",W5({ref:t},o,{dateTime:l,title:a?r:void 0}),i)}fg=M.forwardRef(fg);fg.propTypes={date:tt.instanceOf(Date).isRequired,verboseDate:tt.string,tooltip:tt.bool.isRequired,children:tt.string.isRequired};var kP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function mPe(e,t){return!!(e===t||kP(e)&&kP(t))}function gPe(e,t){if(e.length!==t.length)return!1;for(var n=0;n"u"?"undefined":V5(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function dg(e){"@babel/helpers - typeof";return dg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dg(e)}function bPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PP(e,t){for(var n=0;n"u"?ui:window,qh=["moz","webkit"],Gs="AnimationFrame",ku=_i["request"+Gs],nd=_i["cancel"+Gs]||_i["cancelRequest"+Gs];for(var Oc=0;!ku&&Ocr)return n}else if(r=a-1,re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.nextUpdateTime)$P(n,this.instances);else break}},scheduleNextTick:function(){var t=this;this.scheduledTick=IP(function(){t.tick(),t.scheduleNextTick()})},start:function(){this.scheduleNextTick()},stop:function(){IP.cancel(this.scheduledTick)}};function BPe(e){var t=e.getNextValue(),n=LPe(t,2),r=n[0],a=n[1];e.setValue(r),e.nextUpdateTime=a}function $P(e,t){BPe(e),ej(t,e),ZL(t,e)}function ZL(e,t){var n=UPe(e,t);e.splice(n,0,t)}function ej(e,t){var n=e.indexOf(t);e.splice(n,1)}function UPe(e,t){var n=t.nextUpdateTime;return $Pe(e,function(r){return r.nextUpdateTime===n?0:r.nextUpdateTime>n?1:-1})}function Gh(e,t){return qPe(e)||VPe(e,t)||WPe(e,t)||HPe()}function HPe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WPe(e,t){if(e){if(typeof e=="string")return LP(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 LP(e,t)}}function LP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=t.getTime()&&(W=t.getTime(),$=!0),l!==void 0){var F=t.getTime()-l*1e3;W>F&&(W=F,$=!0)}var k=_.format(t,i,{getTimeToNextUpdate:!0,now:W,future:n,round:o}),X=Gh(k,2),te=X[0],R=X[1];return $?R=XPe:R=f||R||60*1e3,[te,W+R]},[t,n,i,f,o,l,_,p]),O=y.useRef();O.current=x;var S=y.useMemo(x,[]),w=Gh(S,2),C=w[0],A=w[1],I=y.useState(C),P=Gh(I,2),T=P[0],E=P[1],L=y.useRef();y.useEffect(function(){if(h)return L.current=zPe.add({getNextValue:function(){return O.current()},setValue:E,nextUpdateTime:A}),function(){return L.current.stop()}},[h]),y.useEffect(function(){if(L.current)L.current.forceUpdate();else{var W=x(),$=Gh(W,1),F=$[0];E(F)}},[x]);var N=y.useMemo(function(){return OPe(v,c)},[v,c]),U=y.useMemo(function(){return s?s(t):N(t)},[t,s,N]);return{date:t,formattedDate:T,verboseDate:U}}var KPe=365*24*60*60*1e3,XPe=1e3*KPe,YPe={weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},G5=tt.oneOfType,jP=tt.arrayOf,As=tt.string,DP=tt.number,Dc=tt.shape,Kh=tt.func,QPe=G5([Dc({minTime:DP,formatAs:As.isRequired}),Dc({test:Kh,formatAs:As.isRequired}),Dc({minTime:DP,format:Kh.isRequired}),Dc({test:Kh,format:Kh.isRequired})]),JPe=G5([As,Dc({steps:jP(QPe).isRequired,labels:G5([As,jP(As)]).isRequired,round:As})]),ZPe=["date","future","timeStyle","round","minTimeLeft","locale","locales","formatVerboseDate","verboseDateFormat","updateInterval","tick","now","timeOffset","polyfill","tooltip","component","container","wrapperComponent","wrapperProps"];function hg(){return hg=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function t7e(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i=0)&&(n[a]=e[a]);return n}function pg(e){var t=e.date,n=e.future,r=e.timeStyle,a=e.round,i=e.minTimeLeft,o=e.locale,l=e.locales,s=l===void 0?[]:l,u=e.formatVerboseDate,c=e.verboseDateFormat,f=e.updateInterval,d=e.tick,h=e.now,p=e.timeOffset,g=e.polyfill,b=e.tooltip,m=b===void 0?!0:b,v=e.component,_=v===void 0?fg:v,x=e.container,O=e.wrapperComponent,S=e.wrapperProps,w=e7e(e,ZPe),C=GPe({date:t,future:n,timeStyle:r,round:a,minTimeLeft:i,locale:o,locales:s,formatVerboseDate:u,verboseDateFormat:c,updateInterval:f,tick:d,now:h,timeOffset:p,polyfill:g}),A=C.date,I=C.verboseDate,P=C.formattedDate,T=M.createElement(_,hg({date:A,verboseDate:I,tooltip:m},w),P),E=O||x;return E?M.createElement(E,hg({},S,{verboseDate:I}),T):T}pg.propTypes={date:tt.oneOfType([tt.instanceOf(Date),tt.number]).isRequired,locale:tt.string,locales:tt.arrayOf(tt.string),future:tt.bool,timeStyle:JPe,round:tt.string,minTimeLeft:tt.number,component:tt.elementType,tooltip:tt.bool,formatVerboseDate:tt.func,verboseDateFormat:tt.object,updateInterval:tt.oneOfType([tt.number,tt.arrayOf(tt.shape({threshold:tt.number,interval:tt.number.isRequired}))]),tick:tt.bool,now:tt.number,timeOffset:tt.number,polyfill:tt.bool,wrapperComponent:tt.elementType,wrapperProps:tt.object};pg=M.memo(pg);const n7e=pg,tj=({session:e,displaySender:t})=>{const[n,r]=y.useState(!0);return j.jsxs(ra,{isExpanded:n,children:[j.jsx(HT,{isToggleRightAligned:!0,onExpand:()=>r(a=>!a),children:j.jsxs(Fs,{children:["Started ",j.jsx(n7e,{timeStyle:"round-minute",date:new Date(e.timestamp*1e3)})," ",!e.hasSessionStarted&&" (or before) ",j.jsx(p_,{date:new Date(e.timestamp*1e3)}),t?j.jsxs(j.Fragment,{children:[j.jsx("br",{})," ",e.senderId]}):""]})}),j.jsx(NT,{children:j.jsx(Af,{children:e.messages.map(a=>{switch(a.type_name){case"bot":return j.jsx(uPe,{message:a},a.id);case"session_started":return j.jsx(cPe,{message:a},a.id);case"user":return j.jsx(fPe,{message:a},a.id)}})})})]})},r7e=()=>{const{senderId:e}=IU(),t=yw(e),n=t.isFirstLoad||t.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/senders",children:"Senders"})}),j.jsx(Dr,{children:e})]})}),t.isFirstLoad?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx("ul",{children:t.sessions.map(r=>j.jsxs(j.Fragment,{children:[j.jsx(tj,{session:r},r.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>t.loadMore(),isLoading:n,isDisabled:n,children:"Load more"})]})]})},a7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading;return j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:"Timeline"})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(hr,{children:[j.jsx("ul",{children:e.sessions.map(n=>j.jsxs(j.Fragment,{children:[j.jsx(tj,{session:n,displaySender:!0},n.timestamp),j.jsx("br",{})]}))}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})},i7e=({messages:e})=>j.jsxs(M_,{isStriped:!0,isStickyHeader:!0,children:[j.jsx(B_,{children:"Messages"}),j.jsx(I_,{children:j.jsxs(Nf,{children:[j.jsx(Cs,{width:45,children:"Message"}),j.jsx(Cs,{width:25,children:"Intent"}),j.jsx(Cs,{width:15,children:"Confidence"}),j.jsx(Cs,{width:15,children:"Sender id"})]})}),j.jsx(R_,{children:e.map(t=>j.jsxs(Nf,{children:[j.jsx(Es,{children:t.data.text}),j.jsx(Es,{children:t.data.parse_data.intent.name}),j.jsx(Es,{children:Math.round(t.data.parse_data.intent.confidence*100)/100}),j.jsx(Es,{children:j.jsxs(di,{to:`/senders/${t.sender_id}`,children:[t.sender_id.slice(0,5),"..."]})})]},t.data.message_id))})]}),o7e=()=>{const e=yw(),t=e.isFirstLoad||e.isLoading,[n,r]=M.useState(""),[a,i]=M.useState(!1),o=M.useCallback(u=>{const c=[];u.forEach(f=>{let d=!1;if(f.messages.forEach(p=>{if(p.type_name==="slot"&&p.data.name==="is_internal"){p.data.value===!0&&(d=!0);return}}),a&&d)return;f.messages.filter(p=>p.type_name!=="user"||p.data.text.startsWith("/")?!1:n!==""?p.data.parse_data.intent.name.includes(n.toLowerCase())||p.data.text.toLowerCase().includes(n.toLowerCase())||p.sender_id.includes(n):!0).forEach(p=>{const g=p;g.is_internal=d,c.push(g)})}),s(c)},[a,n]),[l,s]=M.useState([]);return M.useEffect(()=>{o(e.sessions)},[e.sessions,a,n,o]),j.jsxs(j.Fragment,{children:[j.jsx(hr,{children:j.jsxs(Dl,{children:[j.jsx(Dr,{children:"Home"}),j.jsx(Dr,{children:j.jsx(di,{to:"/messages",children:"Messages"})})]})}),e.isFirstLoad?j.jsx(Id,{}):j.jsxs(j.Fragment,{children:[j.jsx(hr,{variant:so.light,children:j.jsxs(MA,{hasGutter:!0,children:[j.jsx(cp,{children:j.jsx(vA,{placeholder:"Search by intent, message, or sender id",value:n,onChange:(u,c)=>r(c),onClear:()=>r("")})}),j.jsx(cp,{isFilled:!0}),j.jsx(cp,{children:j.jsx("div",{style:{paddingTop:"10px"},children:j.jsx(ur,{id:"toggle-external-only",label:"External Only",isChecked:a,onChange:(u,c)=>i(c)})})})]})}),j.jsxs(hr,{children:[j.jsx(i7e,{messages:l}),j.jsx("br",{}),j.jsx(gt,{onClick:()=>e.loadMore(),isLoading:t,isDisabled:t,children:"Load more"})]})]})]})};Fr.addDefaultLocale(wZ);const l7e=ZU([{path:"/",element:j.jsx(hH,{}),children:[{index:!0,loader:async()=>tU("/dashboard")},{path:"dashboard",element:j.jsx($Ce,{})},{path:"senders",element:j.jsx(tJ,{})},{path:"senders/:senderId",element:j.jsx(r7e,{})},{path:"timeline",element:j.jsx(a7e,{})},{path:"messages",element:j.jsx(o7e,{})}]}]),s7e=new qW;Ay.createRoot(document.getElementById("root")).render(j.jsx(M.StrictMode,{children:j.jsx(QW,{client:s7e,children:j.jsx(sH,{router:l7e})})})); diff --git a/internal/public/index.html b/internal/public/index.html index 488f7f35..e2a3289f 100644 --- a/internal/public/index.html +++ b/internal/public/index.html @@ -4,7 +4,7 @@ Astro internal UI - +