vibe-coding-qa 0.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dashboard/__init__.py +10 -0
- dashboard/backend/__init__.py +11 -0
- dashboard/backend/__main__.py +6 -0
- dashboard/backend/ai/__init__.py +6 -0
- dashboard/backend/ai/provider.py +102 -0
- dashboard/backend/ai/service.py +757 -0
- dashboard/backend/api/__init__.py +5 -0
- dashboard/backend/api/ai.py +142 -0
- dashboard/backend/api/dashboard.py +34 -0
- dashboard/backend/api/deps.py +51 -0
- dashboard/backend/api/findings.py +102 -0
- dashboard/backend/api/intel.py +41 -0
- dashboard/backend/api/repositories.py +62 -0
- dashboard/backend/api/scans.py +168 -0
- dashboard/backend/api/system.py +69 -0
- dashboard/backend/config.py +180 -0
- dashboard/backend/main.py +183 -0
- dashboard/backend/persistence/__init__.py +5 -0
- dashboard/backend/persistence/database.py +278 -0
- dashboard/backend/persistence/store.py +600 -0
- dashboard/backend/profiles.py +141 -0
- dashboard/backend/schemas.py +452 -0
- dashboard/backend/security.py +158 -0
- dashboard/backend/services/__init__.py +7 -0
- dashboard/backend/services/dashboard.py +172 -0
- dashboard/backend/services/intel.py +341 -0
- dashboard/backend/services/paths.py +38 -0
- dashboard/backend/services/repositories.py +123 -0
- dashboard/backend/services/scans.py +328 -0
- dashboard/backend/services/settings.py +49 -0
- dashboard/frontend/dist/assets/index-COC-CdqD.js +492 -0
- dashboard/frontend/dist/assets/index-hWDLRaLr.css +1 -0
- dashboard/frontend/dist/index.html +29 -0
- dashboard/frontend/dist/phone-mascots.gif +0 -0
- dashboard/launcher.py +48 -0
- vibe_coding_qa/__init__.py +140 -0
- vibe_coding_qa/__main__.py +5 -0
- vibe_coding_qa/ai_review.py +165 -0
- vibe_coding_qa/cli.py +157 -0
- vibe_coding_qa/engine.py +860 -0
- vibe_coding_qa/fixes.py +222 -0
- vibe_coding_qa/gates.py +300 -0
- vibe_coding_qa/profile.py +471 -0
- vibe_coding_qa/repo.py +188 -0
- vibe_coding_qa/reporters/__init__.py +253 -0
- vibe_coding_qa/scanners/__init__.py +195 -0
- vibe_coding_qa/scanners/compliance.py +167 -0
- vibe_coding_qa/scanners/database.py +316 -0
- vibe_coding_qa/scanners/dependencies.py +595 -0
- vibe_coding_qa/scanners/infrastructure.py +125 -0
- vibe_coding_qa/scanners/performance.py +84 -0
- vibe_coding_qa/scanners/quality.py +129 -0
- vibe_coding_qa/scanners/security.py +521 -0
- vibe_coding_qa-0.5.0.dist-info/METADATA +323 -0
- vibe_coding_qa-0.5.0.dist-info/RECORD +58 -0
- vibe_coding_qa-0.5.0.dist-info/WHEEL +5 -0
- vibe_coding_qa-0.5.0.dist-info/entry_points.txt +3 -0
- vibe_coding_qa-0.5.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
var w5=Object.defineProperty;var NO=e=>{throw TypeError(e)};var S5=(e,t,r)=>t in e?w5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ig=(e,t,r)=>S5(e,typeof t!="symbol"?t+"":t,r),kO=(e,t,r)=>t.has(e)||NO("Cannot "+r);var fr=(e,t,r)=>(kO(e,t,"read from private field"),r?r.call(e):t.get(e)),RO=(e,t,r)=>t.has(e)?NO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),og=(e,t,r,n)=>(kO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);function _5(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var gd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ag={exports:{}},Tc={},sg={exports:{}},Qe={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var MO;function j5(){if(MO)return Qe;MO=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function v(D){return D===null||typeof D!="object"?null:(D=p&&D[p]||D["@@iterator"],typeof D=="function"?D:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,w={};function y(D,Y,ie){this.props=D,this.context=Y,this.refs=w,this.updater=ie||x}y.prototype.isReactComponent={},y.prototype.setState=function(D,Y){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,Y,"setState")},y.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function P(){}P.prototype=y.prototype;function O(D,Y,ie){this.props=D,this.context=Y,this.refs=w,this.updater=ie||x}var A=O.prototype=new P;A.constructor=O,b(A,y.prototype),A.isPureReactComponent=!0;var C=Array.isArray,_=Object.prototype.hasOwnProperty,E={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function R(D,Y,ie){var ne,pe={},ge=null,ke=null;if(Y!=null)for(ne in Y.ref!==void 0&&(ke=Y.ref),Y.key!==void 0&&(ge=""+Y.key),Y)_.call(Y,ne)&&!N.hasOwnProperty(ne)&&(pe[ne]=Y[ne]);var Ee=arguments.length-2;if(Ee===1)pe.children=ie;else if(1<Ee){for(var oe=Array(Ee),ae=0;ae<Ee;ae++)oe[ae]=arguments[ae+2];pe.children=oe}if(D&&D.defaultProps)for(ne in Ee=D.defaultProps,Ee)pe[ne]===void 0&&(pe[ne]=Ee[ne]);return{$$typeof:e,type:D,key:ge,ref:ke,props:pe,_owner:E.current}}function M(D,Y){return{$$typeof:e,type:D.type,key:Y,ref:D.ref,props:D.props,_owner:D._owner}}function F(D){return typeof D=="object"&&D!==null&&D.$$typeof===e}function I(D){var Y={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(ie){return Y[ie]})}var $=/\/+/g;function L(D,Y){return typeof D=="object"&&D!==null&&D.key!=null?I(""+D.key):Y.toString(36)}function U(D,Y,ie,ne,pe){var ge=typeof D;(ge==="undefined"||ge==="boolean")&&(D=null);var ke=!1;if(D===null)ke=!0;else switch(ge){case"string":case"number":ke=!0;break;case"object":switch(D.$$typeof){case e:case t:ke=!0}}if(ke)return ke=D,pe=pe(ke),D=ne===""?"."+L(ke,0):ne,C(pe)?(ie="",D!=null&&(ie=D.replace($,"$&/")+"/"),U(pe,Y,ie,"",function(ae){return ae})):pe!=null&&(F(pe)&&(pe=M(pe,ie+(!pe.key||ke&&ke.key===pe.key?"":(""+pe.key).replace($,"$&/")+"/")+D)),Y.push(pe)),1;if(ke=0,ne=ne===""?".":ne+":",C(D))for(var Ee=0;Ee<D.length;Ee++){ge=D[Ee];var oe=ne+L(ge,Ee);ke+=U(ge,Y,ie,oe,pe)}else if(oe=v(D),typeof oe=="function")for(D=oe.call(D),Ee=0;!(ge=D.next()).done;)ge=ge.value,oe=ne+L(ge,Ee++),ke+=U(ge,Y,ie,oe,pe);else if(ge==="object")throw Y=String(D),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return ke}function H(D,Y,ie){if(D==null)return D;var ne=[],pe=0;return U(D,ne,"","",function(ge){return Y.call(ie,ge,pe++)}),ne}function B(D){if(D._status===-1){var Y=D._result;Y=Y(),Y.then(function(ie){(D._status===0||D._status===-1)&&(D._status=1,D._result=ie)},function(ie){(D._status===0||D._status===-1)&&(D._status=2,D._result=ie)}),D._status===-1&&(D._status=0,D._result=Y)}if(D._status===1)return D._result.default;throw D._result}var X={current:null},W={transition:null},q={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:W,ReactCurrentOwner:E};function V(){throw Error("act(...) is not supported in production builds of React.")}return Qe.Children={map:H,forEach:function(D,Y,ie){H(D,function(){Y.apply(this,arguments)},ie)},count:function(D){var Y=0;return H(D,function(){Y++}),Y},toArray:function(D){return H(D,function(Y){return Y})||[]},only:function(D){if(!F(D))throw Error("React.Children.only expected to receive a single React element child.");return D}},Qe.Component=y,Qe.Fragment=r,Qe.Profiler=i,Qe.PureComponent=O,Qe.StrictMode=n,Qe.Suspense=f,Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Qe.act=V,Qe.cloneElement=function(D,Y,ie){if(D==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ne=b({},D.props),pe=D.key,ge=D.ref,ke=D._owner;if(Y!=null){if(Y.ref!==void 0&&(ge=Y.ref,ke=E.current),Y.key!==void 0&&(pe=""+Y.key),D.type&&D.type.defaultProps)var Ee=D.type.defaultProps;for(oe in Y)_.call(Y,oe)&&!N.hasOwnProperty(oe)&&(ne[oe]=Y[oe]===void 0&&Ee!==void 0?Ee[oe]:Y[oe])}var oe=arguments.length-2;if(oe===1)ne.children=ie;else if(1<oe){Ee=Array(oe);for(var ae=0;ae<oe;ae++)Ee[ae]=arguments[ae+2];ne.children=Ee}return{$$typeof:e,type:D.type,key:pe,ref:ge,props:ne,_owner:ke}},Qe.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},D.Provider={$$typeof:o,_context:D},D.Consumer=D},Qe.createElement=R,Qe.createFactory=function(D){var Y=R.bind(null,D);return Y.type=D,Y},Qe.createRef=function(){return{current:null}},Qe.forwardRef=function(D){return{$$typeof:c,render:D}},Qe.isValidElement=F,Qe.lazy=function(D){return{$$typeof:m,_payload:{_status:-1,_result:D},_init:B}},Qe.memo=function(D,Y){return{$$typeof:d,type:D,compare:Y===void 0?null:Y}},Qe.startTransition=function(D){var Y=W.transition;W.transition={};try{D()}finally{W.transition=Y}},Qe.unstable_act=V,Qe.useCallback=function(D,Y){return X.current.useCallback(D,Y)},Qe.useContext=function(D){return X.current.useContext(D)},Qe.useDebugValue=function(){},Qe.useDeferredValue=function(D){return X.current.useDeferredValue(D)},Qe.useEffect=function(D,Y){return X.current.useEffect(D,Y)},Qe.useId=function(){return X.current.useId()},Qe.useImperativeHandle=function(D,Y,ie){return X.current.useImperativeHandle(D,Y,ie)},Qe.useInsertionEffect=function(D,Y){return X.current.useInsertionEffect(D,Y)},Qe.useLayoutEffect=function(D,Y){return X.current.useLayoutEffect(D,Y)},Qe.useMemo=function(D,Y){return X.current.useMemo(D,Y)},Qe.useReducer=function(D,Y,ie){return X.current.useReducer(D,Y,ie)},Qe.useRef=function(D){return X.current.useRef(D)},Qe.useState=function(D){return X.current.useState(D)},Qe.useSyncExternalStore=function(D,Y,ie){return X.current.useSyncExternalStore(D,Y,ie)},Qe.useTransition=function(){return X.current.useTransition()},Qe.version="18.3.1",Qe}var IO;function T1(){return IO||(IO=1,sg.exports=j5()),sg.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var $O;function P5(){if($O)return Tc;$O=1;var e=T1(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(c,f,d){var m,p={},v=null,x=null;d!==void 0&&(v=""+d),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(x=f.ref);for(m in f)n.call(f,m)&&!o.hasOwnProperty(m)&&(p[m]=f[m]);if(c&&c.defaultProps)for(m in f=c.defaultProps,f)p[m]===void 0&&(p[m]=f[m]);return{$$typeof:t,type:c,key:v,ref:x,props:p,_owner:i.current}}return Tc.Fragment=r,Tc.jsx=s,Tc.jsxs=s,Tc}var DO;function O5(){return DO||(DO=1,ag.exports=P5()),ag.exports}var u=O5(),S=T1();const K=ft(S),Go=_5({__proto__:null,default:K},[S]);var yd={},lg={exports:{}},Fr={},cg={exports:{}},ug={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var LO;function C5(){return LO||(LO=1,(function(e){function t(W,q){var V=W.length;W.push(q);e:for(;0<V;){var D=V-1>>>1,Y=W[D];if(0<i(Y,q))W[D]=q,W[V]=Y,V=D;else break e}}function r(W){return W.length===0?null:W[0]}function n(W){if(W.length===0)return null;var q=W[0],V=W.pop();if(V!==q){W[0]=V;e:for(var D=0,Y=W.length,ie=Y>>>1;D<ie;){var ne=2*(D+1)-1,pe=W[ne],ge=ne+1,ke=W[ge];if(0>i(pe,V))ge<Y&&0>i(ke,pe)?(W[D]=ke,W[ge]=V,D=ge):(W[D]=pe,W[ne]=V,D=ne);else if(ge<Y&&0>i(ke,V))W[D]=ke,W[ge]=V,D=ge;else break e}}return q}function i(W,q){var V=W.sortIndex-q.sortIndex;return V!==0?V:W.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],d=[],m=1,p=null,v=3,x=!1,b=!1,w=!1,y=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(W){for(var q=r(d);q!==null;){if(q.callback===null)n(d);else if(q.startTime<=W)n(d),q.sortIndex=q.expirationTime,t(f,q);else break;q=r(d)}}function C(W){if(w=!1,A(W),!b)if(r(f)!==null)b=!0,B(_);else{var q=r(d);q!==null&&X(C,q.startTime-W)}}function _(W,q){b=!1,w&&(w=!1,P(R),R=-1),x=!0;var V=v;try{for(A(q),p=r(f);p!==null&&(!(p.expirationTime>q)||W&&!I());){var D=p.callback;if(typeof D=="function"){p.callback=null,v=p.priorityLevel;var Y=D(p.expirationTime<=q);q=e.unstable_now(),typeof Y=="function"?p.callback=Y:p===r(f)&&n(f),A(q)}else n(f);p=r(f)}if(p!==null)var ie=!0;else{var ne=r(d);ne!==null&&X(C,ne.startTime-q),ie=!1}return ie}finally{p=null,v=V,x=!1}}var E=!1,N=null,R=-1,M=5,F=-1;function I(){return!(e.unstable_now()-F<M)}function $(){if(N!==null){var W=e.unstable_now();F=W;var q=!0;try{q=N(!0,W)}finally{q?L():(E=!1,N=null)}}else E=!1}var L;if(typeof O=="function")L=function(){O($)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,H=U.port2;U.port1.onmessage=$,L=function(){H.postMessage(null)}}else L=function(){y($,0)};function B(W){N=W,E||(E=!0,L())}function X(W,q){R=y(function(){W(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(W){W.callback=null},e.unstable_continueExecution=function(){b||x||(b=!0,B(_))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(W){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var V=v;v=q;try{return W()}finally{v=V}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,q){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var V=v;v=W;try{return q()}finally{v=V}},e.unstable_scheduleCallback=function(W,q,V){var D=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?D+V:D):V=D,W){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=V+Y,W={id:m++,callback:q,priorityLevel:W,startTime:V,expirationTime:Y,sortIndex:-1},V>D?(W.sortIndex=V,t(d,W),r(f)===null&&W===r(d)&&(w?(P(R),R=-1):w=!0,X(C,V-D))):(W.sortIndex=Y,t(f,W),b||x||(b=!0,B(_))),W},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(W){var q=v;return function(){var V=v;v=q;try{return W.apply(this,arguments)}finally{v=V}}}})(ug)),ug}var FO;function A5(){return FO||(FO=1,cg.exports=C5()),cg.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var BO;function E5(){if(BO)return Fr;BO=1;var e=T1(),t=A5();function r(a){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+a,h=1;h<arguments.length;h++)l+="&args[]="+encodeURIComponent(arguments[h]);return"Minified React error #"+a+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(a,l){s(a,l),s(a+"Capture",l)}function s(a,l){for(i[a]=l,a=0;a<l.length;a++)n.add(l[a])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},p={};function v(a){return f.call(p,a)?!0:f.call(m,a)?!1:d.test(a)?p[a]=!0:(m[a]=!0,!1)}function x(a,l,h,g){if(h!==null&&h.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return g?!1:h!==null?!h.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function b(a,l,h,g){if(l===null||typeof l>"u"||x(a,l,h,g))return!0;if(g)return!1;if(h!==null)switch(h.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function w(a,l,h,g,j,T,k){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=g,this.attributeNamespace=j,this.mustUseProperty=h,this.propertyName=a,this.type=l,this.sanitizeURL=T,this.removeEmptyString=k}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){y[a]=new w(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var l=a[0];y[l]=new w(l,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){y[a]=new w(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){y[a]=new w(a,2,!1,a,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(a){y[a]=new w(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){y[a]=new w(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){y[a]=new w(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){y[a]=new w(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){y[a]=new w(a,5,!1,a.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function O(a){return a[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(a){var l=a.replace(P,O);y[l]=new w(l,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var l=a.replace(P,O);y[l]=new w(l,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var l=a.replace(P,O);y[l]=new w(l,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){y[a]=new w(a,1,!1,a.toLowerCase(),null,!1,!1)}),y.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){y[a]=new w(a,1,!1,a.toLowerCase(),null,!0,!0)});function A(a,l,h,g){var j=y.hasOwnProperty(l)?y[l]:null;(j!==null?j.type!==0:g||!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(b(l,h,j,g)&&(h=null),g||j===null?v(l)&&(h===null?a.removeAttribute(l):a.setAttribute(l,""+h)):j.mustUseProperty?a[j.propertyName]=h===null?j.type===3?!1:"":h:(l=j.attributeName,g=j.attributeNamespace,h===null?a.removeAttribute(l):(j=j.type,h=j===3||j===4&&h===!0?"":""+h,g?a.setAttributeNS(g,l,h):a.setAttribute(l,h))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),E=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),I=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),W=Symbol.iterator;function q(a){return a===null||typeof a!="object"?null:(a=W&&a[W]||a["@@iterator"],typeof a=="function"?a:null)}var V=Object.assign,D;function Y(a){if(D===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);D=l&&l[1]||""}return`
|
|
34
|
+
`+D+a}var ie=!1;function ne(a,l){if(!a||ie)return"";ie=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(l)if(l=function(){throw Error()},Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(te){var g=te}Reflect.construct(a,[],l)}else{try{l.call()}catch(te){g=te}a.call(l.prototype)}else{try{throw Error()}catch(te){g=te}a()}}catch(te){if(te&&g&&typeof te.stack=="string"){for(var j=te.stack.split(`
|
|
35
|
+
`),T=g.stack.split(`
|
|
36
|
+
`),k=j.length-1,z=T.length-1;1<=k&&0<=z&&j[k]!==T[z];)z--;for(;1<=k&&0<=z;k--,z--)if(j[k]!==T[z]){if(k!==1||z!==1)do if(k--,z--,0>z||j[k]!==T[z]){var G=`
|
|
37
|
+
`+j[k].replace(" at new "," at ");return a.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",a.displayName)),G}while(1<=k&&0<=z);break}}}finally{ie=!1,Error.prepareStackTrace=h}return(a=a?a.displayName||a.name:"")?Y(a):""}function pe(a){switch(a.tag){case 5:return Y(a.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return a=ne(a.type,!1),a;case 11:return a=ne(a.type.render,!1),a;case 1:return a=ne(a.type,!0),a;default:return""}}function ge(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case N:return"Fragment";case E:return"Portal";case M:return"Profiler";case R:return"StrictMode";case L:return"Suspense";case U:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case I:return(a.displayName||"Context")+".Consumer";case F:return(a._context.displayName||"Context")+".Provider";case $:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case H:return l=a.displayName||null,l!==null?l:ge(a.type)||"Memo";case B:l=a._payload,a=a._init;try{return ge(a(l))}catch{}}return null}function ke(a){var l=a.type;switch(a.tag){case 24:return"Cache";case 9:return(l.displayName||"Context")+".Consumer";case 10:return(l._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=l.render,a=a.displayName||a.name||"",l.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return l;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(l);case 8:return l===R?"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 l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l}return null}function Ee(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function oe(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ae(a){var l=oe(a)?"checked":"value",h=Object.getOwnPropertyDescriptor(a.constructor.prototype,l),g=""+a[l];if(!a.hasOwnProperty(l)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var j=h.get,T=h.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return j.call(this)},set:function(k){g=""+k,T.call(this,k)}}),Object.defineProperty(a,l,{enumerable:h.enumerable}),{getValue:function(){return g},setValue:function(k){g=""+k},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function xe(a){a._valueTracker||(a._valueTracker=ae(a))}function Z(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var h=l.getValue(),g="";return a&&(g=oe(a)?a.checked?"true":"false":a.value),a=g,a!==h?(l.setValue(a),!0):!1}function ve(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function de(a,l){var h=l.checked;return V({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??a._wrapperState.initialChecked})}function Re(a,l){var h=l.defaultValue==null?"":l.defaultValue,g=l.checked!=null?l.checked:l.defaultChecked;h=Ee(l.value!=null?l.value:h),a._wrapperState={initialChecked:g,initialValue:h,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function ot(a,l){l=l.checked,l!=null&&A(a,"checked",l,!1)}function mt(a,l){ot(a,l);var h=Ee(l.value),g=l.type;if(h!=null)g==="number"?(h===0&&a.value===""||a.value!=h)&&(a.value=""+h):a.value!==""+h&&(a.value=""+h);else if(g==="submit"||g==="reset"){a.removeAttribute("value");return}l.hasOwnProperty("value")?nn(a,l.type,h):l.hasOwnProperty("defaultValue")&&nn(a,l.type,Ee(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(a.defaultChecked=!!l.defaultChecked)}function lr(a,l,h){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var g=l.type;if(!(g!=="submit"&&g!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+a._wrapperState.initialValue,h||l===a.value||(a.value=l),a.defaultValue=l}h=a.name,h!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,h!==""&&(a.name=h)}function nn(a,l,h){(l!=="number"||ve(a.ownerDocument)!==a)&&(h==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+h&&(a.defaultValue=""+h))}var on=Array.isArray;function vr(a,l,h,g){if(a=a.options,l){l={};for(var j=0;j<h.length;j++)l["$"+h[j]]=!0;for(h=0;h<a.length;h++)j=l.hasOwnProperty("$"+a[h].value),a[h].selected!==j&&(a[h].selected=j),j&&g&&(a[h].defaultSelected=!0)}else{for(h=""+Ee(h),l=null,j=0;j<a.length;j++){if(a[j].value===h){a[j].selected=!0,g&&(a[j].defaultSelected=!0);return}l!==null||a[j].disabled||(l=a[j])}l!==null&&(l.selected=!0)}}function gr(a,l){if(l.dangerouslySetInnerHTML!=null)throw Error(r(91));return V({},l,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Za(a,l){var h=l.value;if(h==null){if(h=l.children,l=l.defaultValue,h!=null){if(l!=null)throw Error(r(92));if(on(h)){if(1<h.length)throw Error(r(93));h=h[0]}l=h}l==null&&(l=""),h=l}a._wrapperState={initialValue:Ee(h)}}function Wl(a,l){var h=Ee(l.value),g=Ee(l.defaultValue);h!=null&&(h=""+h,h!==a.value&&(a.value=h),l.defaultValue==null&&a.defaultValue!==h&&(a.defaultValue=h)),g!=null&&(a.defaultValue=""+g)}function Hl(a){var l=a.textContent;l===a._wrapperState.initialValue&&l!==""&&l!==null&&(a.value=l)}function W_(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mm(a,l){return a==null||a==="http://www.w3.org/1999/xhtml"?W_(l):a==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var cf,H_=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,h,g,j){MSApp.execUnsafeLocalFunction(function(){return a(l,h,g,j)})}:a})(function(a,l){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=l;else{for(cf=cf||document.createElement("div"),cf.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=cf.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}});function Vl(a,l){if(l){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=l;return}}a.textContent=l}var Gl={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},P4=["Webkit","ms","Moz","O"];Object.keys(Gl).forEach(function(a){P4.forEach(function(l){l=l+a.charAt(0).toUpperCase()+a.substring(1),Gl[l]=Gl[a]})});function V_(a,l,h){return l==null||typeof l=="boolean"||l===""?"":h||typeof l!="number"||l===0||Gl.hasOwnProperty(a)&&Gl[a]?(""+l).trim():l+"px"}function G_(a,l){a=a.style;for(var h in l)if(l.hasOwnProperty(h)){var g=h.indexOf("--")===0,j=V_(h,l[h],g);h==="float"&&(h="cssFloat"),g?a.setProperty(h,j):a[h]=j}}var O4=V({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 vm(a,l){if(l){if(O4[a]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(r(137,a));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(r(60));if(typeof l.dangerouslySetInnerHTML!="object"||!("__html"in l.dangerouslySetInnerHTML))throw Error(r(61))}if(l.style!=null&&typeof l.style!="object")throw Error(r(62))}}function gm(a,l){if(a.indexOf("-")===-1)return typeof l.is=="string";switch(a){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 ym=null;function xm(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var bm=null,Ja=null,es=null;function K_(a){if(a=mc(a)){if(typeof bm!="function")throw Error(r(280));var l=a.stateNode;l&&(l=kf(l),bm(a.stateNode,a.type,l))}}function X_(a){Ja?es?es.push(a):es=[a]:Ja=a}function Y_(){if(Ja){var a=Ja,l=es;if(es=Ja=null,K_(a),l)for(a=0;a<l.length;a++)K_(l[a])}}function Q_(a,l){return a(l)}function Z_(){}var wm=!1;function J_(a,l,h){if(wm)return a(l,h);wm=!0;try{return Q_(a,l,h)}finally{wm=!1,(Ja!==null||es!==null)&&(Z_(),Y_())}}function Kl(a,l){var h=a.stateNode;if(h===null)return null;var g=kf(h);if(g===null)return null;h=g[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(h&&typeof h!="function")throw Error(r(231,l,typeof h));return h}var Sm=!1;if(c)try{var Xl={};Object.defineProperty(Xl,"passive",{get:function(){Sm=!0}}),window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{Sm=!1}function C4(a,l,h,g,j,T,k,z,G){var te=Array.prototype.slice.call(arguments,3);try{l.apply(h,te)}catch(le){this.onError(le)}}var Yl=!1,uf=null,ff=!1,_m=null,A4={onError:function(a){Yl=!0,uf=a}};function E4(a,l,h,g,j,T,k,z,G){Yl=!1,uf=null,C4.apply(A4,arguments)}function T4(a,l,h,g,j,T,k,z,G){if(E4.apply(this,arguments),Yl){if(Yl){var te=uf;Yl=!1,uf=null}else throw Error(r(198));ff||(ff=!0,_m=te)}}function ia(a){var l=a,h=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(h=l.return),a=l.return;while(a)}return l.tag===3?h:null}function ej(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function tj(a){if(ia(a)!==a)throw Error(r(188))}function N4(a){var l=a.alternate;if(!l){if(l=ia(a),l===null)throw Error(r(188));return l!==a?null:a}for(var h=a,g=l;;){var j=h.return;if(j===null)break;var T=j.alternate;if(T===null){if(g=j.return,g!==null){h=g;continue}break}if(j.child===T.child){for(T=j.child;T;){if(T===h)return tj(j),a;if(T===g)return tj(j),l;T=T.sibling}throw Error(r(188))}if(h.return!==g.return)h=j,g=T;else{for(var k=!1,z=j.child;z;){if(z===h){k=!0,h=j,g=T;break}if(z===g){k=!0,g=j,h=T;break}z=z.sibling}if(!k){for(z=T.child;z;){if(z===h){k=!0,h=T,g=j;break}if(z===g){k=!0,g=T,h=j;break}z=z.sibling}if(!k)throw Error(r(189))}}if(h.alternate!==g)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?a:l}function rj(a){return a=N4(a),a!==null?nj(a):null}function nj(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var l=nj(a);if(l!==null)return l;a=a.sibling}return null}var ij=t.unstable_scheduleCallback,oj=t.unstable_cancelCallback,k4=t.unstable_shouldYield,R4=t.unstable_requestPaint,kt=t.unstable_now,M4=t.unstable_getCurrentPriorityLevel,jm=t.unstable_ImmediatePriority,aj=t.unstable_UserBlockingPriority,df=t.unstable_NormalPriority,I4=t.unstable_LowPriority,sj=t.unstable_IdlePriority,hf=null,Un=null;function $4(a){if(Un&&typeof Un.onCommitFiberRoot=="function")try{Un.onCommitFiberRoot(hf,a,void 0,(a.current.flags&128)===128)}catch{}}var Cn=Math.clz32?Math.clz32:F4,D4=Math.log,L4=Math.LN2;function F4(a){return a>>>=0,a===0?32:31-(D4(a)/L4|0)|0}var pf=64,mf=4194304;function Ql(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function vf(a,l){var h=a.pendingLanes;if(h===0)return 0;var g=0,j=a.suspendedLanes,T=a.pingedLanes,k=h&268435455;if(k!==0){var z=k&~j;z!==0?g=Ql(z):(T&=k,T!==0&&(g=Ql(T)))}else k=h&~j,k!==0?g=Ql(k):T!==0&&(g=Ql(T));if(g===0)return 0;if(l!==0&&l!==g&&(l&j)===0&&(j=g&-g,T=l&-l,j>=T||j===16&&(T&4194240)!==0))return l;if((g&4)!==0&&(g|=h&16),l=a.entangledLanes,l!==0)for(a=a.entanglements,l&=g;0<l;)h=31-Cn(l),j=1<<h,g|=a[h],l&=~j;return g}function B4(a,l){switch(a){case 1:case 2:case 4:return l+250;case 8:case 16:case 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 l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function z4(a,l){for(var h=a.suspendedLanes,g=a.pingedLanes,j=a.expirationTimes,T=a.pendingLanes;0<T;){var k=31-Cn(T),z=1<<k,G=j[k];G===-1?((z&h)===0||(z&g)!==0)&&(j[k]=B4(z,l)):G<=l&&(a.expiredLanes|=z),T&=~z}}function Pm(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function lj(){var a=pf;return pf<<=1,(pf&4194240)===0&&(pf=64),a}function Om(a){for(var l=[],h=0;31>h;h++)l.push(a);return l}function Zl(a,l,h){a.pendingLanes|=l,l!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,l=31-Cn(l),a[l]=h}function q4(a,l){var h=a.pendingLanes&~l;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=l,a.mutableReadLanes&=l,a.entangledLanes&=l,l=a.entanglements;var g=a.eventTimes;for(a=a.expirationTimes;0<h;){var j=31-Cn(h),T=1<<j;l[j]=0,g[j]=-1,a[j]=-1,h&=~T}}function Cm(a,l){var h=a.entangledLanes|=l;for(a=a.entanglements;h;){var g=31-Cn(h),j=1<<g;j&l|a[g]&l&&(a[g]|=l),h&=~j}}var lt=0;function cj(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var uj,Am,fj,dj,hj,Em=!1,gf=[],ao=null,so=null,lo=null,Jl=new Map,ec=new Map,co=[],U4="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pj(a,l){switch(a){case"focusin":case"focusout":ao=null;break;case"dragenter":case"dragleave":so=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":Jl.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":ec.delete(l.pointerId)}}function tc(a,l,h,g,j,T){return a===null||a.nativeEvent!==T?(a={blockedOn:l,domEventName:h,eventSystemFlags:g,nativeEvent:T,targetContainers:[j]},l!==null&&(l=mc(l),l!==null&&Am(l)),a):(a.eventSystemFlags|=g,l=a.targetContainers,j!==null&&l.indexOf(j)===-1&&l.push(j),a)}function W4(a,l,h,g,j){switch(l){case"focusin":return ao=tc(ao,a,l,h,g,j),!0;case"dragenter":return so=tc(so,a,l,h,g,j),!0;case"mouseover":return lo=tc(lo,a,l,h,g,j),!0;case"pointerover":var T=j.pointerId;return Jl.set(T,tc(Jl.get(T)||null,a,l,h,g,j)),!0;case"gotpointercapture":return T=j.pointerId,ec.set(T,tc(ec.get(T)||null,a,l,h,g,j)),!0}return!1}function mj(a){var l=oa(a.target);if(l!==null){var h=ia(l);if(h!==null){if(l=h.tag,l===13){if(l=ej(h),l!==null){a.blockedOn=l,hj(a.priority,function(){fj(h)});return}}else if(l===3&&h.stateNode.current.memoizedState.isDehydrated){a.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}a.blockedOn=null}function yf(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var h=Nm(a.domEventName,a.eventSystemFlags,l[0],a.nativeEvent);if(h===null){h=a.nativeEvent;var g=new h.constructor(h.type,h);ym=g,h.target.dispatchEvent(g),ym=null}else return l=mc(h),l!==null&&Am(l),a.blockedOn=h,!1;l.shift()}return!0}function vj(a,l,h){yf(a)&&h.delete(l)}function H4(){Em=!1,ao!==null&&yf(ao)&&(ao=null),so!==null&&yf(so)&&(so=null),lo!==null&&yf(lo)&&(lo=null),Jl.forEach(vj),ec.forEach(vj)}function rc(a,l){a.blockedOn===l&&(a.blockedOn=null,Em||(Em=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,H4)))}function nc(a){function l(j){return rc(j,a)}if(0<gf.length){rc(gf[0],a);for(var h=1;h<gf.length;h++){var g=gf[h];g.blockedOn===a&&(g.blockedOn=null)}}for(ao!==null&&rc(ao,a),so!==null&&rc(so,a),lo!==null&&rc(lo,a),Jl.forEach(l),ec.forEach(l),h=0;h<co.length;h++)g=co[h],g.blockedOn===a&&(g.blockedOn=null);for(;0<co.length&&(h=co[0],h.blockedOn===null);)mj(h),h.blockedOn===null&&co.shift()}var ts=C.ReactCurrentBatchConfig,xf=!0;function V4(a,l,h,g){var j=lt,T=ts.transition;ts.transition=null;try{lt=1,Tm(a,l,h,g)}finally{lt=j,ts.transition=T}}function G4(a,l,h,g){var j=lt,T=ts.transition;ts.transition=null;try{lt=4,Tm(a,l,h,g)}finally{lt=j,ts.transition=T}}function Tm(a,l,h,g){if(xf){var j=Nm(a,l,h,g);if(j===null)Km(a,l,g,bf,h),pj(a,g);else if(W4(j,a,l,h,g))g.stopPropagation();else if(pj(a,g),l&4&&-1<U4.indexOf(a)){for(;j!==null;){var T=mc(j);if(T!==null&&uj(T),T=Nm(a,l,h,g),T===null&&Km(a,l,g,bf,h),T===j)break;j=T}j!==null&&g.stopPropagation()}else Km(a,l,g,null,h)}}var bf=null;function Nm(a,l,h,g){if(bf=null,a=xm(g),a=oa(a),a!==null)if(l=ia(a),l===null)a=null;else if(h=l.tag,h===13){if(a=ej(l),a!==null)return a;a=null}else if(h===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null);return bf=a,null}function gj(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(M4()){case jm:return 1;case aj:return 4;case df:case I4:return 16;case sj:return 536870912;default:return 16}default:return 16}}var uo=null,km=null,wf=null;function yj(){if(wf)return wf;var a,l=km,h=l.length,g,j="value"in uo?uo.value:uo.textContent,T=j.length;for(a=0;a<h&&l[a]===j[a];a++);var k=h-a;for(g=1;g<=k&&l[h-g]===j[T-g];g++);return wf=j.slice(a,1<g?1-g:void 0)}function Sf(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function _f(){return!0}function xj(){return!1}function Ur(a){function l(h,g,j,T,k){this._reactName=h,this._targetInst=j,this.type=g,this.nativeEvent=T,this.target=k,this.currentTarget=null;for(var z in a)a.hasOwnProperty(z)&&(h=a[z],this[z]=h?h(T):T[z]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?_f:xj,this.isPropagationStopped=xj,this}return V(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=_f)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=_f)},persist:function(){},isPersistent:_f}),l}var rs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rm=Ur(rs),ic=V({},rs,{view:0,detail:0}),K4=Ur(ic),Mm,Im,oc,jf=V({},ic,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dm,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==oc&&(oc&&a.type==="mousemove"?(Mm=a.screenX-oc.screenX,Im=a.screenY-oc.screenY):Im=Mm=0,oc=a),Mm)},movementY:function(a){return"movementY"in a?a.movementY:Im}}),bj=Ur(jf),X4=V({},jf,{dataTransfer:0}),Y4=Ur(X4),Q4=V({},ic,{relatedTarget:0}),$m=Ur(Q4),Z4=V({},rs,{animationName:0,elapsedTime:0,pseudoElement:0}),J4=Ur(Z4),eF=V({},rs,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),tF=Ur(eF),rF=V({},rs,{data:0}),wj=Ur(rF),nF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iF={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},oF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function aF(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=oF[a])?!!l[a]:!1}function Dm(){return aF}var sF=V({},ic,{key:function(a){if(a.key){var l=nF[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=Sf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?iF[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dm,charCode:function(a){return a.type==="keypress"?Sf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Sf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),lF=Ur(sF),cF=V({},jf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sj=Ur(cF),uF=V({},ic,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dm}),fF=Ur(uF),dF=V({},rs,{propertyName:0,elapsedTime:0,pseudoElement:0}),hF=Ur(dF),pF=V({},jf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),mF=Ur(pF),vF=[9,13,27,32],Lm=c&&"CompositionEvent"in window,ac=null;c&&"documentMode"in document&&(ac=document.documentMode);var gF=c&&"TextEvent"in window&&!ac,_j=c&&(!Lm||ac&&8<ac&&11>=ac),jj=" ",Pj=!1;function Oj(a,l){switch(a){case"keyup":return vF.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cj(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ns=!1;function yF(a,l){switch(a){case"compositionend":return Cj(l);case"keypress":return l.which!==32?null:(Pj=!0,jj);case"textInput":return a=l.data,a===jj&&Pj?null:a;default:return null}}function xF(a,l){if(ns)return a==="compositionend"||!Lm&&Oj(a,l)?(a=yj(),wf=km=uo=null,ns=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return _j&&l.locale!=="ko"?null:l.data;default:return null}}var bF={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Aj(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!bF[a.type]:l==="textarea"}function Ej(a,l,h,g){X_(g),l=Ef(l,"onChange"),0<l.length&&(h=new Rm("onChange","change",null,h,g),a.push({event:h,listeners:l}))}var sc=null,lc=null;function wF(a){Gj(a,0)}function Pf(a){var l=ls(a);if(Z(l))return a}function SF(a,l){if(a==="change")return l}var Tj=!1;if(c){var Fm;if(c){var Bm="oninput"in document;if(!Bm){var Nj=document.createElement("div");Nj.setAttribute("oninput","return;"),Bm=typeof Nj.oninput=="function"}Fm=Bm}else Fm=!1;Tj=Fm&&(!document.documentMode||9<document.documentMode)}function kj(){sc&&(sc.detachEvent("onpropertychange",Rj),lc=sc=null)}function Rj(a){if(a.propertyName==="value"&&Pf(lc)){var l=[];Ej(l,lc,a,xm(a)),J_(wF,l)}}function _F(a,l,h){a==="focusin"?(kj(),sc=l,lc=h,sc.attachEvent("onpropertychange",Rj)):a==="focusout"&&kj()}function jF(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Pf(lc)}function PF(a,l){if(a==="click")return Pf(l)}function OF(a,l){if(a==="input"||a==="change")return Pf(l)}function CF(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var An=typeof Object.is=="function"?Object.is:CF;function cc(a,l){if(An(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var h=Object.keys(a),g=Object.keys(l);if(h.length!==g.length)return!1;for(g=0;g<h.length;g++){var j=h[g];if(!f.call(l,j)||!An(a[j],l[j]))return!1}return!0}function Mj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ij(a,l){var h=Mj(a);a=0;for(var g;h;){if(h.nodeType===3){if(g=a+h.textContent.length,a<=l&&g>=l)return{node:h,offset:l-a};a=g}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Mj(h)}}function $j(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?$j(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function Dj(){for(var a=window,l=ve();l instanceof a.HTMLIFrameElement;){try{var h=typeof l.contentWindow.location.href=="string"}catch{h=!1}if(h)a=l.contentWindow;else break;l=ve(a.document)}return l}function zm(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}function AF(a){var l=Dj(),h=a.focusedElem,g=a.selectionRange;if(l!==h&&h&&h.ownerDocument&&$j(h.ownerDocument.documentElement,h)){if(g!==null&&zm(h)){if(l=g.start,a=g.end,a===void 0&&(a=l),"selectionStart"in h)h.selectionStart=l,h.selectionEnd=Math.min(a,h.value.length);else if(a=(l=h.ownerDocument||document)&&l.defaultView||window,a.getSelection){a=a.getSelection();var j=h.textContent.length,T=Math.min(g.start,j);g=g.end===void 0?T:Math.min(g.end,j),!a.extend&&T>g&&(j=g,g=T,T=j),j=Ij(h,T);var k=Ij(h,g);j&&k&&(a.rangeCount!==1||a.anchorNode!==j.node||a.anchorOffset!==j.offset||a.focusNode!==k.node||a.focusOffset!==k.offset)&&(l=l.createRange(),l.setStart(j.node,j.offset),a.removeAllRanges(),T>g?(a.addRange(l),a.extend(k.node,k.offset)):(l.setEnd(k.node,k.offset),a.addRange(l)))}}for(l=[],a=h;a=a.parentNode;)a.nodeType===1&&l.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<l.length;h++)a=l[h],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var EF=c&&"documentMode"in document&&11>=document.documentMode,is=null,qm=null,uc=null,Um=!1;function Lj(a,l,h){var g=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Um||is==null||is!==ve(g)||(g=is,"selectionStart"in g&&zm(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),uc&&cc(uc,g)||(uc=g,g=Ef(qm,"onSelect"),0<g.length&&(l=new Rm("onSelect","select",null,l,h),a.push({event:l,listeners:g}),l.target=is)))}function Of(a,l){var h={};return h[a.toLowerCase()]=l.toLowerCase(),h["Webkit"+a]="webkit"+l,h["Moz"+a]="moz"+l,h}var os={animationend:Of("Animation","AnimationEnd"),animationiteration:Of("Animation","AnimationIteration"),animationstart:Of("Animation","AnimationStart"),transitionend:Of("Transition","TransitionEnd")},Wm={},Fj={};c&&(Fj=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function Cf(a){if(Wm[a])return Wm[a];if(!os[a])return a;var l=os[a],h;for(h in l)if(l.hasOwnProperty(h)&&h in Fj)return Wm[a]=l[h];return a}var Bj=Cf("animationend"),zj=Cf("animationiteration"),qj=Cf("animationstart"),Uj=Cf("transitionend"),Wj=new Map,Hj="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function fo(a,l){Wj.set(a,l),o(l,[a])}for(var Hm=0;Hm<Hj.length;Hm++){var Vm=Hj[Hm],TF=Vm.toLowerCase(),NF=Vm[0].toUpperCase()+Vm.slice(1);fo(TF,"on"+NF)}fo(Bj,"onAnimationEnd"),fo(zj,"onAnimationIteration"),fo(qj,"onAnimationStart"),fo("dblclick","onDoubleClick"),fo("focusin","onFocus"),fo("focusout","onBlur"),fo(Uj,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kF=new Set("cancel close invalid load scroll toggle".split(" ").concat(fc));function Vj(a,l,h){var g=a.type||"unknown-event";a.currentTarget=h,T4(g,l,void 0,a),a.currentTarget=null}function Gj(a,l){l=(l&4)!==0;for(var h=0;h<a.length;h++){var g=a[h],j=g.event;g=g.listeners;e:{var T=void 0;if(l)for(var k=g.length-1;0<=k;k--){var z=g[k],G=z.instance,te=z.currentTarget;if(z=z.listener,G!==T&&j.isPropagationStopped())break e;Vj(j,z,te),T=G}else for(k=0;k<g.length;k++){if(z=g[k],G=z.instance,te=z.currentTarget,z=z.listener,G!==T&&j.isPropagationStopped())break e;Vj(j,z,te),T=G}}}if(ff)throw a=_m,ff=!1,_m=null,a}function vt(a,l){var h=l[ev];h===void 0&&(h=l[ev]=new Set);var g=a+"__bubble";h.has(g)||(Kj(l,a,2,!1),h.add(g))}function Gm(a,l,h){var g=0;l&&(g|=4),Kj(h,a,g,l)}var Af="_reactListening"+Math.random().toString(36).slice(2);function dc(a){if(!a[Af]){a[Af]=!0,n.forEach(function(h){h!=="selectionchange"&&(kF.has(h)||Gm(h,!1,a),Gm(h,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[Af]||(l[Af]=!0,Gm("selectionchange",!1,l))}}function Kj(a,l,h,g){switch(gj(l)){case 1:var j=V4;break;case 4:j=G4;break;default:j=Tm}h=j.bind(null,l,h,a),j=void 0,!Sm||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(j=!0),g?j!==void 0?a.addEventListener(l,h,{capture:!0,passive:j}):a.addEventListener(l,h,!0):j!==void 0?a.addEventListener(l,h,{passive:j}):a.addEventListener(l,h,!1)}function Km(a,l,h,g,j){var T=g;if((l&1)===0&&(l&2)===0&&g!==null)e:for(;;){if(g===null)return;var k=g.tag;if(k===3||k===4){var z=g.stateNode.containerInfo;if(z===j||z.nodeType===8&&z.parentNode===j)break;if(k===4)for(k=g.return;k!==null;){var G=k.tag;if((G===3||G===4)&&(G=k.stateNode.containerInfo,G===j||G.nodeType===8&&G.parentNode===j))return;k=k.return}for(;z!==null;){if(k=oa(z),k===null)return;if(G=k.tag,G===5||G===6){g=T=k;continue e}z=z.parentNode}}g=g.return}J_(function(){var te=T,le=xm(h),ce=[];e:{var se=Wj.get(a);if(se!==void 0){var ye=Rm,_e=a;switch(a){case"keypress":if(Sf(h)===0)break e;case"keydown":case"keyup":ye=lF;break;case"focusin":_e="focus",ye=$m;break;case"focusout":_e="blur",ye=$m;break;case"beforeblur":case"afterblur":ye=$m;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ye=bj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ye=Y4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ye=fF;break;case Bj:case zj:case qj:ye=J4;break;case Uj:ye=hF;break;case"scroll":ye=K4;break;case"wheel":ye=mF;break;case"copy":case"cut":case"paste":ye=tF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ye=Sj}var je=(l&4)!==0,Rt=!je&&a==="scroll",J=je?se!==null?se+"Capture":null:se;je=[];for(var Q=te,ee;Q!==null;){ee=Q;var ue=ee.stateNode;if(ee.tag===5&&ue!==null&&(ee=ue,J!==null&&(ue=Kl(Q,J),ue!=null&&je.push(hc(Q,ue,ee)))),Rt)break;Q=Q.return}0<je.length&&(se=new ye(se,_e,null,h,le),ce.push({event:se,listeners:je}))}}if((l&7)===0){e:{if(se=a==="mouseover"||a==="pointerover",ye=a==="mouseout"||a==="pointerout",se&&h!==ym&&(_e=h.relatedTarget||h.fromElement)&&(oa(_e)||_e[vi]))break e;if((ye||se)&&(se=le.window===le?le:(se=le.ownerDocument)?se.defaultView||se.parentWindow:window,ye?(_e=h.relatedTarget||h.toElement,ye=te,_e=_e?oa(_e):null,_e!==null&&(Rt=ia(_e),_e!==Rt||_e.tag!==5&&_e.tag!==6)&&(_e=null)):(ye=null,_e=te),ye!==_e)){if(je=bj,ue="onMouseLeave",J="onMouseEnter",Q="mouse",(a==="pointerout"||a==="pointerover")&&(je=Sj,ue="onPointerLeave",J="onPointerEnter",Q="pointer"),Rt=ye==null?se:ls(ye),ee=_e==null?se:ls(_e),se=new je(ue,Q+"leave",ye,h,le),se.target=Rt,se.relatedTarget=ee,ue=null,oa(le)===te&&(je=new je(J,Q+"enter",_e,h,le),je.target=ee,je.relatedTarget=Rt,ue=je),Rt=ue,ye&&_e)t:{for(je=ye,J=_e,Q=0,ee=je;ee;ee=as(ee))Q++;for(ee=0,ue=J;ue;ue=as(ue))ee++;for(;0<Q-ee;)je=as(je),Q--;for(;0<ee-Q;)J=as(J),ee--;for(;Q--;){if(je===J||J!==null&&je===J.alternate)break t;je=as(je),J=as(J)}je=null}else je=null;ye!==null&&Xj(ce,se,ye,je,!1),_e!==null&&Rt!==null&&Xj(ce,Rt,_e,je,!0)}}e:{if(se=te?ls(te):window,ye=se.nodeName&&se.nodeName.toLowerCase(),ye==="select"||ye==="input"&&se.type==="file")var Oe=SF;else if(Aj(se))if(Tj)Oe=OF;else{Oe=jF;var Me=_F}else(ye=se.nodeName)&&ye.toLowerCase()==="input"&&(se.type==="checkbox"||se.type==="radio")&&(Oe=PF);if(Oe&&(Oe=Oe(a,te))){Ej(ce,Oe,h,le);break e}Me&&Me(a,se,te),a==="focusout"&&(Me=se._wrapperState)&&Me.controlled&&se.type==="number"&&nn(se,"number",se.value)}switch(Me=te?ls(te):window,a){case"focusin":(Aj(Me)||Me.contentEditable==="true")&&(is=Me,qm=te,uc=null);break;case"focusout":uc=qm=is=null;break;case"mousedown":Um=!0;break;case"contextmenu":case"mouseup":case"dragend":Um=!1,Lj(ce,h,le);break;case"selectionchange":if(EF)break;case"keydown":case"keyup":Lj(ce,h,le)}var Ie;if(Lm)e:{switch(a){case"compositionstart":var Fe="onCompositionStart";break e;case"compositionend":Fe="onCompositionEnd";break e;case"compositionupdate":Fe="onCompositionUpdate";break e}Fe=void 0}else ns?Oj(a,h)&&(Fe="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(Fe="onCompositionStart");Fe&&(_j&&h.locale!=="ko"&&(ns||Fe!=="onCompositionStart"?Fe==="onCompositionEnd"&&ns&&(Ie=yj()):(uo=le,km="value"in uo?uo.value:uo.textContent,ns=!0)),Me=Ef(te,Fe),0<Me.length&&(Fe=new wj(Fe,a,null,h,le),ce.push({event:Fe,listeners:Me}),Ie?Fe.data=Ie:(Ie=Cj(h),Ie!==null&&(Fe.data=Ie)))),(Ie=gF?yF(a,h):xF(a,h))&&(te=Ef(te,"onBeforeInput"),0<te.length&&(le=new wj("onBeforeInput","beforeinput",null,h,le),ce.push({event:le,listeners:te}),le.data=Ie))}Gj(ce,l)})}function hc(a,l,h){return{instance:a,listener:l,currentTarget:h}}function Ef(a,l){for(var h=l+"Capture",g=[];a!==null;){var j=a,T=j.stateNode;j.tag===5&&T!==null&&(j=T,T=Kl(a,h),T!=null&&g.unshift(hc(a,T,j)),T=Kl(a,l),T!=null&&g.push(hc(a,T,j))),a=a.return}return g}function as(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function Xj(a,l,h,g,j){for(var T=l._reactName,k=[];h!==null&&h!==g;){var z=h,G=z.alternate,te=z.stateNode;if(G!==null&&G===g)break;z.tag===5&&te!==null&&(z=te,j?(G=Kl(h,T),G!=null&&k.unshift(hc(h,G,z))):j||(G=Kl(h,T),G!=null&&k.push(hc(h,G,z)))),h=h.return}k.length!==0&&a.push({event:l,listeners:k})}var RF=/\r\n?/g,MF=/\u0000|\uFFFD/g;function Yj(a){return(typeof a=="string"?a:""+a).replace(RF,`
|
|
38
|
+
`).replace(MF,"")}function Tf(a,l,h){if(l=Yj(l),Yj(a)!==l&&h)throw Error(r(425))}function Nf(){}var Xm=null,Ym=null;function Qm(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Zm=typeof setTimeout=="function"?setTimeout:void 0,IF=typeof clearTimeout=="function"?clearTimeout:void 0,Qj=typeof Promise=="function"?Promise:void 0,$F=typeof queueMicrotask=="function"?queueMicrotask:typeof Qj<"u"?function(a){return Qj.resolve(null).then(a).catch(DF)}:Zm;function DF(a){setTimeout(function(){throw a})}function Jm(a,l){var h=l,g=0;do{var j=h.nextSibling;if(a.removeChild(h),j&&j.nodeType===8)if(h=j.data,h==="/$"){if(g===0){a.removeChild(j),nc(l);return}g--}else h!=="$"&&h!=="$?"&&h!=="$!"||g++;h=j}while(h);nc(l)}function ho(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?")break;if(l==="/$")return null}}return a}function Zj(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var h=a.data;if(h==="$"||h==="$!"||h==="$?"){if(l===0)return a;l--}else h==="/$"&&l++}a=a.previousSibling}return null}var ss=Math.random().toString(36).slice(2),Wn="__reactFiber$"+ss,pc="__reactProps$"+ss,vi="__reactContainer$"+ss,ev="__reactEvents$"+ss,LF="__reactListeners$"+ss,FF="__reactHandles$"+ss;function oa(a){var l=a[Wn];if(l)return l;for(var h=a.parentNode;h;){if(l=h[vi]||h[Wn]){if(h=l.alternate,l.child!==null||h!==null&&h.child!==null)for(a=Zj(a);a!==null;){if(h=a[Wn])return h;a=Zj(a)}return l}a=h,h=a.parentNode}return null}function mc(a){return a=a[Wn]||a[vi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function ls(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(r(33))}function kf(a){return a[pc]||null}var tv=[],cs=-1;function po(a){return{current:a}}function gt(a){0>cs||(a.current=tv[cs],tv[cs]=null,cs--)}function dt(a,l){cs++,tv[cs]=a.current,a.current=l}var mo={},yr=po(mo),Mr=po(!1),aa=mo;function us(a,l){var h=a.type.contextTypes;if(!h)return mo;var g=a.stateNode;if(g&&g.__reactInternalMemoizedUnmaskedChildContext===l)return g.__reactInternalMemoizedMaskedChildContext;var j={},T;for(T in h)j[T]=l[T];return g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=l,a.__reactInternalMemoizedMaskedChildContext=j),j}function Ir(a){return a=a.childContextTypes,a!=null}function Rf(){gt(Mr),gt(yr)}function Jj(a,l,h){if(yr.current!==mo)throw Error(r(168));dt(yr,l),dt(Mr,h)}function eP(a,l,h){var g=a.stateNode;if(l=l.childContextTypes,typeof g.getChildContext!="function")return h;g=g.getChildContext();for(var j in g)if(!(j in l))throw Error(r(108,ke(a)||"Unknown",j));return V({},h,g)}function Mf(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||mo,aa=yr.current,dt(yr,a),dt(Mr,Mr.current),!0}function tP(a,l,h){var g=a.stateNode;if(!g)throw Error(r(169));h?(a=eP(a,l,aa),g.__reactInternalMemoizedMergedChildContext=a,gt(Mr),gt(yr),dt(yr,a)):gt(Mr),dt(Mr,h)}var gi=null,If=!1,rv=!1;function rP(a){gi===null?gi=[a]:gi.push(a)}function BF(a){If=!0,rP(a)}function vo(){if(!rv&&gi!==null){rv=!0;var a=0,l=lt;try{var h=gi;for(lt=1;a<h.length;a++){var g=h[a];do g=g(!0);while(g!==null)}gi=null,If=!1}catch(j){throw gi!==null&&(gi=gi.slice(a+1)),ij(jm,vo),j}finally{lt=l,rv=!1}}return null}var fs=[],ds=0,$f=null,Df=0,an=[],sn=0,sa=null,yi=1,xi="";function la(a,l){fs[ds++]=Df,fs[ds++]=$f,$f=a,Df=l}function nP(a,l,h){an[sn++]=yi,an[sn++]=xi,an[sn++]=sa,sa=a;var g=yi;a=xi;var j=32-Cn(g)-1;g&=~(1<<j),h+=1;var T=32-Cn(l)+j;if(30<T){var k=j-j%5;T=(g&(1<<k)-1).toString(32),g>>=k,j-=k,yi=1<<32-Cn(l)+j|h<<j|g,xi=T+a}else yi=1<<T|h<<j|g,xi=a}function nv(a){a.return!==null&&(la(a,1),nP(a,1,0))}function iv(a){for(;a===$f;)$f=fs[--ds],fs[ds]=null,Df=fs[--ds],fs[ds]=null;for(;a===sa;)sa=an[--sn],an[sn]=null,xi=an[--sn],an[sn]=null,yi=an[--sn],an[sn]=null}var Wr=null,Hr=null,St=!1,En=null;function iP(a,l){var h=fn(5,null,null,0);h.elementType="DELETED",h.stateNode=l,h.return=a,l=a.deletions,l===null?(a.deletions=[h],a.flags|=16):l.push(h)}function oP(a,l){switch(a.tag){case 5:var h=a.type;return l=l.nodeType!==1||h.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(a.stateNode=l,Wr=a,Hr=ho(l.firstChild),!0):!1;case 6:return l=a.pendingProps===""||l.nodeType!==3?null:l,l!==null?(a.stateNode=l,Wr=a,Hr=null,!0):!1;case 13:return l=l.nodeType!==8?null:l,l!==null?(h=sa!==null?{id:yi,overflow:xi}:null,a.memoizedState={dehydrated:l,treeContext:h,retryLane:1073741824},h=fn(18,null,null,0),h.stateNode=l,h.return=a,a.child=h,Wr=a,Hr=null,!0):!1;default:return!1}}function ov(a){return(a.mode&1)!==0&&(a.flags&128)===0}function av(a){if(St){var l=Hr;if(l){var h=l;if(!oP(a,l)){if(ov(a))throw Error(r(418));l=ho(h.nextSibling);var g=Wr;l&&oP(a,l)?iP(g,h):(a.flags=a.flags&-4097|2,St=!1,Wr=a)}}else{if(ov(a))throw Error(r(418));a.flags=a.flags&-4097|2,St=!1,Wr=a}}}function aP(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;Wr=a}function Lf(a){if(a!==Wr)return!1;if(!St)return aP(a),St=!0,!1;var l;if((l=a.tag!==3)&&!(l=a.tag!==5)&&(l=a.type,l=l!=="head"&&l!=="body"&&!Qm(a.type,a.memoizedProps)),l&&(l=Hr)){if(ov(a))throw sP(),Error(r(418));for(;l;)iP(a,l),l=ho(l.nextSibling)}if(aP(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,l=0;a;){if(a.nodeType===8){var h=a.data;if(h==="/$"){if(l===0){Hr=ho(a.nextSibling);break e}l--}else h!=="$"&&h!=="$!"&&h!=="$?"||l++}a=a.nextSibling}Hr=null}}else Hr=Wr?ho(a.stateNode.nextSibling):null;return!0}function sP(){for(var a=Hr;a;)a=ho(a.nextSibling)}function hs(){Hr=Wr=null,St=!1}function sv(a){En===null?En=[a]:En.push(a)}var zF=C.ReactCurrentBatchConfig;function vc(a,l,h){if(a=h.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(h._owner){if(h=h._owner,h){if(h.tag!==1)throw Error(r(309));var g=h.stateNode}if(!g)throw Error(r(147,a));var j=g,T=""+a;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===T?l.ref:(l=function(k){var z=j.refs;k===null?delete z[T]:z[T]=k},l._stringRef=T,l)}if(typeof a!="string")throw Error(r(284));if(!h._owner)throw Error(r(290,a))}return a}function Ff(a,l){throw a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a))}function lP(a){var l=a._init;return l(a._payload)}function cP(a){function l(J,Q){if(a){var ee=J.deletions;ee===null?(J.deletions=[Q],J.flags|=16):ee.push(Q)}}function h(J,Q){if(!a)return null;for(;Q!==null;)l(J,Q),Q=Q.sibling;return null}function g(J,Q){for(J=new Map;Q!==null;)Q.key!==null?J.set(Q.key,Q):J.set(Q.index,Q),Q=Q.sibling;return J}function j(J,Q){return J=jo(J,Q),J.index=0,J.sibling=null,J}function T(J,Q,ee){return J.index=ee,a?(ee=J.alternate,ee!==null?(ee=ee.index,ee<Q?(J.flags|=2,Q):ee):(J.flags|=2,Q)):(J.flags|=1048576,Q)}function k(J){return a&&J.alternate===null&&(J.flags|=2),J}function z(J,Q,ee,ue){return Q===null||Q.tag!==6?(Q=Zv(ee,J.mode,ue),Q.return=J,Q):(Q=j(Q,ee),Q.return=J,Q)}function G(J,Q,ee,ue){var Oe=ee.type;return Oe===N?le(J,Q,ee.props.children,ue,ee.key):Q!==null&&(Q.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===B&&lP(Oe)===Q.type)?(ue=j(Q,ee.props),ue.ref=vc(J,Q,ee),ue.return=J,ue):(ue=cd(ee.type,ee.key,ee.props,null,J.mode,ue),ue.ref=vc(J,Q,ee),ue.return=J,ue)}function te(J,Q,ee,ue){return Q===null||Q.tag!==4||Q.stateNode.containerInfo!==ee.containerInfo||Q.stateNode.implementation!==ee.implementation?(Q=Jv(ee,J.mode,ue),Q.return=J,Q):(Q=j(Q,ee.children||[]),Q.return=J,Q)}function le(J,Q,ee,ue,Oe){return Q===null||Q.tag!==7?(Q=va(ee,J.mode,ue,Oe),Q.return=J,Q):(Q=j(Q,ee),Q.return=J,Q)}function ce(J,Q,ee){if(typeof Q=="string"&&Q!==""||typeof Q=="number")return Q=Zv(""+Q,J.mode,ee),Q.return=J,Q;if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case _:return ee=cd(Q.type,Q.key,Q.props,null,J.mode,ee),ee.ref=vc(J,null,Q),ee.return=J,ee;case E:return Q=Jv(Q,J.mode,ee),Q.return=J,Q;case B:var ue=Q._init;return ce(J,ue(Q._payload),ee)}if(on(Q)||q(Q))return Q=va(Q,J.mode,ee,null),Q.return=J,Q;Ff(J,Q)}return null}function se(J,Q,ee,ue){var Oe=Q!==null?Q.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number")return Oe!==null?null:z(J,Q,""+ee,ue);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case _:return ee.key===Oe?G(J,Q,ee,ue):null;case E:return ee.key===Oe?te(J,Q,ee,ue):null;case B:return Oe=ee._init,se(J,Q,Oe(ee._payload),ue)}if(on(ee)||q(ee))return Oe!==null?null:le(J,Q,ee,ue,null);Ff(J,ee)}return null}function ye(J,Q,ee,ue,Oe){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return J=J.get(ee)||null,z(Q,J,""+ue,Oe);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case _:return J=J.get(ue.key===null?ee:ue.key)||null,G(Q,J,ue,Oe);case E:return J=J.get(ue.key===null?ee:ue.key)||null,te(Q,J,ue,Oe);case B:var Me=ue._init;return ye(J,Q,ee,Me(ue._payload),Oe)}if(on(ue)||q(ue))return J=J.get(ee)||null,le(Q,J,ue,Oe,null);Ff(Q,ue)}return null}function _e(J,Q,ee,ue){for(var Oe=null,Me=null,Ie=Q,Fe=Q=0,rr=null;Ie!==null&&Fe<ee.length;Fe++){Ie.index>Fe?(rr=Ie,Ie=null):rr=Ie.sibling;var nt=se(J,Ie,ee[Fe],ue);if(nt===null){Ie===null&&(Ie=rr);break}a&&Ie&&nt.alternate===null&&l(J,Ie),Q=T(nt,Q,Fe),Me===null?Oe=nt:Me.sibling=nt,Me=nt,Ie=rr}if(Fe===ee.length)return h(J,Ie),St&&la(J,Fe),Oe;if(Ie===null){for(;Fe<ee.length;Fe++)Ie=ce(J,ee[Fe],ue),Ie!==null&&(Q=T(Ie,Q,Fe),Me===null?Oe=Ie:Me.sibling=Ie,Me=Ie);return St&&la(J,Fe),Oe}for(Ie=g(J,Ie);Fe<ee.length;Fe++)rr=ye(Ie,J,Fe,ee[Fe],ue),rr!==null&&(a&&rr.alternate!==null&&Ie.delete(rr.key===null?Fe:rr.key),Q=T(rr,Q,Fe),Me===null?Oe=rr:Me.sibling=rr,Me=rr);return a&&Ie.forEach(function(Po){return l(J,Po)}),St&&la(J,Fe),Oe}function je(J,Q,ee,ue){var Oe=q(ee);if(typeof Oe!="function")throw Error(r(150));if(ee=Oe.call(ee),ee==null)throw Error(r(151));for(var Me=Oe=null,Ie=Q,Fe=Q=0,rr=null,nt=ee.next();Ie!==null&&!nt.done;Fe++,nt=ee.next()){Ie.index>Fe?(rr=Ie,Ie=null):rr=Ie.sibling;var Po=se(J,Ie,nt.value,ue);if(Po===null){Ie===null&&(Ie=rr);break}a&&Ie&&Po.alternate===null&&l(J,Ie),Q=T(Po,Q,Fe),Me===null?Oe=Po:Me.sibling=Po,Me=Po,Ie=rr}if(nt.done)return h(J,Ie),St&&la(J,Fe),Oe;if(Ie===null){for(;!nt.done;Fe++,nt=ee.next())nt=ce(J,nt.value,ue),nt!==null&&(Q=T(nt,Q,Fe),Me===null?Oe=nt:Me.sibling=nt,Me=nt);return St&&la(J,Fe),Oe}for(Ie=g(J,Ie);!nt.done;Fe++,nt=ee.next())nt=ye(Ie,J,Fe,nt.value,ue),nt!==null&&(a&&nt.alternate!==null&&Ie.delete(nt.key===null?Fe:nt.key),Q=T(nt,Q,Fe),Me===null?Oe=nt:Me.sibling=nt,Me=nt);return a&&Ie.forEach(function(b5){return l(J,b5)}),St&&la(J,Fe),Oe}function Rt(J,Q,ee,ue){if(typeof ee=="object"&&ee!==null&&ee.type===N&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case _:e:{for(var Oe=ee.key,Me=Q;Me!==null;){if(Me.key===Oe){if(Oe=ee.type,Oe===N){if(Me.tag===7){h(J,Me.sibling),Q=j(Me,ee.props.children),Q.return=J,J=Q;break e}}else if(Me.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===B&&lP(Oe)===Me.type){h(J,Me.sibling),Q=j(Me,ee.props),Q.ref=vc(J,Me,ee),Q.return=J,J=Q;break e}h(J,Me);break}else l(J,Me);Me=Me.sibling}ee.type===N?(Q=va(ee.props.children,J.mode,ue,ee.key),Q.return=J,J=Q):(ue=cd(ee.type,ee.key,ee.props,null,J.mode,ue),ue.ref=vc(J,Q,ee),ue.return=J,J=ue)}return k(J);case E:e:{for(Me=ee.key;Q!==null;){if(Q.key===Me)if(Q.tag===4&&Q.stateNode.containerInfo===ee.containerInfo&&Q.stateNode.implementation===ee.implementation){h(J,Q.sibling),Q=j(Q,ee.children||[]),Q.return=J,J=Q;break e}else{h(J,Q);break}else l(J,Q);Q=Q.sibling}Q=Jv(ee,J.mode,ue),Q.return=J,J=Q}return k(J);case B:return Me=ee._init,Rt(J,Q,Me(ee._payload),ue)}if(on(ee))return _e(J,Q,ee,ue);if(q(ee))return je(J,Q,ee,ue);Ff(J,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"?(ee=""+ee,Q!==null&&Q.tag===6?(h(J,Q.sibling),Q=j(Q,ee),Q.return=J,J=Q):(h(J,Q),Q=Zv(ee,J.mode,ue),Q.return=J,J=Q),k(J)):h(J,Q)}return Rt}var ps=cP(!0),uP=cP(!1),Bf=po(null),zf=null,ms=null,lv=null;function cv(){lv=ms=zf=null}function uv(a){var l=Bf.current;gt(Bf),a._currentValue=l}function fv(a,l,h){for(;a!==null;){var g=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,g!==null&&(g.childLanes|=l)):g!==null&&(g.childLanes&l)!==l&&(g.childLanes|=l),a===h)break;a=a.return}}function vs(a,l){zf=a,lv=ms=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&l)!==0&&($r=!0),a.firstContext=null)}function ln(a){var l=a._currentValue;if(lv!==a)if(a={context:a,memoizedValue:l,next:null},ms===null){if(zf===null)throw Error(r(308));ms=a,zf.dependencies={lanes:0,firstContext:a}}else ms=ms.next=a;return l}var ca=null;function dv(a){ca===null?ca=[a]:ca.push(a)}function fP(a,l,h,g){var j=l.interleaved;return j===null?(h.next=h,dv(l)):(h.next=j.next,j.next=h),l.interleaved=h,bi(a,g)}function bi(a,l){a.lanes|=l;var h=a.alternate;for(h!==null&&(h.lanes|=l),h=a,a=a.return;a!==null;)a.childLanes|=l,h=a.alternate,h!==null&&(h.childLanes|=l),h=a,a=a.return;return h.tag===3?h.stateNode:null}var go=!1;function hv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dP(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function wi(a,l){return{eventTime:a,lane:l,tag:0,payload:null,callback:null,next:null}}function yo(a,l,h){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,(rt&2)!==0){var j=g.pending;return j===null?l.next=l:(l.next=j.next,j.next=l),g.pending=l,bi(a,h)}return j=g.interleaved,j===null?(l.next=l,dv(g)):(l.next=j.next,j.next=l),g.interleaved=l,bi(a,h)}function qf(a,l,h){if(l=l.updateQueue,l!==null&&(l=l.shared,(h&4194240)!==0)){var g=l.lanes;g&=a.pendingLanes,h|=g,l.lanes=h,Cm(a,h)}}function hP(a,l){var h=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,h===g)){var j=null,T=null;if(h=h.firstBaseUpdate,h!==null){do{var k={eventTime:h.eventTime,lane:h.lane,tag:h.tag,payload:h.payload,callback:h.callback,next:null};T===null?j=T=k:T=T.next=k,h=h.next}while(h!==null);T===null?j=T=l:T=T.next=l}else j=T=l;h={baseState:g.baseState,firstBaseUpdate:j,lastBaseUpdate:T,shared:g.shared,effects:g.effects},a.updateQueue=h;return}a=h.lastBaseUpdate,a===null?h.firstBaseUpdate=l:a.next=l,h.lastBaseUpdate=l}function Uf(a,l,h,g){var j=a.updateQueue;go=!1;var T=j.firstBaseUpdate,k=j.lastBaseUpdate,z=j.shared.pending;if(z!==null){j.shared.pending=null;var G=z,te=G.next;G.next=null,k===null?T=te:k.next=te,k=G;var le=a.alternate;le!==null&&(le=le.updateQueue,z=le.lastBaseUpdate,z!==k&&(z===null?le.firstBaseUpdate=te:z.next=te,le.lastBaseUpdate=G))}if(T!==null){var ce=j.baseState;k=0,le=te=G=null,z=T;do{var se=z.lane,ye=z.eventTime;if((g&se)===se){le!==null&&(le=le.next={eventTime:ye,lane:0,tag:z.tag,payload:z.payload,callback:z.callback,next:null});e:{var _e=a,je=z;switch(se=l,ye=h,je.tag){case 1:if(_e=je.payload,typeof _e=="function"){ce=_e.call(ye,ce,se);break e}ce=_e;break e;case 3:_e.flags=_e.flags&-65537|128;case 0:if(_e=je.payload,se=typeof _e=="function"?_e.call(ye,ce,se):_e,se==null)break e;ce=V({},ce,se);break e;case 2:go=!0}}z.callback!==null&&z.lane!==0&&(a.flags|=64,se=j.effects,se===null?j.effects=[z]:se.push(z))}else ye={eventTime:ye,lane:se,tag:z.tag,payload:z.payload,callback:z.callback,next:null},le===null?(te=le=ye,G=ce):le=le.next=ye,k|=se;if(z=z.next,z===null){if(z=j.shared.pending,z===null)break;se=z,z=se.next,se.next=null,j.lastBaseUpdate=se,j.shared.pending=null}}while(!0);if(le===null&&(G=ce),j.baseState=G,j.firstBaseUpdate=te,j.lastBaseUpdate=le,l=j.shared.interleaved,l!==null){j=l;do k|=j.lane,j=j.next;while(j!==l)}else T===null&&(j.shared.lanes=0);da|=k,a.lanes=k,a.memoizedState=ce}}function pP(a,l,h){if(a=l.effects,l.effects=null,a!==null)for(l=0;l<a.length;l++){var g=a[l],j=g.callback;if(j!==null){if(g.callback=null,g=h,typeof j!="function")throw Error(r(191,j));j.call(g)}}}var gc={},Hn=po(gc),yc=po(gc),xc=po(gc);function ua(a){if(a===gc)throw Error(r(174));return a}function pv(a,l){switch(dt(xc,l),dt(yc,a),dt(Hn,gc),a=l.nodeType,a){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:mm(null,"");break;default:a=a===8?l.parentNode:l,l=a.namespaceURI||null,a=a.tagName,l=mm(l,a)}gt(Hn),dt(Hn,l)}function gs(){gt(Hn),gt(yc),gt(xc)}function mP(a){ua(xc.current);var l=ua(Hn.current),h=mm(l,a.type);l!==h&&(dt(yc,a),dt(Hn,h))}function mv(a){yc.current===a&&(gt(Hn),gt(yc))}var Pt=po(0);function Wf(a){for(var l=a;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||h.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var vv=[];function gv(){for(var a=0;a<vv.length;a++)vv[a]._workInProgressVersionPrimary=null;vv.length=0}var Hf=C.ReactCurrentDispatcher,yv=C.ReactCurrentBatchConfig,fa=0,Ot=null,Ut=null,er=null,Vf=!1,bc=!1,wc=0,qF=0;function xr(){throw Error(r(321))}function xv(a,l){if(l===null)return!1;for(var h=0;h<l.length&&h<a.length;h++)if(!An(a[h],l[h]))return!1;return!0}function bv(a,l,h,g,j,T){if(fa=T,Ot=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Hf.current=a===null||a.memoizedState===null?VF:GF,a=h(g,j),bc){T=0;do{if(bc=!1,wc=0,25<=T)throw Error(r(301));T+=1,er=Ut=null,l.updateQueue=null,Hf.current=KF,a=h(g,j)}while(bc)}if(Hf.current=Xf,l=Ut!==null&&Ut.next!==null,fa=0,er=Ut=Ot=null,Vf=!1,l)throw Error(r(300));return a}function wv(){var a=wc!==0;return wc=0,a}function Vn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return er===null?Ot.memoizedState=er=a:er=er.next=a,er}function cn(){if(Ut===null){var a=Ot.alternate;a=a!==null?a.memoizedState:null}else a=Ut.next;var l=er===null?Ot.memoizedState:er.next;if(l!==null)er=l,Ut=a;else{if(a===null)throw Error(r(310));Ut=a,a={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},er===null?Ot.memoizedState=er=a:er=er.next=a}return er}function Sc(a,l){return typeof l=="function"?l(a):l}function Sv(a){var l=cn(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var g=Ut,j=g.baseQueue,T=h.pending;if(T!==null){if(j!==null){var k=j.next;j.next=T.next,T.next=k}g.baseQueue=j=T,h.pending=null}if(j!==null){T=j.next,g=g.baseState;var z=k=null,G=null,te=T;do{var le=te.lane;if((fa&le)===le)G!==null&&(G=G.next={lane:0,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),g=te.hasEagerState?te.eagerState:a(g,te.action);else{var ce={lane:le,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null};G===null?(z=G=ce,k=g):G=G.next=ce,Ot.lanes|=le,da|=le}te=te.next}while(te!==null&&te!==T);G===null?k=g:G.next=z,An(g,l.memoizedState)||($r=!0),l.memoizedState=g,l.baseState=k,l.baseQueue=G,h.lastRenderedState=g}if(a=h.interleaved,a!==null){j=a;do T=j.lane,Ot.lanes|=T,da|=T,j=j.next;while(j!==a)}else j===null&&(h.lanes=0);return[l.memoizedState,h.dispatch]}function _v(a){var l=cn(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var g=h.dispatch,j=h.pending,T=l.memoizedState;if(j!==null){h.pending=null;var k=j=j.next;do T=a(T,k.action),k=k.next;while(k!==j);An(T,l.memoizedState)||($r=!0),l.memoizedState=T,l.baseQueue===null&&(l.baseState=T),h.lastRenderedState=T}return[T,g]}function vP(){}function gP(a,l){var h=Ot,g=cn(),j=l(),T=!An(g.memoizedState,j);if(T&&(g.memoizedState=j,$r=!0),g=g.queue,jv(bP.bind(null,h,g,a),[a]),g.getSnapshot!==l||T||er!==null&&er.memoizedState.tag&1){if(h.flags|=2048,_c(9,xP.bind(null,h,g,j,l),void 0,null),tr===null)throw Error(r(349));(fa&30)!==0||yP(h,l,j)}return j}function yP(a,l,h){a.flags|=16384,a={getSnapshot:l,value:h},l=Ot.updateQueue,l===null?(l={lastEffect:null,stores:null},Ot.updateQueue=l,l.stores=[a]):(h=l.stores,h===null?l.stores=[a]:h.push(a))}function xP(a,l,h,g){l.value=h,l.getSnapshot=g,wP(l)&&SP(a)}function bP(a,l,h){return h(function(){wP(l)&&SP(a)})}function wP(a){var l=a.getSnapshot;a=a.value;try{var h=l();return!An(a,h)}catch{return!0}}function SP(a){var l=bi(a,1);l!==null&&Rn(l,a,1,-1)}function _P(a){var l=Vn();return typeof a=="function"&&(a=a()),l.memoizedState=l.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Sc,lastRenderedState:a},l.queue=a,a=a.dispatch=HF.bind(null,Ot,a),[l.memoizedState,a]}function _c(a,l,h,g){return a={tag:a,create:l,destroy:h,deps:g,next:null},l=Ot.updateQueue,l===null?(l={lastEffect:null,stores:null},Ot.updateQueue=l,l.lastEffect=a.next=a):(h=l.lastEffect,h===null?l.lastEffect=a.next=a:(g=h.next,h.next=a,a.next=g,l.lastEffect=a)),a}function jP(){return cn().memoizedState}function Gf(a,l,h,g){var j=Vn();Ot.flags|=a,j.memoizedState=_c(1|l,h,void 0,g===void 0?null:g)}function Kf(a,l,h,g){var j=cn();g=g===void 0?null:g;var T=void 0;if(Ut!==null){var k=Ut.memoizedState;if(T=k.destroy,g!==null&&xv(g,k.deps)){j.memoizedState=_c(l,h,T,g);return}}Ot.flags|=a,j.memoizedState=_c(1|l,h,T,g)}function PP(a,l){return Gf(8390656,8,a,l)}function jv(a,l){return Kf(2048,8,a,l)}function OP(a,l){return Kf(4,2,a,l)}function CP(a,l){return Kf(4,4,a,l)}function AP(a,l){if(typeof l=="function")return a=a(),l(a),function(){l(null)};if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function EP(a,l,h){return h=h!=null?h.concat([a]):null,Kf(4,4,AP.bind(null,l,a),h)}function Pv(){}function TP(a,l){var h=cn();l=l===void 0?null:l;var g=h.memoizedState;return g!==null&&l!==null&&xv(l,g[1])?g[0]:(h.memoizedState=[a,l],a)}function NP(a,l){var h=cn();l=l===void 0?null:l;var g=h.memoizedState;return g!==null&&l!==null&&xv(l,g[1])?g[0]:(a=a(),h.memoizedState=[a,l],a)}function kP(a,l,h){return(fa&21)===0?(a.baseState&&(a.baseState=!1,$r=!0),a.memoizedState=h):(An(h,l)||(h=lj(),Ot.lanes|=h,da|=h,a.baseState=!0),l)}function UF(a,l){var h=lt;lt=h!==0&&4>h?h:4,a(!0);var g=yv.transition;yv.transition={};try{a(!1),l()}finally{lt=h,yv.transition=g}}function RP(){return cn().memoizedState}function WF(a,l,h){var g=So(a);if(h={lane:g,action:h,hasEagerState:!1,eagerState:null,next:null},MP(a))IP(l,h);else if(h=fP(a,l,h,g),h!==null){var j=Ar();Rn(h,a,g,j),$P(h,l,g)}}function HF(a,l,h){var g=So(a),j={lane:g,action:h,hasEagerState:!1,eagerState:null,next:null};if(MP(a))IP(l,j);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=l.lastRenderedReducer,T!==null))try{var k=l.lastRenderedState,z=T(k,h);if(j.hasEagerState=!0,j.eagerState=z,An(z,k)){var G=l.interleaved;G===null?(j.next=j,dv(l)):(j.next=G.next,G.next=j),l.interleaved=j;return}}catch{}finally{}h=fP(a,l,j,g),h!==null&&(j=Ar(),Rn(h,a,g,j),$P(h,l,g))}}function MP(a){var l=a.alternate;return a===Ot||l!==null&&l===Ot}function IP(a,l){bc=Vf=!0;var h=a.pending;h===null?l.next=l:(l.next=h.next,h.next=l),a.pending=l}function $P(a,l,h){if((h&4194240)!==0){var g=l.lanes;g&=a.pendingLanes,h|=g,l.lanes=h,Cm(a,h)}}var Xf={readContext:ln,useCallback:xr,useContext:xr,useEffect:xr,useImperativeHandle:xr,useInsertionEffect:xr,useLayoutEffect:xr,useMemo:xr,useReducer:xr,useRef:xr,useState:xr,useDebugValue:xr,useDeferredValue:xr,useTransition:xr,useMutableSource:xr,useSyncExternalStore:xr,useId:xr,unstable_isNewReconciler:!1},VF={readContext:ln,useCallback:function(a,l){return Vn().memoizedState=[a,l===void 0?null:l],a},useContext:ln,useEffect:PP,useImperativeHandle:function(a,l,h){return h=h!=null?h.concat([a]):null,Gf(4194308,4,AP.bind(null,l,a),h)},useLayoutEffect:function(a,l){return Gf(4194308,4,a,l)},useInsertionEffect:function(a,l){return Gf(4,2,a,l)},useMemo:function(a,l){var h=Vn();return l=l===void 0?null:l,a=a(),h.memoizedState=[a,l],a},useReducer:function(a,l,h){var g=Vn();return l=h!==void 0?h(l):l,g.memoizedState=g.baseState=l,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:l},g.queue=a,a=a.dispatch=WF.bind(null,Ot,a),[g.memoizedState,a]},useRef:function(a){var l=Vn();return a={current:a},l.memoizedState=a},useState:_P,useDebugValue:Pv,useDeferredValue:function(a){return Vn().memoizedState=a},useTransition:function(){var a=_P(!1),l=a[0];return a=UF.bind(null,a[1]),Vn().memoizedState=a,[l,a]},useMutableSource:function(){},useSyncExternalStore:function(a,l,h){var g=Ot,j=Vn();if(St){if(h===void 0)throw Error(r(407));h=h()}else{if(h=l(),tr===null)throw Error(r(349));(fa&30)!==0||yP(g,l,h)}j.memoizedState=h;var T={value:h,getSnapshot:l};return j.queue=T,PP(bP.bind(null,g,T,a),[a]),g.flags|=2048,_c(9,xP.bind(null,g,T,h,l),void 0,null),h},useId:function(){var a=Vn(),l=tr.identifierPrefix;if(St){var h=xi,g=yi;h=(g&~(1<<32-Cn(g)-1)).toString(32)+h,l=":"+l+"R"+h,h=wc++,0<h&&(l+="H"+h.toString(32)),l+=":"}else h=qF++,l=":"+l+"r"+h.toString(32)+":";return a.memoizedState=l},unstable_isNewReconciler:!1},GF={readContext:ln,useCallback:TP,useContext:ln,useEffect:jv,useImperativeHandle:EP,useInsertionEffect:OP,useLayoutEffect:CP,useMemo:NP,useReducer:Sv,useRef:jP,useState:function(){return Sv(Sc)},useDebugValue:Pv,useDeferredValue:function(a){var l=cn();return kP(l,Ut.memoizedState,a)},useTransition:function(){var a=Sv(Sc)[0],l=cn().memoizedState;return[a,l]},useMutableSource:vP,useSyncExternalStore:gP,useId:RP,unstable_isNewReconciler:!1},KF={readContext:ln,useCallback:TP,useContext:ln,useEffect:jv,useImperativeHandle:EP,useInsertionEffect:OP,useLayoutEffect:CP,useMemo:NP,useReducer:_v,useRef:jP,useState:function(){return _v(Sc)},useDebugValue:Pv,useDeferredValue:function(a){var l=cn();return Ut===null?l.memoizedState=a:kP(l,Ut.memoizedState,a)},useTransition:function(){var a=_v(Sc)[0],l=cn().memoizedState;return[a,l]},useMutableSource:vP,useSyncExternalStore:gP,useId:RP,unstable_isNewReconciler:!1};function Tn(a,l){if(a&&a.defaultProps){l=V({},l),a=a.defaultProps;for(var h in a)l[h]===void 0&&(l[h]=a[h]);return l}return l}function Ov(a,l,h,g){l=a.memoizedState,h=h(g,l),h=h==null?l:V({},l,h),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h)}var Yf={isMounted:function(a){return(a=a._reactInternals)?ia(a)===a:!1},enqueueSetState:function(a,l,h){a=a._reactInternals;var g=Ar(),j=So(a),T=wi(g,j);T.payload=l,h!=null&&(T.callback=h),l=yo(a,T,j),l!==null&&(Rn(l,a,j,g),qf(l,a,j))},enqueueReplaceState:function(a,l,h){a=a._reactInternals;var g=Ar(),j=So(a),T=wi(g,j);T.tag=1,T.payload=l,h!=null&&(T.callback=h),l=yo(a,T,j),l!==null&&(Rn(l,a,j,g),qf(l,a,j))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var h=Ar(),g=So(a),j=wi(h,g);j.tag=2,l!=null&&(j.callback=l),l=yo(a,j,g),l!==null&&(Rn(l,a,g,h),qf(l,a,g))}};function DP(a,l,h,g,j,T,k){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,T,k):l.prototype&&l.prototype.isPureReactComponent?!cc(h,g)||!cc(j,T):!0}function LP(a,l,h){var g=!1,j=mo,T=l.contextType;return typeof T=="object"&&T!==null?T=ln(T):(j=Ir(l)?aa:yr.current,g=l.contextTypes,T=(g=g!=null)?us(a,j):mo),l=new l(h,T),a.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Yf,a.stateNode=l,l._reactInternals=a,g&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=j,a.__reactInternalMemoizedMaskedChildContext=T),l}function FP(a,l,h,g){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(h,g),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(h,g),l.state!==a&&Yf.enqueueReplaceState(l,l.state,null)}function Cv(a,l,h,g){var j=a.stateNode;j.props=h,j.state=a.memoizedState,j.refs={},hv(a);var T=l.contextType;typeof T=="object"&&T!==null?j.context=ln(T):(T=Ir(l)?aa:yr.current,j.context=us(a,T)),j.state=a.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(Ov(a,l,T,h),j.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof j.getSnapshotBeforeUpdate=="function"||typeof j.UNSAFE_componentWillMount!="function"&&typeof j.componentWillMount!="function"||(l=j.state,typeof j.componentWillMount=="function"&&j.componentWillMount(),typeof j.UNSAFE_componentWillMount=="function"&&j.UNSAFE_componentWillMount(),l!==j.state&&Yf.enqueueReplaceState(j,j.state,null),Uf(a,h,j,g),j.state=a.memoizedState),typeof j.componentDidMount=="function"&&(a.flags|=4194308)}function ys(a,l){try{var h="",g=l;do h+=pe(g),g=g.return;while(g);var j=h}catch(T){j=`
|
|
39
|
+
Error generating stack: `+T.message+`
|
|
40
|
+
`+T.stack}return{value:a,source:l,stack:j,digest:null}}function Av(a,l,h){return{value:a,source:null,stack:h??null,digest:l??null}}function Ev(a,l){try{console.error(l.value)}catch(h){setTimeout(function(){throw h})}}var XF=typeof WeakMap=="function"?WeakMap:Map;function BP(a,l,h){h=wi(-1,h),h.tag=3,h.payload={element:null};var g=l.value;return h.callback=function(){nd||(nd=!0,Wv=g),Ev(a,l)},h}function zP(a,l,h){h=wi(-1,h),h.tag=3;var g=a.type.getDerivedStateFromError;if(typeof g=="function"){var j=l.value;h.payload=function(){return g(j)},h.callback=function(){Ev(a,l)}}var T=a.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(h.callback=function(){Ev(a,l),typeof g!="function"&&(bo===null?bo=new Set([this]):bo.add(this));var k=l.stack;this.componentDidCatch(l.value,{componentStack:k!==null?k:""})}),h}function qP(a,l,h){var g=a.pingCache;if(g===null){g=a.pingCache=new XF;var j=new Set;g.set(l,j)}else j=g.get(l),j===void 0&&(j=new Set,g.set(l,j));j.has(h)||(j.add(h),a=c5.bind(null,a,l,h),l.then(a,a))}function UP(a){do{var l;if((l=a.tag===13)&&(l=a.memoizedState,l=l!==null?l.dehydrated!==null:!0),l)return a;a=a.return}while(a!==null);return null}function WP(a,l,h,g,j){return(a.mode&1)===0?(a===l?a.flags|=65536:(a.flags|=128,h.flags|=131072,h.flags&=-52805,h.tag===1&&(h.alternate===null?h.tag=17:(l=wi(-1,1),l.tag=2,yo(h,l,1))),h.lanes|=1),a):(a.flags|=65536,a.lanes=j,a)}var YF=C.ReactCurrentOwner,$r=!1;function Cr(a,l,h,g){l.child=a===null?uP(l,null,h,g):ps(l,a.child,h,g)}function HP(a,l,h,g,j){h=h.render;var T=l.ref;return vs(l,j),g=bv(a,l,h,g,T,j),h=wv(),a!==null&&!$r?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~j,Si(a,l,j)):(St&&h&&nv(l),l.flags|=1,Cr(a,l,g,j),l.child)}function VP(a,l,h,g,j){if(a===null){var T=h.type;return typeof T=="function"&&!Qv(T)&&T.defaultProps===void 0&&h.compare===null&&h.defaultProps===void 0?(l.tag=15,l.type=T,GP(a,l,T,g,j)):(a=cd(h.type,null,g,l,l.mode,j),a.ref=l.ref,a.return=l,l.child=a)}if(T=a.child,(a.lanes&j)===0){var k=T.memoizedProps;if(h=h.compare,h=h!==null?h:cc,h(k,g)&&a.ref===l.ref)return Si(a,l,j)}return l.flags|=1,a=jo(T,g),a.ref=l.ref,a.return=l,l.child=a}function GP(a,l,h,g,j){if(a!==null){var T=a.memoizedProps;if(cc(T,g)&&a.ref===l.ref)if($r=!1,l.pendingProps=g=T,(a.lanes&j)!==0)(a.flags&131072)!==0&&($r=!0);else return l.lanes=a.lanes,Si(a,l,j)}return Tv(a,l,h,g,j)}function KP(a,l,h){var g=l.pendingProps,j=g.children,T=a!==null?a.memoizedState:null;if(g.mode==="hidden")if((l.mode&1)===0)l.memoizedState={baseLanes:0,cachePool:null,transitions:null},dt(bs,Vr),Vr|=h;else{if((h&1073741824)===0)return a=T!==null?T.baseLanes|h:h,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:a,cachePool:null,transitions:null},l.updateQueue=null,dt(bs,Vr),Vr|=a,null;l.memoizedState={baseLanes:0,cachePool:null,transitions:null},g=T!==null?T.baseLanes:h,dt(bs,Vr),Vr|=g}else T!==null?(g=T.baseLanes|h,l.memoizedState=null):g=h,dt(bs,Vr),Vr|=g;return Cr(a,l,j,h),l.child}function XP(a,l){var h=l.ref;(a===null&&h!==null||a!==null&&a.ref!==h)&&(l.flags|=512,l.flags|=2097152)}function Tv(a,l,h,g,j){var T=Ir(h)?aa:yr.current;return T=us(l,T),vs(l,j),h=bv(a,l,h,g,T,j),g=wv(),a!==null&&!$r?(l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~j,Si(a,l,j)):(St&&g&&nv(l),l.flags|=1,Cr(a,l,h,j),l.child)}function YP(a,l,h,g,j){if(Ir(h)){var T=!0;Mf(l)}else T=!1;if(vs(l,j),l.stateNode===null)Zf(a,l),LP(l,h,g),Cv(l,h,g,j),g=!0;else if(a===null){var k=l.stateNode,z=l.memoizedProps;k.props=z;var G=k.context,te=h.contextType;typeof te=="object"&&te!==null?te=ln(te):(te=Ir(h)?aa:yr.current,te=us(l,te));var le=h.getDerivedStateFromProps,ce=typeof le=="function"||typeof k.getSnapshotBeforeUpdate=="function";ce||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(z!==g||G!==te)&&FP(l,k,g,te),go=!1;var se=l.memoizedState;k.state=se,Uf(l,g,k,j),G=l.memoizedState,z!==g||se!==G||Mr.current||go?(typeof le=="function"&&(Ov(l,h,le,g),G=l.memoizedState),(z=go||DP(l,h,z,g,se,G,te))?(ce||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(l.flags|=4194308)):(typeof k.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=g,l.memoizedState=G),k.props=g,k.state=G,k.context=te,g=z):(typeof k.componentDidMount=="function"&&(l.flags|=4194308),g=!1)}else{k=l.stateNode,dP(a,l),z=l.memoizedProps,te=l.type===l.elementType?z:Tn(l.type,z),k.props=te,ce=l.pendingProps,se=k.context,G=h.contextType,typeof G=="object"&&G!==null?G=ln(G):(G=Ir(h)?aa:yr.current,G=us(l,G));var ye=h.getDerivedStateFromProps;(le=typeof ye=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(z!==ce||se!==G)&&FP(l,k,g,G),go=!1,se=l.memoizedState,k.state=se,Uf(l,g,k,j);var _e=l.memoizedState;z!==ce||se!==_e||Mr.current||go?(typeof ye=="function"&&(Ov(l,h,ye,g),_e=l.memoizedState),(te=go||DP(l,h,te,g,se,_e,G)||!1)?(le||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(g,_e,G),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(g,_e,G)),typeof k.componentDidUpdate=="function"&&(l.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof k.componentDidUpdate!="function"||z===a.memoizedProps&&se===a.memoizedState||(l.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||z===a.memoizedProps&&se===a.memoizedState||(l.flags|=1024),l.memoizedProps=g,l.memoizedState=_e),k.props=g,k.state=_e,k.context=G,g=te):(typeof k.componentDidUpdate!="function"||z===a.memoizedProps&&se===a.memoizedState||(l.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||z===a.memoizedProps&&se===a.memoizedState||(l.flags|=1024),g=!1)}return Nv(a,l,h,g,T,j)}function Nv(a,l,h,g,j,T){XP(a,l);var k=(l.flags&128)!==0;if(!g&&!k)return j&&tP(l,h,!1),Si(a,l,T);g=l.stateNode,YF.current=l;var z=k&&typeof h.getDerivedStateFromError!="function"?null:g.render();return l.flags|=1,a!==null&&k?(l.child=ps(l,a.child,null,T),l.child=ps(l,null,z,T)):Cr(a,l,z,T),l.memoizedState=g.state,j&&tP(l,h,!0),l.child}function QP(a){var l=a.stateNode;l.pendingContext?Jj(a,l.pendingContext,l.pendingContext!==l.context):l.context&&Jj(a,l.context,!1),pv(a,l.containerInfo)}function ZP(a,l,h,g,j){return hs(),sv(j),l.flags|=256,Cr(a,l,h,g),l.child}var kv={dehydrated:null,treeContext:null,retryLane:0};function Rv(a){return{baseLanes:a,cachePool:null,transitions:null}}function JP(a,l,h){var g=l.pendingProps,j=Pt.current,T=!1,k=(l.flags&128)!==0,z;if((z=k)||(z=a!==null&&a.memoizedState===null?!1:(j&2)!==0),z?(T=!0,l.flags&=-129):(a===null||a.memoizedState!==null)&&(j|=1),dt(Pt,j&1),a===null)return av(l),a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((l.mode&1)===0?l.lanes=1:a.data==="$!"?l.lanes=8:l.lanes=1073741824,null):(k=g.children,a=g.fallback,T?(g=l.mode,T=l.child,k={mode:"hidden",children:k},(g&1)===0&&T!==null?(T.childLanes=0,T.pendingProps=k):T=ud(k,g,0,null),a=va(a,g,h,null),T.return=l,a.return=l,T.sibling=a,l.child=T,l.child.memoizedState=Rv(h),l.memoizedState=kv,a):Mv(l,k));if(j=a.memoizedState,j!==null&&(z=j.dehydrated,z!==null))return QF(a,l,k,g,z,j,h);if(T){T=g.fallback,k=l.mode,j=a.child,z=j.sibling;var G={mode:"hidden",children:g.children};return(k&1)===0&&l.child!==j?(g=l.child,g.childLanes=0,g.pendingProps=G,l.deletions=null):(g=jo(j,G),g.subtreeFlags=j.subtreeFlags&14680064),z!==null?T=jo(z,T):(T=va(T,k,h,null),T.flags|=2),T.return=l,g.return=l,g.sibling=T,l.child=g,g=T,T=l.child,k=a.child.memoizedState,k=k===null?Rv(h):{baseLanes:k.baseLanes|h,cachePool:null,transitions:k.transitions},T.memoizedState=k,T.childLanes=a.childLanes&~h,l.memoizedState=kv,g}return T=a.child,a=T.sibling,g=jo(T,{mode:"visible",children:g.children}),(l.mode&1)===0&&(g.lanes=h),g.return=l,g.sibling=null,a!==null&&(h=l.deletions,h===null?(l.deletions=[a],l.flags|=16):h.push(a)),l.child=g,l.memoizedState=null,g}function Mv(a,l){return l=ud({mode:"visible",children:l},a.mode,0,null),l.return=a,a.child=l}function Qf(a,l,h,g){return g!==null&&sv(g),ps(l,a.child,null,h),a=Mv(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function QF(a,l,h,g,j,T,k){if(h)return l.flags&256?(l.flags&=-257,g=Av(Error(r(422))),Qf(a,l,k,g)):l.memoizedState!==null?(l.child=a.child,l.flags|=128,null):(T=g.fallback,j=l.mode,g=ud({mode:"visible",children:g.children},j,0,null),T=va(T,j,k,null),T.flags|=2,g.return=l,T.return=l,g.sibling=T,l.child=g,(l.mode&1)!==0&&ps(l,a.child,null,k),l.child.memoizedState=Rv(k),l.memoizedState=kv,T);if((l.mode&1)===0)return Qf(a,l,k,null);if(j.data==="$!"){if(g=j.nextSibling&&j.nextSibling.dataset,g)var z=g.dgst;return g=z,T=Error(r(419)),g=Av(T,g,void 0),Qf(a,l,k,g)}if(z=(k&a.childLanes)!==0,$r||z){if(g=tr,g!==null){switch(k&-k){case 4:j=2;break;case 16:j=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:j=32;break;case 536870912:j=268435456;break;default:j=0}j=(j&(g.suspendedLanes|k))!==0?0:j,j!==0&&j!==T.retryLane&&(T.retryLane=j,bi(a,j),Rn(g,a,j,-1))}return Yv(),g=Av(Error(r(421))),Qf(a,l,k,g)}return j.data==="$?"?(l.flags|=128,l.child=a.child,l=u5.bind(null,a),j._reactRetry=l,null):(a=T.treeContext,Hr=ho(j.nextSibling),Wr=l,St=!0,En=null,a!==null&&(an[sn++]=yi,an[sn++]=xi,an[sn++]=sa,yi=a.id,xi=a.overflow,sa=l),l=Mv(l,g.children),l.flags|=4096,l)}function eO(a,l,h){a.lanes|=l;var g=a.alternate;g!==null&&(g.lanes|=l),fv(a.return,l,h)}function Iv(a,l,h,g,j){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:g,tail:h,tailMode:j}:(T.isBackwards=l,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=h,T.tailMode=j)}function tO(a,l,h){var g=l.pendingProps,j=g.revealOrder,T=g.tail;if(Cr(a,l,g.children,h),g=Pt.current,(g&2)!==0)g=g&1|2,l.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&eO(a,h,l);else if(a.tag===19)eO(a,h,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}g&=1}if(dt(Pt,g),(l.mode&1)===0)l.memoizedState=null;else switch(j){case"forwards":for(h=l.child,j=null;h!==null;)a=h.alternate,a!==null&&Wf(a)===null&&(j=h),h=h.sibling;h=j,h===null?(j=l.child,l.child=null):(j=h.sibling,h.sibling=null),Iv(l,!1,j,h,T);break;case"backwards":for(h=null,j=l.child,l.child=null;j!==null;){if(a=j.alternate,a!==null&&Wf(a)===null){l.child=j;break}a=j.sibling,j.sibling=h,h=j,j=a}Iv(l,!0,h,null,T);break;case"together":Iv(l,!1,null,null,void 0);break;default:l.memoizedState=null}return l.child}function Zf(a,l){(l.mode&1)===0&&a!==null&&(a.alternate=null,l.alternate=null,l.flags|=2)}function Si(a,l,h){if(a!==null&&(l.dependencies=a.dependencies),da|=l.lanes,(h&l.childLanes)===0)return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,h=jo(a,a.pendingProps),l.child=h,h.return=l;a.sibling!==null;)a=a.sibling,h=h.sibling=jo(a,a.pendingProps),h.return=l;h.sibling=null}return l.child}function ZF(a,l,h){switch(l.tag){case 3:QP(l),hs();break;case 5:mP(l);break;case 1:Ir(l.type)&&Mf(l);break;case 4:pv(l,l.stateNode.containerInfo);break;case 10:var g=l.type._context,j=l.memoizedProps.value;dt(Bf,g._currentValue),g._currentValue=j;break;case 13:if(g=l.memoizedState,g!==null)return g.dehydrated!==null?(dt(Pt,Pt.current&1),l.flags|=128,null):(h&l.child.childLanes)!==0?JP(a,l,h):(dt(Pt,Pt.current&1),a=Si(a,l,h),a!==null?a.sibling:null);dt(Pt,Pt.current&1);break;case 19:if(g=(h&l.childLanes)!==0,(a.flags&128)!==0){if(g)return tO(a,l,h);l.flags|=128}if(j=l.memoizedState,j!==null&&(j.rendering=null,j.tail=null,j.lastEffect=null),dt(Pt,Pt.current),g)break;return null;case 22:case 23:return l.lanes=0,KP(a,l,h)}return Si(a,l,h)}var rO,$v,nO,iO;rO=function(a,l){for(var h=l.child;h!==null;){if(h.tag===5||h.tag===6)a.appendChild(h.stateNode);else if(h.tag!==4&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===l)break;for(;h.sibling===null;){if(h.return===null||h.return===l)return;h=h.return}h.sibling.return=h.return,h=h.sibling}},$v=function(){},nO=function(a,l,h,g){var j=a.memoizedProps;if(j!==g){a=l.stateNode,ua(Hn.current);var T=null;switch(h){case"input":j=de(a,j),g=de(a,g),T=[];break;case"select":j=V({},j,{value:void 0}),g=V({},g,{value:void 0}),T=[];break;case"textarea":j=gr(a,j),g=gr(a,g),T=[];break;default:typeof j.onClick!="function"&&typeof g.onClick=="function"&&(a.onclick=Nf)}vm(h,g);var k;h=null;for(te in j)if(!g.hasOwnProperty(te)&&j.hasOwnProperty(te)&&j[te]!=null)if(te==="style"){var z=j[te];for(k in z)z.hasOwnProperty(k)&&(h||(h={}),h[k]="")}else te!=="dangerouslySetInnerHTML"&&te!=="children"&&te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&te!=="autoFocus"&&(i.hasOwnProperty(te)?T||(T=[]):(T=T||[]).push(te,null));for(te in g){var G=g[te];if(z=j!=null?j[te]:void 0,g.hasOwnProperty(te)&&G!==z&&(G!=null||z!=null))if(te==="style")if(z){for(k in z)!z.hasOwnProperty(k)||G&&G.hasOwnProperty(k)||(h||(h={}),h[k]="");for(k in G)G.hasOwnProperty(k)&&z[k]!==G[k]&&(h||(h={}),h[k]=G[k])}else h||(T||(T=[]),T.push(te,h)),h=G;else te==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,z=z?z.__html:void 0,G!=null&&z!==G&&(T=T||[]).push(te,G)):te==="children"?typeof G!="string"&&typeof G!="number"||(T=T||[]).push(te,""+G):te!=="suppressContentEditableWarning"&&te!=="suppressHydrationWarning"&&(i.hasOwnProperty(te)?(G!=null&&te==="onScroll"&&vt("scroll",a),T||z===G||(T=[])):(T=T||[]).push(te,G))}h&&(T=T||[]).push("style",h);var te=T;(l.updateQueue=te)&&(l.flags|=4)}},iO=function(a,l,h,g){h!==g&&(l.flags|=4)};function jc(a,l){if(!St)switch(a.tailMode){case"hidden":l=a.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?a.tail=null:h.sibling=null;break;case"collapsed":h=a.tail;for(var g=null;h!==null;)h.alternate!==null&&(g=h),h=h.sibling;g===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function br(a){var l=a.alternate!==null&&a.alternate.child===a.child,h=0,g=0;if(l)for(var j=a.child;j!==null;)h|=j.lanes|j.childLanes,g|=j.subtreeFlags&14680064,g|=j.flags&14680064,j.return=a,j=j.sibling;else for(j=a.child;j!==null;)h|=j.lanes|j.childLanes,g|=j.subtreeFlags,g|=j.flags,j.return=a,j=j.sibling;return a.subtreeFlags|=g,a.childLanes=h,l}function JF(a,l,h){var g=l.pendingProps;switch(iv(l),l.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return br(l),null;case 1:return Ir(l.type)&&Rf(),br(l),null;case 3:return g=l.stateNode,gs(),gt(Mr),gt(yr),gv(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(a===null||a.child===null)&&(Lf(l)?l.flags|=4:a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,En!==null&&(Gv(En),En=null))),$v(a,l),br(l),null;case 5:mv(l);var j=ua(xc.current);if(h=l.type,a!==null&&l.stateNode!=null)nO(a,l,h,g,j),a.ref!==l.ref&&(l.flags|=512,l.flags|=2097152);else{if(!g){if(l.stateNode===null)throw Error(r(166));return br(l),null}if(a=ua(Hn.current),Lf(l)){g=l.stateNode,h=l.type;var T=l.memoizedProps;switch(g[Wn]=l,g[pc]=T,a=(l.mode&1)!==0,h){case"dialog":vt("cancel",g),vt("close",g);break;case"iframe":case"object":case"embed":vt("load",g);break;case"video":case"audio":for(j=0;j<fc.length;j++)vt(fc[j],g);break;case"source":vt("error",g);break;case"img":case"image":case"link":vt("error",g),vt("load",g);break;case"details":vt("toggle",g);break;case"input":Re(g,T),vt("invalid",g);break;case"select":g._wrapperState={wasMultiple:!!T.multiple},vt("invalid",g);break;case"textarea":Za(g,T),vt("invalid",g)}vm(h,T),j=null;for(var k in T)if(T.hasOwnProperty(k)){var z=T[k];k==="children"?typeof z=="string"?g.textContent!==z&&(T.suppressHydrationWarning!==!0&&Tf(g.textContent,z,a),j=["children",z]):typeof z=="number"&&g.textContent!==""+z&&(T.suppressHydrationWarning!==!0&&Tf(g.textContent,z,a),j=["children",""+z]):i.hasOwnProperty(k)&&z!=null&&k==="onScroll"&&vt("scroll",g)}switch(h){case"input":xe(g),lr(g,T,!0);break;case"textarea":xe(g),Hl(g);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(g.onclick=Nf)}g=j,l.updateQueue=g,g!==null&&(l.flags|=4)}else{k=j.nodeType===9?j:j.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=W_(h)),a==="http://www.w3.org/1999/xhtml"?h==="script"?(a=k.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof g.is=="string"?a=k.createElement(h,{is:g.is}):(a=k.createElement(h),h==="select"&&(k=a,g.multiple?k.multiple=!0:g.size&&(k.size=g.size))):a=k.createElementNS(a,h),a[Wn]=l,a[pc]=g,rO(a,l,!1,!1),l.stateNode=a;e:{switch(k=gm(h,g),h){case"dialog":vt("cancel",a),vt("close",a),j=g;break;case"iframe":case"object":case"embed":vt("load",a),j=g;break;case"video":case"audio":for(j=0;j<fc.length;j++)vt(fc[j],a);j=g;break;case"source":vt("error",a),j=g;break;case"img":case"image":case"link":vt("error",a),vt("load",a),j=g;break;case"details":vt("toggle",a),j=g;break;case"input":Re(a,g),j=de(a,g),vt("invalid",a);break;case"option":j=g;break;case"select":a._wrapperState={wasMultiple:!!g.multiple},j=V({},g,{value:void 0}),vt("invalid",a);break;case"textarea":Za(a,g),j=gr(a,g),vt("invalid",a);break;default:j=g}vm(h,j),z=j;for(T in z)if(z.hasOwnProperty(T)){var G=z[T];T==="style"?G_(a,G):T==="dangerouslySetInnerHTML"?(G=G?G.__html:void 0,G!=null&&H_(a,G)):T==="children"?typeof G=="string"?(h!=="textarea"||G!=="")&&Vl(a,G):typeof G=="number"&&Vl(a,""+G):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(i.hasOwnProperty(T)?G!=null&&T==="onScroll"&&vt("scroll",a):G!=null&&A(a,T,G,k))}switch(h){case"input":xe(a),lr(a,g,!1);break;case"textarea":xe(a),Hl(a);break;case"option":g.value!=null&&a.setAttribute("value",""+Ee(g.value));break;case"select":a.multiple=!!g.multiple,T=g.value,T!=null?vr(a,!!g.multiple,T,!1):g.defaultValue!=null&&vr(a,!!g.multiple,g.defaultValue,!0);break;default:typeof j.onClick=="function"&&(a.onclick=Nf)}switch(h){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}}g&&(l.flags|=4)}l.ref!==null&&(l.flags|=512,l.flags|=2097152)}return br(l),null;case 6:if(a&&l.stateNode!=null)iO(a,l,a.memoizedProps,g);else{if(typeof g!="string"&&l.stateNode===null)throw Error(r(166));if(h=ua(xc.current),ua(Hn.current),Lf(l)){if(g=l.stateNode,h=l.memoizedProps,g[Wn]=l,(T=g.nodeValue!==h)&&(a=Wr,a!==null))switch(a.tag){case 3:Tf(g.nodeValue,h,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Tf(g.nodeValue,h,(a.mode&1)!==0)}T&&(l.flags|=4)}else g=(h.nodeType===9?h:h.ownerDocument).createTextNode(g),g[Wn]=l,l.stateNode=g}return br(l),null;case 13:if(gt(Pt),g=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(St&&Hr!==null&&(l.mode&1)!==0&&(l.flags&128)===0)sP(),hs(),l.flags|=98560,T=!1;else if(T=Lf(l),g!==null&&g.dehydrated!==null){if(a===null){if(!T)throw Error(r(318));if(T=l.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[Wn]=l}else hs(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;br(l),T=!1}else En!==null&&(Gv(En),En=null),T=!0;if(!T)return l.flags&65536?l:null}return(l.flags&128)!==0?(l.lanes=h,l):(g=g!==null,g!==(a!==null&&a.memoizedState!==null)&&g&&(l.child.flags|=8192,(l.mode&1)!==0&&(a===null||(Pt.current&1)!==0?Wt===0&&(Wt=3):Yv())),l.updateQueue!==null&&(l.flags|=4),br(l),null);case 4:return gs(),$v(a,l),a===null&&dc(l.stateNode.containerInfo),br(l),null;case 10:return uv(l.type._context),br(l),null;case 17:return Ir(l.type)&&Rf(),br(l),null;case 19:if(gt(Pt),T=l.memoizedState,T===null)return br(l),null;if(g=(l.flags&128)!==0,k=T.rendering,k===null)if(g)jc(T,!1);else{if(Wt!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(k=Wf(a),k!==null){for(l.flags|=128,jc(T,!1),g=k.updateQueue,g!==null&&(l.updateQueue=g,l.flags|=4),l.subtreeFlags=0,g=h,h=l.child;h!==null;)T=h,a=g,T.flags&=14680066,k=T.alternate,k===null?(T.childLanes=0,T.lanes=a,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=k.childLanes,T.lanes=k.lanes,T.child=k.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=k.memoizedProps,T.memoizedState=k.memoizedState,T.updateQueue=k.updateQueue,T.type=k.type,a=k.dependencies,T.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),h=h.sibling;return dt(Pt,Pt.current&1|2),l.child}a=a.sibling}T.tail!==null&&kt()>ws&&(l.flags|=128,g=!0,jc(T,!1),l.lanes=4194304)}else{if(!g)if(a=Wf(k),a!==null){if(l.flags|=128,g=!0,h=a.updateQueue,h!==null&&(l.updateQueue=h,l.flags|=4),jc(T,!0),T.tail===null&&T.tailMode==="hidden"&&!k.alternate&&!St)return br(l),null}else 2*kt()-T.renderingStartTime>ws&&h!==1073741824&&(l.flags|=128,g=!0,jc(T,!1),l.lanes=4194304);T.isBackwards?(k.sibling=l.child,l.child=k):(h=T.last,h!==null?h.sibling=k:l.child=k,T.last=k)}return T.tail!==null?(l=T.tail,T.rendering=l,T.tail=l.sibling,T.renderingStartTime=kt(),l.sibling=null,h=Pt.current,dt(Pt,g?h&1|2:h&1),l):(br(l),null);case 22:case 23:return Xv(),g=l.memoizedState!==null,a!==null&&a.memoizedState!==null!==g&&(l.flags|=8192),g&&(l.mode&1)!==0?(Vr&1073741824)!==0&&(br(l),l.subtreeFlags&6&&(l.flags|=8192)):br(l),null;case 24:return null;case 25:return null}throw Error(r(156,l.tag))}function e5(a,l){switch(iv(l),l.tag){case 1:return Ir(l.type)&&Rf(),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return gs(),gt(Mr),gt(yr),gv(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 5:return mv(l),null;case 13:if(gt(Pt),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));hs()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return gt(Pt),null;case 4:return gs(),null;case 10:return uv(l.type._context),null;case 22:case 23:return Xv(),null;case 24:return null;default:return null}}var Jf=!1,wr=!1,t5=typeof WeakSet=="function"?WeakSet:Set,we=null;function xs(a,l){var h=a.ref;if(h!==null)if(typeof h=="function")try{h(null)}catch(g){Tt(a,l,g)}else h.current=null}function Dv(a,l,h){try{h()}catch(g){Tt(a,l,g)}}var oO=!1;function r5(a,l){if(Xm=xf,a=Dj(),zm(a)){if("selectionStart"in a)var h={start:a.selectionStart,end:a.selectionEnd};else e:{h=(h=a.ownerDocument)&&h.defaultView||window;var g=h.getSelection&&h.getSelection();if(g&&g.rangeCount!==0){h=g.anchorNode;var j=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{h.nodeType,T.nodeType}catch{h=null;break e}var k=0,z=-1,G=-1,te=0,le=0,ce=a,se=null;t:for(;;){for(var ye;ce!==h||j!==0&&ce.nodeType!==3||(z=k+j),ce!==T||g!==0&&ce.nodeType!==3||(G=k+g),ce.nodeType===3&&(k+=ce.nodeValue.length),(ye=ce.firstChild)!==null;)se=ce,ce=ye;for(;;){if(ce===a)break t;if(se===h&&++te===j&&(z=k),se===T&&++le===g&&(G=k),(ye=ce.nextSibling)!==null)break;ce=se,se=ce.parentNode}ce=ye}h=z===-1||G===-1?null:{start:z,end:G}}else h=null}h=h||{start:0,end:0}}else h=null;for(Ym={focusedElem:a,selectionRange:h},xf=!1,we=l;we!==null;)if(l=we,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,we=a;else for(;we!==null;){l=we;try{var _e=l.alternate;if((l.flags&1024)!==0)switch(l.tag){case 0:case 11:case 15:break;case 1:if(_e!==null){var je=_e.memoizedProps,Rt=_e.memoizedState,J=l.stateNode,Q=J.getSnapshotBeforeUpdate(l.elementType===l.type?je:Tn(l.type,je),Rt);J.__reactInternalSnapshotBeforeUpdate=Q}break;case 3:var ee=l.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ue){Tt(l,l.return,ue)}if(a=l.sibling,a!==null){a.return=l.return,we=a;break}we=l.return}return _e=oO,oO=!1,_e}function Pc(a,l,h){var g=l.updateQueue;if(g=g!==null?g.lastEffect:null,g!==null){var j=g=g.next;do{if((j.tag&a)===a){var T=j.destroy;j.destroy=void 0,T!==void 0&&Dv(l,h,T)}j=j.next}while(j!==g)}}function ed(a,l){if(l=l.updateQueue,l=l!==null?l.lastEffect:null,l!==null){var h=l=l.next;do{if((h.tag&a)===a){var g=h.create;h.destroy=g()}h=h.next}while(h!==l)}}function Lv(a){var l=a.ref;if(l!==null){var h=a.stateNode;switch(a.tag){case 5:a=h;break;default:a=h}typeof l=="function"?l(a):l.current=a}}function aO(a){var l=a.alternate;l!==null&&(a.alternate=null,aO(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&(delete l[Wn],delete l[pc],delete l[ev],delete l[LF],delete l[FF])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function sO(a){return a.tag===5||a.tag===3||a.tag===4}function lO(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||sO(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Fv(a,l,h){var g=a.tag;if(g===5||g===6)a=a.stateNode,l?h.nodeType===8?h.parentNode.insertBefore(a,l):h.insertBefore(a,l):(h.nodeType===8?(l=h.parentNode,l.insertBefore(a,h)):(l=h,l.appendChild(a)),h=h._reactRootContainer,h!=null||l.onclick!==null||(l.onclick=Nf));else if(g!==4&&(a=a.child,a!==null))for(Fv(a,l,h),a=a.sibling;a!==null;)Fv(a,l,h),a=a.sibling}function Bv(a,l,h){var g=a.tag;if(g===5||g===6)a=a.stateNode,l?h.insertBefore(a,l):h.appendChild(a);else if(g!==4&&(a=a.child,a!==null))for(Bv(a,l,h),a=a.sibling;a!==null;)Bv(a,l,h),a=a.sibling}var cr=null,Nn=!1;function xo(a,l,h){for(h=h.child;h!==null;)cO(a,l,h),h=h.sibling}function cO(a,l,h){if(Un&&typeof Un.onCommitFiberUnmount=="function")try{Un.onCommitFiberUnmount(hf,h)}catch{}switch(h.tag){case 5:wr||xs(h,l);case 6:var g=cr,j=Nn;cr=null,xo(a,l,h),cr=g,Nn=j,cr!==null&&(Nn?(a=cr,h=h.stateNode,a.nodeType===8?a.parentNode.removeChild(h):a.removeChild(h)):cr.removeChild(h.stateNode));break;case 18:cr!==null&&(Nn?(a=cr,h=h.stateNode,a.nodeType===8?Jm(a.parentNode,h):a.nodeType===1&&Jm(a,h),nc(a)):Jm(cr,h.stateNode));break;case 4:g=cr,j=Nn,cr=h.stateNode.containerInfo,Nn=!0,xo(a,l,h),cr=g,Nn=j;break;case 0:case 11:case 14:case 15:if(!wr&&(g=h.updateQueue,g!==null&&(g=g.lastEffect,g!==null))){j=g=g.next;do{var T=j,k=T.destroy;T=T.tag,k!==void 0&&((T&2)!==0||(T&4)!==0)&&Dv(h,l,k),j=j.next}while(j!==g)}xo(a,l,h);break;case 1:if(!wr&&(xs(h,l),g=h.stateNode,typeof g.componentWillUnmount=="function"))try{g.props=h.memoizedProps,g.state=h.memoizedState,g.componentWillUnmount()}catch(z){Tt(h,l,z)}xo(a,l,h);break;case 21:xo(a,l,h);break;case 22:h.mode&1?(wr=(g=wr)||h.memoizedState!==null,xo(a,l,h),wr=g):xo(a,l,h);break;default:xo(a,l,h)}}function uO(a){var l=a.updateQueue;if(l!==null){a.updateQueue=null;var h=a.stateNode;h===null&&(h=a.stateNode=new t5),l.forEach(function(g){var j=f5.bind(null,a,g);h.has(g)||(h.add(g),g.then(j,j))})}}function kn(a,l){var h=l.deletions;if(h!==null)for(var g=0;g<h.length;g++){var j=h[g];try{var T=a,k=l,z=k;e:for(;z!==null;){switch(z.tag){case 5:cr=z.stateNode,Nn=!1;break e;case 3:cr=z.stateNode.containerInfo,Nn=!0;break e;case 4:cr=z.stateNode.containerInfo,Nn=!0;break e}z=z.return}if(cr===null)throw Error(r(160));cO(T,k,j),cr=null,Nn=!1;var G=j.alternate;G!==null&&(G.return=null),j.return=null}catch(te){Tt(j,l,te)}}if(l.subtreeFlags&12854)for(l=l.child;l!==null;)fO(l,a),l=l.sibling}function fO(a,l){var h=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(kn(l,a),Gn(a),g&4){try{Pc(3,a,a.return),ed(3,a)}catch(je){Tt(a,a.return,je)}try{Pc(5,a,a.return)}catch(je){Tt(a,a.return,je)}}break;case 1:kn(l,a),Gn(a),g&512&&h!==null&&xs(h,h.return);break;case 5:if(kn(l,a),Gn(a),g&512&&h!==null&&xs(h,h.return),a.flags&32){var j=a.stateNode;try{Vl(j,"")}catch(je){Tt(a,a.return,je)}}if(g&4&&(j=a.stateNode,j!=null)){var T=a.memoizedProps,k=h!==null?h.memoizedProps:T,z=a.type,G=a.updateQueue;if(a.updateQueue=null,G!==null)try{z==="input"&&T.type==="radio"&&T.name!=null&&ot(j,T),gm(z,k);var te=gm(z,T);for(k=0;k<G.length;k+=2){var le=G[k],ce=G[k+1];le==="style"?G_(j,ce):le==="dangerouslySetInnerHTML"?H_(j,ce):le==="children"?Vl(j,ce):A(j,le,ce,te)}switch(z){case"input":mt(j,T);break;case"textarea":Wl(j,T);break;case"select":var se=j._wrapperState.wasMultiple;j._wrapperState.wasMultiple=!!T.multiple;var ye=T.value;ye!=null?vr(j,!!T.multiple,ye,!1):se!==!!T.multiple&&(T.defaultValue!=null?vr(j,!!T.multiple,T.defaultValue,!0):vr(j,!!T.multiple,T.multiple?[]:"",!1))}j[pc]=T}catch(je){Tt(a,a.return,je)}}break;case 6:if(kn(l,a),Gn(a),g&4){if(a.stateNode===null)throw Error(r(162));j=a.stateNode,T=a.memoizedProps;try{j.nodeValue=T}catch(je){Tt(a,a.return,je)}}break;case 3:if(kn(l,a),Gn(a),g&4&&h!==null&&h.memoizedState.isDehydrated)try{nc(l.containerInfo)}catch(je){Tt(a,a.return,je)}break;case 4:kn(l,a),Gn(a);break;case 13:kn(l,a),Gn(a),j=a.child,j.flags&8192&&(T=j.memoizedState!==null,j.stateNode.isHidden=T,!T||j.alternate!==null&&j.alternate.memoizedState!==null||(Uv=kt())),g&4&&uO(a);break;case 22:if(le=h!==null&&h.memoizedState!==null,a.mode&1?(wr=(te=wr)||le,kn(l,a),wr=te):kn(l,a),Gn(a),g&8192){if(te=a.memoizedState!==null,(a.stateNode.isHidden=te)&&!le&&(a.mode&1)!==0)for(we=a,le=a.child;le!==null;){for(ce=we=le;we!==null;){switch(se=we,ye=se.child,se.tag){case 0:case 11:case 14:case 15:Pc(4,se,se.return);break;case 1:xs(se,se.return);var _e=se.stateNode;if(typeof _e.componentWillUnmount=="function"){g=se,h=se.return;try{l=g,_e.props=l.memoizedProps,_e.state=l.memoizedState,_e.componentWillUnmount()}catch(je){Tt(g,h,je)}}break;case 5:xs(se,se.return);break;case 22:if(se.memoizedState!==null){pO(ce);continue}}ye!==null?(ye.return=se,we=ye):pO(ce)}le=le.sibling}e:for(le=null,ce=a;;){if(ce.tag===5){if(le===null){le=ce;try{j=ce.stateNode,te?(T=j.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(z=ce.stateNode,G=ce.memoizedProps.style,k=G!=null&&G.hasOwnProperty("display")?G.display:null,z.style.display=V_("display",k))}catch(je){Tt(a,a.return,je)}}}else if(ce.tag===6){if(le===null)try{ce.stateNode.nodeValue=te?"":ce.memoizedProps}catch(je){Tt(a,a.return,je)}}else if((ce.tag!==22&&ce.tag!==23||ce.memoizedState===null||ce===a)&&ce.child!==null){ce.child.return=ce,ce=ce.child;continue}if(ce===a)break e;for(;ce.sibling===null;){if(ce.return===null||ce.return===a)break e;le===ce&&(le=null),ce=ce.return}le===ce&&(le=null),ce.sibling.return=ce.return,ce=ce.sibling}}break;case 19:kn(l,a),Gn(a),g&4&&uO(a);break;case 21:break;default:kn(l,a),Gn(a)}}function Gn(a){var l=a.flags;if(l&2){try{e:{for(var h=a.return;h!==null;){if(sO(h)){var g=h;break e}h=h.return}throw Error(r(160))}switch(g.tag){case 5:var j=g.stateNode;g.flags&32&&(Vl(j,""),g.flags&=-33);var T=lO(a);Bv(a,T,j);break;case 3:case 4:var k=g.stateNode.containerInfo,z=lO(a);Fv(a,z,k);break;default:throw Error(r(161))}}catch(G){Tt(a,a.return,G)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function n5(a,l,h){we=a,dO(a)}function dO(a,l,h){for(var g=(a.mode&1)!==0;we!==null;){var j=we,T=j.child;if(j.tag===22&&g){var k=j.memoizedState!==null||Jf;if(!k){var z=j.alternate,G=z!==null&&z.memoizedState!==null||wr;z=Jf;var te=wr;if(Jf=k,(wr=G)&&!te)for(we=j;we!==null;)k=we,G=k.child,k.tag===22&&k.memoizedState!==null?mO(j):G!==null?(G.return=k,we=G):mO(j);for(;T!==null;)we=T,dO(T),T=T.sibling;we=j,Jf=z,wr=te}hO(a)}else(j.subtreeFlags&8772)!==0&&T!==null?(T.return=j,we=T):hO(a)}}function hO(a){for(;we!==null;){var l=we;if((l.flags&8772)!==0){var h=l.alternate;try{if((l.flags&8772)!==0)switch(l.tag){case 0:case 11:case 15:wr||ed(5,l);break;case 1:var g=l.stateNode;if(l.flags&4&&!wr)if(h===null)g.componentDidMount();else{var j=l.elementType===l.type?h.memoizedProps:Tn(l.type,h.memoizedProps);g.componentDidUpdate(j,h.memoizedState,g.__reactInternalSnapshotBeforeUpdate)}var T=l.updateQueue;T!==null&&pP(l,T,g);break;case 3:var k=l.updateQueue;if(k!==null){if(h=null,l.child!==null)switch(l.child.tag){case 5:h=l.child.stateNode;break;case 1:h=l.child.stateNode}pP(l,k,h)}break;case 5:var z=l.stateNode;if(h===null&&l.flags&4){h=z;var G=l.memoizedProps;switch(l.type){case"button":case"input":case"select":case"textarea":G.autoFocus&&h.focus();break;case"img":G.src&&(h.src=G.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(l.memoizedState===null){var te=l.alternate;if(te!==null){var le=te.memoizedState;if(le!==null){var ce=le.dehydrated;ce!==null&&nc(ce)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}wr||l.flags&512&&Lv(l)}catch(se){Tt(l,l.return,se)}}if(l===a){we=null;break}if(h=l.sibling,h!==null){h.return=l.return,we=h;break}we=l.return}}function pO(a){for(;we!==null;){var l=we;if(l===a){we=null;break}var h=l.sibling;if(h!==null){h.return=l.return,we=h;break}we=l.return}}function mO(a){for(;we!==null;){var l=we;try{switch(l.tag){case 0:case 11:case 15:var h=l.return;try{ed(4,l)}catch(G){Tt(l,h,G)}break;case 1:var g=l.stateNode;if(typeof g.componentDidMount=="function"){var j=l.return;try{g.componentDidMount()}catch(G){Tt(l,j,G)}}var T=l.return;try{Lv(l)}catch(G){Tt(l,T,G)}break;case 5:var k=l.return;try{Lv(l)}catch(G){Tt(l,k,G)}}}catch(G){Tt(l,l.return,G)}if(l===a){we=null;break}var z=l.sibling;if(z!==null){z.return=l.return,we=z;break}we=l.return}}var i5=Math.ceil,td=C.ReactCurrentDispatcher,zv=C.ReactCurrentOwner,un=C.ReactCurrentBatchConfig,rt=0,tr=null,Lt=null,ur=0,Vr=0,bs=po(0),Wt=0,Oc=null,da=0,rd=0,qv=0,Cc=null,Dr=null,Uv=0,ws=1/0,_i=null,nd=!1,Wv=null,bo=null,id=!1,wo=null,od=0,Ac=0,Hv=null,ad=-1,sd=0;function Ar(){return(rt&6)!==0?kt():ad!==-1?ad:ad=kt()}function So(a){return(a.mode&1)===0?1:(rt&2)!==0&&ur!==0?ur&-ur:zF.transition!==null?(sd===0&&(sd=lj()),sd):(a=lt,a!==0||(a=window.event,a=a===void 0?16:gj(a.type)),a)}function Rn(a,l,h,g){if(50<Ac)throw Ac=0,Hv=null,Error(r(185));Zl(a,h,g),((rt&2)===0||a!==tr)&&(a===tr&&((rt&2)===0&&(rd|=h),Wt===4&&_o(a,ur)),Lr(a,g),h===1&&rt===0&&(l.mode&1)===0&&(ws=kt()+500,If&&vo()))}function Lr(a,l){var h=a.callbackNode;z4(a,l);var g=vf(a,a===tr?ur:0);if(g===0)h!==null&&oj(h),a.callbackNode=null,a.callbackPriority=0;else if(l=g&-g,a.callbackPriority!==l){if(h!=null&&oj(h),l===1)a.tag===0?BF(gO.bind(null,a)):rP(gO.bind(null,a)),$F(function(){(rt&6)===0&&vo()}),h=null;else{switch(cj(g)){case 1:h=jm;break;case 4:h=aj;break;case 16:h=df;break;case 536870912:h=sj;break;default:h=df}h=PO(h,vO.bind(null,a))}a.callbackPriority=l,a.callbackNode=h}}function vO(a,l){if(ad=-1,sd=0,(rt&6)!==0)throw Error(r(327));var h=a.callbackNode;if(Ss()&&a.callbackNode!==h)return null;var g=vf(a,a===tr?ur:0);if(g===0)return null;if((g&30)!==0||(g&a.expiredLanes)!==0||l)l=ld(a,g);else{l=g;var j=rt;rt|=2;var T=xO();(tr!==a||ur!==l)&&(_i=null,ws=kt()+500,pa(a,l));do try{s5();break}catch(z){yO(a,z)}while(!0);cv(),td.current=T,rt=j,Lt!==null?l=0:(tr=null,ur=0,l=Wt)}if(l!==0){if(l===2&&(j=Pm(a),j!==0&&(g=j,l=Vv(a,j))),l===1)throw h=Oc,pa(a,0),_o(a,g),Lr(a,kt()),h;if(l===6)_o(a,g);else{if(j=a.current.alternate,(g&30)===0&&!o5(j)&&(l=ld(a,g),l===2&&(T=Pm(a),T!==0&&(g=T,l=Vv(a,T))),l===1))throw h=Oc,pa(a,0),_o(a,g),Lr(a,kt()),h;switch(a.finishedWork=j,a.finishedLanes=g,l){case 0:case 1:throw Error(r(345));case 2:ma(a,Dr,_i);break;case 3:if(_o(a,g),(g&130023424)===g&&(l=Uv+500-kt(),10<l)){if(vf(a,0)!==0)break;if(j=a.suspendedLanes,(j&g)!==g){Ar(),a.pingedLanes|=a.suspendedLanes&j;break}a.timeoutHandle=Zm(ma.bind(null,a,Dr,_i),l);break}ma(a,Dr,_i);break;case 4:if(_o(a,g),(g&4194240)===g)break;for(l=a.eventTimes,j=-1;0<g;){var k=31-Cn(g);T=1<<k,k=l[k],k>j&&(j=k),g&=~T}if(g=j,g=kt()-g,g=(120>g?120:480>g?480:1080>g?1080:1920>g?1920:3e3>g?3e3:4320>g?4320:1960*i5(g/1960))-g,10<g){a.timeoutHandle=Zm(ma.bind(null,a,Dr,_i),g);break}ma(a,Dr,_i);break;case 5:ma(a,Dr,_i);break;default:throw Error(r(329))}}}return Lr(a,kt()),a.callbackNode===h?vO.bind(null,a):null}function Vv(a,l){var h=Cc;return a.current.memoizedState.isDehydrated&&(pa(a,l).flags|=256),a=ld(a,l),a!==2&&(l=Dr,Dr=h,l!==null&&Gv(l)),a}function Gv(a){Dr===null?Dr=a:Dr.push.apply(Dr,a)}function o5(a){for(var l=a;;){if(l.flags&16384){var h=l.updateQueue;if(h!==null&&(h=h.stores,h!==null))for(var g=0;g<h.length;g++){var j=h[g],T=j.getSnapshot;j=j.value;try{if(!An(T(),j))return!1}catch{return!1}}}if(h=l.child,l.subtreeFlags&16384&&h!==null)h.return=l,l=h;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function _o(a,l){for(l&=~qv,l&=~rd,a.suspendedLanes|=l,a.pingedLanes&=~l,a=a.expirationTimes;0<l;){var h=31-Cn(l),g=1<<h;a[h]=-1,l&=~g}}function gO(a){if((rt&6)!==0)throw Error(r(327));Ss();var l=vf(a,0);if((l&1)===0)return Lr(a,kt()),null;var h=ld(a,l);if(a.tag!==0&&h===2){var g=Pm(a);g!==0&&(l=g,h=Vv(a,g))}if(h===1)throw h=Oc,pa(a,0),_o(a,l),Lr(a,kt()),h;if(h===6)throw Error(r(345));return a.finishedWork=a.current.alternate,a.finishedLanes=l,ma(a,Dr,_i),Lr(a,kt()),null}function Kv(a,l){var h=rt;rt|=1;try{return a(l)}finally{rt=h,rt===0&&(ws=kt()+500,If&&vo())}}function ha(a){wo!==null&&wo.tag===0&&(rt&6)===0&&Ss();var l=rt;rt|=1;var h=un.transition,g=lt;try{if(un.transition=null,lt=1,a)return a()}finally{lt=g,un.transition=h,rt=l,(rt&6)===0&&vo()}}function Xv(){Vr=bs.current,gt(bs)}function pa(a,l){a.finishedWork=null,a.finishedLanes=0;var h=a.timeoutHandle;if(h!==-1&&(a.timeoutHandle=-1,IF(h)),Lt!==null)for(h=Lt.return;h!==null;){var g=h;switch(iv(g),g.tag){case 1:g=g.type.childContextTypes,g!=null&&Rf();break;case 3:gs(),gt(Mr),gt(yr),gv();break;case 5:mv(g);break;case 4:gs();break;case 13:gt(Pt);break;case 19:gt(Pt);break;case 10:uv(g.type._context);break;case 22:case 23:Xv()}h=h.return}if(tr=a,Lt=a=jo(a.current,null),ur=Vr=l,Wt=0,Oc=null,qv=rd=da=0,Dr=Cc=null,ca!==null){for(l=0;l<ca.length;l++)if(h=ca[l],g=h.interleaved,g!==null){h.interleaved=null;var j=g.next,T=h.pending;if(T!==null){var k=T.next;T.next=j,g.next=k}h.pending=g}ca=null}return a}function yO(a,l){do{var h=Lt;try{if(cv(),Hf.current=Xf,Vf){for(var g=Ot.memoizedState;g!==null;){var j=g.queue;j!==null&&(j.pending=null),g=g.next}Vf=!1}if(fa=0,er=Ut=Ot=null,bc=!1,wc=0,zv.current=null,h===null||h.return===null){Wt=1,Oc=l,Lt=null;break}e:{var T=a,k=h.return,z=h,G=l;if(l=ur,z.flags|=32768,G!==null&&typeof G=="object"&&typeof G.then=="function"){var te=G,le=z,ce=le.tag;if((le.mode&1)===0&&(ce===0||ce===11||ce===15)){var se=le.alternate;se?(le.updateQueue=se.updateQueue,le.memoizedState=se.memoizedState,le.lanes=se.lanes):(le.updateQueue=null,le.memoizedState=null)}var ye=UP(k);if(ye!==null){ye.flags&=-257,WP(ye,k,z,T,l),ye.mode&1&&qP(T,te,l),l=ye,G=te;var _e=l.updateQueue;if(_e===null){var je=new Set;je.add(G),l.updateQueue=je}else _e.add(G);break e}else{if((l&1)===0){qP(T,te,l),Yv();break e}G=Error(r(426))}}else if(St&&z.mode&1){var Rt=UP(k);if(Rt!==null){(Rt.flags&65536)===0&&(Rt.flags|=256),WP(Rt,k,z,T,l),sv(ys(G,z));break e}}T=G=ys(G,z),Wt!==4&&(Wt=2),Cc===null?Cc=[T]:Cc.push(T),T=k;do{switch(T.tag){case 3:T.flags|=65536,l&=-l,T.lanes|=l;var J=BP(T,G,l);hP(T,J);break e;case 1:z=G;var Q=T.type,ee=T.stateNode;if((T.flags&128)===0&&(typeof Q.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(bo===null||!bo.has(ee)))){T.flags|=65536,l&=-l,T.lanes|=l;var ue=zP(T,z,l);hP(T,ue);break e}}T=T.return}while(T!==null)}wO(h)}catch(Oe){l=Oe,Lt===h&&h!==null&&(Lt=h=h.return);continue}break}while(!0)}function xO(){var a=td.current;return td.current=Xf,a===null?Xf:a}function Yv(){(Wt===0||Wt===3||Wt===2)&&(Wt=4),tr===null||(da&268435455)===0&&(rd&268435455)===0||_o(tr,ur)}function ld(a,l){var h=rt;rt|=2;var g=xO();(tr!==a||ur!==l)&&(_i=null,pa(a,l));do try{a5();break}catch(j){yO(a,j)}while(!0);if(cv(),rt=h,td.current=g,Lt!==null)throw Error(r(261));return tr=null,ur=0,Wt}function a5(){for(;Lt!==null;)bO(Lt)}function s5(){for(;Lt!==null&&!k4();)bO(Lt)}function bO(a){var l=jO(a.alternate,a,Vr);a.memoizedProps=a.pendingProps,l===null?wO(a):Lt=l,zv.current=null}function wO(a){var l=a;do{var h=l.alternate;if(a=l.return,(l.flags&32768)===0){if(h=JF(h,l,Vr),h!==null){Lt=h;return}}else{if(h=e5(h,l),h!==null){h.flags&=32767,Lt=h;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Wt=6,Lt=null;return}}if(l=l.sibling,l!==null){Lt=l;return}Lt=l=a}while(l!==null);Wt===0&&(Wt=5)}function ma(a,l,h){var g=lt,j=un.transition;try{un.transition=null,lt=1,l5(a,l,h,g)}finally{un.transition=j,lt=g}return null}function l5(a,l,h,g){do Ss();while(wo!==null);if((rt&6)!==0)throw Error(r(327));h=a.finishedWork;var j=a.finishedLanes;if(h===null)return null;if(a.finishedWork=null,a.finishedLanes=0,h===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0;var T=h.lanes|h.childLanes;if(q4(a,T),a===tr&&(Lt=tr=null,ur=0),(h.subtreeFlags&2064)===0&&(h.flags&2064)===0||id||(id=!0,PO(df,function(){return Ss(),null})),T=(h.flags&15990)!==0,(h.subtreeFlags&15990)!==0||T){T=un.transition,un.transition=null;var k=lt;lt=1;var z=rt;rt|=4,zv.current=null,r5(a,h),fO(h,a),AF(Ym),xf=!!Xm,Ym=Xm=null,a.current=h,n5(h),R4(),rt=z,lt=k,un.transition=T}else a.current=h;if(id&&(id=!1,wo=a,od=j),T=a.pendingLanes,T===0&&(bo=null),$4(h.stateNode),Lr(a,kt()),l!==null)for(g=a.onRecoverableError,h=0;h<l.length;h++)j=l[h],g(j.value,{componentStack:j.stack,digest:j.digest});if(nd)throw nd=!1,a=Wv,Wv=null,a;return(od&1)!==0&&a.tag!==0&&Ss(),T=a.pendingLanes,(T&1)!==0?a===Hv?Ac++:(Ac=0,Hv=a):Ac=0,vo(),null}function Ss(){if(wo!==null){var a=cj(od),l=un.transition,h=lt;try{if(un.transition=null,lt=16>a?16:a,wo===null)var g=!1;else{if(a=wo,wo=null,od=0,(rt&6)!==0)throw Error(r(331));var j=rt;for(rt|=4,we=a.current;we!==null;){var T=we,k=T.child;if((we.flags&16)!==0){var z=T.deletions;if(z!==null){for(var G=0;G<z.length;G++){var te=z[G];for(we=te;we!==null;){var le=we;switch(le.tag){case 0:case 11:case 15:Pc(8,le,T)}var ce=le.child;if(ce!==null)ce.return=le,we=ce;else for(;we!==null;){le=we;var se=le.sibling,ye=le.return;if(aO(le),le===te){we=null;break}if(se!==null){se.return=ye,we=se;break}we=ye}}}var _e=T.alternate;if(_e!==null){var je=_e.child;if(je!==null){_e.child=null;do{var Rt=je.sibling;je.sibling=null,je=Rt}while(je!==null)}}we=T}}if((T.subtreeFlags&2064)!==0&&k!==null)k.return=T,we=k;else e:for(;we!==null;){if(T=we,(T.flags&2048)!==0)switch(T.tag){case 0:case 11:case 15:Pc(9,T,T.return)}var J=T.sibling;if(J!==null){J.return=T.return,we=J;break e}we=T.return}}var Q=a.current;for(we=Q;we!==null;){k=we;var ee=k.child;if((k.subtreeFlags&2064)!==0&&ee!==null)ee.return=k,we=ee;else e:for(k=Q;we!==null;){if(z=we,(z.flags&2048)!==0)try{switch(z.tag){case 0:case 11:case 15:ed(9,z)}}catch(Oe){Tt(z,z.return,Oe)}if(z===k){we=null;break e}var ue=z.sibling;if(ue!==null){ue.return=z.return,we=ue;break e}we=z.return}}if(rt=j,vo(),Un&&typeof Un.onPostCommitFiberRoot=="function")try{Un.onPostCommitFiberRoot(hf,a)}catch{}g=!0}return g}finally{lt=h,un.transition=l}}return!1}function SO(a,l,h){l=ys(h,l),l=BP(a,l,1),a=yo(a,l,1),l=Ar(),a!==null&&(Zl(a,1,l),Lr(a,l))}function Tt(a,l,h){if(a.tag===3)SO(a,a,h);else for(;l!==null;){if(l.tag===3){SO(l,a,h);break}else if(l.tag===1){var g=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(bo===null||!bo.has(g))){a=ys(h,a),a=zP(l,a,1),l=yo(l,a,1),a=Ar(),l!==null&&(Zl(l,1,a),Lr(l,a));break}}l=l.return}}function c5(a,l,h){var g=a.pingCache;g!==null&&g.delete(l),l=Ar(),a.pingedLanes|=a.suspendedLanes&h,tr===a&&(ur&h)===h&&(Wt===4||Wt===3&&(ur&130023424)===ur&&500>kt()-Uv?pa(a,0):qv|=h),Lr(a,l)}function _O(a,l){l===0&&((a.mode&1)===0?l=1:(l=mf,mf<<=1,(mf&130023424)===0&&(mf=4194304)));var h=Ar();a=bi(a,l),a!==null&&(Zl(a,l,h),Lr(a,h))}function u5(a){var l=a.memoizedState,h=0;l!==null&&(h=l.retryLane),_O(a,h)}function f5(a,l){var h=0;switch(a.tag){case 13:var g=a.stateNode,j=a.memoizedState;j!==null&&(h=j.retryLane);break;case 19:g=a.stateNode;break;default:throw Error(r(314))}g!==null&&g.delete(l),_O(a,h)}var jO;jO=function(a,l,h){if(a!==null)if(a.memoizedProps!==l.pendingProps||Mr.current)$r=!0;else{if((a.lanes&h)===0&&(l.flags&128)===0)return $r=!1,ZF(a,l,h);$r=(a.flags&131072)!==0}else $r=!1,St&&(l.flags&1048576)!==0&&nP(l,Df,l.index);switch(l.lanes=0,l.tag){case 2:var g=l.type;Zf(a,l),a=l.pendingProps;var j=us(l,yr.current);vs(l,h),j=bv(null,l,g,a,j,h);var T=wv();return l.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(l.tag=1,l.memoizedState=null,l.updateQueue=null,Ir(g)?(T=!0,Mf(l)):T=!1,l.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,hv(l),j.updater=Yf,l.stateNode=j,j._reactInternals=l,Cv(l,g,a,h),l=Nv(null,l,g,!0,T,h)):(l.tag=0,St&&T&&nv(l),Cr(null,l,j,h),l=l.child),l;case 16:g=l.elementType;e:{switch(Zf(a,l),a=l.pendingProps,j=g._init,g=j(g._payload),l.type=g,j=l.tag=h5(g),a=Tn(g,a),j){case 0:l=Tv(null,l,g,a,h);break e;case 1:l=YP(null,l,g,a,h);break e;case 11:l=HP(null,l,g,a,h);break e;case 14:l=VP(null,l,g,Tn(g.type,a),h);break e}throw Error(r(306,g,""))}return l;case 0:return g=l.type,j=l.pendingProps,j=l.elementType===g?j:Tn(g,j),Tv(a,l,g,j,h);case 1:return g=l.type,j=l.pendingProps,j=l.elementType===g?j:Tn(g,j),YP(a,l,g,j,h);case 3:e:{if(QP(l),a===null)throw Error(r(387));g=l.pendingProps,T=l.memoizedState,j=T.element,dP(a,l),Uf(l,g,null,h);var k=l.memoizedState;if(g=k.element,T.isDehydrated)if(T={element:g,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},l.updateQueue.baseState=T,l.memoizedState=T,l.flags&256){j=ys(Error(r(423)),l),l=ZP(a,l,g,h,j);break e}else if(g!==j){j=ys(Error(r(424)),l),l=ZP(a,l,g,h,j);break e}else for(Hr=ho(l.stateNode.containerInfo.firstChild),Wr=l,St=!0,En=null,h=uP(l,null,g,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling;else{if(hs(),g===j){l=Si(a,l,h);break e}Cr(a,l,g,h)}l=l.child}return l;case 5:return mP(l),a===null&&av(l),g=l.type,j=l.pendingProps,T=a!==null?a.memoizedProps:null,k=j.children,Qm(g,j)?k=null:T!==null&&Qm(g,T)&&(l.flags|=32),XP(a,l),Cr(a,l,k,h),l.child;case 6:return a===null&&av(l),null;case 13:return JP(a,l,h);case 4:return pv(l,l.stateNode.containerInfo),g=l.pendingProps,a===null?l.child=ps(l,null,g,h):Cr(a,l,g,h),l.child;case 11:return g=l.type,j=l.pendingProps,j=l.elementType===g?j:Tn(g,j),HP(a,l,g,j,h);case 7:return Cr(a,l,l.pendingProps,h),l.child;case 8:return Cr(a,l,l.pendingProps.children,h),l.child;case 12:return Cr(a,l,l.pendingProps.children,h),l.child;case 10:e:{if(g=l.type._context,j=l.pendingProps,T=l.memoizedProps,k=j.value,dt(Bf,g._currentValue),g._currentValue=k,T!==null)if(An(T.value,k)){if(T.children===j.children&&!Mr.current){l=Si(a,l,h);break e}}else for(T=l.child,T!==null&&(T.return=l);T!==null;){var z=T.dependencies;if(z!==null){k=T.child;for(var G=z.firstContext;G!==null;){if(G.context===g){if(T.tag===1){G=wi(-1,h&-h),G.tag=2;var te=T.updateQueue;if(te!==null){te=te.shared;var le=te.pending;le===null?G.next=G:(G.next=le.next,le.next=G),te.pending=G}}T.lanes|=h,G=T.alternate,G!==null&&(G.lanes|=h),fv(T.return,h,l),z.lanes|=h;break}G=G.next}}else if(T.tag===10)k=T.type===l.type?null:T.child;else if(T.tag===18){if(k=T.return,k===null)throw Error(r(341));k.lanes|=h,z=k.alternate,z!==null&&(z.lanes|=h),fv(k,h,l),k=T.sibling}else k=T.child;if(k!==null)k.return=T;else for(k=T;k!==null;){if(k===l){k=null;break}if(T=k.sibling,T!==null){T.return=k.return,k=T;break}k=k.return}T=k}Cr(a,l,j.children,h),l=l.child}return l;case 9:return j=l.type,g=l.pendingProps.children,vs(l,h),j=ln(j),g=g(j),l.flags|=1,Cr(a,l,g,h),l.child;case 14:return g=l.type,j=Tn(g,l.pendingProps),j=Tn(g.type,j),VP(a,l,g,j,h);case 15:return GP(a,l,l.type,l.pendingProps,h);case 17:return g=l.type,j=l.pendingProps,j=l.elementType===g?j:Tn(g,j),Zf(a,l),l.tag=1,Ir(g)?(a=!0,Mf(l)):a=!1,vs(l,h),LP(l,g,j),Cv(l,g,j,h),Nv(null,l,g,!0,a,h);case 19:return tO(a,l,h);case 22:return KP(a,l,h)}throw Error(r(156,l.tag))};function PO(a,l){return ij(a,l)}function d5(a,l,h,g){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(a,l,h,g){return new d5(a,l,h,g)}function Qv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function h5(a){if(typeof a=="function")return Qv(a)?1:0;if(a!=null){if(a=a.$$typeof,a===$)return 11;if(a===H)return 14}return 2}function jo(a,l){var h=a.alternate;return h===null?(h=fn(a.tag,l,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h.alternate=a,a.alternate=h):(h.pendingProps=l,h.type=a.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=a.flags&14680064,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue,l=a.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h}function cd(a,l,h,g,j,T){var k=2;if(g=a,typeof a=="function")Qv(a)&&(k=1);else if(typeof a=="string")k=5;else e:switch(a){case N:return va(h.children,j,T,l);case R:k=8,j|=8;break;case M:return a=fn(12,h,l,j|2),a.elementType=M,a.lanes=T,a;case L:return a=fn(13,h,l,j),a.elementType=L,a.lanes=T,a;case U:return a=fn(19,h,l,j),a.elementType=U,a.lanes=T,a;case X:return ud(h,j,T,l);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case F:k=10;break e;case I:k=9;break e;case $:k=11;break e;case H:k=14;break e;case B:k=16,g=null;break e}throw Error(r(130,a==null?a:typeof a,""))}return l=fn(k,h,l,j),l.elementType=a,l.type=g,l.lanes=T,l}function va(a,l,h,g){return a=fn(7,a,g,l),a.lanes=h,a}function ud(a,l,h,g){return a=fn(22,a,g,l),a.elementType=X,a.lanes=h,a.stateNode={isHidden:!1},a}function Zv(a,l,h){return a=fn(6,a,null,l),a.lanes=h,a}function Jv(a,l,h){return l=fn(4,a.children!==null?a.children:[],a.key,l),l.lanes=h,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}function p5(a,l,h,g,j){this.tag=l,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Om(0),this.expirationTimes=Om(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Om(0),this.identifierPrefix=g,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function eg(a,l,h,g,j,T,k,z,G){return a=new p5(a,l,h,z,G),l===1?(l=1,T===!0&&(l|=8)):l=0,T=fn(3,null,null,l),a.current=T,T.stateNode=a,T.memoizedState={element:g,isDehydrated:h,cache:null,transitions:null,pendingSuspenseBoundaries:null},hv(T),a}function m5(a,l,h){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:g==null?null:""+g,children:a,containerInfo:l,implementation:h}}function OO(a){if(!a)return mo;a=a._reactInternals;e:{if(ia(a)!==a||a.tag!==1)throw Error(r(170));var l=a;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Ir(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(l!==null);throw Error(r(171))}if(a.tag===1){var h=a.type;if(Ir(h))return eP(a,h,l)}return l}function CO(a,l,h,g,j,T,k,z,G){return a=eg(h,g,!0,a,j,T,k,z,G),a.context=OO(null),h=a.current,g=Ar(),j=So(h),T=wi(g,j),T.callback=l??null,yo(h,T,j),a.current.lanes=j,Zl(a,j,g),Lr(a,g),a}function fd(a,l,h,g){var j=l.current,T=Ar(),k=So(j);return h=OO(h),l.context===null?l.context=h:l.pendingContext=h,l=wi(T,k),l.payload={element:a},g=g===void 0?null:g,g!==null&&(l.callback=g),a=yo(j,l,k),a!==null&&(Rn(a,j,k,T),qf(a,j,k)),k}function dd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function AO(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<l?h:l}}function tg(a,l){AO(a,l),(a=a.alternate)&&AO(a,l)}function v5(){return null}var EO=typeof reportError=="function"?reportError:function(a){console.error(a)};function rg(a){this._internalRoot=a}hd.prototype.render=rg.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));fd(a,l,null,null)},hd.prototype.unmount=rg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;ha(function(){fd(null,a,null,null)}),l[vi]=null}};function hd(a){this._internalRoot=a}hd.prototype.unstable_scheduleHydration=function(a){if(a){var l=dj();a={blockedOn:null,target:a,priority:l};for(var h=0;h<co.length&&l!==0&&l<co[h].priority;h++);co.splice(h,0,a),h===0&&mj(a)}};function ng(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function pd(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function TO(){}function g5(a,l,h,g,j){if(j){if(typeof g=="function"){var T=g;g=function(){var te=dd(k);T.call(te)}}var k=CO(l,g,a,0,null,!1,!1,"",TO);return a._reactRootContainer=k,a[vi]=k.current,dc(a.nodeType===8?a.parentNode:a),ha(),k}for(;j=a.lastChild;)a.removeChild(j);if(typeof g=="function"){var z=g;g=function(){var te=dd(G);z.call(te)}}var G=eg(a,0,!1,null,null,!1,!1,"",TO);return a._reactRootContainer=G,a[vi]=G.current,dc(a.nodeType===8?a.parentNode:a),ha(function(){fd(l,G,h,g)}),G}function md(a,l,h,g,j){var T=h._reactRootContainer;if(T){var k=T;if(typeof j=="function"){var z=j;j=function(){var G=dd(k);z.call(G)}}fd(l,k,a,j)}else k=g5(h,l,a,j,g);return dd(k)}uj=function(a){switch(a.tag){case 3:var l=a.stateNode;if(l.current.memoizedState.isDehydrated){var h=Ql(l.pendingLanes);h!==0&&(Cm(l,h|1),Lr(l,kt()),(rt&6)===0&&(ws=kt()+500,vo()))}break;case 13:ha(function(){var g=bi(a,1);if(g!==null){var j=Ar();Rn(g,a,1,j)}}),tg(a,1)}},Am=function(a){if(a.tag===13){var l=bi(a,134217728);if(l!==null){var h=Ar();Rn(l,a,134217728,h)}tg(a,134217728)}},fj=function(a){if(a.tag===13){var l=So(a),h=bi(a,l);if(h!==null){var g=Ar();Rn(h,a,l,g)}tg(a,l)}},dj=function(){return lt},hj=function(a,l){var h=lt;try{return lt=a,l()}finally{lt=h}},bm=function(a,l,h){switch(l){case"input":if(mt(a,h),l=h.name,h.type==="radio"&&l!=null){for(h=a;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<h.length;l++){var g=h[l];if(g!==a&&g.form===a.form){var j=kf(g);if(!j)throw Error(r(90));Z(g),mt(g,j)}}}break;case"textarea":Wl(a,h);break;case"select":l=h.value,l!=null&&vr(a,!!h.multiple,l,!1)}},Q_=Kv,Z_=ha;var y5={usingClientEntryPoint:!1,Events:[mc,ls,kf,X_,Y_,Kv]},Ec={findFiberByHostInstance:oa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},x5={bundleType:Ec.bundleType,version:Ec.version,rendererPackageName:Ec.rendererPackageName,rendererConfig:Ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=rj(a),a===null?null:a.stateNode},findFiberByHostInstance:Ec.findFiberByHostInstance||v5,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vd.isDisabled&&vd.supportsFiber)try{hf=vd.inject(x5),Un=vd}catch{}}return Fr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=y5,Fr.createPortal=function(a,l){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ng(l))throw Error(r(200));return m5(a,l,null,h)},Fr.createRoot=function(a,l){if(!ng(a))throw Error(r(299));var h=!1,g="",j=EO;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onRecoverableError!==void 0&&(j=l.onRecoverableError)),l=eg(a,1,!1,null,null,h,!1,g,j),a[vi]=l.current,dc(a.nodeType===8?a.parentNode:a),new rg(l)},Fr.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=rj(l),a=a===null?null:a.stateNode,a},Fr.flushSync=function(a){return ha(a)},Fr.hydrate=function(a,l,h){if(!pd(l))throw Error(r(200));return md(null,a,l,!0,h)},Fr.hydrateRoot=function(a,l,h){if(!ng(a))throw Error(r(405));var g=h!=null&&h.hydratedSources||null,j=!1,T="",k=EO;if(h!=null&&(h.unstable_strictMode===!0&&(j=!0),h.identifierPrefix!==void 0&&(T=h.identifierPrefix),h.onRecoverableError!==void 0&&(k=h.onRecoverableError)),l=CO(l,null,a,1,h??null,j,!1,T,k),a[vi]=l.current,dc(a),g)for(a=0;a<g.length;a++)h=g[a],j=h._getVersion,j=j(h._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[h,j]:l.mutableSourceEagerHydrationData.push(h,j);return new hd(l)},Fr.render=function(a,l,h){if(!pd(l))throw Error(r(200));return md(null,a,l,!1,h)},Fr.unmountComponentAtNode=function(a){if(!pd(a))throw Error(r(40));return a._reactRootContainer?(ha(function(){md(null,null,a,!1,function(){a._reactRootContainer=null,a[vi]=null})}),!0):!1},Fr.unstable_batchedUpdates=Kv,Fr.unstable_renderSubtreeIntoContainer=function(a,l,h,g){if(!pd(h))throw Error(r(200));if(a==null||a._reactInternals===void 0)throw Error(r(38));return md(a,l,h,!1,g)},Fr.version="18.3.1-next-f1338f8080-20240426",Fr}var zO;function UR(){if(zO)return lg.exports;zO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lg.exports=E5(),lg.exports}var qO;function T5(){if(qO)return yd;qO=1;var e=UR();return yd.createRoot=e.createRoot,yd.hydrateRoot=e.hydrateRoot,yd}var N5=T5(),Wu=UR();/**
|
|
41
|
+
* @remix-run/router v1.23.4
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Remix Software Inc.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
+
*
|
|
48
|
+
* @license MIT
|
|
49
|
+
*/function eu(){return eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eu.apply(null,arguments)}var ko;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ko||(ko={}));const UO="popstate";function k5(e){e===void 0&&(e={});function t(n,i){let{pathname:o,search:s,hash:c}=n.location;return I0("",{pathname:o,search:s,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:th(i)}return M5(t,r,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function WR(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function R5(){return Math.random().toString(36).substr(2,8)}function WO(e,t){return{usr:e.state,key:e.key,idx:t}}function I0(e,t,r,n){return r===void 0&&(r=null),eu({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ol(t):t,{state:r,key:t&&t.key||n||R5()})}function th(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ol(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function M5(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,s=i.history,c=ko.Pop,f=null,d=m();d==null&&(d=0,s.replaceState(eu({},s.state,{idx:d}),""));function m(){return(s.state||{idx:null}).idx}function p(){c=ko.Pop;let y=m(),P=y==null?null:y-d;d=y,f&&f({action:c,location:w.location,delta:P})}function v(y,P){c=ko.Push;let O=I0(w.location,y,P);d=m()+1;let A=WO(O,d),C=w.createHref(O);try{s.pushState(A,"",C)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(C)}o&&f&&f({action:c,location:w.location,delta:1})}function x(y,P){c=ko.Replace;let O=I0(w.location,y,P);d=m();let A=WO(O,d),C=w.createHref(O);s.replaceState(A,"",C),o&&f&&f({action:c,location:w.location,delta:0})}function b(y){let P=i.location.origin!=="null"?i.location.origin:i.location.href,O=typeof y=="string"?y:th(y);return O=O.replace(/ $/,"%20"),Ct(P,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,P)}let w={get action(){return c},get location(){return e(i,s)},listen(y){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(UO,p),f=y,()=>{i.removeEventListener(UO,p),f=null}},createHref(y){return t(i,y)},createURL:b,encodeLocation(y){let P=b(y);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:v,replace:x,go(y){return s.go(y)}};return w}var HO;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(HO||(HO={}));function I5(e,t,r){return r===void 0&&(r="/"),$5(e,t,r)}function $5(e,t,r,n){let i=typeof t=="string"?Ol(t):t,o=Qs(i.pathname||"/",r);if(o==null)return null;let s=HR(e);D5(s);let c=null,f=K5(o);for(let d=0;c==null&&d<s.length;++d)c=V5(s[d],f);return c}function HR(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,s,c)=>{let f={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};f.relativePath.startsWith("/")&&(Ct(f.relativePath.startsWith(n),'Absolute route path "'+f.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),f.relativePath=f.relativePath.slice(n.length));let d=Io([n,f.relativePath]),m=r.concat(f);o.children&&o.children.length>0&&(Ct(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),HR(o.children,t,m,d)),!(o.path==null&&!o.index)&&t.push({path:d,score:W5(d,o.index),routesMeta:m})};return e.forEach((o,s)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))i(o,s);else for(let f of VR(o.path))i(o,s,f)}),t}function VR(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let s=VR(n.join("/")),c=[];return c.push(...s.map(f=>f===""?o:[o,f].join("/"))),i&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function D5(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:H5(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const L5=/^:[\w-]+$/,F5=3,B5=2,z5=1,q5=10,U5=-2,VO=e=>e==="*";function W5(e,t){let r=e.split("/"),n=r.length;return r.some(VO)&&(n+=U5),t&&(n+=B5),r.filter(i=>!VO(i)).reduce((i,o)=>i+(L5.test(o)?F5:o===""?z5:q5),n)}function H5(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function V5(e,t,r){let{routesMeta:n}=e,i={},o="/",s=[];for(let c=0;c<n.length;++c){let f=n[c],d=c===n.length-1,m=o==="/"?t:t.slice(o.length)||"/",p=$0({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),v=f.route;if(!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Io([o,p.pathname]),pathnameBase:Q5(Io([o,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(o=Io([o,p.pathnameBase]))}return s}function $0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=G5(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:n.reduce((d,m,p)=>{let{paramName:v,isOptional:x}=m;if(v==="*"){let w=c[p]||"";s=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const b=c[p];return x&&!b?d[v]=void 0:d[v]=(b||"").replace(/%2F/g,"/"),d},{}),pathname:o,pathnameBase:s,pattern:e}}function G5(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),WR(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(n.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function K5(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return WR(!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 Qs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function X5(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Ol(e):e,o;return r?(r=GR(r),r.startsWith("/")?o=GO(r.substring(1),"/"):o=GO(r,t)):o=t,{pathname:o,search:Z5(n),hash:J5(i)}}function GO(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function fg(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Y5(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function N1(e,t){let r=Y5(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function k1(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Ol(e):(i=eu({},e),Ct(!i.pathname||!i.pathname.includes("?"),fg("?","pathname","search",i)),Ct(!i.pathname||!i.pathname.includes("#"),fg("#","pathname","hash",i)),Ct(!i.search||!i.search.includes("#"),fg("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,c;if(s==null)c=r;else{let p=t.length-1;if(!n&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),p-=1;i.pathname=v.join("/")}c=p>=0?t[p]:"/"}let f=X5(i,c),d=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&r.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}const GR=e=>e.replace(/\/\/+/g,"/"),Io=e=>GR(e.join("/")),Q5=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Z5=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,J5=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eB(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const KR=["post","put","patch","delete"];new Set(KR);const tB=["get",...KR];new Set(tB);/**
|
|
50
|
+
* React Router v6.30.6
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tu.apply(null,arguments)}const gp=S.createContext(null),XR=S.createContext(null),Ji=S.createContext(null),yp=S.createContext(null),ui=S.createContext({outlet:null,matches:[],isDataRoute:!1}),YR=S.createContext(null);function rB(e,t){let{relative:r}=t===void 0?{}:t;Cl()||Ct(!1);let{basename:n,navigator:i}=S.useContext(Ji),{hash:o,pathname:s,search:c}=xp(e,{relative:r}),f=s;return n!=="/"&&(f=s==="/"?n:Io([n,s])),i.createHref({pathname:f,search:c,hash:o})}function Cl(){return S.useContext(yp)!=null}function qa(){return Cl()||Ct(!1),S.useContext(yp).location}function QR(e){S.useContext(Ji).static||S.useLayoutEffect(e)}function Ko(){let{isDataRoute:e}=S.useContext(ui);return e?gB():nB()}function nB(){Cl()||Ct(!1);let e=S.useContext(gp),{basename:t,future:r,navigator:n}=S.useContext(Ji),{matches:i}=S.useContext(ui),{pathname:o}=qa(),s=JSON.stringify(N1(i,r.v7_relativeSplatPath)),c=S.useRef(!1);return QR(()=>{c.current=!0}),S.useCallback(function(d,m){if(m===void 0&&(m={}),!c.current)return;if(typeof d=="number"){n.go(d);return}let p=k1(d,JSON.parse(s),o,m.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Io([t,p.pathname])),(m.replace?n.replace:n.push)(p,m.state,m)},[t,n,s,o,e])}const iB=S.createContext(null);function oB(e){let t=S.useContext(ui).outlet;return t&&S.createElement(iB.Provider,{value:e},t)}function R1(){let{matches:e}=S.useContext(ui),t=e[e.length-1];return t?t.params:{}}function xp(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=S.useContext(Ji),{matches:i}=S.useContext(ui),{pathname:o}=qa(),s=JSON.stringify(N1(i,n.v7_relativeSplatPath));return S.useMemo(()=>k1(e,JSON.parse(s),o,r==="path"),[e,s,o,r])}function aB(e,t){return sB(e,t)}function sB(e,t,r,n){Cl()||Ct(!1);let{navigator:i}=S.useContext(Ji),{matches:o}=S.useContext(ui),s=o[o.length-1],c=s?s.params:{};s&&s.pathname;let f=s?s.pathnameBase:"/";s&&s.route;let d=qa(),m;if(t){var p;let y=typeof t=="string"?Ol(t):t;f==="/"||(p=y.pathname)!=null&&p.startsWith(f)||Ct(!1),m=y}else m=d;let v=m.pathname||"/",x=v;if(f!=="/"){let y=f.replace(/^\//,"").split("/");x="/"+v.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=I5(e,{pathname:x}),w=dB(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},c,y.params),pathname:Io([f,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?f:Io([f,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r,n);return t&&w?S.createElement(yp.Provider,{value:{location:tu({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ko.Pop}},w):w}function lB(){let e=vB(),t=eB(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),r?S.createElement("pre",{style:i},r):null,null)}const cB=S.createElement(lB,null);class uB extends S.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?S.createElement(ui.Provider,{value:this.props.routeContext},S.createElement(YR.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fB(e){let{routeContext:t,match:r,children:n}=e,i=S.useContext(gp);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),S.createElement(ui.Provider,{value:t},n)}function dB(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=(i=r)==null?void 0:i.errors;if(c!=null){let m=s.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);m>=0||Ct(!1),s=s.slice(0,Math.min(s.length,m+1))}let f=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let m=0;m<s.length;m++){let p=s[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(d=m),p.route.id){let{loaderData:v,errors:x}=r,b=p.route.loader&&v[p.route.id]===void 0&&(!x||x[p.route.id]===void 0);if(p.route.lazy||b){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}return s.reduceRight((m,p,v)=>{let x,b=!1,w=null,y=null;r&&(x=c&&p.route.id?c[p.route.id]:void 0,w=p.route.errorElement||cB,f&&(d<0&&v===0?(yB("route-fallback"),b=!0,y=null):d===v&&(b=!0,y=p.route.hydrateFallbackElement||null)));let P=t.concat(s.slice(0,v+1)),O=()=>{let A;return x?A=w:b?A=y:p.route.Component?A=S.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=m,S.createElement(fB,{match:p,routeContext:{outlet:m,matches:P,isDataRoute:r!=null},children:A})};return r&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?S.createElement(uB,{location:r.location,revalidation:r.revalidation,component:w,error:x,children:O(),routeContext:{outlet:null,matches:P,isDataRoute:!0}}):O()},null)}var ZR=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(ZR||{}),JR=(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})(JR||{});function hB(e){let t=S.useContext(gp);return t||Ct(!1),t}function pB(e){let t=S.useContext(XR);return t||Ct(!1),t}function mB(e){let t=S.useContext(ui);return t||Ct(!1),t}function eM(e){let t=mB(),r=t.matches[t.matches.length-1];return r.route.id||Ct(!1),r.route.id}function vB(){var e;let t=S.useContext(YR),r=pB(),n=eM();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function gB(){let{router:e}=hB(ZR.UseNavigateStable),t=eM(JR.UseNavigateStable),r=S.useRef(!1);return QR(()=>{r.current=!0}),S.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,tu({fromRouteId:t},o)))},[e,t])}const KO={};function yB(e,t,r){KO[e]||(KO[e]=!0)}function xB(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function bB(e){let{to:t,replace:r,state:n,relative:i}=e;Cl()||Ct(!1);let{future:o,static:s}=S.useContext(Ji),{matches:c}=S.useContext(ui),{pathname:f}=qa(),d=Ko(),m=k1(t,N1(c,o.v7_relativeSplatPath),f,i==="path"),p=JSON.stringify(m);return S.useEffect(()=>d(JSON.parse(p),{replace:r,state:n,relative:i}),[d,p,i,r,n]),null}function wB(e){return oB(e.context)}function Vt(e){Ct(!1)}function SB(e){let{basename:t="/",children:r=null,location:n,navigationType:i=ko.Pop,navigator:o,static:s=!1,future:c}=e;Cl()&&Ct(!1);let f=t.replace(/^\/*/,"/"),d=S.useMemo(()=>({basename:f,navigator:o,static:s,future:tu({v7_relativeSplatPath:!1},c)}),[f,c,o,s]);typeof n=="string"&&(n=Ol(n));let{pathname:m="/",search:p="",hash:v="",state:x=null,key:b="default"}=n,w=S.useMemo(()=>{let y=Qs(m,f);return y==null?null:{location:{pathname:y,search:p,hash:v,state:x,key:b},navigationType:i}},[f,m,p,v,x,b,i]);return w==null?null:S.createElement(Ji.Provider,{value:d},S.createElement(yp.Provider,{children:r,value:w}))}function _B(e){let{children:t,location:r}=e;return aB(D0(t),r)}new Promise(()=>{});function D0(e,t){t===void 0&&(t=[]);let r=[];return S.Children.forEach(e,(n,i)=>{if(!S.isValidElement(n))return;let o=[...t,i];if(n.type===S.Fragment){r.push.apply(r,D0(n.props.children,o));return}n.type!==Vt&&Ct(!1),!n.props.index||!n.props.children||Ct(!1);let s={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=D0(n.props.children,o)),r.push(s)}),r}/**
|
|
59
|
+
* React Router DOM v6.30.6
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Remix Software Inc.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
+
*
|
|
66
|
+
* @license MIT
|
|
67
|
+
*/function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rh.apply(null,arguments)}function tM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function jB(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function PB(e,t){return e.button===0&&(!t||t==="_self")&&!jB(e)}function L0(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(i=>[r,i]):[[r,n]])},[]))}function OB(e,t){let r=L0(e);return t&&t.forEach((n,i)=>{r.has(i)||t.getAll(i).forEach(o=>{r.append(i,o)})}),r}const CB=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],AB=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],EB="6";try{window.__reactRouterVersion=EB}catch{}const TB=S.createContext({isTransitioning:!1}),NB="startTransition",XO=Go[NB];function kB(e){let{basename:t,children:r,future:n,window:i}=e,o=S.useRef();o.current==null&&(o.current=k5({window:i,v5Compat:!0}));let s=o.current,[c,f]=S.useState({action:s.action,location:s.location}),{v7_startTransition:d}=n||{},m=S.useCallback(p=>{d&&XO?XO(()=>f(p)):f(p)},[f,d]);return S.useLayoutEffect(()=>s.listen(m),[s,m]),S.useEffect(()=>xB(n),[n]),S.createElement(SB,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:s,future:n})}const RB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ge=S.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:o,replace:s,state:c,target:f,to:d,preventScrollReset:m,viewTransition:p}=t,v=tM(t,CB),{basename:x}=S.useContext(Ji),b,w=!1;if(typeof d=="string"&&MB.test(d)&&(b=d,RB))try{let A=new URL(window.location.href),C=d.startsWith("//")?new URL(A.protocol+d):new URL(d),_=Qs(C.pathname,x);C.origin===A.origin&&_!=null?d=_+C.search+C.hash:w=!0}catch{}let y=rB(d,{relative:i}),P=DB(d,{replace:s,state:c,target:f,preventScrollReset:m,relative:i,viewTransition:p});function O(A){n&&n(A),A.defaultPrevented||P(A)}return S.createElement("a",rh({},v,{href:b||y,onClick:w||o?n:O,ref:r,target:f}))}),IB=S.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:o="",end:s=!1,style:c,to:f,viewTransition:d,children:m}=t,p=tM(t,AB),v=xp(f,{relative:p.relative}),x=qa(),b=S.useContext(XR),{navigator:w,basename:y}=S.useContext(Ji),P=b!=null&&LB(v)&&d===!0,O=w.encodeLocation?w.encodeLocation(v).pathname:v.pathname,A=x.pathname,C=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;i||(A=A.toLowerCase(),C=C?C.toLowerCase():null,O=O.toLowerCase()),C&&y&&(C=Qs(C,y)||C);const _=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let E=A===O||!s&&A.startsWith(O)&&A.charAt(_)==="/",N=C!=null&&(C===O||!s&&C.startsWith(O)&&C.charAt(O.length)==="/"),R={isActive:E,isPending:N,isTransitioning:P},M=E?n:void 0,F;typeof o=="function"?F=o(R):F=[o,E?"active":null,N?"pending":null,P?"transitioning":null].filter(Boolean).join(" ");let I=typeof c=="function"?c(R):c;return S.createElement(Ge,rh({},p,{"aria-current":M,className:F,ref:r,style:I,to:f,viewTransition:d}),typeof m=="function"?m(R):m)});var F0;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(F0||(F0={}));var YO;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(YO||(YO={}));function $B(e){let t=S.useContext(gp);return t||Ct(!1),t}function DB(e,t){let{target:r,replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:c}=t===void 0?{}:t,f=Ko(),d=qa(),m=xp(e,{relative:s});return S.useCallback(p=>{if(PB(p,r)){p.preventDefault();let v=n!==void 0?n:th(d)===th(m);f(e,{replace:v,state:i,preventScrollReset:o,relative:s,viewTransition:c})}},[d,f,m,n,i,r,e,o,s,c])}function rM(e){let t=S.useRef(L0(e)),r=S.useRef(!1),n=qa(),i=S.useMemo(()=>OB(n.search,r.current?null:t.current),[n.search]),o=Ko(),s=S.useCallback((c,f)=>{const d=L0(typeof c=="function"?c(i):c);r.current=!0,o("?"+d,f)},[o,i]);return[i,s]}function LB(e,t){t===void 0&&(t={});let r=S.useContext(TB);r==null&&Ct(!1);let{basename:n}=$B(F0.useViewTransitionState),i=xp(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=Qs(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Qs(r.nextLocation.pathname,n)||r.nextLocation.pathname;return $0(i.pathname,s)!=null||$0(i.pathname,o)!=null}/**
|
|
68
|
+
* @license lucide-react v0.468.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/const FB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nM=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/**
|
|
73
|
+
* @license lucide-react v0.468.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/var BB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
78
|
+
* @license lucide-react v0.468.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const zB=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:o,iconNode:s,...c},f)=>S.createElement("svg",{ref:f,...BB,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:nM("lucide",i),...c},[...s.map(([d,m])=>S.createElement(d,m)),...Array.isArray(o)?o:[o]]));/**
|
|
83
|
+
* @license lucide-react v0.468.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const Ne=(e,t)=>{const r=S.forwardRef(({className:n,...i},o)=>S.createElement(zB,{ref:o,iconNode:t,className:nM(`lucide-${FB(e)}`,n),...i}));return r.displayName=`${e}`,r};/**
|
|
88
|
+
* @license lucide-react v0.468.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const qB=Ne("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
93
|
+
* @license lucide-react v0.468.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const QO=Ne("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
98
|
+
* @license lucide-react v0.468.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const UB=Ne("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
103
|
+
* @license lucide-react v0.468.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const ZO=Ne("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
108
|
+
* @license lucide-react v0.468.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const JO=Ne("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
113
|
+
* @license lucide-react v0.468.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const B0=Ne("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
|
|
118
|
+
* @license lucide-react v0.468.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const M1=Ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
123
|
+
* @license lucide-react v0.468.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const bp=Ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
128
|
+
* @license lucide-react v0.468.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const WB=Ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
133
|
+
* @license lucide-react v0.468.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const I1=Ne("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
138
|
+
* @license lucide-react v0.468.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const iM=Ne("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
143
|
+
* @license lucide-react v0.468.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const oM=Ne("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
148
|
+
* @license lucide-react v0.468.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const aM=Ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
153
|
+
* @license lucide-react v0.468.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const HB=Ne("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
158
|
+
* @license lucide-react v0.468.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const VB=Ne("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
163
|
+
* @license lucide-react v0.468.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const GB=Ne("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
168
|
+
* @license lucide-react v0.468.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const dg=Ne("FileChartColumnIncreasing",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M12 18v-4",key:"q1q25u"}],["path",{d:"M16 18v-6",key:"15y0np"}]]);/**
|
|
173
|
+
* @license lucide-react v0.468.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const KB=Ne("FileDown",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);/**
|
|
178
|
+
* @license lucide-react v0.468.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const XB=Ne("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
183
|
+
* @license lucide-react v0.468.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const nh=Ne("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
188
|
+
* @license lucide-react v0.468.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const $1=Ne("GitBranchPlus",[["path",{d:"M6 3v12",key:"qpgusn"}],["path",{d:"M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"1d02ji"}],["path",{d:"M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6z",key:"chk6ph"}],["path",{d:"M15 6a9 9 0 0 0-9 9",key:"or332x"}],["path",{d:"M18 15v6",key:"9wciyi"}],["path",{d:"M21 18h-6",key:"139f0c"}]]);/**
|
|
193
|
+
* @license lucide-react v0.468.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const z0=Ne("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
198
|
+
* @license lucide-react v0.468.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const YB=Ne("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
203
|
+
* @license lucide-react v0.468.0 - ISC
|
|
204
|
+
*
|
|
205
|
+
* This source code is licensed under the ISC license.
|
|
206
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
+
*/const QB=Ne("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
208
|
+
* @license lucide-react v0.468.0 - ISC
|
|
209
|
+
*
|
|
210
|
+
* This source code is licensed under the ISC license.
|
|
211
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
+
*/const D1=Ne("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
213
|
+
* @license lucide-react v0.468.0 - ISC
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the ISC license.
|
|
216
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/const ZB=Ne("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
218
|
+
* @license lucide-react v0.468.0 - ISC
|
|
219
|
+
*
|
|
220
|
+
* This source code is licensed under the ISC license.
|
|
221
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
+
*/const JB=Ne("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
223
|
+
* @license lucide-react v0.468.0 - ISC
|
|
224
|
+
*
|
|
225
|
+
* This source code is licensed under the ISC license.
|
|
226
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
227
|
+
*/const ez=Ne("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|
228
|
+
* @license lucide-react v0.468.0 - ISC
|
|
229
|
+
*
|
|
230
|
+
* This source code is licensed under the ISC license.
|
|
231
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
232
|
+
*/const tz=Ne("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
233
|
+
* @license lucide-react v0.468.0 - ISC
|
|
234
|
+
*
|
|
235
|
+
* This source code is licensed under the ISC license.
|
|
236
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
237
|
+
*/const rz=Ne("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
238
|
+
* @license lucide-react v0.468.0 - ISC
|
|
239
|
+
*
|
|
240
|
+
* This source code is licensed under the ISC license.
|
|
241
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
242
|
+
*/const nz=Ne("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
243
|
+
* @license lucide-react v0.468.0 - ISC
|
|
244
|
+
*
|
|
245
|
+
* This source code is licensed under the ISC license.
|
|
246
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
247
|
+
*/const iz=Ne("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
248
|
+
* @license lucide-react v0.468.0 - ISC
|
|
249
|
+
*
|
|
250
|
+
* This source code is licensed under the ISC license.
|
|
251
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
+
*/const L1=Ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);/**
|
|
253
|
+
* @license lucide-react v0.468.0 - ISC
|
|
254
|
+
*
|
|
255
|
+
* This source code is licensed under the ISC license.
|
|
256
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
257
|
+
*/const q0=Ne("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);/**
|
|
258
|
+
* @license lucide-react v0.468.0 - ISC
|
|
259
|
+
*
|
|
260
|
+
* This source code is licensed under the ISC license.
|
|
261
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
262
|
+
*/const oz=Ne("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
263
|
+
* @license lucide-react v0.468.0 - ISC
|
|
264
|
+
*
|
|
265
|
+
* This source code is licensed under the ISC license.
|
|
266
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
267
|
+
*/const U0=Ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
268
|
+
* @license lucide-react v0.468.0 - ISC
|
|
269
|
+
*
|
|
270
|
+
* This source code is licensed under the ISC license.
|
|
271
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
272
|
+
*/const az=Ne("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
|
|
273
|
+
* @license lucide-react v0.468.0 - ISC
|
|
274
|
+
*
|
|
275
|
+
* This source code is licensed under the ISC license.
|
|
276
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
277
|
+
*/const Zs=Ne("Radar",[["path",{d:"M19.07 4.93A10 10 0 0 0 6.99 3.34",key:"z3du51"}],["path",{d:"M4 6h.01",key:"oypzma"}],["path",{d:"M2.29 9.62A10 10 0 1 0 21.31 8.35",key:"qzzz0"}],["path",{d:"M16.24 7.76A6 6 0 1 0 8.23 16.67",key:"1yjesh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M17.99 11.66A6 6 0 0 1 15.77 16.67",key:"1u2y91"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"m13.41 10.59 5.66-5.66",key:"mhq4k0"}]]);/**
|
|
278
|
+
* @license lucide-react v0.468.0 - ISC
|
|
279
|
+
*
|
|
280
|
+
* This source code is licensed under the ISC license.
|
|
281
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
282
|
+
*/const Al=Ne("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
283
|
+
* @license lucide-react v0.468.0 - ISC
|
|
284
|
+
*
|
|
285
|
+
* This source code is licensed under the ISC license.
|
|
286
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
287
|
+
*/const sM=Ne("ScanSearch",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);/**
|
|
288
|
+
* @license lucide-react v0.468.0 - ISC
|
|
289
|
+
*
|
|
290
|
+
* This source code is licensed under the ISC license.
|
|
291
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
292
|
+
*/const sz=Ne("SearchX",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
293
|
+
* @license lucide-react v0.468.0 - ISC
|
|
294
|
+
*
|
|
295
|
+
* This source code is licensed under the ISC license.
|
|
296
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
297
|
+
*/const lz=Ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
298
|
+
* @license lucide-react v0.468.0 - ISC
|
|
299
|
+
*
|
|
300
|
+
* This source code is licensed under the ISC license.
|
|
301
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
302
|
+
*/const cz=Ne("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
|
303
|
+
* @license lucide-react v0.468.0 - ISC
|
|
304
|
+
*
|
|
305
|
+
* This source code is licensed under the ISC license.
|
|
306
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
307
|
+
*/const uz=Ne("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
308
|
+
* @license lucide-react v0.468.0 - ISC
|
|
309
|
+
*
|
|
310
|
+
* This source code is licensed under the ISC license.
|
|
311
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
312
|
+
*/const zi=Ne("ShieldAlert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
|
313
|
+
* @license lucide-react v0.468.0 - ISC
|
|
314
|
+
*
|
|
315
|
+
* This source code is licensed under the ISC license.
|
|
316
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
317
|
+
*/const F1=Ne("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
318
|
+
* @license lucide-react v0.468.0 - ISC
|
|
319
|
+
*
|
|
320
|
+
* This source code is licensed under the ISC license.
|
|
321
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
322
|
+
*/const lM=Ne("ShieldQuestion",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
323
|
+
* @license lucide-react v0.468.0 - ISC
|
|
324
|
+
*
|
|
325
|
+
* This source code is licensed under the ISC license.
|
|
326
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
327
|
+
*/const fz=Ne("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]);/**
|
|
328
|
+
* @license lucide-react v0.468.0 - ISC
|
|
329
|
+
*
|
|
330
|
+
* This source code is licensed under the ISC license.
|
|
331
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
332
|
+
*/const Hu=Ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
333
|
+
* @license lucide-react v0.468.0 - ISC
|
|
334
|
+
*
|
|
335
|
+
* This source code is licensed under the ISC license.
|
|
336
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
337
|
+
*/const dz=Ne("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
338
|
+
* @license lucide-react v0.468.0 - ISC
|
|
339
|
+
*
|
|
340
|
+
* This source code is licensed under the ISC license.
|
|
341
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
342
|
+
*/const hz=Ne("TestTubeDiagonal",[["path",{d:"M21 7 6.82 21.18a2.83 2.83 0 0 1-3.99-.01a2.83 2.83 0 0 1 0-4L17 3",key:"1ub6xw"}],["path",{d:"m16 2 6 6",key:"1gw87d"}],["path",{d:"M12 16H4",key:"1cjfip"}]]);/**
|
|
343
|
+
* @license lucide-react v0.468.0 - ISC
|
|
344
|
+
*
|
|
345
|
+
* This source code is licensed under the ISC license.
|
|
346
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
347
|
+
*/const ru=Ne("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
348
|
+
* @license lucide-react v0.468.0 - ISC
|
|
349
|
+
*
|
|
350
|
+
* This source code is licensed under the ISC license.
|
|
351
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
352
|
+
*/const wp=Ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
353
|
+
* @license lucide-react v0.468.0 - ISC
|
|
354
|
+
*
|
|
355
|
+
* This source code is licensed under the ISC license.
|
|
356
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
357
|
+
*/const pz=Ne("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
358
|
+
* @license lucide-react v0.468.0 - ISC
|
|
359
|
+
*
|
|
360
|
+
* This source code is licensed under the ISC license.
|
|
361
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
362
|
+
*/const mz=Ne("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
|
|
363
|
+
* @license lucide-react v0.468.0 - ISC
|
|
364
|
+
*
|
|
365
|
+
* This source code is licensed under the ISC license.
|
|
366
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
367
|
+
*/const W0=Ne("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
368
|
+
* @license lucide-react v0.468.0 - ISC
|
|
369
|
+
*
|
|
370
|
+
* This source code is licensed under the ISC license.
|
|
371
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
372
|
+
*/const B1=Ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),eC="vcqa-assistant-pos",_s=12,vz=4;function xd(e,t,r){const n=(r==null?void 0:r.offsetWidth)??180,i=(r==null?void 0:r.offsetHeight)??64,o=Math.max(_s,window.innerWidth-n-_s),s=Math.max(_s,window.innerHeight-i-_s);return{x:Math.min(Math.max(_s,e),o),y:Math.min(Math.max(_s,t),s)}}function gz(){const e=S.useRef(null),[t,r]=S.useState(null),n=S.useRef({startX:0,startY:0,dx:0,dy:0,moved:!1,active:!1});S.useEffect(()=>{try{const f=localStorage.getItem(eC);if(f){const d=JSON.parse(f);Number.isFinite(d==null?void 0:d.x)&&Number.isFinite(d==null?void 0:d.y)&&r(xd(d.x,d.y,e.current))}}catch{}},[]),S.useEffect(()=>{if(!t)return;const f=()=>r(d=>d&&xd(d.x,d.y,e.current));return window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)},[t]);const i=S.useCallback(f=>{if(f.button!==0)return;const d=e.current;if(!d)return;const m=d.getBoundingClientRect();n.current={startX:f.clientX,startY:f.clientY,dx:f.clientX-m.left,dy:f.clientY-m.top,moved:!1,active:!0};try{d.setPointerCapture(f.pointerId)}catch{}},[]),o=S.useCallback(f=>{const d=n.current;d.active&&(!d.moved&&Math.hypot(f.clientX-d.startX,f.clientY-d.startY)<vz||(d.moved=!0,r(xd(f.clientX-d.dx,f.clientY-d.dy,e.current))))},[]),s=S.useCallback(f=>{var m;const d=n.current;if(d.active){d.active=!1;try{(m=e.current)==null||m.releasePointerCapture(f.pointerId)}catch{}if(d.moved){const p=xd(f.clientX-d.dx,f.clientY-d.dy,e.current);r(p);try{localStorage.setItem(eC,JSON.stringify(p))}catch{}}}},[]),c=S.useCallback(f=>{n.current.moved&&(f.preventDefault(),n.current.moved=!1)},[]);return u.jsxs(Ge,{ref:e,to:"/assistant","aria-label":"Open AI coding assistant",title:"Drag to move · click to open the AI assistant",className:"assistant-launcher cursor-grab touch-none select-none active:cursor-grabbing",draggable:!1,style:t?{left:t.x,top:t.y,right:"auto",bottom:"auto"}:void 0,onPointerDown:i,onPointerMove:o,onPointerUp:s,onPointerCancel:s,onClick:c,children:[u.jsx("span",{className:"assistant-launcher-mascots",children:u.jsx("img",{src:"/phone-mascots.gif",alt:"","aria-hidden":"true",draggable:!1})}),u.jsxs("span",{className:"assistant-launcher-copy",children:[u.jsx("span",{className:"assistant-launcher-eyebrow",children:"Need a hand?"}),u.jsxs("span",{className:"assistant-launcher-title",children:["Ask AI ",u.jsx(ez,{className:"h-4 w-4"})]})]})]})}const yz=[{label:"Monitor",items:[{to:"/",label:"Overview",icon:YB,end:!0,description:"Health, scores and recent activity across every repository."},{to:"/repositories",label:"Repositories",icon:$1,description:"Register and inspect the repositories under analysis."},{to:"/scans",label:"Scan History",icon:sM,description:"Every scan the engine has actually executed."}]},{label:"Investigate",items:[{to:"/findings",label:"Findings",icon:zi,description:"Every issue with real source evidence and triage state."},{to:"/architecture",label:"Architecture",icon:B0,description:"How the codebase is put together, derived from static analysis."},{to:"/dependencies",label:"Dependencies",icon:q0,description:"Direct and transitive packages with advisory lookups."}]}],xz={to:"/settings",label:"Settings",icon:uz,description:"Scan defaults, AI provider configuration and safety switches."};function cM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=cM(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Je(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=cM(e))&&(n&&(n+=" "),n+=t);return n}const tC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rC=Je,z1=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return rC(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(d=>{const m=r==null?void 0:r[d],p=o==null?void 0:o[d];if(m===null)return null;const v=tC(m)||tC(p);return i[d][v]}),c=r&&Object.entries(r).reduce((d,m)=>{let[p,v]=m;return v===void 0||(d[p]=v),d},{}),f=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((d,m)=>{let{class:p,className:v,...x}=m;return Object.entries(x).every(b=>{let[w,y]=b;return Array.isArray(y)?y.includes({...o,...c}[w]):{...o,...c}[w]===y})?[...d,p,v]:d},[]);return rC(e,s,f,r==null?void 0:r.class,r==null?void 0:r.className)},q1="-",bz=e=>{const t=Sz(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const c=s.split(q1);return c[0]===""&&c.length!==1&&c.shift(),uM(c,t)||wz(s)},getConflictingClassGroupIds:(s,c)=>{const f=r[s]||[];return c&&n[s]?[...f,...n[s]]:f}}},uM=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?uM(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(q1);return(s=t.validators.find(({validator:c})=>c(o)))==null?void 0:s.classGroupId},nC=/^\[(.+)\]$/,wz=e=>{if(nC.test(e)){const t=nC.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Sz=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return jz(Object.entries(e.classGroups),r).forEach(([o,s])=>{H0(s,n,o,t)}),n},H0=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:iC(t,i);o.classGroupId=r;return}if(typeof i=="function"){if(_z(i)){H0(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([o,s])=>{H0(s,iC(t,o),r,n)})})},iC=(e,t)=>{let r=e;return t.split(q1).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},_z=e=>e.isThemeGetter,jz=(e,t)=>t?e.map(([r,n])=>{const i=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([s,c])=>[t+s,c])):o);return[r,i]}):e,Pz=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(o,s)=>{r.set(o,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let s=r.get(o);if(s!==void 0)return s;if((s=n.get(o))!==void 0)return i(o,s),s},set(o,s){r.has(o)?r.set(o,s):i(o,s)}}},fM="!",Oz=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],o=t.length,s=c=>{const f=[];let d=0,m=0,p;for(let y=0;y<c.length;y++){let P=c[y];if(d===0){if(P===i&&(n||c.slice(y,y+o)===t)){f.push(c.slice(m,y)),m=y+o;continue}if(P==="/"){p=y;continue}}P==="["?d++:P==="]"&&d--}const v=f.length===0?c:c.substring(m),x=v.startsWith(fM),b=x?v.substring(1):v,w=p&&p>m?p-m:void 0;return{modifiers:f,hasImportantModifier:x,baseClassName:b,maybePostfixModifierPosition:w}};return r?c=>r({className:c,parseClassName:s}):s},Cz=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Az=e=>({cache:Pz(e.cacheSize),parseClassName:Oz(e),...bz(e)}),Ez=/\s+/,Tz=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],s=e.trim().split(Ez);let c="";for(let f=s.length-1;f>=0;f-=1){const d=s[f],{modifiers:m,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:x}=r(d);let b=!!x,w=n(b?v.substring(0,x):v);if(!w){if(!b){c=d+(c.length>0?" "+c:c);continue}if(w=n(v),!w){c=d+(c.length>0?" "+c:c);continue}b=!1}const y=Cz(m).join(":"),P=p?y+fM:y,O=P+w;if(o.includes(O))continue;o.push(O);const A=i(w,b);for(let C=0;C<A.length;++C){const _=A[C];o.push(P+_)}c=d+(c.length>0?" "+c:c)}return c};function Nz(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=dM(t))&&(n&&(n+=" "),n+=r);return n}const dM=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=dM(e[n]))&&(r&&(r+=" "),r+=t);return r};function kz(e,...t){let r,n,i,o=s;function s(f){const d=t.reduce((m,p)=>p(m),e());return r=Az(d),n=r.cache.get,i=r.cache.set,o=c,c(f)}function c(f){const d=n(f);if(d)return d;const m=Tz(f,r);return i(f,m),m}return function(){return o(Nz.apply(null,arguments))}}const yt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},hM=/^\[(?:([a-z-]+):)?(.+)\]$/i,Rz=/^\d+\/\d+$/,Mz=new Set(["px","full","screen"]),Iz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$z=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Dz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ji=e=>Bs(e)||Mz.has(e)||Rz.test(e),Oo=e=>El(e,"length",Gz),Bs=e=>!!e&&!Number.isNaN(Number(e)),hg=e=>El(e,"number",Bs),Nc=e=>!!e&&Number.isInteger(Number(e)),Bz=e=>e.endsWith("%")&&Bs(e.slice(0,-1)),He=e=>hM.test(e),Co=e=>Iz.test(e),zz=new Set(["length","size","percentage"]),qz=e=>El(e,zz,pM),Uz=e=>El(e,"position",pM),Wz=new Set(["image","url"]),Hz=e=>El(e,Wz,Xz),Vz=e=>El(e,"",Kz),kc=()=>!0,El=(e,t,r)=>{const n=hM.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Gz=e=>$z.test(e)&&!Dz.test(e),pM=()=>!1,Kz=e=>Lz.test(e),Xz=e=>Fz.test(e),Yz=()=>{const e=yt("colors"),t=yt("spacing"),r=yt("blur"),n=yt("brightness"),i=yt("borderColor"),o=yt("borderRadius"),s=yt("borderSpacing"),c=yt("borderWidth"),f=yt("contrast"),d=yt("grayscale"),m=yt("hueRotate"),p=yt("invert"),v=yt("gap"),x=yt("gradientColorStops"),b=yt("gradientColorStopPositions"),w=yt("inset"),y=yt("margin"),P=yt("opacity"),O=yt("padding"),A=yt("saturate"),C=yt("scale"),_=yt("sepia"),E=yt("skew"),N=yt("space"),R=yt("translate"),M=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",He,t],$=()=>[He,t],L=()=>["",ji,Oo],U=()=>["auto",Bs,He],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],q=()=>["","0",He],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[Bs,He];return{cacheSize:500,separator:":",theme:{colors:[kc],spacing:[ji,Oo],blur:["none","",Co,He],brightness:D(),borderColor:[e],borderRadius:["none","","full",Co,He],borderSpacing:$(),borderWidth:L(),contrast:D(),grayscale:q(),hueRotate:D(),invert:q(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[Bz,Oo],inset:I(),margin:I(),opacity:D(),padding:$(),saturate:D(),scale:D(),sepia:q(),skew:D(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",He]}],container:["container"],columns:[{columns:[Co]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),He]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Nc,He]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",He]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",Nc,He]}],"grid-cols":[{"grid-cols":[kc]}],"col-start-end":[{col:["auto",{span:["full",Nc,He]},He]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[kc]}],"row-start-end":[{row:["auto",{span:[Nc,He]},He]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",He]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",He]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",He,t]}],"min-w":[{"min-w":[He,t,"min","max","fit"]}],"max-w":[{"max-w":[He,t,"none","full","min","max","fit","prose",{screen:[Co]},Co]}],h:[{h:[He,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[He,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[He,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[He,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Co,Oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",hg]}],"font-family":[{font:[kc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",He]}],"line-clamp":[{"line-clamp":["none",Bs,hg]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ji,He]}],"list-image":[{"list-image":["none",He]}],"list-style-type":[{list:["none","disc","decimal",He]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ji,Oo]}],"underline-offset":[{"underline-offset":["auto",ji,He]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",He]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",He]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),Uz]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qz]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hz]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[x]}],"gradient-via":[{via:[x]}],"gradient-to":[{to:[x]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:B()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ji,He]}],"outline-w":[{outline:[ji,Oo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[ji,Oo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Co,Vz]}],"shadow-color":[{shadow:[kc]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",Co,He]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[p]}],saturate:[{saturate:[A]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",He]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",He]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",He]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Nc,He]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",He]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",He]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",He]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ji,Oo,hg]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qz=kz(Yz);function fe(...e){return Qz(Je(e))}const Zz=z1("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium transition-colors focus:outline-none",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground",outline:"text-foreground",muted:"border-border bg-muted text-muted-foreground"}},defaultVariants:{variant:"default"}});function Xt({className:e,variant:t,...r}){return u.jsx("div",{className:fe(Zz({variant:t}),e),...r})}var Jz=Object.defineProperty,U1=(e,t)=>Jz(e,"name",{value:t,configurable:!0});function V0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}U1(V0,"setRef");function mM(...e){return t=>{let r=!1;const n=e.map(i=>{const o=V0(i,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let i=0;i<n.length;i++){const o=n[i];typeof o=="function"?o():V0(e[i],null)}}}}U1(mM,"composeRefs");function tt(...e){return S.useCallback(mM(...e),e)}U1(tt,"useComposedRefs");var e6=Object.defineProperty,en=(e,t)=>e6(e,"name",{value:t,configurable:!0});function qi(e){const t=S.forwardRef((r,n)=>{let{children:i,...o}=r,s=null,c=!1;const f=[];i=wM(i),S.Children.forEach(i,v=>{var x;if(xM(v)){c=!0;const b=v;let w="child"in b.props?b.props.child:b.props.children;for(;H1(w)&&typeof ih=="function";)w=ih(w._payload);s=r6(b,w),f.push((x=s==null?void 0:s.props)==null?void 0:x.children)}else f.push(v)}),s?s=S.cloneElement(s,void 0,f):!c&&S.Children.count(i)===1&&S.isValidElement(i)&&(s=i);const d=s?yM(s):void 0,m=tt(n,d);if(!s){if(i||i===0)throw new Error(c?o6(e):i6(e));return i}const p=gM(o,s.props??{});return s.type!==S.Fragment&&(p.ref=n?m:d),S.cloneElement(s,p)});return t.displayName=`${e}.Slot`,t}en(qi,"createSlot");var t6=qi("Slot"),vM=Symbol.for("radix.slottable");function W1(e){const t=en(r=>"child"in r?r.children(r.child):r.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=vM,t}en(W1,"createSlottable");var r6=en((e,t)=>"child"in e.props?S.isValidElement(t)?S.cloneElement(t,void 0,e.props.children(t.props.children)):null:S.isValidElement(t)?t:null,"getSlottableElementFromSlottable");function gM(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...c)=>{const f=o(...c);return i(...c),f}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"?r[n]=[i,o].filter(Boolean).join(" "):n==="aria-describedby"&&(r[n]=SM(o,i))}return{...e,...r}}en(gM,"mergeProps");function yM(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}en(yM,"getElementRef");function xM(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vM}en(xM,"isSlottable");var n6=Symbol.for("react.lazy");function H1(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===n6&&"_payload"in e&&bM(e._payload)}en(H1,"isLazyComponent");function bM(e){return typeof e=="object"&&e!==null&&"then"in e}en(bM,"isPromiseLike");function wM(e){let t=e;for(;H1(t)&&typeof ih=="function";)t=ih(t._payload);return t}en(wM,"useUnwrappedLazy");function SM(...e){const t=new Set;for(const r of e)if(typeof r=="string")for(const n of String(r).trim().split(/\s+/))n&&t.add(n);return t.size>0?Array.from(t).join(" "):void 0}en(SM,"concatAriaDescribedby");var i6=en(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),o6=en(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),ih=Go[" use ".trim().toString()],a6=Object.defineProperty,s6=(e,t)=>a6(e,"name",{value:t,configurable:!0}),l6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=l6.reduce((e,t)=>{const r=qi(`Primitive.${t}`),n=S.forwardRef((i,o)=>{const{asChild:s,...c}=i,f=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(f,{...c,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _M(e,t){e&&Wu.flushSync(()=>e.dispatchEvent(t))}s6(_M,"dispatchDiscreteCustomEvent");var bt=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},c6=Object.defineProperty,Ui=(e,t)=>c6(e,"name",{value:t,configurable:!0});function jM(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}Ui(jM,"useStateMachine");var Bn=Ui(e=>{const{present:t,children:r}=e,n=PM(t),i=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),o=OM(n.ref,CM(i));return typeof r=="function"||n.isPresent?S.cloneElement(i,{ref:o}):null},"Presence");function PM(e){const[t,r]=S.useState(),n=S.useRef(null),i=S.useRef(e),o=S.useRef("none"),s=S.useRef(void 0),c=e?"mounted":"unmounted",[f,d]=jM(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{f==="mounted"?(o.current=s.current??Rs(n.current),s.current=void 0):o.current="none"},[f]),bt(()=>{const m=n.current,p=i.current;if(p!==e){const x=o.current,b=Rs(m);e?(s.current=b,d("MOUNT")):b==="none"||(m==null?void 0:m.display)==="none"?d("UNMOUNT"):d(p&&x!==b?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,d]),bt(()=>{if(t){let m;const p=t.ownerDocument.defaultView??window,v=Ui(b=>{const y=Rs(n.current).includes(CSS.escape(b.animationName));if(b.target===t&&y&&(d("ANIMATION_END"),!i.current)){const P=t.style.animationFillMode;t.style.animationFillMode="forwards",m=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=P)})}},"handleAnimationEnd"),x=Ui(b=>{b.target===t&&(o.current=Rs(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{p.clearTimeout(m),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:S.useCallback(m=>{if(m){const p=getComputedStyle(m);n.current=p,s.current=Rs(p)}else n.current=null;r(m)},[])}}Ui(PM,"usePresence");function G0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Ui(G0,"setRef");function OM(...e){const t=S.useRef(e);return t.current=e,S.useCallback(r=>{const n=t.current;let i=!1;const o=n.map(s=>{const c=G0(s,r);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let s=0;s<o.length;s++){const c=o[s];typeof c=="function"?c():G0(n[s],null)}}},[])}Ui(OM,"useStableComposedRefs");function Rs(e){return(e==null?void 0:e.animationName)||"none"}Ui(Rs,"getAnimationName");function CM(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}Ui(CM,"getElementRef");var u6=Object.defineProperty,gn=(e,t)=>u6(e,"name",{value:t,configurable:!0});function f6(e,t){const r=S.createContext(t);r.displayName=e+"Context";const n=gn(o=>{const{children:s,...c}=o,f=S.useMemo(()=>c,Object.values(c));return u.jsx(r.Provider,{value:f,children:s})},"Provider");n.displayName=e+"Provider";function i(o,s={}){const{optional:c=!1}=s,f=S.useContext(r);if(f)return f;if(t!==void 0)return t;if(!c)throw new Error(`\`${o}\` must be used within \`${e}\``)}return gn(i,"useContext"),[n,i]}gn(f6,"createContext");function zn(e,t=[]){let r=[];function n(o,s){const c=S.createContext(s);c.displayName=o+"Context";const f=r.length;r=[...r,s];const d=gn(p=>{var P;const{scope:v,children:x,...b}=p,w=((P=v==null?void 0:v[e])==null?void 0:P[f])||c,y=S.useMemo(()=>b,Object.values(b));return u.jsx(w.Provider,{value:y,children:x})},"Provider");d.displayName=o+"Provider";function m(p,v,x={}){var P;const{optional:b=!1}=x,w=((P=v==null?void 0:v[e])==null?void 0:P[f])||c,y=S.useContext(w);if(y)return y;if(s!==void 0)return s;if(!b)throw new Error(`\`${p}\` must be used within \`${o}\``)}return gn(m,"useContext"),[d,m]}gn(n,"createContext");const i=gn(()=>{const o=r.map(s=>S.createContext(s));return gn(function(c){const f=(c==null?void 0:c[e])||o;return S.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])},"useScope")},"createScope");return i.scopeName=e,[n,AM(i,...t)]}gn(zn,"createContextScope");function AM(...e){const t=e[0];if(e.length===1)return t;const r=gn(()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return gn(function(o){const s=n.reduce((c,{useScope:f,scopeName:d})=>{const p=f(o)[`__scope${d}`];return{...c,...p}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}gn(AM,"composeContextScopes");var d6=Object.defineProperty,h6=(e,t)=>d6(e,"name",{value:t,configurable:!0}),oC=Go[" useInsertionEffect ".trim().toString()];function or(e){const t=S.useRef(e);return typeof oC=="function"?oC(()=>{t.current=e}):bt(()=>{t.current=e}),S.useMemo(()=>((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)}),[])}h6(or,"useCallbackRef");var p6=Object.defineProperty,m6=(e,t)=>p6(e,"name",{value:t,configurable:!0}),v6={LTR:"ltr"},g6=S.createContext(void 0);function Vu(e){const t=S.useContext(g6);return e||t||v6.LTR}m6(Vu,"useDirection");var y6=Object.defineProperty,x6=(e,t)=>y6(e,"name",{value:t,configurable:!0});function oh(e,[t,r]){return Math.min(r,Math.max(t,e))}x6(oh,"clamp");var b6=Object.defineProperty,Tl=(e,t)=>b6(e,"name",{value:t,configurable:!0}),EM=!!(typeof window<"u"&&window.document&&window.document.createElement);function Le(e,t,{checkForDefaultPrevented:r=!0}={}){return Tl(function(i){if(e==null||e(i),r===!1||!i||!i.defaultPrevented)return t==null?void 0:t(i)},"handleEvent")}Tl(Le,"composeEventHandlers");function w6(e){var t;if(!EM)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}Tl(w6,"getOwnerWindow");function K0(e){if(!EM)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}Tl(K0,"getOwnerDocument");function TM(e,t=!1){const{activeElement:r}=K0(e);if(!(r!=null&&r.nodeName))return null;if(NM(r)&&r.contentDocument)return TM(r.contentDocument.body,t);if(t){const n=r.getAttribute("aria-activedescendant");if(n){const i=K0(r).getElementById(n);if(i)return i}}return r}Tl(TM,"getActiveElement");function NM(e){return e.tagName==="IFRAME"}Tl(NM,"isFrame");var S6=Object.defineProperty,Ze=(e,t)=>S6(e,"name",{value:t,configurable:!0});function kM(e,t){return S.useReducer((r,n)=>t[r][n]??r,e)}Ze(kM,"useStateMachine");var Is={Auto:"auto",Always:"always",Scroll:"scroll",Hover:"hover"},zs={Vertical:"vertical",Horizontal:"horizontal"},ni={LTR:"ltr",RTL:"rtl"},RM="ScrollArea",[MM,Yse]=zn(RM),[_6,tn]=MM(RM),IM=S.forwardRef(Ze(function(t,r){const{__scopeScrollArea:n,type:i=Is.Hover,dir:o,scrollHideDelay:s=600,...c}=t,[f,d]=S.useState(null),[m,p]=S.useState(null),[v,x]=S.useState(null),[b,w]=S.useState(null),[y,P]=S.useState(null),[O,A]=S.useState(0),[C,_]=S.useState(0),[E,N]=S.useState(!1),[R,M]=S.useState(!1),F=tt(r,d),I=Vu(o);return u.jsx(_6,{scope:n,type:i,dir:I,scrollHideDelay:s,scrollArea:f,viewport:m,onViewportChange:p,content:v,onContentChange:x,scrollbarX:b,onScrollbarXChange:w,scrollbarXEnabled:E,onScrollbarXEnabledChange:N,scrollbarY:y,onScrollbarYChange:P,scrollbarYEnabled:R,onScrollbarYEnabledChange:M,onCornerWidthChange:A,onCornerHeightChange:_,children:u.jsx(Ke.div,{dir:I,...c,ref:F,style:{position:"relative","--radix-scroll-area-corner-width":O+"px","--radix-scroll-area-corner-height":C+"px",...t.style}})})},"ScrollArea")),$M="ScrollAreaViewport",aC=W1($M),j6=S.forwardRef(Ze(function(t,r){const{__scopeScrollArea:n,children:i,nonce:o,disableImplicitContentElement:s,...c}=t,f=tn($M,n),d=S.useRef(null),m=tt(r,d,f.onViewportChange),p=S.isValidElement(i);return u.jsxs(u.Fragment,{children:[u.jsx(P6,{nonce:o}),u.jsx(Ke.div,{"data-radix-scroll-area-viewport":"",...c,ref:m,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...t.style},children:s?i:p?u.jsx(aC,{child:i,children:v=>u.jsx(sC,{__scopeScrollArea:n,children:v})}):u.jsx(aC,{children:u.jsx(sC,{__scopeScrollArea:n,children:i})})})]})},"ScrollAreaViewport")),P6=S.memo(Ze(function({nonce:t}){return u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:t})},"ScrollAreaViewportStyle"),(e,t)=>e.nonce===t.nonce),O6="ScrollAreaContent",sC=S.forwardRef(Ze(function(t,r){const{__scopeScrollArea:n,children:i,...o}=t,s=tn(O6,n),c=tt(r,s.onContentChange);return u.jsx(Ke.div,{...o,ref:c,style:{minWidth:"100%",display:"table",...t.style},children:i})},"ScrollAreaContent")),eo="ScrollAreaScrollbar",DM=S.forwardRef(Ze(function(t,r){const{forceMount:n,...i}=t,o=tn(eo,t.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=o,f=t.orientation===zs.Horizontal;return S.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),o.type===Is.Hover?u.jsx(C6,{...i,ref:r,forceMount:n}):o.type===Is.Scroll?u.jsx(A6,{...i,ref:r,forceMount:n}):o.type===Is.Auto?u.jsx(LM,{...i,ref:r,forceMount:n}):o.type===Is.Always?u.jsx(V1,{...i,ref:r,"data-state":"visible"}):null},"ScrollAreaScrollbar")),C6=S.forwardRef(Ze(function(t,r){const{forceMount:n,...i}=t,o=tn(eo,t.__scopeScrollArea),[s,c]=S.useState(!1);return S.useEffect(()=>{const f=o.scrollArea;let d=0;if(f){const m=Ze(()=>{window.clearTimeout(d),c(!0)},"handlePointerEnter"),p=Ze(()=>{d=window.setTimeout(()=>c(!1),o.scrollHideDelay)},"handlePointerLeave");return f.addEventListener("pointerenter",m),f.addEventListener("pointerleave",p),()=>{window.clearTimeout(d),f.removeEventListener("pointerenter",m),f.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Bn,{present:n||s,children:u.jsx(LM,{"data-state":s?"visible":"hidden",...i,ref:r})})},"ScrollAreaScrollbarHover")),A6=S.forwardRef(Ze(function(t,r){const{forceMount:n,...i}=t,o=tn(eo,t.__scopeScrollArea),s=t.orientation===zs.Horizontal,c=Ku(()=>d("SCROLL_END"),100),[f,d]=kM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return S.useEffect(()=>{if(f==="idle"){const m=window.setTimeout(()=>d("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(m)}},[f,o.scrollHideDelay,d]),S.useEffect(()=>{const m=o.viewport,p=s?"scrollLeft":"scrollTop";if(m){let v=m[p];const x=Ze(()=>{const b=m[p];v!==b&&(d("SCROLL"),c()),v=b},"handleScroll");return m.addEventListener("scroll",x),()=>m.removeEventListener("scroll",x)}},[o.viewport,s,d,c]),u.jsx(Bn,{present:n||f!=="hidden",children:u.jsx(V1,{"data-state":f==="hidden"?"hidden":"visible",...i,ref:r,onPointerEnter:Le(t.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:Le(t.onPointerLeave,()=>d("POINTER_LEAVE"))})})},"ScrollAreaScrollbarScroll")),LM=S.forwardRef(Ze(function(t,r){const n=tn(eo,t.__scopeScrollArea),{forceMount:i,...o}=t,[s,c]=S.useState(!1),f=t.orientation===zs.Horizontal,d=Ku(()=>{if(n.viewport){const m=n.viewport.offsetWidth<n.viewport.scrollWidth,p=n.viewport.offsetHeight<n.viewport.scrollHeight;c(f?m:p)}},10);return Na(n.viewport,d),Na(n.content,d),u.jsx(Bn,{present:i||s,children:u.jsx(V1,{"data-state":s?"visible":"hidden",...o,ref:r})})},"ScrollAreaScrollbarAuto")),V1=S.forwardRef(Ze(function(t,r){const{orientation:n=zs.Vertical,...i}=t,o=tn(eo,t.__scopeScrollArea),s=S.useRef(null),c=S.useRef(0),[f,d]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=G1(f.viewport,f.content),p={...i,sizes:f,onSizesChange:d,hasThumb:m>0&&m<1,onThumbChange:Ze(x=>s.current=x,"onThumbChange"),onThumbPointerUp:Ze(()=>c.current=0,"onThumbPointerUp"),onThumbPointerDown:Ze(x=>c.current=x,"onThumbPointerDown")};function v(x,b){return qM(x,c.current,f,b)}return Ze(v,"getScrollPosition"),n===zs.Horizontal?u.jsx(E6,{...p,ref:r,onThumbPositionChange:()=>{if(o.viewport&&s.current){const x=o.viewport.scrollLeft,b=Y0(x,f,o.dir);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:x=>{o.viewport&&(o.viewport.scrollLeft=x)},onDragScroll:x=>{o.viewport&&(o.viewport.scrollLeft=v(x,o.dir))}}):n===zs.Vertical?u.jsx(T6,{...p,ref:r,onThumbPositionChange:()=>{if(o.viewport&&s.current){const x=o.viewport.scrollTop,b=Y0(x,f);s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:x=>{o.viewport&&(o.viewport.scrollTop=x)},onDragScroll:x=>{o.viewport&&(o.viewport.scrollTop=v(x))}}):null},"ScrollAreaScrollbarVisible")),E6=S.forwardRef(Ze(function(t,r){const{sizes:n,onSizesChange:i,...o}=t,s=tn(eo,t.__scopeScrollArea),[c,f]=S.useState(),d=S.useRef(null),m=tt(r,d,s.onScrollbarXChange);return S.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),u.jsx(BM,{"data-orientation":"horizontal",...o,ref:m,sizes:n,style:{bottom:0,left:s.dir===ni.RTL?"var(--radix-scroll-area-corner-width)":0,right:s.dir===ni.LTR?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Gu(n)+"px",...t.style},onThumbPointerDown:p=>t.onThumbPointerDown(p.x),onDragScroll:p=>t.onDragScroll(p.x),onWheelScroll:(p,v)=>{if(s.viewport){const x=s.viewport.scrollLeft+p.deltaX;t.onWheelScroll(x),X1(x,v)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:nu(c.paddingLeft),paddingEnd:nu(c.paddingRight)}})}})},"ScrollAreaScrollbarX")),T6=S.forwardRef(Ze(function(t,r){const{sizes:n,onSizesChange:i,...o}=t,s=tn(eo,t.__scopeScrollArea),[c,f]=S.useState(),d=S.useRef(null),m=tt(r,d,s.onScrollbarYChange);return S.useEffect(()=>{d.current&&f(getComputedStyle(d.current))},[d]),u.jsx(BM,{"data-orientation":"vertical",...o,ref:m,sizes:n,style:{top:0,right:s.dir===ni.LTR?0:void 0,left:s.dir===ni.RTL?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Gu(n)+"px",...t.style},onThumbPointerDown:p=>t.onThumbPointerDown(p.y),onDragScroll:p=>t.onDragScroll(p.y),onWheelScroll:(p,v)=>{if(s.viewport){const x=s.viewport.scrollTop+p.deltaY;t.onWheelScroll(x),X1(x,v)&&p.preventDefault()}},onResize:()=>{d.current&&s.viewport&&c&&i({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:nu(c.paddingTop),paddingEnd:nu(c.paddingBottom)}})}})},"ScrollAreaScrollbarY")),[N6,FM]=MM(eo),BM=S.forwardRef(Ze(function(t,r){const{__scopeScrollArea:n,sizes:i,hasThumb:o,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:d,onDragScroll:m,onWheelScroll:p,onResize:v,...x}=t,b=tn(eo,n),[w,y]=S.useState(null),P=tt(r,y),O=S.useRef(null),A=S.useRef(""),C=b.viewport,_=i.content-i.viewport,E=or(p),N=or(d),R=Ku(v,10);function M(F){if(O.current){const I=F.clientX-O.current.left,$=F.clientY-O.current.top;m({x:I,y:$})}}return Ze(M,"handleDragScroll"),S.useEffect(()=>{const F=Ze(I=>{const $=I.target;(w==null?void 0:w.contains($))&&E(I,_)},"handleWheel");return document.addEventListener("wheel",F,{passive:!1}),()=>document.removeEventListener("wheel",F,{passive:!1})},[C,w,_,E]),S.useEffect(N,[i,N]),Na(w,R),Na(b.content,R),u.jsx(N6,{scope:n,scrollbar:w,hasThumb:o,onThumbChange:or(s),onThumbPointerUp:or(c),onThumbPositionChange:N,onThumbPointerDown:or(f),children:u.jsx(Ke.div,{...x,ref:P,style:{position:"absolute",...x.style},onPointerDown:Le(t.onPointerDown,F=>{F.button===0&&(F.target.setPointerCapture(F.pointerId),O.current=w.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),M(F))}),onPointerMove:Le(t.onPointerMove,M),onPointerUp:Le(t.onPointerUp,F=>{const I=F.target;I.hasPointerCapture(F.pointerId)&&I.releasePointerCapture(F.pointerId),document.body.style.webkitUserSelect=A.current,b.viewport&&(b.viewport.style.scrollBehavior=""),O.current=null})})})},"ScrollAreaScrollbarImpl")),X0="ScrollAreaThumb",k6=S.forwardRef(Ze(function(t,r){const{forceMount:n,...i}=t,o=FM(X0,t.__scopeScrollArea);return u.jsx(Bn,{present:n||o.hasThumb,children:u.jsx(R6,{ref:r,...i})})},"ScrollAreaThumb")),R6=S.forwardRef(Ze(function(t,r){const{__scopeScrollArea:n,style:i,...o}=t,s=tn(X0,n),c=FM(X0,n),{onThumbPositionChange:f}=c,d=tt(r,c.onThumbChange),m=S.useRef(void 0),p=Ku(()=>{m.current&&(m.current(),m.current=void 0)},100);return S.useEffect(()=>{const v=s.viewport;if(v){const x=Ze(()=>{if(p(),!m.current){const b=$6(v,f);m.current=b,f()}},"handleScroll");return f(),v.addEventListener("scroll",x),()=>v.removeEventListener("scroll",x)}},[s.viewport,p,f]),u.jsx(Ke.div,{"data-state":c.hasThumb?"visible":"hidden",...o,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:Le(t.onPointerDownCapture,v=>{const b=v.target.getBoundingClientRect(),w=v.clientX-b.left,y=v.clientY-b.top;c.onThumbPointerDown({x:w,y})}),onPointerUp:Le(t.onPointerUp,c.onThumbPointerUp)})},"ScrollAreaThumbImpl")),zM="ScrollAreaCorner",M6=S.forwardRef(Ze(function(t,r){const n=tn(zM,t.__scopeScrollArea),i=!!(n.scrollbarX&&n.scrollbarY);return n.type!==Is.Scroll&&i?u.jsx(I6,{...t,ref:r}):null},"ScrollAreaCorner")),I6=S.forwardRef(Ze(function(t,r){const{__scopeScrollArea:n,...i}=t,o=tn(zM,n),[s,c]=S.useState(0),[f,d]=S.useState(0),m=!!(s&&f),{onCornerWidthChange:p,onCornerHeightChange:v}=o;return Na(o.scrollbarX,()=>{var b;const x=((b=o.scrollbarX)==null?void 0:b.offsetHeight)||0;o.onCornerHeightChange(x),d(x)}),Na(o.scrollbarY,()=>{var b;const x=((b=o.scrollbarY)==null?void 0:b.offsetWidth)||0;o.onCornerWidthChange(x),c(x)}),S.useEffect(()=>()=>{p(0),v(0)},[p,v]),m?u.jsx(Ke.div,{...i,ref:r,style:{width:s,height:f,position:"absolute",right:o.dir===ni.LTR?0:void 0,left:o.dir===ni.RTL?0:void 0,bottom:0,...t.style}}):null},"ScrollAreaCornerImpl"));function nu(e){return e?parseInt(e,10):0}Ze(nu,"toInt");function G1(e,t){const r=e/t;return isNaN(r)?0:r}Ze(G1,"getThumbRatio");function Gu(e){const t=G1(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}Ze(Gu,"getThumbSize");function qM(e,t,r,n=ni.LTR){const i=Gu(r),o=i/2,s=t||o,c=i-s,f=r.scrollbar.paddingStart+s,d=r.scrollbar.size-r.scrollbar.paddingEnd-c,m=r.content-r.viewport,p=n===ni.LTR?[0,m]:[m*-1,0];return K1([f,d],p)(e)}Ze(qM,"getScrollPositionFromPointer");function Y0(e,t,r=ni.LTR){const n=Gu(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-i,s=t.content-t.viewport,c=o-n,f=r===ni.LTR?[0,s]:[s*-1,0],d=oh(e,f);return K1([0,s],[0,c])(d)}Ze(Y0,"getThumbOffsetFromScroll");function K1(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}Ze(K1,"linearScale");function X1(e,t){return e>0&&e<t}Ze(X1,"isScrollingWithinScrollbarBounds");var $6=Ze((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;function i(){const o={left:e.scrollLeft,top:e.scrollTop},s=r.left!==o.left,c=r.top!==o.top;(s||c)&&t(),r=o,n=window.requestAnimationFrame(i)}return Ze(i,"loop"),i(),()=>window.cancelAnimationFrame(n)},"addUnlinkedScrollListener");function Ku(e,t){const r=or(e),n=S.useRef(0);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),S.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}Ze(Ku,"useDebounceCallback");function Na(e,t){const r=or(t);bt(()=>{let n=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return i.observe(e),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}},[e,r])}Ze(Na,"useResizeObserver");const ah=S.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(IM,{ref:n,className:fe("relative overflow-hidden",e),...r,children:[u.jsx(j6,{className:"h-full w-full rounded-[inherit]",children:t}),u.jsx(UM,{}),u.jsx(M6,{})]}));ah.displayName=IM.displayName;const UM=S.forwardRef(({className:e,orientation:t="vertical",...r},n)=>u.jsx(DM,{ref:n,orientation:t,className:fe("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...r,children:u.jsx(k6,{className:"relative flex-1 rounded-full bg-border"})}));UM.displayName=DM.displayName;const WM="".replace(/\/$/,"");class _t extends Error{constructor(r,n){super(r);ig(this,"status");this.name="ApiError",this.status=n}}function Ni(e){if(!e)return"";const t=new URLSearchParams;for(const[n,i]of Object.entries(e))if(!(i==null||i===""))if(Array.isArray(i))for(const o of i)t.append(n,String(o));else t.append(n,String(i));const r=t.toString();return r?`?${r}`:""}async function Xe(e,t){let r;try{r=await fetch(`${WM}${e}`,{headers:{Accept:"application/json",...t!=null&&t.body?{"Content-Type":"application/json"}:{}},...t})}catch{throw new _t("The dashboard API is unreachable. Is the backend running on 127.0.0.1:8756?",0)}if(r.status===204)return;const n=await r.text();let i=null;if(n)try{i=JSON.parse(n)}catch{i=n}if(!r.ok){const o=i&&typeof i=="object"&&"detail"in i?D6(i.detail):typeof i=="string"&&i?i:`Request failed with status ${r.status}.`;throw new _t(o,r.status)}return i}function D6(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>{if(t&&typeof t=="object"&&"msg"in t){const r=t,n=Array.isArray(r.loc)?r.loc.slice(-1).join(""):"";return n?`${n}: ${r.msg}`:String(r.msg)}return JSON.stringify(t)}).join("; "):"The request could not be completed."}function mn(e,t){return{method:e,body:JSON.stringify(t)}}const L6={health:()=>Xe("/api/health"),profiles:()=>Xe("/api/profiles"),scanSettings:()=>Xe("/api/settings/scan"),updateScanSettings:e=>Xe("/api/settings/scan",mn("PUT",e)),aiSettings:()=>Xe("/api/settings/ai"),updateAiSettings:e=>Xe("/api/settings/ai",mn("PUT",e)),testAiConnection:()=>Xe("/api/settings/ai/test",{method:"POST"})},F6={list:()=>Xe("/api/repositories"),get:e=>Xe(`/api/repositories/${e}`),create:e=>Xe("/api/repositories",mn("POST",e)),refresh:e=>Xe(`/api/repositories/${e}/refresh`,{method:"POST"}),remove:e=>Xe(`/api/repositories/${e}`,{method:"DELETE"}),scans:(e,t)=>Xe(`/api/repositories/${e}/scans${Ni(t)}`)},B6={list:e=>Xe(`/api/scans${Ni(e)}`),get:e=>Xe(`/api/scans/${e}`),create:e=>Xe("/api/scans",mn("POST",e)),cancel:e=>Xe(`/api/scans/${e}/cancel`,{method:"POST"}),events:(e,t=0)=>Xe(`/api/scans/${e}/events.json${Ni({after:t})}`),compare:(e,t)=>Xe(`/api/scans/compare${Ni({base:e,head:t})}`)};function z6(e,t,r=0){const n=new EventSource(`${WM}/api/scans/${e}/events${Ni({after:r})}`);return n.addEventListener("open",()=>{var i;return(i=t.onOpen)==null?void 0:i.call(t)}),n.addEventListener("scan-event",i=>{var o;try{(o=t.onEvent)==null||o.call(t,JSON.parse(i.data))}catch{}}),n.addEventListener("end",i=>{var o,s;try{(o=t.onEnd)==null||o.call(t,JSON.parse(i.data))}catch{(s=t.onEnd)==null||s.call(t,{status:"unknown"})}n.close()}),n.onerror=i=>{var o;(o=t.onError)==null||o.call(t,i),n.close()},()=>n.close()}const q6={list:e=>Xe(`/api/findings${Ni(e)}`),get:e=>Xe(`/api/findings/${e}`),setStatus:(e,t)=>Xe(`/api/findings/${e}`,mn("PATCH",{status:t}))},U6={overview:e=>Xe(`/api/dashboard/overview${Ni({repository_id:e})}`),activity:(e=30)=>Xe(`/api/dashboard/activity${Ni({limit:e})}`)},W6={chat:e=>Xe("/api/ai/chat",mn("POST",e)),conversations:()=>Xe("/api/ai/conversations"),conversation:e=>Xe(`/api/ai/conversations/${e}`),deleteConversation:e=>Xe(`/api/ai/conversations/${e}`,{method:"DELETE"}),reviewFinding:(e,t="analyst")=>Xe(`/api/ai/findings/${e}/review`,mn("POST",{kind:t})),generateTest:e=>Xe(`/api/ai/findings/${e}/test`,mn("POST",{finding_id:e})),remediations:()=>Xe("/api/ai/remediations"),remediation:e=>Xe(`/api/ai/remediations/${e}`),proposeRemediation:e=>Xe("/api/ai/remediations",mn("POST",{finding_id:e})),approveRemediation:(e,t)=>Xe(`/api/ai/remediations/${e}/approve`,mn("POST",t)),rollbackRemediation:e=>Xe(`/api/ai/remediations/${e}/rollback`,{method:"POST"}),summary:e=>Xe("/api/ai/summary",mn("POST",e)),threatModel:e=>Xe("/api/ai/threat-model",mn("POST",{repository_id:e}))},H6={architecture:e=>Xe(`/api/architecture/${e}`),dependencies:(e,t=!1)=>Xe(`/api/dependencies/${e}${Ni({osv:t})}`)},De={system:L6,repositories:F6,scans:B6,findings:q6,dashboard:U6,ai:W6,intel:H6},Q0="vcqa-active-repository",HM=S.createContext(null);function V6(){try{const e=window.localStorage.getItem(Q0);if(!e)return null;const t=Number.parseInt(e,10);return Number.isFinite(t)?t:null}catch{return null}}function G6({children:e}){const[t,r]=S.useState(null),[n,i]=S.useState(null),[o,s]=S.useState([]),[c,f]=S.useState(!0),[d,m]=S.useState(null),[p,v]=S.useState(V6),x=S.useCallback(async(P=!1)=>{P||f(!0);const[O,A]=await Promise.allSettled([De.system.health(),De.repositories.list()]);O.status==="fulfilled"?(r(O.value),i(null)):(r(null),i(O.reason instanceof _t?O.reason.message:"The backend health check failed.")),A.status==="fulfilled"?(s(A.value),m(null)):m(A.reason instanceof _t?A.reason.message:"The repository list could not be loaded."),f(!1)},[]);S.useEffect(()=>{x()},[x]);const b=S.useCallback(P=>{v(P);try{P===null?window.localStorage.removeItem(Q0):window.localStorage.setItem(Q0,String(P))}catch{}},[]);S.useEffect(()=>{c||p===null||o.some(P=>P.id===p)||b(null)},[c,o,p,b]);const w=S.useMemo(()=>o.find(P=>P.id===p)??null,[o,p]),y=S.useMemo(()=>({health:t,healthError:n,repositories:o,loading:c,error:d,reload:x,activeRepositoryId:p,setActiveRepositoryId:b,activeRepository:w}),[t,n,o,c,d,x,p,b,w]);return u.jsx(HM.Provider,{value:y,children:e})}function Rr(){const e=S.useContext(HM);if(!e)throw new Error("useApp must be used inside an AppProvider.");return e}function lC({item:e}){const t=e.icon;return u.jsxs(IB,{to:e.to,end:e.end,title:e.description,className:({isActive:r})=>fe("flex items-center gap-3 rounded-md px-3 py-2 text-sm font-medium transition-colors","text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",r&&"bg-primary/10 font-semibold text-primary ring-1 ring-inset ring-primary/15 hover:bg-primary/10 hover:text-primary"),children:[u.jsx(t,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:e.label})]})}function cC({onNavigate:e}){const{health:t,repositories:r}=Rr();return u.jsxs("div",{className:"flex h-full flex-col border-r border-sidebar-border bg-sidebar",children:[u.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b border-sidebar-border px-4",children:[u.jsx("span",{className:"vcqa-logo-badge","aria-hidden":"true",children:u.jsx("img",{src:"/phone-mascots.gif",alt:"",draggable:!1})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"truncate text-sm font-semibold leading-tight",children:"Vibe Coding QA"}),u.jsx("p",{className:"truncate text-[11px] text-muted-foreground",children:t?`v${t.version}`:"Connecting…"})]})]}),u.jsx(ah,{className:"flex-1 px-2 py-3",children:u.jsx("nav",{className:"space-y-5",onClick:e,children:yz.map(n=>u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"px-3 pb-1 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:n.label}),n.items.map(i=>u.jsx(lC,{item:i},i.to))]},n.label))})}),u.jsxs("div",{className:"space-y-2 border-t border-sidebar-border p-3",children:[u.jsxs("div",{className:"flex items-center justify-between px-1 text-xs text-muted-foreground",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(sM,{className:"h-3.5 w-3.5"}),"Repositories"]}),u.jsx(Xt,{variant:"muted",children:r.length})]}),u.jsx("nav",{onClick:e,children:u.jsx(lC,{item:xz})})]})]})}const K6=z1("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:shadow-[0_6px_18px_-2px_hsl(var(--primary)/0.45)] hover:-translate-y-px active:translate-y-0 active:shadow-sm motion-reduce:transform-none",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 hover:shadow-[0_6px_18px_-2px_hsl(var(--destructive)/0.45)] hover:-translate-y-px active:translate-y-0 motion-reduce:transform-none",outline:"border border-border bg-transparent shadow-sm hover:border-primary/50 hover:bg-primary/5 hover:-translate-y-px active:translate-y-0 motion-reduce:transform-none",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-6",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),me=S.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},o)=>{const s=n?t6:"button";return u.jsx(s,{className:fe(K6({variant:t,size:r,className:e})),ref:o,...i})});me.displayName="Button";var X6=Object.defineProperty,ir=(e,t)=>X6(e,"name",{value:t,configurable:!0}),Z0="dismissableLayer.update",Y6="dismissableLayer.pointerDownOutside",Q6="dismissableLayer.focusOutside",uC,VM=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Y1=S.forwardRef(ir(function(t,r){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,onDismiss:d,...m}=t,p=S.useContext(VM),[v,x]=S.useState(null),b=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=S.useState({}),y=tt(r,x),P=Array.from(p.layers),[O]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=O?P.indexOf(O):-1,C=v?P.indexOf(v):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,E=C>=A,N=S.useRef(!1),R=KM($=>{s==null||s($),f==null||f($),$.defaultPrevented||d==null||d()},{ownerDocument:b,deferPointerDownOutside:i,isDeferredPointerDownOutsideRef:N,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:S.useCallback($=>{if(!($ instanceof Node))return!1;const L=[...p.branches].some(U=>U.contains($));return E&&!L},[p.branches,E])}),M=XM($=>{if(i&&N.current)return;const L=$.target;[...p.branches].some(H=>H.contains(L))||(c==null||c($),f==null||f($),$.defaultPrevented||d==null||d())},b),F=v?C===P.length-1:!1,I=or($=>{$.key==="Escape"&&(o==null||o($),!$.defaultPrevented&&d&&($.preventDefault(),d()))});return S.useEffect(()=>{if(F)return b.addEventListener("keydown",I,{capture:!0}),()=>b.removeEventListener("keydown",I,{capture:!0})},[b,F,I]),S.useEffect(()=>{if(v)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(uC=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),J0(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(v),p.layersWithOutsidePointerEventsDisabled.size===0&&(b.body.style.pointerEvents=uC))}},[v,b,n,p]),S.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),J0())},[v,p]),S.useEffect(()=>{const $=ir(()=>w({}),"handleUpdate");return document.addEventListener(Z0,$),()=>document.removeEventListener(Z0,$)},[]),u.jsx(Ke.div,{...m,ref:y,style:{pointerEvents:_?E?"auto":"none":void 0,...t.style},onFocusCapture:Le(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Le(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Le(t.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function GM(){const e=S.useContext(VM),[t,r]=S.useState(null);return S.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),r}ir(GM,"useDismissableLayerSurface");var Z6=ir(()=>!0,"IS_TRUE");function KM(e,t){const{ownerDocument:r=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:n=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:o,shouldHandlePointerDownOutside:s=Z6}=t,c=or(e),f=S.useRef(!1),d=S.useRef(!1),m=S.useRef(new Map),p=S.useRef(()=>{});return S.useEffect(()=>{function v(){d.current=!1,i.current=!1,m.current.clear()}ir(v,"resetOutsideInteraction");function x(){return Array.from(m.current.values()).some(Boolean)}ir(x,"isOutsideInteractionIntercepted");function b(A){if(!d.current)return;const C=A.target;C instanceof Node&&[...o].some(E=>E.contains(C))||m.current.set(A.type,!0),A.type==="click"&&window.setTimeout(()=>{d.current&&p.current()},0)}ir(b,"handleInteractionCapture");function w(A){d.current&&m.current.set(A.type,!1)}ir(w,"handleInteractionBubble");const y=ir(A=>{if(A.target&&!f.current){let C=function(){r.removeEventListener("click",p.current);const E=x();v(),E||Q1(Y6,c,_,{discrete:!0})};if(ir(C,"handleAndDispatchPointerDownOutsideEvent"),!s(A.target)){r.removeEventListener("click",p.current),v(),f.current=!1;return}const _={originalEvent:A};d.current=!0,i.current=n&&A.button===0,m.current.clear(),!n||A.button!==0?C():(r.removeEventListener("click",p.current),p.current=C,r.addEventListener("click",p.current,{once:!0}))}else r.removeEventListener("click",p.current),v();f.current=!1},"handlePointerDown"),P=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const A of P)r.addEventListener(A,b,!0),r.addEventListener(A,w);const O=window.setTimeout(()=>{r.addEventListener("pointerdown",y)},0);return()=>{window.clearTimeout(O),r.removeEventListener("pointerdown",y),r.removeEventListener("click",p.current);for(const A of P)r.removeEventListener(A,b,!0),r.removeEventListener(A,w)}},[r,c,n,i,o,s]),{onPointerDownCapture:ir(()=>f.current=!0,"onPointerDownCapture")}}ir(KM,"usePointerDownOutside");function XM(e,t=globalThis==null?void 0:globalThis.document){const r=or(e),n=S.useRef(!1);return S.useEffect(()=>{const i=ir(o=>{o.target&&!n.current&&Q1(Q6,r,{originalEvent:o},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:ir(()=>n.current=!0,"onFocusCapture"),onBlurCapture:ir(()=>n.current=!1,"onBlurCapture")}}ir(XM,"useFocusOutside");function J0(){const e=new CustomEvent(Z0);document.dispatchEvent(e)}ir(J0,"dispatchUpdate");function Q1(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?_M(i,o):i.dispatchEvent(o)}ir(Q1,"handleAndDispatchCustomEvent");var J6=Object.defineProperty,Bt=(e,t)=>J6(e,"name",{value:t,configurable:!0}),pg="focusScope.autoFocusOnMount",mg="focusScope.autoFocusOnUnmount",fC={bubbles:!1,cancelable:!0},YM=S.forwardRef(Bt(function(t,r){const{loop:n=!1,trapped:i=!1,branches:o,onMountAutoFocus:s,onUnmountAutoFocus:c,...f}=t,[d,m]=S.useState(null),p=or(s),v=or(c),x=S.useRef(null),b=tt(r,m),w=S.useRef(o);S.useEffect(()=>{w.current=o});const y=S.useCallback(A=>{var C;return A?d!=null&&d.contains(A)?!0:!!((C=w.current)!=null&&C.some(_=>_.contains(A))):!1},[d]),P=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(i){let A=function(N){if(P.paused||!d)return;const R=N.target;y(R)?x.current=R:Oi(x.current,{select:!0})},C=function(N){if(P.paused||!d)return;const R=N.relatedTarget;R!==null&&(y(R)||Oi(x.current,{select:!0}))},_=function(N){if(document.activeElement===document.body)for(const M of N)M.removedNodes.length>0&&Oi(d)};Bt(A,"handleFocusIn"),Bt(C,"handleFocusOut"),Bt(_,"handleMutations"),document.addEventListener("focusin",A),document.addEventListener("focusout",C);const E=new MutationObserver(_);return d&&E.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",C),E.disconnect()}}},[i,d,P.paused,y]),S.useEffect(()=>{if(d){dC.add(P);const A=document.activeElement;if(!d.contains(A)){const _=new CustomEvent(pg,fC);d.addEventListener(pg,p),d.dispatchEvent(_),_.defaultPrevented||(tI(aI(Z1(d)),{select:!0}),document.activeElement===A&&Oi(d))}return()=>{d.removeEventListener(pg,p);const _=d.ownerDocument,E=CustomEvent;setTimeout(()=>{const N=new E(mg,fC);d.addEventListener(mg,v),d.dispatchEvent(N),N.defaultPrevented||Oi(A??_.body,{select:!0}),d.removeEventListener(mg,v),dC.remove(P)},0)}}},[d,p,v,P]);const O=S.useCallback(A=>{if(!n&&!i||P.paused)return;const C=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,_=document.activeElement;if(C&&_){const E=A.currentTarget,[N,R]=rI(E);N&&R?!A.shiftKey&&_===R?(A.preventDefault(),n&&Oi(N,{select:!0})):A.shiftKey&&_===N&&(A.preventDefault(),n&&Oi(R,{select:!0})):_===E&&A.preventDefault()}},[n,i,P.paused]);return u.jsx(Ke.div,{tabIndex:-1,...f,ref:b,onKeyDown:O})},"FocusScope")),QM=S.createContext(null);function ZM({registry:e,children:t}){return e?u.jsx(QM.Provider,{value:e,children:t}):t}Bt(ZM,"FocusScopeBranchProvider");function JM(){const[e,t]=S.useState([]),r=S.useMemo(()=>({add:Bt(n=>t(i=>i.includes(n)?i:[...i,n]),"add"),remove:Bt(n=>t(i=>i.filter(o=>o!==n)),"remove")}),[]);return{nodes:e,registry:r}}Bt(JM,"useFocusScopeBranchRegistry");function eI(e){const t=S.useContext(QM);S.useEffect(()=>{if(!(!e||!t))return t.add(e),()=>t.remove(e)},[e,t])}Bt(eI,"useFocusScopeBranch");function tI(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Oi(n,{select:t}),document.activeElement!==r)return}Bt(tI,"focusFirst");function rI(e){const t=Z1(e),r=ew(t,e),n=ew(t.reverse(),e);return[r,n]}Bt(rI,"getTabbableEdges");function Z1(e){const t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Bt(i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Bt(Z1,"getTabbableCandidates");function ew(e,t){const r=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const n of e)if(!(r?!n.checkVisibility({checkVisibilityCSS:!0}):nI(n,{upTo:t})))return n}Bt(ew,"findVisible");function nI(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Bt(nI,"isHidden");function iI(e){return e.tagName==="INPUT"&&typeof e.select=="function"}Bt(iI,"isSelectableInput");function Oi(e,{select:t=!1}={}){if(e&&e.focus){const n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&iI(e)&&t&&e.select()}}Bt(Oi,"focus");var dC=oI();function oI(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=tw(e,t),e.unshift(t)},remove(t){var r;e=tw(e,t),(r=e[0])==null||r.resume()}}}Bt(oI,"createFocusScopesStack");function tw(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}Bt(tw,"arrayRemove");function aI(e){return e.filter(t=>t.tagName!=="A")}Bt(aI,"removeLinks");var eq=Object.defineProperty,tq=(e,t)=>eq(e,"name",{value:t,configurable:!0}),rq=Go[" useId ".trim().toString()]||(()=>{}),nq=0;function ki(e){const[t,r]=S.useState(rq());return bt(()=>{e||r(n=>n??String(nq++))},[e]),e||(t?`radix-${t}`:"")}tq(ki,"useId");const iq=["top","right","bottom","left"],Bo=Math.min,Ri=Math.max,sh=Math.round,bd=Math.floor,Mi=e=>({x:e,y:e}),oq={left:"right",right:"left",bottom:"top",top:"bottom"};function sI(e,t,r){return Ri(e,Bo(t,r))}function Wi(e,t){return typeof e=="function"?e(t):e}function zo(e){return e.split("-")[0]}function Nl(e){return e.split("-")[1]}function J1(e){return e==="x"?"y":"x"}function eS(e){return e==="y"?"height":"width"}function Yn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function tS(e){return J1(Yn(e))}function aq(e,t,r){r===void 0&&(r=!1);const n=Nl(e),i=tS(e),o=eS(i);let s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=lh(s)),[s,lh(s)]}function sq(e){const t=lh(e);return[rw(e),t,rw(t)]}function rw(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hC=["left","right"],pC=["right","left"],lq=["top","bottom"],cq=["bottom","top"];function uq(e,t,r){switch(e){case"top":case"bottom":return r?t?pC:hC:t?hC:pC;case"left":case"right":return t?lq:cq;default:return[]}}function fq(e,t,r,n){const i=Nl(e);let o=uq(zo(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(rw)))),o}function lh(e){const t=zo(e);return oq[t]+e.slice(t.length)}function dq(e){var t,r,n,i;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(n=e.bottom)!=null?n:0,left:(i=e.left)!=null?i:0}}function lI(e){return typeof e!="number"?dq(e):{top:e,right:e,bottom:e,left:e}}function ch(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function mC(e,t,r){let{reference:n,floating:i}=e;const o=Yn(t),s=tS(t),c=eS(s),f=zo(t),d=o==="y",m=n.x+n.width/2-i.width/2,p=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2;let x;switch(f){case"top":x={x:m,y:n.y-i.height};break;case"bottom":x={x:m,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y:p};break;case"left":x={x:n.x-i.width,y:p};break;default:x={x:n.x,y:n.y}}const b=Nl(t);return b&&(x[s]+=v*(b==="end"?1:-1)*(r&&d?-1:1)),x}async function hq(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:s,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:v=!1,padding:x=0}=Wi(t,e),b=lI(x),y=c[v?p==="floating"?"reference":"floating":p],P=ch(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(y)))==null||r?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),O=p==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),C=await(o.isElement==null?void 0:o.isElement(A))&&await(o.getScale==null?void 0:o.getScale(A))||{x:1,y:1},_=ch(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:O,offsetParent:A,strategy:f}):O);return{top:(P.top-_.top+b.top)/C.y,bottom:(_.bottom-P.bottom+b.bottom)/C.y,left:(P.left-_.left+b.left)/C.x,right:(_.right-P.right+b.right)/C.x}}const pq=50,mq=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=s.detectOverflow?s:{...s,detectOverflow:hq},f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=mC(d,n,f),v=n,x=0;const b={};for(let w=0;w<o.length;w++){const y=o[w];if(!y)continue;const{name:P,fn:O}=y,{x:A,y:C,data:_,reset:E}=await O({x:m,y:p,initialPlacement:n,placement:v,strategy:i,middlewareData:b,rects:d,platform:c,elements:{reference:e,floating:t}});m=A??m,p=C??p,b[P]={...b[P],..._},E&&x<pq&&(x++,typeof E=="object"&&(E.placement&&(v=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:m,y:p}=mC(d,v,f)),w=-1)}return{x:m,y:p,placement:v,strategy:i,middlewareData:b}},vq=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=Wi(e,t)||{};if(d==null)return{};const p=lI(m),v={x:r,y:n},x=tS(i),b=eS(x),w=await s.getDimensions(d),y=x==="y",P=y?"top":"left",O=y?"bottom":"right",A=y?"clientHeight":"clientWidth",C=o.reference[b]+o.reference[x]-v[x]-o.floating[b],_=v[x]-o.reference[x],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let N=E?E[A]:0;(!N||!await(s.isElement==null?void 0:s.isElement(E)))&&(N=c.floating[A]||o.floating[b]);const R=C/2-_/2,M=N/2-w[b]/2-1,F=Bo(p[P],M),I=Bo(p[O],M),$=N-w[b]-I,L=N/2-w[b]/2+R,U=sI(F,L,$),H=!f.arrow&&Nl(i)!=null&&L!==U&&o.reference[b]/2-(L<F?F:I)-w[b]/2<0,B=H?L<F?L-F:L-$:0;return{[x]:v[x]+B,data:{[x]:U,centerOffset:L-U-B,...H&&{alignmentOffset:B}},reset:H}}}),gq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,...y}=Wi(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};const P=zo(i),O=Yn(c),A=zo(c)===c,C=await(f.isRTL==null?void 0:f.isRTL(d.floating)),_=v||(A||!w?[lh(c)]:sq(c)),E=b!=="none";!v&&E&&_.push(...fq(c,w,b,C));const N=[c,..._],R=await f.detectOverflow(t,y),M=[];let F=((n=o.flip)==null?void 0:n.overflows)||[];if(m&&M.push(R[P]),p){const U=aq(i,s,C);M.push(R[U[0]],R[U[1]])}if(F=[...F,{placement:i,overflows:M}],!M.every(U=>U<=0)){var I,$;const U=(((I=o.flip)==null?void 0:I.index)||0)+1,H=N[U];if(H&&(!(p==="alignment"?O!==Yn(H):!1)||F.every(W=>Yn(W.placement)===O?W.overflows[0]>0:!0)))return{data:{index:U,overflows:F},reset:{placement:H}};let B=($=F.filter(X=>X.overflows[0]<=0).sort((X,W)=>X.overflows[1]-W.overflows[1])[0])==null?void 0:$.placement;if(!B)switch(x){case"bestFit":{var L;const X=(L=F.filter(W=>{if(E){const q=Yn(W.placement);return q===O||q==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(q=>q>0).reduce((q,V)=>q+V,0)]).sort((W,q)=>W[1]-q[1])[0])==null?void 0:L[0];X&&(B=X);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function vC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gC(e){return iq.some(t=>e[t]>=0)}const yq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...o}=Wi(e,t);switch(i){case"referenceHidden":{const s=await n.detectOverflow(t,{...o,elementContext:"reference"}),c=vC(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:gC(c)}}}case"escaped":{const s=await n.detectOverflow(t,{...o,altBoundary:!0}),c=vC(s,r.floating);return{data:{escapedOffsets:c,escaped:gC(c)}}}default:return{}}}}},cI=new Set(["left","top"]);async function xq(e,t){const{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=zo(r),c=Nl(r),f=Yn(r)==="y",d=cI.has(s)?-1:1,m=o&&f?-1:1,p=Wi(t,e);let{mainAxis:v,crossAxis:x,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof b=="number"&&(x=c==="end"?b*-1:b),f?{x:x*m,y:v*d}:{x:v*d,y:x*m}}const bq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:s,middlewareData:c}=t,f=await xq(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:s}}}}},wq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:o}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:O=>{let{x:A,y:C}=O;return{x:A,y:C}}},...d}=Wi(e,t),m={x:r,y:n},p=await o.detectOverflow(t,d),v=Yn(i),x=J1(v);let b=m[x],w=m[v];const y=(O,A)=>sI(A+p[O==="y"?"top":"left"],A,A-p[O==="y"?"bottom":"right"]);s&&(b=y(x,b)),c&&(w=y(v,w));const P=f.fn({...t,[x]:b,[v]:w});return{...P,data:{x:P.x-r,y:P.y-n,enabled:{[x]:s,[v]:c}}}}}},Sq=function(e){return e===void 0&&(e={}),{options:e,fn(t){var r,n;const{x:i,y:o,placement:s,rects:c,middlewareData:f}=t,{offset:d=0,mainAxis:m=!0,crossAxis:p=!0}=Wi(e,t),v={x:i,y:o},x=Yn(s),b=J1(x);let w=v[b],y=v[x];const P=Wi(d,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:(r=P.mainAxis)!=null?r:0,crossAxis:(n=P.crossAxis)!=null?n:0};if(m){const _=b==="y"?"height":"width",E=c.reference[b]-c.floating[_]+O.mainAxis,N=c.reference[b]+c.reference[_]-O.mainAxis;w<E?w=E:w>N&&(w=N)}if(p){var A,C;const _=b==="y"?"width":"height",E=cI.has(zo(s)),N=c.reference[x]-c.floating[_]+(E&&((A=f.offset)==null?void 0:A[x])||0)+(E?0:O.crossAxis),R=c.reference[x]+c.reference[_]+(E?0:((C=f.offset)==null?void 0:C[x])||0)-(E?O.crossAxis:0);y<N?y=N:y>R&&(y=R)}return{[b]:w,[x]:y}}}},_q=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:s=()=>{},...c}=Wi(e,t),f=await i.detectOverflow(t,c),d=zo(r),m=Nl(r),p=Yn(r)==="y",{width:v,height:x}=n.floating;let b,w;d==="top"||d==="bottom"?(b=d,w=m===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(w=d,b=m==="end"?"top":"bottom");const y=x-f.top-f.bottom,P=v-f.left-f.right,O=Bo(x-f[b],y),A=Bo(v-f[w],P),C=t.middlewareData.shift,_=!C;let E=O,N=A;C!=null&&C.enabled.x&&(N=P),C!=null&&C.enabled.y&&(E=y),_&&!m&&(p?N=v-2*Ri(f.left,f.right):E=x-2*Ri(f.top,f.bottom)),await s({...t,availableWidth:N,availableHeight:E});const R=await i.getDimensions(o.floating);return v!==R.width||x!==R.height?{reset:{rects:!0}}:{}}}};function Sp(){return typeof window<"u"}function kl(e){return uI(e)?(e.nodeName||"").toLowerCase():"#document"}function zr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function to(e){var t;return(t=(uI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function uI(e){return Sp()?e instanceof Node||e instanceof zr(e).Node:!1}function ii(e){return Sp()?e instanceof Element||e instanceof zr(e).Element:!1}function Xo(e){return Sp()?e instanceof HTMLElement||e instanceof zr(e).HTMLElement:!1}function yC(e){return!Sp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zr(e).ShadowRoot}function _p(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=oi(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function jq(e){return/^(table|td|th)$/.test(kl(e))}function jp(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Pq=/transform|translate|scale|rotate|perspective|filter/,Oq=/paint|layout|strict|content/,ga=e=>!!e&&e!=="none";let vg;function rS(e){const t=ii(e)?oi(e):e;return ga(t.transform)||ga(t.translate)||ga(t.scale)||ga(t.rotate)||ga(t.perspective)||!nS()&&(ga(t.backdropFilter)||ga(t.filter))||Pq.test(t.willChange||"")||Oq.test(t.contain||"")}function Cq(e){let t=ka(e);for(;Xo(t)&&!iu(t);){if(rS(t))return t;if(jp(t))return null;t=ka(t)}return null}function nS(){return vg==null&&(vg=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vg}function iu(e){return/^(html|body|#document)$/.test(kl(e))}function oi(e){return zr(e).getComputedStyle(e)}function Pp(e){return ii(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ka(e){if(kl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yC(e)&&e.host||to(e);return yC(t)?t.host:t}function fI(e){const t=ka(e);return iu(t)?(e.ownerDocument||e).body:Xo(t)&&_p(t)?t:fI(t)}function ou(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=fI(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=zr(i);if(o){const c=nw(s);return t.concat(s,s.visualViewport||[],_p(i)?i:[],c&&r?ou(c):[])}else return t.concat(i,ou(i,[],r))}function nw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function dI(e){const t=oi(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Xo(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,c=sh(r)!==o||sh(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function iS(e){return ii(e)?e:e.contextElement}function qs(e){const t=iS(e);if(!Xo(t))return Mi(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=dI(t);let s=(o?sh(r.width):r.width)/n,c=(o?sh(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Aq=Mi(0);function hI(e){const t=zr(e);return!nS()||!t.visualViewport?Aq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Eq(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===zr(e)}function Ra(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),o=iS(e);let s=Mi(1);t&&(n?ii(n)&&(s=qs(n)):s=qs(e));const c=Eq(o,r,n)?hI(o):Mi(0);let f=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(o&&n){const v=zr(o),x=ii(n)?zr(n):n;let b=v,w=nw(b);for(;w&&x!==b;){const y=qs(w),P=w.getBoundingClientRect(),O=oi(w),A=P.left+(w.clientLeft+parseFloat(O.paddingLeft))*y.x,C=P.top+(w.clientTop+parseFloat(O.paddingTop))*y.y;f*=y.x,d*=y.y,m*=y.x,p*=y.y,f+=A,d+=C,b=zr(w),w=nw(b)}}return ch({width:m,height:p,x:f,y:d})}function Op(e,t){const r=Pp(e).scrollLeft;return t?t.left+r:Ra(to(e)).left+r}function pI(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Op(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function Tq(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o=i==="fixed",s=to(n),c=t?jp(t.floating):!1;if(n===s||c&&o)return r;let f={scrollLeft:0,scrollTop:0},d=Mi(1);const m=Mi(0),p=Xo(n);if((p||!o)&&((kl(n)!=="body"||_p(s))&&(f=Pp(n)),p)){const x=Ra(n);d=qs(n),m.x=x.x+n.clientLeft,m.y=x.y+n.clientTop}const v=s&&!p&&!o?pI(s,f):Mi(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-f.scrollLeft*d.x+m.x+v.x,y:r.y*d.y-f.scrollTop*d.y+m.y+v.y}}function Nq(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function kq(e){const t=Pp(e),r=e.ownerDocument.body,n=Ri(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Ri(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-t.scrollLeft+Op(e);const s=-t.scrollTop;return oi(r).direction==="rtl"&&(o+=Ri(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:s}}const Rq=25;function Mq(e,t,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",i=zr(e),o=to(e),s=i.visualViewport;let c=o.clientWidth,f=o.clientHeight,d=0,m=0;if(s){const v=!nS()||t==="fixed";n?v||(d=-s.offsetLeft,m=-s.offsetTop):(c=s.width,f=s.height,v&&(d=s.offsetLeft,m=s.offsetTop))}if(Op(o)<=0){const v=o.ownerDocument,x=v.body,b=getComputedStyle(x),w=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,y=Math.abs(o.clientWidth-x.clientWidth-w),P=getComputedStyle(o).scrollbarGutter==="stable both-edges"?y/2:y;P<=Rq&&(c-=P)}return{width:c,height:f,x:d,y:m}}function Iq(e,t){const r=Ra(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=qs(e),s=e.clientWidth*o.x,c=e.clientHeight*o.y,f=i*o.x,d=n*o.y;return{width:s,height:c,x:f,y:d}}function xC(e,t,r){let n;if(t==="viewport"||t==="layoutViewport")n=Mq(e,r,t);else if(t==="document")n=kq(to(e));else if(ii(t))n=Iq(t,r);else{const i=hI(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ch(n)}function $q(e,t){const r=t.get(e);if(r)return r;let n=ou(e,[],!1).filter(c=>ii(c)&&kl(c)!=="body"),i=null;const o=oi(e).position==="fixed";let s=o?ka(e):e;for(;ii(s)&&!iu(s);){const c=oi(s),f=rS(s),d=i?i.position:o?"fixed":"";!f&&(d==="fixed"||d==="absolute"&&c.position==="static")?n=n.filter(p=>p!==s):i=c,s=ka(s)}return t.set(e,n),n}function Dq(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const s=[...r==="clippingAncestors"?jp(t)?[]:$q(t,this._c):[].concat(r),n],c=xC(t,s[0],i);let f=c.top,d=c.right,m=c.bottom,p=c.left;for(let v=1;v<s.length;v++){const x=xC(t,s[v],i);f=Ri(x.top,f),d=Bo(x.right,d),m=Bo(x.bottom,m),p=Ri(x.left,p)}return{width:d-p,height:m-f,x:p,y:f}}function Lq(e){const{width:t,height:r}=dI(e);return{width:t,height:r}}function Fq(e,t,r){const n=Xo(t),i=to(t),o=r==="fixed",s=Ra(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const f=Mi(0);if((n||!o)&&((kl(t)!=="body"||_p(i))&&(c=Pp(t)),n)){const v=Ra(t,!0,o,t);f.x=v.x+t.clientLeft,f.y=v.y+t.clientTop}!n&&i&&(f.x=Op(i));const d=i&&!n&&!o?pI(i,c):Mi(0),m=s.left+c.scrollLeft-f.x-d.x,p=s.top+c.scrollTop-f.y-d.y;return{x:m,y:p,width:s.width,height:s.height}}function gg(e){return oi(e).position==="static"}function bC(e,t){if(!Xo(e)||oi(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return to(e)===r&&(r=r.ownerDocument.body),r}function mI(e,t){const r=zr(e);if(jp(e))return r;if(!Xo(e)){let i=ka(e);for(;i&&!iu(i);){if(ii(i)&&!gg(i))return i;i=ka(i)}return r}let n=bC(e,t);for(;n&&jq(n)&&gg(n);)n=bC(n,t);return n&&iu(n)&&gg(n)&&!rS(n)?r:n||Cq(e)||r}const Bq=async function(e){const t=this.getOffsetParent||mI,r=this.getDimensions,n=await r(e.floating);return{reference:Fq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function zq(e){return oi(e).direction==="rtl"}const qq={convertOffsetParentRelativeRectToViewportRelativeRect:Tq,getDocumentElement:to,getClippingRect:Dq,getOffsetParent:mI,getElementRects:Bq,getClientRects:Nq,getDimensions:Lq,getScale:qs,isElement:ii,isRTL:zq};function vI(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uq(e,t,r){let n=null,i;const o=to(e);function s(){var m;clearTimeout(i),(m=n)==null||m.disconnect(),n=null}function c(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),s();const v=e.getBoundingClientRect(),{left:x,top:b,width:w,height:y}=v;if(m||t(),!w||!y)return;const P=bd(b),O=bd(o.clientWidth-(x+w)),A=bd(o.clientHeight-(b+y)),C=bd(x),E={rootMargin:-P+"px "+-O+"px "+-A+"px "+-C+"px",threshold:Ri(0,Bo(1,p))||1};let N=!0;function R(M){const F=M[0].intersectionRatio;if(!vI(v,e.getBoundingClientRect()))return c();if(F!==p){if(!N)return c();F?c(!1,F):i=setTimeout(()=>{c(!1,1e-7)},1e3)}N=!1}try{n=new IntersectionObserver(R,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(R,E)}n.observe(e)}const f=zr(e),d=()=>c(r);return f.addEventListener("resize",d),c(!0),()=>{f.removeEventListener("resize",d),s()}}function Wq(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=n,d=iS(e),m=i||o?[...d?ou(d):[],...t?ou(t):[]]:[];m.forEach(P=>{i&&P.addEventListener("scroll",r),o&&P.addEventListener("resize",r)});const p=d&&c?Uq(d,r,o):null;let v=-1,x=null;s&&(x=new ResizeObserver(P=>{let[O]=P;O&&O.target===d&&x&&t&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(t)})),r()}),d&&!f&&x.observe(d),t&&x.observe(t));let b,w=f?Ra(e):null;f&&y();function y(){const P=Ra(e);w&&!vI(w,P)&&r(),w=P,b=requestAnimationFrame(y)}return r(),()=>{var P;m.forEach(O=>{i&&O.removeEventListener("scroll",r),o&&O.removeEventListener("resize",r)}),p==null||p(),(P=x)==null||P.disconnect(),x=null,f&&cancelAnimationFrame(b)}}const Hq=bq,Vq=wq,Gq=gq,Kq=_q,Xq=yq,wC=vq,Yq=Sq,Qq=(e,t,r)=>{const n=new Map,i=r??{},o={...qq,...i.platform,_c:n};return mq(e,t,{...i,platform:o})};var Zq=typeof document<"u",Jq=function(){},Kd=Zq?S.useLayoutEffect:Jq;function uh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!uh(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!uh(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function gI(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function SC(e,t){const r=gI(e);return Math.round(t*r)/r}function yg(e){const t=S.useRef(e);return Kd(()=>{t.current=e}),t}function e8(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,p]=S.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[v,x]=S.useState(n);uh(v,n)||x(n);const[b,w]=S.useState(null),[y,P]=S.useState(null),O=S.useCallback(W=>{W!==E.current&&(E.current=W,w(W))},[]),A=S.useCallback(W=>{W!==N.current&&(N.current=W,P(W))},[]),C=o||b,_=s||y,E=S.useRef(null),N=S.useRef(null),R=S.useRef(m),M=f!=null,F=yg(f),I=yg(i),$=yg(d),L=S.useCallback(()=>{if(!E.current||!N.current)return;const W={placement:t,strategy:r,middleware:v};I.current&&(W.platform=I.current),Qq(E.current,N.current,W).then(q=>{const V={...q,isPositioned:$.current!==!1};U.current&&!uh(R.current,V)&&(R.current=V,Wu.flushSync(()=>{p(V)}))})},[v,t,r,I,$]);Kd(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(W=>({...W,isPositioned:!1})))},[d]);const U=S.useRef(!1);Kd(()=>(U.current=!0,()=>{U.current=!1}),[]),Kd(()=>{if(C&&(E.current=C),_&&(N.current=_),C&&_){if(F.current)return F.current(C,_,L);L()}},[C,_,L,F,M]);const H=S.useMemo(()=>({reference:E,floating:N,setReference:O,setFloating:A}),[O,A]),B=S.useMemo(()=>({reference:C,floating:_}),[C,_]),X=S.useMemo(()=>{const W={position:r,left:0,top:0};if(!B.floating)return W;const q=SC(B.floating,m.x),V=SC(B.floating,m.y);return c?{...W,transform:"translate("+q+"px, "+V+"px)",...gI(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:V}},[r,c,B.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:L,refs:H,elements:B,floatingStyles:X}),[m,L,H,B,X])}const t8=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?wC({element:n.current,padding:i}).fn(r):{}:n?wC({element:n,padding:i}).fn(r):{}}}},r8=(e,t)=>{const r=Hq(e);return{name:r.name,fn:r.fn,options:[e,t]}},n8=(e,t)=>{const r=Vq(e);return{name:r.name,fn:r.fn,options:[e,t]}},i8=(e,t)=>({fn:Yq(e).fn,options:[e,t]}),o8=(e,t)=>{const r=Gq(e);return{name:r.name,fn:r.fn,options:[e,t]}},a8=(e,t)=>{const r=Kq(e);return{name:r.name,fn:r.fn,options:[e,t]}},s8=(e,t)=>{const r=Xq(e);return{name:r.name,fn:r.fn,options:[e,t]}},l8=(e,t)=>{const r=t8(e);return{name:r.name,fn:r.fn,options:[e,t]}};var c8=Object.defineProperty,u8=(e,t)=>c8(e,"name",{value:t,configurable:!0});function oS(e){const[t,r]=S.useState(void 0);return bt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=0;const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];window.cancelAnimationFrame(n),n=window.requestAnimationFrame(()=>{let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,m=Array.isArray(d)?d[0]:d;c=m.inlineSize,f=m.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})})});return i.observe(e,{box:"border-box"}),()=>{window.cancelAnimationFrame(n),i.unobserve(e)}}else r(void 0)},[e]),t}u8(oS,"useSize");var f8=Object.defineProperty,$o=(e,t)=>f8(e,"name",{value:t,configurable:!0}),_C={Partial:"partial"},jC={Optimized:"optimized",Always:"always"},yI="Popper",[xI,Cp]=zn(yI),[d8,bI]=xI(yI),wI=$o(e=>{const{__scopePopper:t,children:r}=e,[n,i]=S.useState(null),[o,s]=S.useState(void 0);return u.jsx(d8,{scope:t,anchor:n,onAnchorChange:i,placementState:o,setPlacementState:s,children:r})},"Popper"),h8="PopperAnchor",SI=S.forwardRef($o(function(t,r){const{__scopePopper:n,virtualRef:i,...o}=t,s=bI(h8,n),c=S.useRef(null),f=s.onAnchorChange,d=S.useCallback(w=>{c.current=w,w&&f(w)},[f]),m=tt(r,d),p=S.useRef(null);S.useEffect(()=>{if(!i)return;const w=p.current;p.current=i.current,w!==p.current&&f(p.current)});const v=s.placementState&&Ap(s.placementState),x=v==null?void 0:v[0],b=v==null?void 0:v[1];return i?null:u.jsx(Ke.div,{"data-radix-popper-side":x,"data-radix-popper-align":b,...o,ref:m})},"PopperAnchor")),_I="PopperContent",[p8,Qse]=xI(_I),jI=S.forwardRef($o(function(t,r){var oe,ae,xe,Z,ve,de,Re;const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:m=[],collisionPadding:p=0,sticky:v=_C.Partial,hideWhenDetached:x=!1,updatePositionStrategy:b=jC.Optimized,onPlaced:w,...y}=t,P=bI(_I,n),[O,A]=S.useState(null),C=tt(r,A),[_,E]=S.useState(null),N=oS(_),R=(N==null?void 0:N.width)??0,M=(N==null?void 0:N.height)??0,F=i+(s!=="center"?"-"+s:""),I=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},$=Array.isArray(m)?m:[m],L=$.length>0,U={padding:I,boundary:$.filter(PI),altBoundary:L},{refs:H,floatingStyles:B,placement:X,isPositioned:W,middlewareData:q}=e8({strategy:"fixed",placement:F,whileElementsMounted:$o((...ot)=>Wq(...ot,{animationFrame:b===jC.Always}),"whileElementsMounted"),elements:{reference:P.anchor},middleware:[r8({mainAxis:o+M,alignmentAxis:c}),d&&n8({mainAxis:!0,crossAxis:!1,...v===_C.Partial?{limiter:i8()}:{},...U}),d&&o8({...U}),a8({...U,apply:$o(({elements:ot,rects:mt,availableWidth:lr,availableHeight:nn})=>{const{width:on,height:vr}=mt.reference,gr=ot.floating.style;gr.setProperty("--radix-popper-available-width",`${lr}px`),gr.setProperty("--radix-popper-available-height",`${nn}px`),gr.setProperty("--radix-popper-anchor-width",`${on}px`),gr.setProperty("--radix-popper-anchor-height",`${vr}px`)},"apply")}),_&&l8({element:_,padding:f}),m8({arrowWidth:R,arrowHeight:M}),x&&s8(L?{strategy:"referenceHidden",...U}:{strategy:"referenceHidden",padding:U.padding,altBoundary:U.altBoundary})]}),V=P.setPlacementState;bt(()=>(V(X),()=>{V(void 0)}),[X,V]);const[D,Y]=Ap(X),ie=or(w);bt(()=>{W&&(ie==null||ie())},[W,ie]);const ne=(oe=q.arrow)==null?void 0:oe.x,pe=(ae=q.arrow)==null?void 0:ae.y,ge=((xe=q.arrow)==null?void 0:xe.centerOffset)!==0,[ke,Ee]=S.useState();return bt(()=>{O&&Ee(window.getComputedStyle(O).zIndex)},[O]),u.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...B,transform:W?B.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ke,"--radix-popper-transform-origin":[(Z=q.transformOrigin)==null?void 0:Z.x,(ve=q.transformOrigin)==null?void 0:ve.y].join(" "),...((de=q.hide)==null?void 0:de.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(p8,{scope:n,placedSide:D,placedAlign:Y,onArrowChange:E,arrowX:ne,arrowY:pe,shouldHideArrow:ge,children:u.jsx(Ke.div,{"data-side":D,"data-align":Y,...y,ref:C,style:{...y.style,animation:W?(Re=y.style)==null?void 0:Re.animation:"none"}})})})},"PopperContent"));function PI(e){return e!==null}$o(PI,"isNotNull");var m8=$o(e=>({name:"transformOrigin",options:e,fn(t){var y,P,O;const{placement:r,rects:n,middlewareData:i}=t,s=((y=i.arrow)==null?void 0:y.centerOffset)!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[d,m]=Ap(r),p={start:"0%",center:"50%",end:"100%"}[m],v=(((P=i.arrow)==null?void 0:P.x)??0)+c/2,x=(((O=i.arrow)==null?void 0:O.y)??0)+f/2;let b="",w="";return d==="bottom"?(b=s?p:`${v}px`,w=`${-f}px`):d==="top"?(b=s?p:`${v}px`,w=`${n.floating.height+f}px`):d==="right"?(b=`${-f}px`,w=s?p:`${x}px`):d==="left"&&(b=`${n.floating.width+f}px`,w=s?p:`${x}px`),{data:{x:b,y:w}}}}),"transformOrigin");function Ap(e){const[t,r="center"]=e.split("-");return[t,r]}$o(Ap,"getSideAndAlignFromPlacement");var v8=Object.defineProperty,g8=(e,t)=>v8(e,"name",{value:t,configurable:!0}),aS=S.forwardRef(g8(function(t,r){var f;const{container:n,...i}=t,[o,s]=S.useState(!1);bt(()=>s(!0),[]);const c=n||o&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Wu.createPortal(u.jsx(Ke.div,{...i,ref:r}),c):null},"Portal")),y8=Object.defineProperty,x8=(e,t)=>y8(e,"name",{value:t,configurable:!0}),PC=Go[" useEffectEvent ".trim().toString()],OC=Go[" useInsertionEffect ".trim().toString()];function OI(e){if(typeof PC=="function")return PC(e);const t=S.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof OC=="function"?OC(()=>{t.current=e}):bt(()=>{t.current=e}),S.useMemo(()=>((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)}),[])}x8(OI,"useEffectEvent");var b8=Object.defineProperty,Xu=(e,t)=>b8(e,"name",{value:t,configurable:!0}),w8=Go[" useInsertionEffect ".trim().toString()]||bt;function qo({prop:e,defaultProp:t,onChange:r=Xu(()=>{},"onChange"),caller:n}){const[i,o,s]=CI({defaultProp:t,onChange:r}),c=e!==void 0,f=c?e:i,d=S.useCallback(m=>{var p;if(c){const v=AI(m)?m(e):m;v!==e&&((p=s.current)==null||p.call(s,v))}else o(m)},[c,e,o,s]);return[f,d]}Xu(qo,"useControllableState");function CI({defaultProp:e,onChange:t}){const[r,n]=S.useState(e),i=S.useRef(r),o=S.useRef(t);return w8(()=>{o.current=t},[t]),S.useEffect(()=>{var s;i.current!==r&&((s=o.current)==null||s.call(o,r),i.current=r)},[r,i]),[r,n,o]}Xu(CI,"useUncontrolledState");function AI(e){return typeof e=="function"}Xu(AI,"isFunction");var CC=Symbol("RADIX:SYNC_STATE");function S8(e,t,r,n){const{prop:i,defaultProp:o,onChange:s,caller:c}=t,f=i!==void 0,d=OI(s),m=[{...r,state:o}];n&&m.push(n);const[p,v]=S.useReducer((y,P)=>{if(P.type===CC)return{...y,state:P.state};const O=e(y,P);return f&&!Object.is(O.state,y.state)&&d(O.state),O},...m),x=p.state,b=S.useRef(x);S.useEffect(()=>{b.current!==x&&(b.current=x,f||d(x))},[x,b,f]);const w=S.useMemo(()=>i!==void 0?{...p,state:i}:p,[p,i]);return S.useEffect(()=>{f&&!Object.is(i,p.state)&&v({type:CC,state:i})},[i,p.state,f]),[w,v]}Xu(S8,"useControllableStateReducer");var _8=Object.defineProperty,j8=(e,t)=>_8(e,"name",{value:t,configurable:!0}),EI=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),P8=S.forwardRef(j8(function(t,r){return u.jsx(Ke.span,{...t,ref:r,style:{...EI,...t.style}})},"VisuallyHidden")),O8=Object.defineProperty,Yt=(e,t)=>O8(e,"name",{value:t,configurable:!0}),[sS,Zse]=zn("Tooltip",[Cp]),lS=Cp(),C8="TooltipProvider",A8=700,iw="tooltip.open",[E8,cS]=sS(C8),T8=Yt(e=>{const{__scopeTooltip:t,delayDuration:r=A8,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:o}=e,s=S.useRef(!0),c=S.useRef(!1),f=S.useRef(0);return S.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),u.jsx(E8,{scope:t,isOpenDelayedRef:s,delayDuration:r,onOpen:S.useCallback(()=>{n<=0||(window.clearTimeout(f.current),s.current=!1)},[n]),onClose:S.useCallback(()=>{n<=0||(window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.current=!0,n))},[n]),isPointerInTransitRef:c,onPointerInTransitChange:S.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:o})},"TooltipProvider"),ow="Tooltip",[N8,Yu]=sS(ow),k8=Yt(e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:i,onOpenChange:o,disableHoverableContent:s,delayDuration:c}=e,f=cS(ow,e.__scopeTooltip),d=lS(t),[m,p]=S.useState(null),[v,x]=S.useState(void 0),b=ki(),w=S.useRef(0),y=s??f.disableHoverableContent,P=c??f.delayDuration,O=S.useRef(!1),[A,C]=qo({prop:n,defaultProp:i??!1,onChange:Yt(F=>{F?(f.onOpen(),document.dispatchEvent(new CustomEvent(iw))):f.onClose(),o==null||o(F)},"onChange"),caller:ow}),_=S.useMemo(()=>A?O.current?"delayed-open":"instant-open":"closed",[A]),E=S.useCallback(()=>{window.clearTimeout(w.current),w.current=0,O.current=!1,C(!0)},[C]),N=S.useCallback(()=>{window.clearTimeout(w.current),w.current=0,C(!1)},[C]),R=S.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{O.current=!0,C(!0),w.current=0},P)},[P,C]);S.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]);const M=v??b;return u.jsx(wI,{...d,children:u.jsx(N8,{scope:t,contentId:M,setContentId:x,open:A,stateAttribute:_,trigger:m,onTriggerChange:p,onTriggerEnter:S.useCallback(()=>{f.isOpenDelayedRef.current?R():E()},[f.isOpenDelayedRef,R,E]),onTriggerLeave:S.useCallback(()=>{y?N():(window.clearTimeout(w.current),w.current=0)},[N,y]),onOpen:E,onClose:N,disableHoverableContent:y,children:r})})},"Tooltip"),AC="TooltipTrigger",R8=S.forwardRef(Yt(function(t,r){const{__scopeTooltip:n,"aria-describedby":i,...o}=t,s=Yu(AC,n),c=cS(AC,n),f=lS(n),d=S.useRef(null),m=tt(r,d,s.onTriggerChange),p=S.useRef(!1),v=S.useRef(!1),x=S.useCallback(()=>p.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),u.jsx(SI,{asChild:!0,...f,children:u.jsx(Ke.button,{"aria-describedby":s.open?FI(i,s.contentId):i,"data-state":s.stateAttribute,...o,ref:m,onPointerMove:Le(t.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),v.current=!0)}),onPointerLeave:Le(t.onPointerLeave,()=>{s.onTriggerLeave(),v.current=!1}),onPointerDown:Le(t.onPointerDown,()=>{s.open&&s.onClose(),p.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:Le(t.onFocus,()=>{p.current||s.onOpen()}),onBlur:Le(t.onBlur,s.onClose),onClick:Le(t.onClick,s.onClose)})})},"TooltipTrigger")),TI="TooltipPortal",[M8,I8]=sS(TI,{forceMount:void 0}),$8=Yt(e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:i}=e,o=Yu(TI,t);return u.jsx(M8,{scope:t,forceMount:r,children:u.jsx(Bn,{present:r||o.open,children:u.jsx(aS,{asChild:!0,container:i,children:n})})})},"TooltipPortal"),au="TooltipContent",NI=S.forwardRef(Yt(function(t,r){const n=I8(au,t.__scopeTooltip),{forceMount:i=n.forceMount,side:o="top",...s}=t,c=Yu(au,t.__scopeTooltip);return u.jsx(Bn,{present:i||c.open,children:c.disableHoverableContent?u.jsx(kI,{side:o,...s,ref:r}):u.jsx(D8,{side:o,...s,ref:r})})},"TooltipContent")),D8=S.forwardRef(Yt(function(t,r){const n=Yu(au,t.__scopeTooltip),i=cS(au,t.__scopeTooltip),o=S.useRef(null),s=tt(r,o),[c,f]=S.useState(null),{trigger:d,onClose:m}=n,p=o.current,{onPointerInTransitChange:v}=i,x=S.useCallback(()=>{f(null),v(!1)},[v]),b=S.useCallback((w,y)=>{const P=w.currentTarget,O={x:w.clientX,y:w.clientY},A=RI(O,P.getBoundingClientRect()),C=MI(O,A),_=II(y.getBoundingClientRect()),E=DI([...C,..._]);f(E),v(!0)},[v]);return S.useEffect(()=>()=>x(),[x]),S.useEffect(()=>{if(d&&p){const w=Yt(P=>b(P,p),"handleTriggerLeave"),y=Yt(P=>b(P,d),"handleContentLeave");return d.addEventListener("pointerleave",w),p.addEventListener("pointerleave",y),()=>{d.removeEventListener("pointerleave",w),p.removeEventListener("pointerleave",y)}}},[d,p,b,x]),S.useEffect(()=>{if(c){const w=Yt(y=>{const P=y.target,O={x:y.clientX,y:y.clientY},A=(d==null?void 0:d.contains(P))||(p==null?void 0:p.contains(P)),C=!$I(O,c);A?x():C&&(x(),m())},"handleTrackPointerGrace");return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[d,p,c,m,x]),u.jsx(kI,{...t,ref:s})},"TooltipContentHoverable")),L8=W1("TooltipContent"),kI=S.forwardRef(Yt(function(t,r){const{__scopeTooltip:n,children:i,"aria-label":o,id:s,onEscapeKeyDown:c,onPointerDownOutside:f,...d}=t,m=Yu(au,n),p=lS(n),{onClose:v}=m,[x,b]=S.useState(null),w=tt(r,b);eI(x),S.useEffect(()=>(document.addEventListener(iw,v),()=>document.removeEventListener(iw,v)),[v]),S.useEffect(()=>{if(m.trigger){const P=Yt(O=>{O.target instanceof Node&&O.target.contains(m.trigger)&&v()},"handleScroll");return window.addEventListener("scroll",P,{capture:!0}),()=>window.removeEventListener("scroll",P,{capture:!0})}},[m.trigger,v]);const{setContentId:y}=m;return bt(()=>(y(s),()=>{y(void 0)}),[s,y]),u.jsx(Y1,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:P=>P.preventDefault(),onDismiss:v,children:u.jsxs(jI,{"data-state":m.stateAttribute,role:o?void 0:"tooltip",id:o?void 0:m.contentId,...p,...d,ref:w,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(L8,{children:i}),o?u.jsx(P8,{id:m.contentId,role:"tooltip",children:o}):null]})})},"TooltipContentImpl"));function RI(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}Yt(RI,"getExitSideFromRect");function MI(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}Yt(MI,"getPaddedExitPoints");function II(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}Yt(II,"getPointsFromRect");function $I(e,t){const{x:r,y:n}=e;let i=!1;for(let o=0,s=t.length-1;o<t.length;s=o++){const c=t[o],f=t[s],d=c.x,m=c.y,p=f.x,v=f.y;m>n!=v>n&&r<(p-d)*(n-m)/(v-m)+d&&(i=!i)}return i}Yt($I,"isPointInPolygon");function DI(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),LI(t)}Yt(DI,"getHull");function LI(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const o=t[t.length-1],s=t[t.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const o=r[r.length-1],s=r[r.length-2];if((o.x-s.x)*(i.y-s.y)>=(o.y-s.y)*(i.x-s.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}Yt(LI,"getHullPresorted");function FI(...e){const t=new Set;for(const r of e)if(typeof r=="string")for(const n of String(r).trim().split(/\s+/))n&&t.add(n);return t.size>0?Array.from(t).join(" "):void 0}Yt(FI,"concatAriaDescribedby");const F8=T8,fh=k8,dh=R8,su=S.forwardRef(({className:e,sideOffset:t=6,...r},n)=>u.jsx($8,{children:u.jsx(NI,{ref:n,sideOffset:t,className:fe("z-50 max-w-xs overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-xs text-popover-foreground shadow-md",e),...r})}));su.displayName=NI.displayName;const BI="vcqa-theme",zI=S.createContext(null);function B8(){if(typeof window>"u")return"dark";try{const e=window.localStorage.getItem(BI);return e==="light"||e==="dark"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"dark"}}function z8({children:e}){const[t,r]=S.useState(B8);S.useEffect(()=>{const s=document.documentElement;s.classList.toggle("dark",t==="dark"),s.style.colorScheme=t;try{window.localStorage.setItem(BI,t)}catch{}},[t]);const n=S.useCallback(s=>r(s),[]),i=S.useCallback(()=>r(s=>s==="dark"?"light":"dark"),[]),o=S.useMemo(()=>({theme:t,setTheme:n,toggle:i}),[t,n,i]);return u.jsx(zI.Provider,{value:o,children:e})}function q8(){const e=S.useContext(zI);if(!e)throw new Error("useTheme must be used inside a ThemeProvider.");return e}function U8(){const{theme:e,toggle:t}=q8(),r=e==="dark"?"light":"dark";return u.jsxs(fh,{children:[u.jsx(dh,{asChild:!0,children:u.jsx(me,{variant:"ghost",size:"icon",onClick:t,"aria-label":`Switch to ${r} theme`,children:e==="dark"?u.jsx(iz,{}):u.jsx(dz,{})})}),u.jsxs(su,{children:["Switch to ",r," theme"]})]})}var W8=Object.defineProperty,Kt=(e,t)=>W8(e,"name",{value:t,configurable:!0});function uS(e){const t=e+"CollectionProvider",[r,n]=zn(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=Kt(w=>{const{scope:y,children:P}=w,O=S.useRef(null),A=S.useRef(new Map).current;return u.jsx(i,{scope:y,itemMap:A,collectionRef:O,children:P})},"CollectionProvider");s.displayName=t;const c=e+"CollectionSlot",f=qi(c),d=S.forwardRef((w,y)=>{const{scope:P,children:O}=w,A=o(c,P),C=tt(y,A.collectionRef);return u.jsx(f,{ref:C,children:O})});d.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",v=qi(m),x=S.forwardRef((w,y)=>{const{scope:P,children:O,...A}=w,C=S.useRef(null),_=tt(y,C),E=o(m,P);return S.useEffect(()=>(E.itemMap.set(C,{ref:C,...A}),()=>void E.itemMap.delete(C))),u.jsx(v,{[p]:"",ref:_,children:O})});x.displayName=m;function b(w){const y=o(e+"CollectionConsumer",w);return S.useCallback(()=>{const O=y.collectionRef.current;if(!O)return[];const A=Array.from(O.querySelectorAll(`[${p}]`));return Array.from(y.itemMap.values()).sort((E,N)=>A.indexOf(E.ref.current)-A.indexOf(N.ref.current))},[y.collectionRef,y.itemMap])}return Kt(b,"useCollection"),[{Provider:s,Slot:d,ItemSlot:x},b,n]}Kt(uS,"createCollection");var EC=new WeakMap,It,Yr,wd=(Yr=class extends Map{constructor(r){super(r);RO(this,It);og(this,It,[...super.keys()]),EC.set(this,!0)}set(r,n){return EC.get(this)&&!this.has(r)&&fr(this,It).push(r),super.set(r,n),this}insert(r,n,i){const o=this.has(n),s=o?this.size:this.size+1,c=fS(r),f=c>=0?Math.min(c,s-1):Math.max(s+c,0);if(o?fr(this,It).indexOf(n)===f:f===this.size)return this.set(n,i),this;const d=fr(this,It).filter(p=>p!==n);d.splice(f,0,n);const m=d.map(p=>[p,p===n?i:this.get(p)]);this.clear();for(const[p,v]of m)this.set(p,v);return this}with(r,n,i){const o=new Yr(this);return o.insert(r,n,i),o}before(r){const n=fr(this,It).indexOf(r)-1;if(!(n<0))return this.entryAt(n)}setBefore(r,n,i){const o=fr(this,It).indexOf(r);if(o===-1)return this;const s=fr(this,It).indexOf(n),c=s!==-1&&s<o?o-1:o;return this.insert(c,n,i)}after(r){let n=fr(this,It).indexOf(r);if(n=n===-1||n===this.size-1?-1:n+1,n!==-1)return this.entryAt(n)}setAfter(r,n,i){const o=fr(this,It).indexOf(r);if(o===-1)return this;const s=fr(this,It).indexOf(n),c=s!==-1&&s<=o?o:o+1;return this.insert(c,n,i)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return og(this,It,[]),super.clear()}delete(r){const n=super.delete(r);return n&&fr(this,It).splice(fr(this,It).indexOf(r),1),n}deleteAt(r){const n=this.keyAt(r);return n!==void 0?this.delete(n):!1}at(r){const n=Xd(fr(this,It),r);if(n!==void 0)return this.get(n)}entryAt(r){const n=Xd(fr(this,It),r);if(n!==void 0)return[n,this.get(n)]}indexOf(r){return fr(this,It).indexOf(r)}keyAt(r){return Xd(fr(this,It),r)}from(r,n){const i=this.indexOf(r);if(i===-1)return;let o=i+n;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.at(o)}keyFrom(r,n){const i=this.indexOf(r);if(i===-1)return;let o=i+n;return o<0&&(o=0),o>=this.size&&(o=this.size-1),this.keyAt(o)}find(r,n){let i=0;for(const o of this){if(Reflect.apply(r,n,[o,i,this]))return o;i++}}findIndex(r,n){let i=0;for(const o of this){if(Reflect.apply(r,n,[o,i,this]))return i;i++}return-1}filter(r,n){const i=[];let o=0;for(const s of this)Reflect.apply(r,n,[s,o,this])&&i.push(s),o++;return new Yr(i)}map(r,n){const i=[];let o=0;for(const s of this)i.push([s[0],Reflect.apply(r,n,[s,o,this])]),o++;return new Yr(i)}reduce(...r){const[n,i]=r,o=r.length>1;if(!o&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let s=0,c=i;for(const f of this)s===0&&!o?c=f:c=Reflect.apply(n,this,[c,f,s,this]),s++;return c}reduceRight(...r){const[n,i]=r,o=r.length>1;if(!o&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let s=i;for(let c=this.size-1;c>=0;c--){const f=this.entryAt(c);c===this.size-1&&!o?s=f:s=Reflect.apply(n,this,[s,f,c,this])}return s}sort(r){if(typeof r!="function")throw new TypeError("OrderedDict.sort requires a compare function");const n=[...this.entries()].sort(r);this.clear();for(const[i,o]of n)this.set(i,o);return this}toSorted(r){if(typeof r!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");const n=[...this.entries()].sort(r);return new Yr(n)}toReversed(){const r=new Yr;for(let n=this.size-1;n>=0;n--){const i=this.keyAt(n),o=this.get(i);r.set(i,o)}return r}toSpliced(...r){const n=[...this.entries()];return n.splice(...r),new Yr(n)}slice(r,n){const i=new Yr;for(const o of fr(this,It).slice(r,n))i.set(o,this.get(o));return i}every(r,n){let i=0;for(const o of this){if(!Reflect.apply(r,n,[o,i,this]))return!1;i++}return!0}some(r,n){let i=0;for(const o of this){if(Reflect.apply(r,n,[o,i,this]))return!0;i++}return!1}},It=new WeakMap,Kt(Yr,"OrderedDict"),Yr);function Xd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const r=qI(e,t);return r===-1?void 0:e[r]}Kt(Xd,"at");function qI(e,t){const r=e.length,n=fS(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}Kt(qI,"toSafeIndex");function fS(e){return e!==e||e===0?0:Math.trunc(e)}Kt(fS,"toSafeInteger");function H8(e){const t=e+"CollectionProvider",[r,n]=zn(t),[i,o]=r(t);i.displayName=e+"CollectionStableContextProvider";const[s,c]=r(t);s.displayName=e+"CollectionStatefulContextProvider";const f=Kt(({state:E,...N})=>E?u.jsx(m,{...N,state:E}):u.jsx(d,{...N}),"CollectionProvider");f.displayName=t;const d=Kt(E=>{const N=O();return u.jsx(m,{...E,state:N})},"CollectionInit");d.displayName=e+"CollectionInit";const m=Kt(E=>{const{scope:N,children:R,state:M}=E,F=S.useRef(null),[I,$]=S.useState(null),L=tt(F,$),[U,H]=M,B=S.useRef(new wd),X=S.useCallback(()=>{const W=B.current;return HI(W)||W.sort(Yd),W},[]);return S.useEffect(()=>{if(!I)return;const W=VI(()=>{H(q=>{const V=q.toSorted(Yd);return V.some(([Y],ie)=>q.keyAt(ie)!==Y)?V:q})});return W.observe(I,{childList:!0,subtree:!0}),()=>{W.disconnect()}},[I,H]),u.jsx(i,{scope:N,collectionElementRef:L,collectionElementRefObject:F,getCollection:X,setCollection:H,registryRef:B,children:u.jsx(s,{scope:N,collectionElement:I,collection:U,children:R})})},"CollectionProviderImpl");m.displayName=e+"CollectionProviderImpl";const p=e+"CollectionSlot",v=qi(p),x=S.forwardRef((E,N)=>{const{scope:R,children:M}=E,F=o(p,R),I=tt(N,F.collectionElementRef);return u.jsx(v,{ref:I,children:M})});x.displayName=p;const b=e+"CollectionItemSlot",w="data-radix-collection-item",y=qi(b),P=S.forwardRef((E,N)=>{const{scope:R,children:M,...F}=E,I=S.useRef(null),$=o(b,R),{setCollection:L,registryRef:U}=$,H=S.useRef(F);UI(H.current,F)||(H.current=F);const B=H.current,X=S.useCallback(V=>{const D=U.current;V?D.set(V,{...H.current,element:V}):I.current&&D.delete(I.current)},[U]),W=tt(N,X,I);bt(()=>{const V=I.current,D=U.current;V&&D.has(V)&&D.set(V,{...B,element:V})},[B,U]);const q=S.useRef(null);return S.useEffect(()=>{const V=I.current,D=q.current;((D==null?void 0:D.element)??null)===V&&(!V||(D==null?void 0:D.itemData)===B)||(q.current=V?{element:V,itemData:B}:null,L(Y=>{const ie=new wd(Y);return D&&D.element!==V&&ie.delete(D.element),V&&ie.set(V,{...B,element:V}),ie.sort(Yd)}))}),S.useEffect(()=>()=>{const V=q.current;q.current=null,V&&L(D=>{if(!D.has(V.element))return D;const Y=new wd(D);return Y.delete(V.element),Y})},[L]),u.jsx(y,{[w]:"",ref:W,children:M})});P.displayName=b;function O(){return S.useState(new wd)}Kt(O,"useInitCollection");function A(E){const{collection:N}=c(e+"CollectionConsumer",E);return N}Kt(A,"useCollection");function C(E){const{getCollection:N}=o(e+"CollectionConsumer",E);return N}return Kt(C,"useGetCollection"),[{Provider:f,Slot:x,ItemSlot:P},{createCollectionScope:n,useCollection:A,useGetCollection:C,useInitCollection:O}]}Kt(H8,"createCollection");function UI(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r)if(!Object.prototype.hasOwnProperty.call(t,i)||e[i]!==t[i])return!1;return!0}Kt(UI,"shallowEqual");function WI(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Kt(WI,"isElementPreceding");function HI(e){let t;for(const r of e.keys()){if(t){const n=t.compareDocumentPosition(r);if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&n&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=r}return!0}Kt(HI,"isInDocumentOrder");function Yd(e,t){return!e[1].element||!t[1].element?0:WI(e[1].element,t[1].element)?-1:1}Kt(Yd,"sortByDocumentPosition");function VI(e){return new MutationObserver(r=>{for(const n of r)if(n.type==="childList"){e();return}})}Kt(VI,"getChildListObserver");var V8=Object.defineProperty,dS=(e,t)=>V8(e,"name",{value:t,configurable:!0}),Sd=0,Kn=null;function G8(e){return Ep(),e.children}dS(G8,"FocusGuards");function Ep(){S.useEffect(()=>{Kn||(Kn={start:aw(),end:aw()});const{start:e,end:t}=Kn;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Sd++,()=>{Sd===1&&(Kn==null||Kn.start.remove(),Kn==null||Kn.end.remove(),Kn=null),Sd=Math.max(0,Sd-1)}},[])}dS(Ep,"useFocusGuards");function aw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}dS(aw,"createFocusGuard");var K8=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},js=new WeakMap,_d=new WeakMap,jd={},xg=0,GI=function(e){return e&&(e.host||GI(e.parentNode))},X8=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=GI(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Y8=function(e,t,r,n){var i=X8(t,Array.isArray(e)?e:[e]);jd[r]||(jd[r]=new WeakMap);var o=jd[r],s=[],c=new Set,f=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var m=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(v){if(c.has(v))m(v);else try{var x=v.getAttribute(n),b=x!==null&&x!=="false",w=(js.get(v)||0)+1,y=(o.get(v)||0)+1;js.set(v,w),o.set(v,y),s.push(v),w===1&&b&&_d.set(v,!0),y===1&&v.setAttribute(r,"true"),b||v.setAttribute(n,"true")}catch(P){console.error("aria-hidden: cannot operate on ",v,P)}})};return m(t),c.clear(),xg++,function(){s.forEach(function(p){var v=js.get(p)-1,x=o.get(p)-1;js.set(p,v),o.set(p,x),v||(_d.has(p)||p.removeAttribute(n),_d.delete(p)),x||p.removeAttribute(r)}),xg--,xg||(js=new WeakMap,js=new WeakMap,_d=new WeakMap,jd={})}},KI=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=K8(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),Y8(n,i,r,"aria-hidden")):function(){return null}},Xn=function(){return Xn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Xn.apply(this,arguments)};function XI(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Q8(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Qd="right-scroll-bar-position",Zd="width-before-scroll-bar",Z8="with-scroll-bars-hidden",J8="--removed-body-scroll-bar-size";function bg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eU(e,t){var r=S.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var tU=typeof window<"u"?S.useLayoutEffect:S.useEffect,TC=new WeakMap;function rU(e,t){var r=eU(null,function(n){return e.forEach(function(i){return bg(i,n)})});return tU(function(){var n=TC.get(r);if(n){var i=new Set(n),o=new Set(e),s=r.current;i.forEach(function(c){o.has(c)||bg(c,null)}),o.forEach(function(c){i.has(c)||bg(c,s)})}TC.set(r,e)},[e]),r}function nU(e){return e}function iU(e,t){t===void 0&&(t=nU);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var s=t(o,n);return r.push(s),function(){r=r.filter(function(c){return c!==s})}},assignSyncMedium:function(o){for(n=!0;r.length;){var s=r;r=[],s.forEach(o)}r={push:function(c){return o(c)},filter:function(){return r}}},assignMedium:function(o){n=!0;var s=[];if(r.length){var c=r;r=[],c.forEach(o),s=r}var f=function(){var m=s;s=[],m.forEach(o)},d=function(){return Promise.resolve().then(f)};d(),r={push:function(m){s.push(m),d()},filter:function(m){return s=s.filter(m),r}}}};return i}function oU(e){e===void 0&&(e={});var t=iU(null);return t.options=Xn({async:!0,ssr:!1},e),t}var YI=function(e){var t=e.sideCar,r=XI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return S.createElement(n,Xn({},r))};YI.isSideCarExport=!0;function aU(e,t){return e.useMedium(t),YI}var QI=oU(),wg=function(){},Tp=S.forwardRef(function(e,t){var r=S.useRef(null),n=S.useState({onScrollCapture:wg,onWheelCapture:wg,onTouchMoveCapture:wg}),i=n[0],o=n[1],s=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,p=e.shards,v=e.sideCar,x=e.noRelative,b=e.noIsolation,w=e.inert,y=e.allowPinchZoom,P=e.as,O=P===void 0?"div":P,A=e.gapMode,C=XI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=v,E=rU([r,t]),N=Xn(Xn({},C),i);return S.createElement(S.Fragment,null,m&&S.createElement(_,{sideCar:QI,removeScrollBar:d,shards:p,noRelative:x,noIsolation:b,inert:w,setCallbacks:o,allowPinchZoom:!!y,lockRef:r,gapMode:A}),s?S.cloneElement(S.Children.only(c),Xn(Xn({},N),{ref:E})):S.createElement(O,Xn({},N,{className:f,ref:E}),c))});Tp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Tp.classNames={fullWidth:Zd,zeroRight:Qd};var sU=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lU(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sU();return t&&e.setAttribute("nonce",t),e}function cU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function uU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var fU=function(){var e=0,t=null;return{add:function(r){e==0&&(t=lU())&&(cU(t,r),uU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dU=function(){var e=fU();return function(t,r){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ZI=function(){var e=dU(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},hU={left:0,top:0,right:0,gap:0},Sg=function(e){return parseInt(e||"",10)||0},pU=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Sg(r),Sg(n),Sg(i)]},mU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hU;var t=pU(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},vU=ZI(),Us="data-scroll-locked",gU=function(e,t,r,n){var i=e.left,o=e.top,s=e.right,c=e.gap;return r===void 0&&(r="margin"),`
|
|
373
|
+
.`.concat(Z8,` {
|
|
374
|
+
overflow: hidden `).concat(n,`;
|
|
375
|
+
padding-right: `).concat(c,"px ").concat(n,`;
|
|
376
|
+
}
|
|
377
|
+
body[`).concat(Us,`] {
|
|
378
|
+
overflow: hidden `).concat(n,`;
|
|
379
|
+
overscroll-behavior: contain;
|
|
380
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
381
|
+
padding-left: `.concat(i,`px;
|
|
382
|
+
padding-top: `).concat(o,`px;
|
|
383
|
+
padding-right: `).concat(s,`px;
|
|
384
|
+
margin-left:0;
|
|
385
|
+
margin-top:0;
|
|
386
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
387
|
+
`),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.`).concat(Qd,` {
|
|
391
|
+
right: `).concat(c,"px ").concat(n,`;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.`).concat(Zd,` {
|
|
395
|
+
margin-right: `).concat(c,"px ").concat(n,`;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.`).concat(Qd," .").concat(Qd,` {
|
|
399
|
+
right: 0 `).concat(n,`;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.`).concat(Zd," .").concat(Zd,` {
|
|
403
|
+
margin-right: 0 `).concat(n,`;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
body[`).concat(Us,`] {
|
|
407
|
+
`).concat(J8,": ").concat(c,`px;
|
|
408
|
+
}
|
|
409
|
+
`)},NC=function(){var e=parseInt(document.body.getAttribute(Us)||"0",10);return isFinite(e)?e:0},yU=function(){S.useEffect(function(){return document.body.setAttribute(Us,(NC()+1).toString()),function(){var e=NC()-1;e<=0?document.body.removeAttribute(Us):document.body.setAttribute(Us,e.toString())}},[])},xU=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;yU();var o=S.useMemo(function(){return mU(i)},[i]);return S.createElement(vU,{styles:gU(o,!t,i,r?"":"!important")})},sw=!1;if(typeof window<"u")try{var Pd=Object.defineProperty({},"passive",{get:function(){return sw=!0,!0}});window.addEventListener("test",Pd,Pd),window.removeEventListener("test",Pd,Pd)}catch{sw=!1}var Ps=sw?{passive:!1}:!1,bU=function(e){return e.tagName==="TEXTAREA"},JI=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bU(e)&&r[t]==="visible")},wU=function(e){return JI(e,"overflowY")},SU=function(e){return JI(e,"overflowX")},kC=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=e$(e,n);if(i){var o=t$(e,n),s=o[1],c=o[2];if(s>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_U=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},jU=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},e$=function(e,t){return e==="v"?wU(t):SU(t)},t$=function(e,t){return e==="v"?_U(t):jU(t)},PU=function(e,t){return e==="h"&&t==="rtl"?-1:1},OU=function(e,t,r,n,i){var o=PU(e,window.getComputedStyle(t).direction),s=o*n,c=r.target,f=t.contains(c),d=!1,m=s>0,p=0,v=0;do{if(!c)break;var x=t$(e,c),b=x[0],w=x[1],y=x[2],P=w-y-o*b;(b||P)&&e$(e,c)&&(p+=P,v+=b);var O=c.parentNode;c=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(v)<1)&&(d=!0),d},Od=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},RC=function(e){return[e.deltaX,e.deltaY]},MC=function(e){return e&&"current"in e?e.current:e},CU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},AU=function(e){return`
|
|
410
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
411
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
412
|
+
`)},EU=0,Os=[];function TU(e){var t=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),i=S.useState(EU++)[0],o=S.useState(ZI)[0],s=S.useRef(e);S.useEffect(function(){s.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=Q8([e.lockRef.current],(e.shards||[]).map(MC),!0).filter(Boolean);return w.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=S.useCallback(function(w,y){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!s.current.allowPinchZoom;var P=Od(w),O=r.current,A="deltaX"in w?w.deltaX:O[0]-P[0],C="deltaY"in w?w.deltaY:O[1]-P[1],_,E=w.target,N=Math.abs(A)>Math.abs(C)?"h":"v";if("touches"in w&&N==="h"&&E.type==="range")return!1;var R=window.getSelection(),M=R&&R.anchorNode,F=M?M===E||M.contains(E):!1;if(F)return!1;var I=kC(N,E);if(!I)return!0;if(I?_=N:(_=N==="v"?"h":"v",I=kC(N,E)),!I)return!1;if(!n.current&&"changedTouches"in w&&(A||C)&&(n.current=_),!_)return!0;var $=n.current||_;return OU($,y,w,$==="h"?A:C)},[]),f=S.useCallback(function(w){var y=w;if(!(!Os.length||Os[Os.length-1]!==o)){var P="deltaY"in y?RC(y):Od(y),O=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&CU(_.delta,P)})[0];if(O&&O.should){y.cancelable&&y.preventDefault();return}if(!O){var A=(s.current.shards||[]).map(MC).filter(Boolean).filter(function(_){return _.contains(y.target)}),C=A.length>0?c(y,A[0]):!s.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),d=S.useCallback(function(w,y,P,O){var A={name:w,delta:y,target:P,should:O,shadowParent:NU(P)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(C){return C!==A})},1)},[]),m=S.useCallback(function(w){r.current=Od(w),n.current=void 0},[]),p=S.useCallback(function(w){d(w.type,RC(w),w.target,c(w,e.lockRef.current))},[]),v=S.useCallback(function(w){d(w.type,Od(w),w.target,c(w,e.lockRef.current))},[]);S.useEffect(function(){return Os.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Ps),document.addEventListener("touchmove",f,Ps),document.addEventListener("touchstart",m,Ps),function(){Os=Os.filter(function(w){return w!==o}),document.removeEventListener("wheel",f,Ps),document.removeEventListener("touchmove",f,Ps),document.removeEventListener("touchstart",m,Ps)}},[]);var x=e.removeScrollBar,b=e.inert;return S.createElement(S.Fragment,null,b?S.createElement(o,{styles:AU(i)}):null,x?S.createElement(xU,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function NU(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kU=aU(QI,TU);var hS=S.forwardRef(function(e,t){return S.createElement(Tp,Xn({},e,{ref:t,sideCar:kU}))});hS.classNames=Tp.classNames;var RU=Object.defineProperty,et=(e,t)=>RU(e,"name",{value:t,configurable:!0}),IC={ItemAligned:"item-aligned",Popper:"popper"},MU={RTL:"rtl"},IU=[" ","Enter","ArrowUp","ArrowDown"],$U=[" ","Enter"],Js="Select",[Np,kp,DU]=uS(Js),[Ua,Jse]=zn(Js,[DU,Cp]),pS=Cp(),[LU,Yo]=Ua(Js),[FU,BU]=Ua(Js);function r$(e){const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:o,value:s,defaultValue:c,onValueChange:f,dir:d,name:m,autoComplete:p,disabled:v,required:x,form:b,internal_do_not_use_render:w}=e,y=pS(t),[P,O]=S.useState(null),[A,C]=S.useState(null),[_,E]=S.useState(!1),N=Vu(d),[R,M]=qo({prop:n,defaultProp:i??!1,onChange:o,caller:Js}),[F,I]=qo({prop:s,defaultProp:c,onChange:f,caller:Js}),$=S.useRef(null),L=S.useRef(!1),[U,H]=S.useState(null),B=et(ge=>{H({value:ge,hasConsumerStoppedPropagation:L.current}),I(ge)},"handleUserSelect"),X=S.useRef(F);S.useEffect(()=>{const ge=b?P==null?void 0:P.ownerDocument.getElementById(b):P==null?void 0:P.form;if(ge instanceof HTMLFormElement){const ke=et(()=>I(X.current),"reset");return ge.addEventListener("reset",ke),()=>ge.removeEventListener("reset",ke)}},[b,P,I]);const W=P?!!b||!!P.closest("form"):!0,[q,V]=S.useState(new Set),D=ki(),Y=Array.from(q).map(ge=>ge.props.value).join(";"),ie=S.useCallback(ge=>{V(ke=>new Set(ke).add(ge))},[]),ne=S.useCallback(ge=>{V(ke=>{const Ee=new Set(ke);return Ee.delete(ge),Ee})},[]),pe={required:x,trigger:P,onTriggerChange:O,valueNode:A,onValueNodeChange:C,valueNodeHasChildren:_,onValueNodeHasChildrenChange:E,contentId:D,value:F,onValueChange:I,hasConsumerStoppedPropagationRef:L,userSelection:U,onUserSelect:B,open:R,onOpenChange:M,dir:N,triggerPointerDownPosRef:$,disabled:v,name:m,autoComplete:p,form:b,nativeOptions:q,nativeSelectKey:Y,isFormControl:W};return u.jsx(wI,{...y,children:u.jsx(LU,{scope:t,...pe,children:u.jsx(Np.Provider,{scope:t,children:u.jsx(FU,{scope:t,onNativeOptionAdd:ie,onNativeOptionRemove:ne,children:h$(w)?w(pe):r})})})})}et(r$,"SelectProvider");var zU=et(e=>{const{__scopeSelect:t,children:r,...n}=e;return u.jsx(r$,{__scopeSelect:t,...n,internal_do_not_use_render:({isFormControl:i})=>u.jsxs(u.Fragment,{children:[r,i?u.jsx(uW,{__scopeSelect:t}):null]})})},"Select"),qU="SelectTrigger",n$=S.forwardRef(et(function(t,r){const{__scopeSelect:n,disabled:i=!1,...o}=t,s=pS(n),c=Yo(qU,n),f=c.disabled||i,d=tt(r,c.onTriggerChange),m=kp(n),p=S.useRef("touch"),[v,x,b]=vS(y=>{const P=m().filter(C=>!C.disabled),O=P.find(C=>C.value===c.value),A=gS(P,y,O);A!==void 0&&c.onUserSelect(A.value)}),w=et(y=>{f||(c.onOpenChange(!0),b()),y&&(c.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})},"handleOpen");return u.jsx(SI,{asChild:!0,...s,children:u.jsx(Ke.button,{type:"button",role:"combobox","aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Qu(c.value)?"":void 0,...o,ref:d,onClick:Le(o.onClick,y=>{y.currentTarget.focus(),p.current!=="mouse"&&w(y)}),onPointerDown:Le(o.onPointerDown,y=>{p.current=y.pointerType;const P=y.target;P.hasPointerCapture(y.pointerId)&&P.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(w(y),y.preventDefault())}),onKeyDown:Le(o.onKeyDown,y=>{const P=v.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&(c.hasConsumerStoppedPropagationRef.current=y.isPropagationStopped(),x(y.key)),!(P&&y.key===" ")&&IU.includes(y.key)&&(w(),y.preventDefault())})})})},"SelectTrigger")),UU="SelectValue",WU=S.forwardRef(et(function(t,r){const{__scopeSelect:n,className:i,style:o,children:s,placeholder:c="",...f}=t,d=Yo(UU,n),{onValueNodeHasChildrenChange:m}=d,p=s!==void 0,v=tt(r,d.onValueNodeChange);bt(()=>{m(p)},[m,p]);const x=Qu(d.value);return u.jsx(Ke.span,{...f,asChild:x?!1:f.asChild,ref:v,style:{pointerEvents:"none"},children:u.jsx(S.Fragment,{children:x?c:s},x?"placeholder":"value")})},"SelectValue")),HU=S.forwardRef(et(function(t,r){const{__scopeSelect:n,children:i,...o}=t;return u.jsx(Ke.span,{"aria-hidden":!0,...o,ref:r,children:i||"▼"})},"SelectIcon")),VU="SelectPortal",[GU,KU]=Ua(VU,{forceMount:void 0}),XU=et(e=>{const{__scopeSelect:t,forceMount:r,...n}=e;return u.jsx(GU,{scope:e.__scopeSelect,forceMount:r,children:u.jsx(aS,{asChild:!0,...n})})},"SelectPortal"),Ma="SelectContent",i$=S.forwardRef(et(function(t,r){const n=KU(Ma,t.__scopeSelect),{forceMount:i=n.forceMount,...o}=t,s=Yo(Ma,t.__scopeSelect),[c,f]=S.useState();return bt(()=>{f(new DocumentFragment)},[]),u.jsx(Bn,{present:i||s.open,children:({present:d})=>d?u.jsx(ZU,{...o,ref:r}):u.jsx(YU,{...o,fragment:c})})},"SelectContent")),YU=S.forwardRef(et(function(t,r){const{__scopeSelect:n,children:i,fragment:o}=t;return o?Wu.createPortal(u.jsx(o$,{scope:n,children:u.jsx(Np.Slot,{scope:n,children:u.jsx("div",{ref:r,children:i})})}),o):null},"SelectContentFragment")),In=10,[o$,Wa]=Ua(Ma),QU=qi("SelectContent.RemoveScroll"),ZU=S.forwardRef(et(function(t,r){const{__scopeSelect:n}=t,{position:i=IC.ItemAligned,onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:f,sideOffset:d,align:m,alignOffset:p,arrowPadding:v,collisionBoundary:x,collisionPadding:b,sticky:w,hideWhenDetached:y,avoidCollisions:P,...O}=t,A=Yo(Ma,n),[C,_]=S.useState(null),[E,N]=S.useState(null),R=tt(r,_),[M,F]=S.useState(null),[I,$]=S.useState(null),L=kp(n),[U,H]=S.useState(!1),B=S.useRef(!1),X=S.useRef(!1),W=S.useRef(!1);S.useEffect(()=>{if(C)return KI(C)},[C]),Ep();const q=S.useCallback(ae=>{const[xe,...Z]=L().map(Re=>Re.ref.current),[ve]=Z.slice(-1),de=document.activeElement;for(const Re of ae)if(Re===de||(Re==null||Re.scrollIntoView({block:"nearest"}),Re===xe&&E&&(E.scrollTop=0),Re===ve&&E&&(E.scrollTop=E.scrollHeight),Re==null||Re.focus(),document.activeElement!==de))return},[L,E]),V=S.useCallback(()=>q([M,C]),[q,M,C]);S.useEffect(()=>{U&&V()},[U,V]);const{onOpenChange:D,triggerPointerDownPosRef:Y}=A;S.useEffect(()=>{if(C){let ae={x:0,y:0};const xe=et(ve=>{var de,Re;ae={x:Math.abs(Math.round(ve.pageX)-(((de=Y.current)==null?void 0:de.x)??0)),y:Math.abs(Math.round(ve.pageY)-(((Re=Y.current)==null?void 0:Re.y)??0))}},"handlePointerMove"),Z=et(ve=>{ae.x<=10&&ae.y<=10?ve.preventDefault():ve.composedPath().includes(C)||D(!1),document.removeEventListener("pointermove",xe),Y.current=null},"handlePointerUp");return Y.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Z,{capture:!0})}}},[C,D,Y]),S.useEffect(()=>{const ae=et(()=>D(!1),"close");return window.addEventListener("blur",ae),window.addEventListener("resize",ae),()=>{window.removeEventListener("blur",ae),window.removeEventListener("resize",ae)}},[D]);const[ie,ne]=vS(ae=>{const xe=L().filter(de=>!de.disabled),Z=xe.find(de=>de.ref.current===document.activeElement),ve=gS(xe,ae,Z);ve&&setTimeout(()=>{var de;return(de=ve.ref.current)==null?void 0:de.focus()})}),pe=S.useCallback((ae,xe,Z)=>{const ve=!X.current;ve&&(X.current=!0);const de=!B.current&&!Z;A.value!==void 0&&A.value===xe||de?(F(ae),de&&(B.current=!0)):ve&&F(ae)},[A.value]),ge=S.useCallback(()=>C==null?void 0:C.focus(),[C]),ke=S.useCallback((ae,xe,Z)=>{if(!ae)return;const ve=!W.current;ve&&(W.current=!0);const de=!B.current&&!Z;(A.value!==void 0&&A.value===xe||de||ve)&&$(ae)},[A.value]),Ee=i===IC.Popper?$C:JU,oe=Ee===$C?{side:f,sideOffset:d,align:m,alignOffset:p,arrowPadding:v,collisionBoundary:x,collisionPadding:b,sticky:w,hideWhenDetached:y,avoidCollisions:P}:{};return u.jsx(o$,{scope:n,content:C,viewport:E,onViewportChange:N,itemRefCallback:pe,selectedItem:M,onItemLeave:ge,itemTextRefCallback:ke,focusSelectedItem:V,selectedItemText:I,position:i,isPositioned:U,searchRef:ie,children:u.jsx(hS,{as:QU,allowPinchZoom:!0,children:u.jsx(YM,{asChild:!0,trapped:A.open,onMountAutoFocus:ae=>{ae.preventDefault()},onUnmountAutoFocus:Le(o,ae=>{var xe;(xe=A.trigger)==null||xe.focus({preventScroll:!0}),ae.preventDefault()}),children:u.jsx(Y1,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:ae=>ae.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:u.jsx(Ee,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:ae=>ae.preventDefault(),...O,...oe,onPlaced:()=>H(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...O.style},onKeyDown:Le(O.onKeyDown,ae=>{const xe=ae.ctrlKey||ae.altKey||ae.metaKey;if(ae.key==="Tab"&&ae.preventDefault(),!xe&&ae.key.length===1&&ne(ae.key),["ArrowUp","ArrowDown","Home","End"].includes(ae.key)){let ve=L().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(ae.key)&&(ve=ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(ae.key)){const de=ae.target,Re=ve.indexOf(de);ve=ve.slice(Re+1)}setTimeout(()=>q(ve)),ae.preventDefault()}})})})})})})},"SelectContentImpl")),JU=S.forwardRef(et(function(t,r){const{__scopeSelect:n,onPlaced:i,...o}=t,s=Yo(Ma,n),c=Wa(Ma,n),[f,d]=S.useState(null),[m,p]=S.useState(null),v=tt(r,p),x=kp(n),b=S.useRef(!1),w=S.useRef(!0),{viewport:y,selectedItem:P,selectedItemText:O,focusSelectedItem:A}=c,C=S.useCallback(()=>{if(s.trigger&&s.valueNode&&f&&m&&y&&P&&O){const R=s.trigger.getBoundingClientRect(),M=m.getBoundingClientRect(),F=s.valueNode.getBoundingClientRect(),I=O.getBoundingClientRect();if(s.dir!==MU.RTL){const Z=I.left-M.left,ve=F.left-Z,de=R.left-ve,Re=R.width+de,ot=Math.max(Re,M.width),mt=window.innerWidth-In,lr=oh(ve,[In,Math.max(In,mt-ot)]);f.style.minWidth=Re+"px",f.style.left=lr+"px"}else{const Z=M.right-I.right,ve=window.innerWidth-F.right-Z,de=window.innerWidth-R.right-ve,Re=R.width+de,ot=Math.max(Re,M.width),mt=window.innerWidth-In,lr=oh(ve,[In,Math.max(In,mt-ot)]);f.style.minWidth=Re+"px",f.style.right=lr+"px"}const $=x(),L=window.innerHeight-In*2,U=y.scrollHeight,H=window.getComputedStyle(m),B=parseInt(H.borderTopWidth,10),X=parseInt(H.paddingTop,10),W=parseInt(H.borderBottomWidth,10),q=parseInt(H.paddingBottom,10),V=B+X+U+q+W,D=Math.min(P.offsetHeight*5,V),Y=window.getComputedStyle(y),ie=parseInt(Y.paddingTop,10),ne=parseInt(Y.paddingBottom,10),pe=R.top+R.height/2-In,ge=L-pe,ke=P.offsetHeight/2,Ee=P.offsetTop+ke,oe=B+X+Ee,ae=V-oe;if(oe<=pe){const Z=$.length>0&&P===$[$.length-1].ref.current;f.style.bottom="0px";const ve=m.clientHeight-y.offsetTop-y.offsetHeight,de=Math.max(ge,ke+(Z?ne:0)+ve+W),Re=oe+de;f.style.height=Re+"px"}else{const Z=$.length>0&&P===$[0].ref.current;f.style.top="0px";const de=Math.max(pe,B+y.offsetTop+(Z?ie:0)+ke)+ae;f.style.height=de+"px",y.scrollTop=oe-pe+y.offsetTop}f.style.margin=`${In}px 0`,f.style.minHeight=D+"px",f.style.maxHeight=L+"px",i==null||i(),requestAnimationFrame(()=>b.current=!0)}},[x,s.trigger,s.valueNode,f,m,y,P,O,s.dir,i]);bt(()=>C(),[C]);const[_,E]=S.useState();bt(()=>{m&&E(window.getComputedStyle(m).zIndex)},[m]);const N=S.useCallback(R=>{R&&w.current===!0&&(C(),A==null||A(),w.current=!1)},[C,A]);return u.jsx(eW,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:b,onScrollButtonChange:N,children:u.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:u.jsx(Ke.div,{...o,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})},"SelectItemAlignedPosition")),$C=S.forwardRef(et(function(t,r){const{__scopeSelect:n,align:i="start",collisionPadding:o=In,...s}=t,c=pS(n);return u.jsx(jI,{...c,...s,ref:r,align:i,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[eW,mS]=Ua(Ma,{}),DC="SelectViewport",tW=S.forwardRef(et(function(t,r){const{__scopeSelect:n,nonce:i,...o}=t,s=Wa(DC,n),c=mS(DC,n),f=tt(r,s.onViewportChange),d=S.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(Np.Slot,{scope:n,children:u.jsx(Ke.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Le(o.onScroll,m=>{const p=m.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:x}=c;if(x!=null&&x.current&&v){const b=Math.abs(d.current-p.scrollTop);if(b>0){const w=window.innerHeight-In*2,y=parseFloat(v.style.minHeight),P=parseFloat(v.style.height),O=Math.max(y,P);if(O<w){const A=O+b,C=Math.min(w,A),_=A-C;v.style.height=C+"px",v.style.bottom==="0px"&&(p.scrollTop=_>0?_:0,v.style.justifyContent="flex-end")}}}d.current=p.scrollTop})})})]})},"SelectViewport")),rW="SelectGroup",[ele,nW]=Ua(rW),iW="SelectLabel",a$=S.forwardRef(et(function(t,r){const{__scopeSelect:n,...i}=t,o=nW(iW,n);return u.jsx(Ke.div,{id:o.id,...i,ref:r})},"SelectLabel")),lw="SelectItem",[oW,s$]=Ua(lw),l$=S.forwardRef(et(function(t,r){const{__scopeSelect:n,value:i,disabled:o=!1,textValue:s,...c}=t,f=Yo(lw,n),d=Wa(lw,n),m=f.value===i,[p,v]=S.useState(s??""),[x,b]=S.useState(!1),w=or(C=>{var _;return(_=d.itemRefCallback)==null?void 0:_.call(d,C,i,o)}),y=tt(r,w),P=ki(),O=S.useRef("touch");function A(C){f.hasConsumerStoppedPropagationRef.current=C.isPropagationStopped(),f.onUserSelect(i),f.onOpenChange(!1)}return et(A,"handleSelect"),u.jsx(oW,{scope:n,value:i,disabled:o,textId:P,isSelected:m,onItemTextChange:S.useCallback(C=>{v(_=>_||((C==null?void 0:C.textContent)??"").trim())},[]),children:u.jsx(Np.ItemSlot,{scope:n,value:i,disabled:o,textValue:p,children:u.jsx(Ke.div,{role:"option","aria-labelledby":P,"data-highlighted":x?"":void 0,"aria-selected":m&&x,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:y,onFocus:Le(c.onFocus,()=>b(!0)),onBlur:Le(c.onBlur,()=>b(!1)),onClick:Le(c.onClick,C=>{o||O.current!=="mouse"&&A(C)}),onPointerUp:Le(c.onPointerUp,C=>{o||O.current==="mouse"&&A(C)}),onPointerDown:Le(c.onPointerDown,C=>{O.current=C.pointerType}),onPointerMove:Le(c.onPointerMove,C=>{var _;O.current=C.pointerType,o?(_=d.onItemLeave)==null||_.call(d):O.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Le(c.onPointerLeave,C=>{var _;C.currentTarget===document.activeElement&&((_=d.onItemLeave)==null||_.call(d))}),onKeyDown:Le(c.onKeyDown,C=>{var E;o||C.target!==C.currentTarget||((E=d.searchRef)==null?void 0:E.current)!==""&&C.key===" "||($U.includes(C.key)&&A(C),C.key===" "&&C.preventDefault())})})})})},"SelectItem")),Cd="SelectItemText",aW=S.forwardRef(et(function(t,r){const{__scopeSelect:n,className:i,style:o,...s}=t,c=Yo(Cd,n),f=Wa(Cd,n),d=s$(Cd,n),m=BU(Cd,n),[p,v]=S.useState(null),x=or(A=>{var C;return(C=f.itemTextRefCallback)==null?void 0:C.call(f,A,d.value,d.disabled)}),b=tt(r,v,d.onItemTextChange,x),w=p==null?void 0:p.textContent,y=S.useMemo(()=>u.jsx("option",{value:d.value,disabled:d.disabled,children:w},d.value),[d.disabled,d.value,w]),{onNativeOptionAdd:P,onNativeOptionRemove:O}=m;return bt(()=>(P(y),()=>O(y)),[P,O,y]),u.jsxs(u.Fragment,{children:[u.jsx(Ke.span,{id:d.textId,...s,ref:b}),d.isSelected&&c.valueNode&&!c.valueNodeHasChildren&&!Qu(c.value)?Wu.createPortal(s.children,c.valueNode):null]})},"SelectItemText")),sW="SelectItemIndicator",lW=S.forwardRef(et(function(t,r){const{__scopeSelect:n,...i}=t;return s$(sW,n).isSelected?u.jsx(Ke.span,{"aria-hidden":!0,...i,ref:r}):null},"SelectItemIndicator")),LC="SelectScrollUpButton",c$=S.forwardRef(et(function(t,r){const n=Wa(LC,t.__scopeSelect),i=mS(LC,t.__scopeSelect),[o,s]=S.useState(!1),c=tt(r,i.onScrollButtonChange);return bt(()=>{if(n.viewport&&n.isPositioned){let f=function(){const m=d.scrollTop>0;s(m)};et(f,"handleScroll");const d=n.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),o?u.jsx(f$,{...t,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=n;f&&d&&(f.scrollTop=f.scrollTop-d.offsetHeight)}}):null},"SelectScrollUpButton")),FC="SelectScrollDownButton",u$=S.forwardRef(et(function(t,r){const n=Wa(FC,t.__scopeSelect),i=mS(FC,t.__scopeSelect),[o,s]=S.useState(!1),c=tt(r,i.onScrollButtonChange);return bt(()=>{if(n.viewport&&n.isPositioned){let f=function(){const m=d.scrollHeight-d.clientHeight,p=Math.ceil(d.scrollTop)<m;s(p)};et(f,"handleScroll");const d=n.viewport;return f(),d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),o?u.jsx(f$,{...t,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:d}=n;f&&d&&(f.scrollTop=f.scrollTop+d.offsetHeight)}}):null},"SelectScrollDownButton")),f$=S.forwardRef(et(function(t,r){const{__scopeSelect:n,onAutoScroll:i,...o}=t,s=Wa("SelectScrollButton",n),c=S.useRef(null),f=kp(n),d=S.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return S.useEffect(()=>()=>d(),[d]),bt(()=>{var p;const m=f().find(v=>v.ref.current===document.activeElement);(p=m==null?void 0:m.ref.current)==null||p.scrollIntoView({block:"nearest"})},[f]),u.jsx(Ke.div,{"aria-hidden":!0,...o,ref:r,style:{flexShrink:0,...o.style},onPointerDown:Le(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:Le(o.onPointerMove,()=>{var m;(m=s.onItemLeave)==null||m.call(s),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:Le(o.onPointerLeave,()=>{d()})})},"SelectScrollButtonImpl")),d$=S.forwardRef(et(function(t,r){const{__scopeSelect:n,...i}=t;return u.jsx(Ke.div,{"aria-hidden":!0,...i,ref:r})},"SelectSeparator")),cW="SelectBubbleInput",uW=S.forwardRef(et(function({__scopeSelect:t,...r},n){const i=Yo(cW,t),{value:o,onValueChange:s,required:c,disabled:f,name:d,autoComplete:m,form:p,userSelection:v}=i,{nativeOptions:x,nativeSelectKey:b}=i,w=S.useRef(null),y=tt(n,w),P=o??"",O=S.useRef(P),A=S.useRef(v),C=S.useRef(!1),_=Array.from(x).some(E=>(E.props.value??"")==="");return S.useEffect(()=>{const E=w.current;if(!E)return;const N=window.HTMLSelectElement.prototype,M=Object.getOwnPropertyDescriptor(N,"value").set,F=v!==null&&v!==A.current;A.current=v;const I=O.current!==P;O.current=P;const $=F&&I;if(F&&!I&&v.value!==P&&!v.hasConsumerStoppedPropagation&&M){C.current=!0;try{M.call(E,v.value),E.dispatchEvent(new Event("change",{bubbles:!0}))}finally{C.current=!1,M.call(E,P)}return}const L=$&&!v.hasConsumerStoppedPropagation;if(I&&M){const U=new Event("change",{bubbles:L});M.call(E,P),E.dispatchEvent(U)}},[P,v]),u.jsxs(Ke.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:d,autoComplete:m,disabled:f,form:p,onChange:E=>{C.current||s(E.target.value)},...r,style:{...EI,...r.style},ref:y,defaultValue:P,children:[Qu(o)&&!_?u.jsx("option",{value:""}):null,Array.from(x)]},b)},"SelectBubbleInput"));function h$(e){return typeof e=="function"}et(h$,"isFunction");function Qu(e){return e===""||e===void 0}et(Qu,"shouldShowPlaceholder");function vS(e){const t=or(e),r=S.useRef(""),n=S.useRef(0),i=S.useCallback(s=>{const c=r.current+s;t(c);function f(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>f(""),1e3))}et(f,"updateSearch"),f(c)},[t]),o=S.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}et(vS,"useTypeaheadSearch");function gS(e,t,r){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let s=p$(e,Math.max(o,0));i.length===1&&(s=s.filter(d=>d!==r));const f=s.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==r?f:void 0}et(gS,"findNextItem");function p$(e,t){return e.map((r,n)=>e[(t+n)%e.length])}et(p$,"wrapArray");const _n=zU,jn=WU,Zr=S.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(n$,{ref:n,className:fe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...r,children:[t,u.jsx(HU,{asChild:!0,children:u.jsx(bp,{className:"h-4 w-4 opacity-50"})})]}));Zr.displayName=n$.displayName;const m$=S.forwardRef(({className:e,...t},r)=>u.jsx(c$,{ref:r,className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(WB,{className:"h-4 w-4"})}));m$.displayName=c$.displayName;const v$=S.forwardRef(({className:e,...t},r)=>u.jsx(u$,{ref:r,className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(bp,{className:"h-4 w-4"})}));v$.displayName=u$.displayName;const Jr=S.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>u.jsx(XU,{children:u.jsxs(i$,{ref:i,className:fe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:[u.jsx(m$,{}),u.jsx(tW,{className:fe("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(v$,{})]})}));Jr.displayName=i$.displayName;const fW=S.forwardRef(({className:e,...t},r)=>u.jsx(a$,{ref:r,className:fe("px-2 py-1.5 text-xs font-semibold text-muted-foreground",e),...t}));fW.displayName=a$.displayName;const Pr=S.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(l$,{ref:n,className:fe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(lW,{children:u.jsx(M1,{className:"h-4 w-4"})})}),u.jsx(aW,{children:t})]}));Pr.displayName=l$.displayName;const dW=S.forwardRef(({className:e,...t},r)=>u.jsx(d$,{ref:r,className:fe("-mx-1 my-1 h-px bg-muted",e),...t}));dW.displayName=d$.displayName;function hW({onOpenMenu:e}){const{health:t,healthError:r,repositories:n,reload:i,loading:o,activeRepositoryId:s,setActiveRepositoryId:c}=Rr(),f=!!t&&!r;return u.jsxs("header",{className:"flex h-14 items-center gap-3 border-b bg-background/80 px-4 backdrop-blur",children:[u.jsx(me,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:e,"aria-label":"Open navigation",children:u.jsx(JB,{})}),u.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[u.jsxs(_n,{value:s===null?"all":String(s),onValueChange:d=>c(d==="all"?null:Number.parseInt(d,10)),children:[u.jsx(Zr,{className:"h-8 w-[15rem] text-sm","aria-label":"Active repository",children:u.jsx(jn,{placeholder:"All repositories"})}),u.jsxs(Jr,{children:[u.jsx(Pr,{value:"all",children:"All repositories"}),n.map(d=>u.jsx(Pr,{value:String(d.id),children:d.name},d.id))]})]}),n.length===0&&!o?u.jsx(me,{asChild:!0,variant:"link",size:"sm",className:"h-8 px-1",children:u.jsx(Ge,{to:"/repositories",children:"Add one"})}):null]}),u.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[u.jsxs(fh,{children:[u.jsx(dh,{asChild:!0,children:u.jsxs(Xt,{variant:"outline",className:f?"gap-1.5 border-gate-pass/40 text-gate-pass":"gap-1.5 border-destructive/40 text-destructive",children:[f?u.jsx(I1,{className:"h-3 w-3"}):u.jsx(wp,{className:"h-3 w-3"}),f?"Backend online":"Backend offline"]})}),u.jsx(su,{children:f?`${(t==null?void 0:t.database)??"database"} · ${(t==null?void 0:t.repositories)??0} repositories · ${(t==null?void 0:t.scans)??0} scans · AI ${t!=null&&t.ai_configured?"configured":"not configured"}`:r??"The dashboard API did not respond."})]}),t?u.jsxs(Xt,{variant:"muted",className:"hidden gap-1.5 sm:inline-flex",children:[u.jsx(HB,{className:"h-3 w-3"}),t.scans," scans"]}):null,u.jsxs(fh,{children:[u.jsx(dh,{asChild:!0,children:u.jsx(me,{variant:"ghost",size:"icon",onClick:()=>void i(),disabled:o,"aria-label":"Refresh application data",children:u.jsx(Al,{className:o?"animate-spin":void 0})})}),u.jsx(su,{children:"Refresh"})]}),u.jsx(U8,{})]})]})}var pW=Object.defineProperty,rn=(e,t)=>pW(e,"name",{value:t,configurable:!0}),yS="Dialog",[g$,tle]=zn(yS),[mW,fi]=g$(yS),vW=rn(e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,c=S.useRef(null),f=S.useRef(null),{nodes:d,registry:m}=JM(),[p,v]=qo({prop:n,defaultProp:i??!1,onChange:o,caller:yS}),[x,b]=S.useState(0),[w,y]=S.useState(0);return u.jsx(mW,{scope:t,triggerRef:c,contentRef:f,contentId:ki(),titleId:ki(),descriptionId:ki(),titlePresent:x>0,descriptionPresent:w>0,setTitleCount:b,setDescriptionCount:y,open:p,onOpenChange:v,onOpenToggle:S.useCallback(()=>v(P=>!P),[v]),modal:s,branchNodes:d,branchRegistry:m,children:r})},"Dialog"),y$="DialogPortal",[gW,x$]=g$(y$,{forceMount:void 0}),yW=rn(e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=fi(y$,t);return u.jsx(gW,{scope:t,forceMount:r,children:S.Children.map(n,s=>u.jsx(Bn,{present:r||o.open,children:u.jsx(aS,{asChild:!0,container:i,children:s})}))})},"DialogPortal"),cw="DialogOverlay",b$=S.forwardRef(rn(function(t,r){const n=x$(cw,t.__scopeDialog),{forceMount:i=n.forceMount,...o}=t,s=fi(cw,t.__scopeDialog);return s.modal?u.jsx(Bn,{present:i||s.open,children:u.jsx(bW,{...o,ref:r})}):null},"DialogOverlay")),xW=qi("DialogOverlay.RemoveScroll"),bW=S.forwardRef(rn(function(t,r){const{__scopeDialog:n,...i}=t,o=fi(cw,n),s=GM(),c=tt(r,s);return u.jsx(hS,{as:xW,allowPinchZoom:!0,shards:S.useMemo(()=>[o.contentRef,...o.branchNodes.map(f=>({current:f}))],[o.contentRef,o.branchNodes]),children:u.jsx(Ke.div,{"data-state":xS(o.open),...i,ref:c,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),lu="DialogContent",w$=S.forwardRef(rn(function(t,r){const n=x$(lu,t.__scopeDialog),{forceMount:i=n.forceMount,...o}=t,s=fi(lu,t.__scopeDialog);return u.jsx(Bn,{present:i||s.open,children:s.modal?u.jsx(wW,{...o,ref:r}):u.jsx(SW,{...o,ref:r})})},"DialogContent")),wW=S.forwardRef(rn(function(t,r){const n=fi(lu,t.__scopeDialog),i=S.useRef(null),o=tt(r,n.contentRef,i);return S.useEffect(()=>{const s=i.current;if(s)return KI(s)},[]),u.jsx(S$,{...t,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Le(t.onCloseAutoFocus,s=>{var c;s.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Le(t.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:Le(t.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),SW=S.forwardRef(rn(function(t,r){const n=fi(lu,t.__scopeDialog),i=S.useRef(!1),o=S.useRef(!1);return u.jsx(S$,{...t,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var c,f;(c=t.onCloseAutoFocus)==null||c.call(t,s),s.defaultPrevented||(i.current||(f=n.triggerRef.current)==null||f.focus(),s.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:s=>{var d,m;(d=t.onInteractOutside)==null||d.call(t,s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;((m=n.triggerRef.current)==null?void 0:m.contains(c))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})},"DialogContentNonModal")),S$=S.forwardRef(rn(function(t,r){const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,"aria-describedby":c,children:f,...d}=t,m=fi(lu,n);return Ep(),u.jsx(ZM,{registry:m.branchRegistry,children:u.jsx(YM,{asChild:!0,loop:!0,trapped:i,branches:m.branchNodes,onMountAutoFocus:o,onUnmountAutoFocus:s,children:u.jsx(Y1,{role:"dialog",id:m.contentId,"aria-labelledby":m.titlePresent?m.titleId:void 0,"aria-describedby":m.descriptionPresent?P$(c,m.descriptionId):c,"data-state":xS(m.open),...d,ref:r,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1),children:f})})})},"DialogContentImpl")),_$=S.forwardRef(rn(function(t,r){const{__scopeDialog:n,...i}=t,o=fi("DialogTitle",n),{setTitleCount:s}=o;return bt(()=>(s(c=>c+1),()=>s(c=>c-1)),[s]),u.jsx(Ke.h2,{id:o.titleId,...i,ref:r})},"DialogTitle")),j$=S.forwardRef(rn(function(t,r){const{__scopeDialog:n,...i}=t,o=fi("DialogDescription",n),{setDescriptionCount:s}=o;return bt(()=>(s(c=>c+1),()=>s(c=>c-1)),[s]),u.jsx(Ke.p,{id:o.descriptionId,...i,ref:r})},"DialogDescription")),_W="DialogClose",jW=S.forwardRef(rn(function(t,r){const{__scopeDialog:n,...i}=t,o=fi(_W,n);return u.jsx(Ke.button,{type:"button",...i,ref:r,onClick:Le(t.onClick,()=>o.onOpenChange(!1))})},"DialogClose"));function P$(...e){const t=new Set;for(const r of e)if(typeof r=="string")for(const n of String(r).trim().split(/\s+/))n&&t.add(n);return t.size>0?Array.from(t).join(" "):void 0}rn(P$,"concatAriaDescribedby");function xS(e){return e?"open":"closed"}rn(xS,"getState");const Hi=vW,PW=yW,O$=S.forwardRef(({className:e,...t},r)=>u.jsx(b$,{ref:r,className:fe("fixed inset-0 z-50 bg-black/70 backdrop-blur-sm",e),...t}));O$.displayName=b$.displayName;const ai=S.forwardRef(({className:e,children:t,...r},n)=>u.jsxs(PW,{children:[u.jsx(O$,{}),u.jsxs(w$,{ref:n,className:fe("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-6 shadow-lg sm:rounded-lg",e),...r,children:[t,u.jsxs(jW,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring disabled:pointer-events-none",children:[u.jsx(B1,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ai.displayName=w$.displayName;function Uo({className:e,...t}){return u.jsx("div",{className:fe("flex flex-col space-y-1.5 text-left",e),...t})}function Wo({className:e,...t}){return u.jsx("div",{className:fe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t})}const Vi=S.forwardRef(({className:e,...t},r)=>u.jsx(_$,{ref:r,className:fe("text-lg font-semibold leading-none tracking-tight",e),...t}));Vi.displayName=_$.displayName;const Gi=S.forwardRef(({className:e,...t},r)=>u.jsx(j$,{ref:r,className:fe("text-sm text-muted-foreground",e),...t}));Gi.displayName=j$.displayName;function OW({children:e}){const[t,r]=S.useState(!1);return u.jsx(F8,{delayDuration:200,children:u.jsxs("div",{className:"app-gradient flex h-full min-h-screen bg-background",children:[u.jsx("aside",{className:"hidden w-60 shrink-0 lg:block",children:u.jsx("div",{className:"sticky top-0 h-screen",children:u.jsx(cC,{})})}),u.jsx(Hi,{open:t,onOpenChange:r,children:u.jsx(ai,{className:"left-0 top-0 h-screen w-64 max-w-[16rem] translate-x-0 translate-y-0 rounded-none border-r p-0 sm:rounded-none",children:u.jsx(cC,{onNavigate:()=>r(!1)})})}),u.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[u.jsx(hW,{onOpenMenu:()=>r(!0)}),u.jsx("main",{className:"flex-1 px-4 py-6 lg:px-8",children:u.jsx("div",{className:"mx-auto w-full max-w-7xl space-y-6",children:e??u.jsx(wB,{})})})]}),u.jsx(gz,{})]})})}function CW({className:e,...t}){return u.jsx("div",{className:fe("animate-pulse rounded-md bg-muted",e),...t})}function AW({rows:e=3,className:t}){return u.jsx("div",{className:fe("space-y-3",t),"aria-busy":"true","aria-live":"polite",children:Array.from({length:e}).map((r,n)=>u.jsx(CW,{className:"h-20 w-full"},n))})}function C$({message:e,onRetry:t,className:r}){return u.jsxs("div",{role:"alert",className:fe("flex flex-col items-center gap-3 rounded-lg border border-destructive/40 bg-destructive/5 px-6 py-8 text-center",r),children:[u.jsx(wp,{className:"h-5 w-5 text-destructive"}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-sm font-medium",children:"Request failed"}),u.jsx("p",{className:"mx-auto max-w-md text-sm text-muted-foreground",children:e})]}),t?u.jsxs(me,{variant:"outline",size:"sm",onClick:t,children:[u.jsx(Al,{}),"Try again"]}):null]})}function Et({loading:e,error:t,onRetry:r,loadingRows:n=3,children:i}){return e?u.jsx(AW,{rows:n}):t?u.jsx(C$,{message:t,onRetry:r}):u.jsx(u.Fragment,{children:i})}class EW extends S.Component{constructor(){super(...arguments);ig(this,"state",{error:null})}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r,n){console.error("Dashboard render error",r,n.componentStack)}render(){return this.state.error?u.jsx(C$,{className:"m-6",message:this.state.error.message||"An unexpected rendering error occurred.",onRetry:()=>this.setState({error:null})}):this.props.children}}function Or({title:e,description:t,actions:r,className:n}){return u.jsxs("div",{className:fe("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between",n),children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx("h1",{className:"text-xl font-semibold tracking-tight",children:e}),t?u.jsx("p",{className:"text-sm text-muted-foreground",children:t}):null]}),r?u.jsx("div",{className:"flex flex-wrap items-center gap-2",children:r}):null]})}function yn(e){if(!e)return"—";const t=new Date(e);return Number.isNaN(t.getTime())?e:t.toLocaleString(void 0,{year:"numeric",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Qn(e){if(!e)return"—";const t=new Date(e);if(Number.isNaN(t.getTime()))return e;const r=Math.round((Date.now()-t.getTime())/1e3),n=[[60,"second"],[60,"minute"],[24,"hour"],[7,"day"],[4.35,"week"],[12,"month"]];let i=r,o="second";for(const[c,f]of n){if(Math.abs(i)<c)break;i/=c,o=f}return new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}).format(-Math.round(i),o)}function Zu(e){if(e==null)return"—";if(e<1e3)return`${e} ms`;const t=e/1e3;if(t<60)return`${t.toFixed(1)} s`;const r=Math.floor(t/60),n=Math.round(t%60);return`${r}m ${n}s`}function si(e){return e==null?"—":e.toFixed(1)}function be(e){return e==null?"—":e.toLocaleString()}const A$=["critical","high","medium","low","info"],TW={critical:"Critical",high:"High",medium:"Medium",low:"Low",info:"Info"};function NW(e){switch(e){case"critical":return"border-severity-critical/40 bg-severity-critical/10 text-severity-critical";case"high":return"border-severity-high/40 bg-severity-high/10 text-severity-high";case"medium":return"border-severity-medium/40 bg-severity-medium/10 text-severity-medium";case"low":return"border-severity-low/40 bg-severity-low/10 text-severity-low";default:return"border-border bg-muted text-muted-foreground"}}function kW(e){switch(e){case"critical":return"hsl(var(--severity-critical))";case"high":return"hsl(var(--severity-high))";case"medium":return"hsl(var(--severity-medium))";case"low":return"hsl(var(--severity-low))";default:return"hsl(var(--severity-info))"}}function RW(e){switch((e??"").toLowerCase()){case"pass":return"border-gate-pass/40 bg-gate-pass/10 text-gate-pass";case"fail":return"border-gate-fail/40 bg-gate-fail/10 text-gate-fail";case"block":return"border-gate-block/40 bg-gate-block/10 text-gate-block";default:return"border-border bg-muted text-muted-foreground"}}function E$(e){const t=(e??"").toLowerCase();return!t||t==="not_verified"?"Not verified":t.toUpperCase()}function MW(e){switch((e??"").toLowerCase()){case"pass":return"Every enforced check passed.";case"fail":return"One or more enforced checks failed.";case"block":return"Blocking issues were found; the release is not allowed.";case"not_verified":return"The gate could not be verified because required checks did not run.";default:return"No scan has produced a verdict yet."}}function Ki(e){return e==null?"text-muted-foreground":e>=80?"text-gate-pass":e>=60?"text-severity-medium":"text-gate-fail"}function qe(e){return e.replace(/[_-]+/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function Xi({severity:e,className:t}){const r=(e||"info").toLowerCase(),n=TW[r]??e;return u.jsx("span",{className:fe("inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] font-medium uppercase tracking-wide",NW(r),t),children:n})}const Ce=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("rounded-xl border bg-card text-card-foreground shadow-[0_1px_2px_hsl(0_0%_0%/0.06),inset_0_1px_0_hsl(0_0%_100%/0.045)]",e),...t}));Ce.displayName="Card";const Be=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("flex flex-col space-y-1.5 p-5",e),...t}));Be.displayName="CardHeader";const ze=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("text-sm font-semibold leading-none tracking-tight",e),...t}));ze.displayName="CardTitle";const Ue=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("text-sm text-muted-foreground",e),...t}));Ue.displayName="CardDescription";const Ae=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("p-5 pt-0",e),...t}));Ae.displayName="CardContent";const IW=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("flex items-center p-5 pt-0",e),...t}));IW.displayName="CardFooter";function $t({icon:e,title:t,description:r,action:n,className:i}){return u.jsxs("div",{className:fe("flex flex-col items-center justify-center gap-3 rounded-lg border border-dashed bg-card/40 px-6 py-12 text-center",i),children:[e?u.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-full bg-muted",children:u.jsx(e,{className:"h-5 w-5 text-muted-foreground"})}):null,u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-sm font-medium",children:t}),r?u.jsx("p",{className:"mx-auto max-w-md text-sm text-muted-foreground",children:r}):null]}),n]})}function $W(e){return e instanceof _t||e instanceof Error?e.message:"Something went wrong."}function wt(e,t=[],r={}){const n=r.enabled??!0,[i,o]=S.useState(null),[s,c]=S.useState(null),[f,d]=S.useState(n),m=S.useRef(0),p=S.useRef(e);p.current=e;const v=S.useCallback(async(b=!1)=>{const w=++m.current;b||d(!0);try{const y=await p.current();m.current===w&&(o(y),c(null))}catch(y){m.current===w&&c($W(y))}finally{m.current===w&&d(!1)}},[]);S.useEffect(()=>{if(!n){d(!1);return}return v(),()=>{m.current+=1}},[n,...t]);const x=S.useCallback(b=>{o(w=>typeof b=="function"?b(w):b)},[]);return{data:i,error:s,loading:f,reload:v,setData:x}}const Ad=["critical","high","medium","low","info"];function Cs(e){return(e??"").trim().replace(/\s+/g," ").toLowerCase()}function Rp(e){const t=new Map;for(const r of e){const n=JSON.stringify([Cs(r.severity),Cs(r.module),Cs(r.rule),Cs(r.message)]),i=t.get(n);i?i.occurrences.push(r):t.set(n,{key:n,representative:r,occurrences:[r]})}return[...t.values()].sort((r,n)=>{const i=Ad.indexOf(Cs(r.representative.severity)),o=Ad.indexOf(Cs(n.representative.severity)),s=(i===-1?Ad.length:i)-(o===-1?Ad.length:o);if(s)return s;const c=n.occurrences.length-r.occurrences.length;return c||r.representative.rule.localeCompare(n.representative.rule)})}const wa=82,Ed=24,BC=16,zC=18,qC=["hsl(var(--primary))","hsl(var(--severity-low))","hsl(var(--gate-pass))","hsl(var(--severity-medium))","hsl(var(--severity-high))"];function Td(e){let t=0;for(let r=0;r<e.length;r+=1)t=t*31+e.charCodeAt(r)>>>0;return qC[t%qC.length]}function DW(e,t=27){return e.length>t?`${e.slice(0,t-1)}…`:e}function LW(e){return e==null?"—":Array.isArray(e)?e.map(t=>String(t)).join(", "):typeof e=="object"?JSON.stringify(e):String(e)}function FW(e){return(e??[]).map(t=>({id:typeof t.id=="number"?t.id:null,rule:typeof t.rule=="string"?t.rule:"Finding",module:typeof t.module=="string"?t.module:"other",severity:typeof t.severity=="string"?t.severity:"info",file:typeof t.file=="string"?t.file:"",line:typeof t.line=="number"?t.line:null,message:typeof t.message=="string"?t.message:""}))}function BW(e,t,r){const n=e.find(w=>w.kind==="application")??e[0],i=Math.max(360,r),o=i>=1280?4:i>=850?3:i>=520?2:1,s=(i-Ed*2-BC*(o-1))/o,c=Math.min(480,i-Ed*2),f=e.filter(w=>w.id!==(n==null?void 0:n.id)).slice().sort((w,y)=>w.kind.localeCompare(y.kind)||w.label.localeCompare(y.label)),d=Math.ceil(f.length/o),m=150,p=Math.max(240,m+d*(wa+zC)+Ed),v=[];n&&v.push({node:n,x:i/2,y:66}),f.forEach((w,y)=>{const P=y%o,O=Math.floor(y/o);v.push({node:w,x:Ed+s/2+P*(s+BC),y:m+wa/2+O*(wa+zC)})});const x=new Map(v.map(w=>[w.node.id,w])),b=t.flatMap(w=>{const y=x.get(w.source),P=x.get(w.target);if(!y||!P)return[];const O=y.y+wa/2,A=P.y-wa/2,C=Math.max(36,(A-O)*.48);return[{source:w.source,target:w.target,path:`M ${y.x} ${O} C ${y.x} ${O+C}, ${P.x} ${A-C}, ${P.x} ${A}`}]});return{points:v,edges:b,width:i,height:p,cardWidth:s,appWidth:c,rootId:(n==null?void 0:n.id)??null}}function zW(){const{activeRepositoryId:e}=Rr(),[t,r]=S.useState(null),[n,i]=S.useState(null),[o,s]=S.useState(null),[c,f]=S.useState(!1),[d,m]=S.useState(0),[p,v]=S.useState(900),x=S.useRef(null);S.useEffect(()=>{const _=x.current;if(!_)return;const E=new ResizeObserver(([N])=>{v(Math.round(N.contentRect.width))});return E.observe(_),()=>E.disconnect()},[]);const b=wt(()=>De.intel.architecture(e),[e],{enabled:e!==null}),w=b.data??null,y=S.useMemo(()=>(w==null?void 0:w.nodes)??[],[w==null?void 0:w.nodes]),P=t&&w?w.nodes.find(_=>_.id===t)??null:null,O=S.useMemo(()=>Array.from(new Set(y.map(_=>_.kind))),[y]),A=S.useMemo(()=>{const _=new Map;for(const E of y){const N=_.get(E.kind)??[];N.push(E),_.set(E.kind,N)}return[..._.entries()].sort(([E],[N])=>E.localeCompare(N))},[y]),C=S.useMemo(()=>BW(y,(w==null?void 0:w.edges)??[],p),[y,w==null?void 0:w.edges,p]);return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Architecture",description:"How the codebase is put together. This view is derived from static analysis of source, not from a runtime call graph."}),e===null?u.jsx($t,{icon:B0,title:"No repository selected",description:"Choose a repository in the top bar to see its derived architecture."}):u.jsx(Et,{loading:b.loading,error:b.error,onRetry:()=>void b.reload(),loadingRows:4,children:w===null?null:y.length===0?u.jsx($t,{icon:B0,title:"No architecture could be derived",description:"Static analysis did not produce any nodes for this repository. Run a scan, or check that the source is reachable."}):u.jsxs("div",{className:"space-y-6",children:[u.jsxs(Ce,{className:fe(c&&"fixed inset-3 z-50 flex flex-col overflow-hidden bg-background shadow-2xl"),children:[u.jsxs(Be,{className:"flex-col items-start justify-between gap-4 pb-3 sm:flex-row",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(ze,{children:"Component graph"}),u.jsx(Ue,{children:"Select a feature to animate its connections. Nodes are grouped into readable lanes by type; this is static analysis, not a runtime call graph."})]}),u.jsxs("div",{className:"flex shrink-0 flex-wrap justify-end gap-2",children:[u.jsxs(me,{size:"sm",variant:"outline",onClick:()=>m(_=>_+1),children:[u.jsx(Al,{}),"Replay movement"]}),u.jsxs(me,{size:"sm",variant:"outline",onClick:()=>f(_=>!_),"aria-label":c?"Exit expanded graph":"Expand graph",children:[c?u.jsx(rz,{}):u.jsx(ZB,{}),c?"Exit expanded view":"Expand graph"]})]})]}),u.jsxs(Ae,{className:fe("min-h-0",c&&"flex flex-1 flex-col"),children:[u.jsx("div",{ref:x,className:"w-full overflow-auto rounded-lg border bg-muted/20",style:{maxHeight:c?"calc(100vh - 190px)":void 0},children:u.jsxs("svg",{viewBox:`0 0 ${C.width} ${C.height}`,width:C.width,height:C.height,className:"block w-full",role:"group","aria-label":"Interactive architecture component graph",children:[u.jsxs("defs",{children:[u.jsx("marker",{id:"architecture-arrow",markerWidth:"10",markerHeight:"10",refX:"9",refY:"3",orient:"auto",markerUnits:"strokeWidth",children:u.jsx("path",{d:"M0,0 L9,3 L0,6 z",fill:"hsl(var(--muted-foreground))"})}),u.jsx("pattern",{id:"architecture-grid",width:"32",height:"32",patternUnits:"userSpaceOnUse",children:u.jsx("circle",{cx:"1",cy:"1",r:"1",fill:"hsl(var(--border))",opacity:"0.55"})})]}),u.jsx("rect",{width:C.width,height:C.height,fill:"url(#architecture-grid)"}),C.edges.map((_,E)=>{const N=n??t,R=N!==null&&(_.source===N||_.target===N),M=Math.max(1,Math.ceil(C.edges.length/8)),F=R&&(N!==C.rootId||E%M===0),I=`architecture-edge-${E}`;return u.jsxs("g",{children:[u.jsx("path",{id:I,d:_.path,fill:"none",stroke:R?"hsl(var(--primary))":"hsl(var(--muted-foreground))",strokeOpacity:N?R?.9:.08:.22,strokeWidth:R?2.5:1.25,markerEnd:"url(#architecture-arrow)",className:F?"architecture-edge-active":void 0}),F?u.jsx("circle",{r:"4",className:"architecture-flow-dot",children:u.jsx("animateMotion",{dur:`${1.4+E%4*.2}s`,repeatCount:"indefinite",children:u.jsx("mpath",{href:`#${I}`})})}):null]},I)}),C.points.map((_,E)=>{const N=_.node.id===t,R=_.node.id===n,M=_.node.id===C.rootId?C.appWidth:C.cardWidth,F=Math.max(18,Math.floor((M-54)/7.2));return u.jsx("g",{transform:`translate(${_.x-M/2} ${_.y-wa/2})`,className:"cursor-pointer outline-none",role:"button",tabIndex:0,"aria-label":`Select ${_.node.label}`,onClick:()=>r(_.node.id),onMouseEnter:()=>i(_.node.id),onMouseLeave:()=>i(null),onFocus:()=>i(_.node.id),onBlur:()=>i(null),onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),r(_.node.id))},children:u.jsxs("g",{className:"architecture-node-enter",style:{animationDelay:`${Math.min(E,24)*22}ms`},children:[u.jsx("title",{children:_.node.label}),u.jsx("rect",{width:M,height:wa,rx:"12",fill:"hsl(var(--card))",stroke:N||R?"hsl(var(--primary))":"hsl(var(--border))",strokeWidth:N?3:R?2:1,className:"architecture-node-card"}),u.jsx("circle",{cx:"22",cy:"25",r:"6",fill:Td(_.node.kind)}),u.jsx("text",{x:"38",y:"30",fill:"hsl(var(--card-foreground))",fontSize:"14",fontWeight:"600",children:DW(_.node.label,F)}),u.jsxs("text",{x:"38",y:"56",fill:"hsl(var(--muted-foreground))",fontSize:"11",children:[qe(_.node.kind)," · ",be(_.node.files.length)," files"]})]},`${d}-${_.node.id}`)},_.node.id)})]})}),u.jsx("div",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-2",children:O.map(_=>u.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[u.jsx("span",{className:"inline-block h-2.5 w-2.5 rounded-full",style:{backgroundColor:Td(_)}}),qe(_)]},_))})]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-3",children:[u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:P?P.label:"Node details"}),u.jsx(Ue,{children:P?`${qe(P.kind)} · confidence ${qe(P.confidence)}`:"Select a node in the graph or the table to inspect it."})]}),u.jsx(Ae,{children:P?u.jsx(qW,{node:P,findings:FW(w.findings_by_node[P.id])}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No node selected yet."})})]}),u.jsxs(Ce,{className:"lg:col-span-2",children:[u.jsxs(Be,{className:"pb-3",children:[u.jsx(ze,{children:"Architecture nodes"}),u.jsx(Ue,{children:"Grouped by type to keep the feature list compact. Expand a type to show or hide its nodes."})]}),u.jsx(Ae,{className:"space-y-2",children:A.map(([_,E])=>{const N=o===_,R=_==="endpoint"?"Endpoints":`${qe(_)} nodes`;return u.jsxs("section",{className:"overflow-hidden rounded-lg border",children:[u.jsxs("button",{type:"button","aria-expanded":N,onClick:()=>s(M=>M===_?null:_),className:fe("flex w-full items-center gap-3 px-3 py-3 text-left transition-colors hover:bg-muted/60",N&&"bg-muted/40"),children:[u.jsx("span",{className:"h-3 w-3 shrink-0 rounded-full ring-4 ring-background",style:{backgroundColor:Td(_)}}),u.jsxs("span",{className:"min-w-0 flex-1",children:[u.jsx("span",{className:"block font-medium",children:R}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:[be(E.length)," feature",E.length===1?"":"s"]})]}),u.jsx(bp,{className:fe("h-4 w-4 shrink-0 text-muted-foreground transition-transform",N&&"rotate-180")})]}),N?u.jsx("div",{className:"grid gap-2 border-t bg-muted/20 p-3 sm:grid-cols-2 xl:grid-cols-3",children:E.map(M=>u.jsxs("button",{type:"button","aria-pressed":(P==null?void 0:P.id)===M.id,onClick:()=>r(M.id),className:fe("flex min-w-0 items-center gap-2 rounded-md border bg-card px-3 py-2 text-left transition-colors hover:border-primary/60 hover:bg-accent/50",(P==null?void 0:P.id)===M.id&&"border-primary bg-primary/10"),children:[u.jsx("span",{className:"h-2.5 w-2.5 shrink-0 rounded-full",style:{backgroundColor:Td(M.kind)}}),u.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:M.label}),u.jsxs("span",{className:"shrink-0 text-[11px] text-muted-foreground",children:[be(M.files.length)," files"]})]},M.id))}):null]},_)})})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Notes"}),u.jsx(Ue,{children:"Reported verbatim by the analysis engine."})]}),u.jsx(Ae,{children:w.notes.length?u.jsx("ul",{className:"list-disc space-y-1 pl-5 text-sm text-muted-foreground",children:w.notes.map((_,E)=>u.jsx("li",{children:_},E))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"The engine did not provide any notes for this graph."})})]})]})})]})}function qW({node:e,findings:t}){const[r,n]=S.useState("all"),i=S.useMemo(()=>t.reduce((c,f)=>(c[f.severity]=(c[f.severity]??0)+1,c),{}),[t]),o=r==="all"?t:t.filter(c=>c.severity===r),s=S.useMemo(()=>Rp(o),[o]);return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"mb-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Files"}),e.files.length?u.jsx("ul",{className:"space-y-1",children:e.files.map((c,f)=>u.jsx("li",{className:"truncate font-mono text-xs",children:c},f))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No files were attached to this node."})]}),u.jsxs("div",{children:[u.jsx("p",{className:"mb-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:"Details"}),u.jsx(UW,{details:e.details})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsxs("p",{className:"text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:["Findings (",be(o.length),")"]}),u.jsxs(_n,{value:r,onValueChange:n,children:[u.jsx(Zr,{"aria-label":"Filter node findings by severity",className:"h-8 w-[132px] text-xs",children:u.jsx(jn,{})}),u.jsx(Jr,{children:["all","critical","high","medium","low","info"].map(c=>u.jsx(Pr,{value:c,children:c==="all"?`All (${be(t.length)})`:`${qe(c)} (${be(i[c]??0)})`},c))})]})]}),s.length?u.jsx("ul",{className:"space-y-2",children:s.map(c=>{const f=c.representative,d=new Set(c.occurrences.map(m=>m.file)).size;return u.jsx("li",{className:"rounded-md border p-2",children:u.jsxs("details",{children:[u.jsxs("summary",{className:"cursor-pointer list-none space-y-1",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Xi,{severity:f.severity}),u.jsx("span",{className:"min-w-0 truncate font-mono text-[11px] text-muted-foreground",children:f.rule}),u.jsxs("span",{className:"ml-auto shrink-0 text-xs font-medium",children:[be(c.occurrences.length),"×"]})]}),f.message?u.jsx("p",{className:"text-sm",children:f.message}):null,u.jsxs("p",{className:"text-xs text-muted-foreground",children:[be(c.occurrences.length)," occurrence",c.occurrences.length===1?"":"s"," across ",be(d)," file",d===1?"":"s"," · show locations"]})]}),u.jsx("ul",{className:"mt-2 max-h-48 space-y-1 overflow-auto border-t pt-2",children:c.occurrences.map((m,p)=>u.jsx("li",{className:"text-xs",children:m.id!==null?u.jsxs(Ge,{to:`/findings/${m.id}`,className:"break-all font-mono text-primary hover:underline",children:[m.file,":",m.line??"—"]}):u.jsxs("span",{className:"break-all font-mono",children:[m.file,":",m.line??"—"]})},m.id??`${m.file}:${m.line}:${p}`))})]})},c.key)})}):u.jsx("p",{className:"text-sm text-muted-foreground",children:t.length?"No findings match this severity.":"No findings are attached to this node."})]})]})}function UW({details:e}){const t=Object.entries(e);return t.length?u.jsx("dl",{className:"space-y-1 text-sm",children:t.map(([r,n])=>u.jsxs("div",{className:"flex gap-2",children:[u.jsx("dt",{className:"shrink-0 text-muted-foreground",children:qe(r)}),u.jsx("dd",{className:"min-w-0 break-words",children:LW(n)})]},r))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No additional details were recorded."})}function hh({text:e,className:t}){return e.trim()?u.jsx("div",{className:fe("space-y-3 text-sm leading-relaxed",t),children:WW(e)}):null}function _g(e,t){const r=[],n=/(`[^`]+`|\*\*[^*]+\*\*)/g;let i=0,o,s=0;for(;(o=n.exec(e))!==null;){o.index>i&&r.push(e.slice(i,o.index));const c=o[0],f=`${t}-i${s++}`;c.startsWith("`")?r.push(u.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-[0.85em] text-foreground",children:c.slice(1,-1)},f)):r.push(u.jsx("strong",{className:"font-semibold text-foreground",children:c.slice(2,-2)},f)),i=o.index+c.length}return i<e.length&&r.push(e.slice(i)),r}function WW(e){const t=e.replace(/\r\n/g,`
|
|
413
|
+
`).split(`
|
|
414
|
+
`),r=[];let n=[],i=!1,o=null,s=0;const c=()=>{if(!n.length)return;const f=n.map((d,m)=>u.jsx("li",{className:"ml-1",children:_g(d,`l${s}-${m}`)},m));r.push(i?u.jsx("ol",{className:"ml-5 list-decimal space-y-1",children:f},`ol-${s++}`):u.jsx("ul",{className:"ml-5 list-disc space-y-1",children:f},`ul-${s++}`)),n=[]};for(const f of t){if(f.trim().startsWith("```")){o?(r.push(u.jsx("pre",{className:"overflow-x-auto rounded-md border bg-muted/50 p-3 font-mono text-xs",children:u.jsx("code",{children:o.join(`
|
|
415
|
+
`)})},`pre-${s++}`)),o=null):(c(),o=[]);continue}if(o){o.push(f);continue}const d=/^(#{1,6})\s+(.*)$/.exec(f);if(d){c();const v=d[1].length,x=["text-lg","text-base","text-sm","text-sm","text-sm","text-sm"];r.push(u.jsx("p",{className:fe("font-semibold text-foreground",x[v-1]),children:_g(d[2],`h${s}`)},`h-${s++}`));continue}const m=/^\s*[-*+]\s+(.*)$/.exec(f),p=/^\s*\d+[.)]\s+(.*)$/.exec(f);if(m||p){const v=i;i=!!p,n.length&&v!==i&&c(),n.push((m??p)[1]);continue}if(!f.trim()){c();continue}c(),r.push(u.jsx("p",{className:"text-muted-foreground",children:_g(f,`p${s}`)},`p-${s++}`))}return o&&r.push(u.jsx("pre",{className:"overflow-x-auto rounded-md border bg-muted/50 p-3 font-mono text-xs",children:u.jsx("code",{children:o.join(`
|
|
416
|
+
`)})},`pre-${s++}`)),c(),r.map((f,d)=>u.jsx(S.Fragment,{children:f},d))}const HW=z1("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 [&>svg~*]:pl-7",{variants:{variant:{default:"bg-card text-card-foreground",info:"border-severity-low/40 bg-severity-low/10 text-foreground",success:"border-gate-pass/40 bg-gate-pass/10 text-foreground",warning:"border-severity-medium/40 bg-severity-medium/10 text-foreground",destructive:"border-destructive/40 bg-destructive/10 text-foreground"}},defaultVariants:{variant:"default"}}),VW={default:z0,info:z0,success:I1,warning:wp,destructive:iM};function Qt({className:e,variant:t="default",children:r,...n}){const i=VW[t??"default"];return u.jsxs("div",{role:"alert",className:fe(HW({variant:t}),e),...n,children:[u.jsx(i,{}),r]})}const mr=S.forwardRef(({className:e,...t},r)=>u.jsx("h5",{ref:r,className:fe("mb-1 font-medium leading-none",e),...t}));mr.displayName="AlertTitle";const zt=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{ref:r,className:fe("text-sm [&_p]:leading-relaxed",e),...t}));zt.displayName="AlertDescription";const bS=S.forwardRef(({className:e,...t},r)=>u.jsx("textarea",{ref:r,className:fe("flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...t}));bS.displayName="Textarea";function GW(){var H;const{activeRepositoryId:e,activeRepository:t,health:r}=Rr(),n=wt(()=>De.ai.conversations(),[]),[i,o]=S.useState(null),[s,c]=S.useState([]),[f,d]=S.useState(""),[m,p]=S.useState(!1),[v,x]=S.useState(null),[b,w]=S.useState(!1),[y,P]=S.useState({}),[O,A]=S.useState(null),[C,_]=S.useState(!1),[E,N]=S.useState(null),R=wt(()=>De.ai.conversation(i),[i],{enabled:i!==null}),M=S.useRef(null);S.useEffect(()=>{if(i===null){c([]);return}R.data&&R.data.id===i&&c(R.data.messages)},[R.data,i]),S.useEffect(()=>{var B;(B=M.current)==null||B.scrollIntoView({block:"end",behavior:"smooth"})},[s,m]);const F=(r==null?void 0:r.ai_configured)===!0?!1:b||(r==null?void 0:r.ai_configured)===!1;function I(){o(null),c([]),x(null),w(!1)}async function $(){const B=f.trim();if(!(!B||m)){p(!0),x(null);try{const X=await De.ai.chat({message:B,repository_id:e??null,conversation_id:i??null});d(""),w(X.configured===!1);const W={id:-Date.now(),role:"user",content:B,created_at:new Date().toISOString(),metadata:{}};if(c(q=>[...q,W,X.message]),X.sources.length){const q=X.sources;P(V=>({...V,[X.message.id]:q}))}X.conversation_id!==i&&(o(X.conversation_id),n.reload(!0))}catch(X){x(X instanceof _t?X.message:"The message could not be sent.")}finally{p(!1)}}}async function L(){if(O){_(!0),N(null);try{await De.ai.deleteConversation(O.id),i===O.id&&(o(null),c([])),A(null),await n.reload(!0)}catch(B){N(B instanceof _t?B.message:"The conversation could not be deleted.")}finally{_(!1)}}}const U=n.data??[];return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"AI Assistant",description:"Ask questions grounded in the scan results stored for this dashboard. Answers come from the configured model — nothing here is fabricated."}),F?u.jsxs(Qt,{variant:"warning",children:[u.jsx(mr,{children:"AI is not configured"}),u.jsxs(zt,{children:["The assistant cannot answer until an AI provider is configured. Add a provider and API key in"," ",u.jsx(Ge,{to:"/settings",className:"font-medium underline underline-offset-4",children:"settings"}),". Until then no answers will be produced."]})]}):null,e===null?u.jsxs(Qt,{variant:"info",children:[u.jsx(mr,{children:"No repository selected"}),u.jsx(zt,{children:"The assistant will answer without repository context. Select a repository in the top bar to ground the conversation in a specific codebase."})]}):u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Grounded in ",(t==null?void 0:t.name)??`repository #${e}`,"."]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-[300px_1fr]",children:[u.jsxs(Ce,{className:"flex flex-col",children:[u.jsxs(Be,{className:"flex-row items-center justify-between space-y-0 pb-3",children:[u.jsx(ze,{children:"Conversations"}),u.jsxs(me,{size:"sm",variant:"outline",onClick:I,children:[u.jsx(U0,{}),"New"]})]}),u.jsx(Ae,{className:"px-0",children:u.jsx(Et,{loading:n.loading,error:n.error,onRetry:()=>void n.reload(),loadingRows:3,children:U.length?u.jsx(ah,{className:"h-[420px]",children:u.jsx("ul",{className:"space-y-1 px-2",children:U.map(B=>{const X=B.id===i;return u.jsx("li",{children:u.jsxs("div",{className:fe("group flex items-center gap-1 rounded-md",X?"bg-muted":"hover:bg-muted/60"),children:[u.jsxs("button",{type:"button",onClick:()=>{o(B.id),x(null)},className:"flex min-w-0 flex-1 flex-col items-start gap-0.5 px-3 py-2 text-left",children:[u.jsx("span",{className:"w-full truncate text-sm font-medium",children:B.title||`Conversation ${B.id}`}),u.jsxs("span",{className:"text-[11px] text-muted-foreground",children:[B.message_count," messages ·"," ",Qn(B.updated_at)]})]}),u.jsx(me,{size:"icon",variant:"ghost",className:"mr-1 h-7 w-7 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100","aria-label":"Delete conversation",onClick:()=>{N(null),A(B)},children:u.jsx(ru,{className:"h-3.5 w-3.5"})})]})},B.id)})})}):u.jsx("div",{className:"px-4",children:u.jsx($t,{icon:tz,title:"No conversations yet",description:"Ask a question to start the first conversation.",className:"border-0 bg-transparent px-0 py-6"})})})})]}),u.jsxs(Ce,{className:"flex min-h-[560px] flex-col",children:[u.jsx(Be,{className:"pb-3",children:u.jsx(ze,{children:i===null?"New conversation":((H=R.data)==null?void 0:H.title)||`Conversation ${i}`})}),u.jsxs(Ae,{className:"flex flex-1 flex-col gap-3",children:[u.jsx(ah,{className:"h-[360px] rounded-md border bg-muted/20 p-3",children:u.jsx(Et,{loading:R.loading&&s.length===0,error:R.error,onRetry:()=>void R.reload(),loadingRows:2,children:s.length?u.jsxs("div",{className:"space-y-4",children:[s.map(B=>u.jsx(KW,{message:B,sources:y[B.id]},`${B.id}-${B.role}`)),m?u.jsx("p",{className:"text-xs text-muted-foreground",children:"Waiting for the model…"}):null,u.jsx("div",{ref:M})]}):u.jsx("div",{className:"flex h-full items-center justify-center py-10",children:u.jsx("p",{className:"max-w-sm text-center text-sm text-muted-foreground",children:i===null?"Ask a question about the selected repository. An answer is produced only when an AI provider is configured.":"This conversation has no messages yet."})})})}),v?u.jsx(Qt,{variant:"destructive",children:u.jsx(zt,{children:v})}):null,u.jsxs("form",{className:"space-y-2",onSubmit:B=>{B.preventDefault(),$()},children:[u.jsx(bS,{value:f,onChange:B=>d(B.target.value),onKeyDown:B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),$())},placeholder:"Ask about the codebase, for example: which findings are the most severe?",rows:3,disabled:m}),u.jsxs("div",{className:"flex items-center justify-between gap-2",children:[u.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Enter to send, Shift+Enter for a new line."}),u.jsxs(me,{type:"submit",size:"sm",disabled:m||!f.trim(),children:[u.jsx(cz,{}),m?"Sending…":"Send"]})]})]})]})]})]}),F?u.jsxs("p",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx(Hu,{className:"h-3.5 w-3.5"}),"Configure an AI provider in settings to receive answers."]}):null,u.jsx(Hi,{open:O!==null,onOpenChange:B=>{!B&&!C&&(A(null),N(null))},children:u.jsxs(ai,{children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Delete conversation"}),u.jsxs(Gi,{children:["This permanently deletes"," ",O?`"${O.title||`Conversation ${O.id}`}"`:"this conversation"," ","and all of its messages. This cannot be undone."]})]}),E?u.jsx(Qt,{variant:"destructive",children:u.jsx(zt,{children:E})}):null,u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>A(null),disabled:C,children:"Cancel"}),u.jsx(me,{variant:"destructive",onClick:()=>void L(),disabled:C,children:C?"Deleting…":"Delete"})]})]})})]})}function KW({message:e,sources:t}){const r=e.role==="assistant"||e.role==="ai";return u.jsx("div",{className:fe("flex",r?"justify-start":"justify-end"),children:u.jsxs("div",{className:fe("max-w-[85%] rounded-lg border px-3 py-2",r?"bg-card":"bg-primary/10"),children:[u.jsx("p",{className:"mb-1 text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:r?"Assistant":"You"}),r?u.jsx(hh,{text:e.content}):u.jsx("p",{className:"whitespace-pre-wrap text-sm",children:e.content}),t&&t.length?u.jsxs("div",{className:"mt-2 border-t pt-2",children:[u.jsx("p",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:"Sources"}),u.jsx("ul",{className:"mt-1 space-y-0.5",children:t.map((n,i)=>u.jsx("li",{className:"truncate text-xs text-muted-foreground",children:XW(n)},i))})]}):null]})})}function XW(e){const t=e.title??e.file??e.path??e.label??e.finding_id??e.id;if(typeof t=="string"||typeof t=="number"){const r=e.line??e.start_line,n=typeof r=="string"||typeof r=="number"?`:${String(r)}`:"";return`${String(t)}${n}`}return JSON.stringify(e)}const xn=S.forwardRef(({className:e,type:t,...r},n)=>u.jsx("input",{type:t,ref:n,className:fe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...r}));xn.displayName="Input";const di=S.forwardRef(({className:e,...t},r)=>u.jsx("div",{className:"relative w-full overflow-auto",children:u.jsx("table",{ref:r,className:fe("w-full caption-bottom text-sm",e),...t})}));di.displayName="Table";const hi=S.forwardRef(({className:e,...t},r)=>u.jsx("thead",{ref:r,className:fe("[&_tr]:border-b",e),...t}));hi.displayName="TableHeader";const pi=S.forwardRef(({className:e,...t},r)=>u.jsx("tbody",{ref:r,className:fe("[&_tr:last-child]:border-0",e),...t}));pi.displayName="TableBody";const YW=S.forwardRef(({className:e,...t},r)=>u.jsx("tfoot",{ref:r,className:fe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));YW.displayName="TableFooter";const At=S.forwardRef(({className:e,...t},r)=>u.jsx("tr",{ref:r,className:fe("border-b transition-colors hover:bg-muted/40 data-[state=selected]:bg-muted",e),...t}));At.displayName="TableRow";const Te=S.forwardRef(({className:e,...t},r)=>u.jsx("th",{ref:r,className:fe("h-10 whitespace-nowrap px-3 text-left align-middle text-xs font-medium uppercase tracking-wide text-muted-foreground",e),...t}));Te.displayName="TableHead";const Pe=S.forwardRef(({className:e,...t},r)=>u.jsx("td",{ref:r,className:fe("px-3 py-2.5 align-middle",e),...t}));Pe.displayName="TableCell";const QW=S.forwardRef(({className:e,...t},r)=>u.jsx("caption",{ref:r,className:fe("mt-4 text-sm text-muted-foreground",e),...t}));QW.displayName="TableCaption";function T$(e,t=300){const[r,n]=S.useState(e);return S.useEffect(()=>{const i=window.setTimeout(()=>n(e),t);return()=>window.clearTimeout(i)},[e,t]),r}function ZW(e){return e.map(t=>({id:typeof t.id=="string"?t.id:"",aliases:Array.isArray(t.aliases)?t.aliases.map(r=>String(r)):[],severity:typeof t.severity=="string"&&t.severity?t.severity:"info",summary:typeof t.summary=="string"?t.summary:"",url:typeof t.url=="string"?t.url:null,modified:typeof t.modified=="string"?t.modified:null}))}function JW(e){switch(e){case"ok":return"border-gate-pass/40 bg-gate-pass/10 text-gate-pass";case"advisory":return"border-severity-medium/40 bg-severity-medium/10 text-severity-medium";default:return"border-border bg-muted text-muted-foreground"}}function e7(){const{activeRepositoryId:e}=Rr(),[t,r]=S.useState(!1),[n,i]=S.useState(""),[o,s]=S.useState(null),c=T$(n),f=wt(()=>De.intel.dependencies(e,t),[e,t],{enabled:e!==null}),d=f.data??null,m=(d==null?void 0:d.dependencies)??[],p=S.useMemo(()=>{const v=c.trim().toLowerCase();return v?m.filter(x=>x.name.toLowerCase().includes(v)):m},[m,c]);return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Dependencies",description:"Direct and transitive packages found in the repository's lockfiles and manifests.",actions:u.jsxs(u.Fragment,{children:[u.jsx(xn,{value:n,onChange:v=>i(v.target.value),placeholder:"Search packages",className:"h-8 w-48","aria-label":"Search dependencies"}),u.jsx(me,{size:"sm",variant:"outline",onClick:()=>r(!0),disabled:t||e===null,children:t?"Advisories requested":"Check advisories now (network)"})]})}),e===null?u.jsx($t,{icon:q0,title:"No repository selected",description:"Choose a repository in the top bar to inspect its dependencies."}):u.jsx(Et,{loading:f.loading,error:f.error,onRetry:()=>void f.reload(),loadingRows:4,children:d===null?null:u.jsxs("div",{className:"space-y-4",children:[u.jsx(Ce,{children:u.jsxs(Ae,{className:"flex flex-wrap items-start gap-x-8 gap-y-3 p-5",children:[u.jsx(UC,{label:"Package manager",value:d.package_manager??"Not detected"}),u.jsx(UC,{label:"OSV advisories",value:d.osv_checked?"Checked":"Not checked"}),u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:"Lockfiles"}),d.lockfiles.length?u.jsx("div",{className:"flex flex-wrap gap-1.5",children:d.lockfiles.map(v=>u.jsx(Xt,{variant:"secondary",className:"font-mono text-[11px]",children:v},v))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No lockfiles were found."})]})]})}),d.notes.length?u.jsx("ul",{className:"list-disc space-y-1 rounded-lg border bg-card/40 py-4 pl-10 pr-6 text-sm text-muted-foreground",children:d.notes.map((v,x)=>u.jsx("li",{children:v},x))}):null,m.length===0?u.jsx($t,{icon:q0,title:"No dependencies found",description:"No lockfile or package manifest was found for this repository, so there are no packages to list."}):u.jsx(Ce,{children:u.jsx(Ae,{className:"px-0 pb-0",children:u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Package"}),u.jsx(Te,{children:"Version"}),u.jsx(Te,{children:"Scope"}),u.jsx(Te,{children:"Status"}),u.jsx(Te,{children:"Advisories"})]})}),u.jsxs(pi,{children:[p.map(v=>u.jsx(t7,{dependency:v,open:o===v.name,onToggle:()=>s(o===v.name?null:v.name)},v.name)),p.length===0?u.jsx(At,{children:u.jsxs(Pe,{colSpan:5,className:"py-8 text-center text-sm text-muted-foreground",children:['No dependencies match "',c.trim(),'".']})}):null]})]})})})]})})]})}function t7({dependency:e,open:t,onToggle:r}){const n=ZW(e.advisories);return u.jsxs(u.Fragment,{children:[u.jsxs(At,{className:"cursor-pointer","aria-expanded":t,onClick:r,children:[u.jsx(Pe,{className:"font-medium",children:e.name}),u.jsx(Pe,{className:e.version?"font-mono text-xs":"text-muted-foreground",children:e.version??"unpinned"}),u.jsx(Pe,{children:u.jsx(Xt,{variant:e.direct?"secondary":"muted",children:e.direct?"direct":"transitive"})}),u.jsx(Pe,{children:u.jsx("span",{className:fe("inline-flex items-center rounded-full border px-2 py-0.5 text-[11px] font-medium",JW(e.status)),children:qe(e.status)})}),u.jsx(Pe,{className:"tabular-nums",children:n.length?u.jsx("span",{className:"font-medium text-severity-medium",children:n.length}):u.jsx("span",{className:"text-muted-foreground",children:"0"})})]}),t?u.jsx(At,{className:"bg-muted/30 hover:bg-muted/30",children:u.jsx(Pe,{colSpan:5,className:"py-3",children:n.length?u.jsx("ul",{className:"space-y-3",children:n.map((i,o)=>u.jsxs("li",{className:"space-y-1",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(Xi,{severity:i.severity}),i.id?u.jsx("span",{className:"font-mono text-xs",children:i.id}):null,i.aliases.length?u.jsxs("span",{className:"text-xs text-muted-foreground",children:["aliases: ",i.aliases.join(", ")]}):null]}),i.summary?u.jsx("p",{className:"text-sm",children:i.summary}):null,u.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-xs text-muted-foreground",children:[i.url?u.jsx("a",{href:i.url,target:"_blank",rel:"noreferrer noopener",className:"text-primary underline-offset-4 hover:underline",children:i.url}):null,u.jsxs("span",{children:["Modified ",yn(i.modified)]})]})]},`${i.id}-${o}`))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No advisories were recorded for this package."})})}):null]})}function UC({label:e,value:t}){return u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("p",{className:"text-sm font-medium",children:t})]})}const WC={queued:"border-border bg-muted text-muted-foreground",running:"border-severity-low/40 bg-severity-low/10 text-severity-low",completed:"border-gate-pass/40 bg-gate-pass/10 text-gate-pass",failed:"border-gate-fail/40 bg-gate-fail/10 text-gate-fail",cancelled:"border-border bg-muted text-muted-foreground"};function el({status:e,className:t}){const r=(e||"").toLowerCase(),n=r==="running"||r==="queued";return u.jsxs("span",{className:fe("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-medium",WC[r]??WC.queued,t),children:[n?u.jsx(D1,{className:"h-3 w-3 animate-spin"}):null,qe(r||"unknown")]})}const HC={open:"border-severity-high/40 bg-severity-high/10 text-severity-high",reviewed:"border-severity-low/40 bg-severity-low/10 text-severity-low",resolved:"border-gate-pass/40 bg-gate-pass/10 text-gate-pass",dismissed:"border-border bg-muted text-muted-foreground",unverified:"border-severity-medium/40 bg-severity-medium/10 text-severity-medium"};function ph({status:e,className:t}){const r=(e||"open").toLowerCase();return u.jsx("span",{className:fe("inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-medium",HC[r]??HC.open,t),children:qe(r)})}const N$=S.createContext(null),r7={success:I1,error:wp,info:z0},n7={success:"border-gate-pass/40",error:"border-destructive/50",info:"border-border"};function i7({children:e}){const[t,r]=S.useState([]),n=S.useCallback(s=>{r(c=>c.filter(f=>f.id!==s))},[]),i=S.useCallback(({title:s,description:c,variant:f="info"})=>{const d=Date.now()+Math.random();r(m=>[...m,{id:d,title:s,description:c,variant:f}]),window.setTimeout(()=>n(d),6e3)},[n]),o=S.useMemo(()=>({toast:i}),[i]);return u.jsxs(N$.Provider,{value:o,children:[e,u.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[100] flex w-full max-w-sm flex-col gap-2",children:t.map(s=>{const c=r7[s.variant];return u.jsxs("div",{className:fe("pointer-events-auto flex items-start gap-3 rounded-lg border bg-popover p-4 text-popover-foreground shadow-lg",n7[s.variant]),children:[u.jsx(c,{className:"mt-0.5 h-4 w-4 shrink-0"}),u.jsxs("div",{className:"flex-1 space-y-1",children:[u.jsx("p",{className:"text-sm font-medium",children:s.title}),s.description?u.jsx("p",{className:"text-xs text-muted-foreground",children:s.description}):null]}),u.jsx("button",{type:"button",onClick:()=>n(s.id),className:"rounded-sm opacity-70 transition-opacity hover:opacity-100","aria-label":"Dismiss notification",children:u.jsx(B1,{className:"h-4 w-4"})})]},s.id)})})]})}function ro(){const e=S.useContext(N$);if(!e)throw new Error("useToast must be used inside a ToastProvider.");return e}function o7(){var C;const{findingId:e}=R1(),t=Number.parseInt(e??"",10),r=Number.isInteger(t)&&t>0,n=Ko(),{toast:i}=ro(),o=wt(()=>De.findings.get(t),[t],{enabled:r}),[s,c]=S.useState(""),[f,d]=S.useState(null),[m,p]=S.useState(null),[v,x]=S.useState(null);if(!r)return u.jsx($t,{icon:QO,title:"Finding not found",description:"The finding id must be a positive number.",action:u.jsx(me,{asChild:!0,variant:"outline",children:u.jsx(Ge,{to:"/findings",children:"Back to findings"})})});const b=o.data;async function w(_){c("status"),d(null);try{await De.findings.setStatus(t,_),await o.reload(!0),i({title:_==="reviewed"?"Marked as reviewed":`Status set to ${qe(_)}`,variant:"success"})}catch(E){d(E instanceof _t?E.message:"The status could not be updated.")}finally{c("")}}async function y(){if(b){c("assistant"),d(null);try{const _=await De.ai.chat({repository_id:b.repository_id,message:`Explain finding ${b.rule} at ${b.file}:${b.line}. Use the stored scan evidence and distinguish confirmed facts from hypotheses.`});_.configured?p(_.message.content):d("AI is not configured. Add server-side provider credentials in Settings before requesting an explanation.")}catch(_){d(_ instanceof _t?_.message:"The assistant request failed.")}finally{c("")}}}async function P(){c("review"),d(null);try{const _=await De.ai.reviewFinding(t,"analyst");if(!_.configured)d(_.error??"AI is not configured.");else if(_.error)d(_.error);else{const E=_.content.text;p(typeof E=="string"?E:JSON.stringify(_.content,null,2)),await o.reload(!0)}}catch(_){d(_ instanceof _t?_.message:"The finding review failed.")}finally{c("")}}async function O(){c("fix"),d(null);try{const _=await De.ai.proposeRemediation(t);x(_.id),i({title:"Patch proposal is ready",description:"Review it before applying any change.",variant:"success"})}catch(_){d(_ instanceof _t?_.message:"A patch proposal could not be generated.")}finally{c("")}}function A(){if(!b)return;const _=[`# ${b.rule}`,"",`- Severity: ${b.severity}`,`- Category: ${b.module}`,`- Repository: ${b.repository_name}`,`- Location: ${b.file}:${b.line}`,`- Confidence: ${b.confidence??"unknown"}`,`- Status: ${b.status}`,"","## Finding",b.message??"","","## Remediation",b.suggestion??"No remediation guidance was recorded.","","## Evidence","```text",...b.evidence??[],"```"].join(`
|
|
417
|
+
`),E=URL.createObjectURL(new Blob([_],{type:"text/markdown;charset=utf-8"})),N=document.createElement("a");N.href=E,N.download=`finding-${b.id}.md`,N.click(),URL.revokeObjectURL(E)}return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:(b==null?void 0:b.rule)??`Finding #${t}`,description:b?`${b.repository_name} · ${b.file}:${b.line}`:"Finding details and source evidence.",actions:u.jsxs(u.Fragment,{children:[u.jsx(me,{asChild:!0,size:"sm",variant:"outline",children:u.jsxs(Ge,{to:"/findings",children:[u.jsx(QO,{}),"Findings"]})}),(b==null?void 0:b.status)==="open"?u.jsxs(me,{size:"sm",variant:"outline",disabled:s!=="",onClick:()=>void w("reviewed"),children:[u.jsx(M1,{}),"Mark reviewed"]}):(b==null?void 0:b.status)==="reviewed"?u.jsx(me,{size:"sm",variant:"outline",disabled:s!=="",onClick:()=>void w("open"),children:"Reopen"}):null,u.jsxs(me,{size:"sm",variant:"outline",onClick:A,disabled:!b,children:[u.jsx(KB,{}),"Export"]})]})}),u.jsx(Et,{loading:o.loading,error:o.error,onRetry:()=>void o.reload(),loadingRows:4,children:b?u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(Xi,{severity:b.severity}),u.jsx(Xt,{variant:"muted",children:qe(b.module)}),u.jsx(ph,{status:b.status}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Confidence: ",qe(b.confidence??"unknown")]})]}),f?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Action could not be completed"}),u.jsx(zt,{children:f})]}):null,u.jsxs("div",{className:"grid gap-4 lg:grid-cols-[minmax(0,2fr)_minmax(280px,1fr)]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Finding"}),u.jsxs(Ue,{children:["Reported by ",qe(b.module)," in scan #",b.scan_id,"."]})]}),u.jsxs(Ae,{className:"space-y-4",children:[u.jsx("p",{className:"text-sm leading-relaxed",children:b.message||"No description was recorded."}),u.jsxs("div",{className:"rounded-md border bg-muted/30 p-3",children:[u.jsx("p",{className:"mb-1 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Suggested remediation"}),u.jsx("p",{className:"text-sm",children:b.suggestion||"No remediation advice was recorded."})]})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Source evidence"}),u.jsx(Ue,{children:"Redacted lines from the current repository working tree. This view is not a syntax-highlighting editor."})]}),u.jsx(Ae,{children:b.evidence.length?u.jsx("pre",{className:"max-h-[520px] overflow-auto rounded-md border bg-muted/40 p-4 font-mono text-xs leading-6",children:u.jsx("code",{children:b.evidence.join(`
|
|
418
|
+
`)})}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"Source is unavailable or the referenced file no longer exists."})})]}),m?u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsxs(ze,{className:"flex items-center gap-2",children:[u.jsx(JO,{className:"h-4 w-4"}),"AI analysis"]}),u.jsx(Ue,{children:"Advisory model output. It does not change severity or the release gate."})]}),u.jsx(Ae,{children:u.jsx(hh,{text:m})})]}):(C=b.latest_ai_review)!=null&&C.content?u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Latest AI review"}),u.jsx(Ue,{children:"Stored advisory output for this finding."})]}),u.jsx(Ae,{children:u.jsx(hh,{text:String(b.latest_ai_review.content.text??"")})})]}):null,u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Related findings"}),u.jsx(Ue,{children:"Other findings in this file from the latest completed scan."})]}),u.jsx(Ae,{children:b.related.length?u.jsx("ul",{className:"space-y-2",children:b.related.map((_,E)=>u.jsxs("li",{className:"flex flex-wrap items-center gap-2 rounded-md border p-2 text-sm",children:[u.jsx(Xi,{severity:String(_.severity??"info")}),u.jsx(Ge,{to:`/findings/${_.id}`,className:"font-medium hover:text-primary",children:String(_.rule)}),u.jsxs("span",{className:"font-mono text-xs text-muted-foreground",children:[b.file,":",String(_.line??"—")]})]},String(_.id??E)))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No related findings were recorded."})})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Actions"}),u.jsx(Ue,{children:"AI assistance is optional and never authoritative."})]}),u.jsxs(Ae,{className:"space-y-2",children:[u.jsxs(me,{className:"w-full",variant:"outline",disabled:s!=="",onClick:()=>void y(),children:[u.jsx(JO,{}),s==="assistant"?"Asking…":"Ask AI"]}),u.jsxs(me,{className:"w-full",variant:"outline",disabled:s!=="",onClick:()=>void P(),children:[u.jsx(Hu,{}),s==="review"?"Analyzing…":"Explain vulnerability"]}),u.jsxs(me,{className:"w-full",disabled:s!=="",onClick:()=>void O(),children:[u.jsx(W0,{}),s==="fix"?"Generating…":"Generate fix"]}),v!==null?u.jsxs(me,{className:"w-full",variant:"secondary",onClick:()=>n("/remediations"),children:[u.jsx(aM,{}),"View patch proposal #",v]}):null,u.jsx("p",{className:"pt-2 text-xs text-muted-foreground",children:"A reviewed or dismissed finding is not technically fixed. The release gate remains controlled by a fresh engine scan."})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Detection history"}),u.jsx(Ue,{children:"Scans where this finding fingerprint was recorded."})]}),u.jsx(Ae,{children:b.history.length?u.jsx("ol",{className:"space-y-3",children:b.history.map((_,E)=>u.jsxs("li",{className:"flex items-start justify-between gap-2 border-l pl-3",children:[u.jsxs("div",{children:[u.jsxs(Ge,{to:`/scans/${_.scan_id}`,className:"text-sm font-medium hover:text-primary",children:["Scan #",String(_.scan_id)]}),u.jsx("p",{className:"text-xs text-muted-foreground",children:yn(String(_.completed_at??_.created_at??""))})]}),u.jsx(ph,{status:String(_.status??"open")})]},`${_.scan_id}-${E}`))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No prior detection records."})})]})]})]})]}):null})]})}var a7=Object.defineProperty,s7=(e,t)=>a7(e,"name",{value:t,configurable:!0}),k$=S.forwardRef(s7(function(t,r){return u.jsx(Ke.label,{...t,ref:r,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=t.onMouseDown)==null||o.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}})},"Label"));const Dt=S.forwardRef(({className:e,...t},r)=>u.jsx(k$,{ref:r,className:fe("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...t}));Dt.displayName=k$.displayName;const Nd=10,jg=["critical","high","medium","low","info"],VC={critical:{border:"border-severity-critical",text:"text-severity-critical",fill:"bg-severity-critical",surface:"bg-severity-critical/10"},high:{border:"border-severity-high",text:"text-severity-high",fill:"bg-severity-high",surface:"bg-severity-high/10"},medium:{border:"border-severity-medium",text:"text-severity-medium",fill:"bg-severity-medium",surface:"bg-severity-medium/10"},low:{border:"border-severity-low",text:"text-severity-low",fill:"bg-severity-low",surface:"bg-severity-low/10"},info:{border:"border-severity-info",text:"text-severity-info",fill:"bg-severity-info",surface:"bg-severity-info/10"}};function l7(){var $;const{activeRepositoryId:e,repositories:t}=Rr(),[r,n]=rM(),[i,o]=S.useState("active"),[s,c]=S.useState("all"),[f,d]=S.useState("open"),[m,p]=S.useState(""),[v,x]=S.useState(Nd),b=Number(r.get("scan_id")),w=Number.isSafeInteger(b)&&b>0?b:void 0,y=r.get("priority"),P=jg.find(L=>L===y)??null,O=T$(m),A=w!==void 0||i==="all"?void 0:i==="active"?e??void 0:Number(i);function C(L){const U=new URLSearchParams(r);P===L?U.delete("priority"):U.set("priority",L),n(U,{replace:!0})}function _(){const L=new URLSearchParams(r);L.delete("scan_id"),n(L,{replace:!0})}const E=wt(async()=>{const L=[];let H=0,B=0;do{const X=await De.findings.list({scan_id:w,repository_id:A,module:s==="all"?void 0:[s],status:f==="all"?void 0:[f],search:O||void 0,limit:200,offset:H});if(L.push(...X.items),B=X.total,!X.items.length)break;H+=X.items.length}while(H<B);return L},[w,A,s,f,O]);S.useEffect(()=>{if(w===void 0||P||E.loading||E.error||!E.data)return;const L=jg.find(H=>{var B;return(B=E.data)==null?void 0:B.some(X=>X.severity===H)});if(!L)return;const U=new URLSearchParams(r);U.set("priority",L),n(U,{replace:!0})},[w,P,E.loading,E.error,E.data,r,n]),S.useEffect(()=>x(Nd),[w,A,P,s,f,O]);const N=S.useMemo(()=>E.data??[],[E.data]),R=S.useMemo(()=>Rp(N),[N]),M=S.useMemo(()=>jg.map(L=>{const U=R.filter(H=>H.representative.severity===L);return{priority:L,findings:N.filter(H=>H.severity===L).length,issues:U.length}}),[N,R]),F=P?R.filter(L=>L.representative.severity===P):[],I=F.slice(0,v);return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Findings",description:"Choose a severity to review its highest-priority unique issues. Repeated findings are grouped with every affected location."}),w!==void 0?u.jsx(Ce,{className:"border-primary/25 bg-primary/[0.03]",children:u.jsxs(Ae,{className:"flex flex-wrap items-center justify-between gap-3 p-4",children:[u.jsxs("div",{children:[u.jsxs("p",{className:"font-semibold",children:["Scan #",be(w)," findings"]}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Showing findings from this scan only. Issues remain grouped by repeated rule and message."})]}),u.jsx(me,{size:"sm",variant:"outline",onClick:_,children:"Show latest findings"})]})}):null,u.jsx(Ce,{children:u.jsxs(Ae,{className:"grid gap-4 p-4 sm:grid-cols-2 xl:grid-cols-5",children:[u.jsxs("div",{className:"space-y-1.5 xl:col-span-2",children:[u.jsx(Dt,{htmlFor:"finding-search",children:"Search"}),u.jsxs("div",{className:"relative",children:[u.jsx(lz,{className:"absolute left-3 top-2.5 h-4 w-4 text-muted-foreground"}),u.jsx(xn,{id:"finding-search",className:"pl-9",value:m,onChange:L=>p(L.target.value),placeholder:"Rule, file, or description"})]})]}),w===void 0?u.jsx(Pg,{id:"finding-repository",label:"Repository",value:i,onChange:o,options:[{value:"active",label:"Top bar selection"},{value:"all",label:"All repositories"},...t.map(L=>({value:String(L.id),label:L.name}))]}):null,u.jsx(Pg,{id:"finding-module",label:"Category",value:s,onChange:c,options:[{value:"all",label:"All categories"},...["security","quality","dependencies","database","infrastructure","compliance","performance"].map(L=>({value:L,label:qe(L)}))]}),u.jsx(Pg,{id:"finding-status",label:"Status",value:f,onChange:d,options:["open","reviewed","unverified","dismissed","all"].map(L=>({value:L,label:L==="all"?"All statuses":qe(L)}))})]})}),u.jsx(Et,{loading:E.loading,error:E.error,onRetry:()=>void E.reload(),loadingRows:4,children:N.length?u.jsxs("div",{className:"space-y-5",children:[u.jsx("div",{className:"grid gap-3 sm:grid-cols-2 xl:grid-cols-5",children:M.map(({priority:L,findings:U,issues:H})=>{const B=VC[L],X=P===L,W=Math.max(...M.map(V=>V.findings),1),q=`${Math.max(U?3:0,U/W*100)}%`;return u.jsxs("button",{type:"button","aria-pressed":X,disabled:!U,onClick:()=>C(L),className:fe("group relative overflow-hidden rounded-lg border bg-card p-4 text-left shadow-sm transition hover:-translate-y-0.5 hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-45 disabled:hover:translate-y-0",X&&`${B.border} ${B.surface} ring-1 ring-inset`),children:[u.jsx("span",{className:fe("absolute inset-x-0 top-0 h-1",B.fill)}),u.jsxs("div",{className:"flex items-start justify-between gap-3",children:[u.jsxs("div",{children:[u.jsx("p",{className:fe("text-sm font-semibold",B.text),children:qe(L)}),u.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[be(H)," unique issue",H===1?"":"s"]})]}),u.jsx("span",{className:"text-2xl font-bold tabular-nums",children:be(U)})]}),u.jsx("div",{className:"mt-4 h-1.5 overflow-hidden rounded-full bg-muted",children:u.jsx("span",{className:fe("block h-full rounded-full transition-all",B.fill),style:{width:q}})}),u.jsx("p",{className:"mt-2 text-[11px] text-muted-foreground",children:X?"Click to close":"Click to review"})]},L)})}),P?F.length?u.jsxs("section",{className:"space-y-3","aria-live":"polite",children:[u.jsx("div",{className:"flex flex-wrap items-end justify-between gap-2",children:u.jsxs("div",{children:[u.jsxs("h2",{className:"text-lg font-semibold",children:[qe(P)," issues"]}),u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",be(I.length)," of"," ",be(F.length)," unique issues from"," ",be((($=M.find(L=>L.priority===P))==null?void 0:$.findings)??0)," findings."]})]})}),u.jsx("div",{className:"space-y-3",children:I.map(L=>{const U=L.representative,H=new Set(L.occurrences.map(X=>`${X.repository_id}:${X.file}`)).size,B=VC[P];return u.jsxs("details",{className:fe("group rounded-lg border border-l-4 bg-card transition-colors open:bg-muted/10",B.border),children:[u.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-3 px-3 py-2.5 [&::-webkit-details-marker]:hidden",children:[u.jsx(Xi,{severity:U.severity}),u.jsxs("span",{className:"min-w-0 flex-1",children:[u.jsxs("span",{className:"block truncate text-sm font-semibold",children:[U.rule,u.jsx("span",{className:"ml-2 text-xs font-normal text-muted-foreground",children:qe(U.module)})]}),u.jsx("span",{className:"block line-clamp-1 text-xs text-muted-foreground",children:U.message||"No description was recorded."})]}),u.jsxs("span",{className:fe("shrink-0 rounded-md px-2 py-1 text-xs font-semibold tabular-nums",B.surface,B.text),title:`${be(L.occurrences.length)} occurrences in ${be(H)} files`,children:[be(L.occurrences.length),"×"]}),u.jsx(bp,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform group-open:rotate-180"})]}),u.jsxs("div",{className:"space-y-3 border-t px-3 py-3 sm:px-4",children:[u.jsx("p",{className:"whitespace-pre-wrap text-sm leading-relaxed",children:U.message||"No description was recorded."}),U.suggestion?u.jsxs("div",{className:"rounded-md bg-muted/60 px-3 py-2",children:[u.jsx("p",{className:"mb-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Suggested next step"}),u.jsx("p",{className:"text-sm",children:U.suggestion})]}):null,u.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[u.jsxs("p",{className:"text-xs text-muted-foreground",children:[be(L.occurrences.length)," occurrences across"," ",be(H)," files"]}),u.jsxs(Ge,{to:`/findings/${L.occurrences[0].id}`,className:"inline-flex items-center gap-1 text-xs font-medium text-primary hover:underline",children:["Open finding details ",u.jsx(GB,{className:"h-3 w-3"})]})]}),u.jsxs("details",{className:"border-t pt-2",children:[u.jsx("summary",{className:"cursor-pointer text-xs font-medium text-muted-foreground hover:text-foreground",children:"View affected locations"}),u.jsx("ul",{className:"mt-2 grid max-h-52 gap-1.5 overflow-auto sm:grid-cols-2",children:L.occurrences.map(X=>u.jsxs("li",{className:"flex min-w-0 flex-wrap items-center gap-2 rounded bg-background px-2.5 py-2 text-xs",children:[u.jsxs(Ge,{to:`/findings/${X.id}`,className:"min-w-0 flex-1 break-all font-mono text-primary hover:underline",children:[X.repository_name,": ",X.file,":",X.line]}),u.jsx(ph,{status:X.status})]},X.id))})]})]})]},L.key)})}),v<F.length?u.jsx("div",{className:"flex justify-center pt-1",children:u.jsxs(me,{variant:"outline",onClick:()=>x(L=>Math.min(L+Nd,F.length)),children:["Load ",Math.min(Nd,F.length-v)," more"," ",qe(P)," issues"]})}):null]}):u.jsx($t,{icon:zi,title:`No ${qe(P).toLowerCase()} issues match these filters`,description:"Try another priority, category, status, repository, or search term."}):u.jsx(Ce,{children:u.jsxs(Ae,{className:"p-6 text-center",children:[u.jsx("p",{className:"font-medium",children:"Choose a priority to review its issues"}),u.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Each selection starts with the 10 most repeated unique issues. Load more in batches when you need the rest."})]})})]}):u.jsx($t,{icon:zi,title:"No findings match these filters",description:"Run a scan or adjust the category, status, search, or repository filters.",action:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/scans/new",children:"Start a scan"})})})})]})}function Pg({id:e,label:t,value:r,onChange:n,options:i}){return u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:e,children:t}),u.jsxs(_n,{value:r,onValueChange:n,children:[u.jsx(Zr,{id:e,children:u.jsx(jn,{})}),u.jsx(Jr,{children:i.map(o=>u.jsx(Pr,{value:o.value,children:o.label},o.value))})]})]})}var c7=Object.defineProperty,R$=(e,t)=>c7(e,"name",{value:t,configurable:!0}),wS={Horizontal:"horizontal",Vertical:"vertical"},GC=wS.Horizontal,u7=Object.values(wS),M$=S.forwardRef(R$(function(t,r){const{decorative:n,orientation:i=GC,...o}=t,s=I$(i)?i:GC,c=s===wS.Vertical?s:void 0,f=n?{role:"none"}:{"aria-orientation":c,role:"separator"};return u.jsx(Ke.div,{"data-orientation":s,...f,...o,ref:r})},"Separator"));function I$(e){return u7.includes(e)}R$(I$,"isValidOrientation");const $$=S.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...n},i)=>u.jsx(M$,{ref:i,decorative:r,orientation:t,className:fe("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));$$.displayName=M$.displayName;var f7=Object.defineProperty,Ho=(e,t)=>f7(e,"name",{value:t,configurable:!0}),SS="Switch",[d7,rle]=zn(SS),[h7,_S]=d7(SS);function D$(e){const{__scopeSwitch:t,checked:r,children:n,defaultChecked:i,disabled:o,form:s,name:c,onCheckedChange:f,required:d,value:m="on",internal_do_not_use_render:p}=e,[v,x]=qo({prop:r,defaultProp:i??!1,onChange:f,caller:SS}),[b,w]=S.useState(null),[y,P]=S.useState(null),[O,A]=S.useState(null),C=b?!!s||!!b.closest("form"):!0,_={checked:v,setChecked:x,disabled:o,control:b,setControl:w,name:c,form:s,value:m,userClick:O,onUserClick:A,required:d,defaultChecked:i,isFormControl:C,bubbleInput:y,setBubbleInput:P};return u.jsx(h7,{scope:t,..._,children:F$(p)?p(_):n})}Ho(D$,"SwitchProvider");var p7="SwitchTrigger",m7=S.forwardRef(Ho(function({__scopeSwitch:t,onClick:r,...n},i){const{control:o,form:s,value:c,disabled:f,checked:d,required:m,setControl:p,setChecked:v,onUserClick:x,isFormControl:b,bubbleInput:w}=_S(p7,t),y=tt(i,p),P=S.useRef(d);return S.useEffect(()=>{const O=s?o==null?void 0:o.ownerDocument.getElementById(s):o==null?void 0:o.form;if(O instanceof HTMLFormElement){const A=Ho(()=>v(P.current),"reset");return O.addEventListener("reset",A),()=>O.removeEventListener("reset",A)}},[o,s,v]),u.jsx(Ke.button,{type:"button",role:"switch","aria-checked":d,"aria-required":m,"data-state":jS(d),"data-disabled":f?"":void 0,disabled:f,value:c,...n,ref:y,onClick:Le(r,O=>{const A=O.isPropagationStopped();x({requestedChecked:!d,hasConsumerStoppedPropagation:A}),v(C=>!C),w&&b&&(A||O.stopPropagation())})})},"SwitchTrigger")),L$=S.forwardRef(Ho(function(t,r){const{__scopeSwitch:n,name:i,checked:o,defaultChecked:s,required:c,disabled:f,value:d,onCheckedChange:m,form:p,...v}=t;return u.jsx(D$,{__scopeSwitch:n,checked:o,defaultChecked:s,disabled:f,required:c,onCheckedChange:m,name:i,form:p,value:d,internal_do_not_use_render:({isFormControl:x})=>u.jsxs(u.Fragment,{children:[u.jsx(m7,{...v,ref:r,__scopeSwitch:n}),x&&u.jsx(x7,{__scopeSwitch:n})]})})},"Switch")),v7="SwitchThumb",g7=S.forwardRef(Ho(function(t,r){const{__scopeSwitch:n,...i}=t,o=_S(v7,n);return u.jsx(Ke.span,{"data-state":jS(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:r})},"SwitchThumb")),y7="SwitchBubbleInput",x7=S.forwardRef(Ho(function({__scopeSwitch:t,onClick:r,...n},i){const{control:o,userClick:s,checked:c,defaultChecked:f,required:d,disabled:m,name:p,value:v,form:x,bubbleInput:b,setBubbleInput:w}=_S(y7,t),y=tt(i,w),P=oS(o),O=S.useRef(!1),A=S.useRef(c),C=S.useRef(s),_=S.useRef(null);S.useEffect(()=>{const N=b;if(!N)return;const R=window.HTMLInputElement.prototype,F=Object.getOwnPropertyDescriptor(R,"checked").set;if(!F)return;const I=A.current!==c;A.current=c;const $=s!==null&&s!==C.current;if(C.current=s,$)_.current=I?null:s,I&&F.call(N,c),N.dispatchEvent(new Event("click",{bubbles:!s.hasConsumerStoppedPropagation}));else if(I){const L=_.current;_.current=null;const U=(L==null?void 0:L.requestedChecked)===c;O.current=!0,F.call(N,c),N.dispatchEvent(new Event("click",{bubbles:!(U&&L.hasConsumerStoppedPropagation)})),O.current=!1}},[b,c,s]);const E=S.useRef(c);return u.jsx(Ke.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??E.current,required:d,disabled:m,name:p,value:v,form:x,...n,tabIndex:-1,ref:y,onClick:Le(r,N=>{O.current&&N.stopPropagation()}),style:{...n.style,...P,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function F$(e){return typeof e=="function"}Ho(F$,"isFunction");function jS(e){return e?"checked":"unchecked"}Ho(jS,"getState");const Ju=S.forwardRef(({className:e,...t},r)=>u.jsx(L$,{className:fe("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:u.jsx(g7,{className:fe("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));Ju.displayName=L$.displayName;function Rc(e){const t=e.trim();if(!t)return null;const r=Number(t);return Number.isFinite(r)?r:null}function b7(){var Ee,oe,ae,xe;const e=Ko(),{toast:t}=ro(),{repositories:r,activeRepositoryId:n}=Rr(),i=wt(()=>De.system.profiles(),[]),o=wt(()=>De.system.scanSettings(),[]),[s,c]=S.useState(()=>n!==null?String(n):""),[f,d]=S.useState(""),[m,p]=S.useState(!1),[v,x]=S.useState(!1),[b,w]=S.useState(!1),[y,P]=S.useState(!1),[O,A]=S.useState(""),[C,_]=S.useState(""),[E,N]=S.useState(""),[R,M]=S.useState(""),[F,I]=S.useState(""),[$,L]=S.useState(""),[U,H]=S.useState(!1),[B,X]=S.useState(!1),[W,q]=S.useState(!1),V=S.useRef(!1);S.useEffect(()=>{const Z=o.data;!Z||V.current||(V.current=!0,d(Z.default_scan_profile),p(Z.osv_enabled),A(String(Z.test_timeout)),_(Z.test_image),N(String(Z.max_memory_mb)),M(String(Z.max_cpu_seconds)),I(String(Z.max_snapshot_mb)),L(String(Z.max_write_mb)))},[o.data]);const D=S.useMemo(()=>(i.data??[]).find(Z=>Z.key===f)??null,[i.data,f]),Y=S.useMemo(()=>r.find(Z=>String(Z.id)===s)??null,[r,s]),ie=((Ee=o.data)==null?void 0:Ee.allow_test_execution)??!1,ne=S.useMemo(()=>{const Z={osv:m,ai_review:v,static_only:b};y&&(Z.explicit_permission=!0);const ve=o.data;if(ve&&!b){if(O.trim()!==String(ve.test_timeout)){const de=Rc(O);de!==null&&(Z.test_timeout=de)}if(C.trim()!==ve.test_image&&(Z.test_image=C.trim()||null),E.trim()!==String(ve.max_memory_mb)){const de=Rc(E);de!==null&&(Z.max_memory_mb=de)}if(R.trim()!==String(ve.max_cpu_seconds)){const de=Rc(R);de!==null&&(Z.max_cpu_seconds=de)}if(F.trim()!==String(ve.max_snapshot_mb)){const de=Rc(F);de!==null&&(Z.max_snapshot_mb=de)}if($.trim()!==String(ve.max_write_mb)){const de=Rc($);de!==null&&(Z.max_write_mb=de)}}return Z},[m,v,b,y,O,C,E,R,F,$,o.data]);function pe(Z){w(Z),Z&&(P(!1),A(""),_(""),N(""),M(""),I(""),L(""))}async function ge(){if(!s){t({title:"Select a repository",variant:"error"});return}if(!f){t({title:"Select a scan profile",variant:"error"});return}q(!0);try{const Z=await De.scans.create({repository_id:Number(s),profile:f,options:ne});t({title:"Scan queued",description:`Scan #${Z.id} was accepted by the engine.`,variant:"success"}),e(`/scans/${Z.id}`)}catch(Z){const ve=Z instanceof _t?Z.message:"The scan could not be started.";t({title:"Scan could not be started",description:ve,variant:"error"})}finally{q(!1)}}if(r.length===0)return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"New scan",description:"Choose a repository and a profile, then start a scan."}),u.jsx($t,{icon:XB,title:"No repositories yet",description:"Register a repository before starting a scan. Tests only ever run inside an isolated sandbox, and only when you allow it.",action:u.jsx(me,{asChild:!0,size:"sm",variant:"outline",children:u.jsx(Ge,{to:"/repositories",children:"Add a repository"})})})]});const ke=y&&!b;return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"New scan",description:"Choose a repository and a profile, then start a scan."}),u.jsx(Et,{loading:i.loading||o.loading,error:i.error??o.error,onRetry:()=>{i.reload(),o.reload()},loadingRows:2,children:u.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[u.jsxs("div",{className:"space-y-6 lg:col-span-2",children:[u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Target"}),u.jsx(Ue,{children:"The repository to scan and the profile that decides what actually runs."})]}),u.jsxs(Ae,{className:"space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Dt,{htmlFor:"repository",children:"Repository"}),u.jsxs(_n,{value:s||void 0,onValueChange:c,children:[u.jsx(Zr,{id:"repository",children:u.jsx(jn,{placeholder:"Select a repository"})}),u.jsx(Jr,{children:r.map(Z=>u.jsx(Pr,{value:String(Z.id),children:Z.name},Z.id))})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Dt,{htmlFor:"profile",children:"Profile"}),u.jsxs(_n,{value:f||void 0,onValueChange:d,children:[u.jsx(Zr,{id:"profile",children:u.jsx(jn,{placeholder:"Select a profile"})}),u.jsx(Jr,{children:(i.data??[]).map(Z=>u.jsx(Pr,{value:Z.key,children:Z.name},Z.key))})]})]}),D?u.jsxs("div",{className:"space-y-3 rounded-md border bg-muted/30 p-4",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:D.description}),D.modules.length?u.jsx("div",{className:"flex flex-wrap gap-1.5",children:D.modules.map(Z=>u.jsx(Xt,{variant:"muted",children:Z},Z))}):null,u.jsxs("dl",{className:"grid grid-cols-2 gap-2 text-sm sm:grid-cols-4",children:[u.jsx(kd,{label:"Minimum score",value:si(D.minimum_score)}),u.jsx(kd,{label:"Runs tests",value:D.run_tests?"Yes":"No"}),u.jsx(kd,{label:"OSV",value:D.osv?"Yes":"No"}),u.jsx(kd,{label:"AI review",value:D.ai_review?"Yes":"No"})]}),D.notes.length?u.jsx("ul",{className:"list-disc space-y-1 pl-5 text-sm text-muted-foreground",children:D.notes.map((Z,ve)=>u.jsx("li",{children:Z},ve))}):null]}):null]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Options"}),u.jsx(Ue,{children:"These map directly onto the engine's scan options."})]}),u.jsxs(Ae,{className:"space-y-4",children:[u.jsx(Og,{id:"osv",label:"Check dependencies against OSV advisories",checked:m,onChange:p}),u.jsx(Og,{id:"ai-review",label:"Request AI review of critical and high findings",description:"Requires a configured AI provider.",checked:v,onChange:x}),u.jsx(Og,{id:"static-only",label:"Static analysis only",description:"Skips the isolated test suite and clears its sandbox controls.",checked:b,onChange:pe}),u.jsx($$,{}),u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center justify-between gap-4",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx(Dt,{htmlFor:"explicit-permission",children:"Allow the isolated test suite to run inside Docker"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Off by default. The test suite never runs unless you grant explicit permission."})]}),u.jsx(Ju,{id:"explicit-permission",checked:y,disabled:b||!ie,onCheckedChange:Z=>{Z?H(!0):P(!1)}})]}),ie?null:u.jsx("p",{className:"text-xs text-muted-foreground",children:"Test execution is disabled by the operator in scan settings."})]}),u.jsxs(Qt,{variant:"warning",children:[u.jsx(mr,{children:"Tests run in an isolated Docker sandbox"}),u.jsx(zt,{children:"Enabling test execution runs the repository's test suite inside a Docker sandbox with memory, CPU, snapshot and write limits. Docker must be available on the host for this to succeed."})]})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Advanced limits"}),u.jsx(Ue,{children:"Sandbox limits and overrides. Leave a field untouched to use the operator default."})]}),u.jsx(Ae,{children:u.jsxs("details",{className:"group",children:[u.jsx("summary",{className:"cursor-pointer text-sm font-medium text-muted-foreground hover:text-foreground",children:"Show advanced options"}),u.jsxs("div",{className:"mt-4 grid gap-4 sm:grid-cols-2",children:[u.jsx(As,{id:"test-timeout",label:"Test timeout (seconds)",type:"number",value:O,onChange:A,disabled:b}),u.jsx(As,{id:"test-image",label:"Test image",type:"text",value:C,onChange:_,disabled:b}),u.jsx(As,{id:"max-memory",label:"Max memory (MB)",type:"number",value:E,onChange:N,disabled:b}),u.jsx(As,{id:"max-cpu",label:"Max CPU (seconds)",type:"number",value:R,onChange:M,disabled:b}),u.jsx(As,{id:"max-snapshot",label:"Max snapshot (MB)",type:"number",value:F,onChange:I,disabled:b}),u.jsx(As,{id:"max-write",label:"Max write (MB)",type:"number",value:$,onChange:L,disabled:b})]}),b?u.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:"These controls are cleared and disabled while static analysis only is enabled."}):null]})})]})]}),u.jsxs("div",{className:"space-y-4 lg:col-span-1",children:[u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Operator defaults"}),u.jsx(Ue,{children:"Values configured in scan settings."})]}),u.jsxs(Ae,{className:"space-y-2 text-sm",children:[u.jsx(Er,{label:"Default profile",value:((oe=o.data)==null?void 0:oe.default_scan_profile)??"—"}),u.jsx(Er,{label:"Allow test execution",value:ie?"Yes":"No"}),u.jsx(Er,{label:"Test image",value:((ae=o.data)==null?void 0:ae.test_image)??"—"}),u.jsx(Er,{label:"Test timeout",value:o.data?`${o.data.test_timeout} s`:"—"}),u.jsx(Er,{label:"Max memory",value:o.data?`${o.data.max_memory_mb} MB`:"—"}),u.jsx(Er,{label:"Max CPU",value:o.data?`${o.data.max_cpu_seconds} s`:"—"}),u.jsx(Er,{label:"Max snapshot",value:o.data?`${o.data.max_snapshot_mb} MB`:"—"}),u.jsx(Er,{label:"Max write",value:o.data?`${o.data.max_write_mb} MB`:"—"}),u.jsx(Er,{label:"OSV advisories",value:(xe=o.data)!=null&&xe.osv_enabled?"Enabled":"Disabled"})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Summary"}),u.jsx(Ue,{children:"What this scan will do."})]}),u.jsxs(Ae,{className:"space-y-3 text-sm",children:[u.jsx(Er,{label:"Repository",value:(Y==null?void 0:Y.name)??"Not selected"}),u.jsx(Er,{label:"Profile",value:(D==null?void 0:D.name)??(f||"Not selected")}),u.jsx(Er,{label:"Static analysis",value:"Enabled"}),u.jsx(Er,{label:"OSV advisories",value:m?"Enabled":"Disabled"}),u.jsx(Er,{label:"AI review",value:v?"Requested":"Not requested"}),u.jsx(Er,{label:"Test suite",value:ke?"Runs in a Docker sandbox":"Does not run"}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Static analysis always runs."," ",ke?"The isolated test suite will run in a Docker sandbox.":"No tests will be executed."," ",m?"Dependency advisories are checked via OSV.":null]}),u.jsx(me,{className:"w-full",disabled:W||!s||!f,onClick:()=>void ge(),children:W?"Starting...":"Start scan"})]})]})]})]})}),u.jsx(Hi,{open:U,onOpenChange:Z=>{H(Z),Z||X(!1)},children:u.jsxs(ai,{children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Run the test suite in a sandbox?"}),u.jsx(Gi,{children:"Tests execute inside an isolated Docker sandbox. Only enable this when you intend to run the repository's test suite."})]}),u.jsxs("label",{className:"flex items-start gap-2 text-sm",children:[u.jsx("input",{type:"checkbox",className:"mt-0.5 h-4 w-4 rounded border-input",checked:B,onChange:Z=>X(Z.target.checked)}),u.jsx("span",{children:"I understand tests will execute in an isolated sandbox."})]}),u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>H(!1),children:"Cancel"}),u.jsx(me,{disabled:!B,onClick:()=>{P(!0),H(!1),X(!1)},children:"Enable test execution"})]})]})})]})}function kd({label:e,value:t}){return u.jsxs("div",{children:[u.jsx("dt",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("dd",{className:"font-medium tabular-nums",children:t})]})}function Er({label:e,value:t}){return u.jsxs("div",{className:"flex items-center justify-between gap-3",children:[u.jsx("span",{className:"text-muted-foreground",children:e}),u.jsx("span",{className:"text-right font-medium",children:t})]})}function Og({id:e,label:t,description:r,checked:n,onChange:i}){return u.jsxs("div",{className:"flex items-center justify-between gap-4",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx(Dt,{htmlFor:e,children:t}),r?u.jsx("p",{className:"text-xs text-muted-foreground",children:r}):null]}),u.jsx(Ju,{id:e,checked:n,onCheckedChange:i})]})}function As({id:e,label:t,value:r,onChange:n,type:i="number",disabled:o}){return u.jsxs("div",{className:"space-y-2",children:[u.jsx(Dt,{htmlFor:e,children:t}),u.jsx(xn,{id:e,type:i,value:r,disabled:o,onChange:s=>n(s.target.value)})]})}function w7(){return u.jsx($t,{icon:oM,title:"That page does not exist",description:"The link may be outdated. Use the navigation to find what you need.",action:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/",children:"Back to overview"})})})}var Cg,KC;function qr(){if(KC)return Cg;KC=1;var e=Array.isArray;return Cg=e,Cg}var Ag,XC;function B$(){if(XC)return Ag;XC=1;var e=typeof gd=="object"&&gd&&gd.Object===Object&&gd;return Ag=e,Ag}var Eg,YC;function mi(){if(YC)return Eg;YC=1;var e=B$(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Eg=r,Eg}var Tg,QC;function ef(){if(QC)return Tg;QC=1;var e=mi(),t=e.Symbol;return Tg=t,Tg}var Ng,ZC;function S7(){if(ZC)return Ng;ZC=1;var e=ef(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function o(s){var c=r.call(s,i),f=s[i];try{s[i]=void 0;var d=!0}catch{}var m=n.call(s);return d&&(c?s[i]=f:delete s[i]),m}return Ng=o,Ng}var kg,JC;function _7(){if(JC)return kg;JC=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return kg=r,kg}var Rg,eA;function no(){if(eA)return Rg;eA=1;var e=ef(),t=S7(),r=_7(),n="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function s(c){return c==null?c===void 0?i:n:o&&o in Object(c)?t(c):r(c)}return Rg=s,Rg}var Mg,tA;function io(){if(tA)return Mg;tA=1;function e(t){return t!=null&&typeof t=="object"}return Mg=e,Mg}var Ig,rA;function Rl(){if(rA)return Ig;rA=1;var e=no(),t=io(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ig=n,Ig}var $g,nA;function PS(){if(nA)return $g;nA=1;var e=qr(),t=Rl(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(o,s){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:n.test(o)||!r.test(o)||s!=null&&o in Object(s)}return $g=i,$g}var Dg,iA;function Qo(){if(iA)return Dg;iA=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Dg=e,Dg}var Lg,oA;function OS(){if(oA)return Lg;oA=1;var e=no(),t=Qo(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",o="[object Proxy]";function s(c){if(!t(c))return!1;var f=e(c);return f==n||f==i||f==r||f==o}return Lg=s,Lg}var Fg,aA;function j7(){if(aA)return Fg;aA=1;var e=mi(),t=e["__core-js_shared__"];return Fg=t,Fg}var Bg,sA;function P7(){if(sA)return Bg;sA=1;var e=j7(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Bg=r,Bg}var zg,lA;function z$(){if(lA)return zg;lA=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return zg=r,zg}var qg,cA;function O7(){if(cA)return qg;cA=1;var e=OS(),t=P7(),r=Qo(),n=z$(),i=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(v){if(!r(v)||t(v))return!1;var x=e(v)?m:o;return x.test(n(v))}return qg=p,qg}var Ug,uA;function C7(){if(uA)return Ug;uA=1;function e(t,r){return t==null?void 0:t[r]}return Ug=e,Ug}var Wg,fA;function Ha(){if(fA)return Wg;fA=1;var e=O7(),t=C7();function r(n,i){var o=t(n,i);return e(o)?o:void 0}return Wg=r,Wg}var Hg,dA;function Mp(){if(dA)return Hg;dA=1;var e=Ha(),t=e(Object,"create");return Hg=t,Hg}var Vg,hA;function A7(){if(hA)return Vg;hA=1;var e=Mp();function t(){this.__data__=e?e(null):{},this.size=0}return Vg=t,Vg}var Gg,pA;function E7(){if(pA)return Gg;pA=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Gg=e,Gg}var Kg,mA;function T7(){if(mA)return Kg;mA=1;var e=Mp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(o){var s=this.__data__;if(e){var c=s[o];return c===t?void 0:c}return n.call(s,o)?s[o]:void 0}return Kg=i,Kg}var Xg,vA;function N7(){if(vA)return Xg;vA=1;var e=Mp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var o=this.__data__;return e?o[i]!==void 0:r.call(o,i)}return Xg=n,Xg}var Yg,gA;function k7(){if(gA)return Yg;gA=1;var e=Mp(),t="__lodash_hash_undefined__";function r(n,i){var o=this.__data__;return this.size+=this.has(n)?0:1,o[n]=e&&i===void 0?t:i,this}return Yg=r,Yg}var Qg,yA;function R7(){if(yA)return Qg;yA=1;var e=A7(),t=E7(),r=T7(),n=N7(),i=k7();function o(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,Qg=o,Qg}var Zg,xA;function M7(){if(xA)return Zg;xA=1;function e(){this.__data__=[],this.size=0}return Zg=e,Zg}var Jg,bA;function CS(){if(bA)return Jg;bA=1;function e(t,r){return t===r||t!==t&&r!==r}return Jg=e,Jg}var ey,wA;function Ip(){if(wA)return ey;wA=1;var e=CS();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return ey=t,ey}var ty,SA;function I7(){if(SA)return ty;SA=1;var e=Ip(),t=Array.prototype,r=t.splice;function n(i){var o=this.__data__,s=e(o,i);if(s<0)return!1;var c=o.length-1;return s==c?o.pop():r.call(o,s,1),--this.size,!0}return ty=n,ty}var ry,_A;function $7(){if(_A)return ry;_A=1;var e=Ip();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ry=t,ry}var ny,jA;function D7(){if(jA)return ny;jA=1;var e=Ip();function t(r){return e(this.__data__,r)>-1}return ny=t,ny}var iy,PA;function L7(){if(PA)return iy;PA=1;var e=Ip();function t(r,n){var i=this.__data__,o=e(i,r);return o<0?(++this.size,i.push([r,n])):i[o][1]=n,this}return iy=t,iy}var oy,OA;function $p(){if(OA)return oy;OA=1;var e=M7(),t=I7(),r=$7(),n=D7(),i=L7();function o(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,oy=o,oy}var ay,CA;function AS(){if(CA)return ay;CA=1;var e=Ha(),t=mi(),r=e(t,"Map");return ay=r,ay}var sy,AA;function F7(){if(AA)return sy;AA=1;var e=R7(),t=$p(),r=AS();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return sy=n,sy}var ly,EA;function B7(){if(EA)return ly;EA=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return ly=e,ly}var cy,TA;function Dp(){if(TA)return cy;TA=1;var e=B7();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return cy=t,cy}var uy,NA;function z7(){if(NA)return uy;NA=1;var e=Dp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return uy=t,uy}var fy,kA;function q7(){if(kA)return fy;kA=1;var e=Dp();function t(r){return e(this,r).get(r)}return fy=t,fy}var dy,RA;function U7(){if(RA)return dy;RA=1;var e=Dp();function t(r){return e(this,r).has(r)}return dy=t,dy}var hy,MA;function W7(){if(MA)return hy;MA=1;var e=Dp();function t(r,n){var i=e(this,r),o=i.size;return i.set(r,n),this.size+=i.size==o?0:1,this}return hy=t,hy}var py,IA;function ES(){if(IA)return py;IA=1;var e=F7(),t=z7(),r=q7(),n=U7(),i=W7();function o(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=r,o.prototype.has=n,o.prototype.set=i,py=o,py}var my,$A;function q$(){if($A)return my;$A=1;var e=ES(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var o=function(){var s=arguments,c=i?i.apply(this,s):s[0],f=o.cache;if(f.has(c))return f.get(c);var d=n.apply(this,s);return o.cache=f.set(c,d)||f,d};return o.cache=new(r.Cache||e),o}return r.Cache=e,my=r,my}var vy,DA;function H7(){if(DA)return vy;DA=1;var e=q$(),t=500;function r(n){var i=e(n,function(s){return o.size===t&&o.clear(),s}),o=i.cache;return i}return vy=r,vy}var gy,LA;function V7(){if(LA)return gy;LA=1;var e=H7(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var o=[];return i.charCodeAt(0)===46&&o.push(""),i.replace(t,function(s,c,f,d){o.push(f?d.replace(r,"$1"):c||s)}),o});return gy=n,gy}var yy,FA;function TS(){if(FA)return yy;FA=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=Array(i);++n<i;)o[n]=r(t[n],n,t);return o}return yy=e,yy}var xy,BA;function G7(){if(BA)return xy;BA=1;var e=ef(),t=TS(),r=qr(),n=Rl(),i=e?e.prototype:void 0,o=i?i.toString:void 0;function s(c){if(typeof c=="string")return c;if(r(c))return t(c,s)+"";if(n(c))return o?o.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return xy=s,xy}var by,zA;function U$(){if(zA)return by;zA=1;var e=G7();function t(r){return r==null?"":e(r)}return by=t,by}var wy,qA;function W$(){if(qA)return wy;qA=1;var e=qr(),t=PS(),r=V7(),n=U$();function i(o,s){return e(o)?o:t(o,s)?[o]:r(n(o))}return wy=i,wy}var Sy,UA;function Lp(){if(UA)return Sy;UA=1;var e=Rl();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Sy=t,Sy}var _y,WA;function NS(){if(WA)return _y;WA=1;var e=W$(),t=Lp();function r(n,i){i=e(i,n);for(var o=0,s=i.length;n!=null&&o<s;)n=n[t(i[o++])];return o&&o==s?n:void 0}return _y=r,_y}var jy,HA;function H$(){if(HA)return jy;HA=1;var e=NS();function t(r,n,i){var o=r==null?void 0:e(r,n);return o===void 0?i:o}return jy=t,jy}var K7=H$();const wn=ft(K7);var Py,VA;function X7(){if(VA)return Py;VA=1;function e(t){return t==null}return Py=e,Py}var Y7=X7();const Ye=ft(Y7);var Oy,GA;function Q7(){if(GA)return Oy;GA=1;var e=no(),t=qr(),r=io(),n="[object String]";function i(o){return typeof o=="string"||!t(o)&&r(o)&&e(o)==n}return Oy=i,Oy}var Z7=Q7();const Ia=ft(Z7);var J7=OS();const We=ft(J7);var eH=Qo();const Ml=ft(eH);var Cy={exports:{}},at={};/**
|
|
419
|
+
* @license React
|
|
420
|
+
* react-is.production.min.js
|
|
421
|
+
*
|
|
422
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
423
|
+
*
|
|
424
|
+
* This source code is licensed under the MIT license found in the
|
|
425
|
+
* LICENSE file in the root directory of this source tree.
|
|
426
|
+
*/var KA;function tH(){if(KA)return at;KA=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function w(y){if(typeof y=="object"&&y!==null){var P=y.$$typeof;switch(P){case e:switch(y=y.type,y){case r:case i:case n:case d:case m:return y;default:switch(y=y&&y.$$typeof,y){case c:case s:case f:case v:case p:case o:return y;default:return P}}case t:return P}}}return at.ContextConsumer=s,at.ContextProvider=o,at.Element=e,at.ForwardRef=f,at.Fragment=r,at.Lazy=v,at.Memo=p,at.Portal=t,at.Profiler=i,at.StrictMode=n,at.Suspense=d,at.SuspenseList=m,at.isAsyncMode=function(){return!1},at.isConcurrentMode=function(){return!1},at.isContextConsumer=function(y){return w(y)===s},at.isContextProvider=function(y){return w(y)===o},at.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},at.isForwardRef=function(y){return w(y)===f},at.isFragment=function(y){return w(y)===r},at.isLazy=function(y){return w(y)===v},at.isMemo=function(y){return w(y)===p},at.isPortal=function(y){return w(y)===t},at.isProfiler=function(y){return w(y)===i},at.isStrictMode=function(y){return w(y)===n},at.isSuspense=function(y){return w(y)===d},at.isSuspenseList=function(y){return w(y)===m},at.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===d||y===m||y===x||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===p||y.$$typeof===o||y.$$typeof===s||y.$$typeof===f||y.$$typeof===b||y.getModuleId!==void 0)},at.typeOf=w,at}var XA;function rH(){return XA||(XA=1,Cy.exports=tH()),Cy.exports}var nH=rH(),Ay,YA;function V$(){if(YA)return Ay;YA=1;var e=no(),t=io(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Ay=n,Ay}var Ey,QA;function iH(){if(QA)return Ey;QA=1;var e=V$();function t(r){return e(r)&&r!=+r}return Ey=t,Ey}var oH=iH();const Il=ft(oH);var aH=V$();const sH=ft(aH);var Fn=function(t){return t===0?0:t>0?1:-1},_a=function(t){return Ia(t)&&t.indexOf("%")===t.length-1},he=function(t){return sH(t)&&!Il(t)},lH=function(t){return Ye(t)},Zt=function(t){return he(t)||Ia(t)},cH=0,$l=function(t){var r=++cH;return"".concat(t||"").concat(r)},$a=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!he(t)&&!Ia(t))return n;var o;if(_a(t)){var s=t.indexOf("%");o=r*parseFloat(t.slice(0,s))/100}else o=+t;return Il(o)&&(o=n),i&&o>r&&(o=r),o},No=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},uH=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},hr=function(t,r){return he(t)&&he(r)?function(n){return t+n*(r-t)}:function(){return r}};function mh(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):wn(n,t))===r})}var fH=function(t,r){return he(t)&&he(r)?t-r:Ia(t)&&Ia(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ws(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function uw(e){"@babel/helpers - typeof";return uw=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},uw(e)}var dH=["viewBox","children"],hH=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],ZA=["points","pathLength"],Ty={svg:dH,polygon:ZA,polyline:ZA},kS=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],vh=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(S.isValidElement(t)&&(n=t.props),!Ml(n))return null;var i={};return Object.keys(n).forEach(function(o){kS.includes(o)&&(i[o]=r||function(s){return n[o](n,s)})}),i},pH=function(t,r,n){return function(i){return t(r,n,i),null}},gh=function(t,r,n){if(!Ml(t)||uw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var s=t[o];kS.includes(o)&&typeof s=="function"&&(i||(i={}),i[o]=pH(s,r,n))}),i},mH=["children"],vH=["children"];function JA(e,t){if(e==null)return{};var r=gH(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fw(e){"@babel/helpers - typeof";return fw=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},fw(e)}var eE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Ii=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},tE=null,Ny=null,RS=function e(t){if(t===tE&&Array.isArray(Ny))return Ny;var r=[];return S.Children.forEach(t,function(n){Ye(n)||(nH.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ny=r,tE=t,r};function Sn(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ii(i)}):n=[Ii(t)],RS(e).forEach(function(i){var o=wn(i,"type.displayName")||wn(i,"type.name");n.indexOf(o)!==-1&&r.push(i)}),r}function Xr(e,t){var r=Sn(e,t);return r&&r[0]}var rE=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!he(n)||n<=0||!he(i)||i<=0)},yH=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],xH=function(t){return t&&t.type&&Ia(t.type)&&yH.indexOf(t.type)>=0},G$=function(t){return t&&fw(t)==="object"&&"clipDot"in t},bH=function(t,r,n,i){var o,s=(o=Ty==null?void 0:Ty[i])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!We(t)&&(i&&s.includes(r)||hH.includes(r))||n&&kS.includes(r)},Ve=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!Ml(i))return null;var o={};return Object.keys(i).forEach(function(s){var c;bH((c=i)===null||c===void 0?void 0:c[s],s,r,n)&&(o[s]=i[s])}),o},dw=function e(t,r){if(t===r)return!0;var n=S.Children.count(t);if(n!==S.Children.count(r))return!1;if(n===0)return!0;if(n===1)return nE(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=t[i],s=r[i];if(Array.isArray(o)||Array.isArray(s)){if(!e(o,s))return!1}else if(!nE(o,s))return!1}return!0},nE=function(t,r){if(Ye(t)&&Ye(r))return!0;if(!Ye(t)&&!Ye(r)){var n=t.props||{},i=n.children,o=JA(n,mH),s=r.props||{},c=s.children,f=JA(s,vH);return i&&c?Ws(o,f)&&dw(i,c):!i&&!c?Ws(o,f):!1}return!1},iE=function(t,r){var n=[],i={};return RS(t).forEach(function(o,s){if(xH(o))n.push(o);else if(o){var c=Ii(o.type),f=r[c]||{},d=f.handler,m=f.once;if(d&&(!m||!i[c])){var p=d(o,c,s);n.push(p),i[c]=!0}}}),n},wH=function(t){var r=t&&t.type;return r&&eE[r]?eE[r]:null},SH=function(t,r){return RS(r).indexOf(t)},_H=["children","width","height","viewBox","className","style","title","desc"];function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hw.apply(this,arguments)}function jH(e,t){if(e==null)return{};var r=PH(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pw(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,o=e.className,s=e.style,c=e.title,f=e.desc,d=jH(e,_H),m=i||{width:r,height:n,x:0,y:0},p=Je("recharts-surface",o);return K.createElement("svg",hw({},Ve(d,!0,"svg"),{className:p,width:r,height:n,style:s,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),K.createElement("title",null,c),K.createElement("desc",null,f),t)}var OH=["children","className"];function mw(){return mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mw.apply(this,arguments)}function CH(e,t){if(e==null)return{};var r=AH(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var pt=K.forwardRef(function(e,t){var r=e.children,n=e.className,i=CH(e,OH),o=Je("recharts-layer",n);return K.createElement("g",mw({className:o},Ve(i,!0),{ref:t}),r)}),$i=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o]},ky,oE;function EH(){if(oE)return ky;oE=1;function e(t,r,n){var i=-1,o=t.length;r<0&&(r=-r>o?0:o+r),n=n>o?o:n,n<0&&(n+=o),o=r>n?0:n-r>>>0,r>>>=0;for(var s=Array(o);++i<o;)s[i]=t[i+r];return s}return ky=e,ky}var Ry,aE;function TH(){if(aE)return Ry;aE=1;var e=EH();function t(r,n,i){var o=r.length;return i=i===void 0?o:i,!n&&i>=o?r:e(r,n,i)}return Ry=t,Ry}var My,sE;function K$(){if(sE)return My;sE=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",s="\\u200d",c=RegExp("["+s+e+i+o+"]");function f(d){return c.test(d)}return My=f,My}var Iy,lE;function NH(){if(lE)return Iy;lE=1;function e(t){return t.split("")}return Iy=e,Iy}var $y,cE;function kH(){if(cE)return $y;cE=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,o="\\ufe0e\\ufe0f",s="["+e+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",b=d+"?",w="["+o+"]?",y="(?:"+x+"(?:"+[m,p,v].join("|")+")"+w+b+")*",P=w+b+y,O="(?:"+[m+c+"?",c,p,v,s].join("|")+")",A=RegExp(f+"(?="+f+")|"+O+P,"g");function C(_){return _.match(A)||[]}return $y=C,$y}var Dy,uE;function RH(){if(uE)return Dy;uE=1;var e=NH(),t=K$(),r=kH();function n(i){return t(i)?r(i):e(i)}return Dy=n,Dy}var Ly,fE;function MH(){if(fE)return Ly;fE=1;var e=TH(),t=K$(),r=RH(),n=U$();function i(o){return function(s){s=n(s);var c=t(s)?r(s):void 0,f=c?c[0]:s.charAt(0),d=c?e(c,1).join(""):s.slice(1);return f[o]()+d}}return Ly=i,Ly}var Fy,dE;function IH(){if(dE)return Fy;dE=1;var e=MH(),t=e("toUpperCase");return Fy=t,Fy}var $H=IH();const Fp=ft($H),Hc=Math.PI,vw=2*Hc,xa=1e-6,DH=vw-xa;function X$(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function LH(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return X$;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}function Y$(e,t,r,n){return e===r&&t===n}function FH(e){const t=Math.floor(e);if(!(t<=15))return Y$;const r=10**t,n=function(i){return Math.round(i*r)};return function(i,o,s,c){return n(i)===n(s)&&n(o)===n(c)}}class BH{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?X$:LH(t),this._equal=t==null?Y$:FH(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,c=this._y1,f=n-t,d=i-r,m=s-t,p=c-r,v=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(v>xa)if(!(Math.abs(p*f-d*m)>xa)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let x=n-s,b=i-c,w=f*f+d*d,y=x*x+b*b,P=Math.sqrt(w),O=Math.sqrt(v),A=o*Math.tan((Hc-Math.acos((w+v-y)/(2*P*O)))/2),C=A/O,_=A/P;Math.abs(C-1)>xa&&this._append`L${t+C*m},${r+C*p}`,this._append`A${o},${o},0,0,${+(p*x>m*b)},${this._x1=t+_*f},${this._y1=r+_*d}`}}arc(t,r,n,i,o,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let c=n*Math.cos(i),f=n*Math.sin(i),d=t+c,m=r+f,p=1^s,v=s?i-o:o-i;if(this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>xa||Math.abs(this._y1-m)>xa)&&this._append`L${d},${m}`,!!n){if(v<0&&(v=v%vw+vw),v>DH)this._append`A${n},${n},0,1,${p},${t-c},${r-f}A${n},${n},0,1,${p},${this._x1=d},${this._y1=m}`;else if(v>xa){const x=t+n*Math.cos(o),b=r+n*Math.sin(o);if(v>=Hc&&this._equal(d,m,x,b)){v/=2;let w=i+v;this._append`A${n},${n},0,${+(v>=Hc)},${p},${t+n*Math.cos(w)},${r+n*Math.sin(w)}`}this._append`A${n},${n},0,${+(v>=Hc)},${p},${this._x1=x},${this._y1=b}`}}}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ht(e){return function(){return e}}const Q$=Math.cos,yh=Math.sin,qn=Math.sqrt,hE=1e-12,xh=Math.PI,Bp=2*xh;function MS(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new BH(t)}function IS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Z$(e){this._context=e}Z$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function zp(e){return new Z$(e)}function J$(e){return e[0]}function eD(e){return e[1]}function tD(e,t){var r=ht(!0),n=null,i=zp,o=null,s=MS(c);e=typeof e=="function"?e:e===void 0?J$:ht(e),t=typeof t=="function"?t:t===void 0?eD:ht(t);function c(f){var d,m=(f=IS(f)).length,p,v=!1,x;for(n==null&&(o=i(x=s())),d=0;d<=m;++d)!(d<m&&r(p=f[d],d,f))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(p,d,f),+t(p,d,f));if(x)return o=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:ht(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:ht(+f),c):t},c.defined=function(f){return arguments.length?(r=typeof f=="function"?f:ht(!!f),c):r},c.curve=function(f){return arguments.length?(i=f,n!=null&&(o=i(n)),c):i},c.context=function(f){return arguments.length?(f==null?n=o=null:o=i(n=f),c):n},c}function Rd(e,t,r){var n=null,i=ht(!0),o=null,s=zp,c=null,f=MS(d);e=typeof e=="function"?e:e===void 0?J$:ht(+e),t=typeof t=="function"?t:ht(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?eD:ht(+r);function d(p){var v,x,b,w=(p=IS(p)).length,y,P=!1,O,A=new Array(w),C=new Array(w);for(o==null&&(c=s(O=f())),v=0;v<=w;++v){if(!(v<w&&i(y=p[v],v,p))===P)if(P=!P)x=v,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),b=v-1;b>=x;--b)c.point(A[b],C[b]);c.lineEnd(),c.areaEnd()}P&&(A[v]=+e(y,v,p),C[v]=+t(y,v,p),c.point(n?+n(y,v,p):A[v],r?+r(y,v,p):C[v]))}if(O)return c=null,O+""||null}function m(){return tD().defined(i).curve(s).context(o)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:ht(+p),n=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:ht(+p),d):e},d.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:ht(+p),d):n},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:ht(+p),r=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:ht(+p),d):t},d.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:ht(+p),d):r},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(r)},d.lineX1=function(){return m().x(n).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:ht(!!p),d):i},d.curve=function(p){return arguments.length?(s=p,o!=null&&(c=s(o)),d):s},d.context=function(p){return arguments.length?(p==null?o=c=null:c=s(o=p),d):o},d}class rD{constructor(t,r){this._context=t,this._x=r}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,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function zH(e){return new rD(e,!0)}function qH(e){return new rD(e,!1)}var $S={draw(e,t){const r=qn(t/xh);e.moveTo(r,0),e.arc(0,0,r,0,Bp)}},UH={draw(e,t){const r=qn(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};const nD=qn(1/3),WH=nD*2;var HH={draw(e,t){const r=qn(t/WH),n=r*nD;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},VH={draw(e,t){const r=qn(t),n=-r/2;e.rect(n,n,r,r)}};const GH=.8908130915292852,iD=yh(xh/10)/yh(7*xh/10),KH=yh(Bp/10)*iD,XH=-Q$(Bp/10)*iD;var YH={draw(e,t){const r=qn(t*GH),n=KH*r,i=XH*r;e.moveTo(0,-r),e.lineTo(n,i);for(let o=1;o<5;++o){const s=Bp*o/5,c=Q$(s),f=yh(s);e.lineTo(f*r,-c*r),e.lineTo(c*n-f*i,f*n+c*i)}e.closePath()}};const By=qn(3);var QH={draw(e,t){const r=-qn(t/(By*3));e.moveTo(0,r*2),e.lineTo(-By*r,-r),e.lineTo(By*r,-r),e.closePath()}};const dn=-.5,hn=qn(3)/2,gw=1/qn(12),ZH=(gw/2+1)*3;var JH={draw(e,t){const r=qn(t/ZH),n=r/2,i=r*gw,o=n,s=r*gw+r,c=-o,f=s;e.moveTo(n,i),e.lineTo(o,s),e.lineTo(c,f),e.lineTo(dn*n-hn*i,hn*n+dn*i),e.lineTo(dn*o-hn*s,hn*o+dn*s),e.lineTo(dn*c-hn*f,hn*c+dn*f),e.lineTo(dn*n+hn*i,dn*i-hn*n),e.lineTo(dn*o+hn*s,dn*s-hn*o),e.lineTo(dn*c+hn*f,dn*f-hn*c),e.closePath()}};function e9(e,t){let r=null,n=MS(i);e=typeof e=="function"?e:ht(e||$S),t=typeof t=="function"?t:ht(t===void 0?64:+t);function i(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:ht(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:ht(+o),i):t},i.context=function(o){return arguments.length?(r=o??null,i):r},i}function Vo(){}function bh(e,t,r){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+r)/6)}function qp(e){this._context=e}qp.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:bh(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:bh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function t9(e){return new qp(e)}function oD(e){this._context=e}oD.prototype={areaStart:Vo,areaEnd:Vo,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:bh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function r9(e){return new oD(e)}function aD(e){this._context=e}aD.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:bh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function n9(e){return new aD(e)}function sD(e,t){this._basis=new qp(e),this._beta=t}sD.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],o=e[r]-n,s=t[r]-i,c=-1,f;++c<=r;)f=c/r,this._basis.point(this._beta*e[c]+(1-this._beta)*(n+f*o),this._beta*t[c]+(1-this._beta)*(i+f*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function r(n){return t===1?new qp(n):new sD(n,t)}return r.beta=function(n){return e(+n)},r})(.85);function wh(e,t,r){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-r),e._x2,e._y2)}function DS(e,t){this._context=e,this._k=(1-t)/6}DS.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:wh(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:wh(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}};(function e(t){function r(n){return new DS(n,t)}return r.tension=function(n){return e(+n)},r})(0);function LS(e,t){this._context=e,this._k=(1-t)/6}LS.prototype={areaStart:Vo,areaEnd:Vo,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:wh(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}};(function e(t){function r(n){return new LS(n,t)}return r.tension=function(n){return e(+n)},r})(0);function FS(e,t){this._context=e,this._k=(1-t)/6}FS.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:wh(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}};(function e(t){function r(n){return new FS(n,t)}return r.tension=function(n){return e(+n)},r})(0);function BS(e,t,r){var n=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>hE){var c=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,f=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/f,i=(i*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/f}if(e._l23_a>hE){var d=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,m=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*d+e._x1*e._l23_2a-t*e._l12_2a)/m,s=(s*d+e._y1*e._l23_2a-r*e._l12_2a)/m}e._context.bezierCurveTo(n,i,o,s,e._x2,e._y2)}function lD(e,t){this._context=e,this._alpha=t}lD.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 r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:BS(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}};(function e(t){function r(n){return t?new lD(n,t):new DS(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function cD(e,t){this._context=e,this._alpha=t}cD.prototype={areaStart:Vo,areaEnd:Vo,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 r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:BS(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}};(function e(t){function r(n){return t?new cD(n,t):new LS(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function uD(e,t){this._context=e,this._alpha=t}uD.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 r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:BS(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}};(function e(t){function r(n){return t?new uD(n,t):new FS(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function fD(e){this._context=e}fD.prototype={areaStart:Vo,areaEnd:Vo,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 i9(e){return new fD(e)}function pE(e){return e<0?-1:1}function mE(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),c=(o*i+s*n)/(n+i);return(pE(o)+pE(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(c))||0}function vE(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function zy(e,t,r){var n=e._x0,i=e._y0,o=e._x1,s=e._y1,c=(o-n)/3;e._context.bezierCurveTo(n+c,i+c*t,o-c,s-c*r,o,s)}function Sh(e){this._context=e}Sh.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:zy(this,this._t0,vE(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 r=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,zy(this,vE(this,r=mE(this,e,t)),r);break;default:zy(this,this._t0,r=mE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function dD(e){this._context=new hD(e)}(dD.prototype=Object.create(Sh.prototype)).point=function(e,t){Sh.prototype.point.call(this,t,e)};function hD(e){this._context=e}hD.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,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function o9(e){return new Sh(e)}function a9(e){return new dD(e)}function pD(e){this._context=e}pD.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=gE(e),i=gE(t),o=0,s=1;s<r;++o,++s)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function gE(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function s9(e){return new pD(e)}function Up(e,t){this._context=e,this._t=t}Up.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function l9(e){return new Up(e,.5)}function c9(e){return new Up(e,0)}function u9(e){return new Up(e,1)}function tl(e,t){if((s=e.length)>1)for(var r=1,n,i,o=e[t[0]],s,c=o.length;r<s;++r)for(i=o,o=e[t[r]],n=0;n<c;++n)o[n][1]+=o[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function yw(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function f9(e,t){return e[t]}function d9(e){const t=[];return t.key=e,t}function h9(){var e=ht([]),t=yw,r=tl,n=f9;function i(o){var s=Array.from(e.apply(this,arguments),d9),c,f=s.length,d=-1,m;for(const p of o)for(c=0,++d;c<f;++c)(s[c][d]=[0,+n(p,s[c].key,d,o)]).data=p;for(c=0,m=IS(t(s));c<f;++c)s[m[c]].index=c;return r(s,m),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ht(Array.from(o)),i):e},i.value=function(o){return arguments.length?(n=typeof o=="function"?o:ht(+o),i):n},i.order=function(o){return arguments.length?(t=o==null?yw:typeof o=="function"?o:ht(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(r=o??tl,i):r},i}function p9(e,t){if((n=e.length)>0){for(var r,n,i=0,o=e[0].length,s;i<o;++i){for(s=r=0;r<n;++r)s+=e[r][i][1]||0;if(s)for(r=0;r<n;++r)e[r][i][1]/=s}tl(e,t)}}function m9(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,o=n.length;r<o;++r){for(var s=0,c=0;s<i;++s)c+=e[s][r][1]||0;n[r][1]+=n[r][0]=-c/2}tl(e,t)}}function v9(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,o,s;n<o;++n){for(var c=0,f=0,d=0;c<s;++c){for(var m=e[t[c]],p=m[n][1]||0,v=m[n-1][1]||0,x=(p-v)/2,b=0;b<c;++b){var w=e[t[b]],y=w[n][1]||0,P=w[n-1][1]||0;x+=y-P}f+=p,d+=x*p}i[n-1][1]+=i[n-1][0]=r,f&&(r-=d/f)}i[n-1][1]+=i[n-1][0]=r,tl(e,t)}}function cu(e){"@babel/helpers - typeof";return cu=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},cu(e)}var g9=["type","size","sizeType"];function xw(){return xw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xw.apply(this,arguments)}function yE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yE(Object(r),!0).forEach(function(n){y9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y9(e,t,r){return t=x9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x9(e){var t=b9(e,"string");return cu(t)=="symbol"?t:t+""}function b9(e,t){if(cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w9(e,t){if(e==null)return{};var r=S9(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function S9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var mD={symbolCircle:$S,symbolCross:UH,symbolDiamond:HH,symbolSquare:VH,symbolStar:YH,symbolTriangle:QH,symbolWye:JH},_9=Math.PI/180,j9=function(t){var r="symbol".concat(Fp(t));return mD[r]||$S},P9=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*_9;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},O9=function(t,r){mD["symbol".concat(Fp(t))]=r},zS=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,o=i===void 0?64:i,s=t.sizeType,c=s===void 0?"area":s,f=w9(t,g9),d=xE(xE({},f),{},{type:n,size:o,sizeType:c}),m=function(){var y=j9(n),P=e9().type(y).size(P9(o,c,n));return P()},p=d.className,v=d.cx,x=d.cy,b=Ve(d,!0);return v===+v&&x===+x&&o===+o?K.createElement("path",xw({},b,{className:Je("recharts-symbols",p),transform:"translate(".concat(v,", ").concat(x,")"),d:m()})):null};zS.registerSymbol=O9;function rl(e){"@babel/helpers - typeof";return rl=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},rl(e)}function bw(){return bw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bw.apply(this,arguments)}function bE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bE(Object(r),!0).forEach(function(n){uu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E9(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gD(n.key),n)}}function T9(e,t,r){return t&&E9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N9(e,t,r){return t=_h(t),k9(e,vD()?Reflect.construct(t,r||[],_h(e).constructor):t.apply(e,r))}function k9(e,t){if(t&&(rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R9(e)}function R9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vD=function(){return!!e})()}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_h(e)}function M9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ww(e,t)}function ww(e,t){return ww=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ww(e,t)}function uu(e,t,r){return t=gD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gD(e){var t=I9(e,"string");return rl(t)=="symbol"?t:t+""}function I9(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pn=32,qS=(function(e){function t(){return A9(this,t),N9(this,t,arguments)}return M9(t,e),T9(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,o=pn/2,s=pn/6,c=pn/3,f=n.inactive?i:n.color;if(n.type==="plainline")return K.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:pn,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return K.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(o,"h").concat(c,`
|
|
427
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*c,",").concat(o,`
|
|
428
|
+
H`).concat(pn,"M").concat(2*c,",").concat(o,`
|
|
429
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return K.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(pn/8,"h").concat(pn,"v").concat(pn*3/4,"h").concat(-pn,"z"),className:"recharts-legend-icon"});if(K.isValidElement(n.legendIcon)){var d=C9({},n);return delete d.legendIcon,K.cloneElement(n.legendIcon,d)}return K.createElement(zS,{fill:f,cx:o,cy:o,size:pn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,o=i.payload,s=i.iconSize,c=i.layout,f=i.formatter,d=i.inactiveColor,m={x:0,y:0,width:pn,height:pn},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(x,b){var w=x.formatter||f,y=Je(uu(uu({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",x.inactive));if(x.type==="none")return null;var P=We(x.value)?null:x.value;$i(!We(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var O=x.inactive?d:x.color;return K.createElement("li",bw({className:y,style:p,key:"legend-item-".concat(b)},gh(n.props,x,b)),K.createElement(pw,{width:s,height:s,viewBox:m,style:v},n.renderIcon(x)),K.createElement("span",{className:"recharts-legend-item-text",style:{color:O}},w?w(P,x,b):P))})}},{key:"render",value:function(){var n=this.props,i=n.payload,o=n.layout,s=n.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return K.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(S.PureComponent);uu(qS,"displayName","Legend");uu(qS,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var qy,wE;function $9(){if(wE)return qy;wE=1;var e=$p();function t(){this.__data__=new e,this.size=0}return qy=t,qy}var Uy,SE;function D9(){if(SE)return Uy;SE=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Uy=e,Uy}var Wy,_E;function L9(){if(_E)return Wy;_E=1;function e(t){return this.__data__.get(t)}return Wy=e,Wy}var Hy,jE;function F9(){if(jE)return Hy;jE=1;function e(t){return this.__data__.has(t)}return Hy=e,Hy}var Vy,PE;function B9(){if(PE)return Vy;PE=1;var e=$p(),t=AS(),r=ES(),n=200;function i(o,s){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<n-1)return f.push([o,s]),this.size=++c.size,this;c=this.__data__=new r(f)}return c.set(o,s),this.size=c.size,this}return Vy=i,Vy}var Gy,OE;function yD(){if(OE)return Gy;OE=1;var e=$p(),t=$9(),r=D9(),n=L9(),i=F9(),o=B9();function s(c){var f=this.__data__=new e(c);this.size=f.size}return s.prototype.clear=t,s.prototype.delete=r,s.prototype.get=n,s.prototype.has=i,s.prototype.set=o,Gy=s,Gy}var Ky,CE;function z9(){if(CE)return Ky;CE=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ky=t,Ky}var Xy,AE;function q9(){if(AE)return Xy;AE=1;function e(t){return this.__data__.has(t)}return Xy=e,Xy}var Yy,EE;function xD(){if(EE)return Yy;EE=1;var e=ES(),t=z9(),r=q9();function n(i){var o=-1,s=i==null?0:i.length;for(this.__data__=new e;++o<s;)this.add(i[o])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Yy=n,Yy}var Qy,TE;function bD(){if(TE)return Qy;TE=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Qy=e,Qy}var Zy,NE;function wD(){if(NE)return Zy;NE=1;function e(t,r){return t.has(r)}return Zy=e,Zy}var Jy,kE;function SD(){if(kE)return Jy;kE=1;var e=xD(),t=bD(),r=wD(),n=1,i=2;function o(s,c,f,d,m,p){var v=f&n,x=s.length,b=c.length;if(x!=b&&!(v&&b>x))return!1;var w=p.get(s),y=p.get(c);if(w&&y)return w==c&&y==s;var P=-1,O=!0,A=f&i?new e:void 0;for(p.set(s,c),p.set(c,s);++P<x;){var C=s[P],_=c[P];if(d)var E=v?d(_,C,P,c,s,p):d(C,_,P,s,c,p);if(E!==void 0){if(E)continue;O=!1;break}if(A){if(!t(c,function(N,R){if(!r(A,R)&&(C===N||m(C,N,f,d,p)))return A.push(R)})){O=!1;break}}else if(!(C===_||m(C,_,f,d,p))){O=!1;break}}return p.delete(s),p.delete(c),O}return Jy=o,Jy}var ex,RE;function U9(){if(RE)return ex;RE=1;var e=mi(),t=e.Uint8Array;return ex=t,ex}var tx,ME;function W9(){if(ME)return tx;ME=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,o){n[++r]=[o,i]}),n}return tx=e,tx}var rx,IE;function US(){if(IE)return rx;IE=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return rx=e,rx}var nx,$E;function H9(){if($E)return nx;$E=1;var e=ef(),t=U9(),r=CS(),n=SD(),i=W9(),o=US(),s=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",v="[object Number]",x="[object RegExp]",b="[object Set]",w="[object String]",y="[object Symbol]",P="[object ArrayBuffer]",O="[object DataView]",A=e?e.prototype:void 0,C=A?A.valueOf:void 0;function _(E,N,R,M,F,I,$){switch(R){case O:if(E.byteLength!=N.byteLength||E.byteOffset!=N.byteOffset)return!1;E=E.buffer,N=N.buffer;case P:return!(E.byteLength!=N.byteLength||!I(new t(E),new t(N)));case f:case d:case v:return r(+E,+N);case m:return E.name==N.name&&E.message==N.message;case x:case w:return E==N+"";case p:var L=i;case b:var U=M&s;if(L||(L=o),E.size!=N.size&&!U)return!1;var H=$.get(E);if(H)return H==N;M|=c,$.set(E,N);var B=n(L(E),L(N),M,F,I,$);return $.delete(E),B;case y:if(C)return C.call(E)==C.call(N)}return!1}return nx=_,nx}var ix,DE;function _D(){if(DE)return ix;DE=1;function e(t,r){for(var n=-1,i=r.length,o=t.length;++n<i;)t[o+n]=r[n];return t}return ix=e,ix}var ox,LE;function V9(){if(LE)return ox;LE=1;var e=_D(),t=qr();function r(n,i,o){var s=i(n);return t(n)?s:e(s,o(n))}return ox=r,ox}var ax,FE;function G9(){if(FE)return ax;FE=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,o=0,s=[];++n<i;){var c=t[n];r(c,n,t)&&(s[o++]=c)}return s}return ax=e,ax}var sx,BE;function K9(){if(BE)return sx;BE=1;function e(){return[]}return sx=e,sx}var lx,zE;function X9(){if(zE)return lx;zE=1;var e=G9(),t=K9(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,o=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(c){return n.call(s,c)}))}:t;return lx=o,lx}var cx,qE;function Y9(){if(qE)return cx;qE=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return cx=e,cx}var ux,UE;function Q9(){if(UE)return ux;UE=1;var e=no(),t=io(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return ux=n,ux}var fx,WE;function WS(){if(WE)return fx;WE=1;var e=Q9(),t=io(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(s){return t(s)&&n.call(s,"callee")&&!i.call(s,"callee")};return fx=o,fx}var Vc={exports:{}},dx,HE;function Z9(){if(HE)return dx;HE=1;function e(){return!1}return dx=e,dx}Vc.exports;var VE;function jD(){return VE||(VE=1,(function(e,t){var r=mi(),n=Z9(),i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===i,c=s?r.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||n;e.exports=d})(Vc,Vc.exports)),Vc.exports}var hx,GE;function HS(){if(GE)return hx;GE=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var o=typeof n;return i=i??e,!!i&&(o=="number"||o!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return hx=r,hx}var px,KE;function VS(){if(KE)return px;KE=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return px=t,px}var mx,XE;function J9(){if(XE)return mx;XE=1;var e=no(),t=VS(),r=io(),n="[object Arguments]",i="[object Array]",o="[object Boolean]",s="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",v="[object RegExp]",x="[object Set]",b="[object String]",w="[object WeakMap]",y="[object ArrayBuffer]",P="[object DataView]",O="[object Float32Array]",A="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",E="[object Int32Array]",N="[object Uint8Array]",R="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",I={};I[O]=I[A]=I[C]=I[_]=I[E]=I[N]=I[R]=I[M]=I[F]=!0,I[n]=I[i]=I[y]=I[o]=I[P]=I[s]=I[c]=I[f]=I[d]=I[m]=I[p]=I[v]=I[x]=I[b]=I[w]=!1;function $(L){return r(L)&&t(L.length)&&!!I[e(L)]}return mx=$,mx}var vx,YE;function PD(){if(YE)return vx;YE=1;function e(t){return function(r){return t(r)}}return vx=e,vx}var Gc={exports:{}};Gc.exports;var QE;function eV(){return QE||(QE=1,(function(e,t){var r=B$(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,s=o&&r.process,c=(function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}})();e.exports=c})(Gc,Gc.exports)),Gc.exports}var gx,ZE;function OD(){if(ZE)return gx;ZE=1;var e=J9(),t=PD(),r=eV(),n=r&&r.isTypedArray,i=n?t(n):e;return gx=i,gx}var yx,JE;function tV(){if(JE)return yx;JE=1;var e=Y9(),t=WS(),r=qr(),n=jD(),i=HS(),o=OD(),s=Object.prototype,c=s.hasOwnProperty;function f(d,m){var p=r(d),v=!p&&t(d),x=!p&&!v&&n(d),b=!p&&!v&&!x&&o(d),w=p||v||x||b,y=w?e(d.length,String):[],P=y.length;for(var O in d)(m||c.call(d,O))&&!(w&&(O=="length"||x&&(O=="offset"||O=="parent")||b&&(O=="buffer"||O=="byteLength"||O=="byteOffset")||i(O,P)))&&y.push(O);return y}return yx=f,yx}var xx,e2;function rV(){if(e2)return xx;e2=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return xx=t,xx}var bx,t2;function CD(){if(t2)return bx;t2=1;function e(t,r){return function(n){return t(r(n))}}return bx=e,bx}var wx,r2;function nV(){if(r2)return wx;r2=1;var e=CD(),t=e(Object.keys,Object);return wx=t,wx}var Sx,n2;function iV(){if(n2)return Sx;n2=1;var e=rV(),t=nV(),r=Object.prototype,n=r.hasOwnProperty;function i(o){if(!e(o))return t(o);var s=[];for(var c in Object(o))n.call(o,c)&&c!="constructor"&&s.push(c);return s}return Sx=i,Sx}var _x,i2;function tf(){if(i2)return _x;i2=1;var e=OS(),t=VS();function r(n){return n!=null&&t(n.length)&&!e(n)}return _x=r,_x}var jx,o2;function Wp(){if(o2)return jx;o2=1;var e=tV(),t=iV(),r=tf();function n(i){return r(i)?e(i):t(i)}return jx=n,jx}var Px,a2;function oV(){if(a2)return Px;a2=1;var e=V9(),t=X9(),r=Wp();function n(i){return e(i,r,t)}return Px=n,Px}var Ox,s2;function aV(){if(s2)return Ox;s2=1;var e=oV(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(o,s,c,f,d,m){var p=c&t,v=e(o),x=v.length,b=e(s),w=b.length;if(x!=w&&!p)return!1;for(var y=x;y--;){var P=v[y];if(!(p?P in s:n.call(s,P)))return!1}var O=m.get(o),A=m.get(s);if(O&&A)return O==s&&A==o;var C=!0;m.set(o,s),m.set(s,o);for(var _=p;++y<x;){P=v[y];var E=o[P],N=s[P];if(f)var R=p?f(N,E,P,s,o,m):f(E,N,P,o,s,m);if(!(R===void 0?E===N||d(E,N,c,f,m):R)){C=!1;break}_||(_=P=="constructor")}if(C&&!_){var M=o.constructor,F=s.constructor;M!=F&&"constructor"in o&&"constructor"in s&&!(typeof M=="function"&&M instanceof M&&typeof F=="function"&&F instanceof F)&&(C=!1)}return m.delete(o),m.delete(s),C}return Ox=i,Ox}var Cx,l2;function sV(){if(l2)return Cx;l2=1;var e=Ha(),t=mi(),r=e(t,"DataView");return Cx=r,Cx}var Ax,c2;function lV(){if(c2)return Ax;c2=1;var e=Ha(),t=mi(),r=e(t,"Promise");return Ax=r,Ax}var Ex,u2;function AD(){if(u2)return Ex;u2=1;var e=Ha(),t=mi(),r=e(t,"Set");return Ex=r,Ex}var Tx,f2;function cV(){if(f2)return Tx;f2=1;var e=Ha(),t=mi(),r=e(t,"WeakMap");return Tx=r,Tx}var Nx,d2;function uV(){if(d2)return Nx;d2=1;var e=sV(),t=AS(),r=lV(),n=AD(),i=cV(),o=no(),s=z$(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",v="[object DataView]",x=s(e),b=s(t),w=s(r),y=s(n),P=s(i),O=o;return(e&&O(new e(new ArrayBuffer(1)))!=v||t&&O(new t)!=c||r&&O(r.resolve())!=d||n&&O(new n)!=m||i&&O(new i)!=p)&&(O=function(A){var C=o(A),_=C==f?A.constructor:void 0,E=_?s(_):"";if(E)switch(E){case x:return v;case b:return c;case w:return d;case y:return m;case P:return p}return C}),Nx=O,Nx}var kx,h2;function fV(){if(h2)return kx;h2=1;var e=yD(),t=SD(),r=H9(),n=aV(),i=uV(),o=qr(),s=jD(),c=OD(),f=1,d="[object Arguments]",m="[object Array]",p="[object Object]",v=Object.prototype,x=v.hasOwnProperty;function b(w,y,P,O,A,C){var _=o(w),E=o(y),N=_?m:i(w),R=E?m:i(y);N=N==d?p:N,R=R==d?p:R;var M=N==p,F=R==p,I=N==R;if(I&&s(w)){if(!s(y))return!1;_=!0,M=!1}if(I&&!M)return C||(C=new e),_||c(w)?t(w,y,P,O,A,C):r(w,y,N,P,O,A,C);if(!(P&f)){var $=M&&x.call(w,"__wrapped__"),L=F&&x.call(y,"__wrapped__");if($||L){var U=$?w.value():w,H=L?y.value():y;return C||(C=new e),A(U,H,P,O,C)}}return I?(C||(C=new e),n(w,y,P,O,A,C)):!1}return kx=b,kx}var Rx,p2;function GS(){if(p2)return Rx;p2=1;var e=fV(),t=io();function r(n,i,o,s,c){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,o,s,r,c)}return Rx=r,Rx}var Mx,m2;function dV(){if(m2)return Mx;m2=1;var e=yD(),t=GS(),r=1,n=2;function i(o,s,c,f){var d=c.length,m=d,p=!f;if(o==null)return!m;for(o=Object(o);d--;){var v=c[d];if(p&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++d<m;){v=c[d];var x=v[0],b=o[x],w=v[1];if(p&&v[2]){if(b===void 0&&!(x in o))return!1}else{var y=new e;if(f)var P=f(b,w,x,o,s,y);if(!(P===void 0?t(w,b,r|n,f,y):P))return!1}}return!0}return Mx=i,Mx}var Ix,v2;function ED(){if(v2)return Ix;v2=1;var e=Qo();function t(r){return r===r&&!e(r)}return Ix=t,Ix}var $x,g2;function hV(){if(g2)return $x;g2=1;var e=ED(),t=Wp();function r(n){for(var i=t(n),o=i.length;o--;){var s=i[o],c=n[s];i[o]=[s,c,e(c)]}return i}return $x=r,$x}var Dx,y2;function TD(){if(y2)return Dx;y2=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Dx=e,Dx}var Lx,x2;function pV(){if(x2)return Lx;x2=1;var e=dV(),t=hV(),r=TD();function n(i){var o=t(i);return o.length==1&&o[0][2]?r(o[0][0],o[0][1]):function(s){return s===i||e(s,i,o)}}return Lx=n,Lx}var Fx,b2;function mV(){if(b2)return Fx;b2=1;function e(t,r){return t!=null&&r in Object(t)}return Fx=e,Fx}var Bx,w2;function vV(){if(w2)return Bx;w2=1;var e=W$(),t=WS(),r=qr(),n=HS(),i=VS(),o=Lp();function s(c,f,d){f=e(f,c);for(var m=-1,p=f.length,v=!1;++m<p;){var x=o(f[m]);if(!(v=c!=null&&d(c,x)))break;c=c[x]}return v||++m!=p?v:(p=c==null?0:c.length,!!p&&i(p)&&n(x,p)&&(r(c)||t(c)))}return Bx=s,Bx}var zx,S2;function gV(){if(S2)return zx;S2=1;var e=mV(),t=vV();function r(n,i){return n!=null&&t(n,i,e)}return zx=r,zx}var qx,_2;function yV(){if(_2)return qx;_2=1;var e=GS(),t=H$(),r=gV(),n=PS(),i=ED(),o=TD(),s=Lp(),c=1,f=2;function d(m,p){return n(m)&&i(p)?o(s(m),p):function(v){var x=t(v,m);return x===void 0&&x===p?r(v,m):e(p,x,c|f)}}return qx=d,qx}var Ux,j2;function Dl(){if(j2)return Ux;j2=1;function e(t){return t}return Ux=e,Ux}var Wx,P2;function xV(){if(P2)return Wx;P2=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Wx=e,Wx}var Hx,O2;function bV(){if(O2)return Hx;O2=1;var e=NS();function t(r){return function(n){return e(n,r)}}return Hx=t,Hx}var Vx,C2;function wV(){if(C2)return Vx;C2=1;var e=xV(),t=bV(),r=PS(),n=Lp();function i(o){return r(o)?e(n(o)):t(o)}return Vx=i,Vx}var Gx,A2;function Zo(){if(A2)return Gx;A2=1;var e=pV(),t=yV(),r=Dl(),n=qr(),i=wV();function o(s){return typeof s=="function"?s:s==null?r:typeof s=="object"?n(s)?t(s[0],s[1]):e(s):i(s)}return Gx=o,Gx}var Kx,E2;function ND(){if(E2)return Kx;E2=1;function e(t,r,n,i){for(var o=t.length,s=n+(i?1:-1);i?s--:++s<o;)if(r(t[s],s,t))return s;return-1}return Kx=e,Kx}var Xx,T2;function SV(){if(T2)return Xx;T2=1;function e(t){return t!==t}return Xx=e,Xx}var Yx,N2;function _V(){if(N2)return Yx;N2=1;function e(t,r,n){for(var i=n-1,o=t.length;++i<o;)if(t[i]===r)return i;return-1}return Yx=e,Yx}var Qx,k2;function jV(){if(k2)return Qx;k2=1;var e=ND(),t=SV(),r=_V();function n(i,o,s){return o===o?r(i,o,s):e(i,t,s)}return Qx=n,Qx}var Zx,R2;function PV(){if(R2)return Zx;R2=1;var e=jV();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Zx=t,Zx}var Jx,M2;function OV(){if(M2)return Jx;M2=1;function e(t,r,n){for(var i=-1,o=t==null?0:t.length;++i<o;)if(n(r,t[i]))return!0;return!1}return Jx=e,Jx}var eb,I2;function CV(){if(I2)return eb;I2=1;function e(){}return eb=e,eb}var tb,$2;function AV(){if($2)return tb;$2=1;var e=AD(),t=CV(),r=US(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(o){return new e(o)}:t;return tb=i,tb}var rb,D2;function EV(){if(D2)return rb;D2=1;var e=xD(),t=PV(),r=OV(),n=wD(),i=AV(),o=US(),s=200;function c(f,d,m){var p=-1,v=t,x=f.length,b=!0,w=[],y=w;if(m)b=!1,v=r;else if(x>=s){var P=d?null:i(f);if(P)return o(P);b=!1,v=n,y=new e}else y=d?[]:w;e:for(;++p<x;){var O=f[p],A=d?d(O):O;if(O=m||O!==0?O:0,b&&A===A){for(var C=y.length;C--;)if(y[C]===A)continue e;d&&y.push(A),w.push(O)}else v(y,A,m)||(y!==w&&y.push(A),w.push(O))}return w}return rb=c,rb}var nb,L2;function TV(){if(L2)return nb;L2=1;var e=Zo(),t=EV();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return nb=r,nb}var NV=TV();const F2=ft(NV);function kD(e,t,r){return t===!0?F2(e,r):We(t)?F2(e,t):e}function nl(e){"@babel/helpers - typeof";return nl=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},nl(e)}var kV=["ref"];function B2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B2(Object(r),!0).forEach(function(n){Hp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MD(n.key),n)}}function MV(e,t,r){return t&&z2(e.prototype,t),r&&z2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IV(e,t,r){return t=jh(t),$V(e,RD()?Reflect.construct(t,r||[],jh(e).constructor):t.apply(e,r))}function $V(e,t){if(t&&(nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DV(e)}function DV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RD=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jh(e)}function LV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sw(e,t)}function Sw(e,t){return Sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sw(e,t)}function Hp(e,t,r){return t=MD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MD(e){var t=FV(e,"string");return nl(t)=="symbol"?t:t+""}function FV(e,t){if(nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function BV(e,t){if(e==null)return{};var r=zV(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zV(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qV(e){return e.value}function UV(e,t){if(K.isValidElement(e))return K.cloneElement(e,t);if(typeof e=="function")return K.createElement(e,t);t.ref;var r=BV(t,kV);return K.createElement(qS,r)}var q2=1,Hs=(function(e){function t(){var r;RV(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=IV(this,t,[].concat(i)),Hp(r,"lastBoundingBox",{width:-1,height:-1}),r}return LV(t,e),MV(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>q2||Math.abs(i.height-this.lastBoundingBox.height)>q2)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Pi({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,o=i.layout,s=i.align,c=i.verticalAlign,f=i.margin,d=i.chartWidth,m=i.chartHeight,p,v;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(s==="center"&&o==="vertical"){var x=this.getBBoxSnapshot();p={left:((d||0)-x.width)/2}}else p=s==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(c==="middle"){var b=this.getBBoxSnapshot();v={top:((m||0)-b.height)/2}}else v=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Pi(Pi({},p),v)}},{key:"render",value:function(){var n=this,i=this.props,o=i.content,s=i.width,c=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,m=i.payload,p=Pi(Pi({position:"absolute",width:s||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return K.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(x){n.wrapperNode=x}},UV(o,Pi(Pi({},this.props),{},{payload:kD(m,d,qV)})))}}],[{key:"getWithHeight",value:function(n,i){var o=Pi(Pi({},this.defaultProps),n.props),s=o.layout;return s==="vertical"&&he(n.props.height)?{height:n.props.height}:s==="horizontal"?{width:n.props.width||i}:null}}])})(S.PureComponent);Hp(Hs,"displayName","Legend");Hp(Hs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ib,U2;function WV(){if(U2)return ib;U2=1;var e=ef(),t=WS(),r=qr(),n=e?e.isConcatSpreadable:void 0;function i(o){return r(o)||t(o)||!!(n&&o&&o[n])}return ib=i,ib}var ob,W2;function ID(){if(W2)return ob;W2=1;var e=_D(),t=WV();function r(n,i,o,s,c){var f=-1,d=n.length;for(o||(o=t),c||(c=[]);++f<d;){var m=n[f];i>0&&o(m)?i>1?r(m,i-1,o,s,c):e(c,m):s||(c[c.length]=m)}return c}return ob=r,ob}var ab,H2;function HV(){if(H2)return ab;H2=1;function e(t){return function(r,n,i){for(var o=-1,s=Object(r),c=i(r),f=c.length;f--;){var d=c[t?f:++o];if(n(s[d],d,s)===!1)break}return r}}return ab=e,ab}var sb,V2;function VV(){if(V2)return sb;V2=1;var e=HV(),t=e();return sb=t,sb}var lb,G2;function $D(){if(G2)return lb;G2=1;var e=VV(),t=Wp();function r(n,i){return n&&e(n,i,t)}return lb=r,lb}var cb,K2;function GV(){if(K2)return cb;K2=1;var e=tf();function t(r,n){return function(i,o){if(i==null)return i;if(!e(i))return r(i,o);for(var s=i.length,c=n?s:-1,f=Object(i);(n?c--:++c<s)&&o(f[c],c,f)!==!1;);return i}}return cb=t,cb}var ub,X2;function KS(){if(X2)return ub;X2=1;var e=$D(),t=GV(),r=t(e);return ub=r,ub}var fb,Y2;function DD(){if(Y2)return fb;Y2=1;var e=KS(),t=tf();function r(n,i){var o=-1,s=t(n)?Array(n.length):[];return e(n,function(c,f,d){s[++o]=i(c,f,d)}),s}return fb=r,fb}var db,Q2;function KV(){if(Q2)return db;Q2=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return db=e,db}var hb,Z2;function XV(){if(Z2)return hb;Z2=1;var e=Rl();function t(r,n){if(r!==n){var i=r!==void 0,o=r===null,s=r===r,c=e(r),f=n!==void 0,d=n===null,m=n===n,p=e(n);if(!d&&!p&&!c&&r>n||c&&f&&m&&!d&&!p||o&&f&&m||!i&&m||!s)return 1;if(!o&&!c&&!p&&r<n||p&&i&&s&&!o&&!c||d&&i&&s||!f&&s||!m)return-1}return 0}return hb=t,hb}var pb,J2;function YV(){if(J2)return pb;J2=1;var e=XV();function t(r,n,i){for(var o=-1,s=r.criteria,c=n.criteria,f=s.length,d=i.length;++o<f;){var m=e(s[o],c[o]);if(m){if(o>=d)return m;var p=i[o];return m*(p=="desc"?-1:1)}}return r.index-n.index}return pb=t,pb}var mb,eT;function QV(){if(eT)return mb;eT=1;var e=TS(),t=NS(),r=Zo(),n=DD(),i=KV(),o=PD(),s=YV(),c=Dl(),f=qr();function d(m,p,v){p.length?p=e(p,function(w){return f(w)?function(y){return t(y,w.length===1?w[0]:w)}:w}):p=[c];var x=-1;p=e(p,o(r));var b=n(m,function(w,y,P){var O=e(p,function(A){return A(w)});return{criteria:O,index:++x,value:w}});return i(b,function(w,y){return s(w,y,v)})}return mb=d,mb}var vb,tT;function ZV(){if(tT)return vb;tT=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return vb=e,vb}var gb,rT;function JV(){if(rT)return gb;rT=1;var e=ZV(),t=Math.max;function r(n,i,o){return i=t(i===void 0?n.length-1:i,0),function(){for(var s=arguments,c=-1,f=t(s.length-i,0),d=Array(f);++c<f;)d[c]=s[i+c];c=-1;for(var m=Array(i+1);++c<i;)m[c]=s[c];return m[i]=o(d),e(n,this,m)}}return gb=r,gb}var yb,nT;function eG(){if(nT)return yb;nT=1;function e(t){return function(){return t}}return yb=e,yb}var xb,iT;function LD(){if(iT)return xb;iT=1;var e=Ha(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return xb=t,xb}var bb,oT;function tG(){if(oT)return bb;oT=1;var e=eG(),t=LD(),r=Dl(),n=t?function(i,o){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:r;return bb=n,bb}var wb,aT;function rG(){if(aT)return wb;aT=1;var e=800,t=16,r=Date.now;function n(i){var o=0,s=0;return function(){var c=r(),f=t-(c-s);if(s=c,f>0){if(++o>=e)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}return wb=n,wb}var Sb,sT;function nG(){if(sT)return Sb;sT=1;var e=tG(),t=rG(),r=t(e);return Sb=r,Sb}var _b,lT;function iG(){if(lT)return _b;lT=1;var e=Dl(),t=JV(),r=nG();function n(i,o){return r(t(i,o,e),i+"")}return _b=n,_b}var jb,cT;function Vp(){if(cT)return jb;cT=1;var e=CS(),t=tf(),r=HS(),n=Qo();function i(o,s,c){if(!n(c))return!1;var f=typeof s;return(f=="number"?t(c)&&r(s,c.length):f=="string"&&s in c)?e(c[s],o):!1}return jb=i,jb}var Pb,uT;function oG(){if(uT)return Pb;uT=1;var e=ID(),t=QV(),r=iG(),n=Vp(),i=r(function(o,s){if(o==null)return[];var c=s.length;return c>1&&n(o,s[0],s[1])?s=[]:c>2&&n(s[0],s[1],s[2])&&(s=[s[0]]),t(o,e(s,1),[])});return Pb=i,Pb}var aG=oG();const XS=ft(aG);function fu(e){"@babel/helpers - typeof";return fu=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},fu(e)}function _w(){return _w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_w.apply(this,arguments)}function sG(e,t){return fG(e)||uG(e,t)||cG(e,t)||lG()}function lG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
430
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cG(e,t){if(e){if(typeof e=="string")return fT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fT(e,t)}}function fT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function fG(e){if(Array.isArray(e))return e}function dT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ob(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dT(Object(r),!0).forEach(function(n){dG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dG(e,t,r){return t=hG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hG(e){var t=pG(e,"string");return fu(t)=="symbol"?t:t+""}function pG(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mG(e){return Array.isArray(e)&&Zt(e[0])&&Zt(e[1])?e.join(" ~ "):e}var vG=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,o=i===void 0?{}:i,s=t.itemStyle,c=s===void 0?{}:s,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,p=t.formatter,v=t.itemSorter,x=t.wrapperClassName,b=t.labelClassName,w=t.label,y=t.labelFormatter,P=t.accessibilityLayer,O=P===void 0?!1:P,A=function(){if(m&&m.length){var $={padding:0,margin:0},L=(v?XS(m,v):m).map(function(U,H){if(U.type==="none")return null;var B=Ob({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},c),X=U.formatter||p||mG,W=U.value,q=U.name,V=W,D=q;if(X&&V!=null&&D!=null){var Y=X(W,q,U,H,m);if(Array.isArray(Y)){var ie=sG(Y,2);V=ie[0],D=ie[1]}else V=Y}return K.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(H),style:B},Zt(D)?K.createElement("span",{className:"recharts-tooltip-item-name"},D):null,Zt(D)?K.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,K.createElement("span",{className:"recharts-tooltip-item-value"},V),K.createElement("span",{className:"recharts-tooltip-item-unit"},U.unit||""))});return K.createElement("ul",{className:"recharts-tooltip-item-list",style:$},L)}return null},C=Ob({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),_=Ob({margin:0},d),E=!Ye(w),N=E?w:"",R=Je("recharts-default-tooltip",x),M=Je("recharts-tooltip-label",b);E&&y&&m!==void 0&&m!==null&&(N=y(w,m));var F=O?{role:"status","aria-live":"assertive"}:{};return K.createElement("div",_w({className:R,style:C},F),K.createElement("p",{className:M,style:_},K.isValidElement(N)?N:"".concat(N)),A())};function du(e){"@babel/helpers - typeof";return du=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},du(e)}function Md(e,t,r){return t=gG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gG(e){var t=yG(e,"string");return du(t)=="symbol"?t:t+""}function yG(e,t){if(du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mc="recharts-tooltip-wrapper",xG={visibility:"hidden"};function bG(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Je(Mc,Md(Md(Md(Md({},"".concat(Mc,"-right"),he(r)&&t&&he(t.x)&&r>=t.x),"".concat(Mc,"-left"),he(r)&&t&&he(t.x)&&r<t.x),"".concat(Mc,"-bottom"),he(n)&&t&&he(t.y)&&n>=t.y),"".concat(Mc,"-top"),he(n)&&t&&he(t.y)&&n<t.y))}function hT(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,o=e.position,s=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(o&&he(o[n]))return o[n];var m=r[n]-c-i,p=r[n]+i;if(t[n])return s[n]?m:p;if(s[n]){var v=m,x=f[n];return v<x?Math.max(p,f[n]):Math.max(m,f[n])}var b=p+c,w=f[n]+d;return b>w?Math.max(m,f[n]):Math.max(p,f[n])}function wG(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function SG(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,o=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,p;return s.height>0&&s.width>0&&r?(m=hT({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),p=hT({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),d=wG({translateX:m,translateY:p,useTranslate3d:c})):d=xG,{cssProperties:d,cssClasses:bG({translateX:m,translateY:p,coordinate:r})}}function il(e){"@babel/helpers - typeof";return il=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},il(e)}function pT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pT(Object(r),!0).forEach(function(n){Pw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BD(n.key),n)}}function PG(e,t,r){return t&&jG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OG(e,t,r){return t=Ph(t),CG(e,FD()?Reflect.construct(t,r||[],Ph(e).constructor):t.apply(e,r))}function CG(e,t){if(t&&(il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AG(e)}function AG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FD=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ph(e)}function EG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jw(e,t)}function jw(e,t){return jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jw(e,t)}function Pw(e,t,r){return t=BD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BD(e){var t=TG(e,"string");return il(t)=="symbol"?t:t+""}function TG(e,t){if(il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vT=1,NG=(function(e){function t(){var r;_G(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=OG(this,t,[].concat(i)),Pw(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Pw(r,"handleKeyDown",function(s){if(s.key==="Escape"){var c,f,d,m;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=r.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),r}return EG(t,e),PG(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>vT||Math.abs(n.height-this.state.lastBoundingBox.height)>vT)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.children,m=i.coordinate,p=i.hasPayload,v=i.isAnimationActive,x=i.offset,b=i.position,w=i.reverseDirection,y=i.useTranslate3d,P=i.viewBox,O=i.wrapperStyle,A=SG({allowEscapeViewBox:s,coordinate:m,offsetTopLeft:x,position:b,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:P}),C=A.cssClasses,_=A.cssProperties,E=mT(mT({transition:v&&o?"transform ".concat(c,"ms ").concat(f):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&p?"visible":"hidden",position:"absolute",top:0,left:0},O);return K.createElement("div",{tabIndex:-1,className:C,style:E,ref:function(R){n.wrapperNode=R}},d)}}])})(S.PureComponent),kG=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Va={isSsr:kG()};function ol(e){"@babel/helpers - typeof";return ol=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},ol(e)}function gT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gT(Object(r),!0).forEach(function(n){YS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,qD(n.key),n)}}function IG(e,t,r){return t&&MG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $G(e,t,r){return t=Oh(t),DG(e,zD()?Reflect.construct(t,r||[],Oh(e).constructor):t.apply(e,r))}function DG(e,t){if(t&&(ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LG(e)}function LG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zD=function(){return!!e})()}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oh(e)}function FG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ow(e,t)}function Ow(e,t){return Ow=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ow(e,t)}function YS(e,t,r){return t=qD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qD(e){var t=BG(e,"string");return ol(t)=="symbol"?t:t+""}function BG(e,t){if(ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zG(e){return e.dataKey}function qG(e,t){return K.isValidElement(e)?K.cloneElement(e,t):typeof e=="function"?K.createElement(e,t):K.createElement(vG,t)}var vn=(function(e){function t(){return RG(this,t),$G(this,t,arguments)}return FG(t,e),IG(t,[{key:"render",value:function(){var n=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.content,m=i.coordinate,p=i.filterNull,v=i.isAnimationActive,x=i.offset,b=i.payload,w=i.payloadUniqBy,y=i.position,P=i.reverseDirection,O=i.useTranslate3d,A=i.viewBox,C=i.wrapperStyle,_=b??[];p&&_.length&&(_=kD(b.filter(function(N){return N.value!=null&&(N.hide!==!0||n.props.includeHidden)}),w,zG));var E=_.length>0;return K.createElement(NG,{allowEscapeViewBox:s,animationDuration:c,animationEasing:f,isAnimationActive:v,active:o,coordinate:m,hasPayload:E,offset:x,position:y,reverseDirection:P,useTranslate3d:O,viewBox:A,wrapperStyle:C},qG(d,yT(yT({},this.props),{},{payload:_})))}}])})(S.PureComponent);YS(vn,"displayName","Tooltip");YS(vn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Va.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Cb,xT;function UG(){if(xT)return Cb;xT=1;var e=mi(),t=function(){return e.Date.now()};return Cb=t,Cb}var Ab,bT;function WG(){if(bT)return Ab;bT=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Ab=t,Ab}var Eb,wT;function HG(){if(wT)return Eb;wT=1;var e=WG(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Eb=r,Eb}var Tb,ST;function UD(){if(ST)return Tb;ST=1;var e=HG(),t=Qo(),r=Rl(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(r(d))return n;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=o.test(d);return p||s.test(d)?c(d.slice(2),p?2:8):i.test(d)?n:+d}return Tb=f,Tb}var Nb,_T;function VG(){if(_T)return Nb;_T=1;var e=Qo(),t=UG(),r=UD(),n="Expected a function",i=Math.max,o=Math.min;function s(c,f,d){var m,p,v,x,b,w,y=0,P=!1,O=!1,A=!0;if(typeof c!="function")throw new TypeError(n);f=r(f)||0,e(d)&&(P=!!d.leading,O="maxWait"in d,v=O?i(r(d.maxWait)||0,f):v,A="trailing"in d?!!d.trailing:A);function C(L){var U=m,H=p;return m=p=void 0,y=L,x=c.apply(H,U),x}function _(L){return y=L,b=setTimeout(R,f),P?C(L):x}function E(L){var U=L-w,H=L-y,B=f-U;return O?o(B,v-H):B}function N(L){var U=L-w,H=L-y;return w===void 0||U>=f||U<0||O&&H>=v}function R(){var L=t();if(N(L))return M(L);b=setTimeout(R,E(L))}function M(L){return b=void 0,A&&m?C(L):(m=p=void 0,x)}function F(){b!==void 0&&clearTimeout(b),y=0,m=w=p=b=void 0}function I(){return b===void 0?x:M(t())}function $(){var L=t(),U=N(L);if(m=arguments,p=this,w=L,U){if(b===void 0)return _(w);if(O)return clearTimeout(b),b=setTimeout(R,f),C(w)}return b===void 0&&(b=setTimeout(R,f)),x}return $.cancel=F,$.flush=I,$}return Nb=s,Nb}var kb,jT;function GG(){if(jT)return kb;jT=1;var e=VG(),t=Qo(),r="Expected a function";function n(i,o,s){var c=!0,f=!0;if(typeof i!="function")throw new TypeError(r);return t(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),e(i,o,{leading:c,maxWait:o,trailing:f})}return kb=n,kb}var KG=GG();const WD=ft(KG);function hu(e){"@babel/helpers - typeof";return hu=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},hu(e)}function PT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Id(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(r),!0).forEach(function(n){XG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XG(e,t,r){return t=YG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YG(e){var t=QG(e,"string");return hu(t)=="symbol"?t:t+""}function QG(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZG(e,t){return rK(e)||tK(e,t)||eK(e,t)||JG()}function JG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
431
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eK(e,t){if(e){if(typeof e=="string")return OT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OT(e,t)}}function OT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function rK(e){if(Array.isArray(e))return e}var Rb=S.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,o=e.width,s=o===void 0?"100%":o,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,p=e.minHeight,v=e.maxHeight,x=e.children,b=e.debounce,w=b===void 0?0:b,y=e.id,P=e.className,O=e.onResize,A=e.style,C=A===void 0?{}:A,_=S.useRef(null),E=S.useRef();E.current=O,S.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var N=S.useState({containerWidth:i.width,containerHeight:i.height}),R=ZG(N,2),M=R[0],F=R[1],I=S.useCallback(function(L,U){F(function(H){var B=Math.round(L),X=Math.round(U);return H.containerWidth===B&&H.containerHeight===X?H:{containerWidth:B,containerHeight:X}})},[]);S.useEffect(function(){var L=function(q){var V,D=q[0].contentRect,Y=D.width,ie=D.height;I(Y,ie),(V=E.current)===null||V===void 0||V.call(E,Y,ie)};w>0&&(L=WD(L,w,{trailing:!0,leading:!1}));var U=new ResizeObserver(L),H=_.current.getBoundingClientRect(),B=H.width,X=H.height;return I(B,X),U.observe(_.current),function(){U.disconnect()}},[I,w]);var $=S.useMemo(function(){var L=M.containerWidth,U=M.containerHeight;if(L<0||U<0)return null;$i(_a(s)||_a(f),`The width(%s) and height(%s) are both fixed numbers,
|
|
432
|
+
maybe you don't need to use a ResponsiveContainer.`,s,f),$i(!r||r>0,"The aspect(%s) must be greater than zero.",r);var H=_a(s)?L:s,B=_a(f)?U:f;r&&r>0&&(H?B=H/r:B&&(H=B*r),v&&B>v&&(B=v)),$i(H>0||B>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
433
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
434
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
435
|
+
height and width.`,H,B,s,f,m,p,r);var X=!Array.isArray(x)&&Ii(x.type).endsWith("Chart");return K.Children.map(x,function(W){return K.isValidElement(W)?S.cloneElement(W,Id({width:H,height:B},X?{style:Id({height:"100%",width:"100%",maxHeight:B,maxWidth:H},W.props.style)}:{})):W})},[r,x,f,v,p,m,M,s]);return K.createElement("div",{id:y?"".concat(y):void 0,className:Je("recharts-responsive-container",P),style:Id(Id({},C),{},{width:s,height:f,minWidth:m,minHeight:p,maxHeight:v}),ref:_},$)}),QS=function(t){return null};QS.displayName="Cell";function pu(e){"@babel/helpers - typeof";return pu=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},pu(e)}function CT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CT(Object(r),!0).forEach(function(n){nK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nK(e,t,r){return t=iK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iK(e){var t=oK(e,"string");return pu(t)=="symbol"?t:t+""}function oK(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Es={widthCache:{},cacheCount:0},aK=2e3,sK={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},AT="recharts_measurement_span";function lK(e){var t=Cw({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Xc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Va.isSsr)return{width:0,height:0};var n=lK(r),i=JSON.stringify({text:t,copyStyle:n});if(Es.widthCache[i])return Es.widthCache[i];try{var o=document.getElementById(AT);o||(o=document.createElement("span"),o.setAttribute("id",AT),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var s=Cw(Cw({},sK),n);Object.assign(o.style,s),o.textContent="".concat(t);var c=o.getBoundingClientRect(),f={width:c.width,height:c.height};return Es.widthCache[i]=f,++Es.cacheCount>aK&&(Es.cacheCount=0,Es.widthCache={}),f}catch{return{width:0,height:0}}},cK=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function mu(e){"@babel/helpers - typeof";return mu=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},mu(e)}function Ch(e,t){return hK(e)||dK(e,t)||fK(e,t)||uK()}function uK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
436
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fK(e,t){if(e){if(typeof e=="string")return ET(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ET(e,t)}}function ET(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function hK(e){if(Array.isArray(e))return e}function pK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vK(n.key),n)}}function mK(e,t,r){return t&&TT(e.prototype,t),r&&TT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vK(e){var t=gK(e,"string");return mu(t)=="symbol"?t:t+""}function gK(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var NT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,kT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,yK=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,xK=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,HD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},bK=Object.keys(HD),$s="NaN";function wK(e,t){return e*HD[t]}var $d=(function(){function e(t,r){pK(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!yK.test(r)&&(this.num=NaN,this.unit=""),bK.includes(r)&&(this.num=wK(t,r),this.unit="px")}return mK(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=xK.exec(r))!==null&&n!==void 0?n:[],o=Ch(i,3),s=o[1],c=o[2];return new e(parseFloat(s),c??"")}}])})();function VD(e){if(e.includes($s))return $s;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=NT.exec(t))!==null&&r!==void 0?r:[],i=Ch(n,4),o=i[1],s=i[2],c=i[3],f=$d.parse(o??""),d=$d.parse(c??""),m=s==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return $s;t=t.replace(NT,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,v=(p=kT.exec(t))!==null&&p!==void 0?p:[],x=Ch(v,4),b=x[1],w=x[2],y=x[3],P=$d.parse(b??""),O=$d.parse(y??""),A=w==="+"?P.add(O):P.subtract(O);if(A.isNaN())return $s;t=t.replace(kT,A.toString())}return t}var RT=/\(([^()]*)\)/;function SK(e){for(var t=e;t.includes("(");){var r=RT.exec(t),n=Ch(r,2),i=n[1];t=t.replace(RT,VD(i))}return t}function _K(e){var t=e.replace(/\s+/g,"");return t=SK(t),t=VD(t),t}function jK(e){try{return _K(e)}catch{return $s}}function Mb(e){var t=jK(e.slice(5,-1));return t===$s?"":t}var PK=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],OK=["dx","dy","angle","className","breakAll"];function Aw(){return Aw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Aw.apply(this,arguments)}function MT(e,t){if(e==null)return{};var r=CK(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IT(e,t){return NK(e)||TK(e,t)||EK(e,t)||AK()}function AK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
437
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EK(e,t){if(e){if(typeof e=="string")return $T(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $T(e,t)}}function $T(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;f=!1}else for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function NK(e){if(Array.isArray(e))return e}var GD=/[ \f\n\r\t\v\u2028\u2029]+/,KD=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var o=[];Ye(r)||(n?o=r.toString().split(""):o=r.toString().split(GD));var s=o.map(function(f){return{word:f,width:Xc(f,i).width}}),c=n?0:Xc(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:c}}catch{return null}},kK=function(t,r,n,i,o){var s=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=he(s),p=c,v=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return H.reduce(function(B,X){var W=X.word,q=X.width,V=B[B.length-1];if(V&&(i==null||o||V.width+q+n<Number(i)))V.words.push(W),V.width+=q+n;else{var D={words:[W],width:q};B.push(D)}return B},[])},x=v(r),b=function(H){return H.reduce(function(B,X){return B.width>X.width?B:X})};if(!m)return x;for(var w="…",y=function(H){var B=p.slice(0,H),X=KD({breakAll:d,style:f,children:B+w}).wordsWithComputedWidth,W=v(X),q=W.length>s||b(W).width>Number(i);return[q,W]},P=0,O=p.length-1,A=0,C;P<=O&&A<=p.length-1;){var _=Math.floor((P+O)/2),E=_-1,N=y(E),R=IT(N,2),M=R[0],F=R[1],I=y(_),$=IT(I,1),L=$[0];if(!M&&!L&&(P=_+1),M&&L&&(O=_-1),!M&&L){C=F;break}A++}return C||x},DT=function(t){var r=Ye(t)?[]:t.toString().split(GD);return[{words:r}]},RK=function(t){var r=t.width,n=t.scaleToFit,i=t.children,o=t.style,s=t.breakAll,c=t.maxLines;if((r||n)&&!Va.isSsr){var f,d,m=KD({breakAll:s,children:i,style:o});if(m){var p=m.wordsWithComputedWidth,v=m.spaceWidth;f=p,d=v}else return DT(i);return kK({breakAll:s,children:i,maxLines:c,style:o},f,d,r,n)}return DT(i)},LT="#808080",Ah=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,s=t.lineHeight,c=s===void 0?"1em":s,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,p=m===void 0?!1:m,v=t.textAnchor,x=v===void 0?"start":v,b=t.verticalAnchor,w=b===void 0?"end":b,y=t.fill,P=y===void 0?LT:y,O=MT(t,PK),A=S.useMemo(function(){return RK({breakAll:O.breakAll,children:O.children,maxLines:O.maxLines,scaleToFit:p,style:O.style,width:O.width})},[O.breakAll,O.children,O.maxLines,p,O.style,O.width]),C=O.dx,_=O.dy,E=O.angle,N=O.className,R=O.breakAll,M=MT(O,OK);if(!Zt(n)||!Zt(o))return null;var F=n+(he(C)?C:0),I=o+(he(_)?_:0),$;switch(w){case"start":$=Mb("calc(".concat(d,")"));break;case"middle":$=Mb("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:$=Mb("calc(".concat(A.length-1," * -").concat(c,")"));break}var L=[];if(p){var U=A[0].width,H=O.width;L.push("scale(".concat((he(H)?H/U:1)/U,")"))}return E&&L.push("rotate(".concat(E,", ").concat(F,", ").concat(I,")")),L.length&&(M.transform=L.join(" ")),K.createElement("text",Aw({},Ve(M,!0),{x:F,y:I,className:Je("recharts-text",N),textAnchor:x,fill:P.includes("url")?LT:P}),A.map(function(B,X){var W=B.words.join(R?"":" ");return K.createElement("tspan",{x:F,dy:X===0?$:c,key:"".concat(W,"-").concat(X)},W)}))};function Do(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function MK(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ZS(e){let t,r,n;e.length!==2?(t=Do,r=(c,f)=>Do(e(c),f),n=(c,f)=>e(c)-f):(t=e===Do||e===MK?e:IK,r=e,n=e);function i(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;r(c[p],f)<0?d=p+1:m=p}while(d<m)}return d}function o(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;r(c[p],f)<=0?d=p+1:m=p}while(d<m)}return d}function s(c,f,d=0,m=c.length){const p=i(c,f,d,m-1);return p>d&&n(c[p-1],f)>-n(c[p],f)?p-1:p}return{left:i,center:s,right:o}}function IK(){return 0}function XD(e){return e===null?NaN:+e}function*$K(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const DK=ZS(Do),rf=DK.right;ZS(XD).center;class FT extends Map{constructor(t,r=BK){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(BT(this,t))}has(t){return super.has(BT(this,t))}set(t,r){return super.set(LK(this,t),r)}delete(t){return super.delete(FK(this,t))}}function BT({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function LK({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function FK({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function BK(e){return e!==null&&typeof e=="object"?e.valueOf():e}function zK(e=Do){if(e===Do)return YD;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function YD(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const qK=Math.sqrt(50),UK=Math.sqrt(10),WK=Math.sqrt(2);function Eh(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),s=o>=qK?10:o>=UK?5:o>=WK?2:1;let c,f,d;return i<0?(d=Math.pow(10,-i)/s,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*s,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=r&&r<2?Eh(e,t,r*2):[c,f,d]}function Ew(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,o,s]=n?Eh(t,e,r):Eh(e,t,r);if(!(o>=i))return[];const c=o-i+1,f=new Array(c);if(n)if(s<0)for(let d=0;d<c;++d)f[d]=(o-d)/-s;else for(let d=0;d<c;++d)f[d]=(o-d)*s;else if(s<0)for(let d=0;d<c;++d)f[d]=(i+d)/-s;else for(let d=0;d<c;++d)f[d]=(i+d)*s;return f}function Tw(e,t,r){return t=+t,e=+e,r=+r,Eh(e,t,r)[2]}function Nw(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Tw(t,e,r):Tw(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function zT(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function qT(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function QD(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?YD:zK(i);n>r;){if(n-r>600){const f=n-r+1,d=t-r+1,m=Math.log(f),p=.5*Math.exp(2*m/3),v=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),x=Math.max(r,Math.floor(t-d*p/f+v)),b=Math.min(n,Math.floor(t+(f-d)*p/f+v));QD(e,t,x,b,i)}const o=e[t];let s=r,c=n;for(Ic(e,r,t),i(e[n],o)>0&&Ic(e,r,n);s<c;){for(Ic(e,s,c),++s,--c;i(e[s],o)<0;)++s;for(;i(e[c],o)>0;)--c}i(e[r],o)===0?Ic(e,r,c):(++c,Ic(e,c,n)),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function Ic(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function HK(e,t,r){if(e=Float64Array.from($K(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return qT(e);if(t>=1)return zT(e);var n,i=(n-1)*t,o=Math.floor(i),s=zT(QD(e,o).subarray(0,o+1)),c=qT(e.subarray(o+1));return s+(c-s)*(i-o)}}function VK(e,t,r=XD){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),s=+r(e[o],o,e),c=+r(e[o+1],o+1,e);return s+(c-s)*(i-o)}}function GK(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(i);++n<i;)o[n]=e+n*r;return o}function Ll(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function nf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Jo(){}var Da=.7,al=1/Da,Vs="\\s*([+-]?\\d+)\\s*",vu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KK=/^#([0-9a-f]{3,8})$/,XK=new RegExp(`^rgb\\(${Vs},${Vs},${Vs}\\)$`),YK=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),QK=new RegExp(`^rgba\\(${Vs},${Vs},${Vs},${vu}\\)$`),ZK=new RegExp(`^rgba\\(${ei},${ei},${ei},${vu}\\)$`),JK=new RegExp(`^hsl\\(${vu},${ei},${ei}\\)$`),eX=new RegExp(`^hsla\\(${vu},${ei},${ei},${vu}\\)$`),UT={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};Ll(Jo,gu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WT,formatHex:WT,formatHex8:tX,formatHsl:rX,formatRgb:HT,toString:HT});function WT(){return this.rgb().formatHex()}function tX(){return this.rgb().formatHex8()}function rX(){return ZD(this).formatHsl()}function HT(){return this.rgb().formatRgb()}function gu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=KK.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?VT(t):r===3?new ar(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dd(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=XK.exec(e))?new ar(t[1],t[2],t[3],1):(t=YK.exec(e))?new ar(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=QK.exec(e))?Dd(t[1],t[2],t[3],t[4]):(t=ZK.exec(e))?Dd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=JK.exec(e))?XT(t[1],t[2]/100,t[3]/100,1):(t=eX.exec(e))?XT(t[1],t[2]/100,t[3]/100,t[4]):UT.hasOwnProperty(e)?VT(UT[e]):e==="transparent"?new ar(NaN,NaN,NaN,0):null}function VT(e){return new ar(e>>16&255,e>>8&255,e&255,1)}function Dd(e,t,r,n){return n<=0&&(e=t=r=NaN),new ar(e,t,r,n)}function JS(e){return e instanceof Jo||(e=gu(e)),e?(e=e.rgb(),new ar(e.r,e.g,e.b,e.opacity)):new ar}function kw(e,t,r,n){return arguments.length===1?JS(e):new ar(e,t,r,n??1)}function ar(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ll(ar,kw,nf(Jo,{brighter(e){return e=e==null?al:Math.pow(al,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new ar(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ar(Aa(this.r),Aa(this.g),Aa(this.b),Th(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:GT,formatHex:GT,formatHex8:nX,formatRgb:KT,toString:KT}));function GT(){return`#${ja(this.r)}${ja(this.g)}${ja(this.b)}`}function nX(){return`#${ja(this.r)}${ja(this.g)}${ja(this.b)}${ja((isNaN(this.opacity)?1:this.opacity)*255)}`}function KT(){const e=Th(this.opacity);return`${e===1?"rgb(":"rgba("}${Aa(this.r)}, ${Aa(this.g)}, ${Aa(this.b)}${e===1?")":`, ${e})`}`}function Th(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Aa(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ja(e){return e=Aa(e),(e<16?"0":"")+e.toString(16)}function XT(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ln(e,t,r,n)}function ZD(e){if(e instanceof Ln)return new Ln(e.h,e.s,e.l,e.opacity);if(e instanceof Jo||(e=gu(e)),!e)return new Ln;if(e instanceof Ln)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=NaN,c=o-i,f=(o+i)/2;return c?(t===o?s=(r-n)/c+(r<n)*6:r===o?s=(n-t)/c+2:s=(t-r)/c+4,c/=f<.5?o+i:2-o-i,s*=60):c=f>0&&f<1?0:s,new Ln(s,c,f,e.opacity)}function iX(e,t,r,n){return arguments.length===1?ZD(e):new Ln(e,t,r,n??1)}function Ln(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ll(Ln,iX,nf(Jo,{brighter(e){return e=e==null?al:Math.pow(al,e),new Ln(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new Ln(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new ar(Ib(e>=240?e-240:e+120,i,n),Ib(e,i,n),Ib(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ln(YT(this.h),Ld(this.s),Ld(this.l),Th(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=Th(this.opacity);return`${e===1?"hsl(":"hsla("}${YT(this.h)}, ${Ld(this.s)*100}%, ${Ld(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YT(e){return e=(e||0)%360,e<0?e+360:e}function Ld(e){return Math.max(0,Math.min(1,e||0))}function Ib(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const JD=Math.PI/180,eL=180/Math.PI,Nh=18,tL=.96422,rL=1,nL=.82521,iL=4/29,Gs=6/29,oL=3*Gs*Gs,oX=Gs*Gs*Gs;function aL(e){if(e instanceof ti)return new ti(e.l,e.a,e.b,e.opacity);if(e instanceof Ci)return sL(e);e instanceof ar||(e=JS(e));var t=Fb(e.r),r=Fb(e.g),n=Fb(e.b),i=$b((.2225045*t+.7168786*r+.0606169*n)/rL),o,s;return t===r&&r===n?o=s=i:(o=$b((.4360747*t+.3850649*r+.1430804*n)/tL),s=$b((.0139322*t+.0971045*r+.7141733*n)/nL)),new ti(116*i-16,500*(o-i),200*(i-s),e.opacity)}function aX(e,t,r,n){return arguments.length===1?aL(e):new ti(e,t,r,n??1)}function ti(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Ll(ti,aX,nf(Jo,{brighter(e){return new ti(this.l+Nh*(e??1),this.a,this.b,this.opacity)},darker(e){return new ti(this.l-Nh*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=tL*Db(t),e=rL*Db(e),r=nL*Db(r),new ar(Lb(3.1338561*t-1.6168667*e-.4906146*r),Lb(-.9787684*t+1.9161415*e+.033454*r),Lb(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function $b(e){return e>oX?Math.pow(e,1/3):e/oL+iL}function Db(e){return e>Gs?e*e*e:oL*(e-iL)}function Lb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Fb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function sX(e){if(e instanceof Ci)return new Ci(e.h,e.c,e.l,e.opacity);if(e instanceof ti||(e=aL(e)),e.a===0&&e.b===0)return new Ci(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*eL;return new Ci(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function lX(e,t,r,n){return arguments.length===1?sX(e):new Ci(e,t,r,n??1)}function Ci(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function sL(e){if(isNaN(e.h))return new ti(e.l,0,0,e.opacity);var t=e.h*JD;return new ti(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ll(Ci,lX,nf(Jo,{brighter(e){return new Ci(this.h,this.c,this.l+Nh*(e??1),this.opacity)},darker(e){return new Ci(this.h,this.c,this.l-Nh*(e??1),this.opacity)},rgb(){return sL(this).rgb()}}));var lL=-.14861,e_=1.78277,t_=-.29227,Gp=-.90649,yu=1.97294,QT=yu*Gp,ZT=yu*e_,JT=e_*t_-Gp*lL;function cX(e){if(e instanceof Ea)return new Ea(e.h,e.s,e.l,e.opacity);e instanceof ar||(e=JS(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(JT*n+QT*t-ZT*r)/(JT+QT-ZT),o=n-i,s=(yu*(r-i)-t_*o)/Gp,c=Math.sqrt(s*s+o*o)/(yu*i*(1-i)),f=c?Math.atan2(s,o)*eL-120:NaN;return new Ea(f<0?f+360:f,c,i,e.opacity)}function Rw(e,t,r,n){return arguments.length===1?cX(e):new Ea(e,t,r,n??1)}function Ea(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ll(Ea,Rw,nf(Jo,{brighter(e){return e=e==null?al:Math.pow(al,e),new Ea(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Da:Math.pow(Da,e),new Ea(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*JD,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new ar(255*(t+r*(lL*n+e_*i)),255*(t+r*(t_*n+Gp*i)),255*(t+r*(yu*n)),this.opacity)}}));var Kp=e=>()=>e;function cL(e,t){return function(r){return e+r*t}}function uX(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function fX(e,t){var r=t-e;return r?cL(e,r>180||r<-180?r-360*Math.round(r/360):r):Kp(isNaN(e)?t:e)}function dX(e){return(e=+e)==1?Ks:function(t,r){return r-t?uX(t,r,e):Kp(isNaN(t)?r:t)}}function Ks(e,t){var r=t-e;return r?cL(e,r):Kp(isNaN(e)?t:e)}var eN=(function e(t){var r=dX(t);function n(i,o){var s=r((i=kw(i)).r,(o=kw(o)).r),c=r(i.g,o.g),f=r(i.b,o.b),d=Ks(i.opacity,o.opacity);return function(m){return i.r=s(m),i.g=c(m),i.b=f(m),i.opacity=d(m),i+""}}return n.gamma=e,n})(1);function hX(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(o){for(i=0;i<r;++i)n[i]=e[i]*(1-o)+t[i]*o;return n}}function pX(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function mX(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),o=new Array(r),s;for(s=0;s<n;++s)i[s]=Fl(e[s],t[s]);for(;s<r;++s)o[s]=t[s];return function(c){for(s=0;s<n;++s)o[s]=i[s](c);return o}}function vX(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function kh(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function gX(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Fl(e[i],t[i]):n[i]=t[i];return function(o){for(i in r)n[i]=r[i](o);return n}}var Mw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Bb=new RegExp(Mw.source,"g");function yX(e){return function(){return e}}function xX(e){return function(t){return e(t)+""}}function bX(e,t){var r=Mw.lastIndex=Bb.lastIndex=0,n,i,o,s=-1,c=[],f=[];for(e=e+"",t=t+"";(n=Mw.exec(e))&&(i=Bb.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),c[s]?c[s]+=o:c[++s]=o),(n=n[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,f.push({i:s,x:kh(n,i)})),r=Bb.lastIndex;return r<t.length&&(o=t.slice(r),c[s]?c[s]+=o:c[++s]=o),c.length<2?f[0]?xX(f[0].x):yX(t):(t=f.length,function(d){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(d);return c.join("")})}function Fl(e,t){var r=typeof t,n;return t==null||r==="boolean"?Kp(t):(r==="number"?kh:r==="string"?(n=gu(t))?(t=n,eN):bX:t instanceof gu?eN:t instanceof Date?vX:pX(t)?hX:Array.isArray(t)?mX:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?gX:kh)(e,t)}function r_(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var wX=1e-12;function tN(e){return((e=Math.exp(e))+1/e)/2}function SX(e){return((e=Math.exp(e))-1/e)/2}function _X(e){return((e=Math.exp(2*e))-1)/(e+1)}(function e(t,r,n){function i(o,s){var c=o[0],f=o[1],d=o[2],m=s[0],p=s[1],v=s[2],x=m-c,b=p-f,w=x*x+b*b,y,P;if(w<wX)P=Math.log(v/d)/t,y=function(N){return[c+N*x,f+N*b,d*Math.exp(t*N*P)]};else{var O=Math.sqrt(w),A=(v*v-d*d+n*w)/(2*d*r*O),C=(v*v-d*d-n*w)/(2*v*r*O),_=Math.log(Math.sqrt(A*A+1)-A),E=Math.log(Math.sqrt(C*C+1)-C);P=(E-_)/t,y=function(N){var R=N*P,M=tN(_),F=d/(r*O)*(M*_X(t*R+_)-SX(_));return[c+F*x,f+F*b,d*M/tN(t*R+_)]}}return y.duration=Math.abs(P)*1e3*t/Math.SQRT2,y}return i.rho=function(o){var s=Math.max(.001,+o),c=s*s,f=c*c;return e(s,c,f)},i})(Math.SQRT2,2,4);function uL(e){return(function t(r){r=+r;function n(i,o){var s=e((i=Rw(i)).h,(o=Rw(o)).h),c=Ks(i.s,o.s),f=Ks(i.l,o.l),d=Ks(i.opacity,o.opacity);return function(m){return i.h=s(m),i.s=c(m),i.l=f(Math.pow(m,r)),i.opacity=d(m),i+""}}return n.gamma=t,n})(1)}uL(fX);uL(Ks);function jX(e,t){t===void 0&&(t=e,e=Fl);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(s){var c=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return o[c](s-c)}}function PX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rh(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function sl(e){return e=Rh(Math.abs(e)),e?e[1]:NaN}function OX(e,t){return function(r,n){for(var i=r.length,o=[],s=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>n&&(c=Math.max(1,n-f)),o.push(r.substring(i-=c,i+c)),!((f+=c+1)>n));)c=e[s=(s+1)%e.length];return o.reverse().join(t)}}function CX(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var AX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xu(e){if(!(t=AX.exec(e)))throw new Error("invalid format: "+e);var t;return new n_({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]})}xu.prototype=n_.prototype;function n_(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+""}n_.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 EX(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Mh;function TX(e,t){var r=Rh(e,t);if(!r)return Mh=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(Mh=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Rh(e,Math.max(0,t+o-1))[0]}function rN(e,t){var r=Rh(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var nN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:PX,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)=>rN(e*100,t),r:rN,s:TX,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function iN(e){return e}var oN=Array.prototype.map,aN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function NX(e){var t=e.grouping===void 0||e.thousands===void 0?iN:OX(oN.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?iN:CX(oN.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p,v){p=xu(p);var x=p.fill,b=p.align,w=p.sign,y=p.symbol,P=p.zero,O=p.width,A=p.comma,C=p.precision,_=p.trim,E=p.type;E==="n"?(A=!0,E="g"):nN[E]||(C===void 0&&(C=12),_=!0,E="g"),(P||x==="0"&&b==="=")&&(P=!0,x="0",b="=");var N=(v&&v.prefix!==void 0?v.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),R=(y==="$"?n:/[%p]/.test(E)?s:"")+(v&&v.suffix!==void 0?v.suffix:""),M=nN[E],F=/[defgprs%]/.test(E);C=C===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function I($){var L=N,U=R,H,B,X;if(E==="c")U=M($)+U,$="";else{$=+$;var W=$<0||1/$<0;if($=isNaN($)?f:M(Math.abs($),C),_&&($=EX($)),W&&+$==0&&w!=="+"&&(W=!1),L=(W?w==="("?w:c:w==="-"||w==="("?"":w)+L,U=(E==="s"&&!isNaN($)&&Mh!==void 0?aN[8+Mh/3]:"")+U+(W&&w==="("?")":""),F){for(H=-1,B=$.length;++H<B;)if(X=$.charCodeAt(H),48>X||X>57){U=(X===46?i+$.slice(H+1):$.slice(H))+U,$=$.slice(0,H);break}}}A&&!P&&($=t($,1/0));var q=L.length+$.length+U.length,V=q<O?new Array(O-q+1).join(x):"";switch(A&&P&&($=t(V+$,V.length?O-U.length:1/0),V=""),b){case"<":$=L+$+U+V;break;case"=":$=L+V+$+U;break;case"^":$=V.slice(0,q=V.length>>1)+L+$+U+V.slice(q);break;default:$=V+L+$+U;break}return o($)}return I.toString=function(){return p+""},I}function m(p,v){var x=Math.max(-8,Math.min(8,Math.floor(sl(v)/3)))*3,b=Math.pow(10,-x),w=d((p=xu(p),p.type="f",p),{suffix:aN[8+x/3]});return function(y){return w(b*y)}}return{format:d,formatPrefix:m}}var Fd,i_,fL;kX({thousands:",",grouping:[3],currency:["$",""]});function kX(e){return Fd=NX(e),i_=Fd.format,fL=Fd.formatPrefix,Fd}function RX(e){return Math.max(0,-sl(Math.abs(e)))}function MX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(sl(t)/3)))*3-sl(Math.abs(e)))}function IX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sl(t)-sl(e))+1}const zb=new Date,qb=new Date;function Jt(e,t,r,n){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),c=i.ceil(o);return o-s<c-o?s:c},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,c)=>{const f=[];if(o=i.ceil(o),c=c==null?1:Math.floor(c),!(o<s)||!(c>0))return f;let d;do f.push(d=new Date(+o)),t(o,c),e(o);while(d<o&&o<s);return f},i.filter=o=>Jt(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,c)=>{if(s>=s)if(c<0)for(;++c<=0;)for(;t(s,-1),!o(s););else for(;--c>=0;)for(;t(s,1),!o(s););}),r&&(i.count=(o,s)=>(zb.setTime(+o),qb.setTime(+s),e(zb),e(qb),Math.floor(r(zb,qb))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(n?s=>n(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const Ih=Jt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ih.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Jt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ih);Ih.range;const Ai=1e3,bn=Ai*60,Ei=bn*60,Yi=Ei*24,o_=Yi*7,sN=Yi*30,Ub=Yi*365,Pa=Jt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ai)},(e,t)=>(t-e)/Ai,e=>e.getUTCSeconds());Pa.range;const a_=Jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ai)},(e,t)=>{e.setTime(+e+t*bn)},(e,t)=>(t-e)/bn,e=>e.getMinutes());a_.range;const s_=Jt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*bn)},(e,t)=>(t-e)/bn,e=>e.getUTCMinutes());s_.range;const l_=Jt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ai-e.getMinutes()*bn)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getHours());l_.range;const c_=Jt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ei)},(e,t)=>(t-e)/Ei,e=>e.getUTCHours());c_.range;const of=Jt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*bn)/Yi,e=>e.getDate()-1);of.range;const Xp=Jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yi,e=>e.getUTCDate()-1);Xp.range;const dL=Jt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yi,e=>Math.floor(e/Yi));dL.range;function Ga(e){return Jt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*bn)/o_)}const Yp=Ga(0),$h=Ga(1),$X=Ga(2),DX=Ga(3),ll=Ga(4),LX=Ga(5),FX=Ga(6);Yp.range;$h.range;$X.range;DX.range;ll.range;LX.range;FX.range;function Ka(e){return Jt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/o_)}const Qp=Ka(0),Dh=Ka(1),BX=Ka(2),zX=Ka(3),cl=Ka(4),qX=Ka(5),UX=Ka(6);Qp.range;Dh.range;BX.range;zX.range;cl.range;qX.range;UX.range;const u_=Jt(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());u_.range;const f_=Jt(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());f_.range;const Qi=Jt(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());Qi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Jt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Qi.range;const Zi=Jt(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());Zi.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Jt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Zi.range;function hL(e,t,r,n,i,o){const s=[[Pa,1,Ai],[Pa,5,5*Ai],[Pa,15,15*Ai],[Pa,30,30*Ai],[o,1,bn],[o,5,5*bn],[o,15,15*bn],[o,30,30*bn],[i,1,Ei],[i,3,3*Ei],[i,6,6*Ei],[i,12,12*Ei],[n,1,Yi],[n,2,2*Yi],[r,1,o_],[t,1,sN],[t,3,3*sN],[e,1,Ub]];function c(d,m,p){const v=m<d;v&&([d,m]=[m,d]);const x=p&&typeof p.range=="function"?p:f(d,m,p),b=x?x.range(d,+m+1):[];return v?b.reverse():b}function f(d,m,p){const v=Math.abs(m-d)/p,x=ZS(([,,y])=>y).right(s,v);if(x===s.length)return e.every(Nw(d/Ub,m/Ub,p));if(x===0)return Ih.every(Math.max(Nw(d,m,p),1));const[b,w]=s[v/s[x-1][2]<s[x][2]/v?x-1:x];return b.every(w)}return[c,f]}const[WX,HX]=hL(Zi,f_,Qp,dL,c_,s_),[VX,GX]=hL(Qi,u_,Yp,of,l_,a_);function Wb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $c(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function KX(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,s=e.shortDays,c=e.months,f=e.shortMonths,d=Dc(i),m=Lc(i),p=Dc(o),v=Lc(o),x=Dc(s),b=Lc(s),w=Dc(c),y=Lc(c),P=Dc(f),O=Lc(f),A={a:X,A:W,b:q,B:V,c:null,d:hN,e:hN,f:gY,g:CY,G:EY,H:pY,I:mY,j:vY,L:pL,m:yY,M:xY,p:D,q:Y,Q:vN,s:gN,S:bY,u:wY,U:SY,V:_Y,w:jY,W:PY,x:null,X:null,y:OY,Y:AY,Z:TY,"%":mN},C={a:ie,A:ne,b:pe,B:ge,c:null,d:pN,e:pN,f:MY,g:WY,G:VY,H:NY,I:kY,j:RY,L:vL,m:IY,M:$Y,p:ke,q:Ee,Q:vN,s:gN,S:DY,u:LY,U:FY,V:BY,w:zY,W:qY,x:null,X:null,y:UY,Y:HY,Z:GY,"%":mN},_={a:F,A:I,b:$,B:L,c:U,d:fN,e:fN,f:uY,g:uN,G:cN,H:dN,I:dN,j:aY,L:cY,m:oY,M:sY,p:M,q:iY,Q:dY,s:hY,S:lY,u:JX,U:eY,V:tY,w:ZX,W:rY,x:H,X:B,y:uN,Y:cN,Z:nY,"%":fY};A.x=E(r,A),A.X=E(n,A),A.c=E(t,A),C.x=E(r,C),C.X=E(n,C),C.c=E(t,C);function E(oe,ae){return function(xe){var Z=[],ve=-1,de=0,Re=oe.length,ot,mt,lr;for(xe instanceof Date||(xe=new Date(+xe));++ve<Re;)oe.charCodeAt(ve)===37&&(Z.push(oe.slice(de,ve)),(mt=lN[ot=oe.charAt(++ve)])!=null?ot=oe.charAt(++ve):mt=ot==="e"?" ":"0",(lr=ae[ot])&&(ot=lr(xe,mt)),Z.push(ot),de=ve+1);return Z.push(oe.slice(de,ve)),Z.join("")}}function N(oe,ae){return function(xe){var Z=$c(1900,void 0,1),ve=R(Z,oe,xe+="",0),de,Re;if(ve!=xe.length)return null;if("Q"in Z)return new Date(Z.Q);if("s"in Z)return new Date(Z.s*1e3+("L"in Z?Z.L:0));if(ae&&!("Z"in Z)&&(Z.Z=0),"p"in Z&&(Z.H=Z.H%12+Z.p*12),Z.m===void 0&&(Z.m="q"in Z?Z.q:0),"V"in Z){if(Z.V<1||Z.V>53)return null;"w"in Z||(Z.w=1),"Z"in Z?(de=Hb($c(Z.y,0,1)),Re=de.getUTCDay(),de=Re>4||Re===0?Dh.ceil(de):Dh(de),de=Xp.offset(de,(Z.V-1)*7),Z.y=de.getUTCFullYear(),Z.m=de.getUTCMonth(),Z.d=de.getUTCDate()+(Z.w+6)%7):(de=Wb($c(Z.y,0,1)),Re=de.getDay(),de=Re>4||Re===0?$h.ceil(de):$h(de),de=of.offset(de,(Z.V-1)*7),Z.y=de.getFullYear(),Z.m=de.getMonth(),Z.d=de.getDate()+(Z.w+6)%7)}else("W"in Z||"U"in Z)&&("w"in Z||(Z.w="u"in Z?Z.u%7:"W"in Z?1:0),Re="Z"in Z?Hb($c(Z.y,0,1)).getUTCDay():Wb($c(Z.y,0,1)).getDay(),Z.m=0,Z.d="W"in Z?(Z.w+6)%7+Z.W*7-(Re+5)%7:Z.w+Z.U*7-(Re+6)%7);return"Z"in Z?(Z.H+=Z.Z/100|0,Z.M+=Z.Z%100,Hb(Z)):Wb(Z)}}function R(oe,ae,xe,Z){for(var ve=0,de=ae.length,Re=xe.length,ot,mt;ve<de;){if(Z>=Re)return-1;if(ot=ae.charCodeAt(ve++),ot===37){if(ot=ae.charAt(ve++),mt=_[ot in lN?ae.charAt(ve++):ot],!mt||(Z=mt(oe,xe,Z))<0)return-1}else if(ot!=xe.charCodeAt(Z++))return-1}return Z}function M(oe,ae,xe){var Z=d.exec(ae.slice(xe));return Z?(oe.p=m.get(Z[0].toLowerCase()),xe+Z[0].length):-1}function F(oe,ae,xe){var Z=x.exec(ae.slice(xe));return Z?(oe.w=b.get(Z[0].toLowerCase()),xe+Z[0].length):-1}function I(oe,ae,xe){var Z=p.exec(ae.slice(xe));return Z?(oe.w=v.get(Z[0].toLowerCase()),xe+Z[0].length):-1}function $(oe,ae,xe){var Z=P.exec(ae.slice(xe));return Z?(oe.m=O.get(Z[0].toLowerCase()),xe+Z[0].length):-1}function L(oe,ae,xe){var Z=w.exec(ae.slice(xe));return Z?(oe.m=y.get(Z[0].toLowerCase()),xe+Z[0].length):-1}function U(oe,ae,xe){return R(oe,t,ae,xe)}function H(oe,ae,xe){return R(oe,r,ae,xe)}function B(oe,ae,xe){return R(oe,n,ae,xe)}function X(oe){return s[oe.getDay()]}function W(oe){return o[oe.getDay()]}function q(oe){return f[oe.getMonth()]}function V(oe){return c[oe.getMonth()]}function D(oe){return i[+(oe.getHours()>=12)]}function Y(oe){return 1+~~(oe.getMonth()/3)}function ie(oe){return s[oe.getUTCDay()]}function ne(oe){return o[oe.getUTCDay()]}function pe(oe){return f[oe.getUTCMonth()]}function ge(oe){return c[oe.getUTCMonth()]}function ke(oe){return i[+(oe.getUTCHours()>=12)]}function Ee(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var ae=E(oe+="",A);return ae.toString=function(){return oe},ae},parse:function(oe){var ae=N(oe+="",!1);return ae.toString=function(){return oe},ae},utcFormat:function(oe){var ae=E(oe+="",C);return ae.toString=function(){return oe},ae},utcParse:function(oe){var ae=N(oe+="",!0);return ae.toString=function(){return oe},ae}}}var lN={"-":"",_:" ",0:"0"},sr=/^\s*\d+/,XX=/^%/,YX=/[\\^$*+?|[\]().{}]/g;function it(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function QX(e){return e.replace(YX,"\\$&")}function Dc(e){return new RegExp("^(?:"+e.map(QX).join("|")+")","i")}function Lc(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function ZX(e,t,r){var n=sr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function JX(e,t,r){var n=sr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function eY(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function tY(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rY(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function cN(e,t,r){var n=sr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function uN(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nY(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iY(e,t,r){var n=sr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function oY(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function fN(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function aY(e,t,r){var n=sr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function dN(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sY(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lY(e,t,r){var n=sr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cY(e,t,r){var n=sr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function uY(e,t,r){var n=sr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fY(e,t,r){var n=XX.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function dY(e,t,r){var n=sr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function hY(e,t,r){var n=sr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function hN(e,t){return it(e.getDate(),t,2)}function pY(e,t){return it(e.getHours(),t,2)}function mY(e,t){return it(e.getHours()%12||12,t,2)}function vY(e,t){return it(1+of.count(Qi(e),e),t,3)}function pL(e,t){return it(e.getMilliseconds(),t,3)}function gY(e,t){return pL(e,t)+"000"}function yY(e,t){return it(e.getMonth()+1,t,2)}function xY(e,t){return it(e.getMinutes(),t,2)}function bY(e,t){return it(e.getSeconds(),t,2)}function wY(e){var t=e.getDay();return t===0?7:t}function SY(e,t){return it(Yp.count(Qi(e)-1,e),t,2)}function mL(e){var t=e.getDay();return t>=4||t===0?ll(e):ll.ceil(e)}function _Y(e,t){return e=mL(e),it(ll.count(Qi(e),e)+(Qi(e).getDay()===4),t,2)}function jY(e){return e.getDay()}function PY(e,t){return it($h.count(Qi(e)-1,e),t,2)}function OY(e,t){return it(e.getFullYear()%100,t,2)}function CY(e,t){return e=mL(e),it(e.getFullYear()%100,t,2)}function AY(e,t){return it(e.getFullYear()%1e4,t,4)}function EY(e,t){var r=e.getDay();return e=r>=4||r===0?ll(e):ll.ceil(e),it(e.getFullYear()%1e4,t,4)}function TY(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+it(t/60|0,"0",2)+it(t%60,"0",2)}function pN(e,t){return it(e.getUTCDate(),t,2)}function NY(e,t){return it(e.getUTCHours(),t,2)}function kY(e,t){return it(e.getUTCHours()%12||12,t,2)}function RY(e,t){return it(1+Xp.count(Zi(e),e),t,3)}function vL(e,t){return it(e.getUTCMilliseconds(),t,3)}function MY(e,t){return vL(e,t)+"000"}function IY(e,t){return it(e.getUTCMonth()+1,t,2)}function $Y(e,t){return it(e.getUTCMinutes(),t,2)}function DY(e,t){return it(e.getUTCSeconds(),t,2)}function LY(e){var t=e.getUTCDay();return t===0?7:t}function FY(e,t){return it(Qp.count(Zi(e)-1,e),t,2)}function gL(e){var t=e.getUTCDay();return t>=4||t===0?cl(e):cl.ceil(e)}function BY(e,t){return e=gL(e),it(cl.count(Zi(e),e)+(Zi(e).getUTCDay()===4),t,2)}function zY(e){return e.getUTCDay()}function qY(e,t){return it(Dh.count(Zi(e)-1,e),t,2)}function UY(e,t){return it(e.getUTCFullYear()%100,t,2)}function WY(e,t){return e=gL(e),it(e.getUTCFullYear()%100,t,2)}function HY(e,t){return it(e.getUTCFullYear()%1e4,t,4)}function VY(e,t){var r=e.getUTCDay();return e=r>=4||r===0?cl(e):cl.ceil(e),it(e.getUTCFullYear()%1e4,t,4)}function GY(){return"+0000"}function mN(){return"%"}function vN(e){return+e}function gN(e){return Math.floor(+e/1e3)}var Ts,yL,d_,xL;KY({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 KY(e){return Ts=KX(e),yL=Ts.format,Ts.parse,d_=Ts.utcFormat,xL=Ts.utcParse,Ts}var bL="%Y-%m-%dT%H:%M:%S.%LZ";function XY(e){return e.toISOString()}Date.prototype.toISOString||d_(bL);function YY(e){var t=new Date(e);return isNaN(t)?null:t}+new Date("2000-01-01T00:00:00.000Z")||xL(bL);function On(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Iw=Symbol("implicit");function h_(){var e=new FT,t=[],r=[],n=Iw;function i(o){let s=e.get(o);if(s===void 0){if(n!==Iw)return n;e.set(o,s=t.push(o)-1)}return r[s%r.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new FT;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(r=Array.from(o),i):r.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return h_(t,r).unknown(n)},On.apply(i,arguments),i}function bu(){var e=h_().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,o,s,c=!1,f=0,d=0,m=.5;delete e.unknown;function p(){var v=t().length,x=i<n,b=x?i:n,w=x?n:i;o=(w-b)/Math.max(1,v-f+d*2),c&&(o=Math.floor(o)),b+=(w-b-o*(v-f))*m,s=o*(1-f),c&&(b=Math.round(b),s=Math.round(s));var y=GK(v).map(function(P){return b+o*P});return r(x?y.reverse():y)}return e.domain=function(v){return arguments.length?(t(v),p()):t()},e.range=function(v){return arguments.length?([n,i]=v,n=+n,i=+i,p()):[n,i]},e.rangeRound=function(v){return[n,i]=v,n=+n,i=+i,c=!0,p()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(v){return arguments.length?(c=!!v,p()):c},e.padding=function(v){return arguments.length?(f=Math.min(1,d=+v),p()):f},e.paddingInner=function(v){return arguments.length?(f=Math.min(1,v),p()):f},e.paddingOuter=function(v){return arguments.length?(d=+v,p()):d},e.align=function(v){return arguments.length?(m=Math.max(0,Math.min(1,v)),p()):m},e.copy=function(){return bu(t(),[n,i]).round(c).paddingInner(f).paddingOuter(d).align(m)},On.apply(p(),arguments)}function wL(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return wL(t())},e}function Yc(){return wL(bu.apply(null,arguments).paddingInner(1))}function QY(e){return function(){return e}}function Lh(e){return+e}var yN=[0,1];function Tr(e){return e}function $w(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:QY(isNaN(t)?NaN:.5)}function ZY(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function JY(e,t,r){var n=e[0],i=e[1],o=t[0],s=t[1];return i<n?(n=$w(i,n),o=r(s,o)):(n=$w(n,i),o=r(o,s)),function(c){return o(n(c))}}function eQ(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=$w(e[s],e[s+1]),o[s]=r(t[s],t[s+1]);return function(c){var f=rf(e,c,1,n)-1;return o[f](i[f](c))}}function af(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Zp(){var e=yN,t=yN,r=Fl,n,i,o,s=Tr,c,f,d;function m(){var v=Math.min(e.length,t.length);return s!==Tr&&(s=ZY(e[0],e[v-1])),c=v>2?eQ:JY,f=d=null,p}function p(v){return v==null||isNaN(v=+v)?o:(f||(f=c(e.map(n),t,r)))(n(s(v)))}return p.invert=function(v){return s(i((d||(d=c(t,e.map(n),kh)))(v)))},p.domain=function(v){return arguments.length?(e=Array.from(v,Lh),m()):e.slice()},p.range=function(v){return arguments.length?(t=Array.from(v),m()):t.slice()},p.rangeRound=function(v){return t=Array.from(v),r=r_,m()},p.clamp=function(v){return arguments.length?(s=v?!0:Tr,m()):s!==Tr},p.interpolate=function(v){return arguments.length?(r=v,m()):r},p.unknown=function(v){return arguments.length?(o=v,p):o},function(v,x){return n=v,i=x,m()}}function p_(){return Zp()(Tr,Tr)}function SL(e,t,r,n){var i=Nw(e,t,r),o;switch(n=xu(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=MX(i,s))&&(n.precision=o),fL(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=IX(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=RX(i))&&(n.precision=o-(n.type==="%")*2);break}}return i_(n)}function ea(e){var t=e.domain;return e.ticks=function(r){var n=t();return Ew(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return SL(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,o=n.length-1,s=n[i],c=n[o],f,d,m=10;for(c<s&&(d=s,s=c,c=d,d=i,i=o,o=d);m-- >0;){if(d=Tw(s,c,r),d===f)return n[i]=s,n[o]=c,t(n);if(d>0)s=Math.floor(s/d)*d,c=Math.ceil(c/d)*d;else if(d<0)s=Math.ceil(s*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function Fh(){var e=p_();return e.copy=function(){return af(e,Fh())},On.apply(e,arguments),ea(e)}function _L(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Lh),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return _L(e).unknown(t)},e=arguments.length?Array.from(e,Lh):[0,1],ea(r)}function jL(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],o=e[n],s;return o<i&&(s=r,r=n,n=s,s=i,i=o,o=s),e[r]=t.floor(i),e[n]=t.ceil(o),e}function xN(e){return Math.log(e)}function bN(e){return Math.exp(e)}function tQ(e){return-Math.log(-e)}function rQ(e){return-Math.exp(-e)}function nQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function iQ(e){return e===10?nQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function oQ(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 wN(e){return(t,r)=>-e(-t,r)}function m_(e){const t=e(xN,bN),r=t.domain;let n=10,i,o;function s(){return i=oQ(n),o=iQ(n),r()[0]<0?(i=wN(i),o=wN(o),e(tQ,rQ)):e(xN,bN),t}return t.base=function(c){return arguments.length?(n=+c,s()):n},t.domain=function(c){return arguments.length?(r(c),s()):r()},t.ticks=c=>{const f=r();let d=f[0],m=f[f.length-1];const p=m<d;p&&([d,m]=[m,d]);let v=i(d),x=i(m),b,w;const y=c==null?10:+c;let P=[];if(!(n%1)&&x-v<y){if(v=Math.floor(v),x=Math.ceil(x),d>0){for(;v<=x;++v)for(b=1;b<n;++b)if(w=v<0?b/o(-v):b*o(v),!(w<d)){if(w>m)break;P.push(w)}}else for(;v<=x;++v)for(b=n-1;b>=1;--b)if(w=v>0?b/o(-v):b*o(v),!(w<d)){if(w>m)break;P.push(w)}P.length*2<y&&(P=Ew(d,m,y))}else P=Ew(v,x,Math.min(x-v,y)).map(o);return p?P.reverse():P},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=n===10?"s":","),typeof f!="function"&&(!(n%1)&&(f=xu(f)).precision==null&&(f.trim=!0),f=i_(f)),c===1/0)return f;const d=Math.max(1,n*c/t.ticks().length);return m=>{let p=m/o(Math.round(i(m)));return p*n<n-.5&&(p*=n),p<=d?f(m):""}},t.nice=()=>r(jL(r(),{floor:c=>o(Math.floor(i(c))),ceil:c=>o(Math.ceil(i(c)))})),t}function PL(){const e=m_(Zp()).domain([1,10]);return e.copy=()=>af(e,PL()).base(e.base()),On.apply(e,arguments),e}function SN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _N(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function v_(e){var t=1,r=e(SN(t),_N(t));return r.constant=function(n){return arguments.length?e(SN(t=+n),_N(t)):t},ea(r)}function OL(){var e=v_(Zp());return e.copy=function(){return af(e,OL()).constant(e.constant())},On.apply(e,arguments)}function jN(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function aQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sQ(e){return e<0?-e*e:e*e}function g_(e){var t=e(Tr,Tr),r=1;function n(){return r===1?e(Tr,Tr):r===.5?e(aQ,sQ):e(jN(r),jN(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ea(t)}function y_(){var e=g_(Zp());return e.copy=function(){return af(e,y_()).exponent(e.exponent())},On.apply(e,arguments),e}function lQ(){return y_.apply(null,arguments).exponent(.5)}function PN(e){return Math.sign(e)*e*e}function cQ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function CL(){var e=p_(),t=[0,1],r=!1,n;function i(o){var s=cQ(e(o));return isNaN(s)?n:r?Math.round(s):s}return i.invert=function(o){return e.invert(PN(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Lh)).map(PN)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(r=!!o,i):r},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return CL(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},On.apply(i,arguments),ea(i)}function AL(){var e=[],t=[],r=[],n;function i(){var s=0,c=Math.max(1,t.length);for(r=new Array(c-1);++s<c;)r[s-1]=VK(e,s/c);return o}function o(s){return s==null||isNaN(s=+s)?n:t[rf(r,s)]}return o.invertExtent=function(s){var c=t.indexOf(s);return c<0?[NaN,NaN]:[c>0?r[c-1]:e[0],c<r.length?r[c]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let c of s)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Do),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(n=s,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return AL().domain(e).range(t).unknown(n)},On.apply(o,arguments)}function EL(){var e=0,t=1,r=1,n=[.5],i=[0,1],o;function s(f){return f!=null&&f<=f?i[rf(n,f,0,r)]:o}function c(){var f=-1;for(n=new Array(r);++f<r;)n[f]=((f+1)*t-(f-r)*e)/(r+1);return s}return s.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},s.range=function(f){return arguments.length?(r=(i=Array.from(f)).length-1,c()):i.slice()},s.invertExtent=function(f){var d=i.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,n[0]]:d>=r?[n[r-1],t]:[n[d-1],n[d]]},s.unknown=function(f){return arguments.length&&(o=f),s},s.thresholds=function(){return n.slice()},s.copy=function(){return EL().domain([e,t]).range(i).unknown(o)},On.apply(ea(s),arguments)}function TL(){var e=[.5],t=[0,1],r,n=1;function i(o){return o!=null&&o<=o?t[rf(e,o,0,n)]:r}return i.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return TL().domain(e).range(t).unknown(r)},On.apply(i,arguments)}function uQ(e){return new Date(e)}function fQ(e){return e instanceof Date?+e:Math.round(e)}function x_(e,t,r,n,i,o,s,c,f,d){var m=p_(),p=m.invert,v=m.domain,x=d(".%L"),b=d(":%S"),w=d("%I:%M"),y=d("%I %p"),P=d("%a %d"),O=d("%b %d"),A=d("%B"),C=d("%Y");function _(E){return(f(E)<E?x:c(E)<E?b:s(E)<E?w:o(E)<E?y:n(E)<E?i(E)<E?P:O:r(E)<E?A:C)(E)}return m.invert=function(E){return new Date(Math.round(p(E)))},m.domain=function(E){return arguments.length?v(Array.from(E,fQ)):v().map(uQ)},m.ticks=function(E){var N=v();return e(N[0],N[N.length-1],E??10)},m.tickFormat=function(E,N){return N==null?_:d(N)},m.nice=function(E){var N=v();return(!E||typeof E.range!="function")&&(E=t(N[0],N[N.length-1],E??10)),E?v(jL(N,E)):m},m.copy=function(){return af(m,x_(e,t,r,n,i,o,s,c,f,d))},m}function dQ(){return On.apply(x_(VX,GX,Qi,u_,Yp,of,l_,a_,Pa,yL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function hQ(){return On.apply(x_(WX,HX,Zi,f_,Qp,Xp,c_,s_,Pa,d_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Jp(){var e=0,t=1,r,n,i,o,s=Tr,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:s(i===0?.5:(p=(o(p)-r)*i,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,r=o(e=+e),n=o(t=+t),i=r===n?0:1/(n-r),d):[e,t]},d.clamp=function(p){return arguments.length?(c=!!p,d):c},d.interpolator=function(p){return arguments.length?(s=p,d):s};function m(p){return function(v){var x,b;return arguments.length?([x,b]=v,s=p(x,b),d):[s(0),s(1)]}}return d.range=m(Fl),d.rangeRound=m(r_),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return o=p,r=p(e),n=p(t),i=r===n?0:1/(n-r),d}}function ta(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function NL(){var e=ea(Jp()(Tr));return e.copy=function(){return ta(e,NL())},oo.apply(e,arguments)}function kL(){var e=m_(Jp()).domain([1,10]);return e.copy=function(){return ta(e,kL()).base(e.base())},oo.apply(e,arguments)}function RL(){var e=v_(Jp());return e.copy=function(){return ta(e,RL()).constant(e.constant())},oo.apply(e,arguments)}function b_(){var e=g_(Jp());return e.copy=function(){return ta(e,b_()).exponent(e.exponent())},oo.apply(e,arguments)}function pQ(){return b_.apply(null,arguments).exponent(.5)}function ML(){var e=[],t=Tr;function r(n){if(n!=null&&!isNaN(n=+n))return t((rf(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Do),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,o)=>HK(e,o/n))},r.copy=function(){return ML(t).domain(e)},oo.apply(r,arguments)}function em(){var e=0,t=.5,r=1,n=1,i,o,s,c,f,d=Tr,m,p=!1,v;function x(w){return w==null||isNaN(w=+w)?v:(w=.5+((w=+m(w))-o)*(n*w<n*o?c:f),d(p?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,r]=w,i=m(e=+e),o=m(t=+t),s=m(r=+r),c=i===o?0:.5/(o-i),f=o===s?0:.5/(s-o),n=o<i?-1:1,x):[e,t,r]},x.clamp=function(w){return arguments.length?(p=!!w,x):p},x.interpolator=function(w){return arguments.length?(d=w,x):d};function b(w){return function(y){var P,O,A;return arguments.length?([P,O,A]=y,d=jX(w,[P,O,A]),x):[d(0),d(.5),d(1)]}}return x.range=b(Fl),x.rangeRound=b(r_),x.unknown=function(w){return arguments.length?(v=w,x):v},function(w){return m=w,i=w(e),o=w(t),s=w(r),c=i===o?0:.5/(o-i),f=o===s?0:.5/(s-o),n=o<i?-1:1,x}}function IL(){var e=ea(em()(Tr));return e.copy=function(){return ta(e,IL())},oo.apply(e,arguments)}function $L(){var e=m_(em()).domain([.1,1,10]);return e.copy=function(){return ta(e,$L()).base(e.base())},oo.apply(e,arguments)}function DL(){var e=v_(em());return e.copy=function(){return ta(e,DL()).constant(e.constant())},oo.apply(e,arguments)}function w_(){var e=g_(em());return e.copy=function(){return ta(e,w_()).exponent(e.exponent())},oo.apply(e,arguments)}function mQ(){return w_.apply(null,arguments).exponent(.5)}const ON=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:bu,scaleDiverging:IL,scaleDivergingLog:$L,scaleDivergingPow:w_,scaleDivergingSqrt:mQ,scaleDivergingSymlog:DL,scaleIdentity:_L,scaleImplicit:Iw,scaleLinear:Fh,scaleLog:PL,scaleOrdinal:h_,scalePoint:Yc,scalePow:y_,scaleQuantile:AL,scaleQuantize:EL,scaleRadial:CL,scaleSequential:NL,scaleSequentialLog:kL,scaleSequentialPow:b_,scaleSequentialQuantile:ML,scaleSequentialSqrt:pQ,scaleSequentialSymlog:RL,scaleSqrt:lQ,scaleSymlog:OL,scaleThreshold:TL,scaleTime:dQ,scaleUtc:hQ,tickFormat:SL},Symbol.toStringTag,{value:"Module"}));var Vb,CN;function LL(){if(CN)return Vb;CN=1;var e=Rl();function t(r,n,i){for(var o=-1,s=r.length;++o<s;){var c=r[o],f=n(c);if(f!=null&&(d===void 0?f===f&&!e(f):i(f,d)))var d=f,m=c}return m}return Vb=t,Vb}var Gb,AN;function vQ(){if(AN)return Gb;AN=1;function e(t,r){return t>r}return Gb=e,Gb}var Kb,EN;function gQ(){if(EN)return Kb;EN=1;var e=LL(),t=vQ(),r=Dl();function n(i){return i&&i.length?e(i,r,t):void 0}return Kb=n,Kb}var yQ=gQ();const Ro=ft(yQ);var Xb,TN;function xQ(){if(TN)return Xb;TN=1;function e(t,r){return t<r}return Xb=e,Xb}var Yb,NN;function bQ(){if(NN)return Yb;NN=1;var e=LL(),t=xQ(),r=Dl();function n(i){return i&&i.length?e(i,r,t):void 0}return Yb=n,Yb}var wQ=bQ();const tm=ft(wQ);var Qb,kN;function SQ(){if(kN)return Qb;kN=1;var e=TS(),t=Zo(),r=DD(),n=qr();function i(o,s){var c=n(o)?e:r;return c(o,t(s,3))}return Qb=i,Qb}var Zb,RN;function _Q(){if(RN)return Zb;RN=1;var e=ID(),t=SQ();function r(n,i){return e(t(n,i),1)}return Zb=r,Zb}var jQ=_Q();const PQ=ft(jQ);var Jb,MN;function OQ(){if(MN)return Jb;MN=1;var e=GS();function t(r,n){return e(r,n)}return Jb=t,Jb}var CQ=OQ();const ul=ft(CQ);var Bl=1e9,AQ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},__,jt=!0,Pn="[DecimalError] ",Ta=Pn+"Invalid argument: ",S_=Pn+"Exponent out of range: ",zl=Math.floor,ba=Math.pow,EQ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qr,nr=1e7,xt=7,FL=9007199254740991,Bh=zl(FL/xt),Se={};Se.absoluteValue=Se.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Se.comparedTo=Se.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};Se.decimalPlaces=Se.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*xt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Se.dividedBy=Se.div=function(e){return Di(this,new this.constructor(e))};Se.dividedToIntegerBy=Se.idiv=function(e){var t=this,r=t.constructor;return ut(Di(t,new r(e),0,1),r.precision)};Se.equals=Se.eq=function(e){return!this.cmp(e)};Se.exponent=function(){return qt(this)};Se.greaterThan=Se.gt=function(e){return this.cmp(e)>0};Se.greaterThanOrEqualTo=Se.gte=function(e){return this.cmp(e)>=0};Se.isInteger=Se.isint=function(){return this.e>this.d.length-2};Se.isNegative=Se.isneg=function(){return this.s<0};Se.isPositive=Se.ispos=function(){return this.s>0};Se.isZero=function(){return this.s===0};Se.lessThan=Se.lt=function(e){return this.cmp(e)<0};Se.lessThanOrEqualTo=Se.lte=function(e){return this.cmp(e)<1};Se.logarithm=Se.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Qr))throw Error(Pn+"NaN");if(r.s<1)throw Error(Pn+(r.s?"NaN":"-Infinity"));return r.eq(Qr)?new n(0):(jt=!1,t=Di(wu(r,o),wu(e,o),o),jt=!0,ut(t,i))};Se.minus=Se.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qL(t,e):BL(t,(e.s=-e.s,e))};Se.modulo=Se.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Pn+"NaN");return r.s?(jt=!1,t=Di(r,e,0,1).times(e),jt=!0,r.minus(t)):ut(new n(r),i)};Se.naturalExponential=Se.exp=function(){return zL(this)};Se.naturalLogarithm=Se.ln=function(){return wu(this)};Se.negated=Se.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Se.plus=Se.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?BL(t,e):qL(t,(e.s=-e.s,e))};Se.precision=Se.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ta+e);if(t=qt(i)+1,n=i.d.length-1,r=n*xt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Se.squareRoot=Se.sqrt=function(){var e,t,r,n,i,o,s,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(Pn+"NaN")}for(e=qt(c),jt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=Zn(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zl((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new f(t)):n=new f(i.toString()),r=f.precision,i=s=r+3;;)if(o=n,n=o.plus(Di(c,o,s+2)).times(.5),Zn(o.d).slice(0,s)===(t=Zn(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(ut(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if(t!="9999")break;s+=4}return jt=!0,ut(n,r)};Se.times=Se.mul=function(e){var t,r,n,i,o,s,c,f,d,m=this,p=m.constructor,v=m.d,x=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,r=m.e+e.e,f=v.length,d=x.length,f<d&&(o=v,v=x,x=o,s=f,f=d,d=s),o=[],s=f+d,n=s;n--;)o.push(0);for(n=d;--n>=0;){for(t=0,i=f+n;i>n;)c=o[i]+x[n]*v[i-n-1]+t,o[i--]=c%nr|0,t=c/nr|0;o[i]=(o[i]+t)%nr|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,jt?ut(e,p.precision):e};Se.toDecimalPlaces=Se.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(li(e,0,Bl),t===void 0?t=n.rounding:li(t,0,8),ut(r,e+qt(r)+1,t))};Se.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=La(n,!0):(li(e,0,Bl),t===void 0?t=i.rounding:li(t,0,8),n=ut(new i(n),e+1,t),r=La(n,!0,e+1)),r};Se.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?La(i):(li(e,0,Bl),t===void 0?t=o.rounding:li(t,0,8),n=ut(new o(i),e+qt(i)+1,t),r=La(n.abs(),!1,e+qt(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Se.toInteger=Se.toint=function(){var e=this,t=e.constructor;return ut(new t(e),qt(e)+1,t.rounding)};Se.toNumber=function(){return+this};Se.toPower=Se.pow=function(e){var t,r,n,i,o,s,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Qr);if(c=new f(c),!c.s){if(e.s<1)throw Error(Pn+"Infinity");return c}if(c.eq(Qr))return c;if(n=f.precision,e.eq(Qr))return ut(c,n);if(t=e.e,r=e.d.length-1,s=t>=r,o=c.s,s){if((r=m<0?-m:m)<=FL){for(i=new f(Qr),t=Math.ceil(n/xt+4),jt=!1;r%2&&(i=i.times(c),$N(i.d,t)),r=zl(r/2),r!==0;)c=c.times(c),$N(c.d,t);return jt=!0,e.s<0?new f(Qr).div(i):ut(i,n)}}else if(o<0)throw Error(Pn+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,c.s=1,jt=!1,i=e.times(wu(c,n+d)),jt=!0,i=zL(i),i.s=o,i};Se.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=qt(i),n=La(i,r<=o.toExpNeg||r>=o.toExpPos)):(li(e,1,Bl),t===void 0?t=o.rounding:li(t,0,8),i=ut(new o(i),e,t),r=qt(i),n=La(i,e<=r||r<=o.toExpNeg,e)),n};Se.toSignificantDigits=Se.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(li(e,1,Bl),t===void 0?t=n.rounding:li(t,0,8)),ut(new n(r),e,t)};Se.toString=Se.valueOf=Se.val=Se.toJSON=Se[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=qt(e),r=e.constructor;return La(e,t<=r.toExpNeg||t>=r.toExpPos)};function BL(e,t){var r,n,i,o,s,c,f,d,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),jt?ut(t,p):t;if(f=e.d,d=t.d,s=e.e,i=t.e,f=f.slice(),o=s-i,o){for(o<0?(n=f,o=-o,c=d.length):(n=d,i=s,c=f.length),s=Math.ceil(p/xt),c=s>c?s+1:c+1,o>c&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(c=f.length,o=d.length,c-o<0&&(o=c,n=d,d=f,f=n),r=0;o;)r=(f[--o]=f[o]+d[o]+r)/nr|0,f[o]%=nr;for(r&&(f.unshift(r),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,jt?ut(t,p):t}function li(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ta+e)}function Zn(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)n=e[t]+"",r=xt-n.length,r&&(o+=To(r)),o+=n;s=e[t],n=s+"",r=xt-n.length,r&&(o+=To(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var Di=(function(){function e(n,i){var o,s=0,c=n.length;for(n=n.slice();c--;)o=n[c]*i+s,n[c]=o%nr|0,s=o/nr|0;return s&&n.unshift(s),n}function t(n,i,o,s){var c,f;if(o!=s)f=o>s?1:-1;else for(c=f=0;c<o;c++)if(n[c]!=i[c]){f=n[c]>i[c]?1:-1;break}return f}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]<i[o]?1:0,n[o]=s*nr+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,s){var c,f,d,m,p,v,x,b,w,y,P,O,A,C,_,E,N,R,M=n.constructor,F=n.s==i.s?1:-1,I=n.d,$=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(Pn+"Division by zero");for(f=n.e-i.e,N=$.length,_=I.length,x=new M(F),b=x.d=[],d=0;$[d]==(I[d]||0);)++d;if($[d]>(I[d]||0)&&--f,o==null?O=o=M.precision:s?O=o+(qt(n)-qt(i))+1:O=o,O<0)return new M(0);if(O=O/xt+2|0,d=0,N==1)for(m=0,$=$[0],O++;(d<_||m)&&O--;d++)A=m*nr+(I[d]||0),b[d]=A/$|0,m=A%$|0;else{for(m=nr/($[0]+1)|0,m>1&&($=e($,m),I=e(I,m),N=$.length,_=I.length),C=N,w=I.slice(0,N),y=w.length;y<N;)w[y++]=0;R=$.slice(),R.unshift(0),E=$[0],$[1]>=nr/2&&++E;do m=0,c=t($,w,N,y),c<0?(P=w[0],N!=y&&(P=P*nr+(w[1]||0)),m=P/E|0,m>1?(m>=nr&&(m=nr-1),p=e($,m),v=p.length,y=w.length,c=t(p,w,v,y),c==1&&(m--,r(p,N<v?R:$,v))):(m==0&&(c=m=1),p=$.slice()),v=p.length,v<y&&p.unshift(0),r(w,p,y),c==-1&&(y=w.length,c=t($,w,N,y),c<1&&(m++,r(w,N<y?R:$,y))),y=w.length):c===0&&(m++,w=[0]),b[d++]=m,c&&w[0]?w[y++]=I[C]||0:(w=[I[C]],y=1);while((C++<_||w[0]!==void 0)&&O--)}return b[0]||b.shift(),x.e=f,ut(x,s?o+qt(x)+1:o)}})();function zL(e,t){var r,n,i,o,s,c,f=0,d=0,m=e.constructor,p=m.precision;if(qt(e)>16)throw Error(S_+qt(e));if(!e.s)return new m(Qr);for(jt=!1,c=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(n=Math.log(ba(2,d))/Math.LN10*2+5|0,c+=n,r=i=o=new m(Qr),m.precision=c;;){if(i=ut(i.times(e),c),r=r.times(++f),s=o.plus(Di(i,r,c)),Zn(s.d).slice(0,c)===Zn(o.d).slice(0,c)){for(;d--;)o=ut(o.times(o),c);return m.precision=p,t==null?(jt=!0,ut(o,p)):o}o=s}}function qt(e){for(var t=e.e*xt,r=e.d[0];r>=10;r/=10)t++;return t}function e0(e,t,r){if(t>e.LN10.sd())throw jt=!0,r&&(e.precision=r),Error(Pn+"LN10 precision limit exceeded");return ut(new e(e.LN10),t)}function To(e){for(var t="";e--;)t+="0";return t}function wu(e,t){var r,n,i,o,s,c,f,d,m,p=1,v=10,x=e,b=x.d,w=x.constructor,y=w.precision;if(x.s<1)throw Error(Pn+(x.s?"NaN":"-Infinity"));if(x.eq(Qr))return new w(0);if(t==null?(jt=!1,d=y):d=t,x.eq(10))return t==null&&(jt=!0),e0(w,d);if(d+=v,w.precision=d,r=Zn(b),n=r.charAt(0),o=qt(x),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)x=x.times(e),r=Zn(x.d),n=r.charAt(0),p++;o=qt(x),n>1?(x=new w("0."+r),o++):x=new w(n+"."+r.slice(1))}else return f=e0(w,d+2,y).times(o+""),x=wu(new w(n+"."+r.slice(1)),d-v).plus(f),w.precision=y,t==null?(jt=!0,ut(x,y)):x;for(c=s=x=Di(x.minus(Qr),x.plus(Qr),d),m=ut(x.times(x),d),i=3;;){if(s=ut(s.times(m),d),f=c.plus(Di(s,new w(i),d)),Zn(f.d).slice(0,d)===Zn(c.d).slice(0,d))return c=c.times(2),o!==0&&(c=c.plus(e0(w,d+2,y).times(o+""))),c=Di(c,new w(p),d),w.precision=y,t==null?(jt=!0,ut(c,y)):c;c=f,i+=2}}function IN(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=zl(r/xt),e.d=[],n=(r+1)%xt,r<0&&(n+=xt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=xt;n<i;)e.d.push(+t.slice(n,n+=xt));t=t.slice(n),n=xt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),jt&&(e.e>Bh||e.e<-Bh))throw Error(S_+r)}else e.s=0,e.e=0,e.d=[0];return e}function ut(e,t,r){var n,i,o,s,c,f,d,m,p=e.d;for(s=1,o=p[0];o>=10;o/=10)s++;if(n=t-s,n<0)n+=xt,i=t,d=p[m=0];else{if(m=Math.ceil((n+1)/xt),o=p.length,m>=o)return e;for(d=o=p[m],s=1;o>=10;o/=10)s++;n%=xt,i=n-xt+s}if(r!==void 0&&(o=ba(10,s-i-1),c=d/o%10|0,f=t<0||p[m+1]!==void 0||d%o,f=r<4?(c||f)&&(r==0||r==(e.s<0?3:2)):c>5||c==5&&(r==4||f||r==6&&(n>0?i>0?d/ba(10,s-i):0:p[m-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return f?(o=qt(e),p.length=1,t=t-o-1,p[0]=ba(10,(xt-t%xt)%xt),e.e=zl(-t/xt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=m,o=1,m--):(p.length=m+1,o=ba(10,xt-n),p[m]=i>0?(d/ba(10,s-i)%ba(10,i)|0)*o:0),f)for(;;)if(m==0){(p[0]+=o)==nr&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=nr)break;p[m--]=0,o=1}for(n=p.length;p[--n]===0;)p.pop();if(jt&&(e.e>Bh||e.e<-Bh))throw Error(S_+qt(e));return e}function qL(e,t){var r,n,i,o,s,c,f,d,m,p,v=e.constructor,x=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),jt?ut(t,x):t;if(f=e.d,p=t.d,n=t.e,d=e.e,f=f.slice(),s=d-n,s){for(m=s<0,m?(r=f,s=-s,c=p.length):(r=p,n=d,c=f.length),i=Math.max(Math.ceil(x/xt),c)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=f.length,c=p.length,m=i<c,m&&(c=i),i=0;i<c;i++)if(f[i]!=p[i]){m=f[i]<p[i];break}s=0}for(m&&(r=f,f=p,p=r,t.s=-t.s),c=f.length,i=p.length-c;i>0;--i)f[c++]=0;for(i=p.length;i>s;){if(f[--i]<p[i]){for(o=i;o&&f[--o]===0;)f[o]=nr-1;--f[o],f[i]+=nr}f[i]-=p[i]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--n;return f[0]?(t.d=f,t.e=n,jt?ut(t,x):t):new v(0)}function La(e,t,r){var n,i=qt(e),o=Zn(e.d),s=o.length;return t?(r&&(n=r-s)>0?o=o.charAt(0)+"."+o.slice(1)+To(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+To(-i-1)+o,r&&(n=r-s)>0&&(o+=To(n))):i>=s?(o+=To(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+To(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(o+="."),o+=To(n))),e.s<0?"-"+o:o}function $N(e,t){if(e.length>t)return e.length=t,!0}function UL(e){var t,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Ta+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return IN(s,o.toString())}else if(typeof o!="string")throw Error(Ta+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,EQ.test(o))IN(s,o);else throw Error(Ta+o)}if(i.prototype=Se,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=UL,i.config=i.set=TQ,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function TQ(e){if(!e||typeof e!="object")throw Error(Pn+"Object expected");var t,r,n,i=["precision",1,Bl,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(zl(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ta+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ta+r+": "+n);return this}var __=UL(AQ);Qr=new __(1);const ct=__;function NQ(e){return IQ(e)||MQ(e)||RQ(e)||kQ()}function kQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
438
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RQ(e,t){if(e){if(typeof e=="string")return Dw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dw(e,t)}}function MQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function IQ(e){if(Array.isArray(e))return Dw(e)}function Dw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var $Q=function(t){return t},WL={},HL=function(t){return t===WL},DN=function(t){return function r(){return arguments.length===0||arguments.length===1&&HL(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},DQ=function e(t,r){return t===1?r:DN(function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var s=i.filter(function(c){return c!==WL}).length;return s>=t?r.apply(void 0,i):e(t-s,DN(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=i.map(function(p){return HL(p)?f.shift():p});return r.apply(void 0,NQ(m).concat(f))}))})},rm=function(t){return DQ(t.length,t)},Lw=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},LQ=rm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),FQ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return $Q;var i=r.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce(function(c,f){return f(c)},o.apply(void 0,arguments))}},Fw=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},VL=function(t){var r=null,n=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r&&o.every(function(c,f){return c===r[f]})||(r=o,n=t.apply(void 0,o)),n}};function BQ(e){var t;return e===0?t=1:t=Math.floor(new ct(e).abs().log(10).toNumber())+1,t}function zQ(e,t,r){for(var n=new ct(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var qQ=rm(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),UQ=rm(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),WQ=rm(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const nm={rangeStep:zQ,getDigitCount:BQ,interpolateNumber:qQ,uninterpolateNumber:UQ,uninterpolateTruncation:WQ};function Bw(e){return GQ(e)||VQ(e)||GL(e)||HQ()}function HQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
439
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VQ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function GQ(e){if(Array.isArray(e))return zw(e)}function Su(e,t){return YQ(e)||XQ(e,t)||GL(e,t)||KQ()}function KQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
440
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GL(e,t){if(e){if(typeof e=="string")return zw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zw(e,t)}}function zw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function XQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){i=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(i)throw o}}return r}}function YQ(e){if(Array.isArray(e))return e}function KL(e){var t=Su(e,2),r=t[0],n=t[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function XL(e,t,r){if(e.lte(0))return new ct(0);var n=nm.getDigitCount(e.toNumber()),i=new ct(10).pow(n),o=e.div(i),s=n!==1?.05:.1,c=new ct(Math.ceil(o.div(s).toNumber())).add(r).mul(s),f=c.mul(i);return t?f:new ct(Math.ceil(f))}function QQ(e,t,r){var n=1,i=new ct(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new ct(10).pow(nm.getDigitCount(e)-1),i=new ct(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new ct(Math.floor(e)))}else e===0?i=new ct(Math.floor((t-1)/2)):r||(i=new ct(Math.floor(e)));var s=Math.floor((t-1)/2),c=FQ(LQ(function(f){return i.add(new ct(f-s).mul(n)).toNumber()}),Lw);return c(0,t)}function YL(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ct(0),tickMin:new ct(0),tickMax:new ct(0)};var o=XL(new ct(t).sub(e).div(r-1),n,i),s;e<=0&&t>=0?s=new ct(0):(s=new ct(e).add(t).div(2),s=s.sub(new ct(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),f=Math.ceil(new ct(t).sub(s).div(o).toNumber()),d=c+f+1;return d>r?YL(e,t,r,n,i+1):(d<r&&(f=t>0?f+(r-d):f,c=t>0?c:c+(r-d)),{step:o,tickMin:s.sub(new ct(c).mul(o)),tickMax:s.add(new ct(f).mul(o))})}function ZQ(e){var t=Su(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),c=KL([r,n]),f=Su(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(Bw(Lw(0,i-1).map(function(){return 1/0}))):[].concat(Bw(Lw(0,i-1).map(function(){return-1/0})),[m]);return r>n?Fw(p):p}if(d===m)return QQ(d,i,o);var v=YL(d,m,s,o),x=v.step,b=v.tickMin,w=v.tickMax,y=nm.rangeStep(b,w.add(new ct(.1).mul(x)),x);return r>n?Fw(y):y}function JQ(e,t){var r=Su(e,2),n=r[0],i=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=KL([n,i]),c=Su(s,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[n,i];if(f===d)return[f];var m=Math.max(t,2),p=XL(new ct(d).sub(f).div(m-1),o,0),v=[].concat(Bw(nm.rangeStep(new ct(f),new ct(d).sub(new ct(.99).mul(p)),p)),[d]);return n>i?Fw(v):v}var eZ=VL(ZQ),tZ=VL(JQ),rZ="Invariant failed";function Fa(e,t){throw new Error(rZ)}var nZ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function fl(e){"@babel/helpers - typeof";return fl=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},fl(e)}function zh(){return zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zh.apply(this,arguments)}function iZ(e,t){return lZ(e)||sZ(e,t)||aZ(e,t)||oZ()}function oZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
441
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aZ(e,t){if(e){if(typeof e=="string")return LN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LN(e,t)}}function LN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function lZ(e){if(Array.isArray(e))return e}function cZ(e,t){if(e==null)return{};var r=uZ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JL(n.key),n)}}function hZ(e,t,r){return t&&dZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pZ(e,t,r){return t=qh(t),mZ(e,QL()?Reflect.construct(t,r||[],qh(e).constructor):t.apply(e,r))}function mZ(e,t){if(t&&(fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vZ(e)}function vZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QL=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qh(e)}function gZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qw(e,t)}function qw(e,t){return qw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qw(e,t)}function ZL(e,t,r){return t=JL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JL(e){var t=yZ(e,"string");return fl(t)=="symbol"?t:t+""}function yZ(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sf=(function(e){function t(){return fZ(this,t),pZ(this,t,arguments)}return gZ(t,e),hZ(t,[{key:"render",value:function(){var n=this.props,i=n.offset,o=n.layout,s=n.width,c=n.dataKey,f=n.data,d=n.dataPointFormatter,m=n.xAxis,p=n.yAxis,v=cZ(n,nZ),x=Ve(v,!1);this.props.direction==="x"&&m.type!=="number"&&Fa();var b=f.map(function(w){var y=d(w,c),P=y.x,O=y.y,A=y.value,C=y.errorVal;if(!C)return null;var _=[],E,N;if(Array.isArray(C)){var R=iZ(C,2);E=R[0],N=R[1]}else E=N=C;if(o==="vertical"){var M=m.scale,F=O+i,I=F+s,$=F-s,L=M(A-E),U=M(A+N);_.push({x1:U,y1:I,x2:U,y2:$}),_.push({x1:L,y1:F,x2:U,y2:F}),_.push({x1:L,y1:I,x2:L,y2:$})}else if(o==="horizontal"){var H=p.scale,B=P+i,X=B-s,W=B+s,q=H(A-E),V=H(A+N);_.push({x1:X,y1:V,x2:W,y2:V}),_.push({x1:B,y1:q,x2:B,y2:V}),_.push({x1:X,y1:q,x2:W,y2:q})}return K.createElement(pt,zh({className:"recharts-errorBar",key:"bar-".concat(_.map(function(D){return"".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))},x),_.map(function(D){return K.createElement("line",zh({},D,{key:"line-".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))}))});return K.createElement(pt,{className:"recharts-errorBars"},b)}}])})(K.Component);ZL(sf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});ZL(sf,"displayName","ErrorBar");function _u(e){"@babel/helpers - typeof";return _u=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},_u(e)}function FN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ya(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FN(Object(r),!0).forEach(function(n){xZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xZ(e,t,r){return t=bZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bZ(e){var t=wZ(e,"string");return _u(t)=="symbol"?t:t+""}function wZ(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var e3=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,s=Xr(r,Hs);if(!s)return null;var c=Hs.defaultProps,f=c!==void 0?ya(ya({},c),s.props):{},d;return s.props&&s.props.payload?d=s.props&&s.props.payload:o==="children"?d=(n||[]).reduce(function(m,p){var v=p.item,x=p.props,b=x.sectors||x.data||[];return m.concat(b.map(function(w){return{type:s.props.iconType||v.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(n||[]).map(function(m){var p=m.item,v=p.type.defaultProps,x=v!==void 0?ya(ya({},v),p.props):{},b=x.dataKey,w=x.name,y=x.legendType,P=x.hide;return{inactive:P,dataKey:b,type:f.iconType||y||"square",color:j_(p),value:w||b,payload:x}}),ya(ya(ya({},f),Hs.getWithHeight(s,i)),{},{payload:d,item:s})};function ju(e){"@babel/helpers - typeof";return ju=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},ju(e)}function BN(e){return PZ(e)||jZ(e)||_Z(e)||SZ()}function SZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
442
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _Z(e,t){if(e){if(typeof e=="string")return Uw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uw(e,t)}}function jZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PZ(e){if(Array.isArray(e))return Uw(e)}function Uw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zN(Object(r),!0).forEach(function(n){Xs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xs(e,t,r){return t=OZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OZ(e){var t=CZ(e,"string");return ju(t)=="symbol"?t:t+""}function CZ(e,t){if(ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kr(e,t,r){return Ye(e)||Ye(t)?r:Zt(t)?wn(e,t,r):We(t)?t(e):r}function Qc(e,t,r,n){var i=PQ(e,function(c){return kr(c,t)});if(r==="number"){var o=i.filter(function(c){return he(c)||parseFloat(c)});return o.length?[tm(o),Ro(o)]:[1/0,-1/0]}var s=n?i.filter(function(c){return!Ye(c)}):i;return s.map(function(c){return Zt(c)||c instanceof Date?c:""})}var AZ=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,s=-1,c=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var f=o.range,d=0;d<c;d++){var m=d>0?i[d-1].coordinate:i[c-1].coordinate,p=i[d].coordinate,v=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(Fn(p-m)!==Fn(v-p)){var b=[];if(Fn(v-p)===Fn(f[1]-f[0])){x=v;var w=p+f[1]-f[0];b[0]=Math.min(w,(w+m)/2),b[1]=Math.max(w,(w+m)/2)}else{x=m;var y=v+f[1]-f[0];b[0]=Math.min(p,(y+p)/2),b[1]=Math.max(p,(y+p)/2)}var P=[Math.min(p,(x+p)/2),Math.max(p,(x+p)/2)];if(t>P[0]&&t<=P[1]||t>=b[0]&&t<=b[1]){s=i[d].index;break}}else{var O=Math.min(m,v),A=Math.max(m,v);if(t>(O+p)/2&&t<=(A+p)/2){s=i[d].index;break}}}else for(var C=0;C<c;C++)if(C===0&&t<=(n[C].coordinate+n[C+1].coordinate)/2||C>0&&C<c-1&&t>(n[C].coordinate+n[C-1].coordinate)/2&&t<=(n[C].coordinate+n[C+1].coordinate)/2||C===c-1&&t>(n[C].coordinate+n[C-1].coordinate)/2){s=n[C].index;break}return s},j_=function(t){var r,n=t,i=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,s=o.stroke,c=o.fill,f;switch(i){case"Line":f=s;break;case"Area":case"Radar":f=s&&s!=="none"?s:c;break;default:f=c;break}return f},EZ=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var s={},c=Object.keys(o),f=0,d=c.length;f<d;f++)for(var m=o[c[f]].stackGroups,p=Object.keys(m),v=0,x=p.length;v<x;v++){var b=m[p[v]],w=b.items,y=b.cateAxisId,P=w.filter(function(N){return Ii(N.type).indexOf("Bar")>=0});if(P&&P.length){var O=P[0].type.defaultProps,A=O!==void 0?Nt(Nt({},O),P[0].props):P[0].props,C=A.barSize,_=A[y];s[_]||(s[_]=[]);var E=Ye(C)?r:C;s[_].push({item:P[0],stackList:P.slice(1),barSize:Ye(E)?void 0:$a(E,n,0)})}}return s},TZ=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,s=o===void 0?[]:o,c=t.maxBarSize,f=s.length;if(f<1)return null;var d=$a(r,i,0,!0),m,p=[];if(s[0].barSize===+s[0].barSize){var v=!1,x=i/f,b=s.reduce(function(C,_){return C+_.barSize||0},0);b+=(f-1)*d,b>=i&&(b-=(f-1)*d,d=0),b>=i&&x>0&&(v=!0,x*=.9,b=f*x);var w=(i-b)/2>>0,y={offset:w-d,size:0};m=s.reduce(function(C,_){var E={item:_.item,position:{offset:y.offset+y.size+d,size:v?x:_.barSize}},N=[].concat(BN(C),[E]);return y=N[N.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(R){N.push({item:R,position:y})}),N},p)}else{var P=$a(n,i,0,!0);i-2*P-(f-1)*d<=0&&(d=0);var O=(i-2*P-(f-1)*d)/f;O>1&&(O>>=0);var A=c===+c?Math.min(O,c):O;m=s.reduce(function(C,_,E){var N=[].concat(BN(C),[{item:_.item,position:{offset:P+(O+d)*E+(O-A)/2,size:A}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(R){N.push({item:R,position:N[N.length-1].position})}),N},p)}return m},NZ=function(t,r,n,i){var o=n.children,s=n.width,c=n.margin,f=s-(c.left||0)-(c.right||0),d=e3({children:o,legendWidth:f});if(d){var m=i||{},p=m.width,v=m.height,x=d.align,b=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&b==="middle")&&x!=="center"&&he(t[x]))return Nt(Nt({},t),{},Xs({},x,t[x]+(p||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&b!=="middle"&&he(t[b]))return Nt(Nt({},t),{},Xs({},b,t[b]+(v||0)))}return t},kZ=function(t,r,n){return Ye(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},t3=function(t,r,n,i,o){var s=r.props.children,c=Sn(s,sf).filter(function(d){return kZ(i,o,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var p=kr(m,n);if(Ye(p))return d;var v=Array.isArray(p)?[tm(p),Ro(p)]:[p,p],x=f.reduce(function(b,w){var y=kr(m,w,0),P=v[0]-Math.abs(Array.isArray(y)?y[0]:y),O=v[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(P,b[0]),Math.max(O,b[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},RZ=function(t,r,n,i,o){var s=r.map(function(c){return t3(t,c,n,o,i)}).filter(function(c){return!Ye(c)});return s&&s.length?s.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},r3=function(t,r,n,i,o){var s=r.map(function(f){var d=f.props.dataKey;return n==="number"&&d&&t3(t,f,d,i)||Qc(t,d,n,o)});if(n==="number")return s.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return s.reduce(function(f,d){for(var m=0,p=d.length;m<p;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},n3=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},i3=function(t,r,n,i){if(i)return t.map(function(f){return f.coordinate});var o,s,c=t.map(function(f){return f.coordinate===r&&(o=!0),f.coordinate===n&&(s=!0),f.coordinate});return o||c.push(r),s||c.push(n),c},Ti=function(t,r,n){if(!t)return null;var i=t.scale,o=t.duplicateDomain,s=t.type,c=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(r||n)&&s==="category"&&i.bandwidth?i.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?Fn(c[0]-c[1])*2*d:d,r&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(p){var v=o?o.indexOf(p):p;return{coordinate:i(v)+d,value:p,offset:d}});return m.filter(function(p){return!Il(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,v){return{coordinate:i(p)+d,value:p,index:v,offset:d}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+d,value:p,offset:d}}):i.domain().map(function(p,v){return{coordinate:i(p)+d,value:o?o[p]:p,index:v,offset:d}})},t0=new WeakMap,Bd=function(t,r){if(typeof r!="function")return t;t0.has(t)||t0.set(t,new WeakMap);var n=t0.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},MZ=function(t,r,n){var i=t.scale,o=t.type,s=t.layout,c=t.axisType;if(i==="auto")return s==="radial"&&c==="radiusAxis"?{scale:bu(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Fh(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Yc(),realScaleType:"point"}:o==="category"?{scale:bu(),realScaleType:"band"}:{scale:Fh(),realScaleType:"linear"};if(Ia(i)){var f="scale".concat(Fp(i));return{scale:(ON[f]||Yc)(),realScaleType:ON[f]?f:"point"}}return We(i)?{scale:i}:{scale:Yc(),realScaleType:"point"}},qN=1e-4,IZ=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),o=Math.min(i[0],i[1])-qN,s=Math.max(i[0],i[1])+qN,c=t(r[0]),f=t(r[n-1]);(c<o||c>s||f<o||f>s)&&t.domain([r[0],r[n-1]])}},$Z=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},DZ=function(t,r){if(!r||r.length!==2||!he(r[0])||!he(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!he(t[0])||t[0]<n)&&(o[0]=n),(!he(t[1])||t[1]>i)&&(o[1]=i),o[0]>i&&(o[0]=i),o[1]<n&&(o[1]=n),o},LZ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,s=0,c=0;c<r;++c){var f=Il(t[c][n][1])?t[c][n][0]:t[c][n][1];f>=0?(t[c][n][0]=o,t[c][n][1]=o+f,o=t[c][n][1]):(t[c][n][0]=s,t[c][n][1]=s+f,s=t[c][n][1])}},FZ=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var o=0,s=0;s<r;++s){var c=Il(t[s][n][1])?t[s][n][0]:t[s][n][1];c>=0?(t[s][n][0]=o,t[s][n][1]=o+c,o=t[s][n][1]):(t[s][n][0]=0,t[s][n][1]=0)}},BZ={sign:LZ,expand:p9,none:tl,silhouette:m9,wiggle:v9,positive:FZ},zZ=function(t,r,n){var i=r.map(function(c){return c.props.dataKey}),o=BZ[n],s=h9().keys(i).value(function(c,f){return+kr(c,f,0)}).order(yw).offset(o);return s(t)},qZ=function(t,r,n,i,o,s){if(!t)return null;var c=s?r.reverse():r,f={},d=c.reduce(function(p,v){var x,b=(x=v.type)!==null&&x!==void 0&&x.defaultProps?Nt(Nt({},v.type.defaultProps),v.props):v.props,w=b.stackId,y=b.hide;if(y)return p;var P=b[n],O=p[P]||{hasStack:!1,stackGroups:{}};if(Zt(w)){var A=O.stackGroups[w]||{numericAxisId:n,cateAxisId:i,items:[]};A.items.push(v),O.hasStack=!0,O.stackGroups[w]=A}else O.stackGroups[$l("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[v]};return Nt(Nt({},p),{},Xs({},P,O))},f),m={};return Object.keys(d).reduce(function(p,v){var x=d[v];if(x.hasStack){var b={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,y){var P=x.stackGroups[y];return Nt(Nt({},w),{},Xs({},y,{numericAxisId:n,cateAxisId:i,items:P.items,stackedData:zZ(t,P.items,o)}))},b)}return Nt(Nt({},p),{},Xs({},v,x))},m)},UZ=function(t,r){var n=r.realScaleType,i=r.type,o=r.tickCount,s=r.originalDomain,c=r.allowDecimals,f=n||r.scale;if(f!=="auto"&&f!=="linear")return null;if(o&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=eZ(d,o,c);return t.domain([tm(m),Ro(m)]),{niceTicks:m}}if(o&&i==="number"){var p=t.domain(),v=tZ(p,o,c);return{niceTicks:v}}return null};function Uh(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,o=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ye(i[t.dataKey])){var c=mh(r,"value",i[t.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var f=kr(i,Ye(s)?t.dataKey:s);return Ye(f)?null:t.scale(f)}var UN=function(t){var r=t.axis,n=t.ticks,i=t.offset,o=t.bandSize,s=t.entry,c=t.index;if(r.type==="category")return n[c]?n[c].coordinate+i:null;var f=kr(s,r.dataKey,r.domain[c]);return Ye(f)?null:r.scale(f)-o/2+i},WZ=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return i<=0&&o>=0?0:o<0?o:i}return n[0]},HZ=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Zt(o)){var s=r[o];if(s){var c=s.items.indexOf(t);return c>=0?s.stackedData[c]:null}}return null},VZ=function(t){return t.reduce(function(r,n){return[tm(n.concat([r[0]]).filter(he)),Ro(n.concat([r[1]]).filter(he))]},[1/0,-1/0])},o3=function(t,r,n){return Object.keys(t).reduce(function(i,o){var s=t[o],c=s.stackedData,f=c.reduce(function(d,m){var p=VZ(m.slice(r,n+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},WN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ww=function(t,r,n){if(We(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(he(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WN.test(t[0])){var o=+WN.exec(t[0])[1];i[0]=r[0]-o}else We(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(he(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(HN.test(t[1])){var s=+HN.exec(t[1])[1];i[1]=r[1]+s}else We(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Wh=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var o=XS(r,function(p){return p.coordinate}),s=1/0,c=1,f=o.length;c<f;c++){var d=o[c],m=o[c-1];s=Math.min((d.coordinate||0)-(m.coordinate||0),s)}return s===1/0?0:s}return n?void 0:0},VN=function(t,r,n){return!t||!t.length||ul(t,wn(n,"type.defaultProps.domain"))?r:t},a3=function(t,r){var n=t.type.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,i=n.dataKey,o=n.name,s=n.unit,c=n.formatter,f=n.tooltipType,d=n.chartType,m=n.hide;return Nt(Nt({},Ve(t,!1)),{},{dataKey:i,unit:s,formatter:c,name:o||i,color:j_(t),value:kr(r,i),type:f,payload:r,chartType:d,hide:m})};function Pu(e){"@babel/helpers - typeof";return Pu=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},Pu(e)}function GN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function KN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GN(Object(r),!0).forEach(function(n){GZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GZ(e,t,r){return t=KZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KZ(e){var t=XZ(e,"string");return Pu(t)=="symbol"?t:t+""}function XZ(e,t){if(Pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hh=Math.PI/180,YZ=function(t){return t*180/Math.PI},pr=function(t,r,n,i){return{x:t+Math.cos(-Hh*i)*n,y:r+Math.sin(-Hh*i)*n}},QZ=function(t,r){var n=t.x,i=t.y,o=r.x,s=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(i-s,2))},ZZ=function(t,r){var n=t.x,i=t.y,o=r.cx,s=r.cy,c=QZ({x:n,y:i},{x:o,y:s});if(c<=0)return{radius:c};var f=(n-o)/c,d=Math.acos(f);return i>s&&(d=2*Math.PI-d),{radius:c,angle:YZ(d),angleInRadian:d}},JZ=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),o=Math.floor(n/360),s=Math.min(i,o);return{startAngle:r-s*360,endAngle:n-s*360}},eJ=function(t,r){var n=r.startAngle,i=r.endAngle,o=Math.floor(n/360),s=Math.floor(i/360),c=Math.min(o,s);return t+c*360},XN=function(t,r){var n=t.x,i=t.y,o=ZZ({x:n,y:i},r),s=o.radius,c=o.angle,f=r.innerRadius,d=r.outerRadius;if(s<f||s>d)return!1;if(s===0)return!0;var m=JZ(r),p=m.startAngle,v=m.endAngle,x=c,b;if(p<=v){for(;x>v;)x-=360;for(;x<p;)x+=360;b=x>=p&&x<=v}else{for(;x>p;)x-=360;for(;x<v;)x+=360;b=x>=v&&x<=p}return b?KN(KN({},r),{},{radius:s,angle:eJ(x,r)}):null};function Ou(e){"@babel/helpers - typeof";return Ou=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},Ou(e)}var tJ=["offset"];function rJ(e){return aJ(e)||oJ(e)||iJ(e)||nJ()}function nJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
443
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iJ(e,t){if(e){if(typeof e=="string")return Hw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hw(e,t)}}function oJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aJ(e){if(Array.isArray(e))return Hw(e)}function Hw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sJ(e,t){if(e==null)return{};var r=lJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function YN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YN(Object(r),!0).forEach(function(n){cJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cJ(e,t,r){return t=uJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uJ(e){var t=fJ(e,"string");return Ou(t)=="symbol"?t:t+""}function fJ(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cu.apply(this,arguments)}var dJ=function(t){var r=t.value,n=t.formatter,i=Ye(t.children)?r:t.children;return We(n)?n(i):i},hJ=function(t,r){var n=Fn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},pJ=function(t,r,n){var i=t.position,o=t.viewBox,s=t.offset,c=t.className,f=o,d=f.cx,m=f.cy,p=f.innerRadius,v=f.outerRadius,x=f.startAngle,b=f.endAngle,w=f.clockWise,y=(p+v)/2,P=hJ(x,b),O=P>=0?1:-1,A,C;i==="insideStart"?(A=x+O*s,C=w):i==="insideEnd"?(A=b-O*s,C=!w):i==="end"&&(A=b+O*s,C=w),C=P<=0?C:!C;var _=pr(d,m,y,A),E=pr(d,m,y,A+(C?1:-1)*359),N="M".concat(_.x,",").concat(_.y,`
|
|
444
|
+
A`).concat(y,",").concat(y,",0,1,").concat(C?0:1,`,
|
|
445
|
+
`).concat(E.x,",").concat(E.y),R=Ye(t.id)?$l("recharts-radial-line-"):t.id;return K.createElement("text",Cu({},n,{dominantBaseline:"central",className:Je("recharts-radial-bar-label",c)}),K.createElement("defs",null,K.createElement("path",{id:R,d:N})),K.createElement("textPath",{xlinkHref:"#".concat(R)},r))},mJ=function(t){var r=t.viewBox,n=t.offset,i=t.position,o=r,s=o.cx,c=o.cy,f=o.innerRadius,d=o.outerRadius,m=o.startAngle,p=o.endAngle,v=(m+p)/2;if(i==="outside"){var x=pr(s,c,d+n,v),b=x.x,w=x.y;return{x:b,y:w,textAnchor:b>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"end"};var y=(f+d)/2,P=pr(s,c,y,v),O=P.x,A=P.y;return{x:O,y:A,textAnchor:"middle",verticalAnchor:"middle"}},vJ=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,o=t.position,s=r,c=s.x,f=s.y,d=s.width,m=s.height,p=m>=0?1:-1,v=p*i,x=p>0?"end":"start",b=p>0?"start":"end",w=d>=0?1:-1,y=w*i,P=w>0?"end":"start",O=w>0?"start":"end";if(o==="top"){var A={x:c+d/2,y:f-p*i,textAnchor:"middle",verticalAnchor:x};return Gt(Gt({},A),n?{height:Math.max(f-n.y,0),width:d}:{})}if(o==="bottom"){var C={x:c+d/2,y:f+m+v,textAnchor:"middle",verticalAnchor:b};return Gt(Gt({},C),n?{height:Math.max(n.y+n.height-(f+m),0),width:d}:{})}if(o==="left"){var _={x:c-y,y:f+m/2,textAnchor:P,verticalAnchor:"middle"};return Gt(Gt({},_),n?{width:Math.max(_.x-n.x,0),height:m}:{})}if(o==="right"){var E={x:c+d+y,y:f+m/2,textAnchor:O,verticalAnchor:"middle"};return Gt(Gt({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:m}:{})}var N=n?{width:d,height:m}:{};return o==="insideLeft"?Gt({x:c+y,y:f+m/2,textAnchor:O,verticalAnchor:"middle"},N):o==="insideRight"?Gt({x:c+d-y,y:f+m/2,textAnchor:P,verticalAnchor:"middle"},N):o==="insideTop"?Gt({x:c+d/2,y:f+v,textAnchor:"middle",verticalAnchor:b},N):o==="insideBottom"?Gt({x:c+d/2,y:f+m-v,textAnchor:"middle",verticalAnchor:x},N):o==="insideTopLeft"?Gt({x:c+y,y:f+v,textAnchor:O,verticalAnchor:b},N):o==="insideTopRight"?Gt({x:c+d-y,y:f+v,textAnchor:P,verticalAnchor:b},N):o==="insideBottomLeft"?Gt({x:c+y,y:f+m-v,textAnchor:O,verticalAnchor:x},N):o==="insideBottomRight"?Gt({x:c+d-y,y:f+m-v,textAnchor:P,verticalAnchor:x},N):Ml(o)&&(he(o.x)||_a(o.x))&&(he(o.y)||_a(o.y))?Gt({x:c+$a(o.x,d),y:f+$a(o.y,m),textAnchor:"end",verticalAnchor:"end"},N):Gt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},N)},gJ=function(t){return"cx"in t&&he(t.cx)};function _r(e){var t=e.offset,r=t===void 0?5:t,n=sJ(e,tJ),i=Gt({offset:r},n),o=i.viewBox,s=i.position,c=i.value,f=i.children,d=i.content,m=i.className,p=m===void 0?"":m,v=i.textBreakAll;if(!o||Ye(c)&&Ye(f)&&!S.isValidElement(d)&&!We(d))return null;if(S.isValidElement(d))return S.cloneElement(d,i);var x;if(We(d)){if(x=S.createElement(d,i),S.isValidElement(x))return x}else x=dJ(i);var b=gJ(o),w=Ve(i,!0);if(b&&(s==="insideStart"||s==="insideEnd"||s==="end"))return pJ(i,x,w);var y=b?mJ(i):vJ(i);return K.createElement(Ah,Cu({className:Je("recharts-label",p)},w,y,{breakAll:v}),x)}_r.displayName="Label";var s3=function(t){var r=t.cx,n=t.cy,i=t.angle,o=t.startAngle,s=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,p=t.x,v=t.y,x=t.top,b=t.left,w=t.width,y=t.height,P=t.clockWise,O=t.labelViewBox;if(O)return O;if(he(w)&&he(y)){if(he(p)&&he(v))return{x:p,y:v,width:w,height:y};if(he(x)&&he(b))return{x,y:b,width:w,height:y}}return he(p)&&he(v)?{x:p,y:v,width:0,height:0}:he(r)&&he(n)?{cx:r,cy:n,startAngle:o||i||0,endAngle:s||i||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:P}:t.viewBox?t.viewBox:{}},yJ=function(t,r){return t?t===!0?K.createElement(_r,{key:"label-implicit",viewBox:r}):Zt(t)?K.createElement(_r,{key:"label-implicit",viewBox:r,value:t}):S.isValidElement(t)?t.type===_r?S.cloneElement(t,{key:"label-implicit",viewBox:r}):K.createElement(_r,{key:"label-implicit",content:t,viewBox:r}):We(t)?K.createElement(_r,{key:"label-implicit",content:t,viewBox:r}):Ml(t)?K.createElement(_r,Cu({viewBox:r},t,{key:"label-implicit"})):null:null},xJ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,o=s3(t),s=Sn(i,_r).map(function(f,d){return S.cloneElement(f,{viewBox:r||o,key:"label-".concat(d)})});if(!n)return s;var c=yJ(t.label,r||o);return[c].concat(rJ(s))};_r.parseViewBox=s3;_r.renderCallByParent=xJ;var r0,QN;function bJ(){if(QN)return r0;QN=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return r0=e,r0}var wJ=bJ();const SJ=ft(wJ);function Au(e){"@babel/helpers - typeof";return Au=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},Au(e)}var _J=["valueAccessor"],jJ=["data","dataKey","clockWise","id","textBreakAll"];function PJ(e){return EJ(e)||AJ(e)||CJ(e)||OJ()}function OJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
446
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CJ(e,t){if(e){if(typeof e=="string")return Vw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vw(e,t)}}function AJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EJ(e){if(Array.isArray(e))return Vw(e)}function Vw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vh(){return Vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vh.apply(this,arguments)}function ZN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function JN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZN(Object(r),!0).forEach(function(n){TJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TJ(e,t,r){return t=NJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NJ(e){var t=kJ(e,"string");return Au(t)=="symbol"?t:t+""}function kJ(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ek(e,t){if(e==null)return{};var r=RJ(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var MJ=function(t){return Array.isArray(t.value)?SJ(t.value):t.value};function Li(e){var t=e.valueAccessor,r=t===void 0?MJ:t,n=ek(e,_J),i=n.data,o=n.dataKey,s=n.clockWise,c=n.id,f=n.textBreakAll,d=ek(n,jJ);return!i||!i.length?null:K.createElement(pt,{className:"recharts-label-list"},i.map(function(m,p){var v=Ye(o)?r(m,p):kr(m&&m.payload,o),x=Ye(c)?{}:{id:"".concat(c,"-").concat(p)};return K.createElement(_r,Vh({},Ve(m,!0),d,x,{parentViewBox:m.parentViewBox,value:v,textBreakAll:f,viewBox:_r.parseViewBox(Ye(s)?m:JN(JN({},m),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}Li.displayName="LabelList";function IJ(e,t){return e?e===!0?K.createElement(Li,{key:"labelList-implicit",data:t}):K.isValidElement(e)||We(e)?K.createElement(Li,{key:"labelList-implicit",data:t,content:e}):Ml(e)?K.createElement(Li,Vh({data:t},e,{key:"labelList-implicit"})):null:null}function $J(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Sn(n,Li).map(function(s,c){return S.cloneElement(s,{data:t,key:"labelList-".concat(c)})});if(!r)return i;var o=IJ(e.label,t);return[o].concat(PJ(i))}Li.renderCallByParent=$J;function Eu(e){"@babel/helpers - typeof";return Eu=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},Eu(e)}function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gw.apply(this,arguments)}function tk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tk(Object(r),!0).forEach(function(n){DJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DJ(e,t,r){return t=LJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LJ(e){var t=FJ(e,"string");return Eu(t)=="symbol"?t:t+""}function FJ(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BJ=function(t,r){var n=Fn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},zd=function(t){var r=t.cx,n=t.cy,i=t.radius,o=t.angle,s=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+i,p=Math.asin(f/m)/Hh,v=d?o:o+s*p,x=pr(r,n,m,v),b=pr(r,n,i,v),w=d?o-s*p:o,y=pr(r,n,m*Math.cos(p*Hh),w);return{center:x,circleTangency:b,lineTangency:y,theta:p}},l3=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.startAngle,c=t.endAngle,f=BJ(s,c),d=s+f,m=pr(r,n,o,s),p=pr(r,n,o,d),v="M ".concat(m.x,",").concat(m.y,`
|
|
447
|
+
A `).concat(o,",").concat(o,`,0,
|
|
448
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(s>d),`,
|
|
449
|
+
`).concat(p.x,",").concat(p.y,`
|
|
450
|
+
`);if(i>0){var x=pr(r,n,i,s),b=pr(r,n,i,d);v+="L ".concat(b.x,",").concat(b.y,`
|
|
451
|
+
A `).concat(i,",").concat(i,`,0,
|
|
452
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(s<=d),`,
|
|
453
|
+
`).concat(x.x,",").concat(x.y," Z")}else v+="L ".concat(r,",").concat(n," Z");return v},zJ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,o=t.outerRadius,s=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,p=Fn(m-d),v=zd({cx:r,cy:n,radius:o,angle:d,sign:p,cornerRadius:s,cornerIsExternal:f}),x=v.circleTangency,b=v.lineTangency,w=v.theta,y=zd({cx:r,cy:n,radius:o,angle:m,sign:-p,cornerRadius:s,cornerIsExternal:f}),P=y.circleTangency,O=y.lineTangency,A=y.theta,C=f?Math.abs(d-m):Math.abs(d-m)-w-A;if(C<0)return c?"M ".concat(b.x,",").concat(b.y,`
|
|
454
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
455
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
456
|
+
`):l3({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:d,endAngle:m});var _="M ".concat(b.x,",").concat(b.y,`
|
|
457
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
|
|
458
|
+
A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(p<0),",").concat(P.x,",").concat(P.y,`
|
|
459
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(O.x,",").concat(O.y,`
|
|
460
|
+
`);if(i>0){var E=zd({cx:r,cy:n,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),N=E.circleTangency,R=E.lineTangency,M=E.theta,F=zd({cx:r,cy:n,radius:i,angle:m,sign:-p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),I=F.circleTangency,$=F.lineTangency,L=F.theta,U=f?Math.abs(d-m):Math.abs(d-m)-M-L;if(U<0&&s===0)return"".concat(_,"L").concat(r,",").concat(n,"Z");_+="L".concat($.x,",").concat($.y,`
|
|
461
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(I.x,",").concat(I.y,`
|
|
462
|
+
A`).concat(i,",").concat(i,",0,").concat(+(U>180),",").concat(+(p>0),",").concat(N.x,",").concat(N.y,`
|
|
463
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(R.x,",").concat(R.y,"Z")}else _+="L".concat(r,",").concat(n,"Z");return _},qJ={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},c3=function(t){var r=rk(rk({},qJ),t),n=r.cx,i=r.cy,o=r.innerRadius,s=r.outerRadius,c=r.cornerRadius,f=r.forceCornerRadius,d=r.cornerIsExternal,m=r.startAngle,p=r.endAngle,v=r.className;if(s<o||m===p)return null;var x=Je("recharts-sector",v),b=s-o,w=$a(c,b,0,!0),y;return w>0&&Math.abs(m-p)<360?y=zJ({cx:n,cy:i,innerRadius:o,outerRadius:s,cornerRadius:Math.min(w,b/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):y=l3({cx:n,cy:i,innerRadius:o,outerRadius:s,startAngle:m,endAngle:p}),K.createElement("path",Gw({},Ve(r,!0),{className:x,d:y,role:"img"}))};function Tu(e){"@babel/helpers - typeof";return Tu=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},Tu(e)}function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kw.apply(this,arguments)}function nk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ik(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nk(Object(r),!0).forEach(function(n){UJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UJ(e,t,r){return t=WJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WJ(e){var t=HJ(e,"string");return Tu(t)=="symbol"?t:t+""}function HJ(e,t){if(Tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ok={curveBasisClosed:r9,curveBasisOpen:n9,curveBasis:t9,curveBumpX:zH,curveBumpY:qH,curveLinearClosed:i9,curveLinear:zp,curveMonotoneX:o9,curveMonotoneY:a9,curveNatural:s9,curveStep:l9,curveStepAfter:u9,curveStepBefore:c9},qd=function(t){return t.x===+t.x&&t.y===+t.y},Fc=function(t){return t.x},Bc=function(t){return t.y},VJ=function(t,r){if(We(t))return t;var n="curve".concat(Fp(t));return(n==="curveMonotone"||n==="curveBump")&&r?ok["".concat(n).concat(r==="vertical"?"Y":"X")]:ok[n]||zp},GJ=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,o=i===void 0?[]:i,s=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=VJ(n,c),p=d?o.filter(function(w){return qd(w)}):o,v;if(Array.isArray(s)){var x=d?s.filter(function(w){return qd(w)}):s,b=p.map(function(w,y){return ik(ik({},w),{},{base:x[y]})});return c==="vertical"?v=Rd().y(Bc).x1(Fc).x0(function(w){return w.base.x}):v=Rd().x(Fc).y1(Bc).y0(function(w){return w.base.y}),v.defined(qd).curve(m),v(b)}return c==="vertical"&&he(s)?v=Rd().y(Bc).x1(Fc).x0(s):he(s)?v=Rd().x(Fc).y1(Bc).y0(s):v=tD().x(Fc).y(Bc),v.defined(qd).curve(m),v(p)},Ys=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var s=n&&n.length?GJ(t):i;return S.createElement("path",Kw({},Ve(t,!1),vh(t),{className:Je("recharts-curve",r),d:s,ref:o}))},n0={exports:{}},i0,ak;function KJ(){if(ak)return i0;ak=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return i0=e,i0}var o0,sk;function XJ(){if(sk)return o0;sk=1;var e=KJ();function t(){}function r(){}return r.resetWarningCache=t,o0=function(){function n(s,c,f,d,m,p){if(p!==e){var v=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 v.name="Invariant Violation",v}}n.isRequired=n;function i(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},o0}var lk;function YJ(){return lk||(lk=1,n0.exports=XJ()()),n0.exports}var QJ=YJ();const st=ft(QJ),{getOwnPropertyNames:ZJ,getOwnPropertySymbols:JJ}=Object,{hasOwnProperty:eee}=Object.prototype;function a0(e,t){return function(n,i,o){return e(n,i,o)&&t(n,i,o)}}function zc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:o}=i,s=o.get(r),c=o.get(n);if(s&&c)return s===n&&c===r;o.set(r,n),o.set(n,r);const f=e(r,n,i);return o.delete(r),o.delete(n),f}}function tee(e){return e!=null?e[Symbol.toStringTag]:void 0}function ck(e){return ZJ(e).concat(JJ(e))}const ree=Object.hasOwn||((e,t)=>eee.call(e,t));function Xa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const nee="__v",iee="__o",oee="_owner",aee=64,{getOwnPropertyDescriptor:Xw,keys:Gh}=Object,{propertyIsEnumerable:Jd}=Object.prototype,see=Xw(Object.getPrototypeOf(Int8Array.prototype),Symbol.toStringTag).get;function lee(e,t){return e.byteLength===t.byteLength&&Kh(new Uint8Array(e),new Uint8Array(t))}function cee(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function uee(e,t){return e.byteLength===t.byteLength&&Kh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function fee(e,t){return Xa(e.getTime(),t.getTime())}function dee(e,t,r){if(e.name!==t.name||e.message!==t.message||e.stack!==t.stack)return!1;const n=e.cause,i=t.cause;if(n!==i&&!r.equals(n,i,"cause","cause",e,t,r))return!1;const o=e.errors,s=t.errors;if(o!==s&&!r.equals(o,s,"errors","errors",e,t,r))return!1;const c=Gh(e),f=Gh(t);let d=c.length;if(!d&&!f.length)return!0;let m=0,p;for(;d-- >0;)if(p=c[d],!(p==="cause"||p==="errors")){if(p!==f[d]&&!Jd.call(t,p)||!r.equals(e[p],t[p],p,p,e,t,r))return!1;++m}const v=f.length-m;return!v||v===(Jd.call(t,"cause")?1:0)+(Jd.call(t,"errors")?1:0)}function hee(e,t){return e===t}function pee(e,t,r){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&Ms(e,t,r)}function uk(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.entries();let s,c,f=0;for(;(s=o.next())&&!s.done;){const d=t.entries();let m=!1,p=0;for(;(c=d.next())&&!c.done;){if(i[p]){p++;continue}const v=s.value,x=c.value;if(r.equals(v[0],x[0],f,p,e,t,r)&&r.equals(v[1],x[1],v[0],x[0],e,t,r)){m=i[p]=!0;break}p++}if(!m)return!1;f++}return!0}const mee=Xa;function vee(e,t,r){const n=Gh(e),i=Gh(t);let o=n.length;if(i.length!==o)return!1;const s=o<=aee;let c;for(;o-- >0;)if(c=n[o],!u3(e,t,c)&&(c!==i[o]&&!(s?i.includes(c):Jd.call(t,c))||!r.equals(e[c],t[c],c,c,e,t,r)))return!1;return!0}function Ms(e,t,r){const n=ck(e);let i=n.length;if(ck(t).length!==i)return!1;let o,s,c;for(;i-- >0;)if(o=n[i],!u3(e,t,o)&&(!ree(t,o)||!r.equals(e[o],t[o],o,o,e,t,r))||(s=Xw(e,o),c=Xw(t,o),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function gee(e,t){return Xa(e.valueOf(),t.valueOf())}function yee(e,t){return e.source===t.source&&e.flags===t.flags}function fk(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.values();let s,c;for(;(s=o.next())&&!s.done;){const f=t.values();let d=!1,m=0;for(;(c=f.next())&&!c.done;){if(!i[m]&&r.equals(s.value,c.value,s.value,c.value,e,t,r)){d=i[m]=!0;break}m++}if(!d)return!1}return!0}function Kh(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;const n=see.call(e);if(n==="Float64Array"||n==="Float32Array"||n==="Float16Array"){for(;r-- >0;)if(e[r]!==t[r]&&(e[r]===e[r]||t[r]===t[r]))return!1;return!0}for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function xee(e,t){return e.href===t.href?!0:e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&bee(e.searchParams,t.searchParams)}function bee(e,t){const r=e.toString(),n=t.toString();return r===n||dk(r)===dk(n)}function dk(e){return e.split("&").sort().join("&")}function u3(e,t,r){return(r===oee||r===iee||r===nee)&&!!(e.$$typeof||t.$$typeof)}const wee="[object ArrayBuffer]",See="[object Arguments]",_ee="[object Boolean]",jee="[object DataView]",Pee="[object Date]",Oee="[object Error]",Cee="[object Map]",Aee="[object Number]",Eee="[object Object]",Tee="[object RegExp]",Nee="[object Set]",kee="[object String]",Ree={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Mee="[object URL]",Iee=Object.prototype.toString;function $ee({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:m,areSetsEqual:p,areTypedArraysEqual:v,areUrlsEqual:x,unknownTagComparators:b}){return function(y,P,O){if(y===P)return!0;if(y==null||P==null)return!1;const A=typeof y;if(A!==typeof P)return!1;if(A!=="object")return A==="number"?c(y,P,O):A==="function"?o(y,P,O):!1;const C=y.constructor;if(C!==P.constructor)return!1;if(C===Object)return f(y,P,O);if(Array.isArray(y))return t(y,P,O);if(C===Date)return n(y,P,O);if(C===RegExp)return m(y,P,O);if(C===Map)return s(y,P,O);if(C===Set)return p(y,P,O);if(C==null)return f(y,P,O);const _=Iee.call(y);if(_===Pee)return n(y,P,O);if(_===Tee)return m(y,P,O);if(_===Cee)return s(y,P,O);if(_===Nee)return p(y,P,O);if(_===Eee)return typeof y.then!="function"&&typeof P.then!="function"&&f(y,P,O);if(_===Mee)return x(y,P,O);if(_===Oee)return i(y,P,O);if(_===See)return f(y,P,O);if(Ree[_])return v(y,P,O);if(_===wee)return e(y,P,O);if(_===jee)return r(y,P,O);if(_===_ee||_===Aee||_===kee)return d(y,P,O);if(b){let E=b[_];if(!E){const N=tee(y);N&&(E=b[N])}if(E)return E(y,P,O)}return!1}}function Dee({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:lee,areArraysEqual:r?Ms:cee,areDataViewsEqual:uee,areDatesEqual:fee,areErrorsEqual:r?pee:dee,areFunctionsEqual:hee,areMapsEqual:r?a0(uk,Ms):uk,areNumbersEqual:mee,areObjectsEqual:r?Ms:vee,arePrimitiveWrappersEqual:gee,areRegExpsEqual:yee,areSetsEqual:r?a0(fk,Ms):fk,areTypedArraysEqual:r?a0(Kh,Ms):Kh,areUrlsEqual:xee,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=zc(n.areArraysEqual),o=zc(n.areErrorsEqual),s=zc(n.areMapsEqual),c=zc(n.areObjectsEqual),f=zc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areErrorsEqual:o,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:f})}return n}function Lee(e){return function(t,r,n,i,o,s,c){return e(t,r,c)}}function Fee({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(c,f){const{cache:d=e?new WeakMap:void 0,meta:m}=r();return t(c,f,{cache:d,equals:n,meta:m,strict:i})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const o={cache:void 0,equals:n,meta:void 0,strict:i};return function(c,f){return t(c,f,o)}}const Bee=ra();ra({strict:!0});ra({circular:!0});ra({circular:!0,strict:!0});ra({createInternalComparator:()=>Xa});ra({strict:!0,createInternalComparator:()=>Xa});ra({circular:!0,createInternalComparator:()=>Xa});ra({circular:!0,createInternalComparator:()=>Xa,strict:!0});function ra(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,o=Dee(e),s=$ee(o),c=r?r(s):Lee(s);return Fee({circular:t,comparator:s,createState:n,equals:c,strict:i})}function zee(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function hk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(o){r<0&&(r=o),o-r>t?(e(o),r=-1):zee(i)};requestAnimationFrame(n)}function Yw(e){"@babel/helpers - typeof";return Yw=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},Yw(e)}function qee(e){return Vee(e)||Hee(e)||Wee(e)||Uee()}function Uee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
464
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wee(e,t){if(e){if(typeof e=="string")return pk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pk(e,t)}}function pk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Hee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vee(e){if(Array.isArray(e))return e}function Gee(){var e={},t=function(){return null},r=!1,n=function i(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var s=o,c=qee(s),f=c[0],d=c.slice(1);if(typeof f=="number"){hk(i.bind(null,d),f);return}i(f),hk(i.bind(null,d));return}Yw(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Nu(e){"@babel/helpers - typeof";return Nu=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},Nu(e)}function mk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(r),!0).forEach(function(n){f3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f3(e,t,r){return t=Kee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kee(e){var t=Xee(e,"string");return Nu(t)==="symbol"?t:String(t)}function Xee(e,t){if(Nu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yee=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(o){return i.includes(o)})})},Qee=function(t){return t},Zee=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Zc=function(t,r){return Object.keys(r).reduce(function(n,i){return vk(vk({},n),{},f3({},i,t(i,r[i])))},{})},gk=function(t,r,n){return t.map(function(i){return"".concat(Zee(i)," ").concat(r,"ms ").concat(n)}).join(",")};function Jee(e,t){return rte(e)||tte(e,t)||d3(e,t)||ete()}function ete(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
465
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tte(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function rte(e){if(Array.isArray(e))return e}function nte(e){return ate(e)||ote(e)||d3(e)||ite()}function ite(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
466
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d3(e,t){if(e){if(typeof e=="string")return Qw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qw(e,t)}}function ote(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ate(e){if(Array.isArray(e))return Qw(e)}function Qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Xh=1e-4,h3=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},p3=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},yk=function(t,r){return function(n){var i=h3(t,r);return p3(i,n)}},ste=function(t,r){return function(n){var i=h3(t,r),o=[].concat(nte(i.map(function(s,c){return s*c}).slice(1)),[0]);return p3(o,n)}},xk=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],o=r[1],s=r[2],c=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,o=0,s=1,c=1;break;case"ease":i=.25,o=.1,s=.25,c=1;break;case"ease-in":i=.42,o=0,s=1,c=1;break;case"ease-out":i=.42,o=0,s=.58,c=1;break;case"ease-in-out":i=0,o=0,s=.58,c=1;break;default:{var f=r[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),m=Jee(d,4);i=m[0],o=m[1],s=m[2],c=m[3]}}}var p=yk(i,s),v=yk(o,c),x=ste(i,s),b=function(P){return P>1?1:P<0?0:P},w=function(P){for(var O=P>1?1:P,A=O,C=0;C<8;++C){var _=p(A)-O,E=x(A);if(Math.abs(_-O)<Xh||E<Xh)return v(A);A=b(A-_/E)}return v(A)};return w.isStepper=!1,w},lte=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,o=i===void 0?8:i,s=t.dt,c=s===void 0?17:s,f=function(m,p,v){var x=-(m-p)*n,b=v*o,w=v+(x-b)*c/1e3,y=v*c/1e3+m;return Math.abs(y-p)<Xh&&Math.abs(w)<Xh?[p,0]:[y,w]};return f.isStepper=!0,f.dt=c,f},cte=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return xk(i);case"spring":return lte();default:if(i.split("(")[0]==="cubic-bezier")return xk(i)}return typeof i=="function"?i:null};function ku(e){"@babel/helpers - typeof";return ku=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},ku(e)}function bk(e){return dte(e)||fte(e)||m3(e)||ute()}function ute(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
467
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dte(e){if(Array.isArray(e))return Jw(e)}function wk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(r),!0).forEach(function(n){Zw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zw(e,t,r){return t=hte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hte(e){var t=pte(e,"string");return ku(t)==="symbol"?t:String(t)}function pte(e,t){if(ku(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ku(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mte(e,t){return yte(e)||gte(e,t)||m3(e,t)||vte()}function vte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
468
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m3(e,t){if(e){if(typeof e=="string")return Jw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jw(e,t)}}function Jw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gte(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function yte(e){if(Array.isArray(e))return e}var Yh=function(t,r,n){return t+(r-t)*n},e1=function(t){var r=t.from,n=t.to;return r!==n},xte=function e(t,r,n){var i=Zc(function(o,s){if(e1(s)){var c=t(s.from,s.to,s.velocity),f=mte(c,2),d=f[0],m=f[1];return dr(dr({},s),{},{from:d,velocity:m})}return s},r);return n<1?Zc(function(o,s){return e1(s)?dr(dr({},s),{},{velocity:Yh(s.velocity,i[o].velocity,n),from:Yh(s.from,i[o].from,n)}):s},r):e(t,i,n-1)};const bte=(function(e,t,r,n,i){var o=Yee(e,t),s=o.reduce(function(y,P){return dr(dr({},y),{},Zw({},P,[e[P],t[P]]))},{}),c=o.reduce(function(y,P){return dr(dr({},y),{},Zw({},P,{from:e[P],velocity:0,to:t[P]}))},{}),f=-1,d,m,p=function(){return null},v=function(){return Zc(function(P,O){return O.from},c)},x=function(){return!Object.values(c).filter(e1).length},b=function(P){d||(d=P);var O=P-d,A=O/r.dt;c=xte(r,c,A),i(dr(dr(dr({},e),t),v())),d=P,x()||(f=requestAnimationFrame(p))},w=function(P){m||(m=P);var O=(P-m)/n,A=Zc(function(_,E){return Yh.apply(void 0,bk(E).concat([r(O)]))},s);if(i(dr(dr(dr({},e),t),A)),O<1)f=requestAnimationFrame(p);else{var C=Zc(function(_,E){return Yh.apply(void 0,bk(E).concat([r(1)]))},s);i(dr(dr(dr({},e),t),C))}};return p=r.isStepper?b:w,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});function dl(e){"@babel/helpers - typeof";return dl=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},dl(e)}var wte=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Ste(e,t){if(e==null)return{};var r=_te(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _te(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function s0(e){return Cte(e)||Ote(e)||Pte(e)||jte()}function jte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
469
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pte(e,t){if(e){if(typeof e=="string")return t1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t1(e,t)}}function Ote(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cte(e){if(Array.isArray(e))return t1(e)}function t1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sk(Object(r),!0).forEach(function(n){Kc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kc(e,t,r){return t=v3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ate(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ete(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v3(n.key),n)}}function Tte(e,t,r){return t&&Ete(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v3(e){var t=Nte(e,"string");return dl(t)==="symbol"?t:String(t)}function Nte(e,t){if(dl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r1(e,t)}function r1(e,t){return r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},r1(e,t)}function Rte(e){var t=Mte();return function(){var n=Qh(e),i;if(t){var o=Qh(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return n1(this,i)}}function n1(e,t){if(t&&(dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return i1(e)}function i1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mte(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qh(e)}var ci=(function(e){kte(r,e);var t=Rte(r);function r(n,i){var o;Ate(this,r),o=t.call(this,n,i);var s=o.props,c=s.isActive,f=s.attributeName,d=s.from,m=s.to,p=s.steps,v=s.children,x=s.duration;if(o.handleStyleChange=o.handleStyleChange.bind(i1(o)),o.changeStyle=o.changeStyle.bind(i1(o)),!c||x<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:m}),n1(o);if(p&&p.length)o.state={style:p[0].style};else if(d){if(typeof v=="function")return o.state={style:d},n1(o);o.state={style:f?Kc({},f,d):d}}else o.state={style:{}};return o}return Tte(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,s=i.canBegin;this.mounted=!0,!(!o||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,s=o.isActive,c=o.canBegin,f=o.attributeName,d=o.shouldReAnimate,m=o.to,p=o.from,v=this.state.style;if(c){if(!s){var x={style:f?Kc({},f,m):m};this.state&&v&&(f&&v[f]!==m||!f&&v!==m)&&this.setState(x);return}if(!(Bee(i.to,m)&&i.canBegin&&i.isActive)){var b=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=b||d?p:i.to;if(this.state&&v){var y={style:f?Kc({},f,w):w};(f&&v[f]!==w||!f&&v!==w)&&this.setState(y)}this.runAnimation(Mn(Mn({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,s=i.from,c=i.to,f=i.duration,d=i.easing,m=i.begin,p=i.onAnimationEnd,v=i.onAnimationStart,x=bte(s,c,cte(d),f,this.changeStyle),b=function(){o.stopJSAnimation=x()};this.manager.start([v,m,b,f,p])}},{key:"runStepAnimation",value:function(i){var o=this,s=i.steps,c=i.begin,f=i.onAnimationStart,d=s[0],m=d.style,p=d.duration,v=p===void 0?0:p,x=function(w,y,P){if(P===0)return w;var O=y.duration,A=y.easing,C=A===void 0?"ease":A,_=y.style,E=y.properties,N=y.onAnimationEnd,R=P>0?s[P-1]:y,M=E||Object.keys(_);if(typeof C=="function"||C==="spring")return[].concat(s0(w),[o.runJSAnimation.bind(o,{from:R.style,to:_,duration:O,easing:C}),O]);var F=gk(M,O,C),I=Mn(Mn(Mn({},R.style),_),{},{transition:F});return[].concat(s0(w),[I,O,N]).filter(Qee)};return this.manager.start([f].concat(s0(s.reduce(x,[m,Math.max(v,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Gee());var o=i.begin,s=i.duration,c=i.attributeName,f=i.to,d=i.easing,m=i.onAnimationStart,p=i.onAnimationEnd,v=i.steps,x=i.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var w=c?Kc({},c,f):f,y=gk(Object.keys(w),s,d);b.start([m,o,Mn(Mn({},w),{},{transition:y}),s,p])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var c=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=Ste(i,wte),d=S.Children.count(o),m=this.state.style;if(typeof o=="function")return o(m);if(!c||d===0||s<=0)return o;var p=function(x){var b=x.props,w=b.style,y=w===void 0?{}:w,P=b.className,O=S.cloneElement(x,Mn(Mn({},f),{},{style:Mn(Mn({},y),m),className:P}));return O};return d===1?p(S.Children.only(o)):K.createElement("div",null,S.Children.map(o,function(v){return p(v)}))}}]),r})(S.PureComponent);ci.displayName="Animate";ci.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ci.propTypes={from:st.oneOfType([st.object,st.string]),to:st.oneOfType([st.object,st.string]),attributeName:st.string,duration:st.number,begin:st.number,easing:st.oneOfType([st.string,st.func]),steps:st.arrayOf(st.shape({duration:st.number.isRequired,style:st.object.isRequired,easing:st.oneOfType([st.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),st.func]),properties:st.arrayOf("string"),onAnimationEnd:st.func})),children:st.oneOfType([st.node,st.func]),isActive:st.bool,canBegin:st.bool,onAnimationEnd:st.func,shouldReAnimate:st.bool,onAnimationStart:st.func,onAnimationReStart:st.func};function Ru(e){"@babel/helpers - typeof";return Ru=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},Ru(e)}function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zh.apply(this,arguments)}function Ite(e,t){return Fte(e)||Lte(e,t)||Dte(e,t)||$te()}function $te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
470
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dte(e,t){if(e){if(typeof e=="string")return _k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _k(e,t)}}function _k(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Lte(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Fte(e){if(Array.isArray(e))return e}function jk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jk(Object(r),!0).forEach(function(n){Bte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bte(e,t,r){return t=zte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zte(e){var t=qte(e,"string");return Ru(t)=="symbol"?t:t+""}function qte(e,t){if(Ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ok=function(t,r,n,i,o){var s=Math.min(Math.abs(n)/2,Math.abs(i)/2),c=i>=0?1:-1,f=n>=0?1:-1,d=i>=0&&n>=0||i<0&&n<0?1:0,m;if(s>0&&o instanceof Array){for(var p=[0,0,0,0],v=0,x=4;v<x;v++)p[v]=o[v]>s?s:o[v];m="M".concat(t,",").concat(r+c*p[0]),p[0]>0&&(m+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(r)),m+="L ".concat(t+n-f*p[1],",").concat(r),p[1]>0&&(m+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
|
|
471
|
+
`).concat(t+n,",").concat(r+c*p[1])),m+="L ".concat(t+n,",").concat(r+i-c*p[2]),p[2]>0&&(m+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
|
|
472
|
+
`).concat(t+n-f*p[2],",").concat(r+i)),m+="L ".concat(t+f*p[3],",").concat(r+i),p[3]>0&&(m+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
|
|
473
|
+
`).concat(t,",").concat(r+i-c*p[3])),m+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);m="M ".concat(t,",").concat(r+c*b,`
|
|
474
|
+
A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+f*b,",").concat(r,`
|
|
475
|
+
L `).concat(t+n-f*b,",").concat(r,`
|
|
476
|
+
A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+n,",").concat(r+c*b,`
|
|
477
|
+
L `).concat(t+n,",").concat(r+i-c*b,`
|
|
478
|
+
A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t+n-f*b,",").concat(r+i,`
|
|
479
|
+
L `).concat(t+f*b,",").concat(r+i,`
|
|
480
|
+
A `).concat(b,",").concat(b,",0,0,").concat(d,",").concat(t,",").concat(r+i-c*b," Z")}else m="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return m},Ute=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,o=r.x,s=r.y,c=r.width,f=r.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(o,o+c),m=Math.max(o,o+c),p=Math.min(s,s+f),v=Math.max(s,s+f);return n>=d&&n<=m&&i>=p&&i<=v}return!1},Wte={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},P_=function(t){var r=Pk(Pk({},Wte),t),n=S.useRef(),i=S.useState(-1),o=Ite(i,2),s=o[0],c=o[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&c(C)}catch{}},[]);var f=r.x,d=r.y,m=r.width,p=r.height,v=r.radius,x=r.className,b=r.animationEasing,w=r.animationDuration,y=r.animationBegin,P=r.isAnimationActive,O=r.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||m===0||p===0)return null;var A=Je("recharts-rectangle",x);return O?K.createElement(ci,{canBegin:s>0,from:{width:m,height:p,x:f,y:d},to:{width:m,height:p,x:f,y:d},duration:w,animationEasing:b,isActive:O},function(C){var _=C.width,E=C.height,N=C.x,R=C.y;return K.createElement(ci,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:w,isActive:P,easing:b},K.createElement("path",Zh({},Ve(r,!0),{className:A,d:Ok(N,R,_,E,v),ref:n})))}):K.createElement("path",Zh({},Ve(r,!0),{className:A,d:Ok(f,d,m,p,v)}))};function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o1.apply(this,arguments)}var im=function(t){var r=t.cx,n=t.cy,i=t.r,o=t.className,s=Je("recharts-dot",o);return r===+r&&n===+n&&i===+i?S.createElement("circle",o1({},Ve(t,!1),vh(t),{className:s,cx:r,cy:n,r:i})):null};function Mu(e){"@babel/helpers - typeof";return Mu=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},Mu(e)}var Hte=["x","y","top","left","width","height","className"];function a1(){return a1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a1.apply(this,arguments)}function Ck(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ck(Object(r),!0).forEach(function(n){Gte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ck(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gte(e,t,r){return t=Kte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kte(e){var t=Xte(e,"string");return Mu(t)=="symbol"?t:t+""}function Xte(e,t){if(Mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yte(e,t){if(e==null)return{};var r=Qte(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qte(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Zte=function(t,r,n,i,o,s){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(s,",").concat(r,"h").concat(n)},Jte=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,o=i===void 0?0:i,s=t.top,c=s===void 0?0:s,f=t.left,d=f===void 0?0:f,m=t.width,p=m===void 0?0:m,v=t.height,x=v===void 0?0:v,b=t.className,w=Yte(t,Hte),y=Vte({x:n,y:o,top:c,left:d,width:p,height:x},w);return!he(n)||!he(o)||!he(p)||!he(x)||!he(c)||!he(d)?null:K.createElement("path",a1({},Ve(y,!0),{className:Je("recharts-cross",b),d:Zte(n,o,p,x,c,d)}))},l0,Ak;function ere(){if(Ak)return l0;Ak=1;var e=CD(),t=e(Object.getPrototypeOf,Object);return l0=t,l0}var c0,Ek;function tre(){if(Ek)return c0;Ek=1;var e=no(),t=ere(),r=io(),n="[object Object]",i=Function.prototype,o=Object.prototype,s=i.toString,c=o.hasOwnProperty,f=s.call(Object);function d(m){if(!r(m)||e(m)!=n)return!1;var p=t(m);if(p===null)return!0;var v=c.call(p,"constructor")&&p.constructor;return typeof v=="function"&&v instanceof v&&s.call(v)==f}return c0=d,c0}var rre=tre();const nre=ft(rre);var u0,Tk;function ire(){if(Tk)return u0;Tk=1;var e=no(),t=io(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return u0=n,u0}var ore=ire();const are=ft(ore);function Iu(e){"@babel/helpers - typeof";return Iu=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},Iu(e)}function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jh.apply(this,arguments)}function sre(e,t){return fre(e)||ure(e,t)||cre(e,t)||lre()}function lre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
481
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cre(e,t){if(e){if(typeof e=="string")return Nk(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nk(e,t)}}function Nk(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ure(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function fre(e){if(Array.isArray(e))return e}function kk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kk(Object(r),!0).forEach(function(n){dre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dre(e,t,r){return t=hre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hre(e){var t=pre(e,"string");return Iu(t)=="symbol"?t:t+""}function pre(e,t){if(Iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mk=function(t,r,n,i,o){var s=n-i,c;return c="M ".concat(t,",").concat(r),c+="L ".concat(t+n,",").concat(r),c+="L ".concat(t+n-s/2,",").concat(r+o),c+="L ".concat(t+n-s/2-i,",").concat(r+o),c+="L ".concat(t,",").concat(r," Z"),c},mre={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vre=function(t){var r=Rk(Rk({},mre),t),n=S.useRef(),i=S.useState(-1),o=sre(i,2),s=o[0],c=o[1];S.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&c(A)}catch{}},[]);var f=r.x,d=r.y,m=r.upperWidth,p=r.lowerWidth,v=r.height,x=r.className,b=r.animationEasing,w=r.animationDuration,y=r.animationBegin,P=r.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||v!==+v||m===0&&p===0||v===0)return null;var O=Je("recharts-trapezoid",x);return P?K.createElement(ci,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:v,x:f,y:d},to:{upperWidth:m,lowerWidth:p,height:v,x:f,y:d},duration:w,animationEasing:b,isActive:P},function(A){var C=A.upperWidth,_=A.lowerWidth,E=A.height,N=A.x,R=A.y;return K.createElement(ci,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:w,easing:b},K.createElement("path",Jh({},Ve(r,!0),{className:O,d:Mk(N,R,C,_,E),ref:n})))}):K.createElement("g",null,K.createElement("path",Jh({},Ve(r,!0),{className:O,d:Mk(f,d,m,p,v)})))},gre=["option","shapeType","propTransformer","activeClassName","isActive"];function $u(e){"@babel/helpers - typeof";return $u=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},$u(e)}function yre(e,t){if(e==null)return{};var r=xre(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ik(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ep(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ik(Object(r),!0).forEach(function(n){bre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ik(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bre(e,t,r){return t=wre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wre(e){var t=Sre(e,"string");return $u(t)=="symbol"?t:t+""}function Sre(e,t){if($u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _re(e,t){return ep(ep({},t),e)}function jre(e,t){return e==="symbols"}function $k(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return K.createElement(P_,r);case"trapezoid":return K.createElement(vre,r);case"sector":return K.createElement(c3,r);case"symbols":if(jre(t))return K.createElement(zS,r);break;default:return null}}function Pre(e){return S.isValidElement(e)?e.props:e}function Ore(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?_re:n,o=e.activeClassName,s=o===void 0?"recharts-active-shape":o,c=e.isActive,f=yre(e,gre),d;if(S.isValidElement(t))d=S.cloneElement(t,ep(ep({},f),Pre(t)));else if(We(t))d=t(f);else if(nre(t)&&!are(t)){var m=i(t,f);d=K.createElement($k,{shapeType:r,elementProps:m})}else{var p=f;d=K.createElement($k,{shapeType:r,elementProps:p})}return c?K.createElement(pt,{className:s},d):d}function om(e,t){return t!=null&&"trapezoids"in e.props}function am(e,t){return t!=null&&"sectors"in e.props}function Du(e,t){return t!=null&&"points"in e.props}function Cre(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&o}function Are(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Ere(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Tre(e,t){var r;return om(e,t)?r=Cre:am(e,t)?r=Are:Du(e,t)&&(r=Ere),r}function Nre(e,t){var r;return om(e,t)?r="trapezoids":am(e,t)?r="sectors":Du(e,t)&&(r="points"),r}function kre(e,t){if(om(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(am(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Du(e,t)?t.payload:{}}function Rre(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=Nre(r,t),o=kre(r,t),s=n.filter(function(f,d){var m=ul(o,f),p=r.props[i].filter(function(b){var w=Tre(r,t);return w(b,t)}),v=r.props[i].indexOf(p[p.length-1]),x=d===v;return m&&x}),c=n.indexOf(s[s.length-1]);return c}var f0,Dk;function Mre(){if(Dk)return f0;Dk=1;var e=Math.ceil,t=Math.max;function r(n,i,o,s){for(var c=-1,f=t(e((i-n)/(o||1)),0),d=Array(f);f--;)d[s?f:++c]=n,n+=o;return d}return f0=r,f0}var d0,Lk;function g3(){if(Lk)return d0;Lk=1;var e=UD(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var o=i<0?-1:1;return o*r}return i===i?i:0}return d0=n,d0}var h0,Fk;function Ire(){if(Fk)return h0;Fk=1;var e=Mre(),t=Vp(),r=g3();function n(i){return function(o,s,c){return c&&typeof c!="number"&&t(o,s,c)&&(s=c=void 0),o=r(o),s===void 0?(s=o,o=0):s=r(s),c=c===void 0?o<s?1:-1:r(c),e(o,s,c,i)}}return h0=n,h0}var p0,Bk;function $re(){if(Bk)return p0;Bk=1;var e=Ire(),t=e();return p0=t,p0}var Dre=$re();const tp=ft(Dre);function Lu(e){"@babel/helpers - typeof";return Lu=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},Lu(e)}function zk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zk(Object(r),!0).forEach(function(n){y3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y3(e,t,r){return t=Lre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lre(e){var t=Fre(e,"string");return Lu(t)=="symbol"?t:t+""}function Fre(e,t){if(Lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bre=["Webkit","Moz","O","ms"],zre=function(t,r){var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=Bre.reduce(function(o,s){return qk(qk({},o),{},y3({},s+n,r))},{});return i[t]=r,i};function hl(e){"@babel/helpers - typeof";return hl=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},hl(e)}function rp(){return rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rp.apply(this,arguments)}function Uk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uk(Object(r),!0).forEach(function(n){Kr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b3(n.key),n)}}function Ure(e,t,r){return t&&Wk(e.prototype,t),r&&Wk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wre(e,t,r){return t=np(t),Hre(e,x3()?Reflect.construct(t,r||[],np(e).constructor):t.apply(e,r))}function Hre(e,t){if(t&&(hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vre(e)}function Vre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x3=function(){return!!e})()}function np(e){return np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},np(e)}function Gre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s1(e,t)}function s1(e,t){return s1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},s1(e,t)}function Kr(e,t,r){return t=b3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b3(e){var t=Kre(e,"string");return hl(t)=="symbol"?t:t+""}function Kre(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xre=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,o=t.x,s=t.width,c=t.travellerWidth;if(!r||!r.length)return{};var f=r.length,d=Yc().domain(tp(0,f)).range([o,o+s-c]),m=d.domain().map(function(p){return d(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(n),endX:d(i),scale:d,scaleValues:m}},Hk=function(t){return t.changedTouches&&!!t.changedTouches.length},pl=(function(e){function t(r){var n;return qre(this,t),n=Wre(this,t,[r]),Kr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Kr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Kr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,o=i.endIndex,s=i.onDragEnd,c=i.startIndex;s==null||s({endIndex:o,startIndex:c})}),n.detachDragEndListener()}),Kr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Kr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Kr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Kr(n,"handleSlideDragStart",function(i){var o=Hk(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Gre(t,e),Ure(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,o=n.endX,s=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,p=Math.min(i,o),v=Math.max(i,o),x=t.getIndexInRange(s,p),b=t.getIndexInRange(s,v);return{startIndex:x-x%f,endIndex:b===m?m:b-b%f}}},{key:"getTextOfTick",value:function(n){var i=this.props,o=i.data,s=i.tickFormatter,c=i.dataKey,f=kr(o[n],c,n);return We(s)?s(f,n):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,o=i.slideMoveStartX,s=i.startX,c=i.endX,f=this.props,d=f.x,m=f.width,p=f.travellerWidth,v=f.startIndex,x=f.endIndex,b=f.onChange,w=n.pageX-o;w>0?w=Math.min(w,d+m-p-c,d+m-p-s):w<0&&(w=Math.max(w,d-s,d-c));var y=this.getIndex({startX:s+w,endX:c+w});(y.startIndex!==v||y.endIndex!==x)&&b&&b(y),this.setState({startX:s+w,endX:c+w,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var o=Hk(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,o=i.brushMoveStartX,s=i.movingTravellerId,c=i.endX,f=i.startX,d=this.state[s],m=this.props,p=m.x,v=m.width,x=m.travellerWidth,b=m.onChange,w=m.gap,y=m.data,P={startX:this.state.startX,endX:this.state.endX},O=n.pageX-o;O>0?O=Math.min(O,p+v-x-d):O<0&&(O=Math.max(O,p-d)),P[s]=d+O;var A=this.getIndex(P),C=A.startIndex,_=A.endIndex,E=function(){var R=y.length-1;return s==="startX"&&(c>f?C%w===0:_%w===0)||c<f&&_===R||s==="endX"&&(c>f?_%w===0:C%w===0)||c>f&&_===R};this.setState(Kr(Kr({},s,d+O),"brushMoveStartX",n.pageX),function(){b&&E()&&b(A)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var o=this,s=this.state,c=s.scaleValues,f=s.startX,d=s.endX,m=this.state[i],p=c.indexOf(m);if(p!==-1){var v=p+n;if(!(v===-1||v>=c.length)){var x=c[v];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(Kr({},i,x),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,o=n.y,s=n.width,c=n.height,f=n.fill,d=n.stroke;return K.createElement("rect",{stroke:d,fill:f,x:i,y:o,width:s,height:c})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,o=n.y,s=n.width,c=n.height,f=n.data,d=n.children,m=n.padding,p=S.Children.only(d);return p?K.cloneElement(p,{x:i,y:o,width:s,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(n,i){var o,s,c=this,f=this.props,d=f.y,m=f.travellerWidth,p=f.height,v=f.traveller,x=f.ariaLabel,b=f.data,w=f.startIndex,y=f.endIndex,P=Math.max(n,this.props.x),O=m0(m0({},Ve(this.props,!1)),{},{x:P,y:d,width:m,height:p}),A=x||"Min value: ".concat((o=b[w])===null||o===void 0?void 0:o.name,", Max value: ").concat((s=b[y])===null||s===void 0?void 0:s.name);return K.createElement(pt,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),c.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,O))}},{key:"renderSlide",value:function(n,i){var o=this.props,s=o.y,c=o.height,f=o.stroke,d=o.travellerWidth,m=Math.min(n,i)+d,p=Math.max(Math.abs(i-n)-d,0);return K.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:s,width:p,height:c})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,o=n.endIndex,s=n.y,c=n.height,f=n.travellerWidth,d=n.stroke,m=this.state,p=m.startX,v=m.endX,x=5,b={pointerEvents:"none",fill:d};return K.createElement(pt,{className:"recharts-brush-texts"},K.createElement(Ah,rp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,v)-x,y:s+c/2},b),this.getTextOfTick(i)),K.createElement(Ah,rp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,v)+f+x,y:s+c/2},b),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,i=n.data,o=n.className,s=n.children,c=n.x,f=n.y,d=n.width,m=n.height,p=n.alwaysShowText,v=this.state,x=v.startX,b=v.endX,w=v.isTextActive,y=v.isSlideMoving,P=v.isTravellerMoving,O=v.isTravellerFocused;if(!i||!i.length||!he(c)||!he(f)||!he(d)||!he(m)||d<=0||m<=0)return null;var A=Je("recharts-brush",o),C=K.Children.count(s)===1,_=zre("userSelect","none");return K.createElement(pt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(x,b),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(b,"endX"),(w||y||P||O||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,o=n.y,s=n.width,c=n.height,f=n.stroke,d=Math.floor(o+c/2)-1;return K.createElement(K.Fragment,null,K.createElement("rect",{x:i,y:o,width:s,height:c,fill:f,stroke:"none"}),K.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),K.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var o;return K.isValidElement(n)?o=K.cloneElement(n,i):We(n)?o=n(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(n,i){var o=n.data,s=n.width,c=n.x,f=n.travellerWidth,d=n.updateId,m=n.startIndex,p=n.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return m0({prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s},o&&o.length?Xre({data:o,width:s,x:c,travellerWidth:f,startIndex:m,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||c!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([c,c+s-f]);var v=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:o,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(n,i){for(var o=n.length,s=0,c=o-1;c-s>1;){var f=Math.floor((s+c)/2);n[f]>i?c=f:s=f}return i>=n[c]?c:s}}])})(S.PureComponent);Kr(pl,"displayName","Brush");Kr(pl,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var v0,Vk;function Yre(){if(Vk)return v0;Vk=1;var e=KS();function t(r,n){var i;return e(r,function(o,s,c){return i=n(o,s,c),!i}),!!i}return v0=t,v0}var g0,Gk;function Qre(){if(Gk)return g0;Gk=1;var e=bD(),t=Zo(),r=Yre(),n=qr(),i=Vp();function o(s,c,f){var d=n(s)?e:r;return f&&i(s,c,f)&&(c=void 0),d(s,t(c,3))}return g0=o,g0}var Zre=Qre();const Jre=ft(Zre);var ri=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},y0,Kk;function ene(){if(Kk)return y0;Kk=1;var e=LD();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return y0=t,y0}var x0,Xk;function tne(){if(Xk)return x0;Xk=1;var e=ene(),t=$D(),r=Zo();function n(i,o){var s={};return o=r(o,3),t(i,function(c,f,d){e(s,f,o(c,f,d))}),s}return x0=n,x0}var rne=tne();const nne=ft(rne);var b0,Yk;function ine(){if(Yk)return b0;Yk=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return b0=e,b0}var w0,Qk;function one(){if(Qk)return w0;Qk=1;var e=KS();function t(r,n){var i=!0;return e(r,function(o,s,c){return i=!!n(o,s,c),i}),i}return w0=t,w0}var S0,Zk;function ane(){if(Zk)return S0;Zk=1;var e=ine(),t=one(),r=Zo(),n=qr(),i=Vp();function o(s,c,f){var d=n(s)?e:t;return f&&i(s,c,f)&&(c=void 0),d(s,r(c,3))}return S0=o,S0}var sne=ane();const w3=ft(sne);var lne=["x","y"];function Fu(e){"@babel/helpers - typeof";return Fu=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},Fu(e)}function l1(){return l1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l1.apply(this,arguments)}function Jk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jk(Object(r),!0).forEach(function(n){cne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cne(e,t,r){return t=une(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function une(e){var t=fne(e,"string");return Fu(t)=="symbol"?t:t+""}function fne(e,t){if(Fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dne(e,t){if(e==null)return{};var r=hne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pne(e,t){var r=e.x,n=e.y,i=dne(e,lne),o="".concat(r),s=parseInt(o,10),c="".concat(n),f=parseInt(c,10),d="".concat(t.height||i.height),m=parseInt(d,10),p="".concat(t.width||i.width),v=parseInt(p,10);return qc(qc(qc(qc(qc({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:m,width:v,name:t.name,radius:t.radius})}function eR(e){return K.createElement(Ore,l1({shapeType:"rectangle",propTransformer:pne,activeClassName:"recharts-active-bar"},e))}var mne=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var o=he(n)||lH(n);return o?t(n,i):(o||Fa(),r)}},vne=["value","background"],S3;function ml(e){"@babel/helpers - typeof";return ml=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},ml(e)}function gne(e,t){if(e==null)return{};var r=yne(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ip.apply(this,arguments)}function tR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tR(Object(r),!0).forEach(function(n){Mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j3(n.key),n)}}function bne(e,t,r){return t&&rR(e.prototype,t),r&&rR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wne(e,t,r){return t=op(t),Sne(e,_3()?Reflect.construct(t,r||[],op(e).constructor):t.apply(e,r))}function Sne(e,t){if(t&&(ml(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ne(e)}function _ne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_3=function(){return!!e})()}function op(e){return op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},op(e)}function jne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c1(e,t)}function c1(e,t){return c1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},c1(e,t)}function Mo(e,t,r){return t=j3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j3(e){var t=Pne(e,"string");return ml(t)=="symbol"?t:t+""}function Pne(e,t){if(ml(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ml(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ya=(function(e){function t(){var r;xne(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=wne(this,t,[].concat(i)),Mo(r,"state",{isAnimationFinished:!1}),Mo(r,"id",$l("recharts-bar-")),Mo(r,"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),s&&s()}),Mo(r,"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),s&&s()}),r}return jne(t,e),bne(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,o=this.props,s=o.shape,c=o.dataKey,f=o.activeIndex,d=o.activeBar,m=Ve(this.props,!1);return n&&n.map(function(p,v){var x=v===f,b=x?d:s,w=Ft(Ft(Ft({},m),p),{},{isActive:x,option:b,index:v,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return K.createElement(pt,ip({className:"recharts-bar-rectangle"},gh(i.props,p,v),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(v)}),K.createElement(eR,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,o=i.data,s=i.layout,c=i.isAnimationActive,f=i.animationBegin,d=i.animationDuration,m=i.animationEasing,p=i.animationId,v=this.state.prevData;return K.createElement(ci,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var b=x.t,w=o.map(function(y,P){var O=v&&v[P];if(O){var A=hr(O.x,y.x),C=hr(O.y,y.y),_=hr(O.width,y.width),E=hr(O.height,y.height);return Ft(Ft({},y),{},{x:A(b),y:C(b),width:_(b),height:E(b)})}if(s==="horizontal"){var N=hr(0,y.height),R=N(b);return Ft(Ft({},y),{},{y:y.y+y.height-R,height:R})}var M=hr(0,y.width),F=M(b);return Ft(Ft({},y),{},{width:F})});return K.createElement(pt,null,n.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,o=n.isAnimationActive,s=this.state.prevData;return o&&i&&i.length&&(!s||!ul(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,o=i.data,s=i.dataKey,c=i.activeIndex,f=Ve(this.props.background,!1);return o.map(function(d,m){d.value;var p=d.background,v=gne(d,vne);if(!p)return null;var x=Ft(Ft(Ft(Ft(Ft({},v),{},{fill:"#eee"},p),f),gh(n.props,d,m)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:s,index:m,className:"recharts-bar-background-rectangle"});return K.createElement(eR,ip({key:"background-bar-".concat(m),option:n.props.background,isActive:m===c},x))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.data,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,p=Sn(m,sf);if(!p)return null;var v=d==="vertical"?s[0].height/2:s[0].width/2,x=function(y,P){var O=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:O,errorVal:kr(y,P)}},b={clipPath:n?"url(#clipPath-".concat(i,")"):null};return K.createElement(pt,b,p.map(function(w){return K.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,offset:v,dataPointFormatter:x})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,o=n.data,s=n.className,c=n.xAxis,f=n.yAxis,d=n.left,m=n.top,p=n.width,v=n.height,x=n.isAnimationActive,b=n.background,w=n.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,P=Je("recharts-bar",s),O=c&&c.allowDataOverflow,A=f&&f.allowDataOverflow,C=O||A,_=Ye(w)?this.id:w;return K.createElement(pt,{className:P},O||A?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(_)},K.createElement("rect",{x:O?d:d-p/2,y:A?m:m-v/2,width:O?p:p*2,height:A?v:v*2}))):null,K.createElement(pt,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(_,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,_),(!x||y)&&Li.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(S.PureComponent);S3=Ya;Mo(Ya,"displayName","Bar");Mo(Ya,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Va.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Mo(Ya,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,o=e.xAxis,s=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,v=e.offset,x=$Z(n,r);if(!x)return null;var b=t.layout,w=r.type.defaultProps,y=w!==void 0?Ft(Ft({},w),r.props):r.props,P=y.dataKey,O=y.children,A=y.minPointSize,C=b==="horizontal"?s:o,_=d?C.scale.domain():null,E=WZ({numericAxis:C}),N=Sn(O,QS),R=p.map(function(M,F){var I,$,L,U,H,B;d?I=DZ(d[m+F],_):(I=kr(M,P),Array.isArray(I)||(I=[E,I]));var X=mne(A,S3.defaultProps.minPointSize)(I[1],F);if(b==="horizontal"){var W,q=[s.scale(I[0]),s.scale(I[1])],V=q[0],D=q[1];$=UN({axis:o,ticks:c,bandSize:i,offset:x.offset,entry:M,index:F}),L=(W=D??V)!==null&&W!==void 0?W:void 0,U=x.size;var Y=V-D;if(H=Number.isNaN(Y)?0:Y,B={x:$,y:s.y,width:U,height:s.height},Math.abs(X)>0&&Math.abs(H)<Math.abs(X)){var ie=Fn(H||X)*(Math.abs(X)-Math.abs(H));L-=ie,H+=ie}}else{var ne=[o.scale(I[0]),o.scale(I[1])],pe=ne[0],ge=ne[1];if($=pe,L=UN({axis:s,ticks:f,bandSize:i,offset:x.offset,entry:M,index:F}),U=ge-pe,H=x.size,B={x:o.x,y:L,width:o.width,height:H},Math.abs(X)>0&&Math.abs(U)<Math.abs(X)){var ke=Fn(U||X)*(Math.abs(X)-Math.abs(U));U+=ke}}return Ft(Ft(Ft({},M),{},{x:$,y:L,width:U,height:H,value:d?I:I[1],payload:M,background:B},N&&N[F]&&N[F].props),{},{tooltipPayload:[a3(r,M)],tooltipPosition:{x:$+U/2,y:L+H/2}})});return Ft({data:R,layout:b},v)});function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function One(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P3(n.key),n)}}function Cne(e,t,r){return t&&nR(e.prototype,t),r&&nR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iR(Object(r),!0).forEach(function(n){sm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sm(e,t,r){return t=P3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P3(e){var t=Ane(e,"string");return Bu(t)=="symbol"?t:t+""}function Ane(e,t){if(Bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O_=function(t,r,n,i,o){var s=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(r),p={left:n.left,leftMirror:n.left,right:s-n.right,rightMirror:s-n.right,top:n.top,topMirror:n.top,bottom:c-n.bottom,bottomMirror:c-n.bottom},v=!!Xr(d,Ya);return m.reduce(function(x,b){var w=r[b],y=w.orientation,P=w.domain,O=w.padding,A=O===void 0?{}:O,C=w.mirror,_=w.reversed,E="".concat(y).concat(C?"Mirror":""),N,R,M,F,I;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var $=P[1]-P[0],L=1/0,U=w.categoricalDomain.sort(fH);if(U.forEach(function(ne,pe){pe>0&&(L=Math.min((ne||0)-(U[pe-1]||0),L))}),Number.isFinite(L)){var H=L/$,B=w.layout==="vertical"?n.height:n.width;if(w.padding==="gap"&&(N=H*B/2),w.padding==="no-gap"){var X=$a(t.barCategoryGap,H*B),W=H*B/2;N=W-X-(W-X)/B*X}}}i==="xAxis"?R=[n.left+(A.left||0)+(N||0),n.left+n.width-(A.right||0)-(N||0)]:i==="yAxis"?R=f==="horizontal"?[n.top+n.height-(A.bottom||0),n.top+(A.top||0)]:[n.top+(A.top||0)+(N||0),n.top+n.height-(A.bottom||0)-(N||0)]:R=w.range,_&&(R=[R[1],R[0]]);var q=MZ(w,o,v),V=q.scale,D=q.realScaleType;V.domain(P).range(R),IZ(V);var Y=UZ(V,$n($n({},w),{},{realScaleType:D}));i==="xAxis"?(I=y==="top"&&!C||y==="bottom"&&C,M=n.left,F=p[E]-I*w.height):i==="yAxis"&&(I=y==="left"&&!C||y==="right"&&C,M=p[E]-I*w.width,F=n.top);var ie=$n($n($n({},w),Y),{},{realScaleType:D,x:M,y:F,scale:V,width:i==="xAxis"?n.width:w.width,height:i==="yAxis"?n.height:w.height});return ie.bandSize=Wh(ie,Y),!w.hide&&i==="xAxis"?p[E]+=(I?-1:1)*ie.height:w.hide||(p[E]+=(I?-1:1)*ie.width),$n($n({},x),{},sm({},b,ie))},{})},O3=function(t,r){var n=t.x,i=t.y,o=r.x,s=r.y;return{x:Math.min(n,o),y:Math.min(i,s),width:Math.abs(o-n),height:Math.abs(s-i)}},Ene=function(t){var r=t.x1,n=t.y1,i=t.x2,o=t.y2;return O3({x:r,y:n},{x:i,y:o})},C3=(function(){function e(t){One(this,e),this.scale=t}return Cne(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(r)+c}default:return this.scale(r)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+f}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],o=n[n.length-1];return i<=o?r>=i&&r<=o:r>=o&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();sm(C3,"EPS",1e-4);var C_=function(t){var r=Object.keys(t).reduce(function(n,i){return $n($n({},n),{},sm({},i,C3.create(t[i])))},{});return $n($n({},r),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.bandAware,c=o.position;return nne(i,function(f,d){return r[d].apply(f,{bandAware:s,position:c})})},isInRange:function(i){return w3(i,function(o,s){return r[s].isInRange(o)})}})};function Tne(e){return(e%180+180)%180}var Nne=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Tne(i),s=o*Math.PI/180,c=Math.atan(n/r),f=s>c&&s<Math.PI-c?n/Math.sin(s):r/Math.cos(s);return Math.abs(f)},_0,oR;function kne(){if(oR)return _0;oR=1;var e=Zo(),t=tf(),r=Wp();function n(i){return function(o,s,c){var f=Object(o);if(!t(o)){var d=e(s,3);o=r(o),s=function(p){return d(f[p],p,f)}}var m=i(o,s,c);return m>-1?f[d?o[m]:m]:void 0}}return _0=n,_0}var j0,aR;function Rne(){if(aR)return j0;aR=1;var e=g3();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return j0=t,j0}var P0,sR;function Mne(){if(sR)return P0;sR=1;var e=ND(),t=Zo(),r=Rne(),n=Math.max;function i(o,s,c){var f=o==null?0:o.length;if(!f)return-1;var d=c==null?0:r(c);return d<0&&(d=n(f+d,0)),e(o,t(s,3),d)}return P0=i,P0}var O0,lR;function Ine(){if(lR)return O0;lR=1;var e=kne(),t=Mne(),r=e(t);return O0=r,O0}var $ne=Ine();const Dne=ft($ne);var Lne=q$();const Fne=ft(Lne);var Bne=Fne(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),A_=S.createContext(void 0),E_=S.createContext(void 0),A3=S.createContext(void 0),E3=S.createContext({}),T3=S.createContext(void 0),N3=S.createContext(0),k3=S.createContext(0),cR=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,o=r.offset,s=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Bne(o);return K.createElement(A_.Provider,{value:n},K.createElement(E_.Provider,{value:i},K.createElement(E3.Provider,{value:o},K.createElement(A3.Provider,{value:m},K.createElement(T3.Provider,{value:s},K.createElement(N3.Provider,{value:d},K.createElement(k3.Provider,{value:f},c)))))))},zne=function(){return S.useContext(T3)},R3=function(t){var r=S.useContext(A_);r==null&&Fa();var n=r[t];return n==null&&Fa(),n},qne=function(){var t=S.useContext(A_);return No(t)},Une=function(){var t=S.useContext(E_),r=Dne(t,function(n){return w3(n.domain,Number.isFinite)});return r||No(t)},M3=function(t){var r=S.useContext(E_);r==null&&Fa();var n=r[t];return n==null&&Fa(),n},Wne=function(){var t=S.useContext(A3);return t},Hne=function(){return S.useContext(E3)},T_=function(){return S.useContext(k3)},N_=function(){return S.useContext(N3)};function vl(e){"@babel/helpers - typeof";return vl=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},vl(e)}function Vne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$3(n.key),n)}}function Kne(e,t,r){return t&&Gne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xne(e,t,r){return t=ap(t),Yne(e,I3()?Reflect.construct(t,r||[],ap(e).constructor):t.apply(e,r))}function Yne(e,t){if(t&&(vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qne(e)}function Qne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I3=function(){return!!e})()}function ap(e){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ap(e)}function Zne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u1(e,t)}function u1(e,t){return u1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},u1(e,t)}function uR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uR(Object(r),!0).forEach(function(n){k_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function k_(e,t,r){return t=$3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $3(e){var t=Jne(e,"string");return vl(t)=="symbol"?t:t+""}function Jne(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function eie(e,t){return iie(e)||nie(e,t)||rie(e,t)||tie()}function tie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
482
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rie(e,t){if(e){if(typeof e=="string")return dR(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dR(e,t)}}function dR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function iie(e){if(Array.isArray(e))return e}function f1(){return f1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f1.apply(this,arguments)}var oie=function(t,r){var n;return K.isValidElement(t)?n=K.cloneElement(t,r):We(t)?n=t(r):n=K.createElement("line",f1({},r,{className:"recharts-reference-line-line"})),n},aie=function(t,r,n,i,o,s,c,f,d){var m=o.x,p=o.y,v=o.width,x=o.height;if(n){var b=d.y,w=t.y.apply(b,{position:s});if(ri(d,"discard")&&!t.y.isInRange(w))return null;var y=[{x:m+v,y:w},{x:m,y:w}];return f==="left"?y.reverse():y}if(r){var P=d.x,O=t.x.apply(P,{position:s});if(ri(d,"discard")&&!t.x.isInRange(O))return null;var A=[{x:O,y:p+x},{x:O,y:p}];return c==="top"?A.reverse():A}if(i){var C=d.segment,_=C.map(function(E){return t.apply(E,{position:s})});return ri(d,"discard")&&Jre(_,function(E){return!t.isInRange(E)})?null:_}return null};function sie(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,c=e.className,f=e.alwaysShow,d=zne(),m=R3(i),p=M3(o),v=Wne();if(!d||!v)return null;$i(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=C_({x:m.scale,y:p.scale}),b=Zt(t),w=Zt(r),y=n&&n.length===2,P=aie(x,b,w,y,v,e.position,m.orientation,p.orientation,e);if(!P)return null;var O=eie(P,2),A=O[0],C=A.x,_=A.y,E=O[1],N=E.x,R=E.y,M=ri(e,"hidden")?"url(#".concat(d,")"):void 0,F=fR(fR({clipPath:M},Ve(e,!0)),{},{x1:C,y1:_,x2:N,y2:R});return K.createElement(pt,{className:Je("recharts-reference-line",c)},oie(s,F),_r.renderCallByParent(e,Ene({x1:C,y1:_,x2:N,y2:R})))}var R_=(function(e){function t(){return Vne(this,t),Xne(this,t,arguments)}return Zne(t,e),Kne(t,[{key:"render",value:function(){return K.createElement(sie,this.props)}}])})(K.Component);k_(R_,"displayName","ReferenceLine");k_(R_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function d1(){return d1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d1.apply(this,arguments)}function gl(e){"@babel/helpers - typeof";return gl=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},gl(e)}function hR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(r),!0).forEach(function(n){lm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L3(n.key),n)}}function uie(e,t,r){return t&&cie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fie(e,t,r){return t=sp(t),die(e,D3()?Reflect.construct(t,r||[],sp(e).constructor):t.apply(e,r))}function die(e,t){if(t&&(gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hie(e)}function hie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D3=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sp(e)}function pie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h1(e,t)}function h1(e,t){return h1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},h1(e,t)}function lm(e,t,r){return t=L3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L3(e){var t=mie(e,"string");return gl(t)=="symbol"?t:t+""}function mie(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vie=function(t){var r=t.x,n=t.y,i=t.xAxis,o=t.yAxis,s=C_({x:i.scale,y:o.scale}),c=s.apply({x:r,y:n},{bandAware:!0});return ri(t,"discard")&&!s.isInRange(c)?null:c},cm=(function(e){function t(){return lie(this,t),fie(this,t,arguments)}return pie(t,e),uie(t,[{key:"render",value:function(){var n=this.props,i=n.x,o=n.y,s=n.r,c=n.alwaysShow,f=n.clipPathId,d=Zt(i),m=Zt(o);if($i(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var p=vie(this.props);if(!p)return null;var v=p.x,x=p.y,b=this.props,w=b.shape,y=b.className,P=ri(this.props,"hidden")?"url(#".concat(f,")"):void 0,O=pR(pR({clipPath:P},Ve(this.props,!0)),{},{cx:v,cy:x});return K.createElement(pt,{className:Je("recharts-reference-dot",y)},t.renderDot(w,O),_r.renderCallByParent(this.props,{x:v-s,y:x-s,width:2*s,height:2*s}))}}])})(K.Component);lm(cm,"displayName","ReferenceDot");lm(cm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});lm(cm,"renderDot",function(e,t){var r;return K.isValidElement(e)?r=K.cloneElement(e,t):We(e)?r=e(t):r=K.createElement(im,d1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function p1(){return p1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p1.apply(this,arguments)}function yl(e){"@babel/helpers - typeof";return yl=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},yl(e)}function mR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mR(Object(r),!0).forEach(function(n){um(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B3(n.key),n)}}function xie(e,t,r){return t&&yie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bie(e,t,r){return t=lp(t),wie(e,F3()?Reflect.construct(t,r||[],lp(e).constructor):t.apply(e,r))}function wie(e,t){if(t&&(yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sie(e)}function Sie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F3=function(){return!!e})()}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lp(e)}function _ie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m1(e,t)}function m1(e,t){return m1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},m1(e,t)}function um(e,t,r){return t=B3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B3(e){var t=jie(e,"string");return yl(t)=="symbol"?t:t+""}function jie(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pie=function(t,r,n,i,o){var s=o.x1,c=o.x2,f=o.y1,d=o.y2,m=o.xAxis,p=o.yAxis;if(!m||!p)return null;var v=C_({x:m.scale,y:p.scale}),x={x:t?v.x.apply(s,{position:"start"}):v.x.rangeMin,y:n?v.y.apply(f,{position:"start"}):v.y.rangeMin},b={x:r?v.x.apply(c,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(d,{position:"end"}):v.y.rangeMax};return ri(o,"discard")&&(!v.isInRange(x)||!v.isInRange(b))?null:O3(x,b)},fm=(function(e){function t(){return gie(this,t),bie(this,t,arguments)}return _ie(t,e),xie(t,[{key:"render",value:function(){var n=this.props,i=n.x1,o=n.x2,s=n.y1,c=n.y2,f=n.className,d=n.alwaysShow,m=n.clipPathId;$i(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Zt(i),v=Zt(o),x=Zt(s),b=Zt(c),w=this.props.shape;if(!p&&!v&&!x&&!b&&!w)return null;var y=Pie(p,v,x,b,this.props);if(!y&&!w)return null;var P=ri(this.props,"hidden")?"url(#".concat(m,")"):void 0;return K.createElement(pt,{className:Je("recharts-reference-area",f)},t.renderRect(w,vR(vR({clipPath:P},Ve(this.props,!0)),y)),_r.renderCallByParent(this.props,y))}}])})(K.Component);um(fm,"displayName","ReferenceArea");um(fm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});um(fm,"renderRect",function(e,t){var r;return K.isValidElement(e)?r=K.cloneElement(e,t):We(e)?r=e(t):r=K.createElement(P_,p1({},t,{className:"recharts-reference-area-rect"})),r});function z3(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Oie(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return Nne(n,r)}function Cie(e,t,r){var n=r==="width",i=e.x,o=e.y,s=e.width,c=e.height;return t===1?{start:n?i:o,end:n?i+s:o+c}:{start:n?i+s:o+c,end:n?i:o}}function cp(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function Aie(e,t){return z3(e,t+1)}function Eie(e,t,r,n,i){for(var o=(n||[]).slice(),s=t.start,c=t.end,f=0,d=1,m=s,p=function(){var b=n==null?void 0:n[f];if(b===void 0)return{v:z3(n,d)};var w=f,y,P=function(){return y===void 0&&(y=r(b,w)),y},O=b.coordinate,A=f===0||cp(e,O,P,m,c);A||(f=0,m=s,d+=1),A&&(m=O+e*(P()/2+i),f+=d)},v;d<=o.length;)if(v=p(),v)return v.v;return[]}function zu(e){"@babel/helpers - typeof";return zu=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},zu(e)}function gR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gR(Object(r),!0).forEach(function(n){Tie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tie(e,t,r){return t=Nie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nie(e){var t=kie(e,"string");return zu(t)=="symbol"?t:t+""}function kie(e,t){if(zu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rie(e,t,r,n,i){for(var o=(n||[]).slice(),s=o.length,c=t.start,f=t.end,d=function(v){var x=o[v],b,w=function(){return b===void 0&&(b=r(x,v)),b};if(v===s-1){var y=e*(x.coordinate+e*w()/2-f);o[v]=x=Sr(Sr({},x),{},{tickCoord:y>0?x.coordinate-y*e:x.coordinate})}else o[v]=x=Sr(Sr({},x),{},{tickCoord:x.coordinate});var P=cp(e,x.tickCoord,w,c,f);P&&(f=x.tickCoord-e*(w()/2+i),o[v]=Sr(Sr({},x),{},{isShow:!0}))},m=s-1;m>=0;m--)d(m);return o}function Mie(e,t,r,n,i,o){var s=(n||[]).slice(),c=s.length,f=t.start,d=t.end;if(o){var m=n[c-1],p=r(m,c-1),v=e*(m.coordinate+e*p/2-d);s[c-1]=m=Sr(Sr({},m),{},{tickCoord:v>0?m.coordinate-v*e:m.coordinate});var x=cp(e,m.tickCoord,function(){return p},f,d);x&&(d=m.tickCoord-e*(p/2+i),s[c-1]=Sr(Sr({},m),{},{isShow:!0}))}for(var b=o?c-1:c,w=function(O){var A=s[O],C,_=function(){return C===void 0&&(C=r(A,O)),C};if(O===0){var E=e*(A.coordinate-e*_()/2-f);s[O]=A=Sr(Sr({},A),{},{tickCoord:E<0?A.coordinate-E*e:A.coordinate})}else s[O]=A=Sr(Sr({},A),{},{tickCoord:A.coordinate});var N=cp(e,A.tickCoord,_,f,d);N&&(f=A.tickCoord+e*(_()/2+i),s[O]=Sr(Sr({},A),{},{isShow:!0}))},y=0;y<b;y++)w(y);return s}function M_(e,t,r){var n=e.tick,i=e.ticks,o=e.viewBox,s=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,p=e.angle;if(!i||!i.length||!n)return[];if(he(f)||Va.isSsr)return Aie(i,typeof f=="number"&&he(f)?f:0);var v=[],x=c==="top"||c==="bottom"?"width":"height",b=m&&x==="width"?Xc(m,{fontSize:t,letterSpacing:r}):{width:0,height:0},w=function(A,C){var _=We(d)?d(A.value,C):A.value;return x==="width"?Oie(Xc(_,{fontSize:t,letterSpacing:r}),b,p):Xc(_,{fontSize:t,letterSpacing:r})[x]},y=i.length>=2?Fn(i[1].coordinate-i[0].coordinate):1,P=Cie(o,y,x);return f==="equidistantPreserveStart"?Eie(y,P,w,i,s):(f==="preserveStart"||f==="preserveStartEnd"?v=Mie(y,P,w,i,s,f==="preserveStartEnd"):v=Rie(y,P,w,i,s),v.filter(function(O){return O.isShow}))}var Iie=["viewBox"],$ie=["viewBox"],Die=["ticks"];function xl(e){"@babel/helpers - typeof";return xl=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},xl(e)}function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ds.apply(this,arguments)}function yR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(r),!0).forEach(function(n){I_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C0(e,t){if(e==null)return{};var r=Lie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Fie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U3(n.key),n)}}function Bie(e,t,r){return t&&xR(e.prototype,t),r&&xR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function zie(e,t,r){return t=up(t),qie(e,q3()?Reflect.construct(t,r||[],up(e).constructor):t.apply(e,r))}function qie(e,t){if(t&&(xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uie(e)}function Uie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q3=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},up(e)}function Wie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v1(e,t)}function v1(e,t){return v1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},v1(e,t)}function I_(e,t,r){return t=U3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U3(e){var t=Hie(e,"string");return xl(t)=="symbol"?t:t+""}function Hie(e,t){if(xl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ql=(function(e){function t(r){var n;return Fie(this,t),n=zie(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Wie(t,e),Bie(t,[{key:"shouldComponentUpdate",value:function(n,i){var o=n.viewBox,s=C0(n,Iie),c=this.props,f=c.viewBox,d=C0(c,$ie);return!Ws(o,f)||!Ws(s,d)||!Ws(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,o=i.x,s=i.y,c=i.width,f=i.height,d=i.orientation,m=i.tickSize,p=i.mirror,v=i.tickMargin,x,b,w,y,P,O,A=p?-1:1,C=n.tickSize||m,_=he(n.tickCoord)?n.tickCoord:n.coordinate;switch(d){case"top":x=b=n.coordinate,y=s+ +!p*f,w=y-A*C,O=w-A*v,P=_;break;case"left":w=y=n.coordinate,b=o+ +!p*c,x=b-A*C,P=x-A*v,O=_;break;case"right":w=y=n.coordinate,b=o+ +p*c,x=b+A*C,P=x+A*v,O=_;break;default:x=b=n.coordinate,y=s+ +p*f,w=y+A*C,O=w+A*v,P=_;break}return{line:{x1:x,y1:w,x2:b,y2:y},tick:{x:P,y:O}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,o=n.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,o=n.y,s=n.width,c=n.height,f=n.orientation,d=n.mirror,m=n.axisLine,p=Ht(Ht(Ht({},Ve(this.props,!1)),Ve(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var v=+(f==="top"&&!d||f==="bottom"&&d);p=Ht(Ht({},p),{},{x1:i,y1:o+v*c,x2:i+s,y2:o+v*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);p=Ht(Ht({},p),{},{x1:i+x*s,y1:o,x2:i+x*s,y2:o+c})}return K.createElement("line",Ds({},p,{className:Je("recharts-cartesian-axis-line",wn(m,"className"))}))}},{key:"renderTicks",value:function(n,i,o){var s=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,p=c.tickFormatter,v=c.unit,x=M_(Ht(Ht({},this.props),{},{ticks:n}),i,o),b=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),y=Ve(this.props,!1),P=Ve(m,!1),O=Ht(Ht({},y),{},{fill:"none"},Ve(f,!1)),A=x.map(function(C,_){var E=s.getTickLineCoord(C),N=E.line,R=E.tick,M=Ht(Ht(Ht(Ht({textAnchor:b,verticalAnchor:w},y),{},{stroke:"none",fill:d},P),R),{},{index:_,payload:C,visibleTicksCount:x.length,tickFormatter:p});return K.createElement(pt,Ds({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},gh(s.props,C,_)),f&&K.createElement("line",Ds({},O,N,{className:Je("recharts-cartesian-axis-tick-line",wn(f,"className"))})),m&&t.renderTickItem(m,M,"".concat(We(p)?p(C.value,_):C.value).concat(v||"")))});return K.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var n=this,i=this.props,o=i.axisLine,s=i.width,c=i.height,f=i.ticksGenerator,d=i.className,m=i.hide;if(m)return null;var p=this.props,v=p.ticks,x=C0(p,Die),b=v;return We(f)&&(b=v&&v.length>0?f(this.props):f(x)),s<=0||c<=0||!b||!b.length?null:K.createElement(pt,{className:Je("recharts-cartesian-axis",d),ref:function(y){n.layerReference=y}},o&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),_r.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,o){var s,c=Je(i.className,"recharts-cartesian-axis-tick-value");return K.isValidElement(n)?s=K.cloneElement(n,Ht(Ht({},i),{},{className:c})):We(n)?s=n(Ht(Ht({},i),{},{className:c})):s=K.createElement(Ah,Ds({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}])})(S.Component);I_(ql,"displayName","CartesianAxis");I_(ql,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Vie=["x1","y1","x2","y2","key"],Gie=["offset"];function Ba(e){"@babel/helpers - typeof";return Ba=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},Ba(e)}function bR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bR(Object(r),!0).forEach(function(n){Kie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kie(e,t,r){return t=Xie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xie(e){var t=Yie(e,"string");return Ba(t)=="symbol"?t:t+""}function Yie(e,t){if(Ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oa.apply(this,arguments)}function wR(e,t){if(e==null)return{};var r=Qie(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qie(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Zie=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,o=t.y,s=t.width,c=t.height,f=t.ry;return K.createElement("rect",{x:i,y:o,ry:f,width:s,height:c,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function W3(e,t){var r;if(K.isValidElement(e))r=K.cloneElement(e,t);else if(We(e))r=e(t);else{var n=t.x1,i=t.y1,o=t.x2,s=t.y2,c=t.key,f=wR(t,Vie),d=Ve(f,!1);d.offset;var m=wR(d,Gie);r=K.createElement("line",Oa({},m,{x1:n,y1:i,x2:o,y2:s,fill:"none",key:c}))}return r}function Jie(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(c,f){var d=jr(jr({},e),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(f),index:f});return W3(i,d)});return K.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function eoe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(c,f){var d=jr(jr({},e),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(f),index:f});return W3(i,d)});return K.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function toe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,o=e.width,s=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(v){return Math.round(v+i-i)}).sort(function(v,x){return v-x});i!==m[0]&&m.unshift(0);var p=m.map(function(v,x){var b=!m[x+1],w=b?i+s-v:m[x+1]-v;if(w<=0)return null;var y=x%t.length;return K.createElement("rect",{key:"react-".concat(x),y:v,x:n,height:w,width:o,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return K.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function roe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!r||!n||!n.length)return null;var m=d.map(function(v){return Math.round(v+o-o)}).sort(function(v,x){return v-x});o!==m[0]&&m.unshift(0);var p=m.map(function(v,x){var b=!m[x+1],w=b?o+c-v:m[x+1]-v;if(w<=0)return null;var y=x%n.length;return K.createElement("rect",{key:"react-".concat(x),x:v,y:s,width:w,height:f,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return K.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var noe=function(t,r){var n=t.xAxis,i=t.width,o=t.height,s=t.offset;return i3(M_(jr(jr(jr({},ql.defaultProps),n),{},{ticks:Ti(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.left,s.left+s.width,r)},ioe=function(t,r){var n=t.yAxis,i=t.width,o=t.height,s=t.offset;return i3(M_(jr(jr(jr({},ql.defaultProps),n),{},{ticks:Ti(n,!0),viewBox:{x:0,y:0,width:i,height:o}})),s.top,s.top+s.height,r)},Ns={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function eh(e){var t,r,n,i,o,s,c=T_(),f=N_(),d=Hne(),m=jr(jr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ns.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ns.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ns.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ns.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Ns.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:Ns.verticalFill,x:he(e.x)?e.x:d.left,y:he(e.y)?e.y:d.top,width:he(e.width)?e.width:d.width,height:he(e.height)?e.height:d.height}),p=m.x,v=m.y,x=m.width,b=m.height,w=m.syncWithTicks,y=m.horizontalValues,P=m.verticalValues,O=qne(),A=Une();if(!he(x)||x<=0||!he(b)||b<=0||!he(p)||p!==+p||!he(v)||v!==+v)return null;var C=m.verticalCoordinatesGenerator||noe,_=m.horizontalCoordinatesGenerator||ioe,E=m.horizontalPoints,N=m.verticalPoints;if((!E||!E.length)&&We(_)){var R=y&&y.length,M=_({yAxis:A?jr(jr({},A),{},{ticks:R?y:A.ticks}):void 0,width:c,height:f,offset:d},R?!0:w);$i(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ba(M),"]")),Array.isArray(M)&&(E=M)}if((!N||!N.length)&&We(C)){var F=P&&P.length,I=C({xAxis:O?jr(jr({},O),{},{ticks:F?P:O.ticks}):void 0,width:c,height:f,offset:d},F?!0:w);$i(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ba(I),"]")),Array.isArray(I)&&(N=I)}return K.createElement("g",{className:"recharts-cartesian-grid"},K.createElement(Zie,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),K.createElement(Jie,Oa({},m,{offset:d,horizontalPoints:E,xAxis:O,yAxis:A})),K.createElement(eoe,Oa({},m,{offset:d,verticalPoints:N,xAxis:O,yAxis:A})),K.createElement(toe,Oa({},m,{horizontalPoints:E})),K.createElement(roe,Oa({},m,{verticalPoints:N})))}eh.displayName="CartesianGrid";var ooe=["type","layout","connectNulls","ref"],aoe=["key"];function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}function SR(e,t){if(e==null)return{};var r=soe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function soe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(this,arguments)}function _R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_R(Object(r),!0).forEach(function(n){Dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_R(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ks(e){return foe(e)||uoe(e)||coe(e)||loe()}function loe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
483
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function coe(e,t){if(e){if(typeof e=="string")return g1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g1(e,t)}}function uoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function foe(e){if(Array.isArray(e))return g1(e)}function g1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V3(n.key),n)}}function hoe(e,t,r){return t&&jR(e.prototype,t),r&&jR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function poe(e,t,r){return t=fp(t),moe(e,H3()?Reflect.construct(t,r||[],fp(e).constructor):t.apply(e,r))}function moe(e,t){if(t&&(bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return voe(e)}function voe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H3=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fp(e)}function goe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y1(e,t)}function y1(e,t){return y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},y1(e,t)}function Dn(e,t,r){return t=V3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V3(e){var t=yoe(e,"string");return bl(t)=="symbol"?t:t+""}function yoe(e,t){if(bl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lf=(function(e){function t(){var r;doe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=poe(this,t,[].concat(i)),Dn(r,"state",{isAnimationFinished:!0,totalLength:0}),Dn(r,"generateSimpleStrokeDasharray",function(s,c){return"".concat(c,"px ").concat(s-c,"px")}),Dn(r,"getStrokeDasharray",function(s,c,f){var d=f.reduce(function(P,O){return P+O});if(!d)return r.generateSimpleStrokeDasharray(c,s);for(var m=Math.floor(s/d),p=s%d,v=c-s,x=[],b=0,w=0;b<f.length;w+=f[b],++b)if(w+f[b]>p){x=[].concat(ks(f.slice(0,b)),[p-w]);break}var y=x.length%2===0?[0,v]:[v];return[].concat(ks(t.repeat(f,m)),ks(x),y).map(function(P){return"".concat(P,"px")}).join(", ")}),Dn(r,"id",$l("recharts-line-")),Dn(r,"pathRef",function(s){r.mainCurve=s}),Dn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Dn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return goe(t,e),hoe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,s=o.points,c=o.xAxis,f=o.yAxis,d=o.layout,m=o.children,p=Sn(m,sf);if(!p)return null;var v=function(w,y){return{x:w.x,y:w.y,value:w.value,errorVal:kr(w.payload,y)}},x={clipPath:n?"url(#clipPath-".concat(i,")"):null};return K.createElement(pt,x,p.map(function(b){return K.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,dataPointFormatter:v})}))}},{key:"renderDots",value:function(n,i,o){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,p=Ve(this.props,!1),v=Ve(f,!0),x=d.map(function(w,y){var P=Gr(Gr(Gr({key:"dot-".concat(y),r:3},p),v),{},{index:y,cx:w.x,cy:w.y,value:w.value,dataKey:m,payload:w.payload,points:d});return t.renderDotItem(f,P)}),b={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return K.createElement(pt,Jc({className:"recharts-line-dots",key:"dots"},b),x)}},{key:"renderCurveStatically",value:function(n,i,o,s){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var p=SR(c,ooe),v=Gr(Gr(Gr({},Ve(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(o,")"):null,points:n},s),{},{type:f,layout:d,connectNulls:m});return K.createElement(Ys,Jc({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var o=this,s=this.props,c=s.points,f=s.strokeDasharray,d=s.isAnimationActive,m=s.animationBegin,p=s.animationDuration,v=s.animationEasing,x=s.animationId,b=s.animateNewValues,w=s.width,y=s.height,P=this.state,O=P.prevPoints,A=P.totalLength;return K.createElement(ci,{begin:m,duration:p,isActive:d,easing:v,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var _=C.t;if(O){var E=O.length/c.length,N=c.map(function($,L){var U=Math.floor(L*E);if(O[U]){var H=O[U],B=hr(H.x,$.x),X=hr(H.y,$.y);return Gr(Gr({},$),{},{x:B(_),y:X(_)})}if(b){var W=hr(w*2,$.x),q=hr(y/2,$.y);return Gr(Gr({},$),{},{x:W(_),y:q(_)})}return Gr(Gr({},$),{},{x:$.x,y:$.y})});return o.renderCurveStatically(N,n,i)}var R=hr(0,A),M=R(_),F;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function($){return parseFloat($)});F=o.getStrokeDasharray(M,A,I)}else F=o.generateSimpleStrokeDasharray(A,M);return o.renderCurveStatically(c,n,i,{strokeDasharray:F})})}},{key:"renderCurve",value:function(n,i){var o=this.props,s=o.points,c=o.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&s&&s.length&&(!d&&m>0||!ul(d,s))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(s,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,s=i.dot,c=i.points,f=i.className,d=i.xAxis,m=i.yAxis,p=i.top,v=i.left,x=i.width,b=i.height,w=i.isAnimationActive,y=i.id;if(o||!c||!c.length)return null;var P=this.state.isAnimationFinished,O=c.length===1,A=Je("recharts-line",f),C=d&&d.allowDataOverflow,_=m&&m.allowDataOverflow,E=C||_,N=Ye(y)?this.id:y,R=(n=Ve(s,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=R.r,F=M===void 0?3:M,I=R.strokeWidth,$=I===void 0?2:I,L=G$(s)?s:{},U=L.clipDot,H=U===void 0?!0:U,B=F*2+$;return K.createElement(pt,{className:A},C||_?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(N)},K.createElement("rect",{x:C?v:v-x/2,y:_?p:p-b/2,width:C?x:x*2,height:_?b:b*2})),!H&&K.createElement("clipPath",{id:"clipPath-dots-".concat(N)},K.createElement("rect",{x:v-B/2,y:p-B/2,width:x+B,height:b+B}))):null,!O&&this.renderCurve(E,N),this.renderErrorBar(E,N),(O||s)&&this.renderDots(E,H,N),(!w||P)&&Li.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var o=n.length%2!==0?[].concat(ks(n),[0]):n,s=[],c=0;c<i;++c)s=[].concat(ks(s),ks(o));return s}},{key:"renderDotItem",value:function(n,i){var o;if(K.isValidElement(n))o=K.cloneElement(n,i);else if(We(n))o=n(i);else{var s=i.key,c=SR(i,aoe),f=Je("recharts-line-dot",typeof n!="boolean"?n.className:"");o=K.createElement(im,Jc({key:s},c,{className:f}))}return o}}])})(S.PureComponent);Dn(lf,"displayName","Line");Dn(lf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Va.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Dn(lf,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,s=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,p=f.map(function(v,x){var b=kr(v,s);return m==="horizontal"?{x:Uh({axis:r,ticks:i,bandSize:c,entry:v,index:x}),y:Ye(b)?null:n.scale(b),value:b,payload:v}:{x:Ye(b)?null:r.scale(b),y:Uh({axis:n,ticks:o,bandSize:c,entry:v,index:x}),value:b,payload:v}});return Gr({points:p,layout:m},d)});var xoe=["layout","type","stroke","connectNulls","isRange","ref"],boe=["key"],G3;function wl(e){"@babel/helpers - typeof";return wl=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},wl(e)}function K3(e,t){if(e==null)return{};var r=woe(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function woe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ca.apply(this,arguments)}function PR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PR(Object(r),!0).forEach(function(n){Jn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Soe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y3(n.key),n)}}function _oe(e,t,r){return t&&OR(e.prototype,t),r&&OR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function joe(e,t,r){return t=dp(t),Poe(e,X3()?Reflect.construct(t,r||[],dp(e).constructor):t.apply(e,r))}function Poe(e,t){if(t&&(wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ooe(e)}function Ooe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X3=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},dp(e)}function Coe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x1(e,t)}function x1(e,t){return x1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},x1(e,t)}function Jn(e,t,r){return t=Y3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y3(e){var t=Aoe(e,"string");return wl(t)=="symbol"?t:t+""}function Aoe(e,t){if(wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var na=(function(e){function t(){var r;Soe(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=joe(this,t,[].concat(i)),Jn(r,"state",{isAnimationFinished:!0}),Jn(r,"id",$l("recharts-area-")),Jn(r,"handleAnimationEnd",function(){var s=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),We(s)&&s()}),Jn(r,"handleAnimationStart",function(){var s=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),We(s)&&s()}),r}return Coe(t,e),_oe(t,[{key:"renderDots",value:function(n,i,o){var s=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(s&&!c)return null;var f=this.props,d=f.dot,m=f.points,p=f.dataKey,v=Ve(this.props,!1),x=Ve(d,!0),b=m.map(function(y,P){var O=Eo(Eo(Eo({key:"dot-".concat(P),r:3},v),x),{},{index:P,cx:y.x,cy:y.y,dataKey:p,value:y.value,payload:y.payload,points:m});return t.renderDotItem(d,O)}),w={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(o,")"):null};return K.createElement(pt,Ca({className:"recharts-area-dots"},w),b)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,o=i.baseLine,s=i.points,c=i.strokeWidth,f=s[0].x,d=s[s.length-1].x,m=n*Math.abs(f-d),p=Ro(s.map(function(v){return v.y||0}));return he(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Ro(o.map(function(v){return v.y||0})),p)),he(p)?K.createElement("rect",{x:f<d?f:f-m,y:0,width:m,height:Math.floor(p+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,o=i.baseLine,s=i.points,c=i.strokeWidth,f=s[0].y,d=s[s.length-1].y,m=n*Math.abs(f-d),p=Ro(s.map(function(v){return v.x||0}));return he(o)&&typeof o=="number"?p=Math.max(o,p):o&&Array.isArray(o)&&o.length&&(p=Math.max(Ro(o.map(function(v){return v.x||0})),p)),he(p)?K.createElement("rect",{x:0,y:f<d?f:f-m,width:p+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,o,s){var c=this.props,f=c.layout,d=c.type,m=c.stroke,p=c.connectNulls,v=c.isRange;c.ref;var x=K3(c,xoe);return K.createElement(pt,{clipPath:o?"url(#clipPath-".concat(s,")"):null},K.createElement(Ys,Ca({},Ve(x,!0),{points:n,connectNulls:p,type:d,baseLine:i,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&K.createElement(Ys,Ca({},Ve(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:p,fill:"none",points:n})),m!=="none"&&v&&K.createElement(Ys,Ca({},Ve(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:p,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var o=this,s=this.props,c=s.points,f=s.baseLine,d=s.isAnimationActive,m=s.animationBegin,p=s.animationDuration,v=s.animationEasing,x=s.animationId,b=this.state,w=b.prevPoints,y=b.prevBaseLine;return K.createElement(ci,{begin:m,duration:p,isActive:d,easing:v,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(P){var O=P.t;if(w){var A=w.length/c.length,C=c.map(function(R,M){var F=Math.floor(M*A);if(w[F]){var I=w[F],$=hr(I.x,R.x),L=hr(I.y,R.y);return Eo(Eo({},R),{},{x:$(O),y:L(O)})}return R}),_;if(he(f)&&typeof f=="number"){var E=hr(y,f);_=E(O)}else if(Ye(f)||Il(f)){var N=hr(y,0);_=N(O)}else _=f.map(function(R,M){var F=Math.floor(M*A);if(y[F]){var I=y[F],$=hr(I.x,R.x),L=hr(I.y,R.y);return Eo(Eo({},R),{},{x:$(O),y:L(O)})}return R});return o.renderAreaStatically(C,_,n,i)}return K.createElement(pt,null,K.createElement("defs",null,K.createElement("clipPath",{id:"animationClipPath-".concat(i)},o.renderClipRect(O))),K.createElement(pt,{clipPath:"url(#animationClipPath-".concat(i,")")},o.renderAreaStatically(c,f,n,i)))})}},{key:"renderArea",value:function(n,i){var o=this.props,s=o.points,c=o.baseLine,f=o.isAnimationActive,d=this.state,m=d.prevPoints,p=d.prevBaseLine,v=d.totalLength;return f&&s&&s.length&&(!m&&v>0||!ul(m,s)||!ul(p,c))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(s,c,n,i)}},{key:"render",value:function(){var n,i=this.props,o=i.hide,s=i.dot,c=i.points,f=i.className,d=i.top,m=i.left,p=i.xAxis,v=i.yAxis,x=i.width,b=i.height,w=i.isAnimationActive,y=i.id;if(o||!c||!c.length)return null;var P=this.state.isAnimationFinished,O=c.length===1,A=Je("recharts-area",f),C=p&&p.allowDataOverflow,_=v&&v.allowDataOverflow,E=C||_,N=Ye(y)?this.id:y,R=(n=Ve(s,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},M=R.r,F=M===void 0?3:M,I=R.strokeWidth,$=I===void 0?2:I,L=G$(s)?s:{},U=L.clipDot,H=U===void 0?!0:U,B=F*2+$;return K.createElement(pt,{className:A},C||_?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(N)},K.createElement("rect",{x:C?m:m-x/2,y:_?d:d-b/2,width:C?x:x*2,height:_?b:b*2})),!H&&K.createElement("clipPath",{id:"clipPath-dots-".concat(N)},K.createElement("rect",{x:m-B/2,y:d-B/2,width:x+B,height:b+B}))):null,O?null:this.renderArea(E,N),(s||O)&&this.renderDots(E,H,N),(!w||P)&&Li.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(S.PureComponent);G3=na;Jn(na,"displayName","Area");Jn(na,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Va.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Jn(na,"getBaseValue",function(e,t,r,n){var i=e.layout,o=e.baseValue,s=t.props.baseValue,c=s??o;if(he(c)&&typeof c=="number")return c;var f=i==="horizontal"?n:r,d=f.scale.domain();if(f.type==="number"){var m=Math.max(d[0],d[1]),p=Math.min(d[0],d[1]);return c==="dataMin"?p:c==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return c==="dataMin"?d[0]:c==="dataMax"?d[1]:d[0]});Jn(na,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,v=e.offset,x=t.layout,b=d&&d.length,w=G3.getBaseValue(t,r,n,i),y=x==="horizontal",P=!1,O=p.map(function(C,_){var E;b?E=d[m+_]:(E=kr(C,f),Array.isArray(E)?P=!0:E=[w,E]);var N=E[1]==null||b&&kr(C,f)==null;return y?{x:Uh({axis:n,ticks:o,bandSize:c,entry:C,index:_}),y:N?null:i.scale(E[1]),value:E,payload:C}:{x:N?null:n.scale(E[1]),y:Uh({axis:i,ticks:s,bandSize:c,entry:C,index:_}),value:E,payload:C}}),A;return b||P?A=O.map(function(C){var _=Array.isArray(C.value)?C.value[0]:null;return y?{x:C.x,y:_!=null&&C.y!=null?i.scale(_):null}:{x:_!=null?n.scale(_):null,y:C.y}}):A=y?i.scale(w):n.scale(w),Eo({points:O,baseLine:A,layout:x,isRange:P},v)});Jn(na,"renderDotItem",function(e,t){var r;if(K.isValidElement(e))r=K.cloneElement(e,t);else if(We(e))r=e(t);else{var n=Je("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,o=K3(t,boe);r=K.createElement(im,Ca({},o,{key:i,className:n}))}return r});function Sl(e){"@babel/helpers - typeof";return Sl=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},Sl(e)}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Toe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,J3(n.key),n)}}function Noe(e,t,r){return t&&Toe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function koe(e,t,r){return t=hp(t),Roe(e,Q3()?Reflect.construct(t,r||[],hp(e).constructor):t.apply(e,r))}function Roe(e,t){if(t&&(Sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Moe(e)}function Moe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q3=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hp(e)}function Ioe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b1(e,t)}function b1(e,t){return b1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},b1(e,t)}function Z3(e,t,r){return t=J3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J3(e){var t=$oe(e,"string");return Sl(t)=="symbol"?t:t+""}function $oe(e,t){if(Sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function w1(){return w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},w1.apply(this,arguments)}function Doe(e){var t=e.xAxisId,r=T_(),n=N_(),i=R3(t);return i==null?null:S.createElement(ql,w1({},i,{className:Je("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(s){return Ti(s,!0)}}))}var Lo=(function(e){function t(){return Eoe(this,t),koe(this,t,arguments)}return Ioe(t,e),Noe(t,[{key:"render",value:function(){return S.createElement(Doe,this.props)}}])})(S.Component);Z3(Lo,"displayName","XAxis");Z3(Lo,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}function Loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Foe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r4(n.key),n)}}function Boe(e,t,r){return t&&Foe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zoe(e,t,r){return t=pp(t),qoe(e,e4()?Reflect.construct(t,r||[],pp(e).constructor):t.apply(e,r))}function qoe(e,t){if(t&&(_l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uoe(e)}function Uoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e4=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pp(e)}function Woe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S1(e,t)}function S1(e,t){return S1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},S1(e,t)}function t4(e,t,r){return t=r4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r4(e){var t=Hoe(e,"string");return _l(t)=="symbol"?t:t+""}function Hoe(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _1(){return _1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_1.apply(this,arguments)}var Voe=function(t){var r=t.yAxisId,n=T_(),i=N_(),o=M3(r);return o==null?null:S.createElement(ql,_1({},o,{className:Je("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(c){return Ti(c,!0)}}))},Fo=(function(e){function t(){return Loe(this,t),zoe(this,t,arguments)}return Woe(t,e),Boe(t,[{key:"render",value:function(){return S.createElement(Voe,this.props)}}])})(S.Component);t4(Fo,"displayName","YAxis");t4(Fo,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function CR(e){return Yoe(e)||Xoe(e)||Koe(e)||Goe()}function Goe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
484
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Koe(e,t){if(e){if(typeof e=="string")return j1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j1(e,t)}}function Xoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yoe(e){if(Array.isArray(e))return j1(e)}function j1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var P1=function(t,r,n,i,o){var s=Sn(t,R_),c=Sn(t,cm),f=[].concat(CR(s),CR(c)),d=Sn(t,fm),m="".concat(i,"Id"),p=i[0],v=r;if(f.length&&(v=f.reduce(function(w,y){if(y.props[m]===n&&ri(y.props,"extendDomain")&&he(y.props[p])){var P=y.props[p];return[Math.min(w[0],P),Math.max(w[1],P)]}return w},v)),d.length){var x="".concat(p,"1"),b="".concat(p,"2");v=d.reduce(function(w,y){if(y.props[m]===n&&ri(y.props,"extendDomain")&&he(y.props[x])&&he(y.props[b])){var P=y.props[x],O=y.props[b];return[Math.min(w[0],P,O),Math.max(w[1],P,O)]}return w},v)}return o&&o.length&&(v=o.reduce(function(w,y){return he(y)?[Math.min(w[0],y),Math.max(w[1],y)]:w},v)),v},A0={exports:{}},AR;function Qoe(){return AR||(AR=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function o(f,d,m,p,v){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new i(m,p||f,v),b=r?r+d:d;return f._events[b]?f._events[b].fn?f._events[b]=[f._events[b],x]:f._events[b].push(x):(f._events[b]=x,f._eventsCount++),f}function s(f,d){--f._eventsCount===0?f._events=new n:delete f._events[d]}function c(){this._events=new n,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,p;if(this._eventsCount===0)return d;for(p in m=this._events)t.call(m,p)&&d.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=r?r+d:d,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var v=0,x=p.length,b=new Array(x);v<x;v++)b[v]=p[v].fn;return b},c.prototype.listenerCount=function(d){var m=r?r+d:d,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,m,p,v,x,b){var w=r?r+d:d;if(!this._events[w])return!1;var y=this._events[w],P=arguments.length,O,A;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),P){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,m),!0;case 3:return y.fn.call(y.context,m,p),!0;case 4:return y.fn.call(y.context,m,p,v),!0;case 5:return y.fn.call(y.context,m,p,v,x),!0;case 6:return y.fn.call(y.context,m,p,v,x,b),!0}for(A=1,O=new Array(P-1);A<P;A++)O[A-1]=arguments[A];y.fn.apply(y.context,O)}else{var C=y.length,_;for(A=0;A<C;A++)switch(y[A].once&&this.removeListener(d,y[A].fn,void 0,!0),P){case 1:y[A].fn.call(y[A].context);break;case 2:y[A].fn.call(y[A].context,m);break;case 3:y[A].fn.call(y[A].context,m,p);break;case 4:y[A].fn.call(y[A].context,m,p,v);break;default:if(!O)for(_=1,O=new Array(P-1);_<P;_++)O[_-1]=arguments[_];y[A].fn.apply(y[A].context,O)}}return!0},c.prototype.on=function(d,m,p){return o(this,d,m,p,!1)},c.prototype.once=function(d,m,p){return o(this,d,m,p,!0)},c.prototype.removeListener=function(d,m,p,v){var x=r?r+d:d;if(!this._events[x])return this;if(!m)return s(this,x),this;var b=this._events[x];if(b.fn)b.fn===m&&(!v||b.once)&&(!p||b.context===p)&&s(this,x);else{for(var w=0,y=[],P=b.length;w<P;w++)(b[w].fn!==m||v&&!b[w].once||p&&b[w].context!==p)&&y.push(b[w]);y.length?this._events[x]=y.length===1?y[0]:y:s(this,x)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=r?r+d:d,this._events[m]&&s(this,m)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,e.exports=c})(A0)),A0.exports}var Zoe=Qoe();const Joe=ft(Zoe);var E0=new Joe,T0="recharts.syncMouseEvents";function qu(e){"@babel/helpers - typeof";return qu=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},qu(e)}function eae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n4(n.key),n)}}function rae(e,t,r){return t&&tae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N0(e,t,r){return t=n4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n4(e){var t=nae(e,"string");return qu(t)=="symbol"?t:t+""}function nae(e,t){if(qu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iae=(function(){function e(){eae(this,e),N0(this,"activeIndex",0),N0(this,"coordinateList",[]),N0(this,"layout","horizontal")}return rae(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,o=i===void 0?null:i,s=r.container,c=s===void 0?null:s,f=r.layout,d=f===void 0?null:f,m=r.offset,p=m===void 0?null:m,v=r.mouseHandlerCallback,x=v===void 0?null:v;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=x??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,s=i.y,c=i.height,f=this.coordinateList[this.activeIndex].coordinate,d=((r=window)===null||r===void 0?void 0:r.scrollX)||0,m=((n=window)===null||n===void 0?void 0:n.scrollY)||0,p=o+f+d,v=s+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:p,pageY:v})}}}])})();function oae(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&he(n)&&he(i))return!0}return!1}function aae(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function i4(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,o=e.endAngle,s=pr(t,r,n,i),c=pr(t,r,n,o);return{points:[s,c],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function sae(e,t,r){var n,i,o,s;if(e==="horizontal")n=t.x,o=n,i=r.top,s=r.top+r.height;else if(e==="vertical")i=t.y,s=i,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,p=t.angle,v=pr(c,f,d,p),x=pr(c,f,m,p);n=v.x,i=v.y,o=x.x,s=x.y}else return i4(t);return[{x:n,y:i},{x:o,y:s}]}function Uu(e){"@babel/helpers - typeof";return Uu=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},Uu(e)}function ER(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ud(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ER(Object(r),!0).forEach(function(n){lae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ER(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lae(e,t,r){return t=cae(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cae(e){var t=uae(e,"string");return Uu(t)=="symbol"?t:t+""}function uae(e,t){if(Uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fae(e){var t,r,n=e.element,i=e.tooltipEventType,o=e.isActive,s=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,p=e.layout,v=e.chartName,x=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!x||!o||!s||v!=="ScatterChart"&&i!=="axis")return null;var b,w=Ys;if(v==="ScatterChart")b=s,w=Jte;else if(v==="BarChart")b=aae(p,s,f,m),w=P_;else if(p==="radial"){var y=i4(s),P=y.cx,O=y.cy,A=y.radius,C=y.startAngle,_=y.endAngle;b={cx:P,cy:O,startAngle:C,endAngle:_,innerRadius:A,outerRadius:A},w=c3}else b={points:sae(p,s,f)},w=Ys;var E=Ud(Ud(Ud(Ud({stroke:"#ccc",pointerEvents:"none"},f),b),Ve(x,!1)),{},{payload:c,payloadIndex:d,className:Je("recharts-tooltip-cursor",x.className)});return S.isValidElement(x)?S.cloneElement(x,E):S.createElement(w,E)}var dae=["item"],hae=["children","className","width","height","style","compact","title","desc"];function jl(e){"@babel/helpers - typeof";return jl=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},jl(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(this,arguments)}function TR(e,t){return vae(e)||mae(e,t)||a4(e,t)||pae()}function pae(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
485
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,s,c=[],f=!0,d=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(f=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function vae(e){if(Array.isArray(e))return e}function NR(e,t){if(e==null)return{};var r=gae(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gae(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function yae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s4(n.key),n)}}function bae(e,t,r){return t&&xae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wae(e,t,r){return t=mp(t),Sae(e,o4()?Reflect.construct(t,r||[],mp(e).constructor):t.apply(e,r))}function Sae(e,t){if(t&&(jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ae(e)}function _ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o4=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mp(e)}function jae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O1(e,t)}function O1(e,t){return O1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},O1(e,t)}function Pl(e){return Cae(e)||Oae(e)||a4(e)||Pae()}function Pae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
486
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a4(e,t){if(e){if(typeof e=="string")return C1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C1(e,t)}}function Oae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cae(e){if(Array.isArray(e))return C1(e)}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(r),!0).forEach(function(n){$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $e(e,t,r){return t=s4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s4(e){var t=Aae(e,"string");return jl(t)=="symbol"?t:t+""}function Aae(e,t){if(jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eae={xAxis:["bottom","top"],yAxis:["left","right"]},Tae={width:"100%",height:"100%"},l4={x:0,y:0};function Wd(e){return e}var Nae=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},kae=function(t,r,n,i){var o=r.find(function(m){return m&&m.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var s=o.coordinate,c=i.radius;return re(re(re({},i),pr(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}var f=o.coordinate,d=i.angle;return re(re(re({},i),pr(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return l4},dm=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,o=r.dataEndIndex,s=(n??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(Pl(c),Pl(d)):c},[]);return s.length>0?s:t&&t.length&&he(i)&&he(o)?t.slice(i,o+1):[]};function c4(e){return e==="number"?[0,"auto"]:void 0}var A1=function(t,r,n,i){var o=t.graphicalItems,s=t.tooltipAxis,c=dm(r,t);return n<0||!o||!o.length||n>=c.length?null:o.reduce(function(f,d){var m,p=(m=d.props.data)!==null&&m!==void 0?m:r;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(s.dataKey&&!s.allowDuplicatedCategory){var x=p===void 0?c:p;v=mh(x,s.dataKey,i)}else v=p&&p[n]||c[n];return v?[].concat(Pl(f),[a3(d,v)]):f},[])},RR=function(t,r,n,i){var o=i||{x:t.chartX,y:t.chartY},s=Nae(o,n),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=AZ(s,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,v=A1(t,r,m,p),x=kae(n,c,m,o);return{activeTooltipIndex:m,activeLabel:p,activePayload:v,activeCoordinate:x}}return null},Rae=function(t,r){var n=r.axes,i=r.graphicalItems,o=r.axisType,s=r.axisIdKey,c=r.stackGroups,f=r.dataStartIndex,d=r.dataEndIndex,m=t.layout,p=t.children,v=t.stackOffset,x=n3(m,o);return n.reduce(function(b,w){var y,P=w.type.defaultProps!==void 0?re(re({},w.type.defaultProps),w.props):w.props,O=P.type,A=P.dataKey,C=P.allowDataOverflow,_=P.allowDuplicatedCategory,E=P.scale,N=P.ticks,R=P.includeHidden,M=P[s];if(b[M])return b;var F=dm(t.data,{graphicalItems:i.filter(function(Y){var ie,ne=s in Y.props?Y.props[s]:(ie=Y.type.defaultProps)===null||ie===void 0?void 0:ie[s];return ne===M}),dataStartIndex:f,dataEndIndex:d}),I=F.length,$,L,U;oae(P.domain,C,O)&&($=Ww(P.domain,null,C),x&&(O==="number"||E!=="auto")&&(U=Qc(F,A,"category")));var H=c4(O);if(!$||$.length===0){var B,X=(B=P.domain)!==null&&B!==void 0?B:H;if(A){if($=Qc(F,A,O),O==="category"&&x){var W=uH($);_&&W?(L=$,$=tp(0,I)):_||($=VN(X,$,w).reduce(function(Y,ie){return Y.indexOf(ie)>=0?Y:[].concat(Pl(Y),[ie])},[]))}else if(O==="category")_?$=$.filter(function(Y){return Y!==""&&!Ye(Y)}):$=VN(X,$,w).reduce(function(Y,ie){return Y.indexOf(ie)>=0||ie===""||Ye(ie)?Y:[].concat(Pl(Y),[ie])},[]);else if(O==="number"){var q=RZ(F,i.filter(function(Y){var ie,ne,pe=s in Y.props?Y.props[s]:(ie=Y.type.defaultProps)===null||ie===void 0?void 0:ie[s],ge="hide"in Y.props?Y.props.hide:(ne=Y.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return pe===M&&(R||!ge)}),A,o,m);q&&($=q)}x&&(O==="number"||E!=="auto")&&(U=Qc(F,A,"category"))}else x?$=tp(0,I):c&&c[M]&&c[M].hasStack&&O==="number"?$=v==="expand"?[0,1]:o3(c[M].stackGroups,f,d):$=r3(F,i.filter(function(Y){var ie=s in Y.props?Y.props[s]:Y.type.defaultProps[s],ne="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return ie===M&&(R||!ne)}),O,m,!0);if(O==="number")$=P1(p,$,M,o,N),X&&($=Ww(X,$,C));else if(O==="category"&&X){var V=X,D=$.every(function(Y){return V.indexOf(Y)>=0});D&&($=V)}}return re(re({},b),{},$e({},M,re(re({},P),{},{axisType:o,domain:$,categoricalDomain:U,duplicateDomain:L,originalDomain:(y=P.domain)!==null&&y!==void 0?y:H,isCategorical:x,layout:m})))},{})},Mae=function(t,r){var n=r.graphicalItems,i=r.Axis,o=r.axisType,s=r.axisIdKey,c=r.stackGroups,f=r.dataStartIndex,d=r.dataEndIndex,m=t.layout,p=t.children,v=dm(t.data,{graphicalItems:n,dataStartIndex:f,dataEndIndex:d}),x=v.length,b=n3(m,o),w=-1;return n.reduce(function(y,P){var O=P.type.defaultProps!==void 0?re(re({},P.type.defaultProps),P.props):P.props,A=O[s],C=c4("number");if(!y[A]){w++;var _;return b?_=tp(0,x):c&&c[A]&&c[A].hasStack?(_=o3(c[A].stackGroups,f,d),_=P1(p,_,A,o)):(_=Ww(C,r3(v,n.filter(function(E){var N,R,M=s in E.props?E.props[s]:(N=E.type.defaultProps)===null||N===void 0?void 0:N[s],F="hide"in E.props?E.props.hide:(R=E.type.defaultProps)===null||R===void 0?void 0:R.hide;return M===A&&!F}),"number",m),i.defaultProps.allowDataOverflow),_=P1(p,_,A,o)),re(re({},y),{},$e({},A,re(re({axisType:o},i.defaultProps),{},{hide:!0,orientation:wn(Eae,"".concat(o,".").concat(w%2),null),domain:_,originalDomain:C,isCategorical:b,layout:m})))}return y},{})},Iae=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,o=r.AxisComp,s=r.graphicalItems,c=r.stackGroups,f=r.dataStartIndex,d=r.dataEndIndex,m=t.children,p="".concat(i,"Id"),v=Sn(m,o),x={};return v&&v.length?x=Rae(t,{axes:v,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):s&&s.length&&(x=Mae(t,{Axis:o,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},$ae=function(t){var r=No(t),n=Ti(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:XS(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Wh(r,n)}},MR=function(t){var r=t.children,n=t.defaultShowTooltip,i=Xr(r,pl),o=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!n}},Dae=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ii(r&&r.type);return n&&n.indexOf("Bar")>=0})},IR=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Lae=function(t,r){var n=t.props,i=t.graphicalItems,o=t.xAxisMap,s=o===void 0?{}:o,c=t.yAxisMap,f=c===void 0?{}:c,d=n.width,m=n.height,p=n.children,v=n.margin||{},x=Xr(p,pl),b=Xr(p,Hs),w=Object.keys(f).reduce(function(_,E){var N=f[E],R=N.orientation;return!N.mirror&&!N.hide?re(re({},_),{},$e({},R,_[R]+N.width)):_},{left:v.left||0,right:v.right||0}),y=Object.keys(s).reduce(function(_,E){var N=s[E],R=N.orientation;return!N.mirror&&!N.hide?re(re({},_),{},$e({},R,wn(_,"".concat(R))+N.height)):_},{top:v.top||0,bottom:v.bottom||0}),P=re(re({},y),w),O=P.bottom;x&&(P.bottom+=x.props.height||pl.defaultProps.height),b&&r&&(P=NZ(P,i,n,r));var A=d-P.left-P.right,C=m-P.top-P.bottom;return re(re({brushBottom:O},P),{},{width:Math.max(A,0),height:Math.max(C,0)})},Fae=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},$_=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,c=s===void 0?["axis"]:s,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,p=t.defaultProps,v=function(P,O){var A=O.graphicalItems,C=O.stackGroups,_=O.offset,E=O.updateId,N=O.dataStartIndex,R=O.dataEndIndex,M=P.barSize,F=P.layout,I=P.barGap,$=P.barCategoryGap,L=P.maxBarSize,U=IR(F),H=U.numericAxisName,B=U.cateAxisName,X=Dae(A),W=[];return A.forEach(function(q,V){var D=dm(P.data,{graphicalItems:[q],dataStartIndex:N,dataEndIndex:R}),Y=q.type.defaultProps!==void 0?re(re({},q.type.defaultProps),q.props):q.props,ie=Y.dataKey,ne=Y.maxBarSize,pe=Y["".concat(H,"Id")],ge=Y["".concat(B,"Id")],ke={},Ee=f.reduce(function(vr,gr){var Za=O["".concat(gr.axisType,"Map")],Wl=Y["".concat(gr.axisType,"Id")];Za&&Za[Wl]||gr.axisType==="zAxis"||Fa();var Hl=Za[Wl];return re(re({},vr),{},$e($e({},gr.axisType,Hl),"".concat(gr.axisType,"Ticks"),Ti(Hl)))},ke),oe=Ee[B],ae=Ee["".concat(B,"Ticks")],xe=C&&C[pe]&&C[pe].hasStack&&HZ(q,C[pe].stackGroups),Z=Ii(q.type).indexOf("Bar")>=0,ve=Wh(oe,ae),de=[],Re=X&&EZ({barSize:M,stackGroups:C,totalSize:Fae(Ee,B)});if(Z){var ot,mt,lr=Ye(ne)?L:ne,nn=(ot=(mt=Wh(oe,ae,!0))!==null&&mt!==void 0?mt:lr)!==null&&ot!==void 0?ot:0;de=TZ({barGap:I,barCategoryGap:$,bandSize:nn!==ve?nn:ve,sizeList:Re[ge],maxBarSize:lr}),nn!==ve&&(de=de.map(function(vr){return re(re({},vr),{},{position:re(re({},vr.position),{},{offset:vr.position.offset-nn/2})})}))}var on=q&&q.type&&q.type.getComposedData;on&&W.push({props:re(re({},on(re(re({},Ee),{},{displayedData:D,props:P,dataKey:ie,item:q,bandSize:ve,barPosition:de,offset:_,stackedData:xe,layout:F,dataStartIndex:N,dataEndIndex:R}))),{},$e($e($e({key:q.key||"item-".concat(V)},H,Ee[H]),B,Ee[B]),"animationId",E)),childIndex:SH(q,P.children),item:q})}),W},x=function(P,O){var A=P.props,C=P.dataStartIndex,_=P.dataEndIndex,E=P.updateId;if(!rE({props:A}))return null;var N=A.children,R=A.layout,M=A.stackOffset,F=A.data,I=A.reverseStackOrder,$=IR(R),L=$.numericAxisName,U=$.cateAxisName,H=Sn(N,n),B=qZ(F,H,"".concat(L,"Id"),"".concat(U,"Id"),M,I),X=f.reduce(function(Y,ie){var ne="".concat(ie.axisType,"Map");return re(re({},Y),{},$e({},ne,Iae(A,re(re({},ie),{},{graphicalItems:H,stackGroups:ie.axisType===L&&B,dataStartIndex:C,dataEndIndex:_}))))},{}),W=Lae(re(re({},X),{},{props:A,graphicalItems:H}),O==null?void 0:O.legendBBox);Object.keys(X).forEach(function(Y){X[Y]=m(A,X[Y],W,Y.replace("Map",""),r)});var q=X["".concat(U,"Map")],V=$ae(q),D=v(A,re(re({},X),{},{dataStartIndex:C,dataEndIndex:_,updateId:E,graphicalItems:H,stackGroups:B,offset:W}));return re(re({formattedGraphicalItems:D,graphicalItems:H,offset:W,stackGroups:B},V),X)},b=(function(y){function P(O){var A,C,_;return yae(this,P),_=wae(this,P,[O]),$e(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),$e(_,"accessibilityManager",new iae),$e(_,"handleLegendBBoxUpdate",function(E){if(E){var N=_.state,R=N.dataStartIndex,M=N.dataEndIndex,F=N.updateId;_.setState(re({legendBBox:E},x({props:_.props,dataStartIndex:R,dataEndIndex:M,updateId:F},re(re({},_.state),{},{legendBBox:E}))))}}),$e(_,"handleReceiveSyncEvent",function(E,N,R){if(_.props.syncId===E){if(R===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(N)}}),$e(_,"handleBrushChange",function(E){var N=E.startIndex,R=E.endIndex;if(N!==_.state.dataStartIndex||R!==_.state.dataEndIndex){var M=_.state.updateId;_.setState(function(){return re({dataStartIndex:N,dataEndIndex:R},x({props:_.props,dataStartIndex:N,dataEndIndex:R,updateId:M},_.state))}),_.triggerSyncEvent({dataStartIndex:N,dataEndIndex:R})}}),$e(_,"handleMouseEnter",function(E){var N=_.getMouseInfo(E);if(N){var R=re(re({},N),{},{isTooltipActive:!0});_.setState(R),_.triggerSyncEvent(R);var M=_.props.onMouseEnter;We(M)&&M(R,E)}}),$e(_,"triggeredAfterMouseMove",function(E){var N=_.getMouseInfo(E),R=N?re(re({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(R),_.triggerSyncEvent(R);var M=_.props.onMouseMove;We(M)&&M(R,E)}),$e(_,"handleItemMouseEnter",function(E){_.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),$e(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),$e(_,"handleMouseMove",function(E){E.persist(),_.throttleTriggeredAfterMouseMove(E)}),$e(_,"handleMouseLeave",function(E){_.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};_.setState(N),_.triggerSyncEvent(N);var R=_.props.onMouseLeave;We(R)&&R(N,E)}),$e(_,"handleOuterEvent",function(E){var N=wH(E),R=wn(_.props,"".concat(N));if(N&&We(R)){var M,F;/.*touch.*/i.test(N)?F=_.getMouseInfo(E.changedTouches[0]):F=_.getMouseInfo(E),R((M=F)!==null&&M!==void 0?M:{},E)}}),$e(_,"handleClick",function(E){var N=_.getMouseInfo(E);if(N){var R=re(re({},N),{},{isTooltipActive:!0});_.setState(R),_.triggerSyncEvent(R);var M=_.props.onClick;We(M)&&M(R,E)}}),$e(_,"handleMouseDown",function(E){var N=_.props.onMouseDown;if(We(N)){var R=_.getMouseInfo(E);N(R,E)}}),$e(_,"handleMouseUp",function(E){var N=_.props.onMouseUp;if(We(N)){var R=_.getMouseInfo(E);N(R,E)}}),$e(_,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),$e(_,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&_.handleMouseDown(E.changedTouches[0])}),$e(_,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&_.handleMouseUp(E.changedTouches[0])}),$e(_,"handleDoubleClick",function(E){var N=_.props.onDoubleClick;if(We(N)){var R=_.getMouseInfo(E);N(R,E)}}),$e(_,"handleContextMenu",function(E){var N=_.props.onContextMenu;if(We(N)){var R=_.getMouseInfo(E);N(R,E)}}),$e(_,"triggerSyncEvent",function(E){_.props.syncId!==void 0&&E0.emit(T0,_.props.syncId,E,_.eventEmitterSymbol)}),$e(_,"applySyncEvent",function(E){var N=_.props,R=N.layout,M=N.syncMethod,F=_.state.updateId,I=E.dataStartIndex,$=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)_.setState(re({dataStartIndex:I,dataEndIndex:$},x({props:_.props,dataStartIndex:I,dataEndIndex:$,updateId:F},_.state)));else if(E.activeTooltipIndex!==void 0){var L=E.chartX,U=E.chartY,H=E.activeTooltipIndex,B=_.state,X=B.offset,W=B.tooltipTicks;if(!X)return;if(typeof M=="function")H=M(W,E);else if(M==="value"){H=-1;for(var q=0;q<W.length;q++)if(W[q].value===E.activeLabel){H=q;break}}var V=re(re({},X),{},{x:X.left,y:X.top}),D=Math.min(L,V.x+V.width),Y=Math.min(U,V.y+V.height),ie=W[H]&&W[H].value,ne=A1(_.state,_.props.data,H),pe=W[H]?{x:R==="horizontal"?W[H].coordinate:D,y:R==="horizontal"?Y:W[H].coordinate}:l4;_.setState(re(re({},E),{},{activeLabel:ie,activeCoordinate:pe,activePayload:ne,activeTooltipIndex:H}))}else _.setState(E)}),$e(_,"renderCursor",function(E){var N,R=_.state,M=R.isTooltipActive,F=R.activeCoordinate,I=R.activePayload,$=R.offset,L=R.activeTooltipIndex,U=R.tooltipAxisBandSize,H=_.getTooltipEventType(),B=(N=E.props.active)!==null&&N!==void 0?N:M,X=_.props.layout,W=E.key||"_recharts-cursor";return K.createElement(fae,{key:W,activeCoordinate:F,activePayload:I,activeTooltipIndex:L,chartName:r,element:E,isActive:B,layout:X,offset:$,tooltipAxisBandSize:U,tooltipEventType:H})}),$e(_,"renderPolarAxis",function(E,N,R){var M=wn(E,"type.axisType"),F=wn(_.state,"".concat(M,"Map")),I=E.type.defaultProps,$=I!==void 0?re(re({},I),E.props):E.props,L=F&&F[$["".concat(M,"Id")]];return S.cloneElement(E,re(re({},L),{},{className:Je(M,L.className),key:E.key||"".concat(N,"-").concat(R),ticks:Ti(L,!0)}))}),$e(_,"renderPolarGrid",function(E){var N=E.props,R=N.radialLines,M=N.polarAngles,F=N.polarRadius,I=_.state,$=I.radiusAxisMap,L=I.angleAxisMap,U=No($),H=No(L),B=H.cx,X=H.cy,W=H.innerRadius,q=H.outerRadius;return S.cloneElement(E,{polarAngles:Array.isArray(M)?M:Ti(H,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(F)?F:Ti(U,!0).map(function(V){return V.coordinate}),cx:B,cy:X,innerRadius:W,outerRadius:q,key:E.key||"polar-grid",radialLines:R})}),$e(_,"renderLegend",function(){var E=_.state.formattedGraphicalItems,N=_.props,R=N.children,M=N.width,F=N.height,I=_.props.margin||{},$=M-(I.left||0)-(I.right||0),L=e3({children:R,formattedGraphicalItems:E,legendWidth:$,legendContent:d});if(!L)return null;var U=L.item,H=NR(L,dae);return S.cloneElement(U,re(re({},H),{},{chartWidth:M,chartHeight:F,margin:I,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),$e(_,"renderTooltip",function(){var E,N=_.props,R=N.children,M=N.accessibilityLayer,F=Xr(R,vn);if(!F)return null;var I=_.state,$=I.isTooltipActive,L=I.activeCoordinate,U=I.activePayload,H=I.activeLabel,B=I.offset,X=(E=F.props.active)!==null&&E!==void 0?E:$;return S.cloneElement(F,{viewBox:re(re({},B),{},{x:B.left,y:B.top}),active:X,label:H,payload:X?U:[],coordinate:L,accessibilityLayer:M})}),$e(_,"renderBrush",function(E){var N=_.props,R=N.margin,M=N.data,F=_.state,I=F.offset,$=F.dataStartIndex,L=F.dataEndIndex,U=F.updateId;return S.cloneElement(E,{key:E.key||"_recharts-brush",onChange:Bd(_.handleBrushChange,E.props.onChange),data:M,x:he(E.props.x)?E.props.x:I.left,y:he(E.props.y)?E.props.y:I.top+I.height+I.brushBottom-(R.bottom||0),width:he(E.props.width)?E.props.width:I.width,startIndex:$,endIndex:L,updateId:"brush-".concat(U)})}),$e(_,"renderReferenceElement",function(E,N,R){if(!E)return null;var M=_,F=M.clipPathId,I=_.state,$=I.xAxisMap,L=I.yAxisMap,U=I.offset,H=E.type.defaultProps||{},B=E.props,X=B.xAxisId,W=X===void 0?H.xAxisId:X,q=B.yAxisId,V=q===void 0?H.yAxisId:q;return S.cloneElement(E,{key:E.key||"".concat(N,"-").concat(R),xAxis:$[W],yAxis:L[V],viewBox:{x:U.left,y:U.top,width:U.width,height:U.height},clipPathId:F})}),$e(_,"renderActivePoints",function(E){var N=E.item,R=E.activePoint,M=E.basePoint,F=E.childIndex,I=E.isRange,$=[],L=N.props.key,U=N.item.type.defaultProps!==void 0?re(re({},N.item.type.defaultProps),N.item.props):N.item.props,H=U.activeDot,B=U.dataKey,X=re(re({index:F,dataKey:B,cx:R.x,cy:R.y,r:4,fill:j_(N.item),strokeWidth:2,stroke:"#fff",payload:R.payload,value:R.value},Ve(H,!1)),vh(H));return $.push(P.renderActiveDot(H,X,"".concat(L,"-activePoint-").concat(F))),M?$.push(P.renderActiveDot(H,re(re({},X),{},{cx:M.x,cy:M.y}),"".concat(L,"-basePoint-").concat(F))):I&&$.push(null),$}),$e(_,"renderGraphicChild",function(E,N,R){var M=_.filterFormatItem(E,N,R);if(!M)return null;var F=_.getTooltipEventType(),I=_.state,$=I.isTooltipActive,L=I.tooltipAxis,U=I.activeTooltipIndex,H=I.activeLabel,B=_.props.children,X=Xr(B,vn),W=M.props,q=W.points,V=W.isRange,D=W.baseLine,Y=M.item.type.defaultProps!==void 0?re(re({},M.item.type.defaultProps),M.item.props):M.item.props,ie=Y.activeDot,ne=Y.hide,pe=Y.activeBar,ge=Y.activeShape,ke=!!(!ne&&$&&X&&(ie||pe||ge)),Ee={};F!=="axis"&&X&&X.props.trigger==="click"?Ee={onClick:Bd(_.handleItemMouseEnter,E.props.onClick)}:F!=="axis"&&(Ee={onMouseLeave:Bd(_.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:Bd(_.handleItemMouseEnter,E.props.onMouseEnter)});var oe=S.cloneElement(E,re(re({},M.props),Ee));function ae(gr){return typeof L.dataKey=="function"?L.dataKey(gr.payload):null}if(ke)if(U>=0){var xe,Z;if(L.dataKey&&!L.allowDuplicatedCategory){var ve=typeof L.dataKey=="function"?ae:"payload.".concat(L.dataKey.toString());xe=mh(q,ve,H),Z=V&&D&&mh(D,ve,H)}else xe=q==null?void 0:q[U],Z=V&&D&&D[U];if(ge||pe){var de=E.props.activeIndex!==void 0?E.props.activeIndex:U;return[S.cloneElement(E,re(re(re({},M.props),Ee),{},{activeIndex:de})),null,null]}if(!Ye(xe))return[oe].concat(Pl(_.renderActivePoints({item:M,activePoint:xe,basePoint:Z,childIndex:U,isRange:V})))}else{var Re,ot=(Re=_.getItemByXY(_.state.activeCoordinate))!==null&&Re!==void 0?Re:{graphicalItem:oe},mt=ot.graphicalItem,lr=mt.item,nn=lr===void 0?E:lr,on=mt.childIndex,vr=re(re(re({},M.props),Ee),{},{activeIndex:on});return[S.cloneElement(nn,vr),null,null]}return V?[oe,null,null]:[oe,null]}),$e(_,"renderCustomized",function(E,N,R){return S.cloneElement(E,re(re({key:"recharts-customized-".concat(R)},_.props),_.state))}),$e(_,"renderMap",{CartesianGrid:{handler:Wd,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:Wd},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:Wd},YAxis:{handler:Wd},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((A=O.id)!==null&&A!==void 0?A:$l("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=WD(_.triggeredAfterMouseMove,(C=O.throttleDelay)!==null&&C!==void 0?C:1e3/60),_.state={},_}return jae(P,y),bae(P,[{key:"componentDidMount",value:function(){var A,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,C=A.children,_=A.data,E=A.height,N=A.layout,R=Xr(C,vn);if(R){var M=R.props.defaultIndex;if(!(typeof M!="number"||M<0||M>this.state.tooltipTicks.length-1)){var F=this.state.tooltipTicks[M]&&this.state.tooltipTicks[M].value,I=A1(this.state,_,M,F),$=this.state.tooltipTicks[M].coordinate,L=(this.state.offset.top+E)/2,U=N==="horizontal",H=U?{x:$,y:L}:{y:$,x:L},B=this.state.formattedGraphicalItems.find(function(W){var q=W.item;return q.type.name==="Scatter"});B&&(H=re(re({},H),B.props.points[M].tooltipPosition),I=B.props.points[M].tooltipPayload);var X={activeTooltipIndex:M,isTooltipActive:!0,activeLabel:F,activePayload:I,activeCoordinate:H};this.setState(X),this.renderCursor(R),this.accessibilityManager.setIndex(M)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var _,E;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(A){dw([Xr(A.children,vn)],[Xr(this.props.children,vn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Xr(this.props.children,vn);if(A&&typeof A.props.shared=="boolean"){var C=A.props.shared?"axis":"item";return c.indexOf(C)>=0?C:o}return o}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var C=this.container,_=C.getBoundingClientRect(),E=cK(_),N={chartX:Math.round(A.pageX-E.left),chartY:Math.round(A.pageY-E.top)},R=_.width/C.offsetWidth||1,M=this.inRange(N.chartX,N.chartY,R);if(!M)return null;var F=this.state,I=F.xAxisMap,$=F.yAxisMap,L=this.getTooltipEventType(),U=RR(this.state,this.props.data,this.props.layout,M);if(L!=="axis"&&I&&$){var H=No(I).scale,B=No($).scale,X=H&&H.invert?H.invert(N.chartX):null,W=B&&B.invert?B.invert(N.chartY):null;return re(re({},N),{},{xValue:X,yValue:W},U)}return U?re(re({},N),U):null}},{key:"inRange",value:function(A,C){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,N=A/_,R=C/_;if(E==="horizontal"||E==="vertical"){var M=this.state.offset,F=N>=M.left&&N<=M.left+M.width&&R>=M.top&&R<=M.top+M.height;return F?{x:N,y:R}:null}var I=this.state,$=I.angleAxisMap,L=I.radiusAxisMap;if($&&L){var U=No($);return XN({x:N,y:R},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,C=this.getTooltipEventType(),_=Xr(A,vn),E={};_&&C==="axis"&&(_.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=vh(this.props,this.handleOuterEvent);return re(re({},N),E)}},{key:"addListener",value:function(){E0.on(T0,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){E0.removeListener(T0,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,C,_){for(var E=this.state.formattedGraphicalItems,N=0,R=E.length;N<R;N++){var M=E[N];if(M.item===A||M.props.key===A.key||C===Ii(M.item.type)&&_===M.childIndex)return M}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,C=this.state.offset,_=C.left,E=C.top,N=C.height,R=C.width;return K.createElement("defs",null,K.createElement("clipPath",{id:A},K.createElement("rect",{x:_,y:E,height:N,width:R})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(C,_){var E=TR(_,2),N=E[0],R=E[1];return re(re({},C),{},$e({},N,R.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(C,_){var E=TR(_,2),N=E[0],R=E[1];return re(re({},C),{},$e({},N,R.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[A])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(A){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[A])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(A){var C=this.state,_=C.formattedGraphicalItems,E=C.activeItem;if(_&&_.length)for(var N=0,R=_.length;N<R;N++){var M=_[N],F=M.props,I=M.item,$=I.type.defaultProps!==void 0?re(re({},I.type.defaultProps),I.props):I.props,L=Ii(I.type);if(L==="Bar"){var U=(F.data||[]).find(function(W){return Ute(A,W)});if(U)return{graphicalItem:M,payload:U}}else if(L==="RadialBar"){var H=(F.data||[]).find(function(W){return XN(A,W)});if(H)return{graphicalItem:M,payload:H}}else if(om(M,E)||am(M,E)||Du(M,E)){var B=Rre({graphicalItem:M,activeTooltipItem:E,itemData:$.data}),X=$.activeIndex===void 0?B:$.activeIndex;return{graphicalItem:re(re({},M),{},{childIndex:X}),payload:Du(M,E)?$.data[B]:M.props.data[B]}}}return null}},{key:"render",value:function(){var A=this;if(!rE(this))return null;var C=this.props,_=C.children,E=C.className,N=C.width,R=C.height,M=C.style,F=C.compact,I=C.title,$=C.desc,L=NR(C,hae),U=Ve(L,!1);if(F)return K.createElement(cR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement(pw,Ls({},U,{width:N,height:R,title:I,desc:$}),this.renderClipPath(),iE(_,this.renderMap)));if(this.props.accessibilityLayer){var H,B;U.tabIndex=(H=this.props.tabIndex)!==null&&H!==void 0?H:0,U.role=(B=this.props.role)!==null&&B!==void 0?B:"application",U.onKeyDown=function(W){A.accessibilityManager.keyboardEvent(W)},U.onFocus=function(){A.accessibilityManager.focus()}}var X=this.parseEventsOfWrapper();return K.createElement(cR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement("div",Ls({className:Je("recharts-wrapper",E),style:re({position:"relative",cursor:"default",width:N,height:R},M)},X,{ref:function(q){A.container=q}}),K.createElement(pw,Ls({},U,{width:N,height:R,title:I,desc:$,style:Tae}),this.renderClipPath(),iE(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(S.Component);$e(b,"displayName",r),$e(b,"defaultProps",re({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),$e(b,"getDerivedStateFromProps",function(y,P){var O=y.dataKey,A=y.data,C=y.children,_=y.width,E=y.height,N=y.layout,R=y.stackOffset,M=y.margin,F=P.dataStartIndex,I=P.dataEndIndex;if(P.updateId===void 0){var $=MR(y);return re(re(re({},$),{},{updateId:0},x(re(re({props:y},$),{},{updateId:0}),P)),{},{prevDataKey:O,prevData:A,prevWidth:_,prevHeight:E,prevLayout:N,prevStackOffset:R,prevMargin:M,prevChildren:C})}if(O!==P.prevDataKey||A!==P.prevData||_!==P.prevWidth||E!==P.prevHeight||N!==P.prevLayout||R!==P.prevStackOffset||!Ws(M,P.prevMargin)){var L=MR(y),U={chartX:P.chartX,chartY:P.chartY,isTooltipActive:P.isTooltipActive},H=re(re({},RR(P,A,N)),{},{updateId:P.updateId+1}),B=re(re(re({},L),U),H);return re(re(re({},B),x(re({props:y},B),P)),{},{prevDataKey:O,prevData:A,prevWidth:_,prevHeight:E,prevLayout:N,prevStackOffset:R,prevMargin:M,prevChildren:C})}if(!dw(C,P.prevChildren)){var X,W,q,V,D=Xr(C,pl),Y=D&&(X=(W=D.props)===null||W===void 0?void 0:W.startIndex)!==null&&X!==void 0?X:F,ie=D&&(q=(V=D.props)===null||V===void 0?void 0:V.endIndex)!==null&&q!==void 0?q:I,ne=Y!==F||ie!==I,pe=!Ye(A),ge=pe&&!ne?P.updateId:P.updateId+1;return re(re({updateId:ge},x(re(re({props:y},P),{},{updateId:ge,dataStartIndex:Y,dataEndIndex:ie}),P)),{},{prevChildren:C,dataStartIndex:Y,dataEndIndex:ie})}return null}),$e(b,"renderActiveDot",function(y,P,O){var A;return S.isValidElement(y)?A=S.cloneElement(y,P):We(y)?A=y(P):A=K.createElement(im,P),K.createElement(pt,{className:"recharts-active-dot",key:O},A)});var w=S.forwardRef(function(P,O){return K.createElement(b,Ls({},P,{ref:O}))});return w.displayName=b.displayName,w},Bae=$_({chartName:"LineChart",GraphicalChild:lf,axisComponents:[{axisType:"xAxis",AxisComp:Lo},{axisType:"yAxis",AxisComp:Fo}],formatAxisMap:O_}),zae=$_({chartName:"BarChart",GraphicalChild:Ya,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Lo},{axisType:"yAxis",AxisComp:Fo}],formatAxisMap:O_}),qae=$_({chartName:"AreaChart",GraphicalChild:na,axisComponents:[{axisType:"xAxis",AxisComp:Lo},{axisType:"yAxis",AxisComp:Fo}],formatAxisMap:O_});const Uae={pass:F1,fail:fz,block:zi,not_verified:lM};function za({gate:e,className:t}){const r=(e??"not_verified").toLowerCase(),n=Uae[r]??lM;return u.jsxs(fh,{children:[u.jsx(dh,{asChild:!0,children:u.jsxs("span",{className:fe("inline-flex cursor-help items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-xs font-semibold",RW(e),t),children:[u.jsx(n,{className:"h-3.5 w-3.5"}),E$(e)]})}),u.jsx(su,{children:MW(e)})]})}const Wae={default:"text-foreground",critical:"text-severity-critical",high:"text-severity-high",medium:"text-severity-medium",low:"text-severity-low",pass:"text-gate-pass",fail:"text-gate-fail"},Hae={default:"bg-primary/10 text-primary",critical:"bg-severity-critical/10 text-severity-critical",high:"bg-severity-high/10 text-severity-high",medium:"bg-severity-medium/10 text-severity-medium",low:"bg-severity-low/10 text-severity-low",pass:"bg-gate-pass/10 text-gate-pass",fail:"bg-gate-fail/10 text-gate-fail"};function Nr({label:e,value:t,hint:r,icon:n,tone:i="default",className:o}){return u.jsx(Ce,{className:fe("overflow-hidden",o),children:u.jsxs(Ae,{className:"flex items-start justify-between gap-3 p-5",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("p",{className:fe("text-3xl font-semibold tabular-nums tracking-tight",Wae[i]),children:t}),r?u.jsx("p",{className:"text-xs text-muted-foreground",children:r}):null]}),n?u.jsx("div",{className:fe("flex h-9 w-9 items-center justify-center rounded-lg",Hae[i]),children:u.jsx(n,{className:"h-4 w-4"})}):null]})})}function Vae(){var d,m,p,v,x,b,w,y,P,O,A;const{activeRepositoryId:e,activeRepository:t,repositories:r}=Rr(),n=wt(()=>De.dashboard.overview(e??void 0),[e]),i=wt(()=>De.dashboard.activity(12),[]),o=S.useMemo(()=>{var _;const C=((_=n.data)==null?void 0:_.severity_breakdown)??{};return A$.filter(E=>(C[E]??0)>0).map(E=>({severity:E,label:qe(E),count:C[E]??0,color:kW(E)}))},[n.data]),s=S.useMemo(()=>{var C;return Object.entries(((C=n.data)==null?void 0:C.category_breakdown)??{}).map(([_,E])=>({module:qe(_),count:E})).sort((_,E)=>E.count-_.count)},[n.data]),c=S.useMemo(()=>{var C;return(((C=n.data)==null?void 0:C.score_history)??[]).filter(_=>_.score!==null&&_.score!==void 0).map(_=>({label:Gae(_.at,_.scan_id),score:Number(_.score),repository:String(_.repository??"")}))},[n.data]),f=((d=n.data)==null?void 0:d.has_data)??!1;return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Overview",description:t?`Health and history for ${t.name}.`:"Health and history across every registered repository.",actions:u.jsx(me,{asChild:!0,size:"sm",children:u.jsxs(Ge,{to:"/scans/new",children:[u.jsx(Zs,{}),"New scan"]})})}),u.jsx(Et,{loading:n.loading,error:n.error,onRetry:()=>void n.reload(),loadingRows:2,children:f?null:u.jsx($t,{icon:Zs,title:"No completed scan yet",description:r.length?"Run a scan to populate the dashboard. Every number here comes from persisted scan results — nothing is estimated.":"Register a repository first, then run a scan. The dashboard only reports real results.",action:u.jsx(me,{asChild:!0,size:"sm",variant:"outline",children:u.jsx(Ge,{to:r.length?"/scans/new":"/repositories",children:r.length?"Run a scan":"Add a repository"})})})}),u.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[u.jsx(Nr,{label:"Latest score",value:u.jsx("span",{className:Ki((m=n.data)==null?void 0:m.summary.overall_score),children:si((p=n.data)==null?void 0:p.summary.overall_score)}),hint:((v=n.data)==null?void 0:v.summary.overall_score)===null?"The latest scan produced no score.":"Weighted from real findings.",icon:nh}),u.jsx(Nr,{label:"Critical",value:be((x=n.data)==null?void 0:x.summary.critical),tone:"critical",hint:"In the newest completed scan.",icon:L1}),u.jsx(Nr,{label:"High",value:be((b=n.data)==null?void 0:b.summary.high),tone:"high",hint:"In the newest completed scan.",icon:zi}),u.jsx(Nr,{label:"Open findings",value:be((w=n.data)==null?void 0:w.summary.total_open),hint:"Across all repositories, excluding triaged items.",icon:qB})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-3",children:[u.jsxs(Ce,{className:"lg:col-span-2",children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Score history"}),u.jsx(Ue,{children:"Every completed scan, oldest to newest."})]}),u.jsx(Ae,{className:"h-64",children:c.length>1?u.jsx(Rb,{width:"100%",height:"100%",children:u.jsxs(Bae,{data:c,margin:{top:8,right:12,bottom:0,left:-18},children:[u.jsx(eh,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),u.jsx(Lo,{dataKey:"label",tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},stroke:"hsl(var(--border))"}),u.jsx(Fo,{domain:[0,100],tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},stroke:"hsl(var(--border))"}),u.jsx(vn,{contentStyle:{background:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:8,fontSize:12,color:"hsl(var(--popover-foreground))"}}),u.jsx(lf,{type:"monotone",dataKey:"score",stroke:"hsl(var(--primary))",strokeWidth:2,dot:{r:3},activeDot:{r:5}})]})}):u.jsx("div",{className:"flex h-full items-center justify-center",children:u.jsx("p",{className:"max-w-sm text-center text-sm text-muted-foreground",children:"A trend needs at least two completed scans. Run another scan to see how the score moves."})})})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Findings by severity"}),u.jsx(Ue,{children:"Newest completed scan per repository."})]}),u.jsx(Ae,{className:"h-64",children:o.length?u.jsx(Rb,{width:"100%",height:"100%",children:u.jsxs(zae,{data:o,margin:{top:8,right:8,bottom:0,left:-22},children:[u.jsx(eh,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),u.jsx(Lo,{dataKey:"label",tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},stroke:"hsl(var(--border))"}),u.jsx(Fo,{allowDecimals:!1,tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},stroke:"hsl(var(--border))"}),u.jsx(vn,{contentStyle:{background:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:8,fontSize:12,color:"hsl(var(--popover-foreground))"}}),u.jsx(Ya,{dataKey:"count",radius:[4,4,0,0],children:o.map(C=>u.jsx(QS,{fill:C.color},C.severity))})]})}):u.jsx("div",{className:"flex h-full items-center justify-center",children:u.jsx("p",{className:"text-sm text-muted-foreground",children:"No findings recorded yet."})})})]})]}),s.length?u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Findings by scanner module"}),u.jsx(Ue,{children:"Which analysis module produced the issues."})]}),u.jsx(Ae,{className:"h-56",children:u.jsx(Rb,{width:"100%",height:"100%",children:u.jsxs(qae,{data:s,margin:{top:8,right:12,bottom:0,left:-22},children:[u.jsx("defs",{children:u.jsxs("linearGradient",{id:"moduleFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[u.jsx("stop",{offset:"0%",stopColor:"hsl(var(--primary))",stopOpacity:.35}),u.jsx("stop",{offset:"100%",stopColor:"hsl(var(--primary))",stopOpacity:.02})]})}),u.jsx(eh,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),u.jsx(Lo,{dataKey:"module",tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},stroke:"hsl(var(--border))"}),u.jsx(Fo,{allowDecimals:!1,tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},stroke:"hsl(var(--border))"}),u.jsx(vn,{contentStyle:{background:"hsl(var(--popover))",border:"1px solid hsl(var(--border))",borderRadius:8,fontSize:12,color:"hsl(var(--popover-foreground))"}}),u.jsx(na,{type:"monotone",dataKey:"count",stroke:"hsl(var(--primary))",strokeWidth:2,fill:"url(#moduleFill)"})]})})})]}):null,u.jsxs("div",{className:"grid gap-4 lg:grid-cols-5",children:[u.jsxs(Ce,{className:"lg:col-span-3",children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Repository health"}),u.jsx(Ue,{children:"Latest completed scan for each repository."})]}),u.jsx(Ae,{className:"px-0 pb-0",children:u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Repository"}),u.jsx(Te,{children:"Score"}),u.jsx(Te,{children:"Gate"}),u.jsx(Te,{children:"Critical / High"}),u.jsx(Te,{children:"Last scan"})]})}),u.jsxs(pi,{children:[(((y=n.data)==null?void 0:y.repository_health)??[]).map(C=>u.jsxs(At,{children:[u.jsxs(Pe,{children:[u.jsx(Ge,{to:`/repositories/${C.repository_id}`,className:"font-medium hover:text-primary",children:String(C.name)}),u.jsx("p",{className:"text-xs text-muted-foreground",children:C.main_language?String(C.main_language):"unknown language"})]}),u.jsx(Pe,{className:fe("font-semibold tabular-nums",Ki(C.score)),children:si(C.score)}),u.jsx(Pe,{children:u.jsx(za,{gate:C.gate??null})}),u.jsxs(Pe,{className:"tabular-nums",children:[u.jsx("span",{className:"text-severity-critical",children:be(C.critical)}),u.jsx("span",{className:"px-1 text-muted-foreground",children:"/"}),u.jsx("span",{className:"text-severity-high",children:be(C.high)})]}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:Qn(C.last_scan_at)})]},String(C.repository_id))),(((P=n.data)==null?void 0:P.repository_health)??[]).length?null:u.jsx(At,{children:u.jsx(Pe,{colSpan:5,className:"py-8 text-center text-sm text-muted-foreground",children:"No repositories registered yet."})})]})]})})]}),u.jsxs(Ce,{className:"lg:col-span-2",children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Recent activity"}),u.jsx(Ue,{children:"Scans, findings and remediation proposals."})]}),u.jsx(Ae,{className:"space-y-3",children:u.jsx(Et,{loading:i.loading,error:i.error,onRetry:()=>void i.reload(),loadingRows:4,children:(((O=i.data)==null?void 0:O.items)??[]).length?(((A=i.data)==null?void 0:A.items)??[]).map((C,_)=>u.jsxs("div",{className:"flex items-start justify-between gap-3 border-b pb-3 last:border-0 last:pb-0",children:[u.jsxs("div",{className:"min-w-0 space-y-0.5",children:[u.jsx("p",{className:"truncate text-sm font-medium",children:C.title}),u.jsx("p",{className:"truncate text-xs text-muted-foreground",children:C.detail}),u.jsxs("div",{className:"flex items-center gap-2 pt-0.5",children:[C.severity?u.jsx(Xi,{severity:C.severity}):null,u.jsx("span",{className:"text-[11px] text-muted-foreground",children:Qn(C.at)})]})]}),C.scan_id?u.jsx(Ge,{to:`/scans/${C.scan_id}`,className:"shrink-0 text-muted-foreground transition-colors hover:text-primary","aria-label":"Open scan",children:u.jsx(ZO,{className:"h-4 w-4"})}):C.finding_id?u.jsx(Ge,{to:`/findings/${C.finding_id}`,className:"shrink-0 text-muted-foreground transition-colors hover:text-primary","aria-label":"Open finding",children:u.jsx(ZO,{className:"h-4 w-4"})}):null]},`${C.kind}-${_}`)):u.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:"Nothing has happened yet."})})})]})]}),n.data?u.jsx(Ce,{children:u.jsxs(Ae,{className:"grid gap-4 p-5 sm:grid-cols-4",children:[u.jsx(Hd,{icon:hz,label:"Tests executed (latest)",value:n.data.summary.tests_executed===null?"Not executed":`${be(n.data.summary.tests_passed)} / ${be(n.data.summary.tests_executed)} passed`}),u.jsx(Hd,{icon:$1,label:"Repositories in scope",value:be(n.data.summary.repository_count)}),u.jsx(Hd,{icon:nh,label:"Latest scan duration",value:Zu(n.data.summary.latest_scan_duration_ms)}),u.jsx(Hd,{icon:zi,label:"Release gate",value:E$(n.data.summary.gate)})]})}):null]})}function Hd({icon:e,label:t,value:r}){return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-md bg-muted",children:u.jsx(e,{className:"h-4 w-4 text-muted-foreground"})}),u.jsxs("div",{className:"min-w-0",children:[u.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:t}),u.jsx("p",{className:"truncate text-sm font-medium",children:r})]})]})}function Gae(e,t){if(!e)return`#${t}`;const r=new Date(e);return Number.isNaN(r.getTime())?`#${t}`:r.toLocaleDateString(void 0,{month:"short",day:"2-digit"})}var Kae=Object.defineProperty,D_=(e,t)=>Kae(e,"name",{value:t,configurable:!0}),k0=!1;function u4(){const[e,t]=S.useState(k0);return S.useEffect(()=>{k0||(k0=!0,t(!0))},[]),e}D_(u4,"useIsHydrated");var f4=Go[" useSyncExternalStore ".trim().toString()];function d4(){return()=>{}}D_(d4,"subscribe");function h4(){return f4(d4,()=>!0,()=>!1)}D_(h4,"useIsHydratedModern");var Xae=typeof f4=="function"?h4:u4,Yae=Object.defineProperty,Qa=(e,t)=>Yae(e,"name",{value:t,configurable:!0}),R0="rovingFocusGroup.onEntryFocus",Qae={bubbles:!1,cancelable:!0},hm="RovingFocusGroup",[E1,p4,Zae]=uS(hm),[Jae,m4]=zn(hm,[Zae]),$R={Vertical:"vertical",Horizontal:"horizontal"},ese={RTL:"rtl"},[tse,rse]=Jae(hm),nse=S.forwardRef(Qa(function(t,r){return u.jsx(E1.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(E1.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx(ise,{...t,ref:r})})})},"RovingFocusGroup")),ise=S.forwardRef(Qa(function(t,r){const{__scopeRovingFocusGroup:n,orientation:i,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:m,preventScrollOnEntryFocus:p=!1,...v}=t,x=S.useRef(null),b=tt(r,x),w=Vu(s),[y,P]=qo({prop:c,defaultProp:f??null,onChange:d,caller:hm}),[O,A]=S.useState(!1),C=or(m),_=p4(n),E=S.useRef(!1),[N,R]=S.useState(0);return S.useEffect(()=>{const M=x.current;if(M)return M.addEventListener(R0,C),()=>M.removeEventListener(R0,C)},[C]),u.jsx(tse,{scope:n,orientation:i,dir:w,loop:o,currentTabStopId:y,onItemFocus:S.useCallback(M=>P(M),[P]),onItemShiftTab:S.useCallback(()=>A(!0),[]),onFocusableItemAdd:S.useCallback(()=>R(M=>M+1),[]),onFocusableItemRemove:S.useCallback(()=>R(M=>M-1),[]),children:u.jsx(Ke.div,{tabIndex:O||N===0?-1:0,"data-orientation":i,...v,ref:b,style:{outline:"none",...t.style},onMouseDown:Le(t.onMouseDown,()=>{E.current=!0}),onFocus:Le(t.onFocus,M=>{const F=!E.current;if(M.target===M.currentTarget&&F&&!O){const I=new CustomEvent(R0,Qae);if(M.currentTarget.dispatchEvent(I),!I.defaultPrevented){const $=_().filter(X=>X.focusable),L=$.find(X=>X.active),U=$.find(X=>X.id===y),B=[L,U,...$].filter(Boolean).map(X=>X.ref.current);L_(B,p)}}E.current=!1}),onBlur:Le(t.onBlur,()=>A(!1))})})},"RovingFocusGroupImpl")),ose="RovingFocusGroupItem",ase=S.forwardRef(Qa(function(t,r){const{__scopeRovingFocusGroup:n,focusable:i=!0,active:o=!1,tabStopId:s,children:c,...f}=t,d=ki(),m=s||d,p=rse(ose,n),v=p.currentTabStopId===m,x=p4(n),{onFocusableItemAdd:b,onFocusableItemRemove:w,currentTabStopId:y}=p,P=Xae();return bt(()=>{if(!(!P||!i))return b(),()=>w()},[P,i,b,w]),S.useEffect(()=>{if(!(P||!i))return b(),()=>w()},[P,i,b,w]),u.jsx(E1.ItemSlot,{scope:n,id:m,focusable:i,active:o,children:u.jsx(Ke.span,{tabIndex:v?0:-1,"data-orientation":p.orientation,...f,ref:r,onMouseDown:Le(t.onMouseDown,O=>{i?p.onItemFocus(m):O.preventDefault()}),onFocus:Le(t.onFocus,()=>p.onItemFocus(m)),onKeyDown:Le(t.onKeyDown,O=>{if(O.key==="Tab"&&O.shiftKey){p.onItemShiftTab();return}if(O.target!==O.currentTarget)return;const A=g4(O,p.orientation,p.dir);if(A!==void 0){if(O.metaKey||O.ctrlKey||O.altKey||O.shiftKey)return;O.preventDefault();let _=x().filter(E=>E.focusable).map(E=>E.ref.current);if(A==="last")_.reverse();else if(A==="prev"||A==="next"){A==="prev"&&_.reverse();const E=_.indexOf(O.currentTarget);_=p.loop?y4(_,E+1):_.slice(E+1)}setTimeout(()=>L_(_))}}),children:typeof c=="function"?c({isCurrentTabStop:v,hasTabStop:y!=null}):c})})},"RovingFocusGroupItem")),sse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function v4(e,t){return t!==ese.RTL?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Qa(v4,"getDirectionAwareKey");function g4(e,t,r){const n=v4(e.key,r);if(!(t===$R.Vertical&&["ArrowLeft","ArrowRight"].includes(n))&&!(t===$R.Horizontal&&["ArrowUp","ArrowDown"].includes(n)))return sse[n]}Qa(g4,"getFocusIntent");function L_(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}Qa(L_,"focusFirst");function y4(e,t){return e.map((r,n)=>e[(t+n)%e.length])}Qa(y4,"wrapArray");var lse=Object.defineProperty,Ul=(e,t)=>lse(e,"name",{value:t,configurable:!0}),x4={Automatic:"automatic",Manual:"manual"},F_="Tabs",[cse,nle]=zn(F_,[m4]),b4=m4(),[use,B_]=cse(F_),fse=S.forwardRef(Ul(function(t,r){const{__scopeTabs:n,value:i,onValueChange:o,defaultValue:s,orientation:c="horizontal",dir:f,activationMode:d=x4.Automatic,...m}=t,p=Vu(f),[v,x]=qo({prop:i,onChange:o,defaultProp:s??"",caller:F_});return u.jsx(use,{scope:n,baseId:ki(),value:v,onValueChange:x,orientation:c,dir:p,activationMode:d,children:u.jsx(Ke.div,{dir:p,"data-orientation":c,...m,ref:r})})},"Tabs")),dse="TabsList",w4=S.forwardRef(Ul(function(t,r){const{__scopeTabs:n,loop:i=!0,...o}=t,s=B_(dse,n),c=b4(n);return u.jsx(nse,{asChild:!0,...c,orientation:s.orientation,dir:s.dir,loop:i,children:u.jsx(Ke.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:r})})},"TabsList")),hse="TabsTrigger",S4=S.forwardRef(Ul(function(t,r){const{__scopeTabs:n,value:i,disabled:o=!1,...s}=t,c=B_(hse,n),f=b4(n),d=z_(c.baseId,i),m=q_(c.baseId,i),p=i===c.value;return u.jsx(ase,{asChild:!0,...f,focusable:!o,active:p,children:u.jsx(Ke.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":m,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:r,onMouseDown:Le(t.onMouseDown,v=>{!o&&v.button===0&&v.ctrlKey===!1?(v.currentTarget.focus(),c.onValueChange(i)):v.preventDefault()}),onKeyDown:Le(t.onKeyDown,v=>{o||v.target!==v.currentTarget||[" ","Enter"].includes(v.key)&&c.onValueChange(i)}),onFocus:Le(t.onFocus,()=>{const v=c.activationMode!==x4.Manual;!p&&!o&&v&&c.onValueChange(i)})})})},"TabsTrigger")),pse="TabsContent",_4=S.forwardRef(Ul(function(t,r){const{__scopeTabs:n,value:i,forceMount:o,children:s,...c}=t,f=B_(pse,n),d=z_(f.baseId,i),m=q_(f.baseId,i),p=i===f.value,v=S.useRef(p);return S.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),u.jsx(Bn,{present:o||p,children:({present:x})=>u.jsx(Ke.div,{"data-state":p?"active":"inactive","data-orientation":f.orientation,role:"tabpanel","aria-labelledby":d,hidden:!x,id:m,tabIndex:0,...c,ref:r,style:{...t.style,animationDuration:v.current?"0s":void 0},children:x&&s})})},"TabsContent"));function z_(e,t){return`${e}-trigger-${t}`}Ul(z_,"makeTriggerId");function q_(e,t){return`${e}-content-${t}`}Ul(q_,"makeContentId");const U_=fse,pm=S.forwardRef(({className:e,...t},r)=>u.jsx(w4,{ref:r,className:fe("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));pm.displayName=w4.displayName;const Fi=S.forwardRef(({className:e,...t},r)=>u.jsx(S4,{ref:r,className:fe("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));Fi.displayName=S4.displayName;const Bi=S.forwardRef(({className:e,...t},r)=>u.jsx(_4,{ref:r,className:fe("mt-4 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",e),...t}));Bi.displayName=_4.displayName;function mse(){var ie;const{activeRepositoryId:e,activeRepository:t}=Rr(),{toast:r}=ro(),n=wt(()=>De.ai.remediations(),[]),[i,o]=S.useState(null),s=wt(()=>De.ai.remediation(i),[i],{enabled:i!==null}),c=wt(()=>De.findings.list({repository_id:e??void 0,status:["open"],limit:100}),[e]),[f,d]=S.useState(""),[m,p]=S.useState(!1),[v,x]=S.useState(null),[b,w]=S.useState(!1),[y,P]=S.useState(!1),[O,A]=S.useState(!1),[C,_]=S.useState(!1),[E,N]=S.useState(!1),[R,M]=S.useState(!1),[F,I]=S.useState(!1),[$,L]=S.useState(null),U=n.data??[],H=((ie=c.data)==null?void 0:ie.items)??[],B=s.data;function X(){P(!1),A(!1),_(!1),L(null),w(!0)}function W(ne){o(ne),L(null)}async function q(){const ne=Number.parseInt(f,10);if(Number.isFinite(ne)){p(!0),x(null);try{const pe=await De.ai.proposeRemediation(ne);await n.reload(!0),o(pe.id),d(""),r({title:"Proposal created",description:`A patch for finding #${ne} is ready to review.`,variant:"success"})}catch(pe){x(pe instanceof _t?pe.message:"The proposal could not be created.")}finally{p(!1)}}}async function V(){if(i===null)return;N(!0),L(null);const ne=O&&C;try{const pe=await De.ai.approveRemediation(i,{confirm:!0,run_tests:ne,explicit_permission:ne});s.setData(pe),w(!1),await n.reload(!0),pe.error?L(pe.error):r({title:"Patch applied",description:ne?"The patch was written to the working tree and tests were requested.":"The patch was written to the working tree.",variant:"success"})}catch(pe){L(pe instanceof _t?pe.message:"The approval could not be completed.")}finally{N(!1)}}async function D(){if(i!==null){I(!0),L(null);try{const ne=await De.ai.rollbackRemediation(i);s.setData(ne),M(!1),await n.reload(!0),ne.error?L(ne.error):r({title:"Rolled back",description:"The applied patch was reverted.",variant:"success"})}catch(ne){L(ne instanceof _t?ne.message:"The rollback could not be completed.")}finally{I(!1)}}}const Y=E||!y||O&&!C;return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Remediation",description:"AI-proposed patches that require explicit human approval before they touch the working tree.",actions:u.jsxs(me,{variant:"outline",size:"sm",onClick:()=>void n.reload(),children:[u.jsx(Al,{}),"Refresh"]})}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Propose a remediation"}),u.jsx(Ue,{children:"Ask the model to draft a patch for an open finding. A proposal is never applied automatically."})]}),u.jsxs(Ae,{className:"space-y-3",children:[u.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-end",children:[u.jsxs("div",{className:"flex-1 space-y-1.5",children:[u.jsx(Dt,{htmlFor:"remediation-finding",children:"Open finding"}),u.jsxs(_n,{value:f,onValueChange:d,disabled:m||!H.length,children:[u.jsx(Zr,{id:"remediation-finding",children:u.jsx(jn,{placeholder:"Select an open finding"})}),u.jsx(Jr,{children:H.map(ne=>u.jsxs(Pr,{value:String(ne.id),children:["#",ne.id," · ",ne.severity," · ",ne.rule]},ne.id))})]})]}),u.jsxs(me,{onClick:()=>void q(),disabled:m||!f,children:[u.jsx(Hu,{}),m?"Proposing…":"Propose patch"]})]}),c.error?u.jsxs("p",{className:"text-xs text-destructive",children:["Open findings could not be loaded: ",c.error]}):null,!c.loading&&!c.error&&!H.length?u.jsxs("p",{className:"text-xs text-muted-foreground",children:["No open findings are available to propose against",t?` in ${t.name}`:"","."]}):null,v?u.jsx(Qt,{variant:"destructive",children:u.jsxs(zt,{children:[v," ",u.jsx(Ge,{to:"/settings",className:"font-medium underline underline-offset-4",children:"Open settings"})," ","to configure an AI provider."]})}):null]})]}),u.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-3",children:[u.jsx(ze,{children:"Proposals"}),u.jsx(Ue,{children:"Every patch the model has drafted."})]}),u.jsx(Ae,{className:"px-0 pb-0",children:u.jsx(Et,{loading:n.loading,error:n.error,onRetry:()=>void n.reload(),loadingRows:3,children:U.length?u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"ID"}),u.jsx(Te,{children:"Finding"}),u.jsx(Te,{children:"Status"}),u.jsx(Te,{children:"File"}),u.jsx(Te,{children:"Provider"}),u.jsx(Te,{children:"Updated"})]})}),u.jsx(pi,{children:U.map(ne=>u.jsxs(At,{onClick:()=>W(ne.id),className:fe("cursor-pointer",ne.id===i&&"bg-muted"),children:[u.jsxs(Pe,{className:"font-medium",children:["#",ne.id]}),u.jsx(Pe,{children:ne.finding_id!==null?u.jsxs(Ge,{to:`/findings/${ne.finding_id}`,className:"hover:text-primary",onClick:pe=>pe.stopPropagation(),children:["#",ne.finding_id]}):"—"}),u.jsx(Pe,{children:u.jsx(Xt,{variant:LR(ne.status),children:qe(ne.status)})}),u.jsx(Pe,{className:"max-w-[180px] truncate font-mono text-xs",children:ne.file??"—"}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:DR(ne.provider,ne.model)}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:Qn(ne.updated_at)})]},ne.id))})]}):u.jsx("div",{className:"px-4 pb-4",children:u.jsx($t,{icon:W0,title:"No remediation proposals yet",description:"Propose a patch from an open finding to review it here. Nothing is applied without your explicit approval."})})})})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-3",children:[u.jsx(ze,{children:"Proposal detail"}),u.jsx(Ue,{children:"Review the patch before applying it."})]}),u.jsx(Ae,{className:"space-y-4",children:i===null?u.jsx($t,{icon:W0,title:"No proposal selected",description:"Select a proposal to inspect its diff and decide whether to apply it."}):u.jsx(Et,{loading:s.loading,error:s.error,onRetry:()=>void s.reload(),loadingRows:3,children:B?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(Xt,{variant:LR(B.status),children:qe(B.status)}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["finding"," ",B.finding_id!==null?`#${B.finding_id}`:"not linked"]}),u.jsx("span",{className:"text-xs text-muted-foreground",children:DR(B.provider,B.model)})]}),B.file?u.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:B.file}):null,$?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Action failed"}),u.jsx(zt,{children:$})]}):null,B.error?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Reported error"}),u.jsx(zt,{children:B.error})]}):null,B.rationale?u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Rationale"}),u.jsx("p",{className:"whitespace-pre-wrap text-sm text-muted-foreground",children:B.rationale})]}):null,B.diff?u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"Unified diff"}),u.jsx("pre",{className:"max-h-80 overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs",children:B.diff})]}):null,u.jsxs(U_,{defaultValue:"original",children:[u.jsxs(pm,{children:[u.jsx(Fi,{value:"original",children:"Original"}),u.jsx(Fi,{value:"proposed",children:"Proposed"})]}),u.jsx(Bi,{value:"original",children:u.jsx("pre",{className:"max-h-80 overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs",children:B.original??"No original content was captured."})}),u.jsx(Bi,{value:"proposed",children:u.jsx("pre",{className:"max-h-80 overflow-x-auto rounded-md border bg-muted/40 p-3 font-mono text-xs",children:B.proposed??"No proposed content was captured."})})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:"History"}),B.history.length?u.jsx("ol",{className:"ml-1 space-y-2 border-l pl-4",children:B.history.map((ne,pe)=>{const ge=vse(ne);return u.jsxs("li",{className:"relative",children:[u.jsx("span",{className:"absolute -left-[21px] top-1.5 h-2 w-2 rounded-full bg-border"}),u.jsx("p",{className:"text-sm font-medium",children:qe(ge.status)}),u.jsx("p",{className:"text-xs text-muted-foreground",children:yn(ge.at)})]},pe)})}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No history recorded yet."})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsxs(me,{onClick:X,disabled:E||F,children:[u.jsx(F1,{}),"Approve and apply"]}),u.jsxs(me,{variant:"outline",onClick:()=>{L(null),M(!0)},disabled:E||F,children:[u.jsx(pz,{}),"Roll back"]})]})]}):null})})]})]}),u.jsx(Hi,{open:b,onOpenChange:ne=>{!ne&&!E&&w(!1)},children:u.jsxs(ai,{children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Apply this patch"}),u.jsx(Gi,{children:"Approving writes the proposed change to the real working tree. This is not a preview."})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("label",{className:"flex items-start gap-2 text-sm",children:[u.jsx("input",{type:"checkbox",className:"mt-0.5 h-4 w-4 rounded border-input",checked:y,onChange:ne=>P(ne.target.checked)}),u.jsx("span",{children:"I understand this patch will be written to the working tree."})]}),u.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-md border p-3",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Dt,{htmlFor:"run-tests",children:"Run the isolated test suite after applying"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Off by default. Tests run inside an isolated sandbox."})]}),u.jsx(Ju,{id:"run-tests",checked:O,onCheckedChange:ne=>{A(ne),ne||_(!1)}})]}),O?u.jsxs("div",{className:"space-y-2 rounded-md border border-severity-medium/40 bg-severity-medium/10 p-3",children:[u.jsx("p",{className:"text-xs",children:"Tests execute inside a Docker sandbox and require Docker to be installed and running. They are an isolated check, not a guarantee."}),u.jsxs("label",{className:"flex items-start gap-2 text-sm",children:[u.jsx("input",{type:"checkbox",className:"mt-0.5 h-4 w-4 rounded border-input",checked:C,onChange:ne=>_(ne.target.checked)}),u.jsx("span",{children:"I explicitly permit executing the test suite for this patch."})]})]}):null]}),u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>w(!1),disabled:E,children:"Cancel"}),u.jsx(me,{onClick:()=>void V(),disabled:Y,children:E?"Applying…":"Approve and apply"})]})]})}),u.jsx(Hi,{open:R,onOpenChange:ne=>{!ne&&!F&&M(!1)},children:u.jsxs(ai,{children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Roll back this patch"}),u.jsx(Gi,{children:"This reverts the previously applied change in the working tree. Continue only if you are sure."})]}),u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>M(!1),disabled:F,children:"Cancel"}),u.jsx(me,{variant:"destructive",onClick:()=>void D(),disabled:F,children:F?"Rolling back…":"Roll back"})]})]})})]})}function DR(e,t){const r=[e,t].filter(n=>!!n);return r.length?r.join(" / "):"—"}function LR(e){switch((e||"").toLowerCase()){case"applied":case"approved":return"default";case"failed":case"rejected":case"error":return"destructive";case"rolled_back":case"rolled-back":return"secondary";default:return"muted"}}function vse(e){const t=e.status??e.state??e.event,r=typeof t=="string"?t:"update",n=e.at??e.ts??e.timestamp??e.created_at??e.updated_at;return{status:r,at:typeof n=="string"?n:null}}function gse(e){return e instanceof _t?e.message:"The request failed."}function yse(e){return e==null?"—":typeof e=="boolean"?e?"Yes":"No":typeof e=="object"?JSON.stringify(e):String(e)}function xse(){var P;const{repositories:e,activeRepositoryId:t,setActiveRepositoryId:r}=Rr(),[n,i]=S.useState(null),[o,s]=S.useState(null),[c,f]=S.useState(!1),[d,m]=S.useState(null),p=wt(()=>De.scans.list({repository_id:t??void 0,limit:100}),[t],{enabled:t!==null});S.useEffect(()=>{var A;const O=((A=p.data)==null?void 0:A.items)??[];if(!O.length){i(null);return}O.some(C=>C.id===n)||i(O[0].id)},[p.data,n]);const v=((P=p.data)==null?void 0:P.items)??[],x=v.find(O=>O.id===n)??null,b=wt(()=>De.findings.list({scan_id:n??0,limit:200}),[n],{enabled:n!==null}),w=S.useMemo(()=>{var A;const O=((A=b.data)==null?void 0:A.items)??[];return A$.map(C=>({severity:C,items:O.filter(_=>_.severity===C)})).filter(C=>C.items.length>0)},[b.data]);async function y(){if(x){f(!0),m(null);try{const O=await De.ai.summary({repository_id:x.repository_id,scan_id:x.id});s(O)}catch(O){m(gse(O))}finally{f(!1)}}}return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Reports",description:"A factual report for one scan, plus an optional AI-written executive summary.",actions:u.jsxs(me,{variant:"outline",size:"sm",onClick:()=>window.print(),children:[u.jsx(az,{}),"Print / Save as PDF"]})}),e.length?u.jsxs(u.Fragment,{children:[u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Report scope"}),u.jsx(Ue,{children:"Choose the repository and the scan to report on."})]}),u.jsxs(Ae,{className:"grid gap-4 sm:grid-cols-2",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:"report-repository",children:"Repository"}),u.jsxs(_n,{value:t===null?void 0:String(t),onValueChange:O=>r(Number(O)),children:[u.jsx(Zr,{id:"report-repository",children:u.jsx(jn,{placeholder:"Select a repository"})}),u.jsx(Jr,{children:e.map(O=>u.jsx(Pr,{value:String(O.id),children:O.name},O.id))})]})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:"report-scan",children:"Scan"}),u.jsx(Et,{loading:p.loading,error:p.error,onRetry:()=>void p.reload(),loadingRows:1,children:u.jsxs(_n,{value:n===null?void 0:String(n),onValueChange:O=>i(Number(O)),disabled:!v.length,children:[u.jsx(Zr,{id:"report-scan",children:u.jsx(jn,{placeholder:t===null?"Select a repository first":"Select a scan"})}),u.jsx(Jr,{children:v.map(O=>u.jsx(Pr,{value:String(O.id),children:`#${O.id} · ${qe(O.profile)} · ${yn(O.created_at)}`},O.id))})]})})]})]})]}),x?u.jsxs(U_,{defaultValue:"overview",children:[u.jsxs(pm,{children:[u.jsx(Fi,{value:"overview",children:"Overview"}),u.jsx(Fi,{value:"findings",children:"Findings"}),u.jsx(Fi,{value:"summary",children:"Executive summary"})]}),u.jsxs(Bi,{value:"overview",className:"space-y-4",children:[u.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[u.jsx(Nr,{label:"Overall score",value:u.jsx("span",{className:Ki(x.overall_score),children:si(x.overall_score)}),icon:nh}),u.jsx(Nr,{label:"Critical",value:be(x.critical_count),tone:"critical",icon:L1}),u.jsx(Nr,{label:"High",value:be(x.high_count),tone:"high",icon:zi}),u.jsx(Nr,{label:"Total findings",value:be(x.total_findings),icon:dg})]}),x.error?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Scan error"}),u.jsx(zt,{children:x.error})]}):null,u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Scan facts"}),u.jsx(Ue,{children:"Every value comes from the stored scan record."})]}),u.jsxs(Ae,{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[u.jsx(Br,{label:"Scan",children:u.jsxs(Ge,{to:`/scans/${x.id}`,className:"text-primary hover:underline",children:["#",x.id]})}),u.jsx(Br,{label:"Status",children:u.jsx(el,{status:x.status})}),u.jsx(Br,{label:"Profile",children:qe(x.profile)}),u.jsx(Br,{label:"Created",children:yn(x.created_at)}),u.jsx(Br,{label:"Started",children:yn(x.started_at)}),u.jsx(Br,{label:"Completed",children:yn(x.completed_at)}),u.jsx(Br,{label:"Duration",children:Zu(x.duration_ms)}),u.jsx(Br,{label:"Gate",children:u.jsx(za,{gate:x.gate})}),u.jsx(Br,{label:"AI review status",children:x.ai_review_status??"—"}),u.jsx(Br,{label:"Test status",children:x.test_status??"—"}),u.jsx(Br,{label:"Tests executed",children:be(x.tests_executed)}),u.jsx(Br,{label:"Tests passed",children:be(x.tests_passed)}),u.jsx(Br,{label:"Tests failed",children:be(x.tests_failed)}),u.jsx(Br,{label:"Tests skipped",children:be(x.tests_skipped)})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Coverage gaps"}),u.jsx(Ue,{children:"Checks that could not be completed for this scan."})]}),u.jsx(Ae,{children:x.coverage_gaps.length?u.jsx("div",{className:"flex flex-wrap gap-1.5",children:x.coverage_gaps.map(O=>u.jsx(Xt,{variant:"muted",children:O},O))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No coverage gaps reported."})})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Scan options"}),u.jsx(Ue,{children:"The options this scan was started with."})]}),u.jsx(Ae,{children:Object.keys(x.options).length?u.jsx("dl",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:Object.entries(x.options).map(([O,A])=>u.jsxs("div",{className:"space-y-0.5",children:[u.jsx("dt",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:qe(O)}),u.jsx("dd",{className:"text-sm",children:yse(A)})]},O))}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"No options were recorded."})})]})]}),u.jsx(Bi,{value:"findings",className:"space-y-4",children:u.jsx(Et,{loading:b.loading,error:b.error,onRetry:()=>void b.reload(),loadingRows:3,children:w.length?u.jsx("div",{className:"space-y-4",children:w.map(O=>u.jsxs(Ce,{children:[u.jsxs(Be,{className:"flex-row items-center justify-between pb-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Xi,{severity:O.severity}),u.jsx(ze,{children:qe(O.severity)})]}),u.jsx("span",{className:"text-sm text-muted-foreground",children:be(O.items.length)})]}),u.jsx(Ae,{className:"px-0 pb-0",children:u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Rule"}),u.jsx(Te,{children:"File"}),u.jsx(Te,{children:"Message"})]})}),u.jsx(pi,{children:O.items.map(A=>u.jsxs(At,{children:[u.jsx(Pe,{className:"font-medium",children:A.rule}),u.jsxs(Pe,{className:"font-mono text-xs",children:[A.file,u.jsxs("span",{className:"text-muted-foreground",children:[":",A.line]})]}),u.jsx(Pe,{className:"max-w-[420px] text-sm text-muted-foreground",children:A.message??"—"})]},A.id))})]})})]},O.severity))}):u.jsx($t,{icon:zi,title:"No findings recorded",description:"This scan recorded no findings."})})}),u.jsx(Bi,{value:"summary",className:"space-y-4",children:u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Executive summary"}),u.jsx(Ue,{children:"Generated from this scan's persisted results. The report works fully without AI."})]}),u.jsxs(Ae,{className:"space-y-4",children:[u.jsxs(me,{onClick:()=>void y(),disabled:c,children:[u.jsx(Hu,{}),c?"Generating…":"Generate executive summary"]}),d?u.jsxs(Qt,{variant:"warning",children:[u.jsx(mr,{children:"AI request failed"}),u.jsx(zt,{children:d})]}):null,o&&(!o.configured||o.error)?u.jsxs(Qt,{variant:"warning",children:[u.jsx(mr,{children:"AI is not configured"}),u.jsx(zt,{children:o.error?o.error:"No AI provider is configured, so no summary was generated. Configure one in Settings to enable executive summaries."})]}):null,o&&o.configured&&!o.error?u.jsxs("div",{className:"space-y-3",children:[o.text.trim()?u.jsx(hh,{text:o.text}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"The provider returned an empty summary."}),o.provider||o.model?u.jsxs("p",{className:"text-xs text-muted-foreground",children:[o.provider?`Provider: ${o.provider}`:"",o.provider&&o.model?" · ":"",o.model?`Model: ${o.model}`:""]}):null]}):null]})]})})]}):u.jsx($t,{icon:dg,title:"No scan selected",description:t===null?"Select a repository to list its scans.":"This repository has no scans yet. A scan is required to build a report.",action:u.jsx(me,{asChild:!0,size:"sm",variant:"outline",children:u.jsx(Ge,{to:"/scans/new",children:"Run a scan"})})})]}):u.jsx($t,{icon:dg,title:"No repositories to report on",description:"Register a repository and run a scan first. Reports are built strictly from persisted scan results.",action:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/repositories",children:"Add a repository"})})})]})}function Br({label:e,children:t}){return u.jsxs("div",{className:"space-y-0.5",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("div",{className:"text-sm",children:t})]})}function M0(e){return e instanceof _t?e.message:"The request failed."}function bse(){const{repositories:e,loading:t,error:r,reload:n}=Rr(),{toast:i}=ro(),[o,s]=S.useState(!1),[c,f]=S.useState(""),[d,m]=S.useState(""),[p,v]=S.useState("local"),[x,b]=S.useState(!1),[w,y]=S.useState(null),[P,O]=S.useState(null),[A,C]=S.useState(!1),[_,E]=S.useState(null);function N(){s(!1),f(""),m(""),v("local"),y(null)}async function R(I){I.preventDefault(),b(!0),y(null);try{await De.repositories.create({name:c.trim()?c.trim():void 0,source:d.trim(),source_type:p}),i({title:"Repository added",variant:"success"}),N(),await n()}catch($){y(M0($))}finally{b(!1)}}async function M(I){E(I.id);try{await De.repositories.refresh(I.id),i({title:"Metadata refreshed",description:I.name,variant:"success"}),await n()}catch($){i({title:"Refresh failed",description:M0($),variant:"error"})}finally{E(null)}}async function F(){if(P){C(!0);try{await De.repositories.remove(P.id),i({title:"Repository deleted",description:P.name,variant:"success"}),O(null),await n()}catch(I){i({title:"Delete failed",description:M0(I),variant:"error"})}finally{C(!1)}}}return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Repositories",description:"Register the codebases the engine is allowed to analyse.",actions:u.jsxs(me,{size:"sm",onClick:()=>s(!0),children:[u.jsx(U0,{}),"Add repository"]})}),u.jsx(Et,{loading:t,error:r,onRetry:()=>void n(),loadingRows:4,children:e.length?u.jsx(Ce,{children:u.jsx(Ae,{className:"px-0 pb-0",children:u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Repository"}),u.jsx(Te,{children:"Type"}),u.jsx(Te,{children:"Language"}),u.jsx(Te,{children:"Frameworks"}),u.jsx(Te,{children:"Latest scan"}),u.jsx(Te,{children:"Last scan"}),u.jsx(Te,{className:"text-right",children:"Actions"})]})}),u.jsx(pi,{children:e.map(I=>{var $,L;return u.jsxs(At,{children:[u.jsxs(Pe,{className:"max-w-[240px]",children:[u.jsx(Ge,{to:`/repositories/${I.id}`,className:"font-medium hover:text-primary",children:I.name}),u.jsx("p",{className:"truncate text-xs text-muted-foreground",title:I.source,children:I.source})]}),u.jsx(Pe,{children:u.jsx(Xt,{variant:"muted",children:qe(I.source_type)})}),u.jsxs(Pe,{children:[u.jsx("p",{className:"text-sm",children:I.main_language??"—"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:I.package_manager??"—"})]}),u.jsx(Pe,{children:u.jsx(wse,{values:I.frameworks})}),u.jsx(Pe,{children:I.latest_scan?u.jsxs("div",{className:"flex flex-col gap-1.5",children:[u.jsx("span",{className:fe("font-semibold tabular-nums",Ki(I.latest_scan.overall_score)),children:si(I.latest_scan.overall_score)}),u.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[u.jsx(za,{gate:I.latest_scan.gate}),u.jsx(el,{status:I.latest_scan.status})]})]}):u.jsx("span",{className:"text-sm text-muted-foreground",children:"No scans yet"})}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:Qn((($=I.latest_scan)==null?void 0:$.completed_at)??((L=I.latest_scan)==null?void 0:L.created_at))}),u.jsx(Pe,{children:u.jsxs("div",{className:"flex items-center justify-end gap-1",children:[u.jsx(me,{asChild:!0,variant:"ghost",size:"sm",children:u.jsx(Ge,{to:`/repositories/${I.id}`,children:"Open"})}),u.jsxs(me,{variant:"ghost",size:"sm",disabled:_===I.id,onClick:()=>void M(I),children:[u.jsx(Al,{className:_===I.id?"animate-spin":void 0}),"Refresh"]}),u.jsxs(me,{variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>O(I),children:[u.jsx(ru,{}),"Delete"]})]})})]},I.id)})})]})})}):u.jsx($t,{icon:$1,title:"No repositories registered",description:"Add a local path or a GitHub URL to start running scans.",action:u.jsxs(me,{size:"sm",onClick:()=>s(!0),children:[u.jsx(U0,{}),"Add repository"]})})}),u.jsx(Hi,{open:o,onOpenChange:I=>I?s(!0):N(),children:u.jsx(ai,{children:u.jsxs("form",{className:"space-y-4",onSubmit:R,children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Add repository"}),u.jsx(Gi,{children:"The backend only accepts local paths inside its configured allowed roots."})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:"repository-name",children:"Name (optional)"}),u.jsx(xn,{id:"repository-name",value:c,onChange:I=>f(I.target.value),placeholder:"Defaults to the folder name"})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:"repository-source",children:"Source"}),u.jsx(xn,{id:"repository-source",value:d,onChange:I=>m(I.target.value),placeholder:p==="github"?"https://github.com/org/repo":"/absolute/path/to/repo",required:!0})]}),u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:"repository-source-type",children:"Source type"}),u.jsxs(_n,{value:p,onValueChange:I=>v(I),children:[u.jsx(Zr,{id:"repository-source-type",children:u.jsx(jn,{})}),u.jsxs(Jr,{children:[u.jsx(Pr,{value:"local",children:"Local path"}),u.jsx(Pr,{value:"github",children:"GitHub URL"})]})]})]}),w?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Could not add the repository"}),u.jsx(zt,{children:w})]}):null,u.jsxs(Wo,{children:[u.jsx(me,{type:"button",variant:"outline",onClick:N,children:"Cancel"}),u.jsx(me,{type:"submit",disabled:x||!d.trim(),children:"Add repository"})]})]})})}),u.jsx(Hi,{open:P!==null,onOpenChange:I=>{I||O(null)},children:u.jsxs(ai,{children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Delete repository"}),u.jsxs(Gi,{children:["This removes ",P==null?void 0:P.name," and its scan history from the dashboard. This cannot be undone."]})]}),u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>O(null),disabled:A,children:"Cancel"}),u.jsxs(me,{variant:"destructive",onClick:()=>void F(),disabled:A,children:[u.jsx(ru,{}),"Delete"]})]})]})})]})}function wse({values:e}){return e.length?u.jsx("div",{className:"flex flex-wrap gap-1",children:e.map(t=>u.jsx(Xt,{variant:"muted",className:"text-[11px]",children:t},t))}):u.jsx("span",{className:"text-sm text-muted-foreground",children:"—"})}function FR(e){return e instanceof _t?e.message:"The request failed."}function Sse(){var C;const e=R1(),t=Ko(),{toast:r}=ro(),{reload:n}=Rr(),i=Number.parseInt(e.repositoryId??"",10),o=Number.isFinite(i),[s,c]=S.useState(!1),[f,d]=S.useState(!1),[m,p]=S.useState(!1),v=wt(()=>De.repositories.get(i),[i],{enabled:o}),x=wt(()=>De.repositories.scans(i,{limit:20}),[i],{enabled:o});if(!o)return u.jsx($t,{icon:sz,title:"Repository not found",description:"The repository id in the URL is not a number.",action:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/repositories",children:"Back to repositories"})})});const b=v.data,w=(b==null?void 0:b.latest_scan)??null,y=((C=x.data)==null?void 0:C.items)??[],P=w?y.find(_=>_.id===w.id)??null:null;async function O(){d(!0);try{await De.repositories.refresh(i),r({title:"Metadata refreshed",variant:"success"}),await v.reload(!0)}catch(_){r({title:"Refresh failed",description:FR(_),variant:"error"})}finally{d(!1)}}async function A(){p(!0);try{await De.repositories.remove(i),r({title:"Repository deleted",variant:"success"}),await n(),t("/repositories")}catch(_){r({title:"Delete failed",description:FR(_),variant:"error"}),p(!1)}}return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:(b==null?void 0:b.name)??`Repository #${i}`,description:b?`${b.source} · ${qe(b.source_type)}`:"Repository details.",actions:u.jsxs(u.Fragment,{children:[u.jsx(me,{asChild:!0,size:"sm",children:u.jsxs(Ge,{to:"/scans/new",children:[u.jsx(Zs,{}),"New scan"]})}),u.jsxs(me,{variant:"outline",size:"sm",onClick:()=>void O(),disabled:f||!b,children:[u.jsx(Al,{className:f?"animate-spin":void 0}),"Refresh metadata"]}),u.jsxs(me,{variant:"outline",size:"sm",className:"text-destructive hover:text-destructive",onClick:()=>c(!0),disabled:!b,children:[u.jsx(ru,{}),"Delete"]})]})}),u.jsx(Et,{loading:v.loading,error:v.error,onRetry:()=>void v.reload(),loadingRows:3,children:b?u.jsxs(u.Fragment,{children:[u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Metadata"}),u.jsx(Ue,{children:"Detected from the repository by static analysis."})]}),u.jsxs(Ae,{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[u.jsx(Mt,{label:"Main language",children:b.main_language??"—"}),u.jsx(Mt,{label:"Package manager",children:b.package_manager??"—"}),u.jsx(Mt,{label:"Default branch",children:b.default_branch??"—"}),u.jsx(Mt,{label:"Last commit",children:b.last_commit_sha?b.last_commit_sha.slice(0,7):"—"}),u.jsx(Mt,{label:"Source type",children:u.jsx(Xt,{variant:"muted",children:qe(b.source_type)})}),u.jsx(Mt,{label:"Source",children:b.source}),u.jsx(Mt,{label:"Frameworks",children:u.jsx(Vd,{values:b.frameworks})}),u.jsx(Mt,{label:"Databases",children:u.jsx(Vd,{values:b.database_tech})}),u.jsx(Mt,{label:"Auth",children:u.jsx(Vd,{values:b.auth_tech})}),u.jsx(Mt,{label:"Deployment",children:u.jsx(Vd,{values:b.deployment})}),u.jsx(Mt,{label:"Created",children:yn(b.created_at)}),u.jsx(Mt,{label:"Updated",children:yn(b.updated_at)})]})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Latest scan"}),u.jsx(Ue,{children:"The most recent scan recorded for this repository."})]}),u.jsx(Ae,{children:w?u.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:[u.jsx(Mt,{label:"Score",children:u.jsx("span",{className:fe("text-lg font-semibold tabular-nums",Ki(w.overall_score)),children:si(w.overall_score)})}),u.jsx(Mt,{label:"Gate",children:u.jsx(za,{gate:w.gate})}),u.jsx(Mt,{label:"Status",children:u.jsx(el,{status:w.status})}),u.jsx(Mt,{label:"Critical",children:be(w.critical_count)}),u.jsx(Mt,{label:"High",children:be(w.high_count)}),u.jsx(Mt,{label:"Tests",children:P&&P.tests_executed!==null?`${be(P.tests_passed)} / ${be(P.tests_executed)} passed`:w.test_status??"—"}),u.jsx(Mt,{label:"Duration",children:Zu((P==null?void 0:P.duration_ms)??null)}),u.jsx(Mt,{label:"Completed",children:yn(w.completed_at)}),u.jsx(Mt,{label:"Scan",children:u.jsxs(Ge,{to:`/scans/${w.id}`,className:"text-primary hover:underline",children:["Open scan #",w.id]})})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:"This repository has not been scanned yet."})})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"flex-row items-center justify-between pb-2",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(ze,{children:"Scan history"}),u.jsx(Ue,{children:"The 20 most recent scans for this repository."})]}),u.jsx(Ge,{to:"/findings",className:"text-sm text-primary hover:underline",children:"View findings"})]}),u.jsxs(Ae,{className:"px-0 pb-0",children:[u.jsx("div",{className:"px-5 pb-3",children:u.jsx("p",{className:"text-xs text-muted-foreground",children:"The findings page is filtered by the repository selected in the top bar."})}),u.jsx(Et,{loading:x.loading,error:x.error,onRetry:()=>void x.reload(),loadingRows:3,children:u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Scan"}),u.jsx(Te,{children:"Status"}),u.jsx(Te,{children:"Profile"}),u.jsx(Te,{children:"Score"}),u.jsx(Te,{children:"Gate"}),u.jsx(Te,{children:"Findings"}),u.jsx(Te,{children:"Started"}),u.jsx(Te,{children:"Completed"})]})}),u.jsxs(pi,{children:[y.map(_=>u.jsxs(At,{children:[u.jsx(Pe,{children:u.jsxs(Ge,{to:`/scans/${_.id}`,className:"font-medium hover:text-primary",children:["#",_.id]})}),u.jsx(Pe,{children:u.jsx(el,{status:_.status})}),u.jsx(Pe,{children:qe(_.profile)}),u.jsx(Pe,{className:fe("font-semibold tabular-nums",Ki(_.overall_score)),children:si(_.overall_score)}),u.jsx(Pe,{children:u.jsx(za,{gate:_.gate})}),u.jsx(Pe,{className:"tabular-nums",children:be(_.total_findings)}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:yn(_.started_at)}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:yn(_.completed_at)})]},_.id)),y.length?null:u.jsx(At,{children:u.jsx(Pe,{colSpan:8,className:"py-8 text-center text-sm text-muted-foreground",children:"No scans recorded yet."})})]})]})})]})]})]}):null}),u.jsx(Hi,{open:s,onOpenChange:c,children:u.jsxs(ai,{children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:"Delete repository"}),u.jsxs(Gi,{children:["This removes ",(b==null?void 0:b.name)??`repository #${i}`," and its scan history from the dashboard. This cannot be undone."]})]}),u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>c(!1),disabled:m,children:"Cancel"}),u.jsxs(me,{variant:"destructive",onClick:()=>void A(),disabled:m,children:[u.jsx(ru,{}),"Delete"]})]})]})})]})}function Mt({label:e,children:t}){return u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-xs font-medium uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("div",{className:"text-sm",children:t})]})}function Vd({values:e}){return e.length?u.jsx("div",{className:"flex flex-wrap gap-1.5",children:e.map(t=>u.jsx(Xt,{variant:"muted",children:t},t))}):u.jsx("span",{className:"text-sm text-muted-foreground",children:"—"})}const BR=[{key:"preparation",label:"Preparation",stages:["preparation"],description:"Clone or load the repository snapshot."},{key:"analysis",label:"Analysis",stages:["scanner","technology"],description:"Run every configured scanner and detect the tech stack."},{key:"ai",label:"AI review",stages:["ai"],description:"Optional AI review of findings."},{key:"tests",label:"Tests",stages:["tests"],description:"Run the test suite in the isolated sandbox."},{key:"gate",label:"Release gate",stages:["gate"],description:"Compute the deterministic release verdict."},{key:"report",label:"Report",stages:["report"],description:"Persist results and write reports."}];function _se(e,t,r){const n=e.filter(o=>t.includes(o.stage)),i=new Set(n.map(o=>o.status));return i.has("failed")?"failed":i.has("completed")?"completed":i.has("running")?"running":i.has("skipped")?"skipped":r?"completed":"pending"}function jse(e,t,r){var o;const n=e.filter(s=>t.includes(s.stage));if(!n.length)return null;const i=[...n].sort((s,c)=>c.id-s.id);if(r==="running"){const s=i.find(c=>c.status==="running");return(s==null?void 0:s.message)??null}return((o=i[0])==null?void 0:o.message)??null}function Pse(e){return BR.map((t,r)=>{const n=BR.slice(r+1).flatMap(s=>s.stages),i=e.some(s=>n.includes(s.stage)),o=_se(e,t.stages,i);return{key:t.key,label:t.label,description:t.description,status:o,message:jse(e,t.stages,o)}})}function Ose({status:e}){const t="flex h-7 w-7 shrink-0 items-center justify-center rounded-full border transition-colors";return e==="completed"?u.jsx("span",{className:fe(t,"border-gate-pass bg-gate-pass text-white"),children:u.jsx(M1,{className:"h-4 w-4"})}):e==="running"?u.jsx("span",{className:fe(t,"border-primary bg-primary text-primary-foreground"),children:u.jsx(D1,{className:"h-4 w-4 animate-spin"})}):e==="failed"?u.jsx("span",{className:fe(t,"border-gate-fail bg-gate-fail text-white"),children:u.jsx(B1,{className:"h-4 w-4"})}):e==="skipped"?u.jsx("span",{className:fe(t,"border-muted-foreground/30 text-muted-foreground"),children:u.jsx(nz,{className:"h-4 w-4"})}):u.jsx("span",{className:fe(t,"border-muted-foreground/30 text-muted-foreground/60"),children:u.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current"})})}function Cse({active:e}){return u.jsx("div",{className:"hidden h-px flex-1 self-center bg-muted-foreground/20 sm:block",children:u.jsx("div",{className:fe("h-full bg-primary transition-[width] duration-500",e?"w-full":"w-0")})})}function Ase({events:e}){const t=S.useMemo(()=>Pse(e),[e]),r=t.findIndex(n=>n.status==="running");return u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"flex flex-wrap items-stretch gap-3 sm:flex-nowrap sm:gap-2",children:t.map((n,i)=>{const o=n.status==="running",s=i<t.length-1;return u.jsxs("div",{className:"flex min-w-[160px] flex-1 items-start gap-2",children:[u.jsxs("div",{className:fe("flex w-full items-start gap-2 rounded-md border p-2 transition-colors",o?"border-primary/60 bg-primary/5":"border-transparent"),children:[u.jsx(Ose,{status:n.status}),u.jsxs("div",{className:"min-w-0 space-y-0.5",children:[u.jsx("p",{className:fe("text-xs font-semibold",n.status==="pending"&&"text-muted-foreground"),children:n.label}),n.message?u.jsx("p",{className:"truncate text-[11px] text-muted-foreground",title:n.message,children:n.message}):u.jsx("p",{className:"text-[11px] text-muted-foreground/70",children:n.description})]})]}),s?u.jsx(Cse,{active:n.status==="completed"||n.status==="skipped"}):null]},n.key)})}),r>=0?u.jsxs("p",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[u.jsx(D1,{className:"h-3 w-3 animate-spin text-primary"}),"Currently in ",u.jsx("span",{className:"font-medium text-foreground",children:t[r].label}),t[r].message?` — ${t[r].message}`:""]}):null]})}function Ese(){var P,O,A;const e=R1(),t=Ko(),{toast:r}=ro(),n=Number.parseInt(e.scanId??"",10),i=!Number.isFinite(n),o=wt(()=>De.scans.get(n),[n],{enabled:!i}),s=wt(()=>De.scans.events(n,0),[n],{enabled:!i}),c=wt(()=>De.findings.list({scan_id:n,limit:100}),[n],{enabled:!i}),[f,d]=S.useState([]),[m,p]=S.useState(!1),[v,x]=S.useState(!1);if(S.useEffect(()=>{const C=s.data;C&&d(_=>{const E=new Map;for(const N of C)E.set(N.id,N);for(const N of _)E.set(N.id,N);return[...E.values()].sort((N,R)=>N.id-R.id)})},[s.data]),S.useEffect(()=>i?void 0:z6(n,{onEvent:_=>d(E=>E.some(N=>N.id===_.id)?E:[...E,_].sort((N,R)=>N.id-R.id)),onEnd:()=>void o.reload(!0)}),[i,n,o.reload]),S.useEffect(()=>{var _;if(i)return;const C=(_=o.data)==null?void 0:_.status;C&&C!=="queued"&&C!=="running"&&o.reload(!0)},[i,n,(P=o.data)==null?void 0:P.status,o.reload]),i)return u.jsx($t,{icon:oM,title:"That scan does not exist",description:"The scan id in the address is not a number.",action:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/scans",children:"Back to scans"})})});const b=o.data;async function w(){p(!0);try{await De.scans.cancel(n),r({title:"Scan cancelled",description:`Scan #${n} was cancelled.`,variant:"success"}),await o.reload(!0)}catch(C){const _=C instanceof _t?C.message:"The scan could not be cancelled.";r({title:"Cancellation failed",description:_,variant:"error"})}finally{p(!1)}}async function y(){if(b){x(!0);try{const C=await kse(n),_=Rse(b,C.items,C.complete),E=new Blob([_],{type:"text/markdown;charset=utf-8"}),N=window.URL.createObjectURL(E),R=document.createElement("a");R.href=N,R.download=`${Mse(b.repository_name??"repository")}-scan-${n}-recommendations.md`,document.body.append(R),R.click(),R.remove(),window.setTimeout(()=>window.URL.revokeObjectURL(N),1e3),r({title:"Recommendations downloaded",description:`Created a Markdown report for scan #${n}.`,variant:"success"})}catch(C){const _=C instanceof _t?C.message:"The recommendations report could not be created.";r({title:"Report download failed",description:_,variant:"error"})}finally{x(!1)}}}return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:`Scan #${n}`,description:b?`${b.repository_name??"Unknown repository"} · profile ${b.profile}`:"Loading scan...",actions:u.jsxs(u.Fragment,{children:[u.jsxs(me,{variant:"outline",size:"sm",disabled:!b||v||b.status==="queued"||b.status==="running",onClick:()=>void y(),children:[u.jsx(VB,{}),v?"Preparing report...":(b==null?void 0:b.status)==="queued"||(b==null?void 0:b.status)==="running"?"Available after scan":"Download recommendations"]}),u.jsxs(me,{variant:"outline",size:"sm",onClick:()=>t("/scans/new"),children:[u.jsx(oz,{}),"Run again"]}),(b==null?void 0:b.status)==="queued"?u.jsxs(me,{variant:"destructive",size:"sm",disabled:m,onClick:()=>void w(),children:[u.jsx(iM,{}),m?"Cancelling...":"Cancel scan"]}):null]})}),u.jsx(Et,{loading:o.loading,error:o.error,onRetry:()=>void o.reload(),loadingRows:3,children:b?u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[u.jsx(el,{status:b.status}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["Created ",Qn(b.created_at)]}),b.started_at?u.jsxs("span",{className:"text-xs text-muted-foreground",children:["Started ",Qn(b.started_at)]}):null,b.completed_at?u.jsxs("span",{className:"text-xs text-muted-foreground",children:["Completed ",Qn(b.completed_at)]}):null,b.commit_sha?u.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:b.commit_sha.slice(0,10)}):null]}),b.error?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Scan error"}),u.jsx(zt,{children:b.error})]}):null,u.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 xl:grid-cols-4",children:[u.jsx(Nr,{label:"Score",value:u.jsx("span",{className:Ki(b.overall_score),children:si(b.overall_score)}),icon:nh}),u.jsx(Nr,{label:"Critical",value:be(b.critical_count),tone:"critical",icon:L1}),u.jsx(Nr,{label:"High",value:be(b.high_count),tone:"high",icon:zi}),u.jsx(Nr,{label:"Total findings",value:be(b.total_findings),icon:QB})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Result"}),u.jsx(Ue,{children:"Verdict, tests and AI review for this scan."})]}),u.jsxs(Ae,{className:"grid gap-4 text-sm sm:grid-cols-2 lg:grid-cols-4",children:[u.jsx(Ao,{label:"Gate",value:u.jsx(za,{gate:b.gate})}),u.jsx(Ao,{label:"Duration",value:Zu(b.duration_ms)}),u.jsx(Ao,{label:"Test status",value:b.test_status?qe(b.test_status):"—"}),u.jsx(Ao,{label:"AI review",value:b.ai_review_status?qe(b.ai_review_status):"Not requested"}),u.jsx(Ao,{label:"Tests executed",value:be(b.tests_executed)}),u.jsx(Ao,{label:"Tests passed",value:be(b.tests_passed)}),u.jsx(Ao,{label:"Tests failed",value:be(b.tests_failed)}),u.jsx(Ao,{label:"Tests skipped",value:be(b.tests_skipped)})]})]}),b.coverage_gaps.length?u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Coverage gaps"}),u.jsx(Ue,{children:"What the engine could not analyse."})]}),u.jsx(Ae,{children:u.jsx("ul",{className:"list-disc space-y-1 pl-5 text-sm text-muted-foreground",children:b.coverage_gaps.map((C,_)=>u.jsx("li",{children:C},_))})})]}):null,u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Scan progress"}),u.jsx(Ue,{children:"The phases the engine works through, in order."})]}),u.jsx(Ae,{children:u.jsx(Ase,{events:f})})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Event timeline"}),u.jsx(Ue,{children:"Events emitted by the scan engine."})]}),u.jsx(Ae,{children:f.length?u.jsx("ol",{className:"space-y-3",children:f.map(C=>u.jsxs("li",{className:"flex gap-3",children:[u.jsx("span",{className:"mt-1.5 h-2 w-2 shrink-0 rounded-full bg-primary"}),u.jsxs("div",{className:"min-w-0 flex-1 space-y-0.5",children:[u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx("span",{className:"text-sm font-medium",children:qe(C.stage)}),C.status?u.jsx(Xt,{variant:"muted",children:qe(C.status)}):null,u.jsx("span",{className:"text-[11px] text-muted-foreground",children:Qn(C.ts)})]}),C.message?u.jsx("p",{className:"text-sm text-muted-foreground",children:C.message}):null]})]},C.id))}):u.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:"The engine has not emitted any events for this scan yet."})})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Findings"}),u.jsx(Ue,{children:c.data?`${be(c.data.total)} recorded`:"Loading findings..."})]}),u.jsx(Ae,{className:"px-0 pb-0",children:u.jsx(Et,{loading:c.loading,error:c.error,onRetry:()=>void c.reload(),loadingRows:2,children:(((O=c.data)==null?void 0:O.items)??[]).length?u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Severity"}),u.jsx(Te,{children:"Rule"}),u.jsx(Te,{children:"Location"}),u.jsx(Te,{children:"Status"}),u.jsx(Te,{})]})}),u.jsx(pi,{children:(((A=c.data)==null?void 0:A.items)??[]).map(C=>u.jsxs(At,{children:[u.jsx(Pe,{children:u.jsx(Xi,{severity:C.severity})}),u.jsx(Pe,{className:"font-medium",children:C.rule}),u.jsxs(Pe,{className:"font-mono text-xs text-muted-foreground",children:[C.file,":",C.line]}),u.jsx(Pe,{children:u.jsx(ph,{status:C.status})}),u.jsx(Pe,{children:u.jsx(me,{asChild:!0,variant:"ghost",size:"sm",children:u.jsx(Ge,{to:`/findings/${C.id}`,children:"Open"})})})]},C.id))})]}):u.jsx("p",{className:"px-5 py-8 text-center text-sm text-muted-foreground",children:"No findings were recorded for this scan."})})})]})]}):null})]})}const Tse=["critical","high","medium","low","info"],Nse=["Authentication, authorization, and access-control boundaries","Input validation, output encoding, and injection resistance","Secrets handling, privacy, and sensitive-data exposure","Dependency provenance, known vulnerabilities, and supply-chain controls","API contracts, data integrity, and database transaction behavior","Error handling, logging, monitoring, and recovery behavior","Performance, scalability, and resource-exhaustion behavior","Accessibility, keyboard navigation, and assistive-technology support","Deployment configuration, TLS, backups, and operational readiness","Test quality, edge cases, and regression coverage beyond this scan","Architecture boundaries, maintainability, and technical debt","User and operator documentation, setup, and incident procedures"];async function kse(e){const r=[];let n=0,i=0;do{const o=await De.findings.list({scan_id:e,limit:200,offset:i});if(r.push(...o.items),n=o.total,!o.items.length)break;i+=o.items.length}while(i<n);return{items:r,complete:r.length>=n}}function Rse(e,t,r){const n=t.filter(s=>s.status!=="resolved"&&s.status!=="dismissed"),i=t.length-n.length,o=[`# Post-scan recommendations: ${e.repository_name??"Unknown repository"}`,"",`Generated: ${new Date().toISOString()}`,"","> This report is based on persisted results for this scan. Recommendations are not a substitute for reviewing the evidence and validating each change.","","## Scan summary","",`- Scan: #${e.id}`,`- Repository: ${e.repository_name??"Unknown"}`,`- Source: ${e.repository_source??"Not recorded"}`,`- Status: ${qe(e.status)}`,`- Profile: ${e.profile}`,`- Commit: ${e.commit_sha??"Not recorded"}`,`- Score: ${e.overall_score===null?"Not available":`${e.overall_score.toFixed(1)} / 100`}`,`- Gate: ${e.gate??"Not recorded"}`,`- Findings: ${t.length}${r?"":` of ${e.total_findings??"unknown"} loaded`}`,`- Findings marked for action: ${n.length}`,`- Critical / high: ${e.critical_count??"Not recorded"} / ${e.high_count??"Not recorded"}`,`- Test status: ${e.test_status??"Not recorded"}`,`- Tests executed / passed / failed / skipped: ${e.tests_executed??"Not recorded"} / ${e.tests_passed??"Not recorded"} / ${e.tests_failed??"Not recorded"} / ${e.tests_skipped??"Not recorded"}`,"","## Prioritized recommendations",""];if(o.push(`Resolved or dismissed findings excluded from the action list: ${i}.`,""),!n.length)o.push(r?t.length?"No findings currently marked for action. Confirm resolved or dismissed findings remain valid and rerun the scan after changes.":"No findings were recorded. Review the coverage gaps and manual checklist below; absence of findings does not prove the repository is defect-free.":"No actionable findings were loaded, but the finding list is incomplete. Inspect the remaining results in the dashboard.","");else for(const s of Tse){const c=n.filter(f=>f.severity===s);if(c.length){o.push(`### ${qe(s)} (${c.length})`,"");for(const f of c)o.push(`- **${f.rule}** (${f.module}; ${f.status})`,` - Location: ${f.file}:${f.line}${f.column?`:${f.column}`:""}`,` - Finding: ${f.message??"No message recorded."}`,` - Scanner suggestion: ${f.suggestion??"No specific suggestion provided. Inspect the finding evidence, confirm it applies, make the smallest safe correction, and add regression coverage."}`,` - Confidence / fixable: ${f.confidence??"Not recorded"} / ${f.fixable?"Yes":"Not marked fixable"}`);o.push("")}}if(r||o.push("> Some findings could not be loaded. Treat the recommendations above as incomplete and open the scan in the dashboard to inspect the remaining results.",""),o.push("## Test and coverage actions",""),e.tests_failed?o.push(`- Fix the ${e.tests_failed} failing test(s), then rerun the affected tests and the scan profile.`,""):e.tests_executed?e.tests_skipped?o.push(`- Review why ${e.tests_skipped} test(s) were skipped and run them in an appropriate environment if possible.`,""):e.test_status?o.push(`- Tests report \`${e.test_status}\`. Preserve the passing checks and add regression tests for any fixes above.`,""):o.push("- Test execution status was not recorded. Verify test coverage independently and add regression checks for fixes.",""):o.push("- No tests are recorded as executed. Run the project test suite and ensure the scan profile is configured to execute tests where supported.",""),e.coverage_gaps.length){o.push("Coverage gaps reported by the scanner:","");for(const s of e.coverage_gaps)o.push(`- ${s}`);o.push("","Resolve or explicitly accept each gap, then rerun the scan so the result reflects the additional coverage.","")}else o.push("The scanner recorded no coverage gaps. This does not establish that every quality or security area was assessed.","");o.push("## Scanner versions and options","","Recorded scanner versions:","","```json",JSON.stringify(e.scanner_versions,null,2),"```","","Recorded scan options:","","```json",JSON.stringify(e.options,null,2),"```",""),o.push("## Broader manual review checklist","","These areas are not established by this scan report. Review them separately; scanner coverage should only be claimed where scan evidence explicitly supports it.","");for(const s of Nse)o.push(`- [ ] **Not assessed by this scan:** ${s}`);return o.push("","## Verification before closing","","- Review each finding's evidence and confirm it is valid before changing code.","- Fix root causes without suppressing scanner rules, weakening tests, or hiding findings.","- Add or update regression tests and run the relevant test suite.","- Rerun the same scan profile against the updated commit and compare fresh findings.","- Verify the gate passes and target a score of 97 or higher; report only what the new scan confirms.",""),o.join(`
|
|
487
|
+
`)}function Mse(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"repository"}function Ise(){const[e]=rM(),t=Number.parseInt(e.get("base")??"",10),r=Number.parseInt(e.get("head")??"",10),n=Number.isFinite(t)&&Number.isFinite(r)&&t!==r,i=wt(()=>De.scans.compare(t,r),[t,r],{enabled:n});if(!n)return u.jsx($t,{icon:Zs,title:"Nothing to compare",description:"Pick two different scans of the same repository on the scans page to compare their findings.",action:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/scans",children:"Back to scans"})})});const o=i.data,s=(o==null?void 0:o.score_delta)??null;return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Scan comparison",description:o?`Scan #${o.base_scan_id} (base) against scan #${o.head_scan_id} (head).`:"Comparing two scans.",actions:u.jsx(me,{asChild:!0,variant:"outline",size:"sm",children:u.jsx(Ge,{to:"/scans",children:"All scans"})})}),u.jsx(Et,{loading:i.loading,error:i.error,onRetry:()=>void i.reload(),loadingRows:2,children:o?u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"grid gap-4 sm:grid-cols-3",children:[u.jsx(Nr,{label:"Base score",value:u.jsx("span",{className:Ki(o.base_score),children:si(o.base_score)})}),u.jsx(Nr,{label:"Head score",value:u.jsx("span",{className:Ki(o.head_score),children:si(o.head_score)})}),u.jsx(Nr,{label:"Score delta",value:s===null?"—":`${s>0?"+":""}${s.toFixed(1)}`,tone:s===null?"default":s>=0?"pass":"fail",hint:s===null?"A score is missing from one of the scans.":s>=0?"The head scan improved.":"The head scan regressed."})]}),u.jsx(zR,{title:"Added findings",description:"Present in the head scan but not the base scan.",items:o.added,emptyText:"No new findings were introduced."}),u.jsx(zR,{title:"Resolved findings",description:"Present in the base scan but no longer reported.",items:o.resolved,emptyText:"No findings were resolved."}),u.jsx(Ce,{children:u.jsxs(Ae,{className:"p-5 text-sm",children:[u.jsx("span",{className:"text-muted-foreground",children:"Unchanged findings: "}),u.jsx("span",{className:"font-medium tabular-nums",children:be(o.unchanged_count)})]})})]}):null})]})}function zR({title:e,description:t,items:r,emptyText:n}){return u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:e}),u.jsx(Ue,{children:t})]}),u.jsx(Ae,{className:r.length?"px-0 pb-0":"",children:r.length?u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{children:"Severity"}),u.jsx(Te,{children:"Rule"}),u.jsx(Te,{children:"Location"}),u.jsx(Te,{children:"Message"})]})}),u.jsx(pi,{children:r.map((i,o)=>u.jsxs(At,{children:[u.jsx(Pe,{children:u.jsx(Xi,{severity:i.severity})}),u.jsx(Pe,{className:"font-medium",children:i.rule}),u.jsxs(Pe,{className:"font-mono text-xs text-muted-foreground",children:[i.file,":",i.line]}),u.jsx(Pe,{className:"text-muted-foreground",children:i.message??"—"})]},`${i.rule}-${i.file}-${i.line}-${o}`))})]}):u.jsx("p",{className:"text-sm text-muted-foreground",children:n})})]})}function Ao({label:e,value:t}){return u.jsxs("div",{children:[u.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("div",{className:"font-medium",children:t})]})}const Uc=25,$se=60,Dse=[{value:"all",label:"All statuses"},{value:"queued",label:"Queued"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}];function Lse(){var X,W;const e=Ko(),{toast:t}=ro(),{repositories:r}=Rr(),[n,i]=S.useState("all"),[o,s]=S.useState("all"),[c,f]=S.useState(0),[d,m]=S.useState([]),[p,v]=S.useState(null),[x,b]=S.useState(""),[w,y]=S.useState(""),[P,O]=S.useState(!1),[A,C]=S.useState(null),_=wt(()=>De.scans.list({repository_id:n==="all"?void 0:Number(n),status:o==="all"?void 0:o,limit:Uc,offset:c}),[n,o,c]),E=_.reload,N=((X=_.data)==null?void 0:X.items)??[],R=((W=_.data)==null?void 0:W.total)??0,M=N.some(q=>q.status==="queued"||q.status==="running");S.useEffect(()=>{if(!M)return;const q=window.setInterval(()=>{E(!0)},3e3);return()=>window.clearInterval(q)},[M,E]),S.useEffect(()=>{m([])},[n,o,c]);const F=d.length===2,I=c===0,$=c+Uc>=R;async function L(q){v(q),b(""),y(""),C(null),O(!0);try{const V=await Fse(q.id);y(Bse(q,V.items,V.total)),b(zse(q,V.items,V.total))}catch(V){C(V instanceof _t?V.message:"The improvement prompt could not be prepared.")}finally{O(!1)}}async function U(){try{await navigator.clipboard.writeText(x),t({title:"Improvement prompt copied",description:"Paste it into your coding assistant, then rerun the same scan profile.",variant:"success"})}catch{t({title:"Could not copy the prompt",description:"Select the prompt text and copy it manually.",variant:"error"})}}function H(q){m(V=>V.some(D=>D.id===q.id)?V.filter(D=>D.id!==q.id):V.length>=2?V:[...V,q])}function B(){if(d.length!==2)return;const[q,V]=d;if(q.repository_id!==V.repository_id){t({title:"Scans must share a repository",description:"A comparison is only possible between two scans of the same repository.",variant:"error"});return}const D=[q,V].sort((Y,ie)=>new Date(Y.created_at).getTime()-new Date(ie.created_at).getTime());e(`/scans/compare?base=${D[0].id}&head=${D[1].id}`)}return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Scans",description:"Every scan the engine has queued, run, or finished.",actions:u.jsxs(u.Fragment,{children:[u.jsx(me,{variant:"outline",size:"sm",disabled:!F,onClick:B,children:"Compare selected"}),u.jsx(me,{asChild:!0,size:"sm",children:u.jsxs(Ge,{to:"/scans/new",children:[u.jsx(Zs,{}),"New scan"]})})]})}),u.jsx(Ce,{children:u.jsxs(Ae,{className:"flex flex-col gap-3 p-5 sm:flex-row sm:items-end",children:[u.jsxs("div",{className:"w-full space-y-2 sm:w-64",children:[u.jsx(Dt,{children:"Repository"}),u.jsxs(_n,{value:n,onValueChange:q=>{i(q),f(0)},children:[u.jsx(Zr,{children:u.jsx(jn,{})}),u.jsxs(Jr,{children:[u.jsx(Pr,{value:"all",children:"All repositories"}),r.map(q=>u.jsx(Pr,{value:String(q.id),children:q.name},q.id))]})]})]}),u.jsxs("div",{className:"w-full space-y-2 sm:w-56",children:[u.jsx(Dt,{children:"Status"}),u.jsxs(_n,{value:o,onValueChange:q=>{s(q),f(0)},children:[u.jsx(Zr,{children:u.jsx(jn,{})}),u.jsx(Jr,{children:Dse.map(q=>u.jsx(Pr,{value:q.value,children:q.label},q.value))})]})]}),u.jsx("p",{className:"text-xs text-muted-foreground sm:pb-2",children:"Select two scans of the same repository to compare them."})]})}),u.jsx(Et,{loading:_.loading,error:_.error,onRetry:()=>void _.reload(),loadingRows:4,children:N.length===0?u.jsx($t,{icon:Zs,title:"No scans found",description:"No scans match the current filters. Start a scan to populate this list.",action:u.jsx(me,{asChild:!0,size:"sm",variant:"outline",children:u.jsx(Ge,{to:"/scans/new",children:"Start a scan"})})}):u.jsxs("div",{className:"space-y-4",children:[u.jsx(Ce,{children:u.jsx(Ae,{className:"px-0 pb-0",children:u.jsxs(di,{children:[u.jsx(hi,{children:u.jsxs(At,{children:[u.jsx(Te,{className:"w-8"}),u.jsx(Te,{children:"Id"}),u.jsx(Te,{children:"Repository"}),u.jsx(Te,{children:"Status"}),u.jsx(Te,{children:"Profile"}),u.jsx(Te,{children:"Feedback prompt"}),u.jsx(Te,{children:"Gate"}),u.jsx(Te,{children:"Critical / High"}),u.jsx(Te,{children:"Findings"}),u.jsx(Te,{children:"Tests"}),u.jsx(Te,{children:"Duration"}),u.jsx(Te,{children:"Created"}),u.jsx(Te,{children:"Actions"})]})}),u.jsx(pi,{children:N.map(q=>{const V=d.some(D=>D.id===q.id);return u.jsxs(At,{"data-state":V?"selected":void 0,children:[u.jsx(Pe,{children:u.jsx("input",{type:"checkbox",className:"h-4 w-4 rounded border-input",checked:V,onChange:()=>H(q),"aria-label":`Select scan ${q.id}`})}),u.jsx(Pe,{children:u.jsxs(Ge,{to:`/scans/${q.id}`,className:"font-medium tabular-nums hover:text-primary",children:["#",q.id]})}),u.jsx(Pe,{children:q.repository_name??"—"}),u.jsx(Pe,{children:u.jsx(el,{status:q.status})}),u.jsx(Pe,{children:q.profile}),u.jsx(Pe,{children:q.status==="completed"&&q.overall_score!==null?u.jsx(me,{asChild:!0,size:"sm",className:"improve-cta",children:u.jsxs(Ge,{to:qR(q),children:[u.jsx(Hu,{}),q.overall_score>=97?"Maintain 97+":"Improve to 97+",u.jsx(UB,{className:"improve-cta-arrow"})]})}):u.jsx("span",{className:"text-muted-foreground",children:"—"})}),u.jsx(Pe,{children:u.jsx(za,{gate:q.gate})}),u.jsxs(Pe,{className:"tabular-nums",children:[u.jsx("span",{className:"text-severity-critical",children:be(q.critical_count)}),u.jsx("span",{className:"px-1 text-muted-foreground",children:"/"}),u.jsx("span",{className:"text-severity-high",children:be(q.high_count)})]}),u.jsx(Pe,{className:"tabular-nums",children:be(q.total_findings)}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:q.test_status?qe(q.test_status):"—"}),u.jsx(Pe,{className:"tabular-nums",children:Zu(q.duration_ms)}),u.jsx(Pe,{className:"text-xs text-muted-foreground",children:Qn(q.created_at)}),u.jsx(Pe,{children:u.jsxs("div",{className:"flex flex-col items-start gap-1",children:[q.status==="completed"?u.jsxs(me,{size:"sm",variant:"outline",className:"recommendations-cta",onClick:()=>void L(q),children:[u.jsx(mz,{}),"Fix & recommendations"]}):null,u.jsx(me,{asChild:!0,variant:"ghost",size:"sm",children:u.jsx(Ge,{to:`/scans/${q.id}`,children:"Open scan"})})]})})]},q.id)})})]})})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Showing ",c+1,"–",Math.min(c+Uc,R)," of ",be(R)]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx(me,{variant:"outline",size:"sm",disabled:I,onClick:()=>f(Math.max(0,c-Uc)),children:"Previous"}),u.jsx(me,{variant:"outline",size:"sm",disabled:$,onClick:()=>f(c+Uc),children:"Next"})]})]})]})}),u.jsx(Hi,{open:p!==null,onOpenChange:q=>{q||v(null)},children:u.jsxs(ai,{className:"sm:max-w-3xl",children:[u.jsxs(Uo,{children:[u.jsx(Vi,{children:p?`Fix & recommendations · Scan #${p.id}`:"Fix & recommendations"}),u.jsx(Gi,{children:"A scan-grounded executive summary and coding prompt. The 97+ target must be verified by rerunning this scan profile; no prompt can guarantee a score."})]}),P?u.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Preparing a prompt from this scan's findings…"}):null,A?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Could not prepare prompt"}),u.jsx(zt,{children:A})]}):null,!P&&!A&&x?u.jsxs("div",{className:"max-h-[65vh] space-y-4 overflow-y-auto pr-1",children:[u.jsx(Ce,{children:u.jsxs(Ae,{className:"space-y-2 p-4",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Executive summary"}),u.jsx("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-muted-foreground",children:w})]})}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Dt,{htmlFor:"scan-improvement-prompt",children:"97+ improvement prompt"}),u.jsx(bS,{id:"scan-improvement-prompt","aria-label":"Score improvement prompt",className:"min-h-64 resize-y bg-muted/40 font-mono text-xs leading-relaxed",readOnly:!0,value:x})]})]}):null,u.jsxs(Wo,{children:[u.jsx(me,{variant:"outline",onClick:()=>v(null),children:"Close"}),u.jsx(me,{variant:"secondary",disabled:!p,onClick:()=>{p&&(e(qR(p)),v(null))},children:"View findings"}),u.jsxs(me,{onClick:()=>void U(),disabled:P||!!A||!x,children:[u.jsx(aM,{}),"Copy prompt"]})]})]})})]})}async function Fse(e){const t=[];let n=0,i=0;do{const o=await De.findings.list({scan_id:e,limit:200,offset:n});if(t.push(...o.items),i=o.total,!o.items.length)break;n+=o.items.length}while(n<i);return{items:t,total:i}}function qR(e){const t=new URLSearchParams({scan_id:String(e.id)});return(e.critical_count??0)>0?t.set("priority","critical"):(e.high_count??0)>0&&t.set("priority","high"),`/findings?${t.toString()}`}function Bse(e,t,r){var c;const n=Rp(t),i=t.reduce((f,d)=>(f[d.severity]=(f[d.severity]??0)+1,f),{}),o=new Set(t.map(f=>`${f.repository_id}:${f.file}`)).size,s=n.slice(0,5).map(f=>{const d=f.representative;return`- ${d.rule}: ${be(f.occurrences.length)} occurrences across ${be(new Set(f.occurrences.map(m=>`${m.repository_id}:${m.file}`)).size)} files (${qe(d.severity)}).`});return[`Scan #${e.id} of ${e.repository_name??`repository #${e.repository_id}`} scored ${((c=e.overall_score)==null?void 0:c.toFixed(1))??"N/A"}/100 with a ${e.gate??"not reported"} release gate.`,`${be(r)} finding occurrences were consolidated into ${be(n.length)} unique issue patterns across ${be(o)} files.`,`Severity breakdown: ${be(i.critical??0)} critical, ${be(i.high??0)} high, ${be(i.medium??0)} medium, ${be(i.low??0)} low, and ${be(i.info??0)} informational.`,"","Most repeated issue patterns:",...s.length?s:["- No findings were recorded. Review scan coverage and test results before drawing conclusions."],"",`Tests: ${e.test_status?qe(e.test_status):"not reported"}; ${be(e.tests_passed??0)} passed and ${be(e.tests_failed??0)} failed.`,`Coverage gaps: ${e.coverage_gaps.length?e.coverage_gaps.join("; "):"none reported"}.`,"Prioritize verified critical and high findings, make focused fixes, then rerun this same scan profile to validate the score."].join(`
|
|
488
|
+
`)}function zse(e,t,r){var f;const n=(e.overall_score??0)>=97,i=Rp(t),o=i.slice(0,$se),s=Math.max(0,i.length-o.length),c=o.length?o.map(d=>{const m=d.representative,p=new Set(d.occurrences.map(b=>`${b.repository_id}:${b.file}`)).size,v=d.occurrences.slice(0,6).map(b=>`${b.file}:${b.line}`).join(", ");return[`- [${m.severity.toUpperCase()}] ${m.rule} (${m.module}) — ${d.occurrences.length} occurrences across ${p} files.`,` Example locations: ${v}${d.occurrences.length>6?", …":""}`,m.message?` Finding: ${m.message.slice(0,400)}`:"",m.suggestion?` Scanner suggestion: ${m.suggestion.slice(0,400)}`:""].filter(Boolean).join(`
|
|
489
|
+
`)}).join(`
|
|
490
|
+
`):"- No findings were recorded for this scan. Inspect the scan's coverage gaps, test results, and scoring criteria before proposing changes.";return["Act as a careful senior engineer improving this repository based on verified scan evidence.",`Goal: ${n?"maintain a score of at least 97/100":"raise the score to at least 97/100"} on a fresh rerun of the same scan profile.`,"",`Repository: ${e.repository_name??`repository #${e.repository_id}`}`,`Scan: #${e.id}`,`Profile: ${e.profile}`,`Current score: ${((f=e.overall_score)==null?void 0:f.toFixed(1))??"not available"}/100`,`Gate: ${e.gate??"not available"}`,`Findings: ${r} total occurrences in ${i.length} unique issue groups; ${e.critical_count??0} critical and ${e.high_count??0} high`,`Tests: ${e.test_status??"not reported"}; ${e.tests_passed??0} passed, ${e.tests_failed??0} failed`,`Coverage gaps: ${e.coverage_gaps.length?e.coverage_gaps.join("; "):"none reported"}`,"","Grouped scan findings, ordered by severity and repeated impact:",c,s?`
|
|
491
|
+
The prompt includes ${o.length} unique issue groups; ${s} additional groups were omitted. Review the remaining groups before concluding.`:"","","Instructions:","1. Inspect the relevant code and verify each finding before changing anything.","2. Prioritize confirmed critical and high-severity root causes, then address remaining findings and coverage gaps that affect the score.","3. Make the smallest behavior-preserving fixes. Add or update tests where appropriate.","4. Do not game the score by suppressing rules, excluding files, weakening tests, or changing scanner configuration.","5. Run the project's relevant tests, then rerun the same scan profile and report the actual score, gate, and any unresolved findings.","6. Never claim the 97+ target was reached unless a fresh scan reports at least 97. If that target is not safely achievable, explain why and list the remaining work."].filter(Boolean).join(`
|
|
492
|
+
`)}const qse=["The Python engine is the single source of truth; the dashboard only displays what it produced.","The AI never decides the release gate. Verdicts come from deterministic checks.","Proposed patches are never applied without explicit human confirmation.","The test suite only runs with explicit permission, inside a Docker sandbox with no network access.","Secrets are redacted before anything is sent to an AI provider."],Use={environment:"Environment variable",settings:"Saved in settings",none:"None"};function Wse(){return u.jsxs("div",{className:"space-y-6",children:[u.jsx(Or,{title:"Settings",description:"Scan defaults, the optional AI provider and the product's safety guarantees."}),u.jsxs(U_,{defaultValue:"scan",children:[u.jsxs(pm,{children:[u.jsx(Fi,{value:"scan",children:"Scan"}),u.jsx(Fi,{value:"ai",children:"AI provider"}),u.jsx(Fi,{value:"safety",children:"About / safety"})]}),u.jsx(Bi,{value:"scan",children:u.jsx(Hse,{})}),u.jsx(Bi,{value:"ai",children:u.jsx(Vse,{})}),u.jsx(Bi,{value:"safety",children:u.jsx(Gse,{})})]})]})}function Hse(){const{toast:e}=ro(),t=wt(()=>De.system.scanSettings(),[]),r=wt(()=>De.system.profiles(),[]),[n,i]=S.useState(null),[o,s]=S.useState(!1),[c,f]=S.useState(null);S.useEffect(()=>{t.data&&i(t.data)},[t.data]);const d=n??t.data;async function m(){if(d){s(!0),f(null);try{const p=await De.system.updateScanSettings(d);i(p),e({title:"Scan settings saved",variant:"success"})}catch(p){const v=p instanceof _t?p.message:"The scan settings could not be saved.";f(v),e({title:"Could not save scan settings",description:v,variant:"error"})}finally{s(!1)}}}return u.jsx(Et,{loading:t.loading||r.loading,error:t.error??r.error,onRetry:()=>{t.reload(),r.reload()},loadingRows:4,children:d?u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"Default scan settings"}),u.jsx(Ue,{children:"Applied when a scan is created without explicit overrides."})]}),u.jsxs(Ae,{className:"space-y-5",children:[u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:"default-scan-profile",children:"Default scan profile"}),u.jsxs(_n,{value:d.default_scan_profile,onValueChange:p=>i({...d,default_scan_profile:p}),children:[u.jsx(Zr,{id:"default-scan-profile",children:u.jsx(jn,{placeholder:"Choose a profile"})}),u.jsx(Jr,{children:(r.data??[]).map(p=>u.jsx(Pr,{value:p.key,children:p.name},p.key))})]})]}),u.jsx(vp,{id:"allow-test-execution",label:"Allow test execution",description:"Tests run only in an isolated Docker sandbox with no network access. Enabling this lets future scans request test execution; every scan still needs explicit permission.",checked:d.allow_test_execution,onCheckedChange:p=>i({...d,allow_test_execution:p})}),u.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[u.jsx(Fs,{label:"Test image",htmlFor:"test-image",children:u.jsx(xn,{id:"test-image",value:d.test_image,onChange:p=>i({...d,test_image:p.target.value})})}),u.jsx(Sa,{label:"Test timeout (seconds)",htmlFor:"test-timeout",value:d.test_timeout,onChange:p=>i({...d,test_timeout:p})}),u.jsx(Sa,{label:"Max memory (MB)",htmlFor:"max-memory",value:d.max_memory_mb,onChange:p=>i({...d,max_memory_mb:p})}),u.jsx(Sa,{label:"Max CPU seconds",htmlFor:"max-cpu",value:d.max_cpu_seconds,onChange:p=>i({...d,max_cpu_seconds:p})}),u.jsx(Sa,{label:"Max snapshot (MB)",htmlFor:"max-snapshot",value:d.max_snapshot_mb,onChange:p=>i({...d,max_snapshot_mb:p})}),u.jsx(Sa,{label:"Max write (MB)",htmlFor:"max-write",value:d.max_write_mb,onChange:p=>i({...d,max_write_mb:p})})]}),u.jsx(vp,{id:"osv-enabled",label:"Check OSV advisories",description:"When enabled, scans may look up known vulnerabilities for dependencies. This uses the network.",checked:d.osv_enabled,onCheckedChange:p=>i({...d,osv_enabled:p})}),c?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Save failed"}),u.jsx(zt,{children:c})]}):null,u.jsx("div",{className:"flex justify-end",children:u.jsx(me,{onClick:()=>void m(),disabled:o,children:o?"Saving…":"Save scan settings"})})]})]}):null})}function Gd(e){return{enabled:e.enabled,provider:e.provider,base_url:e.base_url,model:e.model,timeout:e.timeout,max_output_tokens:e.max_output_tokens,share_source_context:e.share_source_context,api_key:""}}function Vse(){const{toast:e}=ro(),{reload:t}=Rr(),r=wt(()=>De.system.aiSettings(),[]),[n,i]=S.useState(null),[o,s]=S.useState(!1),[c,f]=S.useState(null),[d,m]=S.useState(!1),[p,v]=S.useState(null),[x,b]=S.useState(null);S.useEffect(()=>{r.data&&i(Gd(r.data))},[r.data]);const w=n??(r.data?Gd(r.data):null);function y(A){i(A),v(null),b(null)}async function P(){if(w){s(!0),f(null);try{const A=await De.system.updateAiSettings(w);i(Gd(A)),r.setData(A),await t(!0),v(null),b(null),e({title:"AI settings saved",variant:"success"})}catch(A){const C=A instanceof _t?A.message:"The AI settings could not be saved.";f(C),e({title:"Could not save AI settings",description:C,variant:"error"})}finally{s(!1)}}}async function O(){if(w){m(!0),b(null),v(null);try{const A=await De.system.updateAiSettings(w);i(Gd(A)),r.setData(A),await t(!0),v(await De.system.testAiConnection())}catch(A){b(A instanceof _t?A.message:"The connection test could not be completed.")}finally{m(!1)}}}return u.jsx(Et,{loading:r.loading,error:r.error,onRetry:()=>void r.reload(),loadingRows:4,children:w&&r.data?u.jsxs("div",{className:"space-y-4",children:[u.jsxs(Qt,{variant:"info",children:[u.jsx(mr,{children:"AI features are optional"}),u.jsx(zt,{children:"The scanner and the release gate work without any AI provider. AI assistance is layered on top of real scan results and never decides the verdict."})]}),u.jsxs(Ce,{children:[u.jsxs(Be,{children:[u.jsx(ze,{children:"AI provider"}),u.jsx(Ue,{children:"Used only for the optional AI features."})]}),u.jsxs(Ae,{className:"space-y-5",children:[u.jsx(vp,{id:"ai-enabled",label:"Enable AI features",description:"Turn AI assistance on or off across the dashboard.",checked:w.enabled,onCheckedChange:A=>y({...w,enabled:A})}),u.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[u.jsx(Fs,{label:"Provider",htmlFor:"ai-provider",children:u.jsx(xn,{id:"ai-provider",value:w.provider,onChange:A=>y({...w,provider:A.target.value})})}),u.jsx(Fs,{label:"Model",htmlFor:"ai-model",children:u.jsx(xn,{id:"ai-model",value:w.model,onChange:A=>y({...w,model:A.target.value})})}),u.jsx(Fs,{label:"Base URL",htmlFor:"ai-base-url",children:u.jsx(xn,{id:"ai-base-url",value:w.base_url,onChange:A=>y({...w,base_url:A.target.value})})}),u.jsx(Sa,{label:"Timeout (seconds)",htmlFor:"ai-timeout",value:w.timeout,onChange:A=>y({...w,timeout:A})}),u.jsx(Sa,{label:"Max output tokens",htmlFor:"ai-max-output",value:w.max_output_tokens,onChange:A=>y({...w,max_output_tokens:A})})]}),u.jsx(vp,{id:"ai-share-context",label:"Share source context",description:"When enabled, the dashboard sends selected source context to the configured provider so it can answer with real code. Leave this off to keep source on the server.",checked:w.share_source_context,onCheckedChange:A=>y({...w,share_source_context:A})}),u.jsxs("div",{className:"space-y-2 rounded-md border bg-muted/30 p-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("p",{className:"text-sm font-medium",children:"API key"}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:[r.data.api_key_configured?"Configured (held in memory only)":"Not configured"," · ","source: ",Use[r.data.source]]})]}),u.jsx(Fs,{label:r.data.api_key_configured?"Replace key (leave empty to keep current)":"Paste your provider API key",htmlFor:"ai-api-key",children:u.jsx(xn,{id:"ai-api-key",type:"password",autoComplete:"off",spellCheck:!1,placeholder:r.data.api_key_configured?"••••••••••••":"sk-...",value:w.api_key??"",onChange:A=>y({...w,api_key:A.target.value,clear_api_key:!1})})}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsx(me,{type:"button",variant:"ghost",size:"sm",disabled:!r.data.api_key_configured,onClick:()=>y({...w,api_key:"",clear_api_key:!0}),children:"Clear stored key"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"The key is sent to the backend over this session and kept in process memory. It is never saved to the database and never shown again."})]})]}),c?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Save failed"}),u.jsx(zt,{children:c})]}):null,u.jsxs("div",{className:"flex flex-wrap justify-end gap-2",children:[u.jsx(me,{variant:"outline",onClick:()=>void O(),disabled:d||o,children:d?"Saving and testing…":"Save & test connection"}),u.jsx(me,{onClick:()=>void P(),disabled:o,children:o?"Saving…":"Save AI settings"})]})]})]}),x?u.jsxs(Qt,{variant:"destructive",children:[u.jsx(mr,{children:"Connection test failed"}),u.jsx(zt,{children:x})]}):null,p?u.jsxs(Ce,{children:[u.jsx(Be,{className:"pb-2",children:u.jsx(ze,{children:"Connection test"})}),u.jsxs(Ae,{className:"space-y-2",children:[u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(Xt,{variant:p.ok?"default":"destructive",children:p.ok?"ok":"not ok"}),u.jsx(Xt,{variant:"muted",children:p.configured?"configured":"not configured"}),p.provider?u.jsx(Xt,{variant:"secondary",children:p.provider}):null,p.model?u.jsx(Xt,{variant:"secondary",children:p.model}):null]}),u.jsx("p",{className:"text-sm text-muted-foreground",children:p.detail})]})]}):null]}):null})}function Gse(){const{health:e,healthError:t,loading:r}=Rr();return u.jsxs("div",{className:"space-y-4",children:[u.jsx(Et,{loading:r,error:t,loadingRows:2,children:e?u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsx(ze,{children:"Backend"}),u.jsx(Ue,{children:"Reported by the running engine."})]}),u.jsxs(Ae,{className:"grid gap-3 p-5 pt-0 sm:grid-cols-2 lg:grid-cols-3",children:[u.jsx(Wc,{label:"Version",value:e.version}),u.jsx(Wc,{label:"Database",value:e.database}),u.jsx(Wc,{label:"Repositories",value:be(e.repositories)}),u.jsx(Wc,{label:"Scans",value:be(e.scans)}),u.jsx(Wc,{label:"AI configured",value:e.ai_configured?"Yes":"No"})]})]}):null}),u.jsxs(Ce,{children:[u.jsxs(Be,{className:"pb-2",children:[u.jsxs(ze,{className:"flex items-center gap-2",children:[u.jsx(F1,{className:"h-4 w-4"}),"Safety guarantees"]}),u.jsx(Ue,{children:"How the product keeps analysis honest and safe."})]}),u.jsx(Ae,{children:u.jsx("ul",{className:"list-disc space-y-1.5 pl-5 text-sm text-muted-foreground",children:qse.map(n=>u.jsx("li",{children:n},n))})})]})]})}function vp({id:e,label:t,description:r,checked:n,onCheckedChange:i}){return u.jsxs("div",{className:"flex items-start justify-between gap-4 rounded-md border p-3",children:[u.jsxs("div",{className:"space-y-1",children:[u.jsx(Dt,{htmlFor:e,children:t}),u.jsx("p",{className:"text-xs text-muted-foreground",children:r})]}),u.jsx(Ju,{id:e,checked:n,onCheckedChange:i})]})}function Fs({label:e,htmlFor:t,children:r}){return u.jsxs("div",{className:"space-y-1.5",children:[u.jsx(Dt,{htmlFor:t,children:e}),r]})}function Sa({label:e,htmlFor:t,value:r,onChange:n}){return u.jsx(Fs,{label:e,htmlFor:t,children:u.jsx(xn,{id:t,type:"number",value:Number.isFinite(r)?r:0,onChange:i=>n(Number(i.target.value))})})}function Wc({label:e,value:t}){return u.jsxs("div",{className:"space-y-1",children:[u.jsx("p",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:e}),u.jsx("p",{className:"text-sm font-medium",children:t})]})}function Kse(){return u.jsx(kB,{children:u.jsx(EW,{children:u.jsx(_B,{children:u.jsxs(Vt,{element:u.jsx(OW,{}),children:[u.jsx(Vt,{path:"/",element:u.jsx(Vae,{})}),u.jsx(Vt,{path:"/repositories",element:u.jsx(bse,{})}),u.jsx(Vt,{path:"/repositories/:repositoryId",element:u.jsx(Sse,{})}),u.jsx(Vt,{path:"/scans",element:u.jsx(Lse,{})}),u.jsx(Vt,{path:"/scans/new",element:u.jsx(b7,{})}),u.jsx(Vt,{path:"/scans/compare",element:u.jsx(Ise,{})}),u.jsx(Vt,{path:"/scans/:scanId",element:u.jsx(Ese,{})}),u.jsx(Vt,{path:"/findings",element:u.jsx(l7,{})}),u.jsx(Vt,{path:"/findings/:findingId",element:u.jsx(o7,{})}),u.jsx(Vt,{path:"/architecture",element:u.jsx(zW,{})}),u.jsx(Vt,{path:"/dependencies",element:u.jsx(e7,{})}),u.jsx(Vt,{path:"/assistant",element:u.jsx(GW,{})}),u.jsx(Vt,{path:"/remediations",element:u.jsx(mse,{})}),u.jsx(Vt,{path:"/reports",element:u.jsx(xse,{})}),u.jsx(Vt,{path:"/settings",element:u.jsx(Wse,{})}),u.jsx(Vt,{path:"/index.html",element:u.jsx(bB,{to:"/",replace:!0})}),u.jsx(Vt,{path:"*",element:u.jsx(w7,{})})]})})})})}const j4=document.getElementById("root");if(!j4)throw new Error("The #root container is missing from index.html.");N5.createRoot(j4).render(u.jsx(S.StrictMode,{children:u.jsx(z8,{children:u.jsx(i7,{children:u.jsx(G6,{children:u.jsx(Kse,{})})})})}));
|