NAC_Blockchain/backups/nac-admin-dist-v11-20260226.../public/assets/index-91kynALJ.js

705 lines
1.5 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function aW(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var cb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var aE={exports:{}},ub={},iE={exports:{}},gh={exports:{}};gh.exports;var ML;function iW(){return ML||(ML=1,(function(e,t){/**
* @license React
* react.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){function n(V,ce){Object.defineProperty(s.prototype,V,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ce[0],ce[1])}})}function r(V){return V===null||typeof V!="object"?null:(V=ie&&V[ie]||V["@@iterator"],typeof V=="function"?V:null)}function o(V,ce){V=(V=V.constructor)&&(V.displayName||V.name)||"ReactClass";var Ee=V+"."+ce;ze[Ee]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ce,V),ze[Ee]=!0)}function s(V,ce,Ee){this.props=V,this.context=ce,this.refs=Ve,this.updater=Ee||Ne}function c(){}function u(V,ce,Ee){this.props=V,this.context=ce,this.refs=Ve,this.updater=Ee||Ne}function f(){}function m(V){return""+V}function g(V){try{m(V);var ce=!1}catch{ce=!0}if(ce){ce=console;var Ee=ce.error,De=typeof Symbol=="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return Ee.call(ce,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",De),m(V)}}function h(V){if(V==null)return null;if(typeof V=="function")return V.$$typeof===xn?null:V.displayName||V.name||null;if(typeof V=="string")return V;switch(V){case L:return"Fragment";case W:return"Profiler";case Q:return"StrictMode";case ue:return"Suspense";case xe:return"SuspenseList";case de:return"Activity"}if(typeof V=="object")switch(typeof V.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case ne:return"Portal";case ge:return V.displayName||"Context";case ae:return(V._context.displayName||"Context")+".Consumer";case we:var ce=V.render;return V=V.displayName,V||(V=ce.displayName||ce.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case me:return ce=V.displayName||null,ce!==null?ce:h(V.type)||"Memo";case ye:ce=V._payload,V=V._init;try{return h(V(ce))}catch{}}return null}function y(V){if(V===L)return"<>";if(typeof V=="object"&&V!==null&&V.$$typeof===ye)return"<...>";try{var ce=h(V);return ce?"<"+ce+">":"<...>"}catch{return"<...>"}}function x(){var V=je.A;return V===null?null:V.getOwner()}function S(){return Error("react-stack-top-frame")}function N(V){if(ir.call(V,"key")){var ce=Object.getOwnPropertyDescriptor(V,"key").get;if(ce&&ce.isReactWarning)return!1}return V.key!==void 0}function w(V,ce){function Ee(){Un||(Un=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ce))}Ee.isReactWarning=!0,Object.defineProperty(V,"key",{get:Ee,configurable:!0})}function A(){var V=h(this.type);return vi[V]||(vi[V]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),V=this.props.ref,V!==void 0?V:null}function D(V,ce,Ee,De,Me,Je){var Se=Ee.ref;return V={$$typeof:te,type:V,key:ce,props:Ee,_owner:De},(Se!==void 0?Se:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:A}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Je}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function _(V,ce){return ce=D(V.type,ce,V.props,V._owner,V._debugStack,V._debugTask),V._store&&(ce._store.validated=V._store.validated),ce}function P(V){O(V)?V._store&&(V._store.validated=1):typeof V=="object"&&V!==null&&V.$$typeof===ye&&(V._payload.status==="fulfilled"?O(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function O(V){return typeof V=="object"&&V!==null&&V.$$typeof===te}function C(V){var ce={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(Ee){return ce[Ee]})}function j(V,ce){return typeof V=="object"&&V!==null&&V.key!=null?(g(V.key),C(""+V.key)):ce.toString(36)}function k(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status=="string"?V.then(f,f):(V.status="pending",V.then(function(ce){V.status==="pending"&&(V.status="fulfilled",V.value=ce)},function(ce){V.status==="pending"&&(V.status="rejected",V.reason=ce)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function $(V,ce,Ee,De,Me){var Je=typeof V;(Je==="undefined"||Je==="boolean")&&(V=null);var Se=!1;if(V===null)Se=!0;else switch(Je){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(V.$$typeof){case te:case ne:Se=!0;break;case ye:return Se=V._init,$(Se(V._payload),ce,Ee,De,Me)}}if(Se){Se=V,Me=Me(Se);var He=De===""?"."+j(Se,0):De;return zn(Me)?(Ee="",He!=null&&(Ee=He.replace(gs,"$&/")+"/"),$(Me,ce,Ee,"",function(zt){return zt})):Me!=null&&(O(Me)&&(Me.key!=null&&(Se&&Se.key===Me.key||g(Me.key)),Ee=_(Me,Ee+(Me.key==null||Se&&Se.key===Me.key?"":(""+Me.key).replace(gs,"$&/")+"/")+He),De!==""&&Se!=null&&O(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Ee._store.validated=2),Me=Ee),ce.push(Me)),1}if(Se=0,He=De===""?".":De+":",zn(V))for(var Be=0;Be<V.length;Be++)De=V[Be],Je=He+j(De,Be),Se+=$(De,ce,Ee,Je,Me);else if(Be=r(V),typeof Be=="function")for(Be===V.entries&&(Fa||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Fa=!0),V=Be.call(V),Be=0;!(De=V.next()).done;)De=De.value,Je=He+j(De,Be++),Se+=$(De,ce,Ee,Je,Me);else if(Je==="object"){if(typeof V.then=="function")return $(k(V),ce,Ee,De,Me);throw ce=String(V),Error("Objects are not valid as a React child (found: "+(ce==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":ce)+"). If you meant to render a collection of children, use an array instead.")}return Se}function B(V,ce,Ee){if(V==null)return V;var De=[],Me=0;return $(V,De,"","",function(Je){return ce.call(Ee,Je,Me++)}),De}function U(V){if(V._status===-1){var ce=V._ioInfo;ce!=null&&(ce.start=ce.end=performance.now()),ce=V._result;var Ee=ce();if(Ee.then(function(Me){if(V._status===0||V._status===-1){V._status=1,V._result=Me;var Je=V._ioInfo;Je!=null&&(Je.end=performance.now()),Ee.status===void 0&&(Ee.status="fulfilled",Ee.value=Me)}},function(Me){if(V._status===0||V._status===-1){V._status=2,V._result=Me;var Je=V._ioInfo;Je!=null&&(Je.end=performance.now()),Ee.status===void 0&&(Ee.status="rejected",Ee.reason=Me)}}),ce=V._ioInfo,ce!=null){ce.value=Ee;var De=Ee.displayName;typeof De=="string"&&(ce.name=De)}V._status===-1&&(V._status=0,V._result=Ee)}if(V._status===1)return ce=V._result,ce===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,ce),"default"in ce||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,ce),ce.default;throw V._result}function H(){var V=je.H;return V===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),V}function G(){je.asyncTransitions--}function Y(V){if(kr===null)try{var ce=("require"+Math.random()).slice(0,7);kr=(e&&e[ce]).call(e,"timers").setImmediate}catch{kr=function(De){vs===!1&&(vs=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Me=new MessageChannel;Me.port1.onmessage=De,Me.port2.postMessage(void 0)}}return kr(V)}function J(V){return 1<V.length&&typeof AggregateError=="function"?new AggregateError(V):V[0]}function q(V,ce){ce!==yi-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),yi=ce}function z(V,ce,Ee){var De=je.actQueue;if(De!==null)if(De.length!==0)try{K(De),Y(function(){return z(V,ce,Ee)});return}catch(Me){je.thrownErrors.push(Me)}else je.actQueue=null;0<je.thrownErrors.length?(De=J(je.thrownErrors),je.thrownErrors.length=0,Ee(De)):ce(V)}function K(V){if(!yo){yo=!0;var ce=0;try{for(;ce<V.length;ce++){var Ee=V[ce];do{je.didUsePromise=!1;var De=Ee(!1);if(De!==null){if(je.didUsePromise){V[ce]=Ee,V.splice(0,ce);return}Ee=De}else break}while(!0)}V.length=0}catch(Me){V.splice(0,ce+1),je.thrownErrors.push(Me)}finally{yo=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var te=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ie=Symbol.iterator,ze={},Ne={isMounted:function(){return!1},enqueueForceUpdate:function(V){o(V,"forceUpdate")},enqueueReplaceState:function(V){o(V,"replaceState")},enqueueSetState:function(V){o(V,"setState")}},ut=Object.assign,Ve={};Object.freeze(Ve),s.prototype.isReactComponent={},s.prototype.setState=function(V,ce){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,ce,"setState")},s.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};var tt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(xi in tt)tt.hasOwnProperty(xi)&&n(xi,tt[xi]);c.prototype=s.prototype,tt=u.prototype=new c,tt.constructor=u,ut(tt,s.prototype),tt.isPureReactComponent=!0;var zn=Array.isArray,xn=Symbol.for("react.client.reference"),je={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ir=Object.prototype.hasOwnProperty,St=console.createTask?console.createTask:function(){return null};tt={react_stack_bottom_frame:function(V){return V()}};var Un,Mr,vi={},Yr=tt.react_stack_bottom_frame.bind(tt,S)(),bi=St(y(S)),Fa=!1,gs=/\/+/g,ba=typeof reportError=="function"?reportError:function(V){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ce=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V=="object"&&V!==null&&typeof V.message=="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(ce))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",V);return}console.error(V)},vs=!1,kr=null,yi=0,bo=!1,yo=!1,xo=typeof queueMicrotask=="function"?function(V){queueMicrotask(function(){return queueMicrotask(V)})}:Y;tt=Object.freeze({__proto__:null,c:function(V){return H().useMemoCache(V)}});var xi={map:B,forEach:function(V,ce,Ee){B(V,function(){ce.apply(this,arguments)},Ee)},count:function(V){var ce=0;return B(V,function(){ce++}),ce},toArray:function(V){return B(V,function(ce){return ce})||[]},only:function(V){if(!O(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};t.Activity=de,t.Children=xi,t.Component=s,t.Fragment=L,t.Profiler=W,t.PureComponent=u,t.StrictMode=Q,t.Suspense=ue,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=je,t.__COMPILER_RUNTIME=tt,t.act=function(V){var ce=je.actQueue,Ee=yi;yi++;var De=je.actQueue=ce!==null?ce:[],Me=!1;try{var Je=V()}catch(Be){je.thrownErrors.push(Be)}if(0<je.thrownErrors.length)throw q(ce,Ee),V=J(je.thrownErrors),je.thrownErrors.length=0,V;if(Je!==null&&typeof Je=="object"&&typeof Je.then=="function"){var Se=Je;return xo(function(){Me||bo||(bo=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Be,zt){Me=!0,Se.then(function(yr){if(q(ce,Ee),Ee===0){try{K(De),Y(function(){return z(yr,Be,zt)})}catch(Rn){je.thrownErrors.push(Rn)}if(0<je.thrownErrors.length){var dn=J(je.thrownErrors);je.thrownErrors.length=0,zt(dn)}}else Be(yr)},function(yr){q(ce,Ee),0<je.thrownErrors.length&&(yr=J(je.thrownErrors),je.thrownErrors.length=0),zt(yr)})}}}var He=Je;if(q(ce,Ee),Ee===0&&(K(De),De.length!==0&&xo(function(){Me||bo||(bo=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),je.actQueue=null),0<je.thrownErrors.length)throw V=J(je.thrownErrors),je.thrownErrors.length=0,V;return{then:function(Be,zt){Me=!0,Ee===0?(je.actQueue=De,Y(function(){return z(He,Be,zt)})):Be(He)}}},t.cache=function(V){return function(){return V.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var V=je.getCurrentStack;return V===null?null:V()},t.cloneElement=function(V,ce,Ee){if(V==null)throw Error("The argument must be a React element, but you passed "+V+".");var De=ut({},V.props),Me=V.key,Je=V._owner;if(ce!=null){var Se;e:{if(ir.call(ce,"ref")&&(Se=Object.getOwnPropertyDescriptor(ce,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=ce.ref!==void 0}Se&&(Je=x()),N(ce)&&(g(ce.key),Me=""+ce.key);for(He in ce)!ir.call(ce,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&ce.ref===void 0||(De[He]=ce[He])}var He=arguments.length-2;if(He===1)De.children=Ee;else if(1<He){Se=Array(He);for(var Be=0;Be<He;Be++)Se[Be]=arguments[Be+2];De.children=Se}for(De=D(V.type,Me,De,Je,V._debugStack,V._debugTask),Me=2;Me<arguments.length;Me++)P(arguments[Me]);return De},t.createContext=function(V){return V={$$typeof:ge,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:ae,_context:V},V._currentRenderer=null,V._currentRenderer2=null,V},t.createElement=function(V,ce,Ee){for(var De=2;De<arguments.length;De++)P(arguments[De]);De={};var Me=null;if(ce!=null)for(Be in Mr||!("__self"in ce)||"key"in ce||(Mr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),N(ce)&&(g(ce.key),Me=""+ce.key),ce)ir.call(ce,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(De[Be]=ce[Be]);var Je=arguments.length-2;if(Je===1)De.children=Ee;else if(1<Je){for(var Se=Array(Je),He=0;He<Je;He++)Se[He]=arguments[He+2];Object.freeze&&Object.freeze(Se),De.children=Se}if(V&&V.defaultProps)for(Be in Je=V.defaultProps,Je)De[Be]===void 0&&(De[Be]=Je[Be]);Me&&w(De,typeof V=="function"?V.displayName||V.name||"Unknown":V);var Be=1e4>je.recentlyCreatedOwnerStacks++;return D(V,Me,De,x(),Be?Error("react-stack-top-frame"):Yr,Be?St(y(V)):bi)},t.createRef=function(){var V={current:null};return Object.seal(V),V},t.forwardRef=function(V){V!=null&&V.$$typeof===me?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof V!="function"?console.error("forwardRef requires a render function but was given %s.",V===null?"null":typeof V):V.length!==0&&V.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",V.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),V!=null&&V.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ce={$$typeof:we,render:V},Ee;return Object.defineProperty(ce,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(De){Ee=De,V.name||V.displayName||(Object.defineProperty(V,"name",{value:De}),V.displayName=De)}}),ce},t.isValidElement=O,t.lazy=function(V){V={_status:-1,_result:V};var ce={$$typeof:ye,_payload:V,_init:U},Ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return V._ioInfo=Ee,ce._debugInfo=[{awaited:Ee}],ce},t.memo=function(V,ce){V==null&&console.error("memo: The first argument must be a component. Instead received: %s",V===null?"null":typeof V),ce={$$typeof:me,type:V,compare:ce===void 0?null:ce};var Ee;return Object.defineProperty(ce,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(De){Ee=De,V.name||V.displayName||(Object.defineProperty(V,"name",{value:De}),V.displayName=De)}}),ce},t.startTransition=function(V){var ce=je.T,Ee={};Ee._updatedFibers=new Set,je.T=Ee;try{var De=V(),Me=je.S;Me!==null&&Me(Ee,De),typeof De=="object"&&De!==null&&typeof De.then=="function"&&(je.asyncTransitions++,De.then(G,G),De.then(f,ba))}catch(Je){ba(Je)}finally{ce===null&&Ee._updatedFibers&&(V=Ee._updatedFibers.size,Ee._updatedFibers.clear(),10<V&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),ce!==null&&Ee.types!==null&&(ce.types!==null&&ce.types!==Ee.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),ce.types=Ee.types),je.T=ce}},t.unstable_useCacheRefresh=function(){return H().useCacheRefresh()},t.use=function(V){return H().use(V)},t.useActionState=function(V,ce,Ee){return H().useActionState(V,ce,Ee)},t.useCallback=function(V,ce){return H().useCallback(V,ce)},t.useContext=function(V){var ce=H();return V.$$typeof===ae&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ce.useContext(V)},t.useDebugValue=function(V,ce){return H().useDebugValue(V,ce)},t.useDeferredValue=function(V,ce){return H().useDeferredValue(V,ce)},t.useEffect=function(V,ce){return V==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useEffect(V,ce)},t.useEffectEvent=function(V){return H().useEffectEvent(V)},t.useId=function(){return H().useId()},t.useImperativeHandle=function(V,ce,Ee){return H().useImperativeHandle(V,ce,Ee)},t.useInsertionEffect=function(V,ce){return V==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useInsertionEffect(V,ce)},t.useLayoutEffect=function(V,ce){return V==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useLayoutEffect(V,ce)},t.useMemo=function(V,ce){return H().useMemo(V,ce)},t.useOptimistic=function(V,ce){return H().useOptimistic(V,ce)},t.useReducer=function(V,ce,Ee){return H().useReducer(V,ce,Ee)},t.useRef=function(V){return H().useRef(V)},t.useState=function(V){return H().useState(V)},t.useSyncExternalStore=function(V,ce,Ee){return H().useSyncExternalStore(V,ce,Ee)},t.useTransition=function(){return H().useTransition()},t.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(gh,gh.exports)),gh.exports}var kL;function uf(){return kL||(kL=1,iE.exports=iW()),iE.exports}var LL;function oW(){if(LL)return ub;LL=1;/**
* @license React
* react-jsx-dev-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){function e(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===U?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case w:return"Fragment";case D:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case N:return"Portal";case P:return L.displayName||"Context";case _:return(L._context.displayName||"Context")+".Consumer";case O:var Q=L.render;return L=L.displayName,L||(L=Q.displayName||Q.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case k:return Q=L.displayName||null,Q!==null?Q:e(L.type)||"Memo";case $:Q=L._payload,L=L._init;try{return e(L(Q))}catch{}}return null}function t(L){return""+L}function n(L){try{t(L);var Q=!1}catch{Q=!0}if(Q){Q=console;var W=Q.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return W.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(L)}}function r(L){if(L===w)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===$)return"<...>";try{var Q=e(L);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function o(){var L=H.A;return L===null?null:L.getOwner()}function s(){return Error("react-stack-top-frame")}function c(L){if(G.call(L,"key")){var Q=Object.getOwnPropertyDescriptor(L,"key").get;if(Q&&Q.isReactWarning)return!1}return L.key!==void 0}function u(L,Q){function W(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}W.isReactWarning=!0,Object.defineProperty(L,"key",{get:W,configurable:!0})}function f(){var L=e(this.type);return z[L]||(z[L]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),L=this.props.ref,L!==void 0?L:null}function m(L,Q,W,ae,ge,we){var ue=W.ref;return L={$$typeof:S,type:L,key:Q,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:f}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function g(L,Q,W,ae,ge,we){var ue=Q.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)h(ue[ae]);Object.freeze&&Object.freeze(ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ue);if(G.call(Q,"key")){ue=e(L);var xe=Object.keys(Q).filter(function(ye){return ye!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,ae,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),c(Q)&&(n(Q.key),ue=""+Q.key),"key"in Q){W={};for(var me in Q)me!=="key"&&(W[me]=Q[me])}else W=Q;return ue&&u(W,typeof L=="function"?L.displayName||L.name||"Unknown":L),m(L,ue,W,o(),ge,we)}function h(L){y(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===$&&(L._payload.status==="fulfilled"?y(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function y(L){return typeof L=="object"&&L!==null&&L.$$typeof===S}var x=uf(),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),P=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),H=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Array.isArray,J=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(L){return L()}};var q,z={},K=x.react_stack_bottom_frame.bind(x,s)(),te=J(r(s)),ne={};ub.Fragment=w,ub.jsxDEV=function(L,Q,W,ae){var ge=1e4>H.recentlyCreatedOwnerStacks++;return g(L,Q,W,ae,ge?Error("react-stack-top-frame"):K,ge?J(r(L)):te)}})(),ub}var IL;function sW(){return IL||(IL=1,aE.exports=oW()),aE.exports}var b=sW(),Wc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},lW={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},cW=class{#t=lW;#e=!1;setTimeoutProvider(e){this.#e&&e!==this.#t&&console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",{previous:this.#t,provider:e}),this.#t=e,this.#e=!1}setTimeout(e,t){return this.#e=!0,this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#e=!0,this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Nc=new cW;function uW(e){setTimeout(e,0)}var _c=typeof window>"u"||"Deno"in globalThis;function dr(){}function dW(e,t){return typeof e=="function"?e(t):e}function GD(e){return typeof e=="number"&&e>=0&&e!==1/0}function _8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fl(e,t){return typeof e=="function"?e(t):e}function Ia(e,t){return typeof e=="function"?e(t):e}function VL(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==r_(c,t.options))return!1}else if(!Mh(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function $L(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(hl(t.options.mutationKey)!==hl(s))return!1}else if(!Mh(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function r_(e,t){return(t?.queryKeyHashFn||hl)(e)}function hl(e){return JSON.stringify(e,(t,n)=>YD(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Mh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Mh(e[n],t[n])):!1}var fW=Object.prototype.hasOwnProperty;function Qb(e,t){if(e===t)return e;const n=BL(e)&&BL(t);if(!n&&!(YD(e)&&YD(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,u=n?new Array(c):{};let f=0;for(let m=0;m<c;m++){const g=n?m:s[m],h=e[g],y=t[g];if(h===y){u[g]=h,(n?m<o:fW.call(e,g))&&f++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){u[g]=y;continue}const x=Qb(h,y);u[g]=x,x===h&&f++}return o===c&&f===o?e:u}function kh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function BL(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function YD(e){if(!zL(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!zL(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function zL(e){return Object.prototype.toString.call(e)==="[object Object]"}function mW(e){return new Promise(t=>{Nc.setTimeout(t,e)})}function QD(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Qb(e,t)}catch(r){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${r}`),r}return Qb(e,t)}return t}function hW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function pW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ar=Symbol();function R8(e,t){return e.queryFn===ar&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ar?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function j8(e,t){return typeof e=="function"?e(...t):!!e}var gW=class extends Wc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!_c&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},a_=new gW;function XD(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var vW=uW;function bW(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=vW;const s=u=>{t?e.push(u):o(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&o(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||c()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{o=u}}}var pn=bW(),yW=class extends Wc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!_c&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Xb=new yW;function xW(e){return Math.min(1e3*2**e,3e4)}function P8(e){return(e??"online")==="online"?Xb.isOnline():!0}var WD=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function M8(e){let t=!1,n=0,r;const o=XD(),s=()=>o.status!=="pending",c=N=>{if(!s()){const w=new WD(N);y(w),e.onCancel?.(w)}},u=()=>{t=!0},f=()=>{t=!1},m=()=>a_.isFocused()&&(e.networkMode==="always"||Xb.isOnline())&&e.canRun(),g=()=>P8(e.networkMode)&&e.canRun(),h=N=>{s()||(r?.(),o.resolve(N))},y=N=>{s()||(r?.(),o.reject(N))},x=()=>new Promise(N=>{r=w=>{(s()||m())&&N(w)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let N;const w=n===0?e.initialPromise:void 0;try{N=w??e.fn()}catch(A){N=Promise.reject(A)}Promise.resolve(N).then(h).catch(A=>{if(s())return;const D=e.retry??(_c?0:3),_=e.retryDelay??xW,P=typeof _=="function"?_(n,A):_,O=D===!0||typeof D=="number"&&n<D||typeof D=="function"&&D(n,A);if(t||!O){y(A);return}n++,e.onFail?.(n,A),mW(P).then(()=>m()?void 0:x()).then(()=>{t?y(A):S()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(r?.(),o),cancelRetry:u,continueRetry:f,canStart:g,start:()=>(g()?S():x().then(S),o)}}var k8=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GD(this.gcTime)&&(this.#t=Nc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_c?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Nc.clearTimeout(this.#t),this.#t=void 0)}},NW=class extends k8{#t;#e;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=UL(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=UL(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=QD(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(dr).catch(dr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Ia(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ar||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>fl(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!_8(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']");const n=new AbortController,r=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const u=R8(this.options,t),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#s=!1,this.options.persister?this.options.persister(u,m,this):u(m)},c=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return r(u),u})();this.options.behavior?.onFetch(c,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=M8({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof WD&&u.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(u,f)=>{this.#o({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),new Error(`${this.queryHash} data is undefined`);return this.setData(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof WD){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#o({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...L8(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),pn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function L8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:P8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function UL(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Tp=class extends Wc{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=XD(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#m;#d;#f;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),qL(this.#e,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ZD(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ZD(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#N(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ia(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!kh(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&HL(this.#e,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#e!==n||Ia(this.options.enabled,this.#e)!==Ia(t.enabled,this.#e)||fl(this.options.staleTime,this.#e)!==fl(t.staleTime,this.#e))&&this.#g();const o=this.#v();r&&(this.#e!==n||Ia(this.options.enabled,this.#e)!==Ia(t.enabled,this.#e)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return EW(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(dr)),t}#g(){this.#x();const e=fl(this.options.staleTime,this.#e);if(_c||this.#a.isStale||!GD(e))return;const n=_8(this.#a.dataUpdatedAt,e)+1;this.#c=Nc.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#N(),this.#l=e,!(_c||Ia(this.options.enabled,this.#e)===!1||!GD(this.#l)||this.#l===0)&&(this.#u=Nc.setInterval(()=>{(this.options.refetchIntervalInBackground||a_.isFocused())&&this.#h()},this.#l))}#y(){this.#g(),this.#b(this.#v())}#x(){this.#c&&(Nc.clearTimeout(this.#c),this.#c=void 0)}#N(){this.#u&&(Nc.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#a,s=this.#r,c=this.#i,f=e!==n?e.state:this.#n,{state:m}=e;let g={...m},h=!1,y;if(t._optimisticResults){const k=this.hasListeners(),$=!k&&qL(e,t),B=k&&HL(e,n,t,r);($||B)&&(g={...g,...L8(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:x,errorUpdatedAt:S,status:N}=g;y=g.data;let w=!1;if(t.placeholderData!==void 0&&y===void 0&&N==="pending"){let k;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(k=o.data,w=!0):k=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,k!==void 0&&(N="success",y=QD(o?.data,k,t),h=!0)}if(t.select&&y!==void 0&&!w)if(o&&y===s?.data&&t.select===this.#m)y=this.#d;else try{this.#m=t.select,y=t.select(y),y=QD(o?.data,y,t),this.#d=y,this.#o=null}catch(k){this.#o=k}this.#o&&(x=this.#o,y=this.#d,S=Date.now(),N="error");const A=g.fetchStatus==="fetching",D=N==="pending",_=N==="error",P=D&&A,O=y!==void 0,j={status:N,fetchStatus:g.fetchStatus,isPending:D,isSuccess:N==="success",isError:_,isInitialLoading:P,isLoading:P,data:y,dataUpdatedAt:g.dataUpdatedAt,error:x,errorUpdatedAt:S,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:A,isRefetching:A&&!D,isLoadingError:_&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:_&&O,isStale:i_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Ia(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const k=U=>{j.status==="error"?U.reject(j.error):j.data!==void 0&&U.resolve(j.data)},$=()=>{const U=this.#s=j.promise=XD();k(U)},B=this.#s;switch(B.status){case"pending":e.queryHash===n.queryHash&&k(B);break;case"fulfilled":(j.status==="error"||j.data!==B.value)&&$();break;case"rejected":(j.status!=="error"||j.error!==B.reason)&&$();break}}return j}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#f=this.#e),kh(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#p.size)return!0;const s=new Set(o??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(c=>{const u=c;return this.#a[u]!==e[u]&&s.has(u)})};this.#E({listeners:n()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#E(e){pn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function wW(e,t){return Ia(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qL(e,t){return wW(e,t)||e.state.data!==void 0&&ZD(e,t,t.refetchOnMount)}function ZD(e,t,n){if(Ia(t.enabled,e)!==!1&&fl(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&i_(e,t)}return!1}function HL(e,t,n,r){return(e!==t||Ia(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&i_(e,n)}function i_(e,t){return Ia(t.enabled,e)!==!1&&e.isStaleByTime(fl(t.staleTime,e))}function EW(e,t){return!kh(e.getCurrentResult(),t)}function Wb(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},f=0;const m=async()=>{let g=!1;const h=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=R8(t.options,t.fetchOptions),x=async(S,N,w)=>{if(g)return Promise.reject();if(N==null&&S.pages.length)return Promise.resolve(S);const D=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:N,direction:w?"backward":"forward",meta:t.options.meta};return h(C),C})(),_=await y(D),{maxPages:P}=t.options,O=w?pW:hW;return{pages:O(S.pages,_,P),pageParams:O(S.pageParams,N,P)}};if(o&&s.length){const S=o==="backward",N=S?I8:JD,w={pages:s,pageParams:c},A=N(r,w);u=await x(w,A,S)}else{const S=e??s.length;do{const N=f===0?c[0]??r.initialPageParam:JD(r,u);if(f>0&&N==null)break;u=await x(u,N),f++}while(f<S)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(m,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=m}}}function JD(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function I8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function SW(e,t){return t?JD(e,t)!=null:!1}function AW(e,t){return!t||!e.getPreviousPageParam?!1:I8(e,t)!=null}var V8=class extends Tp{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Wb()})}getOptimisticResult(e){return e.behavior=Wb(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:s,isError:c,isRefetchError:u}=r,f=n.fetchMeta?.fetchMore?.direction,m=c&&f==="forward",g=o&&f==="forward",h=c&&f==="backward",y=o&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:SW(t,n.data),hasPreviousPage:AW(t,n.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:h,isFetchingPreviousPage:y,isRefetchError:u&&!m&&!h,isRefetching:s&&!g&&!y}}},OW=class extends k8{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||$8(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=M8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,variables:e,isPaused:o})}const s=await this.#a.start();return await this.#n.config.onSuccess?.(s,e,this.state.context,this,n),await this.options.onSuccess?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,e,this.state.context,n),this.#r({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,e,this.state.context,this,n),await this.options.onError?.(s,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,e,this.state.context,n),s}finally{this.#r({type:"error",error:s})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),pn.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function $8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DW=class extends Wc{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new OW({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=db(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=db(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=db(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=db(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pn.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>$L(t,n))}findAll(e={}){return this.getAll().filter(t=>$L(e,t))}notify(e){pn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return pn.batch(()=>Promise.all(e.map(t=>t.continue().catch(dr))))}};function db(e){return e.options.scope?.id}var TW=class extends Wc{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),kh(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&hl(n.mutationKey)!==hl(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??$8();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){pn.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,o),this.#a.onSettled?.(t.data,null,n,r,o)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,o),this.#a.onSettled?.(void 0,t.error,n,r,o))}this.listeners.forEach(n=>{n(this.#e)})})}};function FL(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function CW(e,t,n){const r=e.slice(0);return r[t]=n,r}var _W=class extends Wc{#t;#e;#n;#a;#r;#i;#s;#o;#m=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t;{const n=e.map(r=>this.#t.defaultQueryOptions(r).queryHash);new Set(n).size!==n.length&&console.warn("[QueriesObserver]: Duplicate Queries found. This might result in unexpected behavior.")}pn.batch(()=>{const n=this.#r,r=this.#c(this.#n);this.#m=r,r.forEach(g=>g.observer.setOptions(g.defaultedQueryOptions));const o=r.map(g=>g.observer),s=o.map(g=>g.getCurrentResult()),c=n.length!==o.length,u=o.some((g,h)=>g!==n[h]),f=c||u,m=f?!0:s.some((g,h)=>{const y=this.#e[h];return!y||!kh(g,y)});!f&&!m||(f&&(this.#r=o),this.#e=s,this.hasListeners()&&(f&&(FL(n,o).forEach(g=>{g.destroy()}),FL(o,n).forEach(g=>{g.subscribe(h=>{this.#u(g,h)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#c(e),r=n.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[r,o=>this.#f(o??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const o=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,s=>{t.forEach(c=>{c.observer.trackProp(s)})})})}#f(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#s)&&(this.#s=t,this.#o=this.#e,this.#i=Qb(this.#i,t(e))),this.#i):e}#c(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const o=this.#t.defaultQueryOptions(r),s=t.get(o.queryHash);s?n.push({defaultedQueryOptions:o,observer:s}):n.push({defaultedQueryOptions:o,observer:new Tp(this.#t,o)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=CW(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#d(this.#e,this.#m),n=this.#f(t,this.#a?.combine);e!==n&&pn.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},RW=class extends Wc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??r_(r,t);let s=this.get(o);return s||(s=new NW({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){pn.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>VL(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>VL(e,n)):t}notify(e){pn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){pn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},jW=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new RW,this.#e=e.mutationCache||new DW,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=a_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Xb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(fl(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=this.#t.get(r.queryHash)?.state.data,c=dW(t,s);if(c!==void 0)return this.#t.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return pn.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;pn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return pn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pn.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(dr).catch(dr)}invalidateQueries(e,t={}){return pn.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=pn.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(dr)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(dr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(fl(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(dr).catch(dr)}fetchInfiniteQuery(e){return e.behavior=Wb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dr).catch(dr)}ensureInfiniteQueryData(e){return e.behavior=Wb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Xb.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(hl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Mh(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(hl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Mh(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=r_(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ar&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},R=uf();const F=Bt(R),dx=aW({__proto__:null,default:F},[R]);var oE={exports:{}},nh={},KL;function PW(){if(KL)return nh;KL=1;/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){function e(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===U?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case w:return"Fragment";case D:return"Profiler";case A:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case N:return"Portal";case P:return L.displayName||"Context";case _:return(L._context.displayName||"Context")+".Consumer";case O:var Q=L.render;return L=L.displayName,L||(L=Q.displayName||Q.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case k:return Q=L.displayName||null,Q!==null?Q:e(L.type)||"Memo";case $:Q=L._payload,L=L._init;try{return e(L(Q))}catch{}}return null}function t(L){return""+L}function n(L){try{t(L);var Q=!1}catch{Q=!0}if(Q){Q=console;var W=Q.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return W.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(L)}}function r(L){if(L===w)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===$)return"<...>";try{var Q=e(L);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function o(){var L=H.A;return L===null?null:L.getOwner()}function s(){return Error("react-stack-top-frame")}function c(L){if(G.call(L,"key")){var Q=Object.getOwnPropertyDescriptor(L,"key").get;if(Q&&Q.isReactWarning)return!1}return L.key!==void 0}function u(L,Q){function W(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}W.isReactWarning=!0,Object.defineProperty(L,"key",{get:W,configurable:!0})}function f(){var L=e(this.type);return z[L]||(z[L]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),L=this.props.ref,L!==void 0?L:null}function m(L,Q,W,ae,ge,we){var ue=W.ref;return L={$$typeof:S,type:L,key:Q,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:f}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function g(L,Q,W,ae,ge,we){var ue=Q.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)h(ue[ae]);Object.freeze&&Object.freeze(ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ue);if(G.call(Q,"key")){ue=e(L);var xe=Object.keys(Q).filter(function(ye){return ye!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,ae,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),c(Q)&&(n(Q.key),ue=""+Q.key),"key"in Q){W={};for(var me in Q)me!=="key"&&(W[me]=Q[me])}else W=Q;return ue&&u(W,typeof L=="function"?L.displayName||L.name||"Unknown":L),m(L,ue,W,o(),ge,we)}function h(L){y(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===$&&(L._payload.status==="fulfilled"?y(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function y(L){return typeof L=="object"&&L!==null&&L.$$typeof===S}var x=uf(),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),P=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),H=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Array.isArray,J=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(L){return L()}};var q,z={},K=x.react_stack_bottom_frame.bind(x,s)(),te=J(r(s)),ne={};nh.Fragment=w,nh.jsx=function(L,Q,W){var ae=1e4>H.recentlyCreatedOwnerStacks++;return g(L,Q,W,!1,ae?Error("react-stack-top-frame"):K,ae?J(r(L)):te)},nh.jsxs=function(L,Q,W){var ae=1e4>H.recentlyCreatedOwnerStacks++;return g(L,Q,W,!0,ae?Error("react-stack-top-frame"):K,ae?J(r(L)):te)}})(),nh}var GL;function MW(){return GL||(GL=1,oE.exports=PW()),oE.exports}var le=MW(),B8=R.createContext(void 0),Cp=e=>{const t=R.useContext(B8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kW=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),le.jsx(B8.Provider,{value:e,children:t})),z8=R.createContext(!1),U8=()=>R.useContext(z8);z8.Provider;function LW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var IW=R.createContext(LW()),q8=()=>R.useContext(IW),H8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},F8=e=>{R.useEffect(()=>{e.clearReset()},[e])},K8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||j8(n,[e.error,r])),o_=(e,t)=>t.state.data===void 0,G8=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Y8=(e,t)=>e.isLoading&&e.isFetching&&!t,eT=(e,t)=>e?.suspense&&t.isPending,Zb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Q8({queries:e,...t},n){const r=Cp(n),o=U8(),s=q8(),c=R.useMemo(()=>e.map(N=>{const w=r.defaultQueryOptions(N);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);c.forEach(N=>{G8(N),H8(N,s)}),F8(s);const[u]=R.useState(()=>new _W(r,c,t)),[f,m,g]=u.getOptimisticResult(c,t.combine),h=!o&&t.subscribed!==!1;R.useSyncExternalStore(R.useCallback(N=>h?u.subscribe(pn.batchCalls(N)):dr,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),R.useEffect(()=>{u.setQueries(c,t)},[c,t,u]);const x=f.some((N,w)=>eT(c[w],N))?f.flatMap((N,w)=>{const A=c[w];if(A){const D=new Tp(r,A);if(eT(A,N))return Zb(A,D,s);Y8(N,o)&&Zb(A,D,s)}return[]}):[];if(x.length>0)throw Promise.all(x);const S=f.find((N,w)=>{const A=c[w];return A&&K8({result:N,errorResetBoundary:s,throwOnError:A.throwOnError,query:r.getQueryCache().get(A.queryHash),suspense:A.suspense})});if(S?.error)throw S.error;return m(g())}function fx(e,t,n){if(typeof e!="object"||Array.isArray(e))throw new Error('Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object');const r=U8(),o=q8(),s=Cp(n),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c.queryFn||console.error(`[${c.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`),c._optimisticResults=r?"isRestoring":"optimistic",G8(c),H8(c,o),F8(o);const u=!s.getQueryCache().get(c.queryHash),[f]=R.useState(()=>new t(s,c)),m=f.getOptimisticResult(c),g=!r&&e.subscribed!==!1;if(R.useSyncExternalStore(R.useCallback(h=>{const y=g?f.subscribe(pn.batchCalls(h)):dr;return f.updateResult(),y},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),R.useEffect(()=>{f.setOptions(c)},[c,f]),eT(c,m))throw Zb(c,f,o);if(K8({result:m,errorResetBoundary:o,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!_c&&Y8(m,r)&&(u?Zb(c,f,o):s.getQueryCache().get(c.queryHash)?.promise)?.catch(dr).finally(()=>{f.updateResult()}),c.notifyOnChangeProps?m:f.trackResult(m)}function VW(e,t){return fx(e,Tp,t)}function $W(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQuery"),fx({...e,enabled:!0,suspense:!0,throwOnError:o_,placeholderData:void 0},Tp,t)}function BW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),fx({...e,enabled:!0,suspense:!0,throwOnError:o_},V8,t)}function zW(e,t){return Q8({...e,queries:e.queries.map(n=>(n.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQueries"),{...n,suspense:!0,throwOnError:o_,enabled:!0,placeholderData:void 0}))},t)}function UW(e,t){const n=Cp(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function qW(e,t){const n=Cp(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function HW(e,t){const n=Cp(t),[r]=R.useState(()=>new TW(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);const o=R.useSyncExternalStore(R.useCallback(c=>r.subscribe(pn.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=R.useCallback((c,u)=>{r.mutate(c,u).catch(dr)},[r]);if(o.error&&j8(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function FW(e,t){return fx(e,V8,t)}function Rc(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const KW=typeof Symbol=="function"&&!!Symbol.asyncIterator;function X8(e){return KW&&Rc(e)&&Symbol.asyncIterator in e}var GW=Object.create,W8=Object.defineProperty,YW=Object.getOwnPropertyDescriptor,Z8=Object.getOwnPropertyNames,QW=Object.getPrototypeOf,XW=Object.prototype.hasOwnProperty,_p=(e,t)=>function(){return t||(0,e[Z8(e)[0]])((t={exports:{}}).exports,t),t.exports},WW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Z8(t),s=0,c=o.length,u;s<c;s++)u=o[s],!XW.call(e,u)&&u!==n&&W8(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=YW(t,u))||r.enumerable});return e},mx=(e,t,n)=>(n=e!=null?GW(QW(e)):{},WW(W8(n,"default",{value:e,enumerable:!0}),e));const J8=()=>{},YL=e=>{Object.freeze&&Object.freeze(e)};function e9(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(J8,{get(s,c){if(!(typeof c!="string"||c==="then"))return e9(e,[...t,c],n)},apply(s,c,u){const f=t[t.length-1];let m={args:u,path:t};return f==="call"?m={args:u.length>=2?[u[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(m={args:u.length>=2?u[1]:[],path:t.slice(0,-1)}),YL(m.args),YL(m.path),e(m)}})),n[o]}const hx=e=>e9(e,[],Object.create(null)),s_=e=>new Proxy(J8,{get(t,n){if(n!=="then")return e(n)}});var t9=_p({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),ZW=_p({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=t9().default;function r(o,s){if(n(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,s||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),JW=_p({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=t9().default,r=ZW();function o(s){var c=r(s,"string");return n(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),n9=_p({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=JW();function r(o,s,c){return(s=n(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),l_=_p({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=n9();function r(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),u.push.apply(u,f)}return u}function o(s){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?r(Object(u),!0).forEach(function(f){n(s,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(u,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});mx(l_());mx(n9());var fb=mx(l_());function eZ(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,fb.default)((0,fb.default)({},e),{},{error:r})}}return{ok:!0,result:(0,fb.default)((0,fb.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var sE=class extends Error{constructor(){super("Unable to transform response from server")}};function tZ(e,t){let n;try{n=eZ(e,t)}catch{throw new sE}if(!n.ok&&(!Rc(n.error.error)||typeof n.error.error.code!="number"))throw new sE;if(n.ok&&!Rc(n.result))throw new sE;return n}mx(l_());function px(e){const t={subscribe(n){let r=null,o=!1,s=!1,c=!1;function u(){if(r===null){c=!0;return}s||(s=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(f){var m;o||(m=n.next)===null||m===void 0||m.call(n,f)},error(f){var m;o||(o=!0,(m=n.error)===null||m===void 0||m.call(n,f),u())},complete(){var f;o||(o=!0,(f=n.complete)===null||f===void 0||f.call(n),u())}}),c&&u(),{unsubscribe:u}},pipe(...n){return n.reduce(nZ,t)}};return t}function nZ(e,t){return t(e)}function rZ(e){const t=new AbortController;return new Promise((r,o)=>{let s=!1;function c(){s||(s=!0,u.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const u=e.subscribe({next(f){s=!0,r(f),c()},error(f){o(f)},complete(){t.abort(),c()}})})}var aZ=Object.create,r9=Object.defineProperty,iZ=Object.getOwnPropertyDescriptor,a9=Object.getOwnPropertyNames,oZ=Object.getPrototypeOf,sZ=Object.prototype.hasOwnProperty,yl=(e,t)=>function(){return t||(0,e[a9(e)[0]])((t={exports:{}}).exports,t),t.exports},lZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=a9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!sZ.call(e,u)&&u!==n&&r9(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=iZ(t,u))||r.enumerable});return e},Zc=(e,t,n)=>(n=e!=null?aZ(oZ(e)):{},lZ(t||!e||!e.__esModule?r9(n,"default",{value:e,enumerable:!0}):n,e)),cZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,o){if(r==null)return{};var s={};for(var c in r)if({}.hasOwnProperty.call(r,c)){if(o.includes(c))continue;s[c]=r[c]}return s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),uZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=cZ();function r(o,s){if(o==null)return{};var c,u,f=n(o,s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);for(u=0;u<m.length;u++)c=m[u],s.includes(c)||{}.propertyIsEnumerable.call(o,c)&&(f[c]=o[c])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),i9=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),dZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=i9().default;function r(o,s){if(n(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,s||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),fZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=i9().default,r=dZ();function o(s){var c=r(s,"string");return n(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),mZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=fZ();function r(o,s,c){return(s=n(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Rp=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=mZ();function r(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),u.push.apply(u,f)}return u}function o(s){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?r(Object(u),!0).forEach(function(f){n(s,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(u,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),hZ=Zc(uZ(),1),QL=Zc(Rp(),1);const pZ=["cursor","direction"];function Wi(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&Rc(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:s}=t,c=(0,hZ.default)(t,pZ);return[r,{input:c,type:"infinite"}]}return[r,(0,QL.default)((0,QL.default)({},typeof t<"u"&&t!==ar&&{input:t}),n&&n!=="any"&&{type:n})]}function zb(e){return Wi(e,void 0,"any")}var gZ=Object.create,o9=Object.defineProperty,vZ=Object.getOwnPropertyDescriptor,s9=Object.getOwnPropertyNames,bZ=Object.getPrototypeOf,yZ=Object.prototype.hasOwnProperty,mo=(e,t)=>function(){return t||(0,e[s9(e)[0]])((t={exports:{}}).exports,t),t.exports},xZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=s9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!yZ.call(e,u)&&u!==n&&o9(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=vZ(t,u))||r.enumerable});return e},yn=(e,t,n)=>(n=e!=null?gZ(bZ(e)):{},xZ(t||!e||!e.__esModule?o9(n,"default",{value:e,enumerable:!0}):n,e)),l9=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),NZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=l9().default;function r(o,s){if(n(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,s||"default");if(n(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=l9().default,r=NZ();function o(s){var c=r(s,"string");return n(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jc=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=wZ();function r(o,s,c){return(s=n(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),hi=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Jc();function r(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),u.push.apply(u,f)}return u}function o(s){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?r(Object(u),!0).forEach(function(f){n(s,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(u,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function EZ(e){return t=>{let n=0,r=null;const o=[];function s(){r||(r=t.subscribe({next(u){for(const m of o){var f;(f=m.next)===null||f===void 0||f.call(m,u)}},error(u){for(const m of o){var f;(f=m.error)===null||f===void 0||f.call(m,u)}},complete(){for(const f of o){var u;(u=f.complete)===null||u===void 0||u.call(f)}}}))}function c(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return px(u=>(n++,o.push(u),s(),{unsubscribe(){n--,c();const f=o.findIndex(m=>m===u);f>-1&&o.splice(f,1)}}))}}function SZ(e){let t=e;const n=[],r=c=>{t!==void 0&&c.next(t),n.push(c)},o=c=>{n.splice(n.indexOf(c),1)},s=px(c=>(r(c),()=>{o(c)}));return s.next=c=>{if(t!==c){t=c;for(const u of n)u.next(c)}},s.get=()=>t,s}function AZ(e){return px(t=>{function n(o=0,s=e.op){const c=e.links[o];if(!c)throw new Error("No more links to execute - did you forget to add an ending link?");return c({op:s,next(f){return n(o+1,f)}})}return n().subscribe(t)})}var mb=yn(Jc(),1),cd=yn(hi(),1);function OZ(e){return e instanceof Lh}function DZ(e){return Rc(e)&&Rc(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function TZ(e,t){return typeof e=="string"?e:Rc(e)&&typeof e.message=="string"?e.message:t}var Lh=class Ub extends Error{constructor(t,n){var r,o;const s=n?.cause;super(t,{cause:s}),(0,mb.default)(this,"cause",void 0),(0,mb.default)(this,"shape",void 0),(0,mb.default)(this,"data",void 0),(0,mb.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=s,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(o=n.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Ub.prototype)}static from(t,n={}){const r=t;return OZ(r)?(n.meta&&(r.meta=(0,cd.default)((0,cd.default)({},r.meta),n.meta)),r):DZ(r)?new Ub(r.error.message,(0,cd.default)((0,cd.default)({},n),{},{result:r})):new Ub(TZ(r,"Unknown error"),(0,cd.default)((0,cd.default)({},n),{},{cause:r}))}};function CZ(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const XL=e=>typeof e=="function";function _Z(e){if(e)return e;if(typeof window<"u"&&XL(window.fetch))return window.fetch;if(typeof globalThis<"u"&&XL(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Eh=yn(hi());function RZ(e){return{url:e.url.toString(),fetch:e.fetch,transformer:CZ(e.transformer),methodOverride:e.methodOverride}}function jZ(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const PZ={query:"GET",mutation:"POST",subscription:"PATCH"};function c9(e){return"input"in e?e.transformer.input.serialize(e.input):jZ(e.inputs.map(t=>e.transformer.input.serialize(t)))}const u9=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const s=c9(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(r+="?"+o.join("&")),r},MZ=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=c9(e);return t!==void 0?JSON.stringify(t):void 0},kZ=e=>$Z((0,Eh.default)((0,Eh.default)({},e),{},{contentTypeHeader:"application/json",getUrl:u9,getBody:MZ}));var LZ=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const IZ=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new LZ};async function VZ(e){var t;IZ(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:PZ[e.type],s=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),c=(0,Eh.default)((0,Eh.default)((0,Eh.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return _Z(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:c})}async function $Z(e){const t={},n=await VZ(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}yn(hi(),1);const WL=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function ZL(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(u){const f=[[]];let m=0;for(;;){const y=u[m];if(!y)break;const x=f[f.length-1];if(y.aborted){var g;(g=y.reject)===null||g===void 0||g.call(y,new Error("Aborted")),m++;continue}if(e.validate(x.concat(y).map(N=>N.key))){x.push(y),m++;continue}if(x.length===0){var h;(h=y.reject)===null||h===void 0||h.call(y,new Error("Input is too big for a single dispatch")),m++;continue}f.push([])}return f}function s(){const u=o(t);r();for(const f of u){if(!f.length)continue;const m={items:f};for(const h of f)h.batch=m;e.fetch(m.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(x,S)=>{const N=m.items[S];try{var w;const D=await Promise.resolve(x);(w=N.resolve)===null||w===void 0||w.call(N,D)}catch(D){var A;(A=N.reject)===null||A===void 0||A.call(N,D)}N.batch=null,N.reject=null,N.resolve=null}));for(const x of m.items){var y;(y=x.reject)===null||y===void 0||y.call(x,new Error("Missing result")),x.batch=null}}).catch(h=>{for(const x of m.items){var y;(y=x.reject)===null||y===void 0||y.call(x,h),x.batch=null}})}}function c(u){var f;const m={aborted:!1,key:u,batch:null,resolve:WL,reject:WL},g=new Promise((h,y)=>{var x;m.reject=y,m.resolve=h,(x=t)!==null&&x!==void 0||(t=[]),t.push(m)});return(f=n)!==null&&f!==void 0||(n=setTimeout(s)),g}return{load:c}}function BZ(...e){const t=new AbortController,n=e.length;let r=0;const o=()=>{++r===n&&t.abort()};for(const s of e)s?.aborted?o():s?.addEventListener("abort",o,{once:!0});return t.signal}var hb=yn(hi(),1);function zZ(e){var t,n;const r=RZ(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const c=g=>({validate(h){if(o===1/0&&s===1/0)return!0;if(h.length>s)return!1;const y=h.map(N=>N.path).join(","),x=h.map(N=>N.input);return u9((0,hb.default)((0,hb.default)({},r),{},{type:g,path:y,inputs:x,signal:null})).length<=o},async fetch(h){const y=h.map(D=>D.path).join(","),x=h.map(D=>D.input),S=BZ(...h.map(D=>D.signal)),N=await kZ((0,hb.default)((0,hb.default)({},r),{},{path:y,inputs:x,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:S}));return(Array.isArray(N.json)?N.json:h.map(()=>N.json)).map(D=>({meta:N.meta,json:D}))}}),u=ZL(c("query")),f=ZL(c("mutation")),m={query:u,mutation:f};return({op:g})=>px(h=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const x=m[g.type].load(g);let S;return x.then(N=>{S=N;const w=tZ(N.json,r.transformer.output);if(!w.ok){h.error(Lh.from(w.error,{meta:N.meta}));return}h.next({context:N.meta,result:w.result}),h.complete()}).catch(N=>{h.error(Lh.from(N,{meta:S?.meta}))}),()=>{}})}}yn(hi(),1);const d9=(e,...t)=>typeof e=="function"?e(...t):e;yn(Jc(),1);function UZ(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function qZ(e){const t=await d9(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function HZ(e){const t={method:"connectionParams",data:await d9(e)};return JSON.stringify(t)}yn(Jc(),1);var gc=yn(Jc(),1);function FZ(e){const{promise:t,resolve:n,reject:r}=UZ();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function KZ(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function s(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function c(){clearTimeout(r),s()}function u(){clearTimeout(o),c()}e.addEventListener("open",s),e.addEventListener("message",({data:f})=>{clearTimeout(r),s(),f==="PONG"&&u()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var GZ=class tT{constructor(t){var n;if((0,gc.default)(this,"id",++tT.connectCount),(0,gc.default)(this,"WebSocketPonyfill",void 0),(0,gc.default)(this,"urlOptions",void 0),(0,gc.default)(this,"keepAliveOpts",void 0),(0,gc.default)(this,"wsObservable",SZ(null)),(0,gc.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++tT.connectCount;const n=qZ(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&KZ(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await FZ(r),t.urlOptions.connectionParams&&r.send(await HZ(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,gc.default)(GZ,"connectCount",0);yn(Jc(),1);yn(hi(),1);var lE=yn(Jc(),1),JL=yn(hi(),1),gx=class{constructor(e){(0,lE.default)(this,"links",void 0),(0,lE.default)(this,"runtime",void 0),(0,lE.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return AZ({links:this.links,op:(0,JL.default)((0,JL.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(EZ())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await rZ(n)).result.data}catch(n){throw Lh.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(o){switch(o.result.type){case"state":{var s;(s=n.onConnectionStateChange)===null||s===void 0||s.call(n,o.result);break}case"started":{var c;(c=n.onStarted)===null||c===void 0||c.call(n,{context:o.context});break}case"stopped":{var u;(u=n.onStopped)===null||u===void 0||u.call(n);break}case"data":case void 0:{var f;(f=n.onData)===null||f===void 0||f.call(n,o.result.data);break}}},error(o){var s;(s=n.onError)===null||s===void 0||s.call(n,o)},complete(){var o;(o=n.onComplete)===null||o===void 0||o.call(n)}})}};const f9=Symbol.for("trpc_untypedClient"),YZ={query:"query",mutate:"mutation",subscribe:"subscription"},QZ=e=>YZ[e];function m9(e){const t=hx(({path:n,args:r})=>{const o=[...n],s=QZ(o.pop()),c=o.join(".");return e[s](c,...r)});return s_(n=>n===f9?e:t[n])}function XZ(e){const t=new gx(e);return m9(t)}function c_(e){return e[f9]}yn(hi(),1);yn(hi(),1);var WZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var s,c,u,f=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,u=Symbol.iterator);f--;){if(c&&(s=o[c])!=null)return s.call(o);if(u&&(s=o[u])!=null)return new r(s.call(o));c="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var u=c.done;return Promise.resolve(c.value).then(function(f){return{value:f,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(u){var f=this.s.return;return f===void 0?Promise.resolve({value:u,done:!0}):s(f.apply(this.s,arguments))},throw:function(u){var f=this.s.return;return f===void 0?Promise.reject(u):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});yn(WZ(),1);yn(hi(),1);var ZZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(u,f){var m=Error();return m.name="SuppressedError",m.error=u,m.suppressed=f,m},o={},s=[];function c(u,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(u)var m=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(m===void 0&&(m=f[Symbol.dispose||Symbol.for("Symbol.dispose")],u))var g=m;if(typeof m!="function")throw new TypeError("Object is not disposable.");g&&(m=function(){try{g.call(f)}catch(y){return Promise.reject(y)}}),s.push({v:f,d:m,a:u})}else u&&s.push({d:f,a:u});return f}return{e:o,u:c.bind(null,!1),a:c.bind(null,!0),d:function(){var f,m=this.e,g=0;function h(){for(;f=s.pop();)try{if(!f.a&&g===1)return g=0,s.push(f),Promise.resolve().then(h);if(f.d){var x=f.d.call(f.v);if(f.a)return g|=2,Promise.resolve(x).then(h,y)}else g|=1}catch(S){return y(S)}if(g===1)return m!==o?Promise.reject(m):Promise.resolve();if(m!==o)throw m}function y(x){return m=m!==o?new r(x,m):x,h()}return h()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),h9=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,o){this.v=r,this.k=o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),JZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=h9();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),eJ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=h9();function r(s){return function(){return new o(s.apply(this,arguments))}}function o(s){var c,u;function f(g,h){try{var y=s[g](h),x=y.value,S=x instanceof n;Promise.resolve(S?x.v:x).then(function(N){if(S){var w=g==="return"?"return":"next";if(!x.k||N.done)return f(w,N);N=s[w](N).value}m(y.done?"return":"normal",N)},function(N){f("throw",N)})}catch(N){m("throw",N)}}function m(g,h){switch(g){case"return":c.resolve({value:h,done:!0});break;case"throw":c.reject(h);break;default:c.resolve({value:h,done:!1})}(c=c.next)?f(c.key,c.arg):u=null}this._invoke=function(g,h){return new Promise(function(y,x){var S={key:g,arg:h,resolve:y,reject:x,next:null};u?u=u.next=S:(c=u=S,f(g,h))})},typeof s.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(s){return this._invoke("next",s)},o.prototype.throw=function(s){return this._invoke("throw",s)},o.prototype.return=function(s){return this._invoke("return",s)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});yn(ZZ(),1);yn(JZ(),1);yn(eJ(),1);yn(hi(),1);function tJ(e){return hx(({path:t,args:n})=>{var r;const o=[...t],s=o.pop();if(s==="useMutation")return e[s](o,...n);if(s==="_def")return{path:o};const[c,...u]=n,f=(r=u[0])!==null&&r!==void 0?r:{};return e[s](o,c,f)})}var cE;const nJ=["client","ssrContext","ssrState","abortOnUnmount"],rJ=(cE=R.createContext)===null||cE===void 0?void 0:cE.call(dx,null),aJ=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function iJ(e){return hx(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],s=o.shift(),c=aJ(r),u=Wi(n,s,c);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,u,o[0]),queryOptions:()=>e.queryOptions(n,u,...o),fetch:()=>e.fetchQuery(u,...o),fetchInfinite:()=>e.fetchInfiniteQuery(u,o[0]),prefetch:()=>e.prefetchQuery(u,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,o[0]),ensureData:()=>e.ensureQueryData(u,...o),invalidate:()=>e.invalidateQueries(u,...o),reset:()=>e.resetQueries(u,...o),refetch:()=>e.refetchQueries(u,...o),cancel:()=>e.cancelQuery(u,...o),setData:()=>{e.setQueryData(u,o[0],o[1])},setQueriesData:()=>e.setQueriesData(u,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(u,o[0],o[1])},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u),setMutationDefaults:()=>e.setMutationDefaults(zb(n),s),getMutationDefaults:()=>e.getMutationDefaults(zb(n)),isMutating:()=>e.isMutating({mutationKey:zb(n)})}[r]()})}function oJ(e){const t=m9(e.client),n=iJ(e);return s_(r=>{const o=r;return o==="client"?t:nJ.includes(o)?e[o]:n[r]})}var sJ=Zc(Rp(),1);function eI(e){const t=e instanceof gx?e:c_(e);return hx(n=>{const r=n.path,o=r.join("."),[s,c]=n.args;return(0,sJ.default)({queryKey:Wi(r,s,"query"),queryFn:()=>t.query(o,s,c?.trpc)},c)})}var uE=Zc(Rp(),1);function Cr(e,t,n){var r;const o=e[0];let s=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var c;s=(0,uE.default)((0,uE.default)((0,uE.default)({},(c=s)!==null&&c!==void 0?c:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),s,t?.trpc]}var lJ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(o){var s,c,u,f=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,u=Symbol.iterator);f--;){if(c&&(s=o[c])!=null)return s.call(o);if(u&&(s=o[u])!=null)return new r(s.call(o));c="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var u=c.done;return Promise.resolve(c.value).then(function(f){return{value:f,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(u){var f=this.s.return;return f===void 0?Promise.resolve({value:u,done:!0}):s(f.apply(this.s,arguments))},throw:function(u){var f=this.s.return;return f===void 0?Promise.reject(u):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),cJ=Zc(lJ(),1);function nT(e){return{path:e.path.join(".")}}function rh(e){const t=nT(e);return R.useMemo(()=>t,[t])}async function p9(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const s=[];var c=!1,u=!1,f;try{for(var m=(0,cJ.default)(e),g;c=!(g=await m.next()).done;c=!1){const h=g.value;s.push(h),o.setState({data:[...s]})}}catch(h){u=!0,f=h}finally{try{c&&m.return!=null&&await m.return()}finally{if(u)throw f}}return s}var Ct=Zc(Rp(),1);function uJ(e){const{client:t,queryClient:n}=e,r=t instanceof gx?t:c_(t);return{infiniteQueryOptions:(o,s,c)=>{var u,f;const m=((u=s[1])===null||u===void 0?void 0:u.input)===ar,g=async h=>{var y;const x=(0,Ct.default)((0,Ct.default)({},c),{},{trpc:(0,Ct.default)((0,Ct.default)({},c?.trpc),!(c==null||(y=c.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:h.signal}:{signal:null})});return await r.query(...Cr(s,x,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,Ct.default)((0,Ct.default)({},c),{},{initialData:c?.initialData,queryKey:s,queryFn:m?ar:g,initialPageParam:(f=c?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:nT({path:o})})},queryOptions:(o,s,c)=>{var u;const f=((u=s[1])===null||u===void 0?void 0:u.input)===ar,m=async g=>{var h;const y=(0,Ct.default)((0,Ct.default)({},c),{},{trpc:(0,Ct.default)((0,Ct.default)({},c?.trpc),!(c==null||(h=c.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:g.signal}:{signal:null})}),x=await r.query(...Cr(s,y));return X8(x)?p9(x,n,s):x};return Object.assign((0,Ct.default)((0,Ct.default)({},c),{},{initialData:c?.initialData,queryKey:s,queryFn:f?ar:m}),{trpc:nT({path:o})})},fetchQuery:(o,s)=>n.fetchQuery((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Cr(o,s))})),fetchInfiniteQuery:(o,s)=>{var c;return n.fetchInfiniteQuery((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o,queryFn:({pageParam:u,direction:f})=>r.query(...Cr(o,s,{pageParam:u,direction:f})),initialPageParam:(c=s?.initialCursor)!==null&&c!==void 0?c:null}))},prefetchQuery:(o,s)=>n.prefetchQuery((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Cr(o,s))})),prefetchInfiniteQuery:(o,s)=>{var c;return n.prefetchInfiniteQuery((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o,queryFn:({pageParam:u,direction:f})=>r.query(...Cr(o,s,{pageParam:u,direction:f})),initialPageParam:(c=s?.initialCursor)!==null&&c!==void 0?c:null}))},ensureQueryData:(o,s)=>n.ensureQueryData((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Cr(o,s))})),invalidateQueries:(o,s,c)=>n.invalidateQueries((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o}),c),resetQueries:(o,s,c)=>n.resetQueries((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o}),c),refetchQueries:(o,s,c)=>n.refetchQueries((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o}),c),cancelQuery:(o,s)=>n.cancelQueries({queryKey:o},s),setQueryData:(o,s,c)=>n.setQueryData(o,s,c),setQueriesData:(o,s,c,u)=>n.setQueriesData((0,Ct.default)((0,Ct.default)({},s),{},{queryKey:o}),c,u),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,s,c)=>n.setQueryData(o,s,c),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,s)=>{const c=o[0],u=f=>r.mutation(...Cr([c,{input:f}],e));return n.setMutationDefaults(o,typeof s=="function"?s({canonicalMutationFn:u}):s)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,Ct.default)((0,Ct.default)({},o),{},{exact:!0}))}}var Re=Zc(Rp());const tI=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function dJ(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:O=>O.originalFn(),o=(n=void 0)!==null&&n!==void 0?n:rJ,s=XZ,c=O=>{var C;const{abortOnUnmount:j=!1,queryClient:k,ssrContext:$}=O,[B,U]=R.useState((C=O.ssrState)!==null&&C!==void 0?C:!1),H=O.client instanceof gx?O.client:c_(O.client),G=R.useMemo(()=>uJ({client:H,queryClient:k}),[H,k]),Y=R.useMemo(()=>(0,Re.default)({abortOnUnmount:j,queryClient:k,client:H,ssrContext:$??null,ssrState:B},G),[j,H,G,k,$,B]);return R.useEffect(()=>{U(J=>J?"mounted":!1)},[]),le.jsx(o.Provider,{value:Y,children:O.children})};function u(){const O=R.useContext(o);if(!O)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return O}function f(O,C){var j;const{queryClient:k,ssrState:$}=u();return $&&$!=="mounted"&&((j=k.getQueryCache().find({queryKey:O}))===null||j===void 0?void 0:j.state.status)==="error"?(0,Re.default)({retryOnMount:!1},C):C}function m(O,C,j){var k,$,B,U,H;const G=u(),{abortOnUnmount:Y,client:J,ssrState:q,queryClient:z,prefetchQuery:K}=G,te=Wi(O,C,"query"),ne=z.getQueryDefaults(te),L=C===ar;typeof window>"u"&&q==="prepass"&&(j==null||(k=j.trpc)===null||k===void 0?void 0:k.ssr)!==!1&&(($=j?.enabled)!==null&&$!==void 0?$:ne?.enabled)!==!1&&!L&&!z.getQueryCache().find({queryKey:te})&&K(te,j);const Q=f(te,(0,Re.default)((0,Re.default)({},ne),j)),W=(B=(U=j==null||(H=j.trpc)===null||H===void 0?void 0:H.abortOnUnmount)!==null&&U!==void 0?U:void 0)!==null&&B!==void 0?B:Y,ae=VW((0,Re.default)((0,Re.default)({},Q),{},{queryKey:te,queryFn:L?C:async ge=>{const we=(0,Re.default)((0,Re.default)({},Q),{},{trpc:(0,Re.default)((0,Re.default)({},Q?.trpc),W?{signal:ge.signal}:{signal:null})}),ue=await J.query(...Cr(te,we));return X8(ue)?p9(ue,z,te):ue}}),z);return ae.trpc=rh({path:O}),ae}function g(O,C,j){var k,$,B;const U=u(),H=Wi(O,C,"query"),G=C===ar,Y=(k=($=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&k!==void 0?k:U.abortOnUnmount;UW((0,Re.default)((0,Re.default)({},j),{},{queryKey:H,queryFn:G?C:J=>{const q={trpc:(0,Re.default)((0,Re.default)({},j?.trpc),Y?{signal:J.signal}:{})};return U.client.query(...Cr(H,q))}}))}function h(O,C,j){var k,$,B;const U=u(),H=Wi(O,C,"query"),G=(k=($=j==null||(B=j.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&k!==void 0?k:U.abortOnUnmount,Y=$W((0,Re.default)((0,Re.default)({},j),{},{queryKey:H,queryFn:J=>{const q=(0,Re.default)((0,Re.default)({},j),{},{trpc:(0,Re.default)((0,Re.default)({},j?.trpc),G?{signal:J.signal}:{signal:null})});return U.client.query(...Cr(H,q))}}),U.queryClient);return Y.trpc=rh({path:O}),[Y.data,Y]}function y(O,C){const{client:j,queryClient:k}=u(),$=zb(O),B=k.defaultMutationOptions(k.getMutationDefaults($)),U=HW((0,Re.default)((0,Re.default)({},C),{},{mutationKey:$,mutationFn:H=>j.mutation(...Cr([O,{input:H}],C)),onSuccess(...H){var G,Y;return r({originalFn:()=>{var q,z,K;return(q=C==null||(z=C.onSuccess)===null||z===void 0?void 0:z.call(C,...H))!==null&&q!==void 0?q:B==null||(K=B.onSuccess)===null||K===void 0?void 0:K.call(B,...H)},queryClient:k,meta:(G=(Y=C?.meta)!==null&&Y!==void 0?Y:B?.meta)!==null&&G!==void 0?G:{}})}}),k);return U.trpc=rh({path:O}),U}const x={data:void 0,error:null,status:"idle"},S={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function N(O,C,j){var k;const $=(k=j?.enabled)!==null&&k!==void 0?k:C!==ar,B=hl(Wi(O,C,"any")),{client:U}=u(),H=R.useRef(j);R.useEffect(()=>{H.current=j});const[G]=R.useState(new Set([])),Y=R.useCallback(L=>{G.add(L)},[G]),J=R.useRef(null),q=R.useCallback(L=>{const Q=K.current,W=K.current=L(Q);let ae=!1;for(const ge of G)if(Q[ge]!==W[ge]){ae=!0;break}ae&&ne(tI(W,Y))},[Y,G]),z=R.useCallback(()=>{var L;if((L=J.current)===null||L===void 0||L.unsubscribe(),!$){q(()=>(0,Re.default)((0,Re.default)({},x),{},{reset:z}));return}q(()=>(0,Re.default)((0,Re.default)({},S),{},{reset:z}));const Q=U.subscription(O.join("."),C??void 0,{onStarted:()=>{var W,ae;(W=(ae=H.current).onStarted)===null||W===void 0||W.call(ae),q(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"pending",error:null}))},onData:W=>{var ae,ge;(ae=(ge=H.current).onData)===null||ae===void 0||ae.call(ge,W),q(we=>(0,Re.default)((0,Re.default)({},we),{},{status:"pending",data:W,error:null}))},onError:W=>{var ae,ge;(ae=(ge=H.current).onError)===null||ae===void 0||ae.call(ge,W),q(we=>(0,Re.default)((0,Re.default)({},we),{},{status:"error",error:W}))},onConnectionStateChange:W=>{q(ae=>{switch(W.state){case"idle":return(0,Re.default)((0,Re.default)({},ae),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,Re.default)((0,Re.default)({},ae),{},{error:W.error,status:W.state});case"pending":return ae}})},onComplete:()=>{var W,ae;(W=(ae=H.current).onComplete)===null||W===void 0||W.call(ae),q(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"idle",error:null,data:void 0}))}});J.current=Q},[U,B,$,q]);R.useEffect(()=>(z(),()=>{var L;(L=J.current)===null||L===void 0||L.unsubscribe()}),[z]);const K=R.useRef($?(0,Re.default)((0,Re.default)({},S),{},{reset:z}):(0,Re.default)((0,Re.default)({},x),{},{reset:z})),[te,ne]=R.useState(tI(K.current,Y));return te}function w(O,C,j){var k,$,B,U,H;const{client:G,ssrState:Y,prefetchInfiniteQuery:J,queryClient:q,abortOnUnmount:z}=u(),K=Wi(O,C,"infinite"),te=q.getQueryDefaults(K),ne=C===ar;typeof window>"u"&&Y==="prepass"&&(j==null||(k=j.trpc)===null||k===void 0?void 0:k.ssr)!==!1&&(($=j?.enabled)!==null&&$!==void 0?$:te?.enabled)!==!1&&!ne&&!q.getQueryCache().find({queryKey:K})&&J(K,(0,Re.default)((0,Re.default)({},te),j));const L=f(K,(0,Re.default)((0,Re.default)({},te),j)),Q=(B=j==null||(U=j.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&B!==void 0?B:z,W=FW((0,Re.default)((0,Re.default)({},L),{},{initialPageParam:(H=j.initialCursor)!==null&&H!==void 0?H:null,persister:j.persister,queryKey:K,queryFn:ne?C:ae=>{var ge;const we=(0,Re.default)((0,Re.default)({},L),{},{trpc:(0,Re.default)((0,Re.default)({},L?.trpc),Q?{signal:ae.signal}:{signal:null})});return G.query(...Cr(K,we,{pageParam:(ge=ae.pageParam)!==null&&ge!==void 0?ge:j.initialCursor,direction:ae.direction}))}}),q);return W.trpc=rh({path:O}),W}function A(O,C,j){var k,$,B;const U=u(),H=Wi(O,C,"infinite"),G=U.queryClient.getQueryDefaults(H),Y=C===ar,J=f(H,(0,Re.default)((0,Re.default)({},G),j)),q=(k=j==null||($=j.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&k!==void 0?k:U.abortOnUnmount;qW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:H,queryFn:Y?C:z=>{var K;const te=(0,Re.default)((0,Re.default)({},J),{},{trpc:(0,Re.default)((0,Re.default)({},J?.trpc),q?{signal:z.signal}:{})});return U.client.query(...Cr(H,te,{pageParam:(K=z.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:z.direction}))}}))}function D(O,C,j){var k,$,B;const U=u(),H=Wi(O,C,"infinite"),G=U.queryClient.getQueryDefaults(H),Y=f(H,(0,Re.default)((0,Re.default)({},G),j)),J=(k=j==null||($=j.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&k!==void 0?k:U.abortOnUnmount,q=BW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:H,queryFn:z=>{var K;const te=(0,Re.default)((0,Re.default)({},Y),{},{trpc:(0,Re.default)((0,Re.default)({},Y?.trpc),J?{signal:z.signal}:{})});return U.client.query(...Cr(H,te,{pageParam:(K=z.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:z.direction}))}}),U.queryClient);return q.trpc=rh({path:O}),[q.data,q]}return{Provider:c,createClient:s,useContext:u,useUtils:u,useQuery:m,usePrefetchQuery:g,useSuspenseQuery:h,useQueries:(O,C)=>{const{ssrState:j,queryClient:k,prefetchQuery:$,client:B}=u(),U=eI(B),H=O(U);if(typeof window>"u"&&j==="prepass")for(const Y of H){var G;const J=Y;((G=J.trpc)===null||G===void 0?void 0:G.ssr)!==!1&&!k.getQueryCache().find({queryKey:J.queryKey})&&$(J.queryKey,J)}return Q8({queries:H.map(Y=>(0,Re.default)((0,Re.default)({},Y),{},{queryKey:Y.queryKey})),combine:C?.combine},k)},useSuspenseQueries:O=>{const{queryClient:C,client:j}=u(),k=eI(j),$=O(k),B=zW({queries:$.map(U=>(0,Re.default)((0,Re.default)({},U),{},{queryFn:U.queryFn,queryKey:U.queryKey}))},C);return[B.map(U=>U.data),B]},useMutation:y,useSubscription:N,useInfiniteQuery:w,usePrefetchInfiniteQuery:A,useSuspenseInfiniteQuery:D}}function fJ(e){const t=tJ(e);return s_(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return R.useMemo(()=>oJ(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function mJ(e){const t=dJ();return fJ(t)}const at=mJ(),et=e=>typeof e=="string",ah=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},nI=e=>e==null?"":""+e,hJ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},pJ=/###/g,rI=e=>e&&e.indexOf("###")>-1?e.replace(pJ,"."):e,aI=e=>!e||et(e),Sh=(e,t,n)=>{const r=et(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(aI(e))return{};const s=rI(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return aI(e)?{}:{obj:e,k:rI(r[o])}},iI=(e,t,n)=>{const{obj:r,k:o}=Sh(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],c=t.slice(0,t.length-1),u=Sh(e,c,Object);for(;u.obj===void 0&&c.length;)s=`${c[c.length-1]}.${s}`,c=c.slice(0,c.length-1),u=Sh(e,c,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},gJ=(e,t,n,r)=>{const{obj:o,k:s}=Sh(e,t,Object);o[s]=o[s]||[],o[s].push(n)},Jb=(e,t)=>{const{obj:n,k:r}=Sh(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},vJ=(e,t,n)=>{const r=Jb(e,n);return r!==void 0?r:Jb(t,n)},g9=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?et(e[r])||e[r]instanceof String||et(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):g9(e[r],t[r],n):e[r]=t[r]);return e},dc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var bJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const yJ=e=>et(e)?e.replace(/[&<>"'\/]/g,t=>bJ[t]):e;class xJ{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const NJ=[" ",",","?","!",";"],wJ=new xJ(20),EJ=(e,t,n)=>{t=t||"",n=n||"";const r=NJ.filter(c=>t.indexOf(c)<0&&n.indexOf(c)<0);if(r.length===0)return!0;const o=wJ.getRegExp(`(${r.map(c=>c==="?"?"\\?":c).join("|")})`);let s=!o.test(e);if(!s){const c=e.indexOf(n);c>0&&!o.test(e.substring(0,c))&&(s=!0)}return s},rT=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let c,u="";for(let f=s;f<r.length;++f)if(f!==s&&(u+=n),u+=r[f],c=o[u],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&f<r.length-1)continue;s+=f-s+1;break}o=c}return o},Ih=e=>e?.replace("_","-"),SJ={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class ey{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||SJ,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(et(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ey(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ey(this.logger,t)}}var Ji=new ey;let vx=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,s])=>{for(let c=0;c<s;c++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,s])=>{for(let c=0;c<s;c++)o.apply(o,[t,...n])})}};class oI extends vx{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,o={}){const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):et(r)&&s?u.push(...r.split(s)):u.push(r)));const f=Jb(this.data,u);return!f&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),f||!c||!et(r)?f:rT(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o,s={silent:!1}){const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(c?r.split(c):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),iI(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const s in r)(et(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s,c={silent:!1,skipCopy:!1}){let u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let f=Jb(this.data,u)||{};c.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?g9(f,r,s):f={...f,...r},iI(this.data,u,f),c.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var v9={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{t=this.processors[s]?.process(t,n,r,o)??t}),t}};const b9=Symbol("i18next/PATH_KEY");function AJ(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===b9?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function aT(e,t){const{[b9]:n}=e(AJ());return n.join(t?.keySeparator??".")}const sI={},dE=e=>!et(e)&&typeof e!="boolean"&&typeof e!="number";class ty extends vx{constructor(t,n={}){super(),hJ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ji.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const o=this.resolve(t,r);if(o?.res===void 0)return!1;const s=dE(o.res);return!(r.returnObjects===!1&&s)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const c=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!EJ(t,r,o);if(c&&!u){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:et(s)?[s]:s};const m=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(m[0])>-1)&&(s=m.shift()),t=m.join(o)}return{key:t,namespaces:et(s)?[s]:s}}translate(t,n,r){let o=typeof n=="object"?{...n}:n;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=aT(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const s=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:u,namespaces:f}=this.extractFromKey(t[t.length-1],o),m=f[f.length-1];let g=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const h=o.lng||this.language,y=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return y?s?{res:`${m}${g}${u}`,usedKey:u,exactUsedKey:u,usedLng:h,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${g}${u}`:s?{res:u,usedKey:u,exactUsedKey:u,usedLng:h,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:u;const x=this.resolve(t,o);let S=x?.res;const N=x?.usedKey||u,w=x?.exactUsedKey||u,A=["[object Number]","[object Function]","[object RegExp]"],D=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!et(o.count),O=ty.hasDefaultValue(o),C=P?this.pluralResolver.getSuffix(h,o.count,o):"",j=o.ordinal&&P?this.pluralResolver.getSuffix(h,o.count,{ordinal:!1}):"",k=P&&!o.ordinal&&o.count===0,$=k&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${C}`]||o[`defaultValue${j}`]||o.defaultValue;let B=S;_&&!S&&O&&(B=$);const U=dE(B),H=Object.prototype.toString.apply(B);if(_&&B&&U&&A.indexOf(H)<0&&!(et(D)&&Array.isArray(B))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const G=this.options.returnedObjectHandler?this.options.returnedObjectHandler(N,B,{...o,ns:f}):`key '${u} (${this.language})' returned an object instead of string.`;return s?(x.res=G,x.usedParams=this.getUsedParamsDetails(o),x):G}if(c){const G=Array.isArray(B),Y=G?[]:{},J=G?w:N;for(const q in B)if(Object.prototype.hasOwnProperty.call(B,q)){const z=`${J}${c}${q}`;O&&!S?Y[q]=this.translate(z,{...o,defaultValue:dE($)?$[q]:void 0,joinArrays:!1,ns:f}):Y[q]=this.translate(z,{...o,joinArrays:!1,ns:f}),Y[q]===z&&(Y[q]=B[q])}S=Y}}else if(_&&et(D)&&Array.isArray(S))S=S.join(D),S&&(S=this.extendTranslation(S,t,o,r));else{let G=!1,Y=!1;!this.isValidLookup(S)&&O&&(G=!0,S=$),this.isValidLookup(S)||(Y=!0,S=u);const q=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:S,z=O&&$!==S&&this.options.updateMissing;if(Y||G||z){if(this.logger.log(z?"updateKey":"missingKey",h,m,u,z?$:S),c){const L=this.resolve(u,{...o,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let L=0;L<te.length;L++)K.push(te[L]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(o.lng||this.language):K.push(o.lng||this.language);const ne=(L,Q,W)=>{const ae=O&&W!==S?W:q;this.options.missingKeyHandler?this.options.missingKeyHandler(L,m,Q,ae,z,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(L,m,Q,ae,z,o),this.emit("missingKey",L,m,Q,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(L=>{const Q=this.pluralResolver.getSuffixes(L,o);k&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(W=>{ne([L],u+W,o[`defaultValue${W}`]||$)})}):ne(K,u,$))}S=this.extendTranslation(S,t,o,x,r),Y&&S===u&&this.options.appendNamespaceToMissingKey&&(S=`${m}${g}${u}`),(Y||G)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${u}`:u,G?S:void 0,o))}return s?(x.res=S,x.usedParams=this.getUsedParamsDetails(o),x):S}extendTranslation(t,n,r,o,s){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=et(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const h=t.match(this.interpolator.nestingRegexp);m=h&&h.length}let g=r.replace&&!et(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),t=this.interpolator.interpolate(t,g,r.lng||this.language||o.usedLng,r),f){const h=t.match(this.interpolator.nestingRegexp),y=h&&h.length;m<y&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>s?.[0]===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=et(c)?[c]:c;return t!=null&&u?.length&&r.applyPostProcessor!==!1&&(t=v9.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,s,c,u;return et(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(f,n),g=m.key;o=g;let h=m.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const y=n.count!==void 0&&!et(n.count),x=y&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(et(n.context)||typeof n.context=="number")&&n.context!=="",N=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(w=>{this.isValidLookup(r)||(u=w,!sI[`${N[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&(sI[`${N[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${N.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),N.forEach(A=>{if(this.isValidLookup(r))return;c=A;const D=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(D,g,A,w,n);else{let P;y&&(P=this.pluralResolver.getSuffix(A,n.count,n));const O=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&P.indexOf(C)===0&&D.push(g+P.replace(C,this.options.pluralSeparator)),D.push(g+P),x&&D.push(g+O)),S){const j=`${g}${this.options.contextSeparator||"_"}${n.context}`;D.push(j),y&&(n.ordinal&&P.indexOf(C)===0&&D.push(j+P.replace(C,this.options.pluralSeparator)),D.push(j+P),x&&D.push(j+O))}}let _;for(;_=D.pop();)this.isValidLookup(r)||(s=_,r=this.getResource(A,w,_,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:c,usedNS:u}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!et(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class lI{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ji.create("languageUtils")}getScriptPartFromCode(t){if(t=Ih(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ih(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(et(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return n=o;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(c=>{if(c===s)return c;if(!(c.indexOf("-")<0&&s.indexOf("-")<0)&&(c.indexOf("-")>0&&s.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===s||c.indexOf(s)===0&&s.length>1))return c})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),et(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),o=[],s=c=>{c&&(this.isSupportedCode(c)?o.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return et(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):et(t)&&s(this.formatLanguageCode(t)),r.forEach(c=>{o.indexOf(c)<0&&s(this.formatLanguageCode(c))}),o}}const cI={zero:0,one:1,two:2,few:3,many:4,other:5},uI={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class OJ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ji.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Ih(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let c;try{c=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),uI;if(!t.match(/-|_/))return uI;const f=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(f,n)}return this.pluralRulesCache[s]=c,c}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((o,s)=>cI[o]-cI[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,n,r={}){const o=this.getRule(t,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const dI=(e,t,n,r=".",o=!0)=>{let s=vJ(e,t,n);return!s&&o&&et(n)&&(s=rT(e,n,r),s===void 0&&(s=rT(t,n,r))),s},fE=e=>e.replace(/\$/g,"$$$$");class fI{constructor(t={}){this.logger=Ji.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:c,suffix:u,suffixEscaped:f,formatSeparator:m,unescapeSuffix:g,unescapePrefix:h,nestingPrefix:y,nestingPrefixEscaped:x,nestingSuffix:S,nestingSuffixEscaped:N,nestingOptionsSeparator:w,maxReplaces:A,alwaysFormat:D}=t.interpolation;this.escape=n!==void 0?n:yJ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?dc(s):c||"{{",this.suffix=u?dc(u):f||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=y?dc(y):x||dc("$t("),this.nestingSuffix=S?dc(S):N||dc(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=A||1e3,this.alwaysFormat=D!==void 0?D:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,c,u;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=x=>{if(x.indexOf(this.formatSeparator)<0){const A=dI(n,f,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(A,void 0,r,{...o,...n,interpolationkey:x}):A}const S=x.split(this.formatSeparator),N=S.shift().trim(),w=S.join(this.formatSeparator).trim();return this.format(dI(n,f,N,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...n,interpolationkey:N})};this.resetRegExp();const g=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>fE(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?fE(this.escape(x)):fE(x)}].forEach(x=>{for(u=0;s=x.regex.exec(t);){const S=s[1].trim();if(c=m(S),c===void 0)if(typeof g=="function"){const w=g(t,s,o);c=et(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))c="";else if(h){c=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),c="";else!et(c)&&!this.useRawValueToEscape&&(c=nI(c));const N=x.safeValue(c);if(t=t.replace(s[0],N),h?(x.regex.lastIndex+=c.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,s,c;const u=(f,m)=>{const g=this.nestingOptionsSeparator;if(f.indexOf(g)<0)return f;const h=f.split(new RegExp(`${dc(g)}[ ]*{`));let y=`{${h[1]}`;f=h[0],y=this.interpolate(y,c);const x=y.match(/'/g),S=y.match(/"/g);((x?.length??0)%2===0&&!S||(S?.length??0)%2!==0)&&(y=y.replace(/'/g,'"'));try{c=JSON.parse(y),m&&(c={...m,...c})}catch(N){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,N),`${f}${g}${y}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,f};for(;o=this.nestingRegexp.exec(t);){let f=[];c={...r},c=c.replace&&!et(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;const m=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(m!==-1&&(f=o[1].slice(m).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),s=n(u.call(this,o[1].trim(),c),c),s&&o[0]===t&&!et(s))return s;et(s)||(s=nI(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f.length&&(s=f.reduce((g,h)=>this.format(g,h,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const DJ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(c=>{if(c){const[u,...f]=c.split(":"),m=f.join(":").trim().replace(/^'+|'+$/g,""),g=u.trim();n[g]||(n[g]=m),m==="false"&&(n[g]=!1),m==="true"&&(n[g]=!0),isNaN(m)||(n[g]=parseInt(m,10))}})}return{formatName:t,formatOptions:n}},mI=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const c=r+JSON.stringify(s);let u=t[c];return u||(u=e(Ih(r),o),t[c]=u),u(n)}},TJ=e=>(t,n,r)=>e(Ih(n),r)(t);class CJ{constructor(t={}){this.logger=Ji.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?mI:TJ;this.formats={number:r((o,s)=>{const c=new Intl.NumberFormat(o,{...s});return u=>c.format(u)}),currency:r((o,s)=>{const c=new Intl.NumberFormat(o,{...s,style:"currency"});return u=>c.format(u)}),datetime:r((o,s)=>{const c=new Intl.DateTimeFormat(o,{...s});return u=>c.format(u)}),relativetime:r((o,s)=>{const c=new Intl.RelativeTimeFormat(o,{...s});return u=>c.format(u,s.range||"day")}),list:r((o,s)=>{const c=new Intl.ListFormat(o,{...s});return u=>c.format(u)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=mI(n)}format(t,n,r,o={}){const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,f)=>{const{formatName:m,formatOptions:g}=DJ(f);if(this.formats[m]){let h=u;try{const y=o?.formatParams?.[o.interpolationkey]||{},x=y.locale||y.lng||o.locale||o.lng||r;h=this.formats[m](u,x,{...g,...o,...y})}catch(y){this.logger.warn(y)}return h}else this.logger.warn(`there was no format function for ${m}`);return u},t)}}const _J=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class RJ extends vx{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ji.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(t,n,r,o){const s={},c={},u={},f={};return t.forEach(m=>{let g=!0;n.forEach(h=>{const y=`${m}|${h}`;!r.reload&&this.store.hasResourceBundle(m,h)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?c[y]===void 0&&(c[y]=!0):(this.state[y]=1,g=!1,c[y]===void 0&&(c[y]=!0),s[y]===void 0&&(s[y]=!0),f[h]===void 0&&(f[h]=!0)))}),g||(u[m]=!0)}),(Object.keys(s).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(c),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(f)}}loaded(t,n,r){const o=t.split("|"),s=o[0],c=o[1];n&&this.emit("failedLoading",s,c,n),!n&&r&&this.store.addResourceBundle(s,c,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(f=>{gJ(f.loaded,[s],c),_J(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(m=>{u[m]||(u[m]={});const g=f.loaded[m];g.length&&g.forEach(h=>{u[m][h]===void 0&&(u[m][h]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(f=>!f.done)}read(t,n,r,o=0,s=this.retryTimeout,c){if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:c});return}this.readingCalls++;const u=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(m&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,c)},s);return}c(m,g)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const m=f(t,n);m&&typeof m.then=="function"?m.then(g=>u(null,g)).catch(u):u(null,m)}catch(m){u(m)}return}return f(t,n,u)}prepareLoading(t,n,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();et(t)&&(t=this.languageUtils.toResolveHierarchy(t)),et(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(c=>{this.loadOne(c)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(c,u)=>{c&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,c),!c&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,c,u)})}saveMissing(t,n,r,o,s,c={},u=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const f={...c,isUpdate:s},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(t,n,r,o,f):g=m(t,n,r,o),g&&typeof g.then=="function"?g.then(h=>u(null,h)).catch(u):u(null,g)}catch(g){u(g)}else m(t,n,r,o,u,f)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const mE=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),et(e[1])&&(t.defaultValue=e[1]),et(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),hI=e=>(et(e.ns)&&(e.ns=[e.ns]),et(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),et(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),pb=()=>{},jJ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},y9="__i18next_supportNoticeShown",PJ=()=>typeof globalThis<"u"&&!!globalThis[y9],MJ=()=>{typeof globalThis<"u"&&(globalThis[y9]=!0)},kJ=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(t=>t?.projectId));class Ah extends vx{constructor(t={},n){if(super(),this.options=hI(t),this.services={},this.logger=Ji,this.modules={external:[]},jJ(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(et(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=mE();this.options={...r,...this.options,...hI(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!kJ(this)&&!PJ()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),MJ());const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Ji.init(o(this.modules.logger),this.options):Ji.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=CJ;const g=new lI(this.options);this.store=new oI(this.options.resources,this.options);const h=this.services;h.logger=Ji,h.resourceStore=this.store,h.languageUtils=g,h.pluralResolver=new OJ(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(h.formatter=o(m),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new fI(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new RJ(o(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(x,...S)=>{this.emit(x,...S)}),this.modules.languageDetector&&(h.languageDetector=o(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=o(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new ty(this.services,this.options),this.translator.on("*",(x,...S)=>{this.emit(x,...S)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,n||(n=pb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const u=ah(),f=()=>{const m=(g,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(h),n(g,h)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),u}loadResources(t,n=pb){let r=n;const o=et(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(m=>{m!=="cimode"&&s.indexOf(m)<0&&s.push(m)})};o?c(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>c(f)),this.options.preload?.forEach?.(u=>c(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=ah();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=pb),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&v9.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=ah();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},s=(u,f)=>{f?this.isLanguageChangingTo===t&&(o(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),n&&n(u,(...m)=>this.t(...m))},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const f=et(u)?u:u&&u[0],m=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(et(u)?[u]:u);m&&(this.language||o(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,g=>{s(g,m)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),r}getFixedT(t,n,r){const o=(s,c,...u)=>{let f;typeof c!="object"?f=this.options.overloadTranslationOptionHandler([s,c].concat(u)):f={...c},f.lng=f.lng||o.lng,f.lngs=f.lngs||o.lngs,f.ns=f.ns||o.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||o.keyPrefix);const m=this.options.keySeparator||".";let g;return f.keyPrefix&&Array.isArray(s)?g=s.map(h=>(typeof h=="function"&&(h=aT(h,{...this.options,...c})),`${f.keyPrefix}${m}${h}`)):(typeof s=="function"&&(s=aT(s,{...this.options,...c})),g=f.keyPrefix?`${f.keyPrefix}${m}${s}`:s),this.t(g,f)};return et(t)?o.lng=t:o.lngs=t,o.ns=n,o.keyPrefix=r,o}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const c=(u,f)=>{const m=this.services.backendConnector.state[`${u}|${f}`];return m===-1||m===0||m===2};if(n.precheck){const u=n.precheck(this,c);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(r,t)&&(!o||c(s,t)))}loadNamespaces(t,n){const r=ah();return this.options.ns?(et(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ah();et(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(c=>o.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return s.length?(this.options.preload=o.concat(s),this.loadResources(c=>{r.resolve(),n&&n(c)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const s=o.getTextInfo();if(s&&s.direction)return s.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new lI(mE());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Ah(t,n);return r.createInstance=Ah.createInstance,r}cloneInstance(t={},n=pb){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new Ah(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((f,m)=>(f[m]={...this.store.data[m]},f[m]=Object.keys(f[m]).reduce((g,h)=>(g[h]={...f[m][h]},g),f[m]),f),{});s.store=new oI(u,o),s.services.resourceStore=s.store}if(t.interpolation){const f={...mE().interpolation,...this.options.interpolation,...t.interpolation},m={...o,interpolation:f};s.services.interpolator=new fI(m)}return s.translator=new ty(s.services,o),s.translator.on("*",(u,...f)=>{s.emit(u,...f)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const br=Ah.createInstance();br.createInstance;br.dir;br.init;br.loadResources;br.reloadResources;br.use;br.changeLanguage;br.getFixedT;br.t;br.exists;br.setDefaultNamespace;br.hasLoadedNamespace;br.loadNamespaces;br.loadLanguages;const{slice:LJ,forEach:IJ}=[];function VJ(e){return IJ.call(LJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function $J(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const pI=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,BJ=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},o=encodeURIComponent(t);let s=`${e}=${o}`;if(r.maxAge>0){const c=r.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(c)}`}if(r.domain){if(!pI.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!pI.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},gI={create(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+n*60*1e3)),r&&(o.domain=r),document.cookie=BJ(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let o=n[r];for(;o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return o.substring(t.length,o.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var zJ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return gI.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&gI.create(n,e,r,o,s)}},UJ={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let c=0;c<s.length;c++){const u=s[c].indexOf("=");u>0&&s[c].substring(0,u)===t&&(n=s[c].substring(u+1))}}return n}},qJ={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:o}=window.location;if(o&&o.length>2){const s=o.substring(1);if(t){const c=s.split("&");for(let u=0;u<c.length;u++){const f=c[u].indexOf("=");f>0&&c[u].substring(0,f)===t&&(r=c[u].substring(f+1))}}if(r)return r;if(!r&&n>-1){const c=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(c)?c[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let ud=null;const vI=()=>{if(ud!==null)return ud;try{if(ud=typeof window<"u"&&window.localStorage!==null,!ud)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ud=!1}return ud};var HJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&vI())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&vI()&&window.localStorage.setItem(n,e)}};let dd=null;const bI=()=>{if(dd!==null)return dd;try{if(dd=typeof window<"u"&&window.sessionStorage!==null,!dd)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{dd=!1}return dd};var FJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&bI())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&bI()&&window.sessionStorage.setItem(n,e)}},KJ={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:o}=navigator;if(n)for(let s=0;s<n.length;s++)t.push(n[s]);r&&t.push(r),o&&t.push(o)}return t.length>0?t:void 0}},GJ={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},YJ={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},QJ={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let x9=!1;try{document.cookie,x9=!0}catch{}const N9=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];x9||N9.splice(1,1);const XJ=()=>({order:N9,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class w9{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=VJ(n,this.options||{},XJ()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=o=>o.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(zJ),this.addDetector(UJ),this.addDetector(HJ),this.addDetector(FJ),this.addDetector(KJ),this.addDetector(GJ),this.addDetector(YJ),this.addDetector(QJ),this.addDetector(qJ)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let o=this.detectors[r].lookup(this.options);o&&typeof o=="string"&&(o=[o]),o&&(n=n.concat(o))}}),n=n.filter(r=>r!=null&&!$J(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}w9.type="languageDetector";const WJ=(e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);jc(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},yI={},E9=(e,t,n,r)=>{jc(n)&&yI[n]||(jc(n)&&(yI[n]=new Date),WJ(e,t,n,r))},S9=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},iT=(e,t,n)=>{e.loadNamespaces(t,S9(e,n))},xI=(e,t,n,r)=>{if(jc(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return iT(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,S9(e,r))},ZJ=(e,t,n={})=>!t.languages||!t.languages.length?(E9(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,o)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,e))return!1}}),jc=e=>typeof e=="string",JJ=e=>typeof e=="object"&&e!==null,eee=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,tee={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},nee=e=>tee[e],ree=e=>e.replace(eee,nee);let oT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ree,transDefaultProps:void 0};const aee=(e={})=>{oT={...oT,...e}},iee=()=>oT;let A9;const oee=e=>{A9=e},see=()=>A9,lee={type:"3rdParty",init(e){aee(e.options.react),oee(e)}},cee=R.createContext();class uee{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var hE={exports:{}},pE={},NI;function dee(){if(NI)return pE;NI=1;/**
* @license React
* use-sync-external-store-shim.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){function e(x,S){return x===S&&(x!==0||1/x===1/S)||x!==x&&S!==S}function t(x,S){g||o.startTransition===void 0||(g=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var N=S();if(!h){var w=S();s(N,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}w=c({inst:{value:N,getSnapshot:S}});var A=w[0].inst,D=w[1];return f(function(){A.value=N,A.getSnapshot=S,n(A)&&D({inst:A})},[x,N,S]),u(function(){return n(A)&&D({inst:A}),x(function(){n(A)&&D({inst:A})})},[x]),m(N),N}function n(x){var S=x.getSnapshot;x=x.value;try{var N=S();return!s(x,N)}catch{return!0}}function r(x,S){return S()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=uf(),s=typeof Object.is=="function"?Object.is:e,c=o.useState,u=o.useEffect,f=o.useLayoutEffect,m=o.useDebugValue,g=!1,h=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;pE.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:y,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),pE}var wI;function fee(){return wI||(wI=1,hE.exports=dee()),hE.exports}var O9=fee();const mee=(e,t)=>jc(t)?t:JJ(t)&&jc(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,hee={t:mee,ready:!1},pee=()=>()=>{},jp=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=R.useContext(cee)||{},s=n||r||see();s&&!s.reportNamespaces&&(s.reportNamespaces=new uee),s||E9(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=R.useMemo(()=>({...iee(),...s?.options?.react,...t}),[s,t]),{useSuspense:u,keyPrefix:f}=c,m=o||s?.options?.defaultNS,g=jc(m)?[m]:m||["translation"],h=R.useMemo(()=>g,g);s?.reportNamespaces?.addUsedNamespaces?.(h);const y=R.useRef(0),x=R.useCallback($=>{if(!s)return pee;const{bindI18n:B,bindI18nStore:U}=c,H=()=>{y.current+=1,$()};return B&&s.on(B,H),U&&s.store.on(U,H),()=>{B&&B.split(" ").forEach(G=>s.off(G,H)),U&&U.split(" ").forEach(G=>s.store.off(G,H))}},[s,c]),S=R.useRef(),N=R.useCallback(()=>{if(!s)return hee;const $=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(J=>ZJ(J,s,c)),B=t.lng||s.language,U=y.current,H=S.current;if(H&&H.ready===$&&H.lng===B&&H.keyPrefix===f&&H.revision===U)return H;const Y={t:s.getFixedT(B,c.nsMode==="fallback"?h:h[0],f),ready:$,lng:B,keyPrefix:f,revision:U};return S.current=Y,Y},[s,h,f,c,t.lng]),[w,A]=R.useState(0),{t:D,ready:_}=O9.useSyncExternalStore(x,N,N);R.useEffect(()=>{if(s&&!_&&!u){const $=()=>A(B=>B+1);t.lng?xI(s,t.lng,h,$):iT(s,h,$)}},[s,t.lng,h,_,u,w]);const P=s||{},O=R.useRef(null),C=R.useRef(),j=$=>{const B=Object.getOwnPropertyDescriptors($);B.__original&&delete B.__original;const U=Object.create(Object.getPrototypeOf($),B);if(!Object.prototype.hasOwnProperty.call(U,"__original"))try{Object.defineProperty(U,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return U},k=R.useMemo(()=>{const $=P,B=$?.language;let U=$;$&&(O.current&&O.current.__original===$?C.current!==B?(U=j($),O.current=U,C.current=B):U=O.current:(U=j($),O.current=U,C.current=B));const H=[D,U,_];return H.t=D,H.i18n=U,H.ready=_,H},[D,P,_,P.resolvedLanguage,P.language,P.languages]);if(s&&u&&!_)throw new Promise($=>{const B=()=>$();t.lng?xI(s,t.lng,h,B):iT(s,h,B)});return k},gee={common:{save:"保存",cancel:"取消",delete:"删除",edit:"编辑",add:"新增",search:"搜索",filter:"筛选",export:"导出",import:"导入",refresh:"刷新",confirm:"确认",close:"关闭",loading:"加载中...",noData:"暂无数据",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",all:"全部",enable:"启用",disable:"禁用",active:"激活",inactive:"未激活",status:"状态",actions:"操作",createdAt:"创建时间",updatedAt:"更新时间",version:"版本",description:"描述",name:"名称",type:"类型",language:"语言",jurisdiction:"司法辖区",assetType:"资产类型"},auth:{login:"管理员登录",loginSubtitle:"使用您的 NAC 系统账户登录",email:"邮箱地址",password:"密码",loginButton:"登录系统",loggingIn:"登录中...",loginSuccess:"登录成功",loginFailed:"登录失败,请检查邮箱和密码",logout:"退出登录",logoutSuccess:"已退出登录",authNotice:"本系统使用 NAC 原生认证服务,所有操作均记录审计日志",verifying:"验证身份中...",unauthorized:"无访问权限",adminOnly:"此系统仅限管理员访问"},nav:{dashboard:"态势感知",knowledgeBase:"知识库管理",crawlers:"采集器监控",approvalCases:"AI审批案例",tagEngine:"标签引擎",protocolRegistry:"协议族注册表",auditLog:"权限与审计",systemTitle:"NAC 知识引擎",systemSubtitle:"管理后台",adminPanel:"管理员面板"},dashboard:{title:"全局态势感知",subtitle:"实时监控知识引擎运行状态",totalRules:"合规规则总数",activeCrawlers:"活跃采集器",pendingReviews:"待审批案例",approvalRate:"审批通过率",knowledgeGrowth:"知识库增长趋势",jurisdictionCoverage:"司法辖区覆盖",assetDistribution:"资产类型分布",crawlerHealth:"采集器健康度",recentActivity:"最近活动",systemStatus:"系统状态",allSystemsNormal:"所有系统运行正常",lastUpdated:"最后更新",viewAll:"查看全部",rules:"条规则",crawlers:"个采集器",cases:"个案例"},knowledgeBase:{title:"知识库管理",subtitle:"管理合规规则、法规条文与交易细则",addRule:"新增规则",editRule:"编辑规则",deleteRule:"删除规则",ruleTitle:"规则标题",ruleContent:"规则内容",ruleSource:"规则来源",effectiveDate:"生效日期",translationStatus:"翻译状态",original:"原文",aiTranslated:"AI翻译",humanReviewed:"人工审核",addTranslation:"添加翻译",missingTranslation:"缺少翻译",languageCoverage:"语言覆盖",contentLanguage:"内容语言",switchLanguage:"切换语言查看",ruleActivated:"规则已启用",ruleDeactivated:"规则已禁用",searchPlaceholder:"搜索规则标题、内容或来源...",filterByJurisdiction:"按辖区筛选",filterByAssetType:"按资产类型筛选",filterByStatus:"按状态筛选",totalRules:"共 {{count}} 条规则"},crawlers:{title:"采集器监控与管理",subtitle:"实时监控内部与外部数据采集器",internalCrawlers:"内部采集器",externalCrawlers:"外部采集器",crawlerName:"采集器名称",crawlerType:"采集器类型",lastRun:"最后运行",nextRun:"下次运行",successRate:"成功率",totalCollected:"采集总量",triggerNow:"立即触发",triggering:"触发中...",triggered:"已触发采集任务",addSource:"新增采集源",editSource:"编辑采集源",sourceUrl:"采集源URL",frequency:"采集频率",internal:"内部",external:"外部",running:"运行中",idle:"空闲",error:"错误",logs:"采集日志",viewLogs:"查看日志"},approvals:{title:"AI审批案例审查",subtitle:"审查AI自动审批结果对中风险案例进行人工复核",caseId:"案例ID",assetName:"资产名称",applicant:"申请人",submittedAt:"提交时间",riskLevel:"风险等级",aiDecision:"AI决策",humanDecision:"人工决策",reviewStatus:"审核状态",pendingReview:"待审核",approved:"已通过",rejected:"已拒绝",underReview:"审核中",highRisk:"高风险",mediumRisk:"中风险",lowRisk:"低风险",approve:"通过",reject:"拒绝",reviewComment:"审核意见",addComment:"添加审核意见...",submitReview:"提交审核",aiConfidence:"AI置信度",complianceScore:"合规评分",missingDocuments:"缺失文件",reviewHistory:"审核历史",caseDetails:"案例详情",viewDetails:"查看详情"},tagEngine:{title:"标签与规则引擎治理",subtitle:"管理自动化标签序列生成规则",tagId:"标签ID",tagName:"标签名称",tagCategory:"标签分类",tagRule:"匹配规则",matchPattern:"匹配模式",priority:"优先级",addTag:"新增标签",editTag:"编辑标签",deleteTag:"删除标签",testTag:"测试标签",testInput:"测试输入",testResult:"测试结果",jurisdictionDimension:"司法辖区维度",assetTypeDimension:"资产分类维度",complianceDimension:"合规要求维度",riskDimension:"风险等级维度",crossLanguageAlignment:"跨语言对齐",standardTagId:"标准标签ID",languageMappings:"语言映射"},protocols:{title:"协议族注册表管理",subtitle:"管理接入AI审批系统的所有NAC原生协议",protocolName:"协议名称",protocolCode:"协议代码",protocolVersion:"协议版本",protocolStatus:"协议状态",triggerConditions:"触发条件",endpoint:"服务端点",addProtocol:"注册新协议",editProtocol:"编辑协议",deactivateProtocol:"停用协议",activateProtocol:"激活协议",protocolActivated:"协议已激活",protocolDeactivated:"协议已停用",registeredAt:"注册时间",lastCalled:"最后调用",callCount:"调用次数",protocolFamily:"协议族",coreProtocols:"核心协议"},audit:{title:"权限与审计管理",subtitle:"基于角色的访问控制与不可篡改审计日志",users:"用户管理",roles:"角色管理",auditLogs:"审计日志",userId:"用户ID",userName:"用户名",userEmail:"邮箱",userRole:"角色",lastLogin:"最后登录",admin:"管理员",reviewer:"审核员",legal:"法务",operator:"运营",action:"操作",resource:"资源",ipAddress:"IP地址",timestamp:"时间戳",result:"结果",details:"详情",exportLogs:"导出日志",filterByUser:"按用户筛选",filterByAction:"按操作筛选",filterByDate:"按日期筛选",immutableNote:"审计日志不可篡改,所有关键操作均被记录"},languageSwitcher:{selectLanguage:"选择语言",currentLanguage:"当前语言",knowledgeLanguage:"知识库语言"},jurisdictions:{CN:"中国",HK:"香港",US:"美国",EU:"欧盟",SG:"新加坡",AE:"阿联酋",JP:"日本",KR:"韩国",RU:"俄罗斯",GB:"英国",ALL:"全部辖区"},assetTypes:{"RE.RESIDENTIAL":"住宅房地产","RE.COMMERCIAL":"商业地产","RE.INDUSTRIAL":"工业地产","FIN.EQUITY":"股权资产","FIN.DEBT":"债权资产","FIN.FUND":"基金份额","COMM.PRECIOUS":"贵金属","COMM.ENERGY":"能源商品","IP.PATENT":"专利权","IP.COPYRIGHT":"版权","INFRA.TRANSPORT":"交通基础设施",ALL:"全部类型"}},vee={common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",search:"Search",filter:"Filter",export:"Export",import:"Import",refresh:"Refresh",confirm:"Confirm",close:"Close",loading:"Loading...",noData:"No data available",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info",all:"All",enable:"Enable",disable:"Disable",active:"Active",inactive:"Inactive",status:"Status",actions:"Actions",createdAt:"Created At",updatedAt:"Updated At",version:"Version",description:"Description",name:"Name",type:"Type",language:"Language",jurisdiction:"Jurisdiction",assetType:"Asset Type"},auth:{login:"Administrator Login",loginSubtitle:"Sign in with your NAC system account",email:"Email Address",password:"Password",loginButton:"Sign In",loggingIn:"Signing in...",loginSuccess:"Login successful",loginFailed:"Login failed. Please check your email and password.",logout:"Sign Out",logoutSuccess:"Signed out successfully",authNotice:"This system uses NAC native authentication. All operations are recorded in audit logs.",verifying:"Verifying identity...",unauthorized:"Access Denied",adminOnly:"This system is restricted to administrators only."},nav:{dashboard:"Situational Awareness",knowledgeBase:"Knowledge Base",crawlers:"Crawler Monitor",approvalCases:"AI Approval Cases",tagEngine:"Tag Engine",protocolRegistry:"Protocol Registry",auditLog:"Permissions & Audit",systemTitle:"NAC Knowledge Engine",systemSubtitle:"Admin Console",adminPanel:"Admin Panel"},dashboard:{title:"Global Situational Awareness",subtitle:"Real-time monitoring of knowledge engine status",totalRules:"Total Compliance Rules",activeCrawlers:"Active Crawlers",pendingReviews:"Pending Reviews",approvalRate:"Approval Rate",knowledgeGrowth:"Knowledge Base Growth",jurisdictionCoverage:"Jurisdiction Coverage",assetDistribution:"Asset Type Distribution",crawlerHealth:"Crawler Health",recentActivity:"Recent Activity",systemStatus:"System Status",allSystemsNormal:"All systems operational",lastUpdated:"Last Updated",viewAll:"View All",rules:"rules",crawlers:"crawlers",cases:"cases"},knowledgeBase:{title:"Knowledge Base Management",subtitle:"Manage compliance rules, regulations and transaction details",addRule:"Add Rule",editRule:"Edit Rule",deleteRule:"Delete Rule",ruleTitle:"Rule Title",ruleContent:"Rule Content",ruleSource:"Rule Source",effectiveDate:"Effective Date",translationStatus:"Translation Status",original:"Original",aiTranslated:"AI Translated",humanReviewed:"Human Reviewed",addTranslation:"Add Translation",missingTranslation:"Missing Translation",languageCoverage:"Language Coverage",contentLanguage:"Content Language",switchLanguage:"Switch language to view",ruleActivated:"Rule activated",ruleDeactivated:"Rule deactivated",searchPlaceholder:"Search rule title, content or source...",filterByJurisdiction:"Filter by Jurisdiction",filterByAssetType:"Filter by Asset Type",filterByStatus:"Filter by Status",totalRules:"{{count}} rules total"},crawlers:{title:"Crawler Monitoring & Management",subtitle:"Real-time monitoring of internal and external data crawlers",internalCrawlers:"Internal Crawlers",externalCrawlers:"External Crawlers",crawlerName:"Crawler Name",crawlerType:"Crawler Type",lastRun:"Last Run",nextRun:"Next Run",successRate:"Success Rate",totalCollected:"Total Collected",triggerNow:"Trigger Now",triggering:"Triggering...",triggered:"Crawl task triggered",addSource:"Add Source",editSource:"Edit Source",sourceUrl:"Source URL",frequency:"Frequency",internal:"Internal",external:"External",running:"Running",idle:"Idle",error:"Error",logs:"Logs",viewLogs:"View Logs"},approvals:{title:"AI Approval Case Review",subtitle:"Review AI auto-approval results and manually review medium-risk cases",caseId:"Case ID",assetName:"Asset Name",applicant:"Applicant",submittedAt:"Submitted At",riskLevel:"Risk Level",aiDecision:"AI Decision",humanDecision:"Human Decision",reviewStatus:"Review Status",pendingReview:"Pending Review",approved:"Approved",rejected:"Rejected",underReview:"Under Review",highRisk:"High Risk",mediumRisk:"Medium Risk",lowRisk:"Low Risk",approve:"Approve",reject:"Reject",reviewComment:"Review Comment",addComment:"Add review comment...",submitReview:"Submit Review",aiConfidence:"AI Confidence",complianceScore:"Compliance Score",missingDocuments:"Missing Documents",reviewHistory:"Review History",caseDetails:"Case Details",viewDetails:"View Details"},tagEngine:{title:"Tag & Rule Engine Governance",subtitle:"Manage automated tag sequence generation rules",tagId:"Tag ID",tagName:"Tag Name",tagCategory:"Tag Category",tagRule:"Tag Rule",matchPattern:"Match Pattern",priority:"Priority",addTag:"Add Tag",editTag:"Edit Tag",deleteTag:"Delete Tag",testTag:"Test Tag",testInput:"Test Input",testResult:"Test Result",jurisdictionDimension:"Jurisdiction Dimension",assetTypeDimension:"Asset Type Dimension",complianceDimension:"Compliance Dimension",riskDimension:"Risk Dimension",crossLanguageAlignment:"Cross-Language Alignment",standardTagId:"Standard Tag ID",languageMappings:"Language Mappings"},protocols:{title:"Protocol Registry Management",subtitle:"Manage all NAC native protocols integrated with the AI approval system",protocolName:"Protocol Name",protocolCode:"Protocol Code",protocolVersion:"Protocol Version",protocolStatus:"Protocol Status",triggerConditions:"Trigger Conditions",endpoint:"Service Endpoint",addProtocol:"Register Protocol",editProtocol:"Edit Protocol",deactivateProtocol:"Deactivate Protocol",activateProtocol:"Activate Protocol",protocolActivated:"Protocol activated",protocolDeactivated:"Protocol deactivated",registeredAt:"Registered At",lastCalled:"Last Called",callCount:"Call Count",protocolFamily:"Protocol Family",coreProtocols:"Core Protocols"},audit:{title:"Permissions & Audit Management",subtitle:"Role-based access control and immutable audit logs",users:"User Management",roles:"Role Management",auditLogs:"Audit Logs",userId:"User ID",userName:"Username",userEmail:"Email",userRole:"Role",lastLogin:"Last Login",admin:"Admin",reviewer:"Reviewer",legal:"Legal",operator:"Operator",action:"Action",resource:"Resource",ipAddress:"IP Address",timestamp:"Timestamp",result:"Result",details:"Details",exportLogs:"Export Logs",filterByUser:"Filter by User",filterByAction:"Filter by Action",filterByDate:"Filter by Date",immutableNote:"Audit logs are immutable. All critical operations are recorded."},languageSwitcher:{selectLanguage:"Select Language",currentLanguage:"Current Language",knowledgeLanguage:"Knowledge Base Language"},jurisdictions:{CN:"China",HK:"Hong Kong",US:"United States",EU:"European Union",SG:"Singapore",AE:"UAE",JP:"Japan",KR:"South Korea",RU:"Russia",GB:"United Kingdom",ALL:"All Jurisdictions"},assetTypes:{"RE.RESIDENTIAL":"Residential Real Estate","RE.COMMERCIAL":"Commercial Real Estate","RE.INDUSTRIAL":"Industrial Real Estate","FIN.EQUITY":"Equity Assets","FIN.DEBT":"Debt Assets","FIN.FUND":"Fund Shares","COMM.PRECIOUS":"Precious Metals","COMM.ENERGY":"Energy Commodities","IP.PATENT":"Patents","IP.COPYRIGHT":"Copyrights","INFRA.TRANSPORT":"Transport Infrastructure",ALL:"All Types"}},bee={common:{save:"حفظ",cancel:"إلغاء",delete:"حذف",edit:"تعديل",add:"إضافة",search:"بحث",filter:"تصفية",export:"تصدير",import:"استيراد",refresh:"تحديث",confirm:"تأكيد",close:"إغلاق",loading:"جاري التحميل...",noData:"لا توجد بيانات",success:"تمت العملية بنجاح",error:"فشلت العملية",warning:"تحذير",info:"معلومات",all:"الكل",enable:"تفعيل",disable:"تعطيل",active:"نشط",inactive:"غير نشط",status:"الحالة",actions:"الإجراءات",createdAt:"تاريخ الإنشاء",updatedAt:"تاريخ التحديث",version:"الإصدار",description:"الوصف",name:"الاسم",type:"النوع",language:"اللغة",jurisdiction:"الولاية القضائية",assetType:"نوع الأصل"},auth:{login:"تسجيل دخول المسؤول",loginSubtitle:"سجّل الدخول باستخدام حساب NAC الخاص بك",email:"البريد الإلكتروني",password:"كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",loginSuccess:"تم تسجيل الدخول بنجاح",loginFailed:"فشل تسجيل الدخول. يرجى التحقق من البريد الإلكتروني وكلمة المرور.",logout:"تسجيل الخروج",logoutSuccess:"تم تسجيل الخروج بنجاح",authNotice:"يستخدم هذا النظام مصادقة NAC الأصلية. يتم تسجيل جميع العمليات في سجلات التدقيق.",verifying:"جاري التحقق من الهوية...",unauthorized:"تم رفض الوصول",adminOnly:"هذا النظام مقيد للمسؤولين فقط."},nav:{dashboard:"الوعي الظرفي",knowledgeBase:"قاعدة المعرفة",crawlers:"مراقبة الزواحف",approvalCases:"حالات الموافقة بالذكاء الاصطناعي",tagEngine:"محرك العلامات",protocolRegistry:"سجل البروتوكولات",auditLog:"الصلاحيات والتدقيق",systemTitle:"محرك معرفة NAC",systemSubtitle:"لوحة الإدارة",adminPanel:"لوحة المسؤول"},dashboard:{title:"الوعي الظرفي العالمي",subtitle:"مراقبة حالة محرك المعرفة في الوقت الفعلي",totalRules:"إجمالي قواعد الامتثال",activeCrawlers:"الزواحف النشطة",pendingReviews:"المراجعات المعلقة",approvalRate:"معدل الموافقة",knowledgeGrowth:"نمو قاعدة المعرفة",jurisdictionCoverage:"تغطية الولايات القضائية",assetDistribution:"توزيع أنواع الأصول",crawlerHealth:"صحة الزواحف",recentActivity:"النشاط الأخير",systemStatus:"حالة النظام",allSystemsNormal:"جميع الأنظمة تعمل بشكل طبيعي",lastUpdated:"آخر تحديث",viewAll:"عرض الكل",rules:"قاعدة",crawlers:"زاحف",cases:"حالة"},knowledgeBase:{title:"إدارة قاعدة المعرفة",subtitle:"إدارة قواعد الامتثال واللوائح وتفاصيل المعاملات",addRule:"إضافة قاعدة",editRule:"تعديل القاعدة",deleteRule:"حذف القاعدة",ruleTitle:"عنوان القاعدة",ruleContent:"محتوى القاعدة",ruleSource:"مصدر القاعدة",effectiveDate:"تاريخ السريان",translationStatus:"حالة الترجمة",original:"النص الأصلي",aiTranslated:"ترجمة ذكاء اصطناعي",humanReviewed:"مراجعة بشرية",addTranslation:"إضافة ترجمة",missingTranslation:"ترجمة مفقودة",languageCoverage:"تغطية اللغات",contentLanguage:"لغة المحتوى",switchLanguage:"تبديل اللغة للعرض",ruleActivated:"تم تفعيل القاعدة",ruleDeactivated:"تم تعطيل القاعدة",searchPlaceholder:"ابحث في عنوان القاعدة أو المحتوى أو المصدر...",filterByJurisdiction:"تصفية حسب الولاية",filterByAssetType:"تصفية حسب نوع الأصل",filterByStatus:"تصفية حسب الحالة",totalRules:"{{count}} قاعدة إجمالاً"},crawlers:{title:"مراقبة وإدارة الزواحف",subtitle:"مراقبة زواحف جمع البيانات الداخلية والخارجية في الوقت الفعلي",internalCrawlers:"الزواحف الداخلية",externalCrawlers:"الزواحف الخارجية",crawlerName:"اسم الزاحف",crawlerType:"نوع الزاحف",lastRun:"آخر تشغيل",nextRun:"التشغيل التالي",successRate:"معدل النجاح",totalCollected:"إجمالي المجموع",triggerNow:"تشغيل الآن",triggering:"جاري التشغيل...",triggered:"تم تشغيل مهمة الزحف",addSource:"إضافة مصدر",editSource:"تعديل المصدر",sourceUrl:"رابط المصدر",frequency:"التكرار",internal:"داخلي",external:"خارجي",running:"يعمل",idle:"خامل",error:"خطأ",logs:"السجلات",viewLogs:"عرض السجلات"},approvals:{title:"مراجعة حالات الموافقة بالذكاء الاصطناعي",subtitle:"مراجعة نتائج الموافقة التلقائية ومراجعة الحالات متوسطة المخاطر يدوياً",caseId:"معرف الحالة",assetName:"اسم الأصل",applicant:"مقدم الطلب",submittedAt:"تاريخ التقديم",riskLevel:"مستوى المخاطر",aiDecision:"قرار الذكاء الاصطناعي",humanDecision:"القرار البشري",reviewStatus:"حالة المراجعة",pendingReview:"في انتظار المراجعة",approved:"موافق عليه",rejected:"مرفوض",underReview:"قيد المراجعة",highRisk:"مخاطر عالية",mediumRisk:"مخاطر متوسطة",lowRisk:"مخاطر منخفضة",approve:"موافقة",reject:"رفض",reviewComment:"تعليق المراجعة",addComment:"أضف تعليق المراجعة...",submitReview:"إرسال المراجعة",aiConfidence:"ثقة الذكاء الاصطناعي",complianceScore:"درجة الامتثال",missingDocuments:"المستندات المفقودة",reviewHistory:"سجل المراجعة",caseDetails:"تفاصيل الحالة",viewDetails:"عرض التفاصيل"},tagEngine:{title:"حوكمة محرك العلامات والقواعد",subtitle:"إدارة قواعد توليد تسلسل العلامات التلقائية",tagId:"معرف العلامة",tagName:"اسم العلامة",tagCategory:"فئة العلامة",tagRule:"قاعدة العلامة",matchPattern:"نمط المطابقة",priority:"الأولوية",addTag:"إضافة علامة",editTag:"تعديل العلامة",deleteTag:"حذف العلامة",testTag:"اختبار العلامة",testInput:"مدخل الاختبار",testResult:"نتيجة الاختبار",jurisdictionDimension:"بُعد الولاية القضائية",assetTypeDimension:"بُعد نوع الأصل",complianceDimension:"بُعد الامتثال",riskDimension:"بُعد المخاطر",crossLanguageAlignment:"المحاذاة عبر اللغات",standardTagId:"معرف العلامة القياسي",languageMappings:"تعيينات اللغات"},protocols:{title:"إدارة سجل البروتوكولات",subtitle:"إدارة جميع بروتوكولات NAC الأصلية المدمجة مع نظام الموافقة بالذكاء الاصطناعي",protocolName:"اسم البروتوكول",protocolCode:"كود البروتوكول",protocolVersion:"إصدار البروتوكول",protocolStatus:"حالة البروتوكول",triggerConditions:"شروط التشغيل",endpoint:"نقطة الخدمة",addProtocol:"تسجيل بروتوكول",editProtocol:"تعديل البروتوكول",deactivateProtocol:"تعطيل البروتوكول",activateProtocol:"تفعيل البروتوكول",protocolActivated:"تم تفعيل البروتوكول",protocolDeactivated:"تم تعطيل البروتوكول",registeredAt:"تاريخ التسجيل",lastCalled:"آخر استدعاء",callCount:"عدد الاستدعاءات",protocolFamily:"عائلة البروتوكولات",coreProtocols:"البروتوكولات الأساسية"},audit:{title:"إدارة الصلاحيات والتدقيق",subtitle:"التحكم في الوصول المستند إلى الأدوار وسجلات التدقيق غير القابلة للتغيير",users:"إدارة المستخدمين",roles:"إدارة الأدوار",auditLogs:"سجلات التدقيق",userId:"معرف المستخدم",userName:"اسم المستخدم",userEmail:"البريد الإلكتروني",userRole:"دور المستخدم",lastLogin:"آخر تسجيل دخول",admin:"مسؤول",reviewer:"مراجع",legal:"قانوني",operator:"مشغل",action:"الإجراء",resource:"المورد",ipAddress:"عنوان IP",timestamp:"الطابع الزمني",result:"النتيجة",details:"التفاصيل",exportLogs:"تصدير السجلات",filterByUser:"تصفية حسب المستخدم",filterByAction:"تصفية حسب الإجراء",filterByDate:"تصفية حسب التاريخ",immutableNote:"سجلات التدقيق غير قابلة للتغيير. يتم تسجيل جميع العمليات الحرجة."},languageSwitcher:{selectLanguage:"اختر اللغة",currentLanguage:"اللغة الحالية",knowledgeLanguage:"لغة قاعدة المعرفة"},jurisdictions:{CN:"الصين",HK:"هونغ كونغ",US:"الولايات المتحدة",EU:"الاتحاد الأوروبي",SG:"سنغافورة",AE:"الإمارات العربية المتحدة",JP:"اليابان",KR:"كوريا الجنوبية",RU:"روسيا",GB:"المملكة المتحدة",ALL:"جميع الولايات"},assetTypes:{"RE.RESIDENTIAL":"العقارات السكنية","RE.COMMERCIAL":"العقارات التجارية","RE.INDUSTRIAL":"العقارات الصناعية","FIN.EQUITY":"أصول الملكية","FIN.DEBT":"أصول الدين","FIN.FUND":"حصص الصناديق","COMM.PRECIOUS":"المعادن الثمينة","COMM.ENERGY":"سلع الطاقة","IP.PATENT":"براءات الاختراع","IP.COPYRIGHT":"حقوق النشر","INFRA.TRANSPORT":"البنية التحتية للنقل",ALL:"جميع الأنواع"}},yee={common:{save:"保存",cancel:"キャンセル",delete:"削除",edit:"編集",add:"追加",search:"検索",filter:"フィルター",export:"エクスポート",import:"インポート",refresh:"更新",confirm:"確認",close:"閉じる",loading:"読み込み中...",noData:"データなし",success:"操作成功",error:"操作失敗",warning:"警告",info:"情報",all:"すべて",enable:"有効",disable:"無効",active:"アクティブ",inactive:"非アクティブ",status:"ステータス",actions:"操作",createdAt:"作成日時",updatedAt:"更新日時",version:"バージョン",description:"説明",name:"名前",type:"タイプ",language:"言語",jurisdiction:"司法管轄",assetType:"資産タイプ"},auth:{login:"管理者ログイン",loginSubtitle:"NACシステムアカウントでサインイン",email:"メールアドレス",password:"パスワード",loginButton:"ログイン",loggingIn:"ログイン中...",loginSuccess:"ログイン成功",loginFailed:"ログイン失敗。メールとパスワードを確認してください。",logout:"ログアウト",logoutSuccess:"ログアウトしました",authNotice:"このシステムはNACネイティブ認証を使用しています。すべての操作は監査ログに記録されます。",verifying:"認証中...",unauthorized:"アクセス拒否",adminOnly:"このシステムは管理者のみアクセス可能です。"},nav:{dashboard:"状況認識",knowledgeBase:"ナレッジベース",crawlers:"クローラー監視",approvalCases:"AI承認ケース",tagEngine:"タグエンジン",protocolRegistry:"プロトコルレジストリ",auditLog:"権限と監査",systemTitle:"NACナレッジエンジン",systemSubtitle:"管理コンソール",adminPanel:"管理パネル"},dashboard:{title:"グローバル状況認識",subtitle:"ナレッジエンジンの稼働状況をリアルタイム監視",totalRules:"コンプライアンスルール総数",activeCrawlers:"アクティブクローラー",pendingReviews:"承認待ちケース",approvalRate:"承認率",knowledgeGrowth:"ナレッジベース成長",jurisdictionCoverage:"管轄カバレッジ",assetDistribution:"資産タイプ分布",crawlerHealth:"クローラー健全性",recentActivity:"最近のアクティビティ",systemStatus:"システム状態",allSystemsNormal:"すべてのシステム正常稼働",lastUpdated:"最終更新",viewAll:"すべて表示",rules:"件のルール",crawlers:"台のクローラー",cases:"件のケース"},knowledgeBase:{title:"ナレッジベース管理",subtitle:"コンプライアンスルール、規制、取引詳細の管理",addRule:"ルール追加",editRule:"ルール編集",deleteRule:"ルール削除",ruleTitle:"ルールタイトル",ruleContent:"ルール内容",ruleSource:"ルールソース",effectiveDate:"発効日",translationStatus:"翻訳ステータス",original:"原文",aiTranslated:"AI翻訳",humanReviewed:"人間によるレビュー済み",addTranslation:"翻訳追加",missingTranslation:"翻訳なし",languageCoverage:"言語カバレッジ",contentLanguage:"コンテンツ言語",switchLanguage:"言語を切り替えて表示",ruleActivated:"ルールを有効化しました",ruleDeactivated:"ルールを無効化しました",searchPlaceholder:"ルールタイトル、内容、ソースを検索...",filterByJurisdiction:"管轄でフィルター",filterByAssetType:"資産タイプでフィルター",filterByStatus:"ステータスでフィルター",totalRules:"合計{{count}}件のルール"},crawlers:{title:"クローラー監視・管理",subtitle:"内部・外部データクローラーのリアルタイム監視",internalCrawlers:"内部クローラー",externalCrawlers:"外部クローラー",crawlerName:"クローラー名",crawlerType:"クローラータイプ",lastRun:"最終実行",nextRun:"次回実行",successRate:"成功率",totalCollected:"収集総数",triggerNow:"今すぐ実行",triggering:"実行中...",triggered:"クロールタスクを開始しました",addSource:"ソース追加",editSource:"ソース編集",sourceUrl:"ソースURL",frequency:"頻度",internal:"内部",external:"外部",running:"実行中",idle:"待機中",error:"エラー",logs:"ログ",viewLogs:"ログを表示"},approvals:{title:"AI承認ケースレビュー",subtitle:"AI自動承認結果のレビューと中リスクケースの手動審査",caseId:"ケースID",assetName:"資産名",applicant:"申請者",submittedAt:"提出日時",riskLevel:"リスクレベル",aiDecision:"AI判定",humanDecision:"人間の判定",reviewStatus:"レビューステータス",pendingReview:"レビュー待ち",approved:"承認済み",rejected:"却下済み",underReview:"レビュー中",highRisk:"高リスク",mediumRisk:"中リスク",lowRisk:"低リスク",approve:"承認",reject:"却下",reviewComment:"レビューコメント",addComment:"レビューコメントを追加...",submitReview:"レビュー送信",aiConfidence:"AI信頼度",complianceScore:"コンプライアンススコア",missingDocuments:"不足書類",reviewHistory:"レビュー履歴",caseDetails:"ケース詳細",viewDetails:"詳細を表示"},tagEngine:{title:"タグ・ルールエンジンガバナンス",subtitle:"自動タグシーケンス生成ルールの管理",tagId:"タグID",tagName:"タグ名",tagCategory:"タグカテゴリ",tagRule:"タグルール",matchPattern:"マッチパターン",priority:"優先度",addTag:"タグ追加",editTag:"タグ編集",deleteTag:"タグ削除",testTag:"タグテスト",testInput:"テスト入力",testResult:"テスト結果",jurisdictionDimension:"管轄ディメンション",assetTypeDimension:"資産タイプディメンション",complianceDimension:"コンプライアンスディメンション",riskDimension:"リスクディメンション",crossLanguageAlignment:"クロス言語アライメント",standardTagId:"標準タグID",languageMappings:"言語マッピング"},protocols:{title:"プロトコルレジストリ管理",subtitle:"AIシステムに統合されたすべてのNACネイティブプロトコルの管理",protocolName:"プロトコル名",protocolCode:"プロトコルコード",protocolVersion:"プロトコルバージョン",protocolStatus:"プロトコルステータス",triggerConditions:"トリガー条件",endpoint:"サービスエンドポイント",addProtocol:"プロトコル登録",editProtocol:"プロトコル編集",deactivateProtocol:"プロトコル無効化",activateProtocol:"プロトコル有効化",protocolActivated:"プロトコルを有効化しました",protocolDeactivated:"プロトコルを無効化しました",registeredAt:"登録日時",lastCalled:"最終呼び出し",callCount:"呼び出し回数",protocolFamily:"プロトコルファミリー",coreProtocols:"コアプロトコル"},audit:{title:"権限・監査管理",subtitle:"ロールベースのアクセス制御と改ざん不可能な監査ログ",users:"ユーザー管理",roles:"ロール管理",auditLogs:"監査ログ",userId:"ユーザーID",userName:"ユーザー名",userEmail:"メール",userRole:"ロール",lastLogin:"最終ログイン",admin:"管理者",reviewer:"レビュアー",legal:"法務",operator:"オペレーター",action:"アクション",resource:"リソース",ipAddress:"IPアドレス",timestamp:"タイムスタンプ",result:"結果",details:"詳細",exportLogs:"ログエクスポート",filterByUser:"ユーザーでフィルター",filterByAction:"アクションでフィルター",filterByDate:"日付でフィルター",immutableNote:"監査ログは改ざん不可能です。すべての重要な操作が記録されます。"},languageSwitcher:{selectLanguage:"言語を選択",currentLanguage:"現在の言語",knowledgeLanguage:"ナレッジベース言語"},jurisdictions:{CN:"中国",HK:"香港",US:"米国",EU:"EU",SG:"シンガポール",AE:"UAE",JP:"日本",KR:"韓国",RU:"ロシア",GB:"英国",ALL:"すべての管轄"},assetTypes:{"RE.RESIDENTIAL":"住宅不動産","RE.COMMERCIAL":"商業不動産","RE.INDUSTRIAL":"工業不動産","FIN.EQUITY":"株式資産","FIN.DEBT":"債務資産","FIN.FUND":"ファンド持分","COMM.PRECIOUS":"貴金属","COMM.ENERGY":"エネルギー商品","IP.PATENT":"特許","IP.COPYRIGHT":"著作権","INFRA.TRANSPORT":"交通インフラ",ALL:"すべてのタイプ"}},xee={common:{save:"저장",cancel:"취소",delete:"삭제",edit:"편집",add:"추가",search:"검색",filter:"필터",export:"내보내기",import:"가져오기",refresh:"새로고침",confirm:"확인",close:"닫기",loading:"로딩 중...",noData:"데이터 없음",success:"작업 성공",error:"작업 실패",warning:"경고",info:"정보",all:"전체",enable:"활성화",disable:"비활성화",active:"활성",inactive:"비활성",status:"상태",actions:"작업",createdAt:"생성일시",updatedAt:"수정일시",version:"버전",description:"설명",name:"이름",type:"유형",language:"언어",jurisdiction:"사법 관할",assetType:"자산 유형"},auth:{login:"관리자 로그인",loginSubtitle:"NAC 시스템 계정으로 로그인",email:"이메일 주소",password:"비밀번호",loginButton:"로그인",loggingIn:"로그인 중...",loginSuccess:"로그인 성공",loginFailed:"로그인 실패. 이메일과 비밀번호를 확인하세요.",logout:"로그아웃",logoutSuccess:"로그아웃되었습니다",authNotice:"이 시스템은 NAC 네이티브 인증을 사용합니다. 모든 작업은 감사 로그에 기록됩니다.",verifying:"신원 확인 중...",unauthorized:"접근 거부",adminOnly:"이 시스템은 관리자만 접근할 수 있습니다."},nav:{dashboard:"상황 인식",knowledgeBase:"지식 베이스",crawlers:"크롤러 모니터",approvalCases:"AI 승인 케이스",tagEngine:"태그 엔진",protocolRegistry:"프로토콜 레지스트리",auditLog:"권한 및 감사",systemTitle:"NAC 지식 엔진",systemSubtitle:"관리 콘솔",adminPanel:"관리자 패널"},dashboard:{title:"글로벌 상황 인식",subtitle:"지식 엔진 운영 상태 실시간 모니터링",totalRules:"총 컴플라이언스 규칙",activeCrawlers:"활성 크롤러",pendingReviews:"검토 대기 케이스",approvalRate:"승인율",knowledgeGrowth:"지식 베이스 성장",jurisdictionCoverage:"관할 커버리지",assetDistribution:"자산 유형 분포",crawlerHealth:"크롤러 상태",recentActivity:"최근 활동",systemStatus:"시스템 상태",allSystemsNormal:"모든 시스템 정상 운영",lastUpdated:"마지막 업데이트",viewAll:"전체 보기",rules:"개 규칙",crawlers:"개 크롤러",cases:"개 케이스"},knowledgeBase:{title:"지식 베이스 관리",subtitle:"컴플라이언스 규칙, 규정 및 거래 세부사항 관리",addRule:"규칙 추가",editRule:"규칙 편집",deleteRule:"규칙 삭제",ruleTitle:"규칙 제목",ruleContent:"규칙 내용",ruleSource:"규칙 출처",effectiveDate:"발효일",translationStatus:"번역 상태",original:"원문",aiTranslated:"AI 번역",humanReviewed:"인간 검토 완료",addTranslation:"번역 추가",missingTranslation:"번역 없음",languageCoverage:"언어 커버리지",contentLanguage:"콘텐츠 언어",switchLanguage:"언어 전환하여 보기",ruleActivated:"규칙이 활성화되었습니다",ruleDeactivated:"규칙이 비활성화되었습니다",searchPlaceholder:"규칙 제목, 내용 또는 출처 검색...",filterByJurisdiction:"관할로 필터",filterByAssetType:"자산 유형으로 필터",filterByStatus:"상태로 필터",totalRules:"총 {{count}}개 규칙"},crawlers:{title:"크롤러 모니터링 및 관리",subtitle:"내부 및 외부 데이터 크롤러 실시간 모니터링",internalCrawlers:"내부 크롤러",externalCrawlers:"외부 크롤러",crawlerName:"크롤러 이름",crawlerType:"크롤러 유형",lastRun:"마지막 실행",nextRun:"다음 실행",successRate:"성공률",totalCollected:"총 수집량",triggerNow:"지금 실행",triggering:"실행 중...",triggered:"크롤 작업이 시작되었습니다",addSource:"소스 추가",editSource:"소스 편집",sourceUrl:"소스 URL",frequency:"빈도",internal:"내부",external:"외부",running:"실행 중",idle:"대기 중",error:"오류",logs:"로그",viewLogs:"로그 보기"},approvals:{title:"AI 승인 케이스 검토",subtitle:"AI 자동 승인 결과 검토 및 중간 위험 케이스 수동 심사",caseId:"케이스 ID",assetName:"자산명",applicant:"신청자",submittedAt:"제출일시",riskLevel:"위험 수준",aiDecision:"AI 결정",humanDecision:"인간 결정",reviewStatus:"검토 상태",pendingReview:"검토 대기",approved:"승인됨",rejected:"거부됨",underReview:"검토 중",highRisk:"고위험",mediumRisk:"중간 위험",lowRisk:"저위험",approve:"승인",reject:"거부",reviewComment:"검토 의견",addComment:"검토 의견 추가...",submitReview:"검토 제출",aiConfidence:"AI 신뢰도",complianceScore:"컴플라이언스 점수",missingDocuments:"누락 서류",reviewHistory:"검토 이력",caseDetails:"케이스 상세",viewDetails:"상세 보기"},tagEngine:{title:"태그 및 규칙 엔진 거버넌스",subtitle:"자동화된 태그 시퀀스 생성 규칙 관리",tagId:"태그 ID",tagName:"태그 이름",tagCategory:"태그 카테고리",tagRule:"태그 규칙",matchPattern:"매칭 패턴",priority:"우선순위",addTag:"태그 추가",editTag:"태그 편집",deleteTag:"태그 삭제",testTag:"태그 테스트",testInput:"테스트 입력",testResult:"테스트 결과",jurisdictionDimension:"관할 차원",assetTypeDimension:"자산 유형 차원",complianceDimension:"컴플라이언스 차원",riskDimension:"위험 차원",crossLanguageAlignment:"교차 언어 정렬",standardTagId:"표준 태그 ID",languageMappings:"언어 매핑"},protocols:{title:"프로토콜 레지스트리 관리",subtitle:"AI 승인 시스템에 통합된 모든 NAC 네이티브 프로토콜 관리",protocolName:"프로토콜 이름",protocolCode:"프로토콜 코드",protocolVersion:"프로토콜 버전",protocolStatus:"프로토콜 상태",triggerConditions:"트리거 조건",endpoint:"서비스 엔드포인트",addProtocol:"프로토콜 등록",editProtocol:"프로토콜 편집",deactivateProtocol:"프로토콜 비활성화",activateProtocol:"프로토콜 활성화",protocolActivated:"프로토콜이 활성화되었습니다",protocolDeactivated:"프로토콜이 비활성화되었습니다",registeredAt:"등록일시",lastCalled:"마지막 호출",callCount:"호출 횟수",protocolFamily:"프로토콜 패밀리",coreProtocols:"핵심 프로토콜"},audit:{title:"권한 및 감사 관리",subtitle:"역할 기반 접근 제어 및 변경 불가능한 감사 로그",users:"사용자 관리",roles:"역할 관리",auditLogs:"감사 로그",userId:"사용자 ID",userName:"사용자명",userEmail:"이메일",userRole:"역할",lastLogin:"마지막 로그인",admin:"관리자",reviewer:"검토자",legal:"법무",operator:"운영자",action:"작업",resource:"리소스",ipAddress:"IP 주소",timestamp:"타임스탬프",result:"결과",details:"상세",exportLogs:"로그 내보내기",filterByUser:"사용자로 필터",filterByAction:"작업으로 필터",filterByDate:"날짜로 필터",immutableNote:"감사 로그는 변경할 수 없습니다. 모든 중요 작업이 기록됩니다."},languageSwitcher:{selectLanguage:"언어 선택",currentLanguage:"현재 언어",knowledgeLanguage:"지식 베이스 언어"},jurisdictions:{CN:"중국",HK:"홍콩",US:"미국",EU:"EU",SG:"싱가포르",AE:"UAE",JP:"일본",KR:"한국",RU:"러시아",GB:"영국",ALL:"모든 관할"},assetTypes:{"RE.RESIDENTIAL":"주거용 부동산","RE.COMMERCIAL":"상업용 부동산","RE.INDUSTRIAL":"산업용 부동산","FIN.EQUITY":"주식 자산","FIN.DEBT":"채무 자산","FIN.FUND":"펀드 지분","COMM.PRECIOUS":"귀금속","COMM.ENERGY":"에너지 상품","IP.PATENT":"특허","IP.COPYRIGHT":"저작권","INFRA.TRANSPORT":"교통 인프라",ALL:"모든 유형"}},Nee={common:{save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",edit:"Modifier",add:"Ajouter",search:"Rechercher",filter:"Filtrer",export:"Exporter",import:"Importer",refresh:"Actualiser",confirm:"Confirmer",close:"Fermer",loading:"Chargement...",noData:"Aucune donnée",success:"Opération réussie",error:"Opération échouée",warning:"Avertissement",info:"Information",all:"Tout",enable:"Activer",disable:"Désactiver",active:"Actif",inactive:"Inactif",status:"Statut",actions:"Actions",createdAt:"Créé le",updatedAt:"Mis à jour le",version:"Version",description:"Description",name:"Nom",type:"Type",language:"Langue",jurisdiction:"Juridiction",assetType:"Type d'actif"},auth:{login:"Connexion Administrateur",loginSubtitle:"Connectez-vous avec votre compte système NAC",email:"Adresse e-mail",password:"Mot de passe",loginButton:"Se connecter",loggingIn:"Connexion en cours...",loginSuccess:"Connexion réussie",loginFailed:"Échec de la connexion. Vérifiez votre e-mail et mot de passe.",logout:"Se déconnecter",logoutSuccess:"Déconnexion réussie",authNotice:"Ce système utilise l'authentification native NAC. Toutes les opérations sont enregistrées dans les journaux d'audit.",verifying:"Vérification de l'identité...",unauthorized:"Accès refusé",adminOnly:"Ce système est réservé aux administrateurs."},nav:{dashboard:"Conscience Situationnelle",knowledgeBase:"Base de Connaissances",crawlers:"Surveillance des Crawlers",approvalCases:"Cas d'Approbation IA",tagEngine:"Moteur de Tags",protocolRegistry:"Registre des Protocoles",auditLog:"Permissions et Audit",systemTitle:"Moteur de Connaissances NAC",systemSubtitle:"Console d'Administration",adminPanel:"Panneau Admin"},dashboard:{title:"Conscience Situationnelle Globale",subtitle:"Surveillance en temps réel du moteur de connaissances",totalRules:"Total des Règles de Conformité",activeCrawlers:"Crawlers Actifs",pendingReviews:"Cas en Attente",approvalRate:"Taux d'Approbation",knowledgeGrowth:"Croissance de la Base",jurisdictionCoverage:"Couverture Juridictionnelle",assetDistribution:"Distribution des Types d'Actifs",crawlerHealth:"Santé des Crawlers",recentActivity:"Activité Récente",systemStatus:"État du Système",allSystemsNormal:"Tous les systèmes opérationnels",lastUpdated:"Dernière mise à jour",viewAll:"Voir tout",rules:"règles",crawlers:"crawlers",cases:"cas"},knowledgeBase:{title:"Gestion de la Base de Connaissances",subtitle:"Gérer les règles de conformité, réglementations et détails des transactions",addRule:"Ajouter une règle",editRule:"Modifier la règle",deleteRule:"Supprimer la règle",ruleTitle:"Titre de la règle",ruleContent:"Contenu de la règle",ruleSource:"Source de la règle",effectiveDate:"Date d'entrée en vigueur",translationStatus:"Statut de traduction",original:"Original",aiTranslated:"Traduit par IA",humanReviewed:"Révisé par humain",addTranslation:"Ajouter une traduction",missingTranslation:"Traduction manquante",languageCoverage:"Couverture linguistique",contentLanguage:"Langue du contenu",switchLanguage:"Changer de langue pour afficher",ruleActivated:"Règle activée",ruleDeactivated:"Règle désactivée",searchPlaceholder:"Rechercher titre, contenu ou source...",filterByJurisdiction:"Filtrer par juridiction",filterByAssetType:"Filtrer par type d'actif",filterByStatus:"Filtrer par statut",totalRules:"{{count}} règles au total"},crawlers:{title:"Surveillance et Gestion des Crawlers",subtitle:"Surveillance en temps réel des crawlers internes et externes",internalCrawlers:"Crawlers Internes",externalCrawlers:"Crawlers Externes",crawlerName:"Nom du crawler",crawlerType:"Type de crawler",lastRun:"Dernière exécution",nextRun:"Prochaine exécution",successRate:"Taux de succès",totalCollected:"Total collecté",triggerNow:"Déclencher maintenant",triggering:"Déclenchement...",triggered:"Tâche de crawl déclenchée",addSource:"Ajouter une source",editSource:"Modifier la source",sourceUrl:"URL de la source",frequency:"Fréquence",internal:"Interne",external:"Externe",running:"En cours",idle:"Inactif",error:"Erreur",logs:"Journaux",viewLogs:"Voir les journaux"},approvals:{title:"Révision des Cas d'Approbation IA",subtitle:"Réviser les résultats d'approbation automatique et examiner manuellement les cas à risque moyen",caseId:"ID du cas",assetName:"Nom de l'actif",applicant:"Demandeur",submittedAt:"Soumis le",riskLevel:"Niveau de risque",aiDecision:"Décision IA",humanDecision:"Décision humaine",reviewStatus:"Statut de révision",pendingReview:"En attente de révision",approved:"Approuvé",rejected:"Rejeté",underReview:"En cours de révision",highRisk:"Risque élevé",mediumRisk:"Risque moyen",lowRisk:"Risque faible",approve:"Approuver",reject:"Rejeter",reviewComment:"Commentaire de révision",addComment:"Ajouter un commentaire...",submitReview:"Soumettre la révision",aiConfidence:"Confiance IA",complianceScore:"Score de conformité",missingDocuments:"Documents manquants",reviewHistory:"Historique de révision",caseDetails:"Détails du cas",viewDetails:"Voir les détails"},tagEngine:{title:"Gouvernance du Moteur de Tags",subtitle:"Gérer les règles de génération automatique de séquences de tags",tagId:"ID du tag",tagName:"Nom du tag",tagCategory:"Catégorie du tag",tagRule:"Règle du tag",matchPattern:"Modèle de correspondance",priority:"Priorité",addTag:"Ajouter un tag",editTag:"Modifier le tag",deleteTag:"Supprimer le tag",testTag:"Tester le tag",testInput:"Entrée de test",testResult:"Résultat du test",jurisdictionDimension:"Dimension juridictionnelle",assetTypeDimension:"Dimension type d'actif",complianceDimension:"Dimension conformité",riskDimension:"Dimension risque",crossLanguageAlignment:"Alignement multilingue",standardTagId:"ID de tag standard",languageMappings:"Mappages de langues"},protocols:{title:"Gestion du Registre des Protocoles",subtitle:"Gérer tous les protocoles natifs NAC intégrés au système d'approbation IA",protocolName:"Nom du protocole",protocolCode:"Code du protocole",protocolVersion:"Version du protocole",protocolStatus:"Statut du protocole",triggerConditions:"Conditions de déclenchement",endpoint:"Point de service",addProtocol:"Enregistrer un protocole",editProtocol:"Modifier le protocole",deactivateProtocol:"Désactiver le protocole",activateProtocol:"Activer le protocole",protocolActivated:"Protocole activé",protocolDeactivated:"Protocole désactivé",registeredAt:"Enregistré le",lastCalled:"Dernier appel",callCount:"Nombre d'appels",protocolFamily:"Famille de protocoles",coreProtocols:"Protocoles principaux"},audit:{title:"Gestion des Permissions et Audit",subtitle:"Contrôle d'accès basé sur les rôles et journaux d'audit immuables",users:"Gestion des utilisateurs",roles:"Gestion des rôles",auditLogs:"Journaux d'audit",userId:"ID utilisateur",userName:"Nom d'utilisateur",userEmail:"E-mail",userRole:"Rôle",lastLogin:"Dernière connexion",admin:"Administrateur",reviewer:"Réviseur",legal:"Juridique",operator:"Opérateur",action:"Action",resource:"Ressource",ipAddress:"Adresse IP",timestamp:"Horodatage",result:"Résultat",details:"Détails",exportLogs:"Exporter les journaux",filterByUser:"Filtrer par utilisateur",filterByAction:"Filtrer par action",filterByDate:"Filtrer par date",immutableNote:"Les journaux d'audit sont immuables. Toutes les opérations critiques sont enregistrées."},languageSwitcher:{selectLanguage:"Sélectionner la langue",currentLanguage:"Langue actuelle",knowledgeLanguage:"Langue de la base"},jurisdictions:{CN:"Chine",HK:"Hong Kong",US:"États-Unis",EU:"Union Européenne",SG:"Singapour",AE:"EAU",JP:"Japon",KR:"Corée du Sud",RU:"Russie",GB:"Royaume-Uni",ALL:"Toutes les juridictions"},assetTypes:{"RE.RESIDENTIAL":"Immobilier résidentiel","RE.COMMERCIAL":"Immobilier commercial","RE.INDUSTRIAL":"Immobilier industriel","FIN.EQUITY":"Actifs en actions","FIN.DEBT":"Actifs de dette","FIN.FUND":"Parts de fonds","COMM.PRECIOUS":"Métaux précieux","COMM.ENERGY":"Matières premières énergétiques","IP.PATENT":"Brevets","IP.COPYRIGHT":"Droits d'auteur","INFRA.TRANSPORT":"Infrastructure de transport",ALL:"Tous les types"}},wee={common:{save:"Сохранить",cancel:"Отмена",delete:"Удалить",edit:"Редактировать",add:"Добавить",search:"Поиск",filter:"Фильтр",export:"Экспорт",import:"Импорт",refresh:"Обновить",confirm:"Подтвердить",close:"Закрыть",loading:"Загрузка...",noData:"Нет данных",success:"Операция выполнена",error:"Ошибка операции",warning:"Предупреждение",info:"Информация",all:"Все",enable:"Включить",disable:"Отключить",active:"Активный",inactive:"Неактивный",status:"Статус",actions:"Действия",createdAt:"Создано",updatedAt:"Обновлено",version:"Версия",description:"Описание",name:"Название",type:"Тип",language:"Язык",jurisdiction:"Юрисдикция",assetType:"Тип актива"},auth:{login:"Вход для администратора",loginSubtitle:"Войдите с учётной записью системы NAC",email:"Адрес электронной почты",password:"Пароль",loginButton:"Войти",loggingIn:"Вход в систему...",loginSuccess:"Вход выполнен успешно",loginFailed:"Ошибка входа. Проверьте email и пароль.",logout:"Выйти",logoutSuccess:"Выход выполнен успешно",authNotice:"Эта система использует нативную аутентификацию NAC. Все операции записываются в журналы аудита.",verifying:"Проверка личности...",unauthorized:"Доступ запрещён",adminOnly:"Эта система доступна только администраторам."},nav:{dashboard:"Ситуационная осведомлённость",knowledgeBase:"База знаний",crawlers:"Мониторинг краулеров",approvalCases:"Дела об одобрении ИИ",tagEngine:"Движок тегов",protocolRegistry:"Реестр протоколов",auditLog:"Права и аудит",systemTitle:"Движок знаний NAC",systemSubtitle:"Консоль управления",adminPanel:"Панель администратора"},dashboard:{title:"Глобальная ситуационная осведомлённость",subtitle:"Мониторинг состояния движка знаний в реальном времени",totalRules:"Всего правил соответствия",activeCrawlers:"Активные краулеры",pendingReviews:"Ожидающие проверки",approvalRate:"Уровень одобрения",knowledgeGrowth:"Рост базы знаний",jurisdictionCoverage:"Охват юрисдикций",assetDistribution:"Распределение типов активов",crawlerHealth:"Состояние краулеров",recentActivity:"Последняя активность",systemStatus:"Состояние системы",allSystemsNormal:"Все системы работают нормально",lastUpdated:"Последнее обновление",viewAll:"Показать все",rules:"правил",crawlers:"краулеров",cases:"дел"},knowledgeBase:{title:"Управление базой знаний",subtitle:"Управление правилами соответствия, нормативными актами и деталями транзакций",addRule:"Добавить правило",editRule:"Редактировать правило",deleteRule:"Удалить правило",ruleTitle:"Заголовок правила",ruleContent:"Содержание правила",ruleSource:"Источник правила",effectiveDate:"Дата вступления в силу",translationStatus:"Статус перевода",original:"Оригинал",aiTranslated:"Перевод ИИ",humanReviewed:"Проверено человеком",addTranslation:"Добавить перевод",missingTranslation:"Перевод отсутствует",languageCoverage:"Языковой охват",contentLanguage:"Язык контента",switchLanguage:"Переключить язык для просмотра",ruleActivated:"Правило активировано",ruleDeactivated:"Правило деактивировано",searchPlaceholder:"Поиск по заголовку, содержанию или источнику...",filterByJurisdiction:"Фильтр по юрисдикции",filterByAssetType:"Фильтр по типу актива",filterByStatus:"Фильтр по статусу",totalRules:"Всего {{count}} правил"},crawlers:{title:"Мониторинг и управление краулерами",subtitle:"Мониторинг внутренних и внешних краулеров данных в реальном времени",internalCrawlers:"Внутренние краулеры",externalCrawlers:"Внешние краулеры",crawlerName:"Название краулера",crawlerType:"Тип краулера",lastRun:"Последний запуск",nextRun:"Следующий запуск",successRate:"Уровень успеха",totalCollected:"Всего собрано",triggerNow:"Запустить сейчас",triggering:"Запуск...",triggered:"Задача краулинга запущена",addSource:"Добавить источник",editSource:"Редактировать источник",sourceUrl:"URL источника",frequency:"Частота",internal:"Внутренний",external:"Внешний",running:"Работает",idle:"Простаивает",error:"Ошибка",logs:"Журналы",viewLogs:"Просмотр журналов"},approvals:{title:"Проверка дел об одобрении ИИ",subtitle:"Проверка результатов автоматического одобрения ИИ и ручная проверка дел среднего риска",caseId:"ID дела",assetName:"Название актива",applicant:"Заявитель",submittedAt:"Подано",riskLevel:"Уровень риска",aiDecision:"Решение ИИ",humanDecision:"Решение человека",reviewStatus:"Статус проверки",pendingReview:"Ожидает проверки",approved:"Одобрено",rejected:"Отклонено",underReview:"На проверке",highRisk:"Высокий риск",mediumRisk:"Средний риск",lowRisk:"Низкий риск",approve:"Одобрить",reject:"Отклонить",reviewComment:"Комментарий проверки",addComment:"Добавить комментарий...",submitReview:"Отправить проверку",aiConfidence:"Уверенность ИИ",complianceScore:"Оценка соответствия",missingDocuments:"Отсутствующие документы",reviewHistory:"История проверок",caseDetails:"Детали дела",viewDetails:"Просмотр деталей"},tagEngine:{title:"Управление движком тегов и правил",subtitle:"Управление правилами генерации автоматических последовательностей тегов",tagId:"ID тега",tagName:"Название тега",tagCategory:"Категория тега",tagRule:"Правило тега",matchPattern:"Шаблон совпадения",priority:"Приоритет",addTag:"Добавить тег",editTag:"Редактировать тег",deleteTag:"Удалить тег",testTag:"Тестировать тег",testInput:"Тестовый ввод",testResult:"Результат теста",jurisdictionDimension:"Измерение юрисдикции",assetTypeDimension:"Измерение типа актива",complianceDimension:"Измерение соответствия",riskDimension:"Измерение риска",crossLanguageAlignment:"Межъязыковое выравнивание",standardTagId:"Стандартный ID тега",languageMappings:"Языковые маппинги"},protocols:{title:"Управление реестром протоколов",subtitle:"Управление всеми нативными протоколами NAC, интегрированными с системой одобрения ИИ",protocolName:"Название протокола",protocolCode:"Код протокола",protocolVersion:"Версия протокола",protocolStatus:"Статус протокола",triggerConditions:"Условия запуска",endpoint:"Конечная точка сервиса",addProtocol:"Зарегистрировать протокол",editProtocol:"Редактировать протокол",deactivateProtocol:"Деактивировать протокол",activateProtocol:"Активировать протокол",protocolActivated:"Протокол активирован",protocolDeactivated:"Протокол деактивирован",registeredAt:"Зарегистрировано",lastCalled:"Последний вызов",callCount:"Количество вызовов",protocolFamily:"Семейство протоколов",coreProtocols:"Основные протоколы"},audit:{title:"Управление правами и аудитом",subtitle:"Управление доступом на основе ролей и неизменяемые журналы аудита",users:"Управление пользователями",roles:"Управление ролями",auditLogs:"Журналы аудита",userId:"ID пользователя",userName:"Имя пользователя",userEmail:"Email",userRole:"Роль",lastLogin:"Последний вход",admin:"Администратор",reviewer:"Проверяющий",legal:"Юридический",operator:"Оператор",action:"Действие",resource:"Ресурс",ipAddress:"IP-адрес",timestamp:"Временная метка",result:"Результат",details:"Детали",exportLogs:"Экспорт журналов",filterByUser:"Фильтр по пользователю",filterByAction:"Фильтр по действию",filterByDate:"Фильтр по дате",immutableNote:"Журналы аудита неизменяемы. Все критические операции записываются."},languageSwitcher:{selectLanguage:"Выбрать язык",currentLanguage:"Текущий язык",knowledgeLanguage:"Язык базы знаний"},jurisdictions:{CN:"Китай",HK:"Гонконг",US:"США",EU:"Европейский союз",SG:"Сингапур",AE:"ОАЭ",JP:"Япония",KR:"Южная Корея",RU:"Россия",GB:"Великобритания",ALL:"Все юрисдикции"},assetTypes:{"RE.RESIDENTIAL":"Жилая недвижимость","RE.COMMERCIAL":"Коммерческая недвижимость","RE.INDUSTRIAL":"Промышленная недвижимость","FIN.EQUITY":"Долевые активы","FIN.DEBT":"Долговые активы","FIN.FUND":"Паи фондов","COMM.PRECIOUS":"Драгоценные металлы","COMM.ENERGY":"Энергетические товары","IP.PATENT":"Патенты","IP.COPYRIGHT":"Авторские права","INFRA.TRANSPORT":"Транспортная инфраструктура",ALL:"Все типы"}},Eee=[{code:"zh",name:"简体中文",nativeName:"简体中文",dir:"ltr",flag:"🇨🇳"},{code:"en",name:"English",nativeName:"English",dir:"ltr",flag:"🇺🇸"},{code:"ar",name:"Arabic",nativeName:"العربية",dir:"rtl",flag:"🇦🇪"},{code:"ja",name:"Japanese",nativeName:"日本語",dir:"ltr",flag:"🇯🇵"},{code:"ko",name:"Korean",nativeName:"한국어",dir:"ltr",flag:"🇰🇷"},{code:"fr",name:"French",nativeName:"Français",dir:"ltr",flag:"🇫🇷"},{code:"ru",name:"Russian",nativeName:"Русский",dir:"ltr",flag:"🇷🇺"}];br.use(w9).use(lee).init({resources:{zh:{translation:gee},en:{translation:vee},ar:{translation:bee},ja:{translation:yee},ko:{translation:xee},fr:{translation:Nee},ru:{translation:wee}},fallbackLng:"zh",supportedLngs:["zh","en","ar","ja","ko","fr","ru"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"nac-admin-language"},interpolation:{escapeValue:!1}});br.on("languageChanged",e=>{const t=Eee.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const See="Please login (10001)";var gE={exports:{}},ih={},vE={exports:{}},bE={},EI;function Aee(){return EI||(EI=1,(function(e){/**
* @license React
* scheduler.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){function t(){if(O=!1,$){var q=e.unstable_now();H=q;var z=!0;try{e:{_=!1,P&&(P=!1,j(B),B=-1),D=!0;var K=A;try{t:{for(c(q),w=r(x);w!==null&&!(w.expirationTime>q&&f());){var te=w.callback;if(typeof te=="function"){w.callback=null,A=w.priorityLevel;var ne=te(w.expirationTime<=q);if(q=e.unstable_now(),typeof ne=="function"){w.callback=ne,c(q),z=!0;break t}w===r(x)&&o(x),c(q)}else o(x);w=r(x)}if(w!==null)z=!0;else{var L=r(S);L!==null&&m(u,L.startTime-q),z=!1}}break e}finally{w=null,A=K,D=!1}z=void 0}}finally{z?G():$=!1}}}function n(q,z){var K=q.length;q.push(z);e:for(;0<K;){var te=K-1>>>1,ne=q[te];if(0<s(ne,z))q[te]=z,q[K]=ne,K=te;else break e}}function r(q){return q.length===0?null:q[0]}function o(q){if(q.length===0)return null;var z=q[0],K=q.pop();if(K!==z){q[0]=K;e:for(var te=0,ne=q.length,L=ne>>>1;te<L;){var Q=2*(te+1)-1,W=q[Q],ae=Q+1,ge=q[ae];if(0>s(W,K))ae<ne&&0>s(ge,W)?(q[te]=ge,q[ae]=K,te=ae):(q[te]=W,q[Q]=K,te=Q);else if(ae<ne&&0>s(ge,K))q[te]=ge,q[ae]=K,te=ae;else break e}}return z}function s(q,z){var K=q.sortIndex-z.sortIndex;return K!==0?K:q.id-z.id}function c(q){for(var z=r(S);z!==null;){if(z.callback===null)o(S);else if(z.startTime<=q)o(S),z.sortIndex=z.expirationTime,n(x,z);else break;z=r(S)}}function u(q){if(P=!1,c(q),!_)if(r(x)!==null)_=!0,$||($=!0,G());else{var z=r(S);z!==null&&m(u,z.startTime-q)}}function f(){return O?!0:!(e.unstable_now()-H<U)}function m(q,z){B=C(function(){q(e.unstable_now())},z)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;e.unstable_now=function(){return g.now()}}else{var h=Date,y=h.now();e.unstable_now=function(){return h.now()-y}}var x=[],S=[],N=1,w=null,A=3,D=!1,_=!1,P=!1,O=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null,$=!1,B=-1,U=5,H=-1;if(typeof k=="function")var G=function(){k(t)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,J=Y.port2;Y.port1.onmessage=t,G=function(){J.postMessage(null)}}else G=function(){C(t,0)};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(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_next=function(q){switch(A){case 1:case 2:case 3:var z=3;break;default:z=A}var K=A;A=z;try{return q()}finally{A=K}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(q,z){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var K=A;A=q;try{return z()}finally{A=K}},e.unstable_scheduleCallback=function(q,z,K){var te=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?te+K:te):K=te,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,q={id:N++,callback:z,priorityLevel:q,startTime:K,expirationTime:ne,sortIndex:-1},K>te?(q.sortIndex=K,n(S,q),r(x)===null&&q===r(S)&&(P?(j(B),B=-1):P=!0,m(u,K-te))):(q.sortIndex=ne,n(x,q),_||D||(_=!0,$||($=!0,G()))),q},e.unstable_shouldYield=f,e.unstable_wrapCallback=function(q){var z=A;return function(){var K=A;A=z;try{return q.apply(this,arguments)}finally{A=K}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(bE)),bE}var SI;function Oee(){return SI||(SI=1,vE.exports=Aee()),vE.exports}var yE={exports:{}},cr={},AI;function Dee(){if(AI)return cr;AI=1;/**
* @license React
* react-dom.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){function e(){}function t(h){return""+h}function n(h,y,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var N=!1}catch{N=!0}return N&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object"),t(S)),{$$typeof:m,key:S==null?null:""+S,children:h,containerInfo:y,implementation:x}}function r(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function o(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function s(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h=="string"?JSON.stringify(h):typeof h=="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function c(){var h=g.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=uf(),f={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},m=Symbol.for("react.portal"),g=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),cr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,cr.createPortal=function(h,y){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return n(h,y,null,x)},cr.flushSync=function(h){var y=g.T,x=f.p;try{if(g.T=null,f.p=2,h)return h()}finally{g.T=y,f.p=x,f.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},cr.preconnect=function(h,y){typeof h=="string"&&h?y!=null&&typeof y!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(y)):y!=null&&typeof y.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(h)),typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,f.d.C(h,y))},cr.prefetchDNS=function(h){if(typeof h!="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(h));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(y)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(y))}typeof h=="string"&&f.d.D(h)},cr.preinit=function(h,y){if(typeof h=="string"&&h?y==null||typeof y!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(y)):y.as!=="style"&&y.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(h)),typeof h=="string"&&y&&typeof y.as=="string"){var x=y.as,S=r(x,y.crossOrigin),N=typeof y.integrity=="string"?y.integrity:void 0,w=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?f.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:N,fetchPriority:w}):x==="script"&&f.d.X(h,{crossOrigin:S,integrity:N,fetchPriority:w,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},cr.preinitModule=function(h,y){var x="";if(typeof h=="string"&&h||(x+=" The `href` argument encountered was "+o(h)+"."),y!==void 0&&typeof y!="object"?x+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&y.as!=="script"&&(x+=" The `as` option encountered was "+s(y.as)+"."),x)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",x);else switch(x=y&&typeof y.as=="string"?y.as:"script",x){case"script":break;default:x=s(x),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',x,h)}typeof h=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(x=r(y.as,y.crossOrigin),f.d.M(h,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&f.d.M(h))},cr.preload=function(h,y){var x="";if(typeof h=="string"&&h||(x+=" The `href` argument encountered was "+o(h)+"."),y==null||typeof y!="object"?x+=" The `options` argument encountered was "+o(y)+".":typeof y.as=="string"&&y.as||(x+=" The `as` option encountered was "+o(y.as)+"."),x&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',x),typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){x=y.as;var S=r(x,y.crossOrigin);f.d.L(h,x,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},cr.preloadModule=function(h,y){var x="";typeof h=="string"&&h||(x+=" The `href` argument encountered was "+o(h)+"."),y!==void 0&&typeof y!="object"?x+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&typeof y.as!="string"&&(x+=" The `as` option encountered was "+o(y.as)+"."),x&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',x),typeof h=="string"&&(y?(x=r(y.as,y.crossOrigin),f.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})):f.d.m(h))},cr.requestFormReset=function(h){f.d.r(h)},cr.unstable_batchedUpdates=function(h,y){return h(y)},cr.useFormState=function(h,y,x){return c().useFormState(h,y,x)},cr.useFormStatus=function(){return c().useHostTransitionStatus()},cr.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),cr}var OI;function D9(){return OI||(OI=1,yE.exports=Dee()),yE.exports}var DI;function Tee(){if(DI)return ih;DI=1;/**
* @license React
* react-dom-client.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){function e(a,i){for(a=a.memoizedState;a!==null&&0<i;)a=a.next,i--;return a}function t(a,i,l,d){if(l>=i.length)return d;var p=i[l],v=jn(a)?a.slice():mt({},a);return v[p]=t(a[p],i,l+1,d),v}function n(a,i,l){if(i.length!==l.length)console.warn("copyWithRename() expects paths of the same length");else{for(var d=0;d<l.length-1;d++)if(i[d]!==l[d]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return r(a,i,l,0)}}function r(a,i,l,d){var p=i[d],v=jn(a)?a.slice():mt({},a);return d+1===i.length?(v[l[d]]=v[p],jn(v)?v.splice(p,1):delete v[p]):v[p]=r(a[p],i,l,d+1),v}function o(a,i,l){var d=i[l],p=jn(a)?a.slice():mt({},a);return l+1===i.length?(jn(p)?p.splice(d,1):delete p[d],p):(p[d]=o(a[d],i,l+1),p)}function s(){return!1}function c(){return null}function u(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function f(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function m(){}function g(){}function h(a){var i=[];return a.forEach(function(l){i.push(l)}),i.sort().join(", ")}function y(a,i,l,d){return new FG(a,i,l,d)}function x(a,i){a.context===Is&&(EN(a.current,2,i,a,null,null),xu())}function S(a,i){if(Sa!==null){var l=i.staleFamilies;i=i.updatedFamilies,Wf(),Bj(a.current,i,l),xu()}}function N(a){Sa=a}function w(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function A(a){var i=a,l=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(l=i.return),a=i.return;while(a)}return i.tag===3?l:null}function D(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function _(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function P(a){if(A(a)!==a)throw Error("Unable to find node on an unmounted component.")}function O(a){var i=a.alternate;if(!i){if(i=A(a),i===null)throw Error("Unable to find node on an unmounted component.");return i!==a?null:a}for(var l=a,d=i;;){var p=l.return;if(p===null)break;var v=p.alternate;if(v===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===l)return P(p),a;if(v===d)return P(p),i;v=v.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=p,d=v;else{for(var E=!1,T=p.child;T;){if(T===l){E=!0,l=p,d=v;break}if(T===d){E=!0,d=p,l=v;break}T=T.sibling}if(!E){for(T=v.child;T;){if(T===l){E=!0,l=v,d=p;break}if(T===d){E=!0,d=v,l=p;break}T=T.sibling}if(!E)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(l.alternate!==d)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(l.tag!==3)throw Error("Unable to find node on an unmounted component.");return l.stateNode.current===l?a:i}function C(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=C(a),i!==null)return i;a=a.sibling}return null}function j(a){return a===null||typeof a!="object"?null:(a=G3&&a[G3]||a["@@iterator"],typeof a=="function"?a:null)}function k(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===mQ?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Du:return"Fragment";case _N:return"Profiler";case rv:return"StrictMode";case jN:return"Suspense";case PN:return"SuspenseList";case MN:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Ou:return"Portal";case Vi:return a.displayName||"Context";case RN:return(a._context.displayName||"Context")+".Consumer";case sm:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case av:return i=a.displayName||null,i!==null?i:k(a.type)||"Memo";case na:i=a._payload,a=a._init;try{return k(a(i))}catch{}}return null}function $(a){return typeof a.tag=="number"?B(a):typeof a.name=="string"?a.name:null}function B(a){var i=a.type;switch(a.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(i._context.displayName||"Context")+".Consumer";case 10:return i.displayName||"Context";case 18:return"DehydratedFragment";case 11:return a=i.render,a=a.displayName||a.name||"",i.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return k(i);case 8:return i===rv?"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 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;break;case 29:if(i=a._debugInfo,i!=null){for(var l=i.length-1;0<=l;l--)if(typeof i[l].name=="string")return i[l].name}if(a.return!==null)return B(a.return)}return null}function U(a){return{current:a}}function H(a,i){0>Ro?console.error("Unexpected pop."):(i!==LN[Ro]&&console.error("Unexpected Fiber popped."),a.current=kN[Ro],kN[Ro]=null,LN[Ro]=null,Ro--)}function G(a,i,l){Ro++,kN[Ro]=a.current,LN[Ro]=l,a.current=i}function Y(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function J(a,i){G(Rs,i,a),G(lm,a,a),G(_s,null,a);var l=i.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",i=(i=i.documentElement)&&(i=i.namespaceURI)?v3(i):Ko;break;default:if(l=i.tagName,i=i.namespaceURI)i=v3(i),i=b3(i,l);else switch(l){case"svg":i=sd;break;case"math":i=nb;break;default:i=Ko}}l=l.toLowerCase(),l=dj(null,l),l={context:i,ancestorInfo:l},H(_s,a),G(_s,l,a)}function q(a){H(_s,a),H(lm,a),H(Rs,a)}function z(){return Y(_s.current)}function K(a){a.memoizedState!==null&&G(iv,a,a);var i=Y(_s.current),l=a.type,d=b3(i.context,l);l=dj(i.ancestorInfo,l),d={context:d,ancestorInfo:l},i!==d&&(G(lm,a,a),G(_s,d,a))}function te(a){lm.current===a&&(H(_s,a),H(lm,a)),iv.current===a&&(H(iv,a),Jm._currentValue=uc)}function ne(){}function L(){if(cm===0){Y3=console.log,Q3=console.info,X3=console.warn,W3=console.error,Z3=console.group,J3=console.groupCollapsed,e5=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}cm++}function Q(){if(cm--,cm===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},a,{value:Y3}),info:mt({},a,{value:Q3}),warn:mt({},a,{value:X3}),error:mt({},a,{value:W3}),group:mt({},a,{value:Z3}),groupCollapsed:mt({},a,{value:J3}),groupEnd:mt({},a,{value:e5})})}0>cm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W(a){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=i,a.startsWith(`Error: react-stack-top-frame
`)&&(a=a.slice(29)),i=a.indexOf(`
`),i!==-1&&(a=a.slice(i+1)),i=a.indexOf("react_stack_bottom_frame"),i!==-1&&(i=a.lastIndexOf(`
`,i)),i!==-1)a=a.slice(0,i);else return"";return a}function ae(a){if(IN===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);IN=i&&i[1]||"",t5=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+IN+a+t5}function ge(a,i){if(!a||VN)return"";var l=$N.get(a);if(l!==void 0)return l;VN=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=pe.H,pe.H=null,L();try{var p={DetermineComponentFrameRoot:function(){try{if(i){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Te){var fe=Te}Reflect.construct(a,[],Z)}else{try{Z.call()}catch(Te){fe=Te}a.call(Z.prototype)}}else{try{throw Error()}catch(Te){fe=Te}(Z=a())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Te){if(Te&&fe&&typeof Te.stack=="string")return[Te.stack,fe.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=p.DetermineComponentFrameRoot(),T=E[0],M=E[1];if(T&&M){var I=T.split(`
`),oe=M.split(`
`);for(E=v=0;v<I.length&&!I[v].includes("DetermineComponentFrameRoot");)v++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(v===I.length||E===oe.length)for(v=I.length-1,E=oe.length-1;1<=v&&0<=E&&I[v]!==oe[E];)E--;for(;1<=v&&0<=E;v--,E--)if(I[v]!==oe[E]){if(v!==1||E!==1)do if(v--,E--,0>E||I[v]!==oe[E]){var se=`
`+I[v].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),typeof a=="function"&&$N.set(a,se),se}while(1<=v&&0<=E);break}}}finally{VN=!1,pe.H=d,Q(),Error.prepareStackTrace=l}return I=(I=a?a.displayName||a.name:"")?ae(I):"",typeof a=="function"&&$N.set(a,I),I}function we(a,i){switch(a.tag){case 26:case 27:case 5:return ae(a.type);case 16:return ae("Lazy");case 13:return a.child!==i&&i!==null?ae("Suspense Fallback"):ae("Suspense");case 19:return ae("SuspenseList");case 0:case 15:return ge(a.type,!1);case 11:return ge(a.type.render,!1);case 1:return ge(a.type,!0);case 31:return ae("Activity");default:return""}}function ue(a){try{var i="",l=null;do{i+=we(a,l);var d=a._debugInfo;if(d)for(var p=d.length-1;0<=p;p--){var v=d[p];if(typeof v.name=="string"){var E=i;e:{var T=v.name,M=v.env,I=v.debugLocation;if(I!=null){var oe=W(I),se=oe.lastIndexOf(`
`),Z=se===-1?oe:oe.slice(se+1);if(Z.indexOf(T)!==-1){var fe=`
`+Z;break e}}fe=ae(T+(M?" ["+M+"]":""))}i=E+fe}}l=a,a=a.return}while(a);return i}catch(Te){return`
Error generating stack: `+Te.message+`
`+Te.stack}}function xe(a){return(a=a?a.displayName||a.name:"")?ae(a):""}function me(){if(ra===null)return null;var a=ra._debugOwner;return a!=null?$(a):null}function ye(){if(ra===null)return"";var a=ra;try{var i="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:i+=ae(a.type);break;case 13:i+=ae("Suspense");break;case 19:i+=ae("SuspenseList");break;case 31:i+=ae("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==""||(i+=xe(a.type));break;case 11:a._debugOwner||i!==""||(i+=xe(a.type.render))}for(;a;)if(typeof a.tag=="number"){var l=a;a=l._debugOwner;var d=l._debugStack;if(a&&d){var p=W(d);p!==""&&(i+=`
`+p)}}else if(a.debugStack!=null){var v=a.debugStack;(a=a.owner)&&v&&(i+=`
`+W(v))}else break;var E=i}catch(T){E=`
Error generating stack: `+T.message+`
`+T.stack}return E}function de(a,i,l,d,p,v,E){var T=ra;ie(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,l,d,p,v,E)):i(l,d,p,v,E)}finally{ie(T)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ie(a){pe.getCurrentStack=a===null?null:ye,$i=!1,ra=a}function ze(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function Ne(a){try{return ut(a),!1}catch{return!0}}function ut(a){return""+a}function Ve(a,i){if(Ne(a))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",i,ze(a)),ut(a)}function tt(a,i){if(Ne(a))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",i,ze(a)),ut(a)}function zn(a){if(Ne(a))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",ze(a)),ut(a)}function xn(a){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var i=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(i.isDisabled)return!0;if(!i.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Cu=i.inject(a),sr=i}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!i.checkDCE}function je(a){if(typeof xQ=="function"&&NQ(a),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(Cu,a)}catch(i){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",i))}}function ir(a){return a>>>=0,a===0?32:31-(wQ(a)/EQ|0)|0}function St(a){var i=a&42;if(i!==0)return i;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),a}}function Un(a,i,l){var d=a.pendingLanes;if(d===0)return 0;var p=0,v=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var T=d&134217727;return T!==0?(d=T&~v,d!==0?p=St(d):(E&=T,E!==0?p=St(E):l||(l=T&~a,l!==0&&(p=St(l))))):(T=d&~v,T!==0?p=St(T):E!==0?p=St(E):l||(l=d&~a,l!==0&&(p=St(l)))),p===0?0:i!==0&&i!==p&&(i&v)===0&&(v=p&-p,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:p}function Mr(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function vi(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32: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 i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Yr(){var a=lv;return lv<<=1,(lv&62914560)===0&&(lv=4194304),a}function bi(a){for(var i=[],l=0;31>l;l++)i.push(a);return i}function Fa(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function gs(a,i,l,d,p,v){var E=a.pendingLanes;a.pendingLanes=l,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=l,a.entangledLanes&=l,a.errorRecoveryDisabledLanes&=l,a.shellSuspendCounter=0;var T=a.entanglements,M=a.expirationTimes,I=a.hiddenUpdates;for(l=E&~l;0<l;){var oe=31-Nr(l),se=1<<oe;T[oe]=0,M[oe]=-1;var Z=I[oe];if(Z!==null)for(I[oe]=null,oe=0;oe<Z.length;oe++){var fe=Z[oe];fe!==null&&(fe.lane&=-536870913)}l&=~se}d!==0&&ba(a,d,0),v!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=v&~(E&~i))}function ba(a,i,l){a.pendingLanes|=i,a.suspendedLanes&=~i;var d=31-Nr(i);a.entangledLanes|=i,a.entanglements[d]=a.entanglements[d]|1073741824|l&261930}function vs(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var d=31-Nr(l),p=1<<d;p&i|a[d]&i&&(a[d]|=i),l&=~p}}function kr(a,i){var l=i&-i;return l=(l&42)!==0?1:yi(l),(l&(a.suspendedLanes|i))!==0?0:l}function yi(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function bo(a,i,l){if(zi)for(a=a.pendingUpdatersLaneMap;0<l;){var d=31-Nr(l),p=1<<d;a[d].add(i),l&=~p}}function yo(a,i){if(zi)for(var l=a.pendingUpdatersLaneMap,d=a.memoizedUpdaters;0<i;){var p=31-Nr(i);a=1<<p,p=l[p],0<p.size&&(p.forEach(function(v){var E=v.alternate;E!==null&&d.has(E)||d.add(v)}),p.clear()),i&=~a}}function xo(a){return a&=-a,Na<a?Ui<a?(a&134217727)!==0?jo:cv:Ui:Na}function xi(){var a=Pt.p;return a!==0?a:(a=window.event,a===void 0?jo:B3(a.type))}function V(a,i){var l=Pt.p;try{return Pt.p=a,i()}finally{Pt.p=l}}function ce(a){delete a[tr],delete a[wr],delete a[HN],delete a[SQ],delete a[AQ]}function Ee(a){var i=a[tr];if(i)return i;for(var l=a.parentNode;l;){if(i=l[Ps]||l[tr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(a=O3(a);a!==null;){if(l=a[tr])return l;a=O3(a)}return i}a=l,l=a.parentNode}return null}function De(a){if(a=a[tr]||a[Ps]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function Me(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Je(a){var i=a[n5];return i||(i=a[n5]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(a){a[um]=!0}function He(a,i){Be(a,i),Be(a+"Capture",i)}function Be(a,i){zl[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),zl[a]=i;var l=a.toLowerCase();for(FN[l]=a,a==="onDoubleClick"&&(FN.ondblclick=a),a=0;a<i.length;a++)r5.add(i[a])}function zt(a,i){OQ[i.type]||i.onChange||i.onInput||i.readOnly||i.disabled||i.value==null||console.error(a==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),i.onChange||i.readOnly||i.disabled||i.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function yr(a){return Xa.call(i5,a)?!0:Xa.call(a5,a)?!1:DQ.test(a)?i5[a]=!0:(a5[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function dn(a,i,l){if(yr(i)){if(!a.hasAttribute(i)){switch(typeof l){case"symbol":case"object":return l;case"function":return l;case"boolean":if(l===!1)return l}return l===void 0?void 0:null}return a=a.getAttribute(i),a===""&&l===!0?!0:(Ve(l,i),a===""+l?l:a)}}function Rn(a,i,l){if(yr(i))if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){a.removeAttribute(i);return}}Ve(l,i),a.setAttribute(i,""+l)}}function No(a,i,l){if(l===null)a.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}Ve(l,i),a.setAttribute(i,""+l)}}function gn(a,i,l,d){if(d===null)a.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}Ve(d,l),a.setAttributeNS(i,l,""+d)}}function an(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return zn(a),a;default:return""}}function Of(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function wo(a,i,l){var d=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var p=d.get,v=d.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return p.call(this)},set:function(E){zn(E),l=""+E,v.call(this,E)}}),Object.defineProperty(a,i,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(E){zn(E),l=""+E},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Xp(a){if(!a._valueTracker){var i=Of(a)?"checked":"value";a._valueTracker=wo(a,i,""+a[i])}}function ZR(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return a&&(d=Of(a)?a.checked?"true":"false":a.value),a=d,a!==l?(i.setValue(a),!0):!1}function Wp(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 ya(a){return a.replace(TQ,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function JR(a,i){i.checked===void 0||i.defaultChecked===void 0||s5||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",me()||"A component",i.type),s5=!0),i.value===void 0||i.defaultValue===void 0||o5||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",me()||"A component",i.type),o5=!0)}function S0(a,i,l,d,p,v,E,T){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?(Ve(E,"type"),a.type=E):a.removeAttribute("type"),i!=null?E==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+an(i)):a.value!==""+an(i)&&(a.value=""+an(i)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),i!=null?A0(a,E,an(i)):l!=null?A0(a,E,an(l)):d!=null&&a.removeAttribute("value"),p==null&&v!=null&&(a.defaultChecked=!!v),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?(Ve(T,"name"),a.name=""+an(T)):a.removeAttribute("name")}function ej(a,i,l,d,p,v,E,T){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(Ve(v,"type"),a.type=v),i!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||i!=null)){Xp(a);return}l=l!=null?""+an(l):"",i=i!=null?""+an(i):l,T||i===a.value||(a.value=i),a.defaultValue=i}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,a.checked=T?a.checked:!!d,a.defaultChecked=!!d,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(Ve(E,"name"),a.name=E),Xp(a)}function A0(a,i,l){i==="number"&&Wp(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function tj(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?CN.Children.forEach(i.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||c5||(c5=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):i.dangerouslySetInnerHTML==null||u5||(u5=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||l5||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),l5=!0)}function nj(){var a=me();return a?`
Check the render method of \``+a+"`.":""}function lu(a,i,l,d){if(a=a.options,i){i={};for(var p=0;p<l.length;p++)i["$"+l[p]]=!0;for(l=0;l<a.length;l++)p=i.hasOwnProperty("$"+a[l].value),a[l].selected!==p&&(a[l].selected=p),p&&d&&(a[l].defaultSelected=!0)}else{for(l=""+an(l),i=null,p=0;p<a.length;p++){if(a[p].value===l){a[p].selected=!0,d&&(a[p].defaultSelected=!0);return}i!==null||a[p].disabled||(i=a[p])}i!==null&&(i.selected=!0)}}function rj(a,i){for(a=0;a<f5.length;a++){var l=f5[a];if(i[l]!=null){var d=jn(i[l]);i.multiple&&!d?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,nj()):!i.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,nj())}}i.value===void 0||i.defaultValue===void 0||d5||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),d5=!0)}function aj(a,i){i.value===void 0||i.defaultValue===void 0||m5||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",me()||"A component"),m5=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ij(a,i,l){if(i!=null&&(i=""+an(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?""+an(l):""}function oj(a,i,l,d){if(i==null){if(d!=null){if(l!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(jn(d)){if(1<d.length)throw Error("<textarea> can only have at most one child.");d=d[0]}l=d}l==null&&(l=""),i=l}l=an(i),a.defaultValue=l,d=a.textContent,d===l&&d!==""&&d!==null&&(a.value=d),Xp(a)}function sj(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?sj(a.children[0],i):a}function Qr(a){return" "+" ".repeat(a)}function cu(a){return"+ "+" ".repeat(a)}function Ol(a){return"- "+" ".repeat(a)}function lj(a){switch(a.tag){case 26:case 27:case 5:return a.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return a=a.type,a.displayName||a.name||null;case 11:return a=a.type.render,a.displayName||a.name||null;case 1:return a=a.type,a.displayName||a.name||null;default:return null}}function Df(a,i){return h5.test(a)?(a=JSON.stringify(a),a.length>i-2?8>i?'{"..."}':"{"+a.slice(0,i-7)+'..."}':"{"+a+"}"):a.length>i?5>i?'{"..."}':a.slice(0,i-3)+"...":a}function Zp(a,i,l){var d=120-2*l;if(i===null)return cu(l)+Df(a,d)+`
`;if(typeof i=="string"){for(var p=0;p<i.length&&p<a.length&&i.charCodeAt(p)===a.charCodeAt(p);p++);return p>d-8&&10<p&&(a="..."+a.slice(p-8),i="..."+i.slice(p-8)),cu(l)+Df(a,d)+`
`+Ol(l)+Df(i,d)+`
`}return Qr(l)+Df(a,d)+`
`}function O0(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,l){return l})}function Tf(a,i){switch(typeof a){case"string":return a=JSON.stringify(a),a.length>i?5>i?'"..."':a.slice(0,i-4)+'..."':a;case"object":if(a===null)return"null";if(jn(a))return"[...]";if(a.$$typeof===Ii)return(i=k(a.type))?"<"+i+">":"<...>";var l=O0(a);if(l==="Object"){l="",i-=2;for(var d in a)if(a.hasOwnProperty(d)){var p=JSON.stringify(d);if(p!=='"'+d+'"'&&(d=p),i-=d.length-2,p=Tf(a[d],15>i?i:15),i-=p.length,0>i){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+p}return"{"+l+"}"}return l;case"function":return(i=a.displayName||a.name)?"function "+i:"function";default:return String(a)}}function uu(a,i){return typeof a!="string"||h5.test(a)?"{"+Tf(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function D0(a,i,l){var d=120-l.length-a.length,p=[],v;for(v in i)if(i.hasOwnProperty(v)&&v!=="children"){var E=uu(i[v],120-l.length-v.length-1);d-=v.length+E.length+2,p.push(v+"="+E)}return p.length===0?l+"<"+a+`>
`:0<d?l+"<"+a+" "+p.join(" ")+`>
`:l+"<"+a+`
`+l+" "+p.join(`
`+l+" ")+`
`+l+`>
`}function EG(a,i,l){var d="",p=mt({},i),v;for(v in a)if(a.hasOwnProperty(v)){delete p[v];var E=120-2*l-v.length-2,T=Tf(a[v],E);i.hasOwnProperty(v)?(E=Tf(i[v],E),d+=cu(l)+v+": "+T+`
`,d+=Ol(l)+v+": "+E+`
`):d+=cu(l)+v+": "+T+`
`}for(var M in p)p.hasOwnProperty(M)&&(a=Tf(p[M],120-2*l-M.length-2),d+=Ol(l)+M+": "+a+`
`);return d}function SG(a,i,l,d){var p="",v=new Map;for(I in l)l.hasOwnProperty(I)&&v.set(I.toLowerCase(),I);if(v.size===1&&v.has("children"))p+=D0(a,i,Qr(d));else{for(var E in i)if(i.hasOwnProperty(E)&&E!=="children"){var T=120-2*(d+1)-E.length-1,M=v.get(E.toLowerCase());if(M!==void 0){v.delete(E.toLowerCase());var I=i[E];M=l[M];var oe=uu(I,T);T=uu(M,T),typeof I=="object"&&I!==null&&typeof M=="object"&&M!==null&&O0(I)==="Object"&&O0(M)==="Object"&&(2<Object.keys(I).length||2<Object.keys(M).length||-1<oe.indexOf("...")||-1<T.indexOf("..."))?p+=Qr(d+1)+E+`={{
`+EG(I,M,d+2)+Qr(d+1)+`}}
`:(p+=cu(d+1)+E+"="+oe+`
`,p+=Ol(d+1)+E+"="+T+`
`)}else p+=Qr(d+1)+E+"="+uu(i[E],T)+`
`}v.forEach(function(se){if(se!=="children"){var Z=120-2*(d+1)-se.length-1;p+=Ol(d+1)+se+"="+uu(l[se],Z)+`
`}}),p=p===""?Qr(d)+"<"+a+`>
`:Qr(d)+"<"+a+`
`+p+Qr(d)+`>
`}return a=l.children,i=i.children,typeof a=="string"||typeof a=="number"||typeof a=="bigint"?(v="",(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(v=""+i),p+=Zp(v,""+a,d+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(p=a==null?p+Zp(""+i,null,d+1):p+Zp(""+i,void 0,d+1)),p}function cj(a,i){var l=lj(a);if(l===null){for(l="",a=a.child;a;)l+=cj(a,i),a=a.sibling;return l}return Qr(i)+"<"+l+`>
`}function T0(a,i){var l=sj(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Qr(i)+`...
`+T0(l,i+1);l="";var d=a.fiber._debugInfo;if(d)for(var p=0;p<d.length;p++){var v=d[p].name;typeof v=="string"&&(l+=Qr(i)+"<"+v+`>
`,i++)}if(d="",p=a.fiber.pendingProps,a.fiber.tag===6)d=Zp(p,a.serverProps,i),i++;else if(v=lj(a.fiber),v!==null)if(a.serverProps===void 0){d=i;var E=120-2*d-v.length-2,T="";for(I in p)if(p.hasOwnProperty(I)&&I!=="children"){var M=uu(p[I],15);if(E-=I.length+M.length+2,0>E){T+=" ...";break}T+=" "+I+"="+M}d=Qr(d)+"<"+v+T+`>
`,i++}else a.serverProps===null?(d=D0(v,p,cu(i)),i++):typeof a.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(d=SG(v,p,a.serverProps,i),i++);var I="";for(p=a.fiber.child,v=0;p&&v<a.children.length;)E=a.children[v],E.fiber===p?(I+=T0(E,i),v++):I+=cj(p,i),p=p.sibling;for(p&&0<a.children.length&&(I+=Qr(i)+`...
`),p=a.serverTail,a.serverProps===null&&i--,a=0;a<p.length;a++)v=p[a],I=typeof v=="string"?I+(Ol(i)+Df(v,120-2*i)+`
`):I+D0(v.type,v.props,Ol(i));return l+d+I}function C0(a){try{return`
`+T0(a,0)}catch{return""}}function uj(a,i,l){for(var d=i,p=null,v=0;d;)d===a&&(v=0),p={fiber:d,children:p!==null?[p]:[],serverProps:d===i?l:d===a?null:void 0,serverTail:[],distanceFromLeaf:v},v++,d=d.return;return p!==null?C0(p).replaceAll(/^[+-]/gm,">"):""}function dj(a,i){var l=mt({},a||g5),d={tag:i};return p5.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),_Q.indexOf(i)!==-1&&(l.pTagInButtonScope=null),CQ.indexOf(i)!==-1&&i!=="address"&&i!=="div"&&i!=="p"&&(l.listItemTagAutoclosing=null,l.dlItemTagAutoclosing=null),l.current=d,i==="form"&&(l.formTag=d),i==="a"&&(l.aTagInScope=d),i==="button"&&(l.buttonTagInScope=d),i==="nobr"&&(l.nobrTagInScope=d),i==="p"&&(l.pTagInButtonScope=d),i==="li"&&(l.listItemTagAutoclosing=d),(i==="dd"||i==="dt")&&(l.dlItemTagAutoclosing=d),i==="#document"||i==="html"?l.containerTagInScope=null:l.containerTagInScope||(l.containerTagInScope=d),a!==null||i!=="#document"&&i!=="html"&&i!=="body"?l.implicitRootScope===!0&&(l.implicitRootScope=!1):l.implicitRootScope=!0,l}function fj(a,i,l){switch(i){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(l)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!l)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return RQ.indexOf(i)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null;case"head":return l||i===null;case"html":return l&&i==="#document"||i===null;case"body":return l&&(i==="#document"||i==="html")||i===null}return!0}function AG(a,i){switch(a){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i.pTagInButtonScope;case"form":return i.formTag||i.pTagInButtonScope;case"li":return i.listItemTagAutoclosing;case"dd":case"dt":return i.dlItemTagAutoclosing;case"button":return i.buttonTagInScope;case"a":return i.aTagInScope;case"nobr":return i.nobrTagInScope}return null}function mj(a,i){for(;a;){switch(a.tag){case 5:case 26:case 27:if(a.type===i)return a}a=a.return}return null}function _0(a,i){i=i||g5;var l=i.current;if(i=(l=fj(a,l&&l.tag,i.implicitRootScope)?null:l)?null:AG(a,i),i=l||i,!i)return!0;var d=i.tag;if(i=String(!!l)+"|"+a+"|"+d,uv[i])return!1;uv[i]=!0;var p=(i=ra)?mj(i.return,d):null,v=i!==null&&p!==null?uj(p,i,null):"",E="<"+a+">";return l?(l="",d==="table"&&a==="tr"&&(l+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
This will cause a hydration error.%s`,E,d,l,v)):console.error(`In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s`,E,d,v),i&&(a=i.return,p===null||a===null||p===a&&a._debugOwner===i._debugOwner||de(p,function(){console.error(`<%s> cannot contain a nested %s.
See this log for the ancestor stack trace.`,d,E)})),!1}function Jp(a,i,l){if(l||fj("#text",i,!1))return!0;if(l="#text|"+i,uv[l])return!1;uv[l]=!0;var d=(l=ra)?mj(l,i):null;return l=l!==null&&d!==null?uj(d,l,l.tag!==6?{children:null}:null):"",/\S/.test(a)?console.error(`In HTML, text nodes cannot be a child of <%s>.
This will cause a hydration error.%s`,i,l):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
This will cause a hydration error.%s`,i,l),!1}function Cf(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function OG(a){return a.replace(MQ,function(i,l){return l.toUpperCase()})}function hj(a,i,l){var d=i.indexOf("--")===0;d||(-1<i.indexOf("-")?_u.hasOwnProperty(i)&&_u[i]||(_u[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,OG(i.replace(PQ,"ms-")))):jQ.test(i)?_u.hasOwnProperty(i)&&_u[i]||(_u[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!y5.test(l)||GN.hasOwnProperty(l)&&GN[l]||(GN[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,l.replace(y5,""))),typeof l=="number"&&(isNaN(l)?x5||(x5=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(l)||N5||(N5=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",i)))),l==null||typeof l=="boolean"||l===""?d?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":d?a.setProperty(i,l):typeof l!="number"||l===0||w5.has(i)?i==="float"?a.cssFloat=l:(tt(l,i),a[i]=(""+l).trim()):a[i]=l+"px"}function pj(a,i,l){if(i!=null&&typeof i!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(i&&Object.freeze(i),a=a.style,l!=null){if(i){var d={};if(l){for(var p in l)if(l.hasOwnProperty(p)&&!i.hasOwnProperty(p))for(var v=KN[p]||[p],E=0;E<v.length;E++)d[v[E]]=p}for(var T in i)if(i.hasOwnProperty(T)&&(!l||l[T]!==i[T]))for(p=KN[T]||[T],v=0;v<p.length;v++)d[p[v]]=T;T={};for(var M in i)for(p=KN[M]||[M],v=0;v<p.length;v++)T[p[v]]=M;M={};for(var I in d)if(p=d[I],(v=T[I])&&p!==v&&(E=p+","+v,!M[E])){M[E]=!0,E=console;var oe=i[p];E.error.call(E,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",oe==null||typeof oe=="boolean"||oe===""?"Removing":"Updating",p,v)}}for(var se in l)!l.hasOwnProperty(se)||i!=null&&i.hasOwnProperty(se)||(se.indexOf("--")===0?a.setProperty(se,""):se==="float"?a.cssFloat="":a[se]="");for(var Z in i)I=i[Z],i.hasOwnProperty(Z)&&l[Z]!==I&&hj(a,Z,I)}else for(d in i)i.hasOwnProperty(d)&&hj(a,d,i[d])}function _f(a){if(a.indexOf("-")===-1)return!1;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}}function gj(a){return kQ.get(a)||a}function DG(a,i){if(Xa.call(ju,i)&&ju[i])return!0;if(IQ.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=E5.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),ju[i]=!0;if(i!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,a),ju[i]=!0}if(LQ.test(i)){if(a=i.toLowerCase(),a=E5.hasOwnProperty(a)?a:null,a==null)return ju[i]=!0,!1;i!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,a),ju[i]=!0)}return!0}function TG(a,i){var l=[],d;for(d in i)DG(a,d)||l.push(d);i=l.map(function(p){return"`"+p+"`"}).join(", "),l.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a):1<l.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",i,a)}function CG(a,i,l,d){if(Xa.call(Er,i)&&Er[i])return!0;var p=i.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Er[i]=!0;if(typeof l=="function"&&(a==="form"&&i==="action"||a==="input"&&i==="formAction"||a==="button"&&i==="formAction"))return!0;if(d!=null){if(a=d.possibleRegistrationNames,d.registrationNameDependencies.hasOwnProperty(i))return!0;if(d=a.hasOwnProperty(p)?a[p]:null,d!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",i,d),Er[i]=!0;if(A5.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),Er[i]=!0}else if(A5.test(i))return VQ.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Er[i]=!0;if($Q.test(i)||BQ.test(i))return!0;if(p==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Er[i]=!0;if(p==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Er[i]=!0;if(p==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),Er[i]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Er[i]=!0;if(fv.hasOwnProperty(p)){if(p=fv[p],p!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,p),Er[i]=!0}else if(i!==p)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",i,p),Er[i]=!0;switch(i){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(i){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return p=i.toLowerCase().slice(0,5),p==="data-"||p==="aria-"?!0:(l?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,i,i,l,i):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,i,i,l,i,i,i),Er[i]=!0)}case"function":case"symbol":return Er[i]=!0,!1;case"string":if(l==="false"||l==="true"){switch(i){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,i,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',i,l),Er[i]=!0}}return!0}function _G(a,i,l){var d=[],p;for(p in i)CG(a,p,i[p],l)||d.push(p);i=d.map(function(v){return"`"+v+"`"}).join(", "),d.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",i,a):1<d.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",i,a)}function Rf(a){return zQ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Eo(){}function R0(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function vj(a){var i=De(a);if(i&&(a=i.stateNode)){var l=a[wr]||null;e:switch(a=i.stateNode,i.type){case"input":if(S0(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=a;l.parentNode;)l=l.parentNode;for(Ve(i,"name"),l=l.querySelectorAll('input[name="'+ya(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==a&&d.form===a.form){var p=d[wr]||null;if(!p)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");S0(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<l.length;i++)d=l[i],d.form===a.form&&ZR(d)}break e;case"textarea":ij(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&lu(a,!!l.multiple,i,!1)}}}function bj(a,i,l){if(YN)return a(i,l);YN=!0;try{var d=a(i);return d}finally{if(YN=!1,(Pu!==null||Mu!==null)&&(xu(),Pu&&(i=Pu,a=Mu,Mu=Pu=null,vj(i),a)))for(i=0;i<a.length;i++)vj(a[i])}}function jf(a,i){var l=a.stateNode;if(l===null)return null;var d=l[wr]||null;if(d===null)return null;l=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(a=a.type,d=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!d;break e;default:a=!1}if(a)return null;if(l&&typeof l!="function")throw Error("Expected `"+i+"` listener to be a function, instead got a value of `"+typeof l+"` type.");return l}function yj(){if(mv)return mv;var a,i=XN,l=i.length,d,p="value"in Ms?Ms.value:Ms.textContent,v=p.length;for(a=0;a<l&&i[a]===p[a];a++);var E=l-a;for(d=1;d<=E&&i[l-d]===p[v-d];d++);return mv=p.slice(a,1<d?1-d:void 0)}function eg(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function tg(){return!0}function xj(){return!1}function Lr(a){function i(l,d,p,v,E){this._reactName=l,this._targetInst=p,this.type=d,this.nativeEvent=v,this.target=E,this.currentTarget=null;for(var T in a)a.hasOwnProperty(T)&&(l=a[T],this[T]=l?l(v):v[T]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?tg:xj,this.isPropagationStopped=xj,this}return mt(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=tg)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=tg)},persist:function(){},isPersistent:tg}),i}function RG(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=eX[a])?!!i[a]:!1}function j0(){return RG}function Nj(a,i){switch(a){case"keyup":return fX.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==C5;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wj(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function jG(a,i){switch(a){case"compositionend":return wj(i);case"keypress":return i.which!==R5?null:(P5=!0,j5);case"textInput":return a=i.data,a===j5&&P5?null:a;default:return null}}function PG(a,i){if(ku)return a==="compositionend"||!ew&&Nj(a,i)?(a=yj(),mv=XN=Ms=null,ku=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return _5&&i.locale!=="ko"?null:i.data;default:return null}}function Ej(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!hX[a.type]:i==="textarea"}function MG(a){if(!qi)return!1;a="on"+a;var i=a in document;return i||(i=document.createElement("div"),i.setAttribute(a,"return;"),i=typeof i[a]=="function"),i}function Sj(a,i,l,d){Pu?Mu?Mu.push(d):Mu=[d]:Pu=d,i=Gg(i,"onChange"),0<i.length&&(l=new hv("onChange","change",null,l,d),a.push({event:l,listeners:i}))}function kG(a){o3(a,0)}function ng(a){var i=Me(a);if(ZR(i))return a}function Aj(a,i){if(a==="change")return i}function Oj(){gm&&(gm.detachEvent("onpropertychange",Dj),vm=gm=null)}function Dj(a){if(a.propertyName==="value"&&ng(vm)){var i=[];Sj(i,vm,a,R0(a)),bj(kG,i)}}function LG(a,i,l){a==="focusin"?(Oj(),gm=i,vm=l,gm.attachEvent("onpropertychange",Dj)):a==="focusout"&&Oj()}function IG(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return ng(vm)}function VG(a,i){if(a==="click")return ng(i)}function $G(a,i){if(a==="input"||a==="change")return ng(i)}function BG(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function Pf(a,i){if(Sr(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var l=Object.keys(a),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!Xa.call(i,p)||!Sr(a[p],i[p]))return!1}return!0}function Tj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Cj(a,i){var l=Tj(a);a=0;for(var d;l;){if(l.nodeType===3){if(d=a+l.textContent.length,a<=i&&d>=i)return{node:l,offset:i-a};a=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Tj(l)}}function _j(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?_j(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Rj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Wp(a.document);i instanceof a.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)a=i.contentWindow;else break;i=Wp(a.document)}return i}function P0(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}function jj(a,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;nw||Lu==null||Lu!==Wp(d)||(d=Lu,"selectionStart"in d&&P0(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),bm&&Pf(bm,d)||(bm=d,d=Gg(tw,"onSelect"),0<d.length&&(i=new hv("onSelect","select",null,i,l),a.push({event:i,listeners:d}),i.target=Lu)))}function Dl(a,i){var l={};return l[a.toLowerCase()]=i.toLowerCase(),l["Webkit"+a]="webkit"+i,l["Moz"+a]="moz"+i,l}function Tl(a){if(rw[a])return rw[a];if(!Iu[a])return a;var i=Iu[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in k5)return rw[a]=i[l];return a}function Ka(a,i){B5.set(a,i),He(i,[a])}function zG(a){for(var i=gv,l=0;l<a.length;l++){var d=a[l];if(typeof d=="object"&&d!==null)if(jn(d)&&d.length===2&&typeof d[0]=="string"){if(i!==gv&&i!==lw)return ow;i=lw}else return ow;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||i!==gv&&i!==sw)return ow;i=sw}}return i}function M0(a,i,l,d){for(var p in a)Xa.call(a,p)&&p[0]!=="_"&&Ni(p,a[p],i,l,d)}function Ni(a,i,l,d,p){switch(typeof i){case"object":if(i===null){i="null";break}else{if(i.$$typeof===Ii){var v=k(i.type)||"…",E=i.key;i=i.props;var T=Object.keys(i),M=T.length;if(E==null&&M===0){i="<"+v+" />";break}if(3>d||M===1&&T[0]==="children"&&E==null){i="<"+v+" … />";break}l.push([p+"  ".repeat(d)+a,"<"+v]),E!==null&&Ni("key",E,l,d+1,p),a=!1;for(var I in i)I==="children"?i.children!=null&&(!jn(i.children)||0<i.children.length)&&(a=!0):Xa.call(i,I)&&I[0]!=="_"&&Ni(I,i[I],l,d+1,p);l.push(["",a?">…</"+v+">":"/>"]);return}if(v=Object.prototype.toString.call(i),v=v.slice(8,v.length-1),v==="Array"){if(I=zG(i),I===sw||I===gv){i=JSON.stringify(i);break}else if(I===lw){for(l.push([p+"  ".repeat(d)+a,""]),a=0;a<i.length;a++)v=i[a],Ni(v[0],v[1],l,d+1,p);return}}if(v==="Promise"){if(i.status==="fulfilled"){if(v=l.length,Ni(a,i.value,l,d,p),l.length>v){l=l[v],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(i.status==="rejected"&&(v=l.length,Ni(a,i.reason,l,d,p),l.length>v)){l=l[v],l[1]="Rejected Promise<"+l[1]+">";return}l.push(["  ".repeat(d)+a,"Promise"]);return}v==="Object"&&(I=Object.getPrototypeOf(i))&&typeof I.constructor=="function"&&(v=I.constructor.name),l.push([p+"  ".repeat(d)+a,v==="Object"?3>d?"":"…":v]),3>d&&M0(i,l,d+1,p);return}case"function":i=i.name===""?"() => {}":i.name+"() {}";break;case"string":i=i===NX?"…":JSON.stringify(i);break;case"undefined":i="undefined";break;case"boolean":i=i?"true":"false";break;default:i=String(i)}l.push([p+"  ".repeat(d)+a,i])}function Pj(a,i,l,d){var p=!0;for(E in a)E in i||(l.push([vv+"  ".repeat(d)+E,"…"]),p=!1);for(var v in i)if(v in a){var E=a[v],T=i[v];if(E!==T){if(d===0&&v==="children")p="  ".repeat(d)+v,l.push([vv+p,"…"],[bv+p,"…"]);else{if(!(3<=d)){if(typeof E=="object"&&typeof T=="object"&&E!==null&&T!==null&&E.$$typeof===T.$$typeof)if(T.$$typeof===Ii){if(E.type===T.type&&E.key===T.key){E=k(T.type)||"…",p="  ".repeat(d)+v,E="<"+E+" … />",l.push([vv+p,E],[bv+p,E]),p=!1;continue}}else{var M=Object.prototype.toString.call(E),I=Object.prototype.toString.call(T);if(M===I&&(I==="[object Object]"||I==="[object Array]")){M=[q5+"  ".repeat(d)+v,I==="[object Array]"?"Array":""],l.push(M),I=l.length,Pj(E,T,l,d+1)?I===l.length&&(M[1]="Referentially unequal but deeply equal objects. Consider memoization."):p=!1;continue}}else if(typeof E=="function"&&typeof T=="function"&&E.name===T.name&&E.length===T.length&&(M=Function.prototype.toString.call(E),I=Function.prototype.toString.call(T),M===I)){E=T.name===""?"() => {}":T.name+"() {}",l.push([q5+"  ".repeat(d)+v,E+" Referentially unequal function closure. Consider memoization."]);continue}}Ni(v,E,l,d,vv),Ni(v,T,l,d,bv)}p=!1}}else l.push([bv+"  ".repeat(d)+v,"…"]),p=!1;return p}function Ga(a){xt=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function wi(a,i,l,d){Qt&&(Ls.start=i,Ls.end=l,Po.color="warning",Po.tooltipText=d,Po.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,d,Ls)):performance.measure(d,Ls))}function rg(a,i,l){wi(a,i,l,"Reconnect")}function ag(a,i,l,d,p){var v=B(a);if(v!==null&&Qt){var E=a.alternate,T=a.actualDuration;if(E===null||E.child!==a.child)for(var M=a.child;M!==null;M=M.sibling)T-=M.actualDuration;d=.5>T?d?"tertiary-light":"primary-light":10>T?d?"tertiary":"primary":100>T?d?"tertiary-dark":"primary-dark":"error";var I=a.memoizedProps;T=a._debugTask,I!==null&&E!==null&&E.memoizedProps!==I?(M=[wX],I=Pj(E.memoizedProps,I,M,0),1<M.length&&(I&&!ks&&(E.lanes&p)===0&&100<a.actualDuration?(ks=!0,M[0]=EX,Po.color="warning",Po.tooltipText=H5):(Po.color=d,Po.tooltipText=v),Po.properties=M,Ls.start=i,Ls.end=l,T!=null?T.run(performance.measure.bind(performance,""+v,Ls)):performance.measure(""+v,Ls))):T!=null?T.run(console.timeStamp.bind(console,v,i,l,wa,void 0,d)):console.timeStamp(v,i,l,wa,void 0,d)}}function k0(a,i,l,d){if(Qt){var p=B(a);if(p!==null){for(var v=null,E=[],T=0;T<d.length;T++){var M=d[T];v==null&&M.source!==null&&(v=M.source._debugTask),M=M.value,E.push(["Error",typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M)])}a.key!==null&&Ni("key",a.key,E,0,""),a.memoizedProps!==null&&M0(a.memoizedProps,E,0,""),v==null&&(v=a._debugTask),a={start:i,end:l,detail:{devtools:{color:"error",track:wa,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:E}}},v?v.run(performance.measure.bind(performance,""+p,a)):performance.measure(""+p,a)}}}function Ei(a,i,l,d,p){if(p!==null){if(Qt){var v=B(a);if(v!==null){d=[];for(var E=0;E<p.length;E++){var T=p[E].value;d.push(["Error",typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T)])}a.key!==null&&Ni("key",a.key,d,0,""),a.memoizedProps!==null&&M0(a.memoizedProps,d,0,""),i={start:i,end:l,detail:{devtools:{color:"error",track:wa,tooltipText:"A lifecycle or effect errored",properties:d}}},(a=a._debugTask)?a.run(performance.measure.bind(performance,""+v,i)):performance.measure(""+v,i)}}}else v=B(a),v!==null&&Qt&&(p=1>d?"secondary-light":100>d?"secondary":500>d?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,v,i,l,wa,void 0,p)):console.timeStamp(v,i,l,wa,void 0,p))}function UG(a,i,l,d){if(Qt&&!(i<=a)){var p=(l&738197653)===l?"tertiary-dark":"primary-dark";l=(l&536870912)===l?"Prepared":(l&201326741)===l?"Hydrated":"Render",d?d.run(console.timeStamp.bind(console,l,a,i,xt,bt,p)):console.timeStamp(l,a,i,xt,bt,p)}}function Mj(a,i,l,d){!Qt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",a,i,xt,bt,l)):console.timeStamp("Prewarm",a,i,xt,bt,l))}function kj(a,i,l,d){!Qt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",a,i,xt,bt,l)):console.timeStamp("Suspended",a,i,xt,bt,l))}function qG(a,i,l,d,p,v){if(Qt&&!(i<=a)){l=[];for(var E=0;E<d.length;E++){var T=d[E].value;l.push(["Recoverable Error",typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T)])}a={start:a,end:i,detail:{devtools:{color:"primary-dark",track:xt,trackGroup:bt,tooltipText:p?"Hydration Failed":"Recovered after Error",properties:l}}},v?v.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function L0(a,i,l,d){!Qt||i<=a||(d?d.run(console.timeStamp.bind(console,"Errored",a,i,xt,bt,"error")):console.timeStamp("Errored",a,i,xt,bt,"error"))}function HG(a,i,l,d){!Qt||i<=a||(d?d.run(console.timeStamp.bind(console,l,a,i,xt,bt,"secondary-light")):console.timeStamp(l,a,i,xt,bt,"secondary-light"))}function Lj(a,i,l,d,p){if(Qt&&!(i<=a)){for(var v=[],E=0;E<l.length;E++){var T=l[E].value;v.push(["Error",typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T)])}a={start:a,end:i,detail:{devtools:{color:"error",track:xt,trackGroup:bt,tooltipText:d?"Remaining Effects Errored":"Commit Errored",properties:v}}},p?p.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function I0(a,i,l){!Qt||i<=a||console.timeStamp("Animating",a,i,xt,bt,"secondary-dark")}function ig(){for(var a=Vu,i=cw=Vu=0;i<a;){var l=Ea[i];Ea[i++]=null;var d=Ea[i];Ea[i++]=null;var p=Ea[i];Ea[i++]=null;var v=Ea[i];if(Ea[i++]=null,d!==null&&p!==null){var E=d.pending;E===null?p.next=p:(p.next=E.next,E.next=p),d.pending=p}v!==0&&Ij(l,p,v)}}function og(a,i,l,d){Ea[Vu++]=a,Ea[Vu++]=i,Ea[Vu++]=l,Ea[Vu++]=d,cw|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function V0(a,i,l,d){return og(a,i,l,d),sg(a)}function or(a,i){return og(a,null,null,i),sg(a)}function Ij(a,i,l){a.lanes|=l;var d=a.alternate;d!==null&&(d.lanes|=l);for(var p=!1,v=a.return;v!==null;)v.childLanes|=l,d=v.alternate,d!==null&&(d.childLanes|=l),v.tag===22&&(a=v.stateNode,a===null||a._visibility&ym||(p=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,p&&i!==null&&(p=31-Nr(l),a=v.hiddenUpdates,d=a[p],d===null?a[p]=[i]:d.push(i),i.lane=l|536870912),v):null}function sg(a){if(Km>$X)throw ac=Km=0,Gm=Uw=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");ac>BX&&(ac=0,Gm=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),a.alternate===null&&(a.flags&4098)!==0&&JM(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&JM(a),i=l,l=i.return;return i.tag===3?i.stateNode:null}function Cl(a){if(Sa===null)return a;var i=Sa(a);return i===void 0?a:i.current}function $0(a){if(Sa===null)return a;var i=Sa(a);return i===void 0?a!=null&&typeof a.render=="function"&&(i=Cl(a.render),a.render!==i)?(i={$$typeof:sm,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function Vj(a,i){if(Sa===null)return!1;var l=a.elementType;i=i.type;var d=!1,p=typeof i=="object"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i=="function"&&(d=!0);break;case 0:(typeof i=="function"||p===na)&&(d=!0);break;case 11:(p===sm||p===na)&&(d=!0);break;case 14:case 15:(p===av||p===na)&&(d=!0);break;default:return!1}return!!(d&&(a=Sa(l),a!==void 0&&a===Sa(i)))}function $j(a){Sa!==null&&typeof WeakSet=="function"&&($u===null&&($u=new WeakSet),$u.add(a))}function Bj(a,i,l){do{var d=a,p=d.alternate,v=d.child,E=d.sibling,T=d.tag;d=d.type;var M=null;switch(T){case 0:case 15:case 1:M=d;break;case 11:M=d.render}if(Sa===null)throw Error("Expected resolveFamily to be set during hot reload.");var I=!1;if(d=!1,M!==null&&(M=Sa(M),M!==void 0&&(l.has(M)?d=!0:i.has(M)&&(T===1?d=!0:I=!0))),$u!==null&&($u.has(a)||p!==null&&$u.has(p))&&(d=!0),d&&(a._debugNeedsRemount=!0),(d||I)&&(p=or(a,2),p!==null&&cn(p,a,2)),v===null||d||Bj(v,i,l),E===null)break;a=E}while(!0)}function FG(a,i,l,d){this.tag=a,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,F5||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function B0(a){return a=a.prototype,!(!a||!a.isReactComponent)}function So(a,i){var l=a.alternate;switch(l===null?(l=y(a.tag,i,a.key,a.mode),l.elementType=a.elementType,l.type=a.type,l.stateNode=a.stateNode,l._debugOwner=a._debugOwner,l._debugStack=a._debugStack,l._debugTask=a._debugTask,l._debugHookTypes=a._debugHookTypes,l.alternate=a,a.alternate=l):(l.pendingProps=i,l.type=a.type,l.flags=0,l.subtreeFlags=0,l.deletions=null,l.actualDuration=-0,l.actualStartTime=-1.1),l.flags=a.flags&65011712,l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,i=a.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},l.sibling=a.sibling,l.index=a.index,l.ref=a.ref,l.refCleanup=a.refCleanup,l.selfBaseDuration=a.selfBaseDuration,l.treeBaseDuration=a.treeBaseDuration,l._debugInfo=a._debugInfo,l._debugNeedsRemount=a._debugNeedsRemount,l.tag){case 0:case 15:l.type=Cl(a.type);break;case 1:l.type=Cl(a.type);break;case 11:l.type=$0(a.type)}return l}function zj(a,i){a.flags&=65011714;var l=a.alternate;return l===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null,a.selfBaseDuration=0,a.treeBaseDuration=0):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,i=l.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext,_debugThenableState:i._debugThenableState},a.selfBaseDuration=l.selfBaseDuration,a.treeBaseDuration=l.treeBaseDuration),a}function z0(a,i,l,d,p,v){var E=0,T=a;if(typeof a=="function")B0(a)&&(E=1),T=Cl(T);else if(typeof a=="string")E=z(),E=eQ(a,l,E)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case MN:return i=y(31,l,i,p),i.elementType=MN,i.lanes=v,i;case Du:return _l(l.children,p,v,i);case rv:E=8,p|=lr,p|=Wa;break;case _N:return a=l,d=p,typeof a.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof a.id),i=y(12,a,i,d|st),i.elementType=_N,i.lanes=v,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case jN:return i=y(13,l,i,p),i.elementType=jN,i.lanes=v,i;case PN:return i=y(19,l,i,p),i.elementType=PN,i.lanes=v,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Vi:E=10;break e;case RN:E=9;break e;case sm:E=11,T=$0(T);break e;case av:E=14;break e;case na:E=16,T=null;break e}T="",(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a===null?l="null":jn(a)?l="array":a!==void 0&&a.$$typeof===Ii?(l="<"+(k(a.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):l=typeof a,(E=d?$(d):null)&&(T+=`
Check the render method of \``+E+"`."),E=29,l=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(l+"."+T)),T=null}return i=y(E,l,i,p),i.elementType=a,i.type=T,i.lanes=v,i._debugOwner=d,i}function lg(a,i,l){return i=z0(a.type,a.key,a.props,a._owner,i,l),i._debugOwner=a._owner,i._debugStack=a._debugStack,i._debugTask=a._debugTask,i}function _l(a,i,l,d){return a=y(7,a,d,i),a.lanes=l,a}function U0(a,i,l){return a=y(6,a,null,i),a.lanes=l,a}function Uj(a){var i=y(18,null,null,Ye);return i.stateNode=a,i}function q0(a,i,l){return i=y(4,a.children!==null?a.children:[],a.key,i),i.lanes=l,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}function Xr(a,i){if(typeof a=="object"&&a!==null){var l=uw.get(a);return l!==void 0?l:(i={value:a,source:i,stack:ue(i)},uw.set(a,i),i)}return{value:a,source:i,stack:ue(i)}}function Ao(a,i){bs(),Bu[zu++]=xm,Bu[zu++]=yv,yv=a,xm=i}function qj(a,i,l){bs(),Aa[Oa++]=ko,Aa[Oa++]=Lo,Aa[Oa++]=ql,ql=a;var d=ko;a=Lo;var p=32-Nr(d)-1;d&=~(1<<p),l+=1;var v=32-Nr(i)+p;if(30<v){var E=p-p%5;v=(d&(1<<E)-1).toString(32),d>>=E,p-=E,ko=1<<32-Nr(i)+p|l<<p|d,Lo=v+a}else ko=1<<v|l<<p|d,Lo=a}function H0(a){bs(),a.return!==null&&(Ao(a,1),qj(a,1,0))}function F0(a){for(;a===yv;)yv=Bu[--zu],Bu[zu]=null,xm=Bu[--zu],Bu[zu]=null;for(;a===ql;)ql=Aa[--Oa],Aa[Oa]=null,Lo=Aa[--Oa],Aa[Oa]=null,ko=Aa[--Oa],Aa[Oa]=null}function Hj(){return bs(),ql!==null?{id:ko,overflow:Lo}:null}function Fj(a,i){bs(),Aa[Oa++]=ko,Aa[Oa++]=Lo,Aa[Oa++]=ql,ko=i.id,Lo=i.overflow,ql=a}function bs(){pt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Rl(a,i){if(a.return===null){if(aa===null)aa={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(aa.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");aa.distanceFromLeaf>i&&(aa.distanceFromLeaf=i)}return aa}var l=Rl(a.return,i+1).children;return 0<l.length&&l[l.length-1].fiber===a?(l=l[l.length-1],l.distanceFromLeaf>i&&(l.distanceFromLeaf=i),l):(i={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i},l.push(i),i)}function Kj(){pt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function cg(a,i){Hi||(a=Rl(a,0),a.serverProps=null,i!==null&&(i=S3(i),a.serverTail.push(i)))}function ys(a){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",d=aa;throw d!==null&&(aa=null,l=C0(d)),Mf(Xr(Error("Hydration failed because the server rendered "+(i?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
https://react.dev/link/hydration-mismatch`+l),a)),dw}function Gj(a){var i=a.stateNode,l=a.type,d=a.memoizedProps;switch(i[tr]=a,i[wr]=d,dN(l,d),l){case"dialog":vt("cancel",i),vt("close",i);break;case"iframe":case"object":case"embed":vt("load",i);break;case"video":case"audio":for(l=0;l<Ym.length;l++)vt(Ym[l],i);break;case"source":vt("error",i);break;case"img":case"image":case"link":vt("error",i),vt("load",i);break;case"details":vt("toggle",i);break;case"input":zt("input",d),vt("invalid",i),JR(i,d),ej(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"option":tj(i,d);break;case"select":zt("select",d),vt("invalid",i),rj(i,d);break;case"textarea":zt("textarea",d),vt("invalid",i),aj(i,d),oj(i,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||d.suppressHydrationWarning===!0||u3(i.textContent,l)?(d.popover!=null&&(vt("beforetoggle",i),vt("toggle",i)),d.onScroll!=null&&vt("scroll",i),d.onScrollEnd!=null&&vt("scrollend",i),d.onClick!=null&&(i.onclick=Eo),i=!0):i=!1,i||ys(a,!0)}function Yj(a){for(nr=a.return;nr;)switch(nr.tag){case 5:case 31:case 13:Da=!1;return;case 27:case 3:Da=!0;return;default:nr=nr.return}}function du(a){if(a!==nr)return!1;if(!pt)return Yj(a),pt=!0,!1;var i=a.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=a.type,l=!(l!=="form"&&l!=="button")||gN(a.type,a.memoizedProps)),l=!l),l&&Xt){for(l=Xt;l;){var d=Rl(a,0),p=S3(l);d.serverTail.push(p),l=p.type==="Suspense"?xN(l):ta(l.nextSibling)}ys(a)}if(Yj(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Xt=xN(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Xt=xN(a)}else i===27?(i=Xt,Cs(a.type)?(a=eE,eE=null,Xt=a):Xt=i):Xt=nr?ta(a.stateNode.nextSibling):null;return!0}function jl(){Xt=nr=null,Hi=pt=!1}function K0(){var a=Vs;return a!==null&&(Tr===null?Tr=a:Tr.push.apply(Tr,a),Vs=null),a}function Mf(a){Vs===null?Vs=[a]:Vs.push(a)}function G0(){var a=aa;if(a!==null){aa=null;for(var i=C0(a);0<a.children.length;)a=a.children[0];de(a.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
- A server/client branch \`if (typeof window !== 'undefined')\`.
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
- Date formatting in a user's locale which doesn't match the server.
- External changing data without sending a snapshot of it along with the HTML.
- Invalid HTML tag nesting.
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
%s%s`,"https://react.dev/link/hydration-mismatch",i)})}}function ug(){Uu=xv=null,qu=!1}function xs(a,i,l){G(fw,i._currentValue,a),i._currentValue=l,G(mw,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==G5&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=G5}function Oo(a,i){a._currentValue=fw.current;var l=mw.current;H(mw,i),a._currentRenderer=l,H(fw,i)}function Y0(a,i,l){for(;a!==null;){var d=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),a===l)break;a=a.return}a!==l&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Q0(a,i,l,d){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var v=p.dependencies;if(v!==null){var E=p.child;v=v.firstContext;e:for(;v!==null;){var T=v;v=p;for(var M=0;M<i.length;M++)if(T.context===i[M]){v.lanes|=l,T=v.alternate,T!==null&&(T.lanes|=l),Y0(v.return,l,a),d||(E=null);break e}v=T.next}}else if(p.tag===18){if(E=p.return,E===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");E.lanes|=l,v=E.alternate,v!==null&&(v.lanes|=l),Y0(E,l,a),E=null}else E=p.child;if(E!==null)E.return=p;else for(E=p;E!==null;){if(E===a){E=null;break}if(p=E.sibling,p!==null){p.return=E.return,E=p;break}E=E.return}p=E}}function fu(a,i,l,d){a=null;for(var p=i,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var E=p.alternate;if(E===null)throw Error("Should have a current fiber. This is a bug in React.");if(E=E.memoizedProps,E!==null){var T=p.type;Sr(p.pendingProps.value,E.value)||(a!==null?a.push(T):a=[T])}}else if(p===iv.current){if(E=p.alternate,E===null)throw Error("Should have a current fiber. This is a bug in React.");E.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(Jm):a=[Jm])}p=p.return}a!==null&&Q0(i,a,l,d),i.flags|=262144}function dg(a){for(a=a.firstContext;a!==null;){if(!Sr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Pl(a){xv=a,Uu=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function tn(a){return qu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Qj(xv,a)}function fg(a,i){return xv===null&&Pl(a),Qj(a,i)}function Qj(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Uu===null){if(a===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Uu=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else Uu=Uu.next=i;return l}function X0(){return{controller:new OX,data:new Map,refCount:0}}function Ml(a){a.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),a.refCount++}function kf(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&DX(TX,function(){a.controller.abort()})}function Si(a,i,l){(a&127)!==0?0>Fi&&(Fi=En(),wm=Nv(i),hw=i,l!=null&&(pw=B(l)),(Et&(Mn|sa))!==Gn&&(un=!0,Bs=Nm),a=nm(),i=tm(),a!==Hu||i!==Em?Hu=-1.1:i!==null&&(Bs=Nm),Kl=a,Em=i):(a&4194048)!==0&&0>Ta&&(Ta=En(),Sm=Nv(i),Y5=i,l!=null&&(Q5=B(l)),0>Bo)&&(a=nm(),i=tm(),(a!==Us||i!==Gl)&&(Us=-1.1),zs=a,Gl=i)}function KG(a){if(0>Fi){Fi=En(),wm=a._debugTask!=null?a._debugTask:null,(Et&(Mn|sa))!==Gn&&(Bs=Nm);var i=nm(),l=tm();i!==Hu||l!==Em?Hu=-1.1:l!==null&&(Bs=Nm),Kl=i,Em=l}0>Ta&&(Ta=En(),Sm=a._debugTask!=null?a._debugTask:null,0>Bo)&&(a=nm(),i=tm(),(a!==Us||i!==Gl)&&(Us=-1.1),zs=a,Gl=i)}function Do(){var a=Hl;return Hl=0,a}function mg(a){var i=Hl;return Hl=a,i}function Lf(a){var i=Hl;return Hl+=a,i}function hg(){Ke=qe=-1.1}function Wr(){var a=qe;return qe=-1.1,a}function Zr(a){0<=a&&(qe=a)}function Ai(){var a=on;return on=-0,a}function Oi(a){0<=a&&(on=a)}function Di(){var a=nn;return nn=null,a}function Ti(){var a=un;return un=!1,a}function W0(a){Ar=En(),0>a.actualStartTime&&(a.actualStartTime=Ar)}function Z0(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,a.selfBaseDuration=i,Ar=-1}}function Xj(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,Ar=-1}}function Ci(){if(0<=Ar){var a=En(),i=a-Ar;Ar=-1,Hl+=i,on+=i,Ke=a}}function Wj(a){nn===null&&(nn=[]),nn.push(a),Vo===null&&(Vo=[]),Vo.push(a)}function _i(){Ar=En(),0>qe&&(qe=Ar)}function If(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function GG(a,i){if(Om===null){var l=Om=[];vw=0,Yl=sN(),Fu={status:"pending",value:void 0,then:function(d){l.push(d)}}}return vw++,i.then(Zj,Zj),i}function Zj(){if(--vw===0&&(-1<Ta||(Bo=-1.1),Om!==null)){Fu!==null&&(Fu.status="fulfilled");var a=Om;Om=null,Yl=0,Fu=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function YG(a,i){var l=[],d={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return a.then(function(){d.status="fulfilled",d.value=i;for(var p=0;p<l.length;p++)(0,l[p])(i)},function(p){for(d.status="rejected",d.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),d}function J0(){var a=Ql.current;return a!==null?a:Ht.pooledCache}function pg(a,i){i===null?G(Ql,Ql.current,a):G(Ql,i.pool,a)}function Jj(){var a=J0();return a===null?null:{parent:wn._currentValue,pool:a}}function eP(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function tP(a){return a=a.status,a==="fulfilled"||a==="rejected"}function nP(a,i,l){pe.actQueue!==null&&(pe.didUsePromise=!0);var d=a.thenables;if(l=d[l],l===void 0?d.push(i):l!==i&&(a.didWarnAboutUncachedPromise||(a.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),i.then(Eo,Eo),i=l),i._debugInfo===void 0){a=performance.now(),d=i.displayName;var p={name:typeof d=="string"?d:"Promise",start:a,end:a,value:i};i._debugInfo=[{awaited:p}],i.status!=="fulfilled"&&i.status!=="rejected"&&(a=function(){p.end=performance.now()},i.then(a,a))}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,aP(a),a;default:if(typeof i.status=="string")i.then(Eo,Eo);else{if(a=Ht,a!==null&&100<a.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");a=i,a.status="pending",a.then(function(v){if(i.status==="pending"){var E=i;E.status="fulfilled",E.value=v}},function(v){if(i.status==="pending"){var E=i;E.status="rejected",E.reason=v}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,aP(a),a}throw Wl=i,Pm=!0,Ku}}function Ns(a){try{return PX(a)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Wl=i,Pm=!0,Ku):i}}function rP(){if(Wl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Wl;return Wl=null,Pm=!1,a}function aP(a){if(a===Ku||a===Cv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Zn(a){var i=lt;return a!=null&&(lt=i===null?a:i.concat(a)),i}function e1(){var a=lt;if(a!=null){for(var i=a.length-1;0<=i;i--)if(a[i].name!=null){var l=a[i].debugTask;if(l!=null)return l}}return null}function gg(a,i,l){for(var d=Object.keys(a.props),p=0;p<d.length;p++){var v=d[p];if(v!=="children"&&v!=="key"){i===null&&(i=lg(a,l.mode,0),i._debugInfo=lt,i.return=l),de(i,function(E){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E)},v);break}}}function vg(a){var i=Mm;return Mm+=1,Gu===null&&(Gu=eP()),nP(Gu,a,i)}function Vf(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function iP(a,i){throw i.$$typeof===dQ?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.`):(a=Object.prototype.toString.call(i),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead."))}function bg(a,i){var l=e1();l!==null?l.run(iP.bind(null,a,i)):iP(a,i)}function oP(a,i){var l=B(a)||"Component";pk[l]||(pk[l]=!0,i=i.displayName||i.name||"Component",a.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
root.render(%s)`,i,i,i):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
<%s>{%s}</%s>`,i,i,l,i,l))}function yg(a,i){var l=e1();l!==null?l.run(oP.bind(null,a,i)):oP(a,i)}function sP(a,i){var l=B(a)||"Component";gk[l]||(gk[l]=!0,i=String(i),a.tag===3?console.error(`Symbols are not valid as a React child.
root.render(%s)`,i):console.error(`Symbols are not valid as a React child.
<%s>%s</%s>`,l,i,l))}function xg(a,i){var l=e1();l!==null?l.run(sP.bind(null,a,i)):sP(a,i)}function lP(a){function i(X,ee){if(a){var re=X.deletions;re===null?(X.deletions=[ee],X.flags|=16):re.push(ee)}}function l(X,ee){if(!a)return null;for(;ee!==null;)i(X,ee),ee=ee.sibling;return null}function d(X){for(var ee=new Map;X!==null;)X.key!==null?ee.set(X.key,X):ee.set(X.index,X),X=X.sibling;return ee}function p(X,ee){return X=So(X,ee),X.index=0,X.sibling=null,X}function v(X,ee,re){return X.index=re,a?(re=X.alternate,re!==null?(re=re.index,re<ee?(X.flags|=67108866,ee):re):(X.flags|=67108866,ee)):(X.flags|=1048576,ee)}function E(X){return a&&X.alternate===null&&(X.flags|=67108866),X}function T(X,ee,re,ve){return ee===null||ee.tag!==6?(ee=U0(re,X.mode,ve),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=lt,ee):(ee=p(ee,re),ee.return=X,ee._debugInfo=lt,ee)}function M(X,ee,re,ve){var Ce=re.type;return Ce===Du?(ee=oe(X,ee,re.props.children,ve,re.key),gg(re,ee,X),ee):ee!==null&&(ee.elementType===Ce||Vj(ee,re)||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===na&&Ns(Ce)===ee.type)?(ee=p(ee,re.props),Vf(ee,re),ee.return=X,ee._debugOwner=re._owner,ee._debugInfo=lt,ee):(ee=lg(re,X.mode,ve),Vf(ee,re),ee.return=X,ee._debugInfo=lt,ee)}function I(X,ee,re,ve){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==re.containerInfo||ee.stateNode.implementation!==re.implementation?(ee=q0(re,X.mode,ve),ee.return=X,ee._debugInfo=lt,ee):(ee=p(ee,re.children||[]),ee.return=X,ee._debugInfo=lt,ee)}function oe(X,ee,re,ve,Ce){return ee===null||ee.tag!==7?(ee=_l(re,X.mode,ve,Ce),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=lt,ee):(ee=p(ee,re),ee.return=X,ee._debugInfo=lt,ee)}function se(X,ee,re){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=U0(""+ee,X.mode,re),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=lt,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case Ii:return re=lg(ee,X.mode,re),Vf(re,ee),re.return=X,X=Zn(ee._debugInfo),re._debugInfo=lt,lt=X,re;case Ou:return ee=q0(ee,X.mode,re),ee.return=X,ee._debugInfo=lt,ee;case na:var ve=Zn(ee._debugInfo);return ee=Ns(ee),X=se(X,ee,re),lt=ve,X}if(jn(ee)||j(ee))return re=_l(ee,X.mode,re,null),re.return=X,re._debugOwner=X,re._debugTask=X._debugTask,X=Zn(ee._debugInfo),re._debugInfo=lt,lt=X,re;if(typeof ee.then=="function")return ve=Zn(ee._debugInfo),X=se(X,vg(ee),re),lt=ve,X;if(ee.$$typeof===Vi)return se(X,fg(X,ee),re);bg(X,ee)}return typeof ee=="function"&&yg(X,ee),typeof ee=="symbol"&&xg(X,ee),null}function Z(X,ee,re,ve){var Ce=ee!==null?ee.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return Ce!==null?null:T(X,ee,""+re,ve);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case Ii:return re.key===Ce?(Ce=Zn(re._debugInfo),X=M(X,ee,re,ve),lt=Ce,X):null;case Ou:return re.key===Ce?I(X,ee,re,ve):null;case na:return Ce=Zn(re._debugInfo),re=Ns(re),X=Z(X,ee,re,ve),lt=Ce,X}if(jn(re)||j(re))return Ce!==null?null:(Ce=Zn(re._debugInfo),X=oe(X,ee,re,ve,null),lt=Ce,X);if(typeof re.then=="function")return Ce=Zn(re._debugInfo),X=Z(X,ee,vg(re),ve),lt=Ce,X;if(re.$$typeof===Vi)return Z(X,ee,fg(X,re),ve);bg(X,re)}return typeof re=="function"&&yg(X,re),typeof re=="symbol"&&xg(X,re),null}function fe(X,ee,re,ve,Ce){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return X=X.get(re)||null,T(ee,X,""+ve,Ce);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Ii:return re=X.get(ve.key===null?re:ve.key)||null,X=Zn(ve._debugInfo),ee=M(ee,re,ve,Ce),lt=X,ee;case Ou:return X=X.get(ve.key===null?re:ve.key)||null,I(ee,X,ve,Ce);case na:var Ze=Zn(ve._debugInfo);return ve=Ns(ve),ee=fe(X,ee,re,ve,Ce),lt=Ze,ee}if(jn(ve)||j(ve))return re=X.get(re)||null,X=Zn(ve._debugInfo),ee=oe(ee,re,ve,Ce,null),lt=X,ee;if(typeof ve.then=="function")return Ze=Zn(ve._debugInfo),ee=fe(X,ee,re,vg(ve),Ce),lt=Ze,ee;if(ve.$$typeof===Vi)return fe(X,ee,re,fg(ee,ve),Ce);bg(ee,ve)}return typeof ve=="function"&&yg(ee,ve),typeof ve=="symbol"&&xg(ee,ve),null}function Te(X,ee,re,ve){if(typeof re!="object"||re===null)return ve;switch(re.$$typeof){case Ii:case Ou:g(X,ee,re);var Ce=re.key;if(typeof Ce!="string")break;if(ve===null){ve=new Set,ve.add(Ce);break}if(!ve.has(Ce)){ve.add(Ce);break}de(ee,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ce)});break;case na:re=Ns(re),Te(X,ee,re,ve)}return ve}function _e(X,ee,re,ve){for(var Ce=null,Ze=null,Ue=null,$e=ee,nt=ee=0,Wt=null;$e!==null&&nt<re.length;nt++){$e.index>nt?(Wt=$e,$e=null):Wt=$e.sibling;var bn=Z(X,$e,re[nt],ve);if(bn===null){$e===null&&($e=Wt);break}Ce=Te(X,bn,re[nt],Ce),a&&$e&&bn.alternate===null&&i(X,$e),ee=v(bn,ee,nt),Ue===null?Ze=bn:Ue.sibling=bn,Ue=bn,$e=Wt}if(nt===re.length)return l(X,$e),pt&&Ao(X,nt),Ze;if($e===null){for(;nt<re.length;nt++)$e=se(X,re[nt],ve),$e!==null&&(Ce=Te(X,$e,re[nt],Ce),ee=v($e,ee,nt),Ue===null?Ze=$e:Ue.sibling=$e,Ue=$e);return pt&&Ao(X,nt),Ze}for($e=d($e);nt<re.length;nt++)Wt=fe($e,X,nt,re[nt],ve),Wt!==null&&(Ce=Te(X,Wt,re[nt],Ce),a&&Wt.alternate!==null&&$e.delete(Wt.key===null?nt:Wt.key),ee=v(Wt,ee,nt),Ue===null?Ze=Wt:Ue.sibling=Wt,Ue=Wt);return a&&$e.forEach(function(Yo){return i(X,Yo)}),pt&&Ao(X,nt),Ze}function Gt(X,ee,re,ve){if(re==null)throw Error("An iterable object provided no iterator.");for(var Ce=null,Ze=null,Ue=ee,$e=ee=0,nt=null,Wt=null,bn=re.next();Ue!==null&&!bn.done;$e++,bn=re.next()){Ue.index>$e?(nt=Ue,Ue=null):nt=Ue.sibling;var Yo=Z(X,Ue,bn.value,ve);if(Yo===null){Ue===null&&(Ue=nt);break}Wt=Te(X,Yo,bn.value,Wt),a&&Ue&&Yo.alternate===null&&i(X,Ue),ee=v(Yo,ee,$e),Ze===null?Ce=Yo:Ze.sibling=Yo,Ze=Yo,Ue=nt}if(bn.done)return l(X,Ue),pt&&Ao(X,$e),Ce;if(Ue===null){for(;!bn.done;$e++,bn=re.next())Ue=se(X,bn.value,ve),Ue!==null&&(Wt=Te(X,Ue,bn.value,Wt),ee=v(Ue,ee,$e),Ze===null?Ce=Ue:Ze.sibling=Ue,Ze=Ue);return pt&&Ao(X,$e),Ce}for(Ue=d(Ue);!bn.done;$e++,bn=re.next())nt=fe(Ue,X,$e,bn.value,ve),nt!==null&&(Wt=Te(X,nt,bn.value,Wt),a&&nt.alternate!==null&&Ue.delete(nt.key===null?$e:nt.key),ee=v(nt,ee,$e),Ze===null?Ce=nt:Ze.sibling=nt,Ze=nt);return a&&Ue.forEach(function(rW){return i(X,rW)}),pt&&Ao(X,$e),Ce}function yt(X,ee,re,ve){if(typeof re=="object"&&re!==null&&re.type===Du&&re.key===null&&(gg(re,null,X),re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case Ii:var Ce=Zn(re._debugInfo);e:{for(var Ze=re.key;ee!==null;){if(ee.key===Ze){if(Ze=re.type,Ze===Du){if(ee.tag===7){l(X,ee.sibling),ve=p(ee,re.props.children),ve.return=X,ve._debugOwner=re._owner,ve._debugInfo=lt,gg(re,ve,X),X=ve;break e}}else if(ee.elementType===Ze||Vj(ee,re)||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===na&&Ns(Ze)===ee.type){l(X,ee.sibling),ve=p(ee,re.props),Vf(ve,re),ve.return=X,ve._debugOwner=re._owner,ve._debugInfo=lt,X=ve;break e}l(X,ee);break}else i(X,ee);ee=ee.sibling}re.type===Du?(ve=_l(re.props.children,X.mode,ve,re.key),ve.return=X,ve._debugOwner=X,ve._debugTask=X._debugTask,ve._debugInfo=lt,gg(re,ve,X),X=ve):(ve=lg(re,X.mode,ve),Vf(ve,re),ve.return=X,ve._debugInfo=lt,X=ve)}return X=E(X),lt=Ce,X;case Ou:e:{for(Ce=re,re=Ce.key;ee!==null;){if(ee.key===re)if(ee.tag===4&&ee.stateNode.containerInfo===Ce.containerInfo&&ee.stateNode.implementation===Ce.implementation){l(X,ee.sibling),ve=p(ee,Ce.children||[]),ve.return=X,X=ve;break e}else{l(X,ee);break}else i(X,ee);ee=ee.sibling}ve=q0(Ce,X.mode,ve),ve.return=X,X=ve}return E(X);case na:return Ce=Zn(re._debugInfo),re=Ns(re),X=yt(X,ee,re,ve),lt=Ce,X}if(jn(re))return Ce=Zn(re._debugInfo),X=_e(X,ee,re,ve),lt=Ce,X;if(j(re)){if(Ce=Zn(re._debugInfo),Ze=j(re),typeof Ze!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ue=Ze.call(re);return Ue===re?(X.tag!==0||Object.prototype.toString.call(X.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(mk||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),mk=!0):re.entries!==Ze||Nw||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nw=!0),X=Gt(X,ee,Ue,ve),lt=Ce,X}if(typeof re.then=="function")return Ce=Zn(re._debugInfo),X=yt(X,ee,vg(re),ve),lt=Ce,X;if(re.$$typeof===Vi)return yt(X,ee,fg(X,re),ve);bg(X,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(Ce=""+re,ee!==null&&ee.tag===6?(l(X,ee.sibling),ve=p(ee,Ce),ve.return=X,X=ve):(l(X,ee),ve=U0(Ce,X.mode,ve),ve.return=X,ve._debugOwner=X,ve._debugTask=X._debugTask,ve._debugInfo=lt,X=ve),E(X)):(typeof re=="function"&&yg(X,re),typeof re=="symbol"&&xg(X,re),l(X,ee))}return function(X,ee,re,ve){var Ce=lt;lt=null;try{Mm=0;var Ze=yt(X,ee,re,ve);return Gu=null,Ze}catch(Wt){if(Wt===Ku||Wt===Cv)throw Wt;var Ue=y(29,Wt,null,X.mode);Ue.lanes=ve,Ue.return=X;var $e=Ue._debugInfo=lt;if(Ue._debugOwner=X._debugOwner,Ue._debugTask=X._debugTask,$e!=null){for(var nt=$e.length-1;0<=nt;nt--)if(typeof $e[nt].stack=="string"){Ue._debugOwner=$e[nt],Ue._debugTask=$e[nt].debugTask;break}}return Ue}finally{lt=Ce}}}function cP(a,i){var l=jn(a);return a=!l&&typeof j(a)=="function",l||a?(l=l?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",l,i,l),!1):!0}function t1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function n1(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ws(a){return{lane:a,tag:bk,payload:null,callback:null,next:null}}function Es(a,i,l){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,Ew===d&&!Nk){var p=B(a);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
Please update the following component: %s`,p),Nk=!0}return(Et&Mn)!==Gn?(p=d.pending,p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,i=sg(a),Ij(a,null,l),i):(og(a,d,i,l),sg(a))}function $f(a,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,vs(a,l)}}function Ng(a,i){var l=a.updateQueue,d=a.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var E={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?p=v=E:v=v.next=E,l=l.next}while(l!==null);v===null?p=v=i:v=v.next=i}else p=v=i;l={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},a.updateQueue=l;return}a=l.lastBaseUpdate,a===null?l.firstBaseUpdate=i:a.next=i,l.lastBaseUpdate=i}function Bf(){if(Sw){var a=Fu;if(a!==null)throw a}}function zf(a,i,l,d){Sw=!1;var p=a.updateQueue;qs=!1,Ew=p.shared;var v=p.firstBaseUpdate,E=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var M=T,I=M.next;M.next=null,E===null?v=I:E.next=I,E=M;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,T=oe.lastBaseUpdate,T!==E&&(T===null?oe.firstBaseUpdate=I:T.next=I,oe.lastBaseUpdate=M))}if(v!==null){var se=p.baseState;E=0,oe=I=M=null,T=v;do{var Z=T.lane&-536870913,fe=Z!==T.lane;if(fe?(ct&Z)===Z:(d&Z)===Z){Z!==0&&Z===Yl&&(Sw=!0),oe!==null&&(oe=oe.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{Z=a;var Te=T,_e=i,Gt=l;switch(Te.tag){case yk:if(Te=Te.payload,typeof Te=="function"){qu=!0;var yt=Te.call(Gt,se,_e);if(Z.mode&lr){je(!0);try{Te.call(Gt,se,_e)}finally{je(!1)}}qu=!1,se=yt;break e}se=Te;break e;case ww:Z.flags=Z.flags&-65537|128;case bk:if(yt=Te.payload,typeof yt=="function"){if(qu=!0,Te=yt.call(Gt,se,_e),Z.mode&lr){je(!0);try{yt.call(Gt,se,_e)}finally{je(!1)}}qu=!1}else Te=yt;if(Te==null)break e;se=mt({},se,Te);break e;case xk:qs=!0}}Z=T.callback,Z!==null&&(a.flags|=64,fe&&(a.flags|=8192),fe=p.callbacks,fe===null?p.callbacks=[Z]:fe.push(Z))}else fe={lane:Z,tag:T.tag,payload:T.payload,callback:T.callback,next:null},oe===null?(I=oe=fe,M=se):oe=oe.next=fe,E|=Z;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;fe=T,T=fe.next,fe.next=null,p.lastBaseUpdate=fe,p.shared.pending=null}}while(!0);oe===null&&(M=se),p.baseState=M,p.firstBaseUpdate=I,p.lastBaseUpdate=oe,v===null&&(p.shared.lanes=0),Ks|=E,a.lanes=E,a.memoizedState=se}Ew=null}function uP(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function QG(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)uP(l[a],i)}function dP(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)uP(l[a],i)}function fP(a,i){var l=Gi;G(Rv,l,a),G(Yu,i,a),Gi=l|i.baseLanes}function r1(a){G(Rv,Gi,a),G(Yu,Yu.current,a)}function a1(a){Gi=Rv.current,H(Yu,a),H(Rv,a)}function Ss(a){var i=a.alternate;G(vn,vn.current&Qu,a),G(ia,a,a),Ca===null&&(i===null||Yu.current!==null||i.memoizedState!==null)&&(Ca=a)}function i1(a){G(vn,vn.current,a),G(ia,a,a),Ca===null&&(Ca=a)}function mP(a){a.tag===22?(G(vn,vn.current,a),G(ia,a,a),Ca===null&&(Ca=a)):As(a)}function As(a){G(vn,vn.current,a),G(ia,ia.current,a)}function Jr(a){H(ia,a),Ca===a&&(Ca=null),H(vn,a)}function wg(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||bN(l)||yN(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function ft(){var a=he;Ra===null?Ra=[a]:Ra.push(a)}function Ae(){var a=he;if(Ra!==null&&(qo++,Ra[qo]!==a)){var i=B(We);if(!wk.has(i)&&(wk.add(i),Ra!==null)){for(var l="",d=0;d<=qo;d++){var p=Ra[d],v=d===qo?a:p;for(p=d+1+". "+p;30>p.length;)p+=" ";p+=v+`
`,l+=p}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,i,l)}}}function mu(a){a==null||jn(a)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",he,typeof a)}function Eg(){var a=B(We);Sk.has(a)||(Sk.add(a),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",a))}function fn(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function o1(a,i){if(Im)return!1;if(i===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",he),!1;a.length!==i.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,he,"["+i.join(", ")+"]","["+a.join(", ")+"]");for(var l=0;l<i.length&&l<a.length;l++)if(!Sr(a[l],i[l]))return!1;return!0}function s1(a,i,l,d,p,v){zo=v,We=i,Ra=a!==null?a._debugHookTypes:null,qo=-1,Im=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(v=B(We),Aw.has(v)||(Aw.add(v),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",v===null?"An unknown Component":"<"+v+">"))),i.memoizedState=null,i.updateQueue=null,i.lanes=0,pe.H=a!==null&&a.memoizedState!==null?Dw:Ra!==null?Ak:Ow,Jl=v=(i.mode&lr)!==Ye;var E=bw(l,d,p);if(Jl=!1,Wu&&(E=l1(i,l,d,p)),v){je(!0);try{E=l1(i,l,d,p)}finally{je(!1)}}return hP(a,i),E}function hP(a,i){i._debugHookTypes=Ra,i.dependencies===null?Uo!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Uo}):i.dependencies._debugThenableState=Uo,pe.H=Vm;var l=qt!==null&&qt.next!==null;if(zo=0,Ra=he=Sn=qt=We=null,qo=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Pv=!1,Lm=0,Uo=null,l)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");a===null||An||(a=a.dependencies,a!==null&&dg(a)&&(An=!0)),Pm?(Pm=!1,a=!0):a=!1,a&&(i=B(i)||"Unknown",Ek.has(i)||Aw.has(i)||(Ek.add(i),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function l1(a,i,l,d){We=a;var p=0;do{if(Wu&&(Uo=null),Lm=0,Wu=!1,p>=kX)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,Im=!1,Sn=qt=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}qo=-1,pe.H=Ok,v=bw(i,l,d)}while(Wu);return v}function XG(){var a=pe.H,i=a.useState()[0];return i=typeof i.then=="function"?Uf(i):i,a=a.useState()[0],(qt!==null?qt.memoizedState:null)!==a&&(We.flags|=1024),i}function c1(){var a=Mv!==0;return Mv=0,a}function u1(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&Wa)!==Ye?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function d1(a){if(Pv){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Pv=!1}zo=0,Ra=Sn=qt=We=null,qo=-1,he=null,Wu=!1,Lm=Mv=0,Uo=null}function xr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?We.memoizedState=Sn=a:Sn=Sn.next=a,Sn}function kt(){if(qt===null){var a=We.alternate;a=a!==null?a.memoizedState:null}else a=qt.next;var i=Sn===null?We.memoizedState:Sn.next;if(i!==null)Sn=i,qt=a;else{if(a===null)throw We.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");qt=a,a={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Sn===null?We.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function Sg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uf(a){var i=Lm;return Lm+=1,Uo===null&&(Uo=eP()),a=nP(Uo,a,i),i=We,(Sn===null?i.memoizedState:Sn.next)===null&&(i=i.alternate,pe.H=i!==null&&i.memoizedState!==null?Dw:Ow),a}function Os(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Uf(a);if(a.$$typeof===Vi)return tn(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function kl(a){var i=null,l=We.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var d=We.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Sg(),We.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0||Im)for(l=i.data[i.index]=Array(a),d=0;d<a;d++)l[d]=fQ;else l.length!==a&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",l.length,a);return i.index++,l}function Ya(a,i){return typeof i=="function"?i(a):i}function f1(a,i,l){var d=xr();if(l!==void 0){var p=l(i);if(Jl){je(!0);try{l(i)}finally{je(!1)}}}else p=i;return d.memoizedState=d.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},d.queue=a,a=a.dispatch=tY.bind(null,We,a),[d.memoizedState,a]}function hu(a){var i=kt();return m1(i,qt,a)}function m1(a,i,l){var d=a.queue;if(d===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");d.lastRenderedReducer=l;var p=a.baseQueue,v=d.pending;if(v!==null){if(p!==null){var E=p.next;p.next=v.next,v.next=E}i.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=p=v,d.pending=null}if(v=a.baseState,p===null)a.memoizedState=v;else{i=p.next;var T=E=null,M=null,I=i,oe=!1;do{var se=I.lane&-536870913;if(se!==I.lane?(ct&se)===se:(zo&se)===se){var Z=I.revertLane;if(Z===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),se===Yl&&(oe=!0);else if((zo&Z)===Z){I=I.next,Z===Yl&&(oe=!0);continue}else se={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(T=M=se,E=v):M=M.next=se,We.lanes|=Z,Ks|=Z;se=I.action,Jl&&l(v,se),v=I.hasEagerState?I.eagerState:l(v,se)}else Z={lane:se,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},M===null?(T=M=Z,E=v):M=M.next=Z,We.lanes|=se,Ks|=se;I=I.next}while(I!==null&&I!==i);if(M===null?E=v:M.next=T,!Sr(v,a.memoizedState)&&(An=!0,oe&&(l=Fu,l!==null)))throw l;a.memoizedState=v,a.baseState=E,a.baseQueue=M,d.lastRenderedState=v}return p===null&&(d.lanes=0),[a.memoizedState,d.dispatch]}function qf(a){var i=kt(),l=i.queue;if(l===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");l.lastRenderedReducer=a;var d=l.dispatch,p=l.pending,v=i.memoizedState;if(p!==null){l.pending=null;var E=p=p.next;do v=a(v,E.action),E=E.next;while(E!==p);Sr(v,i.memoizedState)||(An=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,d]}function h1(a,i,l){var d=We,p=xr();if(pt){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var v=l();Xu||v===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Xu=!0)}else{if(v=i(),Xu||(l=i(),Sr(v,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xu=!0)),Ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ct&127)!==0||pP(d,i,v)}return p.memoizedState=v,l={value:v,getSnapshot:i},p.queue=l,Tg(vP.bind(null,d,l,a),[a]),d.flags|=2048,gu(_a|Dr,{destroy:void 0},gP.bind(null,d,l,v,i),null),v}function Ag(a,i,l){var d=We,p=kt(),v=pt;if(v){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");l=l()}else if(l=i(),!Xu){var E=i();Sr(l,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xu=!0)}(E=!Sr((qt||p).memoizedState,l))&&(p.memoizedState=l,An=!0),p=p.queue;var T=vP.bind(null,d,p,a);if(Ir(2048,Dr,T,[a]),p.getSnapshot!==i||E||Sn!==null&&Sn.memoizedState.tag&_a){if(d.flags|=2048,gu(_a|Dr,{destroy:void 0},gP.bind(null,d,p,l,i),null),Ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");v||(zo&127)!==0||pP(d,i,l)}return l}function pP(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=We.updateQueue,i===null?(i=Sg(),We.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function gP(a,i,l,d){i.value=l,i.getSnapshot=d,bP(i)&&yP(a)}function vP(a,i,l){return l(function(){bP(i)&&(Si(2,"updateSyncExternalStore()",a),yP(a))})}function bP(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Sr(a,l)}catch{return!0}}function yP(a){var i=or(a,2);i!==null&&cn(i,a,2)}function p1(a){var i=xr();if(typeof a=="function"){var l=a;if(a=l(),Jl){je(!0);try{l()}finally{je(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:a},i}function g1(a){a=p1(a);var i=a.queue,l=VP.bind(null,We,i);return i.dispatch=l,[a.memoizedState,l]}function v1(a){var i=xr();i.memoizedState=i.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=R1.bind(null,We,!0,l),l.dispatch=i,[a,i]}function xP(a,i){var l=kt();return NP(l,qt,a,i)}function NP(a,i,l,d){return a.baseState=l,m1(a,qt,typeof d=="function"?d:Ya)}function wP(a,i){var l=kt();return qt!==null?NP(l,qt,a,i):(l.baseState=a,[a,l.queue.dispatch])}function WG(a,i,l,d,p){if(Mg(a))throw Error("Cannot update form state while rendering.");if(a=i.action,a!==null){var v={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){v.listeners.push(E)}};pe.T!==null?l(!0):v.isTransition=!1,d(v),l=i.pending,l===null?(v.next=i.pending=v,EP(i,v)):(v.next=l.next,i.pending=l.next=v)}}function EP(a,i){var l=i.action,d=i.payload,p=a.state;if(i.isTransition){var v=pe.T,E={};E._updatedFibers=new Set,pe.T=E;try{var T=l(p,d),M=pe.S;M!==null&&M(E,T),SP(a,i,T)}catch(I){b1(a,i,I)}finally{v!==null&&E.types!==null&&(v.types!==null&&v.types!==E.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),v.types=E.types),pe.T=v,v===null&&E._updatedFibers&&(a=E._updatedFibers.size,E._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{E=l(p,d),SP(a,i,E)}catch(I){b1(a,i,I)}}function SP(a,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(pe.asyncTransitions++,l.then(Pg,Pg),l.then(function(d){AP(a,i,d)},function(d){return b1(a,i,d)}),i.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):AP(a,i,l)}function AP(a,i,l){i.status="fulfilled",i.value=l,OP(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,EP(a,l)))}function b1(a,i,l){var d=a.pending;if(a.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=l,OP(i),i=i.next;while(i!==d)}a.action=null}function OP(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function DP(a,i){return i}function pu(a,i){if(pt){var l=Ht.formState;if(l!==null){e:{var d=We;if(pt){if(Xt){t:{for(var p=Xt,v=Da;p.nodeType!==8;){if(!v){p=null;break t}if(p=ta(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v===Xw||v===dL?p:null}if(p){Xt=ta(p.nextSibling),d=p.data===Xw;break e}}ys(d)}d=!1}d&&(i=l[0])}}return l=xr(),l.memoizedState=l.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:DP,lastRenderedState:i},l.queue=d,l=VP.bind(null,We,d),d.dispatch=l,d=p1(!1),v=R1.bind(null,We,!1,d.queue),d=xr(),p={state:i,dispatch:null,action:a,pending:null},d.queue=p,l=WG.bind(null,We,p,v,l),p.dispatch=l,d.memoizedState=a,[i,l,!1]}function Og(a){var i=kt();return TP(i,qt,a)}function TP(a,i,l){if(i=m1(a,i,DP)[0],a=hu(Ya)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=Uf(i)}catch(E){throw E===Ku?Cv:E}else d=i;i=kt();var p=i.queue,v=p.dispatch;return l!==i.memoizedState&&(We.flags|=2048,gu(_a|Dr,{destroy:void 0},ZG.bind(null,p,l),null)),[d,v,a]}function ZG(a,i){a.action=i}function Dg(a){var i=kt(),l=qt;if(l!==null)return TP(i,l,a);kt(),i=i.memoizedState,l=kt();var d=l.queue.dispatch;return l.memoizedState=a,[i,d,!1]}function gu(a,i,l,d){return a={tag:a,create:l,deps:d,inst:i,next:null},i=We.updateQueue,i===null&&(i=Sg(),We.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=a.next=a:(d=l.next,l.next=a,a.next=d,i.lastEffect=a),a}function y1(a){var i=xr();return a={current:a},i.memoizedState=a}function Ll(a,i,l,d){var p=xr();We.flags|=a,p.memoizedState=gu(_a|i,{destroy:void 0},l,d===void 0?null:d)}function Ir(a,i,l,d){var p=kt();d=d===void 0?null:d;var v=p.memoizedState.inst;qt!==null&&d!==null&&o1(d,qt.memoizedState.deps)?p.memoizedState=gu(i,v,l,d):(We.flags|=a,p.memoizedState=gu(_a|i,v,l,d))}function Tg(a,i){(We.mode&Wa)!==Ye?Ll(276826112,Dr,a,i):Ll(8390656,Dr,a,i)}function JG(a){We.flags|=4;var i=We.updateQueue;if(i===null)i=Sg(),We.updateQueue=i,i.events=[a];else{var l=i.events;l===null?i.events=[a]:l.push(a)}}function x1(a){var i=xr(),l={impl:a};return i.memoizedState=l,function(){if((Et&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function Cg(a){var i=kt().memoizedState;return JG({ref:i,nextImpl:a}),function(){if((Et&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function N1(a,i){var l=4194308;return(We.mode&Wa)!==Ye&&(l|=134217728),Ll(l,oa,a,i)}function CP(a,i){if(typeof i=="function"){a=a();var l=i(a);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return i.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}"),a=a(),i.current=a,function(){i.current=null}}function w1(a,i,l){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),l=l!=null?l.concat([a]):null;var d=4194308;(We.mode&Wa)!==Ye&&(d|=134217728),Ll(d,oa,CP.bind(null,i,a),l)}function _g(a,i,l){typeof i!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",i!==null?typeof i:"null"),l=l!=null?l.concat([a]):null,Ir(4,oa,CP.bind(null,i,a),l)}function E1(a,i){return xr().memoizedState=[a,i===void 0?null:i],a}function Rg(a,i){var l=kt();i=i===void 0?null:i;var d=l.memoizedState;return i!==null&&o1(i,d[1])?d[0]:(l.memoizedState=[a,i],a)}function S1(a,i){var l=xr();i=i===void 0?null:i;var d=a();if(Jl){je(!0);try{a()}finally{je(!1)}}return l.memoizedState=[d,i],d}function jg(a,i){var l=kt();i=i===void 0?null:i;var d=l.memoizedState;if(i!==null&&o1(i,d[1]))return d[0];if(d=a(),Jl){je(!0);try{a()}finally{je(!1)}}return l.memoizedState=[d,i],d}function A1(a,i){var l=xr();return O1(l,a,i)}function _P(a,i){var l=kt();return jP(l,qt.memoizedState,a,i)}function RP(a,i){var l=kt();return qt===null?O1(l,a,i):jP(l,qt.memoizedState,a,i)}function O1(a,i,l){return l===void 0||(zo&1073741824)!==0&&(ct&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=PM(),We.lanes|=a,Ks|=a,l)}function jP(a,i,l,d){return Sr(l,i)?l:Yu.current!==null?(a=O1(a,l,d),Sr(a,i)||(An=!0),a):(zo&42)===0||(zo&1073741824)!==0&&(ct&261930)===0?(An=!0,a.memoizedState=l):(a=PM(),We.lanes|=a,Ks|=a,i)}function Pg(){pe.asyncTransitions--}function PP(a,i,l,d,p){var v=Pt.p;Pt.p=v!==0&&v<Ui?v:Ui;var E=pe.T,T={};T._updatedFibers=new Set,pe.T=T,R1(a,!1,i,l);try{var M=p(),I=pe.S;if(I!==null&&I(T,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){pe.asyncTransitions++,M.then(Pg,Pg);var oe=YG(M,d);Hf(a,i,oe,ea(a))}else Hf(a,i,d,ea(a))}catch(se){Hf(a,i,{then:function(){},status:"rejected",reason:se},ea(a))}finally{Pt.p=v,E!==null&&T.types!==null&&(E.types!==null&&E.types!==T.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),E.types=T.types),pe.T=E,E===null&&T._updatedFibers&&(a=T._updatedFibers.size,T._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function D1(a,i,l,d){if(a.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var p=MP(a).queue;KG(a),PP(a,p,i,uc,l===null?m:function(){return kP(a),l(d)})}function MP(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:uc,baseState:uc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:uc},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:l},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function kP(a){pe.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=MP(a);i.next===null&&(i=a.alternate.memoizedState),Hf(a,i.next.queue,{},ea(a))}function T1(){var a=p1(!1);return a=PP.bind(null,We,a.queue,!0,!1),xr().memoizedState=a,[!1,a]}function LP(){var a=hu(Ya)[0],i=kt().memoizedState;return[typeof a=="boolean"?a:Uf(a),i]}function IP(){var a=qf(Ya)[0],i=kt().memoizedState;return[typeof a=="boolean"?a:Uf(a),i]}function Il(){return tn(Jm)}function C1(){var a=xr(),i=Ht.identifierPrefix;if(pt){var l=Lo,d=ko;l=(d&~(1<<32-Nr(d)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Mv++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=MX++,i="_"+i+"r_"+l.toString(32)+"_";return a.memoizedState=i}function _1(){return xr().memoizedState=eY.bind(null,We)}function eY(a,i){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var d=ea(l),p=ws(d),v=Es(l,p,d);v!==null&&(Si(d,"refresh()",a),cn(v,l,d),$f(v,l,d)),a=X0(),i!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),p.payload={cache:a};return}l=l.return}}function tY(a,i,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=ea(a);var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};Mg(a)?$P(i,p):(p=V0(a,i,p,d),p!==null&&(Si(d,"dispatch()",a),cn(p,a,d),BP(p,i,d)))}function VP(a,i,l){var d=arguments;typeof d[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),d=ea(a),Hf(a,i,l,d)&&Si(d,"setState()",a)}function Hf(a,i,l,d){var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mg(a))$P(i,p);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null)){var E=pe.H;pe.H=Ja;try{var T=i.lastRenderedState,M=v(T,l);if(p.hasEagerState=!0,p.eagerState=M,Sr(M,T))return og(a,i,p,0),Ht===null&&ig(),!1}catch{}finally{pe.H=E}}if(l=V0(a,i,p,d),l!==null)return cn(l,a,d),BP(l,i,d),!0}return!1}function R1(a,i,l,d){if(pe.T===null&&Yl===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),d={lane:2,revertLane:sN(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Mg(a)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=V0(a,l,d,2),i!==null&&(Si(2,"setOptimistic()",a),cn(i,a,2))}function Mg(a){var i=a.alternate;return a===We||i!==null&&i===We}function $P(a,i){Wu=Pv=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function BP(a,i,l){if((l&4194048)!==0){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,vs(a,l)}}function j1(a){if(a!==null&&typeof a!="function"){var i=String(a);Ik.has(i)||(Ik.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function P1(a,i,l,d){var p=a.memoizedState,v=l(d,p);if(a.mode&lr){je(!0);try{v=l(d,p)}finally{je(!1)}}v===void 0&&(i=k(i)||"Component",Pk.has(i)||(Pk.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),p=v==null?p:mt({},p,v),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}function zP(a,i,l,d,p,v,E){var T=a.stateNode;if(typeof T.shouldComponentUpdate=="function"){if(l=T.shouldComponentUpdate(d,v,E),a.mode&lr){je(!0);try{l=T.shouldComponentUpdate(d,v,E)}finally{je(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",k(i)||"Component"),l}return i.prototype&&i.prototype.isPureReactComponent?!Pf(l,d)||!Pf(p,v):!0}function UP(a,i,l,d){var p=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==p&&(a=B(a)||"Component",Tk.has(a)||(Tk.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),Tw.enqueueReplaceState(i,i.state,null))}function Vl(a,i){var l=i;if("ref"in i){l={};for(var d in i)d!=="ref"&&(l[d]=i[d])}if(a=a.defaultProps){l===i&&(l=mt({},l));for(var p in a)l[p]===void 0&&(l[p]=a[p])}return l}function qP(a){iw(a),console.warn(`%s
%s
`,Zu?"An error occurred in the <"+Zu+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function HP(a){var i=Zu?"The above error occurred in the <"+Zu+"> component.":"The above error occurred in one of your React components.",l="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Cw||"Anonymous")+".");if(typeof a=="object"&&a!==null&&typeof a.environmentName=="string"){var d=a.environmentName;a=[`%o
%s
%s
`,a,i,l].slice(0),typeof a[0]=="string"?a.splice(0,1,yL+" "+a[0],xL,ib+d+ib,NL):a.splice(0,0,yL,xL,ib+d+ib,NL),a.unshift(console),d=tW.apply(console.error,a),d()}else console.error(`%o
%s
%s
`,a,i,l)}function FP(a){iw(a)}function kg(a,i){try{Zu=i.source?B(i.source):null,Cw=null;var l=i.value;if(pe.actQueue!==null)pe.thrownErrors.push(l);else{var d=a.onUncaughtError;d(l,{componentStack:i.stack})}}catch(p){setTimeout(function(){throw p})}}function KP(a,i,l){try{Zu=l.source?B(l.source):null,Cw=B(i);var d=a.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function M1(a,i,l){return l=ws(l),l.tag=ww,l.payload={element:null},l.callback=function(){de(i.source,kg,a,i)},l}function k1(a){return a=ws(a),a.tag=ww,a}function L1(a,i,l,d){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var v=d.value;a.payload=function(){return p(v)},a.callback=function(){$j(l),de(d.source,KP,i,l,d)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){$j(l),de(d.source,KP,i,l,d),typeof p!="function"&&(Ys===null?Ys=new Set([this]):Ys.add(this)),_X(this,d),typeof p=="function"||(l.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",B(l)||"Unknown")})}function nY(a,i,l,d,p){if(l.flags|=32768,zi&&Zf(a,p),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=l.alternate,i!==null&&fu(i,l,p,!0),pt&&(Hi=!0),l=ia.current,l!==null){switch(l.tag){case 31:case 13:return Ca===null?Hg():l.alternate===null&&sn===Fo&&(sn=Iv),l.flags&=-257,l.flags|=65536,l.lanes=p,d===_v?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([d]):i.add(d),rN(a,d,p)),!1;case 22:return l.flags|=65536,d===_v?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([d]):l.add(d)),rN(a,d,p)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return rN(a,d,p),Hg(),!1}if(pt)return Hi=!0,i=ia.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,d!==dw&&Mf(Xr(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:d}),l))):(d!==dw&&Mf(Xr(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:d}),l)),a=a.current.alternate,a.flags|=65536,p&=-p,a.lanes|=p,d=Xr(d,l),p=M1(a.stateNode,d,p),Ng(a,p),sn!==Hs&&(sn=ec)),!1;var v=Xr(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:d}),l);if(Hm===null?Hm=[v]:Hm.push(v),sn!==Hs&&(sn=ec),i===null)return!0;d=Xr(d,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,a=p&-p,l.lanes|=a,a=M1(l.stateNode,d,a),Ng(l,a),!1;case 1:if(i=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Ys===null||!Ys.has(v))))return l.flags|=65536,p&=-p,l.lanes|=p,p=k1(p),L1(p,a,l,d),Ng(l,p),!1}l=l.return}while(l!==null);return!1}function Jn(a,i,l,d){i.child=a===null?vk(i,null,l,d):Zl(i,a.child,l,d)}function GP(a,i,l,d,p){l=l.render;var v=i.ref;if("ref"in d){var E={};for(var T in d)T!=="ref"&&(E[T]=d[T])}else E=d;return Pl(i),d=s1(a,i,l,E,v,p),T=c1(),a!==null&&!An?(u1(a,i,p),To(a,i,p)):(pt&&T&&H0(i),i.flags|=1,Jn(a,i,d,p),i.child)}function YP(a,i,l,d,p){if(a===null){var v=l.type;return typeof v=="function"&&!B0(v)&&v.defaultProps===void 0&&l.compare===null?(l=Cl(v),i.tag=15,i.type=l,V1(i,v),QP(a,i,l,d,p)):(a=z0(l.type,null,d,i,i.mode,p),a.ref=i.ref,a.return=i,i.child=a)}if(v=a.child,!H1(a,p)){var E=v.memoizedProps;if(l=l.compare,l=l!==null?l:Pf,l(E,d)&&a.ref===i.ref)return To(a,i,p)}return i.flags|=1,a=So(v,d),a.ref=i.ref,a.return=i,i.child=a}function QP(a,i,l,d,p){if(a!==null){var v=a.memoizedProps;if(Pf(v,d)&&a.ref===i.ref&&i.type===a.type)if(An=!1,i.pendingProps=d=v,H1(a,p))(a.flags&131072)!==0&&(An=!0);else return i.lanes=a.lanes,To(a,i,p)}return I1(a,i,l,d,p)}function XP(a,i,l,d){var p=d.children,v=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:ym,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((i.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,a!==null){for(d=i.child=a.child,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~v}else d=0,i.child=null;return WP(a,i,v,l,d)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&pg(i,v!==null?v.cachePool:null),v!==null?fP(i,v):r1(i),mP(i);else return d=i.lanes=536870912,WP(a,i,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(pg(i,v.cachePool),fP(i,v),As(i),i.memoizedState=null):(a!==null&&pg(i,null),r1(i),As(i));return Jn(a,i,p,l),i.child}function Ff(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:ym,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function WP(a,i,l,d,p){var v=J0();return v=v===null?null:{parent:wn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},a!==null&&pg(i,null),r1(i),mP(i),a!==null&&fu(a,i,d,!0),i.childLanes=p,null}function Lg(a,i){var l=i.hidden;return l!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
- <Activity %s>
+ <Activity %s>`,l===!0?"hidden":l===!1?"hidden={false}":"hidden={...}",l?'mode="hidden"':'mode="visible"'),i=Vg({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function ZP(a,i,l){return Zl(i,a.child,null,l),a=Lg(i,i.pendingProps),a.flags|=2,Jr(i),i.memoizedState=null,a}function rY(a,i,l){var d=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(pt){if(d.mode==="hidden")return a=Lg(i,d),i.lanes=536870912,Ff(null,a);if(i1(i),(a=Xt)?(l=E3(a,Da),l=l!==null&&l.data===oc?l:null,l!==null&&(d={dehydrated:l,treeContext:Hj(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=Uj(l),d.return=i,i.child=d,nr=i,Xt=null)):l=null,l===null)throw cg(i,a),ys(i);return i.lanes=536870912,null}return Lg(i,d)}var v=a.memoizedState;if(v!==null){var E=v.dehydrated;if(i1(i),p)if(i.flags&256)i.flags&=-257,i=ZP(a,i,l);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(Kj(),(l&536870912)!==0&&qg(i),An||fu(a,i,l,!1),p=(l&a.childLanes)!==0,An||p){if(d=Ht,d!==null&&(E=kr(d,l),E!==0&&E!==v.retryLane))throw v.retryLane=E,or(a,E),cn(d,a,E),_w;Hg(),i=ZP(a,i,l)}else a=v.treeContext,Xt=ta(E.nextSibling),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!1,a!==null&&Fj(i,a),i=Lg(i,d),i.flags|=4096;return i}return v=a.child,d={mode:d.mode,children:d.children},(l&536870912)!==0&&(l&a.lanes)!==0&&qg(i),a=So(v,d),a.ref=i.ref,i.child=a,a.return=i,a}function Ig(a,i){var l=i.ref;if(l===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(a===null||a.ref!==l)&&(i.flags|=4194816)}}function I1(a,i,l,d,p){if(l.prototype&&typeof l.prototype.render=="function"){var v=k(l)||"Unknown";Vk[v]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",v,v),Vk[v]=!0)}return i.mode&lr&&Za.recordLegacyContextWarning(i,null),a===null&&(V1(i,i.type),l.contextTypes&&(v=k(l)||"Unknown",Bk[v]||(Bk[v]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",v)))),Pl(i),l=s1(a,i,l,d,void 0,p),d=c1(),a!==null&&!An?(u1(a,i,p),To(a,i,p)):(pt&&d&&H0(i),i.flags|=1,Jn(a,i,l,p),i.child)}function JP(a,i,l,d,p,v){return Pl(i),qo=-1,Im=a!==null&&a.type!==i.type,i.updateQueue=null,l=l1(i,d,l,p),hP(a,i),d=c1(),a!==null&&!An?(u1(a,i,v),To(a,i,v)):(pt&&d&&H0(i),i.flags|=1,Jn(a,i,l,v),i.child)}function eM(a,i,l,d,p){switch(c(i)){case!1:var v=i.stateNode,E=new i.type(i.memoizedProps,v.context).state;v.updater.enqueueSetState(v,E,null);break;case!0:i.flags|=128,i.flags|=65536,v=Error("Simulated error coming from DevTools");var T=p&-p;if(i.lanes|=T,E=Ht,E===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");T=k1(T),L1(T,E,i,Xr(v,i)),Ng(i,T)}if(Pl(i),i.stateNode===null){if(E=Is,v=l.contextType,"contextType"in l&&v!==null&&(v===void 0||v.$$typeof!==Vi)&&!Lk.has(l)&&(Lk.add(l),T=v===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof v!="object"?" However, it is set to a "+typeof v+".":v.$$typeof===RN?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(v).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",k(l)||"Component",T)),typeof v=="object"&&v!==null&&(E=tn(v)),v=new l(d,E),i.mode&lr){je(!0);try{v=new l(d,E)}finally{je(!1)}}if(E=i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Tw,i.stateNode=v,v._reactInternals=i,v._reactInternalInstance=Dk,typeof l.getDerivedStateFromProps=="function"&&E===null&&(E=k(l)||"Component",Ck.has(E)||(Ck.add(E),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",E,v.state===null?"null":"undefined",E))),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var M=T=E=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?E="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(E="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?T="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(T="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?M="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(M="UNSAFE_componentWillUpdate"),E!==null||T!==null||M!==null){v=k(l)||"Component";var I=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Rk.has(v)||(Rk.add(v),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://react.dev/link/unsafe-component-lifecycles`,v,I,E!==null?`
`+E:"",T!==null?`
`+T:"",M!==null?`
`+M:""))}}v=i.stateNode,E=k(l)||"Component",v.render||(l.prototype&&typeof l.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",E):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",E)),!v.getInitialState||v.getInitialState.isReactClassApproved||v.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",E),v.getDefaultProps&&!v.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",E),v.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",E),l.childContextTypes&&!kk.has(l)&&(kk.add(l),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",E)),l.contextTypes&&!Mk.has(l)&&(Mk.add(l),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",E)),typeof v.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",E),l.prototype&&l.prototype.isPureReactComponent&&typeof v.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",k(l)||"A pure component"),typeof v.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",E),typeof v.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",E),typeof v.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",E),typeof v.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",E),T=v.props!==d,v.props!==void 0&&T&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",E),v.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",E,E),typeof v.getSnapshotBeforeUpdate!="function"||typeof v.componentDidUpdate=="function"||_k.has(l)||(_k.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",k(l))),typeof v.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof v.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",E),typeof l.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",E),(T=v.state)&&(typeof T!="object"||jn(T))&&console.error("%s.state: must be set to an object or null",E),typeof v.getChildContext=="function"&&typeof l.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",E),v=i.stateNode,v.props=d,v.state=i.memoizedState,v.refs={},t1(i),E=l.contextType,v.context=typeof E=="object"&&E!==null?tn(E):Is,v.state===d&&(E=k(l)||"Component",jk.has(E)||(jk.add(E),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",E))),i.mode&lr&&Za.recordLegacyContextWarning(i,v),Za.recordUnsafeLifecycleWarnings(i,v),v.state=i.memoizedState,E=l.getDerivedStateFromProps,typeof E=="function"&&(P1(i,l,E,d),v.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(E=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),E!==v.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",B(i)||"Component"),Tw.enqueueReplaceState(v,v.state,null)),zf(i,d,v,p),Bf(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Wa)!==Ye&&(i.flags|=134217728),v=!0}else if(a===null){v=i.stateNode;var oe=i.memoizedProps;T=Vl(l,oe),v.props=T;var se=v.context;M=l.contextType,E=Is,typeof M=="object"&&M!==null&&(E=tn(M)),I=l.getDerivedStateFromProps,M=typeof I=="function"||typeof v.getSnapshotBeforeUpdate=="function",oe=i.pendingProps!==oe,M||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(oe||se!==E)&&UP(i,v,d,E),qs=!1;var Z=i.memoizedState;v.state=Z,zf(i,d,v,p),Bf(),se=i.memoizedState,oe||Z!==se||qs?(typeof I=="function"&&(P1(i,l,I,d),se=i.memoizedState),(T=qs||zP(i,l,T,d,Z,se,E))?(M||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Wa)!==Ye&&(i.flags|=134217728)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Wa)!==Ye&&(i.flags|=134217728),i.memoizedProps=d,i.memoizedState=se),v.props=d,v.state=se,v.context=E,v=T):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Wa)!==Ye&&(i.flags|=134217728),v=!1)}else{v=i.stateNode,n1(a,i),E=i.memoizedProps,M=Vl(l,E),v.props=M,I=i.pendingProps,Z=v.context,se=l.contextType,T=Is,typeof se=="object"&&se!==null&&(T=tn(se)),oe=l.getDerivedStateFromProps,(se=typeof oe=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==I||Z!==T)&&UP(i,v,d,T),qs=!1,Z=i.memoizedState,v.state=Z,zf(i,d,v,p),Bf();var fe=i.memoizedState;E!==I||Z!==fe||qs||a!==null&&a.dependencies!==null&&dg(a.dependencies)?(typeof oe=="function"&&(P1(i,l,oe,d),fe=i.memoizedState),(M=qs||zP(i,l,M,d,Z,fe,T)||a!==null&&a.dependencies!==null&&dg(a.dependencies))?(se||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,fe,T),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,fe,T)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=fe),v.props=d,v.state=fe,v.context=T,v=M):(typeof v.componentDidUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=1024),v=!1)}if(T=v,Ig(a,i),E=(i.flags&128)!==0,T||E){if(T=i.stateNode,ie(i),E&&typeof l.getDerivedStateFromError!="function")l=null,Ar=-1;else if(l=rk(T),i.mode&lr){je(!0);try{rk(T)}finally{je(!1)}}i.flags|=1,a!==null&&E?(i.child=Zl(i,a.child,null,p),i.child=Zl(i,null,l,p)):Jn(a,i,l,p),i.memoizedState=T.state,a=i.child}else a=To(a,i,p);return p=i.stateNode,v&&p.props!==d&&(Ju||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",B(i)||"a component"),Ju=!0),a}function tM(a,i,l,d){return jl(),i.flags|=256,Jn(a,i,l,d),i.child}function V1(a,i){i&&i.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
%s.childContextTypes = ...`,i.displayName||i.name||"Component"),typeof i.getDerivedStateFromProps=="function"&&(a=k(i)||"Unknown",zk[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),zk[a]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=k(i)||"Unknown",$k[i]||(console.error("%s: Function components do not support contextType.",i),$k[i]=!0))}function $1(a){return{baseLanes:a,cachePool:Jj()}}function B1(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=Ur),a}function nM(a,i,l){var d,p=i.pendingProps;s(i)&&(i.flags|=128);var v=!1,E=(i.flags&128)!==0;if((d=E)||(d=a!==null&&a.memoizedState===null?!1:(vn.current&km)!==0),d&&(v=!0,i.flags&=-129),d=(i.flags&32)!==0,i.flags&=-33,a===null){if(pt){if(v?Ss(i):As(i),(a=Xt)?(l=E3(a,Da),l=l!==null&&l.data!==oc?l:null,l!==null&&(d={dehydrated:l,treeContext:Hj(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=Uj(l),d.return=i,i.child=d,nr=i,Xt=null)):l=null,l===null)throw cg(i,a),ys(i);return yN(l)?i.lanes=32:i.lanes=536870912,null}var T=p.children;if(p=p.fallback,v){As(i);var M=i.mode;return T=Vg({mode:"hidden",children:T},M),p=_l(p,M,l,null),T.return=i,p.return=i,T.sibling=p,i.child=T,p=i.child,p.memoizedState=$1(l),p.childLanes=B1(a,d,l),i.memoizedState=Rw,Ff(null,p)}return Ss(i),z1(i,T)}var I=a.memoizedState;if(I!==null){var oe=I.dehydrated;if(oe!==null){if(E)i.flags&256?(Ss(i),i.flags&=-257,i=U1(a,i,l)):i.memoizedState!==null?(As(i),i.child=a.child,i.flags|=128,i=null):(As(i),T=p.fallback,M=i.mode,p=Vg({mode:"visible",children:p.children},M),T=_l(T,M,l,null),T.flags|=2,p.return=i,T.return=i,p.sibling=T,i.child=p,Zl(i,a.child,null,l),p=i.child,p.memoizedState=$1(l),p.childLanes=B1(a,d,l),i.memoizedState=Rw,i=Ff(null,p));else if(Ss(i),Kj(),(l&536870912)!==0&&qg(i),yN(oe)){if(d=oe.nextSibling&&oe.nextSibling.dataset,d){T=d.dgst;var se=d.msg;M=d.stck;var Z=d.cstck}v=se,d=T,p=M,oe=Z,T=v,M=oe,T=Error(T||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),T.stack=p||"",T.digest=d,d=M===void 0?null:M,p={value:T,source:null,stack:d},typeof d=="string"&&uw.set(T,p),Mf(p),i=U1(a,i,l)}else if(An||fu(a,i,l,!1),d=(l&a.childLanes)!==0,An||d){if(d=Ht,d!==null&&(p=kr(d,l),p!==0&&p!==I.retryLane))throw I.retryLane=p,or(a,p),cn(d,a,p),_w;bN(oe)||Hg(),i=U1(a,i,l)}else bN(oe)?(i.flags|=192,i.child=a.child,i=null):(a=I.treeContext,Xt=ta(oe.nextSibling),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!1,a!==null&&Fj(i,a),i=z1(i,p.children),i.flags|=4096);return i}}return v?(As(i),T=p.fallback,M=i.mode,Z=a.child,oe=Z.sibling,p=So(Z,{mode:"hidden",children:p.children}),p.subtreeFlags=Z.subtreeFlags&65011712,oe!==null?T=So(oe,T):(T=_l(T,M,l,null),T.flags|=2),T.return=i,p.return=i,p.sibling=T,i.child=p,Ff(null,p),p=i.child,T=a.child.memoizedState,T===null?T=$1(l):(M=T.cachePool,M!==null?(Z=wn._currentValue,M=M.parent!==Z?{parent:Z,pool:Z}:M):M=Jj(),T={baseLanes:T.baseLanes|l,cachePool:M}),p.memoizedState=T,p.childLanes=B1(a,d,l),i.memoizedState=Rw,Ff(a.child,p)):(I!==null&&(l&62914560)===l&&(l&a.lanes)!==0&&qg(i),Ss(i),l=a.child,a=l.sibling,l=So(l,{mode:"visible",children:p.children}),l.return=i,l.sibling=null,a!==null&&(d=i.deletions,d===null?(i.deletions=[a],i.flags|=16):d.push(a)),i.child=l,i.memoizedState=null,l)}function z1(a,i){return i=Vg({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Vg(a,i){return a=y(22,a,null,i),a.lanes=0,a}function U1(a,i,l){return Zl(i,a.child,null,l),a=z1(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function rM(a,i,l){a.lanes|=i;var d=a.alternate;d!==null&&(d.lanes|=i),Y0(a.return,i,l)}function q1(a,i,l,d,p,v){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p,treeForkCount:v}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=d,E.tail=l,E.tailMode=p,E.treeForkCount=v)}function aM(a,i,l){var d=i.pendingProps,p=d.revealOrder,v=d.tail,E=d.children,T=vn.current;if((d=(T&km)!==0)?(T=T&Qu|km,i.flags|=128):T&=Qu,G(vn,T,i),T=p??"null",p!=="forwards"&&p!=="unstable_legacy-backwards"&&p!=="together"&&p!=="independent"&&!Uk[T])if(Uk[T]=!0,p==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(p==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof p=="string")switch(p.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',p,p.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',p,p.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p);T=v??"null",Lv[T]||(v==null?(p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&(Lv[T]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):v!=="visible"&&v!=="collapsed"&&v!=="hidden"?(Lv[T]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',v)):p!=="forwards"&&p!=="backwards"&&p!=="unstable_legacy-backwards"&&(Lv[T]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',v)));e:if((p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&E!==void 0&&E!==null&&E!==!1)if(jn(E)){for(T=0;T<E.length;T++)if(!cP(E[T],T))break e}else if(T=j(E),typeof T=="function"){if(T=T.call(E))for(var M=T.next(),I=0;!M.done;M=T.next()){if(!cP(M.value,I))break e;I++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',p);if(Jn(a,i,E,l),pt?(bs(),E=xm):E=0,!d&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&rM(a,l,i);else if(a.tag===19)rM(a,l,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(p){case"forwards":for(l=i.child,p=null;l!==null;)a=l.alternate,a!==null&&wg(a)===null&&(p=l),l=l.sibling;l=p,l===null?(p=i.child,i.child=null):(p=l.sibling,l.sibling=null),q1(i,!1,p,l,v,E);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=i.child,i.child=null;p!==null;){if(a=p.alternate,a!==null&&wg(a)===null){i.child=p;break}a=p.sibling,p.sibling=l,l=p,p=a}q1(i,!0,l,null,v,E);break;case"together":q1(i,!1,null,null,void 0,E);break;default:i.memoizedState=null}return i.child}function To(a,i,l){if(a!==null&&(i.dependencies=a.dependencies),Ar=-1,Ks|=i.lanes,(l&i.childLanes)===0)if(a!==null){if(fu(a,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error("Resuming work not yet implemented.");if(i.child!==null){for(a=i.child,l=So(a,a.pendingProps),i.child=l,l.return=i;a.sibling!==null;)a=a.sibling,l=l.sibling=So(a,a.pendingProps),l.return=i;l.sibling=null}return i.child}function H1(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&dg(a)))}function aY(a,i,l){switch(i.tag){case 3:J(i,i.stateNode.containerInfo),xs(i,wn,a.memoizedState.cache),jl();break;case 27:case 5:K(i);break;case 4:J(i,i.stateNode.containerInfo);break;case 10:xs(i,i.type,i.memoizedProps.value);break;case 12:(l&i.childLanes)!==0&&(i.flags|=4),i.flags|=2048;var d=i.stateNode;d.effectDuration=-0,d.passiveEffectDuration=-0;break;case 31:if(i.memoizedState!==null)return i.flags|=128,i1(i),null;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(Ss(i),i.flags|=128,null):(l&i.child.childLanes)!==0?nM(a,i,l):(Ss(i),a=To(a,i,l),a!==null?a.sibling:null);Ss(i);break;case 19:var p=(a.flags&128)!==0;if(d=(l&i.childLanes)!==0,d||(fu(a,i,l,!1),d=(l&i.childLanes)!==0),p){if(d)return aM(a,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),G(vn,vn.current,i),d)break;return null;case 22:return i.lanes=0,XP(a,i,l,i.pendingProps);case 24:xs(i,wn,a.memoizedState.cache)}return To(a,i,l)}function F1(a,i,l){if(i._debugNeedsRemount&&a!==null){l=z0(i.type,i.key,i.pendingProps,i._debugOwner||null,i.mode,i.lanes),l._debugStack=i._debugStack,l._debugTask=i._debugTask;var d=i.return;if(d===null)throw Error("Cannot swap the root fiber.");if(a.alternate=null,i.alternate=null,l.index=i.index,l.sibling=i.sibling,l.return=i.return,l.ref=i.ref,l._debugInfo=i._debugInfo,i===d.child)d.child=l;else{var p=d.child;if(p===null)throw Error("Expected parent to have a child.");for(;p.sibling!==i;)if(p=p.sibling,p===null)throw Error("Expected to find the previous sibling.");p.sibling=l}return i=d.deletions,i===null?(d.deletions=[a],d.flags|=16):i.push(a),l.flags|=2,l}if(a!==null)if(a.memoizedProps!==i.pendingProps||i.type!==a.type)An=!0;else{if(!H1(a,l)&&(i.flags&128)===0)return An=!1,aY(a,i,l);An=(a.flags&131072)!==0}else An=!1,(d=pt)&&(bs(),d=(i.flags&1048576)!==0),d&&(d=i.index,bs(),qj(i,xm,d));switch(i.lanes=0,i.tag){case 16:e:if(d=i.pendingProps,a=Ns(i.elementType),i.type=a,typeof a=="function")B0(a)?(d=Vl(a,d),i.tag=1,i.type=a=Cl(a),i=eM(null,i,a,d,l)):(i.tag=0,V1(i,a),i.type=a=Cl(a),i=I1(null,i,a,d,l));else{if(a!=null){if(p=a.$$typeof,p===sm){i.tag=11,i.type=a=$0(a),i=GP(null,i,a,d,l);break e}else if(p===av){i.tag=14,i=YP(null,i,a,d,l);break e}}throw i="",a!==null&&typeof a=="object"&&a.$$typeof===na&&(i=" Did you wrap a component in React.lazy() more than once?"),l=k(a)||a,Error("Element type is invalid. Received a promise that resolves to: "+l+". Lazy element type must resolve to a class or function."+i)}return i;case 0:return I1(a,i,i.type,i.pendingProps,l);case 1:return d=i.type,p=Vl(d,i.pendingProps),eM(a,i,d,p,l);case 3:e:{if(J(i,i.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");d=i.pendingProps;var v=i.memoizedState;p=v.element,n1(a,i),zf(i,d,null,l);var E=i.memoizedState;if(d=E.cache,xs(i,wn,d),d!==v.cache&&Q0(i,[wn],l,!0),Bf(),d=E.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:E.cache},i.updateQueue.baseState=v,i.memoizedState=v,i.flags&256){i=tM(a,i,d,l);break e}else if(d!==p){p=Xr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),Mf(p),i=tM(a,i,d,l);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(Xt=ta(a.firstChild),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!0,l=vk(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(jl(),d===p){i=To(a,i,l);break e}Jn(a,i,d,l)}i=i.child}return i;case 26:return Ig(a,i),a===null?(l=C3(i.type,null,i.pendingProps,null))?i.memoizedState=l:pt||(l=i.type,a=i.pendingProps,d=Y(Rs.current),d=Yg(d).createElement(l),d[tr]=i,d[wr]=a,er(d,l,a),Se(d),i.stateNode=d):i.memoizedState=C3(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return K(i),a===null&&pt&&(d=Y(Rs.current),p=z(),d=i.stateNode=D3(i.type,i.pendingProps,d,p,!1),Hi||(p=p3(d,i.type,i.pendingProps,p),p!==null&&(Rl(i,0).serverProps=p)),nr=i,Da=!0,p=Xt,Cs(i.type)?(eE=p,Xt=ta(d.firstChild)):Xt=p),Jn(a,i,i.pendingProps.children,l),Ig(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&pt&&(v=z(),d=_0(i.type,v.ancestorInfo),p=Xt,(E=!p)||(E=KY(p,i.type,i.pendingProps,Da),E!==null?(i.stateNode=E,Hi||(v=p3(E,i.type,i.pendingProps,v),v!==null&&(Rl(i,0).serverProps=v)),nr=i,Xt=ta(E.firstChild),Da=!1,v=!0):v=!1,E=!v),E&&(d&&cg(i,p),ys(i))),K(i),p=i.type,v=i.pendingProps,E=a!==null?a.memoizedProps:null,d=v.children,gN(p,v)?d=null:E!==null&&gN(p,E)&&(i.flags|=32),i.memoizedState!==null&&(p=s1(a,i,XG,null,null,l),Jm._currentValue=p),Ig(a,i),Jn(a,i,d,l),i.child;case 6:return a===null&&pt&&(l=i.pendingProps,a=z(),d=a.ancestorInfo.current,l=d!=null?Jp(l,d.tag,a.ancestorInfo.implicitRootScope):!0,a=Xt,(d=!a)||(d=GY(a,i.pendingProps,Da),d!==null?(i.stateNode=d,nr=i,Xt=null,d=!0):d=!1,d=!d),d&&(l&&cg(i,a),ys(i))),null;case 13:return nM(a,i,l);case 4:return J(i,i.stateNode.containerInfo),d=i.pendingProps,a===null?i.child=Zl(i,null,d,l):Jn(a,i,d,l),i.child;case 11:return GP(a,i,i.type,i.pendingProps,l);case 7:return Jn(a,i,i.pendingProps,l),i.child;case 8:return Jn(a,i,i.pendingProps.children,l),i.child;case 12:return i.flags|=4,i.flags|=2048,d=i.stateNode,d.effectDuration=-0,d.passiveEffectDuration=-0,Jn(a,i,i.pendingProps.children,l),i.child;case 10:return d=i.type,p=i.pendingProps,v=p.value,"value"in p||qk||(qk=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),xs(i,d,v),Jn(a,i,p.children,l),i.child;case 9:return p=i.type._context,d=i.pendingProps.children,typeof d!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Pl(i),p=tn(p),d=bw(d,p,void 0),i.flags|=1,Jn(a,i,d,l),i.child;case 14:return YP(a,i,i.type,i.pendingProps,l);case 15:return QP(a,i,i.type,i.pendingProps,l);case 19:return aM(a,i,l);case 31:return rY(a,i,l);case 22:return XP(a,i,l,i.pendingProps);case 24:return Pl(i),d=tn(wn),a===null?(p=J0(),p===null&&(p=Ht,v=X0(),p.pooledCache=v,Ml(v),v!==null&&(p.pooledCacheLanes|=l),p=v),i.memoizedState={parent:d,cache:p},t1(i),xs(i,wn,p)):((a.lanes&l)!==0&&(n1(a,i),zf(i,null,null,l),Bf()),p=a.memoizedState,v=i.memoizedState,p.parent!==d?(p={parent:d,cache:d},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),xs(i,wn,d)):(d=v.cache,xs(i,wn,d),d!==p.cache&&Q0(i,[wn],l,!0))),Jn(a,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Co(a){a.flags|=4}function K1(a,i,l,d,p){if((i=(a.mode&AX)!==Ye)&&(i=!1),i){if(a.flags|=16777216,(p&335544128)===p)if(a.stateNode.complete)a.flags|=8192;else if(IM())a.flags|=8192;else throw Wl=_v,xw}else a.flags&=-16777217}function iM(a,i){if(i.type!=="stylesheet"||(i.state.loading&ja)!==cc)a.flags&=-16777217;else if(a.flags|=16777216,!M3(i))if(IM())a.flags|=8192;else throw Wl=_v,xw}function $g(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Yr():536870912,a.lanes|=i,rc|=i)}function Kf(a,i){if(!pt)switch(a.tailMode){case"hidden":i=a.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?a.tail=null:l.sibling=null;break;case"collapsed":l=a.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:d.sibling=null}}function Kt(a){var i=a.alternate!==null&&a.alternate.child===a.child,l=0,d=0;if(i)if((a.mode&st)!==Ye){for(var p=a.selfBaseDuration,v=a.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,p+=v.treeBaseDuration,v=v.sibling;a.treeBaseDuration=p}else for(p=a.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=a,p=p.sibling;else if((a.mode&st)!==Ye){p=a.actualDuration,v=a.selfBaseDuration;for(var E=a.child;E!==null;)l|=E.lanes|E.childLanes,d|=E.subtreeFlags,d|=E.flags,p+=E.actualDuration,v+=E.treeBaseDuration,E=E.sibling;a.actualDuration=p,a.treeBaseDuration=v}else for(p=a.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=d,a.childLanes=l,i}function iY(a,i,l){var d=i.pendingProps;switch(F0(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(i),null;case 1:return Kt(i),null;case 3:return l=i.stateNode,d=null,a!==null&&(d=a.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),Oo(wn,i),q(i),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(du(i)?(G0(),Co(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,K0())),Kt(i),null;case 26:var p=i.type,v=i.memoizedState;return a===null?(Co(i),v!==null?(Kt(i),iM(i,v)):(Kt(i),K1(i,p,null,d,l))):v?v!==a.memoizedState?(Co(i),Kt(i),iM(i,v)):(Kt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==d&&Co(i),Kt(i),K1(i,p,a,d,l)),null;case 27:if(te(i),l=Y(Rs.current),p=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&Co(i);else{if(!d){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Kt(i),null}a=z(),du(i)?Gj(i):(a=D3(p,d,l,a,!0),i.stateNode=a,Co(i))}return Kt(i),null;case 5:if(te(i),p=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&Co(i);else{if(!d){if(i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Kt(i),null}var E=z();if(du(i))Gj(i);else{switch(v=Y(Rs.current),_0(p,E.ancestorInfo),E=E.context,v=Yg(v),E){case sd:v=v.createElementNS(Ru,p);break;case nb:v=v.createElementNS(dv,p);break;default:switch(p){case"svg":v=v.createElementNS(Ru,p);break;case"math":v=v.createElementNS(dv,p);break;case"script":v=v.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof d.is=="string"?v.createElement("select",{is:d.is}):v.createElement("select"),d.multiple?v.multiple=!0:d.size&&(v.size=d.size);break;default:v=typeof d.is=="string"?v.createElement(p,{is:d.is}):v.createElement(p),p.indexOf("-")===-1&&(p!==p.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",p),Object.prototype.toString.call(v)!=="[object HTMLUnknownElement]"||Xa.call(mL,p)||(mL[p]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",p)))}}v[tr]=i,v[wr]=d;e:for(E=i.child;E!==null;){if(E.tag===5||E.tag===6)v.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===i)break e;for(;E.sibling===null;){if(E.return===null||E.return===i)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}i.stateNode=v;e:switch(er(v,p,d),p){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&Co(i)}}return Kt(i),K1(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,l),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==d&&Co(i);else{if(typeof d!="string"&&i.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(a=Y(Rs.current),l=z(),du(i)){if(a=i.stateNode,l=i.memoizedProps,p=!Hi,d=null,v=nr,v!==null)switch(v.tag){case 3:p&&(p=A3(a,l,d),p!==null&&(Rl(i,0).serverProps=p));break;case 27:case 5:d=v.memoizedProps,p&&(p=A3(a,l,d),p!==null&&(Rl(i,0).serverProps=p))}a[tr]=i,a=!!(a.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||u3(a.nodeValue,l)),a||ys(i,!0)}else p=l.ancestorInfo.current,p!=null&&Jp(d,p.tag,l.ancestorInfo.implicitRootScope),a=Yg(a).createTextNode(d),a[tr]=i,i.stateNode=a}return Kt(i),null;case 31:if(l=i.memoizedState,a===null||a.memoizedState!==null){if(d=du(i),l!==null){if(a===null){if(!d)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");a[tr]=i,Kt(i),(i.mode&st)!==Ye&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration))}else G0(),jl(),(i.flags&128)===0&&(l=i.memoizedState=null),i.flags|=4,Kt(i),(i.mode&st)!==Ye&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration));a=!1}else l=K0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=l),a=!0;if(!a)return i.flags&256?(Jr(i),i):(Jr(i),null);if((i.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Kt(i),null;case 13:if(d=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=d,v=du(i),p!==null&&p.dehydrated!==null){if(a===null){if(!v)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v[tr]=i,Kt(i),(i.mode&st)!==Ye&&p!==null&&(p=i.child,p!==null&&(i.treeBaseDuration-=p.treeBaseDuration))}else G0(),jl(),(i.flags&128)===0&&(p=i.memoizedState=null),i.flags|=4,Kt(i),(i.mode&st)!==Ye&&p!==null&&(p=i.child,p!==null&&(i.treeBaseDuration-=p.treeBaseDuration));p=!1}else p=K0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(Jr(i),i):(Jr(i),null)}return Jr(i),(i.flags&128)!==0?(i.lanes=l,(i.mode&st)!==Ye&&If(i),i):(l=d!==null,a=a!==null&&a.memoizedState!==null,l&&(d=i.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==p&&(d.flags|=2048)),l!==a&&l&&(i.child.flags|=8192),$g(i,i.updateQueue),Kt(i),(i.mode&st)!==Ye&&l&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return q(i),a===null&&cN(i.stateNode.containerInfo),Kt(i),null;case 10:return Oo(i.type,i),Kt(i),null;case 19:if(H(vn,i),d=i.memoizedState,d===null)return Kt(i),null;if(p=(i.flags&128)!==0,v=d.rendering,v===null)if(p)Kf(d,!1);else{if(sn!==Fo||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(v=wg(a),v!==null){for(i.flags|=128,Kf(d,!1),a=v.updateQueue,i.updateQueue=a,$g(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)zj(l,a),l=l.sibling;return G(vn,vn.current&Qu|km,i),pt&&Ao(i,d.treeForkCount),i.child}a=a.sibling}d.tail!==null&&Hn()>qv&&(i.flags|=128,p=!0,Kf(d,!1),i.lanes=4194304)}else{if(!p)if(a=wg(v),a!==null){if(i.flags|=128,p=!0,a=a.updateQueue,i.updateQueue=a,$g(i,a),Kf(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!pt)return Kt(i),null}else 2*Hn()-d.renderingStartTime>qv&&l!==536870912&&(i.flags|=128,p=!0,Kf(d,!1),i.lanes=4194304);d.isBackwards?(v.sibling=i.child,i.child=v):(a=d.last,a!==null?a.sibling=v:i.child=v,d.last=v)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=Hn(),a.sibling=null,l=vn.current,l=p?l&Qu|km:l&Qu,G(vn,l,i),pt&&Ao(i,d.treeForkCount),a):(Kt(i),null);case 22:case 23:return Jr(i),a1(i),d=i.memoizedState!==null,a!==null?a.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(l&536870912)!==0&&(i.flags&128)===0&&(Kt(i),i.subtreeFlags&6&&(i.flags|=8192)):Kt(i),l=i.updateQueue,l!==null&&$g(i,l.retryQueue),l=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==l&&(i.flags|=2048),a!==null&&H(Ql,i),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Oo(wn,i),Kt(i),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+i.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function oY(a,i){switch(F0(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&If(i),i):null;case 3:return Oo(wn,i),q(i),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return te(i),null;case 31:if(i.memoizedState!==null){if(Jr(i),i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");jl()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&If(i),i):null;case 13:if(Jr(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");jl()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&If(i),i):null;case 19:return H(vn,i),null;case 4:return q(i),null;case 10:return Oo(i.type,i),null;case 22:case 23:return Jr(i),a1(i),a!==null&&H(Ql,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&If(i),i):null;case 24:return Oo(wn,i),null;case 25:return null;default:return null}}function oM(a,i){switch(F0(i),i.tag){case 3:Oo(wn,i),q(i);break;case 26:case 27:case 5:te(i);break;case 4:q(i);break;case 31:i.memoizedState!==null&&Jr(i);break;case 13:Jr(i);break;case 19:H(vn,i);break;case 10:Oo(i.type,i);break;case 22:case 23:Jr(i),a1(i),a!==null&&H(Ql,i);break;case 24:Oo(wn,i)}}function Ri(a){return(a.mode&st)!==Ye}function sM(a,i){Ri(a)?(_i(),Gf(i,a),Ci()):Gf(i,a)}function G1(a,i,l){Ri(a)?(_i(),vu(l,a,i),Ci()):vu(l,a,i)}function Gf(a,i){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&a)===a&&(d=void 0,(a&Or)!==jv&&(ad=!0),d=de(i,RX,l),(a&Or)!==jv&&(ad=!1),d!==void 0&&typeof d!="function")){var v=void 0;v=(l.tag&oa)!==0?"useLayoutEffect":(l.tag&Or)!==0?"useInsertionEffect":"useEffect";var E=void 0;E=d===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof d.then=="function"?`
It looks like you wrote `+v+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+v+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+d,de(i,function(T,M){console.error("%s must not return anything besides a function, which is used for clean-up.%s",T,M)},v,E)}l=l.next}while(l!==p)}}catch(T){jt(i,i.return,T)}}function vu(a,i,l){try{var d=i.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var v=p.next;d=v;do{if((d.tag&a)===a){var E=d.inst,T=E.destroy;T!==void 0&&(E.destroy=void 0,(a&Or)!==jv&&(ad=!0),p=i,de(p,jX,p,l,T),(a&Or)!==jv&&(ad=!1))}d=d.next}while(d!==v)}}catch(M){jt(i,i.return,M)}}function lM(a,i){Ri(a)?(_i(),Gf(i,a),Ci()):Gf(i,a)}function Y1(a,i,l){Ri(a)?(_i(),vu(l,a,i),Ci()):vu(l,a,i)}function cM(a){var i=a.updateQueue;if(i!==null){var l=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||Ju||(l.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(a)||"instance"),l.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(a)||"instance"));try{de(a,dP,i,l)}catch(d){jt(a,a.return,d)}}}function sY(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function lY(a,i){var l=i.memoizedProps,d=i.memoizedState;i=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||Ju||(i.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(a)||"instance"),i.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(a)||"instance"));try{var p=Vl(a.type,l),v=de(a,sY,i,p,d);l=Hk,v!==void 0||l.has(a.type)||(l.add(a.type),de(a,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",B(a))})),i.__reactInternalSnapshotBeforeUpdate=v}catch(E){jt(a,a.return,E)}}function uM(a,i,l){l.props=Vl(a.type,a.memoizedProps),l.state=a.memoizedState,Ri(a)?(_i(),de(a,ck,a,i,l),Ci()):de(a,ck,a,i,l)}function cY(a){var i=a.ref;if(i!==null){switch(a.tag){case 26:case 27:case 5:var l=a.stateNode;break;case 30:l=a.stateNode;break;default:l=a.stateNode}if(typeof i=="function")if(Ri(a))try{_i(),a.refCleanup=i(l)}finally{Ci()}else a.refCleanup=i(l);else typeof i=="string"?console.error("String refs are no longer supported."):i.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",B(a)),i.current=l}}function Yf(a,i){try{de(a,cY,a)}catch(l){jt(a,i,l)}}function ji(a,i){var l=a.ref,d=a.refCleanup;if(l!==null)if(typeof d=="function")try{if(Ri(a))try{_i(),de(a,d)}finally{Ci(a)}else de(a,d)}catch(p){jt(a,i,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof l=="function")try{if(Ri(a))try{_i(),de(a,l,null)}finally{Ci(a)}else de(a,l,null)}catch(p){jt(a,i,p)}else l.current=null}function dM(a,i,l,d){var p=a.memoizedProps,v=p.id,E=p.onCommit;p=p.onRender,i=i===null?"mount":"update",Ov&&(i="nested-update"),typeof p=="function"&&p(v,i,a.actualDuration,a.treeBaseDuration,a.actualStartTime,l),typeof E=="function"&&E(v,i,d,l)}function uY(a,i,l,d){var p=a.memoizedProps;a=p.id,p=p.onPostCommit,i=i===null?"mount":"update",Ov&&(i="nested-update"),typeof p=="function"&&p(a,i,d,l)}function fM(a){var i=a.type,l=a.memoizedProps,d=a.stateNode;try{de(a,MY,d,i,l,a)}catch(p){jt(a,a.return,p)}}function Q1(a,i,l){try{de(a,LY,a.stateNode,a.type,l,i,a)}catch(d){jt(a,a.return,d)}}function mM(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Cs(a.type)||a.tag===4}function X1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||mM(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.tag===27&&Cs(a.type)||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 W1(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?(x3(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,i)):(x3(l),i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(a),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Eo));else if(d!==4&&(d===27&&Cs(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(W1(a,i,l),a=a.sibling;a!==null;)W1(a,i,l),a=a.sibling}function Bg(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?l.insertBefore(a,i):l.appendChild(a);else if(d!==4&&(d===27&&Cs(a.type)&&(l=a.stateNode),a=a.child,a!==null))for(Bg(a,i,l),a=a.sibling;a!==null;)Bg(a,i,l),a=a.sibling}function dY(a){for(var i,l=a.return;l!==null;){if(mM(l)){i=l;break}l=l.return}if(i==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(i.tag){case 27:i=i.stateNode,l=X1(a),Bg(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(y3(l),i.flags&=-33),i=X1(a),Bg(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=X1(a),W1(a,l,i);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function hM(a){var i=a.stateNode,l=a.memoizedProps;try{de(a,ZY,a.type,l,i,a)}catch(d){jt(a,a.return,d)}}function pM(a,i){return i.tag===31?(i=i.memoizedState,a.memoizedState!==null&&i===null):i.tag===13?(a=a.memoizedState,i=i.memoizedState,a!==null&&a.dehydrated!==null&&(i===null||i.dehydrated===null)):i.tag===3?a.memoizedState.isDehydrated&&(i.flags&256)===0:!1}function fY(a,i){if(a=a.containerInfo,Ww=ob,a=Rj(a),P0(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{l=(l=a.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var p=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var E=0,T=-1,M=-1,I=0,oe=0,se=a,Z=null;t:for(;;){for(var fe;se!==l||p!==0&&se.nodeType!==3||(T=E+p),se!==v||d!==0&&se.nodeType!==3||(M=E+d),se.nodeType===3&&(E+=se.nodeValue.length),(fe=se.firstChild)!==null;)Z=se,se=fe;for(;;){if(se===a)break t;if(Z===l&&++I===p&&(T=E),Z===v&&++oe===d&&(M=E),(fe=se.nextSibling)!==null)break;se=Z,Z=se.parentNode}se=fe}l=T===-1||M===-1?null:{start:T,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Zw={focusedElem:a,selectionRange:l},ob=!1,Kn=i;Kn!==null;)if(i=Kn,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Kn=a;else for(;Kn!==null;){switch(a=i=Kn,l=a.alternate,p=a.flags,a.tag){case 0:if((p&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(l=0;l<a.length;l++)p=a[l],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:(p&1024)!==0&&l!==null&&lY(a,l);break;case 3:if((p&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)vN(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":vN(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((p&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(a=i.sibling,a!==null){a.return=i.return,Kn=a;break}Kn=i.return}}function gM(a,i,l){var d=Wr(),p=Ai(),v=Di(),E=Ti(),T=l.flags;switch(l.tag){case 0:case 11:case 15:Pi(a,l),T&4&&sM(l,oa|_a);break;case 1:if(Pi(a,l),T&4)if(a=l.stateNode,i===null)l.type.defaultProps||"ref"in l.memoizedProps||Ju||(a.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(l)||"instance"),a.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(l)||"instance")),Ri(l)?(_i(),de(l,yw,l,a),Ci()):de(l,yw,l,a);else{var M=Vl(l.type,i.memoizedProps);i=i.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Ju||(a.props!==l.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",B(l)||"instance"),a.state!==l.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",B(l)||"instance")),Ri(l)?(_i(),de(l,ok,l,a,M,i,a.__reactInternalSnapshotBeforeUpdate),Ci()):de(l,ok,l,a,M,i,a.__reactInternalSnapshotBeforeUpdate)}T&64&&cM(l),T&512&&Yf(l,l.return);break;case 3:if(i=Do(),Pi(a,l),T&64&&(T=l.updateQueue,T!==null)){if(M=null,l.child!==null)switch(l.child.tag){case 27:case 5:M=l.child.stateNode;break;case 1:M=l.child.stateNode}try{de(l,dP,T,M)}catch(oe){jt(l,l.return,oe)}}a.effectDuration+=mg(i);break;case 27:i===null&&T&4&&hM(l);case 26:case 5:if(Pi(a,l),i===null){if(T&4)fM(l);else if(T&64){a=l.type,i=l.memoizedProps,M=l.stateNode;try{de(l,kY,M,a,i,l)}catch(oe){jt(l,l.return,oe)}}}T&512&&Yf(l,l.return);break;case 12:if(T&4){T=Do(),Pi(a,l),a=l.stateNode,a.effectDuration+=Lf(T);try{de(l,dM,l,i,$s,a.effectDuration)}catch(oe){jt(l,l.return,oe)}}else Pi(a,l);break;case 31:Pi(a,l),T&4&&yM(a,l);break;case 13:Pi(a,l),T&4&&xM(a,l),T&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(T=NY.bind(null,l),YY(a,T))));break;case 22:if(T=l.memoizedState!==null||Ho,!T){i=i!==null&&i.memoizedState!==null||On,M=Ho;var I=On;Ho=T,(On=i)&&!I?(Mi(a,l,(l.subtreeFlags&8772)!==0),(l.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&rg(l,qe,Ke)):Pi(a,l),Ho=M,On=I}break;case 30:break;default:Pi(a,l)}(l.mode&st)!==Ye&&0<=qe&&0<=Ke&&((un||.05<on)&&Ei(l,qe,Ke,on,nn),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<Ke-qe&&(pM(l.return.alternate,l.return)||wi(l,qe,Ke,"Mount"))),Zr(d),Oi(p),nn=v,un=E}function vM(a){var i=a.alternate;i!==null&&(a.alternate=null,vM(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&ce(i)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function _o(a,i,l){for(l=l.child;l!==null;)bM(a,i,l),l=l.sibling}function bM(a,i,l){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Cu,l)}catch(I){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",I))}var d=Wr(),p=Ai(),v=Di(),E=Ti();switch(l.tag){case 26:On||ji(l,i),_o(a,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(a=l.stateNode,a.parentNode.removeChild(a));break;case 27:On||ji(l,i);var T=Dn,M=Br;Cs(l.type)&&(Dn=l.stateNode,Br=!1),_o(a,i,l),de(l,rm,l.stateNode),Dn=T,Br=M;break;case 5:On||ji(l,i);case 6:if(T=Dn,M=Br,Dn=null,_o(a,i,l),Dn=T,Br=M,Dn!==null)if(Br)try{de(l,$Y,Dn,l.stateNode)}catch(I){jt(l,i,I)}else try{de(l,VY,Dn,l.stateNode)}catch(I){jt(l,i,I)}break;case 18:Dn!==null&&(Br?(a=Dn,N3(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),Au(a)):N3(Dn,l.stateNode));break;case 4:T=Dn,M=Br,Dn=l.stateNode.containerInfo,Br=!0,_o(a,i,l),Dn=T,Br=M;break;case 0:case 11:case 14:case 15:vu(Or,l,i),On||G1(l,i,oa),_o(a,i,l);break;case 1:On||(ji(l,i),T=l.stateNode,typeof T.componentWillUnmount=="function"&&uM(l,i,T)),_o(a,i,l);break;case 21:_o(a,i,l);break;case 22:On=(T=On)||l.memoizedState!==null,_o(a,i,l),On=T;break;default:_o(a,i,l)}(l.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(l,qe,Ke,on,nn),Zr(d),Oi(p),nn=v,un=E}function yM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{de(i,XY,a)}catch(l){jt(i,i.return,l)}}}function xM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{de(i,WY,a)}catch(l){jt(i,i.return,l)}}function mY(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new Fk),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new Fk),i;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function zg(a,i){var l=mY(a);i.forEach(function(d){if(!l.has(d)){if(l.add(d),zi)if(ed!==null&&td!==null)Zf(td,ed);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var p=wY.bind(null,a,d);d.then(p,p)}})}function Vr(a,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=a,v=i,E=l[d],T=Wr(),M=v;e:for(;M!==null;){switch(M.tag){case 27:if(Cs(M.type)){Dn=M.stateNode,Br=!1;break e}break;case 5:Dn=M.stateNode,Br=!1;break e;case 3:case 4:Dn=M.stateNode.containerInfo,Br=!0;break e}M=M.return}if(Dn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");bM(p,v,E),Dn=null,Br=!1,(E.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&wi(E,qe,Ke,"Unmount"),Zr(T),p=E,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)NM(i,a),i=i.sibling}function NM(a,i){var l=Wr(),d=Ai(),p=Di(),v=Ti(),E=a.alternate,T=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Vr(i,a),$r(a),T&4&&(vu(Or|_a,a,a.return),Gf(Or|_a,a),G1(a,a.return,oa|_a));break;case 1:if(Vr(i,a),$r(a),T&512&&(On||E===null||ji(E,E.return)),T&64&&Ho&&(T=a.updateQueue,T!==null&&(E=T.callbacks,E!==null))){var M=T.shared.hiddenCallbacks;T.shared.hiddenCallbacks=M===null?E:M.concat(E)}break;case 26:if(M=ei,Vr(i,a),$r(a),T&512&&(On||E===null||ji(E,E.return)),T&4){var I=E!==null?E.memoizedState:null;if(T=a.memoizedState,E===null)if(T===null)if(a.stateNode===null){e:{T=a.type,E=a.memoizedProps,M=M.ownerDocument||M;t:switch(T){case"title":I=M.getElementsByTagName("title")[0],(!I||I[um]||I[tr]||I.namespaceURI===Ru||I.hasAttribute("itemprop"))&&(I=M.createElement(T),M.head.insertBefore(I,M.querySelector("head > title"))),er(I,T,E),I[tr]=a,Se(I),T=I;break e;case"link":var oe=j3("link","href",M).get(T+(E.href||""));if(oe){for(var se=0;se<oe.length;se++)if(I=oe[se],I.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&I.getAttribute("rel")===(E.rel==null?null:E.rel)&&I.getAttribute("title")===(E.title==null?null:E.title)&&I.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){oe.splice(se,1);break t}}I=M.createElement(T),er(I,T,E),M.head.appendChild(I);break;case"meta":if(oe=j3("meta","content",M).get(T+(E.content||""))){for(se=0;se<oe.length;se++)if(I=oe[se],Ve(E.content,"content"),I.getAttribute("content")===(E.content==null?null:""+E.content)&&I.getAttribute("name")===(E.name==null?null:E.name)&&I.getAttribute("property")===(E.property==null?null:E.property)&&I.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&I.getAttribute("charset")===(E.charSet==null?null:E.charSet)){oe.splice(se,1);break t}}I=M.createElement(T),er(I,T,E),M.head.appendChild(I);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+T+'". This is a bug in React.')}I[tr]=a,Se(I),T=I}a.stateNode=T}else P3(M,a.type,a.stateNode);else a.stateNode=R3(M,T,a.memoizedProps);else I!==T?(I===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):I.count--,T===null?P3(M,a.type,a.stateNode):R3(M,T,a.memoizedProps)):T===null&&a.stateNode!==null&&Q1(a,a.memoizedProps,E.memoizedProps)}break;case 27:Vr(i,a),$r(a),T&512&&(On||E===null||ji(E,E.return)),E!==null&&T&4&&Q1(a,a.memoizedProps,E.memoizedProps);break;case 5:if(Vr(i,a),$r(a),T&512&&(On||E===null||ji(E,E.return)),a.flags&32){M=a.stateNode;try{de(a,y3,M)}catch(_e){jt(a,a.return,_e)}}T&4&&a.stateNode!=null&&(M=a.memoizedProps,Q1(a,M,E!==null?E.memoizedProps:M)),T&1024&&(jw=!0,a.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Vr(i,a),$r(a),T&4){if(a.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");T=a.memoizedProps,E=E!==null?E.memoizedProps:T,M=a.stateNode;try{de(a,IY,M,E,T)}catch(_e){jt(a,a.return,_e)}}break;case 3:if(M=Do(),rb=null,I=ei,ei=Qg(i.containerInfo),Vr(i,a),ei=I,$r(a),T&4&&E!==null&&E.memoizedState.isDehydrated)try{de(a,QY,i.containerInfo)}catch(_e){jt(a,a.return,_e)}jw&&(jw=!1,wM(a)),i.effectDuration+=mg(M);break;case 4:T=ei,ei=Qg(a.stateNode.containerInfo),Vr(i,a),$r(a),ei=T;break;case 12:T=Do(),Vr(i,a),$r(a),a.stateNode.effectDuration+=Lf(T);break;case 31:Vr(i,a),$r(a),T&4&&(T=a.updateQueue,T!==null&&(a.updateQueue=null,zg(a,T)));break;case 13:Vr(i,a),$r(a),a.child.flags&8192&&a.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(Uv=Hn()),T&4&&(T=a.updateQueue,T!==null&&(a.updateQueue=null,zg(a,T)));break;case 22:M=a.memoizedState!==null;var Z=E!==null&&E.memoizedState!==null,fe=Ho,Te=On;if(Ho=fe||M,On=Te||Z,Vr(i,a),On=Te,Ho=fe,Z&&!M&&!fe&&!Te&&(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&rg(a,qe,Ke),$r(a),T&8192)e:for(i=a.stateNode,i._visibility=M?i._visibility&~ym:i._visibility|ym,!M||E===null||Z||Ho||On||($l(a),(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&wi(a,qe,Ke,"Disconnect")),E=null,i=a;;){if(i.tag===5||i.tag===26){if(E===null){Z=E=i;try{I=Z.stateNode,M?de(Z,zY,I):de(Z,HY,Z.stateNode,Z.memoizedProps)}catch(_e){jt(Z,Z.return,_e)}}}else if(i.tag===6){if(E===null){Z=i;try{oe=Z.stateNode,M?de(Z,UY,oe):de(Z,FY,oe,Z.memoizedProps)}catch(_e){jt(Z,Z.return,_e)}}}else if(i.tag===18){if(E===null){Z=i;try{se=Z.stateNode,M?de(Z,BY,se):de(Z,qY,Z.stateNode)}catch(_e){jt(Z,Z.return,_e)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;E===i&&(E=null),i=i.return}E===i&&(E=null),i.sibling.return=i.return,i=i.sibling}T&4&&(T=a.updateQueue,T!==null&&(E=T.retryQueue,E!==null&&(T.retryQueue=null,zg(a,E))));break;case 19:Vr(i,a),$r(a),T&4&&(T=a.updateQueue,T!==null&&(a.updateQueue=null,zg(a,T)));break;case 30:break;case 21:break;default:Vr(i,a),$r(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&((un||.05<on)&&Ei(a,qe,Ke,on,nn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ke-qe&&(pM(a.return.alternate,a.return)||wi(a,qe,Ke,"Mount"))),Zr(l),Oi(d),nn=p,un=v}function $r(a){var i=a.flags;if(i&2){try{de(a,dY,a)}catch(l){jt(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function wM(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;wM(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Pi(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)gM(a,i.alternate,i),i=i.sibling}function EM(a){var i=Wr(),l=Ai(),d=Di(),p=Ti();switch(a.tag){case 0:case 11:case 14:case 15:G1(a,a.return,oa),$l(a);break;case 1:ji(a,a.return);var v=a.stateNode;typeof v.componentWillUnmount=="function"&&uM(a,a.return,v),$l(a);break;case 27:de(a,rm,a.stateNode);case 26:case 5:ji(a,a.return),$l(a);break;case 22:a.memoizedState===null&&$l(a);break;case 30:$l(a);break;default:$l(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(a,qe,Ke,on,nn),Zr(i),Oi(l),nn=d,un=p}function $l(a){for(a=a.child;a!==null;)EM(a),a=a.sibling}function SM(a,i,l,d){var p=Wr(),v=Ai(),E=Di(),T=Ti(),M=l.flags;switch(l.tag){case 0:case 11:case 15:Mi(a,l,d),sM(l,oa);break;case 1:if(Mi(a,l,d),i=l.stateNode,typeof i.componentDidMount=="function"&&de(l,yw,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{de(l,QG,i,a)}catch(I){jt(l,l.return,I)}}d&&M&64&&cM(l),Yf(l,l.return);break;case 27:hM(l);case 26:case 5:Mi(a,l,d),d&&i===null&&M&4&&fM(l),Yf(l,l.return);break;case 12:if(d&&M&4){M=Do(),Mi(a,l,d),d=l.stateNode,d.effectDuration+=Lf(M);try{de(l,dM,l,i,$s,d.effectDuration)}catch(I){jt(l,l.return,I)}}else Mi(a,l,d);break;case 31:Mi(a,l,d),d&&M&4&&yM(a,l);break;case 13:Mi(a,l,d),d&&M&4&&xM(a,l);break;case 22:l.memoizedState===null&&Mi(a,l,d),Yf(l,l.return);break;case 30:break;default:Mi(a,l,d)}(l.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(l,qe,Ke,on,nn),Zr(p),Oi(v),nn=E,un=T}function Mi(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)SM(a,i.alternate,i,l),i=i.sibling}function Z1(a,i){var l=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(a!=null&&Ml(a),l!=null&&kf(l))}function J1(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Ml(i),a!=null&&kf(a))}function Qa(a,i,l,d,p){if(i.subtreeFlags&10256||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child))for(i=i.child;i!==null;){var v=i.sibling;AM(a,i,l,d,v!==null?v.actualStartTime:p),i=v}}function AM(a,i,l,d,p){var v=Wr(),E=Ai(),T=Di(),M=Ti(),I=ks,oe=i.flags;switch(i.tag){case 0:case 11:case 15:(i.mode&st)!==Ye&&0<i.actualStartTime&&(i.flags&1)!==0&&ag(i,i.actualStartTime,p,Pn,l),Qa(a,i,l,d,p),oe&2048&&lM(i,Dr|_a);break;case 1:(i.mode&st)!==Ye&&0<i.actualStartTime&&((i.flags&128)!==0?k0(i,i.actualStartTime,p,[]):(i.flags&1)!==0&&ag(i,i.actualStartTime,p,Pn,l)),Qa(a,i,l,d,p);break;case 3:var se=Do(),Z=Pn;Pn=i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)===0,Qa(a,i,l,d,p),Pn=Z,oe&2048&&(l=null,i.alternate!==null&&(l=i.alternate.memoizedState.cache),d=i.memoizedState.cache,d!==l&&(Ml(d),l!=null&&kf(l))),a.passiveEffectDuration+=mg(se);break;case 12:if(oe&2048){oe=Do(),Qa(a,i,l,d,p),a=i.stateNode,a.passiveEffectDuration+=Lf(oe);try{de(i,uY,i,i.alternate,$s,a.passiveEffectDuration)}catch(fe){jt(i,i.return,fe)}}else Qa(a,i,l,d,p);break;case 31:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,Z=i.memoizedState,se!==null&&Z===null?(Z=i.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&k0(i,i.actualStartTime,p,se)):Pn=!0):Pn=!1,Qa(a,i,l,d,p),Pn=oe;break;case 13:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,Z=i.memoizedState,se===null||se.dehydrated===null||Z!==null&&Z.dehydrated!==null?Pn=!1:(Z=i.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&k0(i,i.actualStartTime,p,se)):Pn=!0),Qa(a,i,l,d,p),Pn=oe;break;case 23:break;case 22:Z=i.stateNode,se=i.alternate,i.memoizedState!==null?Z._visibility&Mo?Qa(a,i,l,d,p):Qf(a,i,l,d,p):Z._visibility&Mo?Qa(a,i,l,d,p):(Z._visibility|=Mo,bu(a,i,l,d,(i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child),p),(i.mode&st)===Ye||Pn||(a=i.actualStartTime,0<=a&&.05<p-a&&rg(i,a,p),0<=qe&&0<=Ke&&.05<Ke-qe&&rg(i,qe,Ke))),oe&2048&&Z1(se,i);break;case 24:Qa(a,i,l,d,p),oe&2048&&J1(i.alternate,i);break;default:Qa(a,i,l,d,p)}(i.mode&st)!==Ye&&((a=!Pn&&i.alternate===null&&i.return!==null&&i.return.alternate!==null)&&(l=i.actualStartTime,0<=l&&.05<p-l&&wi(i,l,p,"Mount")),0<=qe&&0<=Ke&&((un||.05<on)&&Ei(i,qe,Ke,on,nn),a&&.05<Ke-qe&&wi(i,qe,Ke,"Mount"))),Zr(v),Oi(E),nn=T,un=M,ks=I}function bu(a,i,l,d,p,v){for(p=p&&((i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child)),i=i.child;i!==null;){var E=i.sibling;OM(a,i,l,d,p,E!==null?E.actualStartTime:v),i=E}}function OM(a,i,l,d,p,v){var E=Wr(),T=Ai(),M=Di(),I=Ti(),oe=ks;p&&(i.mode&st)!==Ye&&0<i.actualStartTime&&(i.flags&1)!==0&&ag(i,i.actualStartTime,v,Pn,l);var se=i.flags;switch(i.tag){case 0:case 11:case 15:bu(a,i,l,d,p,v),lM(i,Dr);break;case 23:break;case 22:var Z=i.stateNode;i.memoizedState!==null?Z._visibility&Mo?bu(a,i,l,d,p,v):Qf(a,i,l,d,v):(Z._visibility|=Mo,bu(a,i,l,d,p,v)),p&&se&2048&&Z1(i.alternate,i);break;case 24:bu(a,i,l,d,p,v),p&&se&2048&&J1(i.alternate,i);break;default:bu(a,i,l,d,p,v)}(i.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(i,qe,Ke,on,nn),Zr(E),Oi(T),nn=M,un=I,ks=oe}function Qf(a,i,l,d,p){if(i.subtreeFlags&10256||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child))for(var v=i.child;v!==null;){i=v.sibling;var E=a,T=l,M=d,I=i!==null?i.actualStartTime:p,oe=ks;(v.mode&st)!==Ye&&0<v.actualStartTime&&(v.flags&1)!==0&&ag(v,v.actualStartTime,I,Pn,T);var se=v.flags;switch(v.tag){case 22:Qf(E,v,T,M,I),se&2048&&Z1(v.alternate,v);break;case 24:Qf(E,v,T,M,I),se&2048&&J1(v.alternate,v);break;default:Qf(E,v,T,M,I)}ks=oe,v=i}}function yu(a,i,l){if(a.subtreeFlags&$m)for(a=a.child;a!==null;)DM(a,i,l),a=a.sibling}function DM(a,i,l){switch(a.tag){case 26:yu(a,i,l),a.flags&$m&&a.memoizedState!==null&&tQ(l,ei,a.memoizedState,a.memoizedProps);break;case 5:yu(a,i,l);break;case 3:case 4:var d=ei;ei=Qg(a.stateNode.containerInfo),yu(a,i,l),ei=d;break;case 22:a.memoizedState===null&&(d=a.alternate,d!==null&&d.memoizedState!==null?(d=$m,$m=16777216,yu(a,i,l),$m=d):yu(a,i,l));break;default:yu(a,i,l)}}function TM(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function Xf(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var d=i[l],p=Wr();Kn=d,RM(d,a),(d.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&wi(d,qe,Ke,"Unmount"),Zr(p)}TM(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)CM(a),a=a.sibling}function CM(a){var i=Wr(),l=Ai(),d=Di(),p=Ti();switch(a.tag){case 0:case 11:case 15:Xf(a),a.flags&2048&&Y1(a,a.return,Dr|_a);break;case 3:var v=Do();Xf(a),a.stateNode.passiveEffectDuration+=mg(v);break;case 12:v=Do(),Xf(a),a.stateNode.passiveEffectDuration+=Lf(v);break;case 22:v=a.stateNode,a.memoizedState!==null&&v._visibility&Mo&&(a.return===null||a.return.tag!==13)?(v._visibility&=~Mo,Ug(a),(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&wi(a,qe,Ke,"Disconnect")):Xf(a);break;default:Xf(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(a,qe,Ke,on,nn),Zr(i),Oi(l),un=p,nn=d}function Ug(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var d=i[l],p=Wr();Kn=d,RM(d,a),(d.mode&st)!==Ye&&0<=qe&&0<=Ke&&.05<Ke-qe&&wi(d,qe,Ke,"Unmount"),Zr(p)}TM(a)}for(a=a.child;a!==null;)_M(a),a=a.sibling}function _M(a){var i=Wr(),l=Ai(),d=Di(),p=Ti();switch(a.tag){case 0:case 11:case 15:Y1(a,a.return,Dr),Ug(a);break;case 22:var v=a.stateNode;v._visibility&Mo&&(v._visibility&=~Mo,Ug(a));break;default:Ug(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(a,qe,Ke,on,nn),Zr(i),Oi(l),un=p,nn=d}function RM(a,i){for(;Kn!==null;){var l=Kn,d=l,p=i,v=Wr(),E=Ai(),T=Di(),M=Ti();switch(d.tag){case 0:case 11:case 15:Y1(d,p,Dr);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(p=d.memoizedState.cachePool.pool,p!=null&&Ml(p));break;case 24:kf(d.memoizedState.cache)}if((d.mode&st)!==Ye&&0<=qe&&0<=Ke&&(un||.05<on)&&Ei(d,qe,Ke,on,nn),Zr(v),Oi(E),un=M,nn=T,d=l.child,d!==null)d.return=l,Kn=d;else e:for(l=a;Kn!==null;){if(d=Kn,v=d.sibling,E=d.return,vM(d),d===l){Kn=null;break e}if(v!==null){v.return=E,Kn=v;break e}Kn=E}}}function hY(){IX.forEach(function(a){return a()})}function jM(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||pe.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function ea(a){if((Et&Mn)!==Gn&&ct!==0)return ct&-ct;var i=pe.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),sN()):xi()}function PM(){if(Ur===0)if((ct&536870912)===0||pt){var a=sv;sv<<=1,(sv&3932160)===0&&(sv=262144),Ur=a}else Ur=536870912;return a=ia.current,a!==null&&(a.flags|=32),Ur}function cn(a,i,l){if(ad&&console.error("useInsertionEffect must not schedule updates."),qw&&(Kv=!0),(a===Ht&&(Lt===tc||Lt===nc)||a.cancelPendingCommit!==null)&&(Nu(a,0),Ds(a,ct,Ur,!1)),Fa(a,l),(Et&Mn)!==Gn&&a===Ht){if($i)switch(i.tag){case 0:case 11:case 15:a=dt&&B(dt)||"Unknown",oL.has(a)||(oL.add(a),i=B(i)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",i,a,a));break;case 1:iL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),iL=!0)}}else zi&&bo(a,i,l),SY(i),a===Ht&&((Et&Mn)===Gn&&(Gs|=l),sn===Hs&&Ds(a,ct,Ur,!1)),ki(a)}function MM(a,i,l){if((Et&(Mn|sa))!==Gn)throw Error("Should not already be working.");if(ct!==0&&dt!==null){var d=dt,p=Hn();switch(Z5){case Um:case tc:var v=Am;Qt&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Suspended",v,p,wa,void 0,"primary-light")):console.timeStamp("Suspended",v,p,wa,void 0,"primary-light"));break;case nc:v=Am,Qt&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Action",v,p,wa,void 0,"primary-light")):console.timeStamp("Action",v,p,wa,void 0,"primary-light"));break;default:Qt&&(d=p-Am,3>d||console.timeStamp("Blocked",Am,p,wa,void 0,5>d?"primary-light":10>d?"primary":100>d?"primary-dark":"error"))}}v=(l=!l&&(i&127)===0&&(i&a.expiredLanes)===0||Mr(a,i))?gY(a,i):tN(a,i,!0);var E=l;do{if(v===Fo){nd&&!l&&Ds(a,i,0,!1),i=Lt,Am=En(),Z5=i;break}else{if(d=Hn(),p=a.current.alternate,E&&!pY(p)){Ga(i),p=Fn,v=d,!Qt||v<=p||(mn?mn.run(console.timeStamp.bind(console,"Teared Render",p,v,xt,bt,"error")):console.timeStamp("Teared Render",p,v,xt,bt,"error")),Bl(i,d),v=tN(a,i,!1),E=!1;continue}if(v===ec){if(E=i,a.errorRecoveryDisabledLanes&E)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){Ga(i),L0(Fn,d,i,mn),Bl(i,d),i=T;e:{d=a,v=E,E=Hm;var M=d.current.memoizedState.isDehydrated;if(M&&(Nu(d,T).flags|=256),T=tN(d,T,!1),T!==ec){if(kw&&!M){d.errorRecoveryDisabledLanes|=v,Gs|=v,v=Hs;break e}d=Tr,Tr=E,d!==null&&(Tr===null?Tr=d:Tr.push.apply(Tr,d))}v=T}if(E=!1,v!==ec)continue;d=Hn()}}if(v===zm){Ga(i),L0(Fn,d,i,mn),Bl(i,d),Nu(a,0),Ds(a,i,0,!0);break}e:{switch(l=a,v){case Fo:case zm:throw Error("Root did not complete. This is a bug in React.");case Hs:if((i&4194048)!==i)break;case Vv:Ga(i),Mj(Fn,d,i,mn),Bl(i,d),p=i,(p&127)!==0?Ev=d:(p&4194048)!==0&&(Sv=d),Ds(l,i,Ur,!Fs);break e;case ec:Tr=null;break;case Iv:case Kk:break;default:throw Error("Unknown root exit status.")}if(pe.actQueue!==null)nN(l,p,i,Tr,Fm,zv,Ur,Gs,rc,v,null,null,Fn,d);else{if((i&62914560)===i&&(E=Uv+Qk-Hn(),10<E)){if(Ds(l,i,Ur,!Fs),Un(l,0,!0)!==0)break e;ti=i,l.timeoutHandle=hL(kM.bind(null,l,p,Tr,Fm,zv,i,Ur,Gs,rc,Fs,v,"Throttled",Fn,d),E);break e}kM(l,p,Tr,Fm,zv,i,Ur,Gs,rc,Fs,v,null,Fn,d)}}}break}while(!0);ki(a)}function kM(a,i,l,d,p,v,E,T,M,I,oe,se,Z,fe){a.timeoutHandle=lc;var Te=i.subtreeFlags,_e=null;if((Te&8192||(Te&16785408)===16785408)&&(_e={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Eo},DM(i,v,_e),Te=(v&62914560)===v?Uv-Hn():(v&4194048)===v?Yk-Hn():0,Te=nQ(_e,Te),Te!==null)){ti=v,a.cancelPendingCommit=Te(nN.bind(null,a,i,v,l,d,p,E,T,M,oe,_e,_e.waitingForViewTransition?"Waiting for the previous Animation":0<_e.count?0<_e.imgCount?"Suspended on CSS and Images":"Suspended on CSS":_e.imgCount===1?"Suspended on an Image":0<_e.imgCount?"Suspended on Images":null,Z,fe)),Ds(a,v,E,!I);return}nN(a,i,v,l,d,p,E,T,M,oe,_e,se,Z,fe)}function pY(a){for(var i=a;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var p=l[d],v=p.getSnapshot;p=p.value;try{if(!Sr(v(),p))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ds(a,i,l,d){i&=~Lw,i&=~Gs,a.suspendedLanes|=i,a.pingedLanes&=~i,d&&(a.warmLanes|=i),d=a.expirationTimes;for(var p=i;0<p;){var v=31-Nr(p),E=1<<v;d[v]=-1,p&=~E}l!==0&&ba(a,l,i)}function xu(){return(Et&(Mn|sa))===Gn?(Jf(0),!1):!0}function eN(){if(dt!==null){if(Lt===zr)var a=dt.return;else a=dt,ug(),d1(a),Gu=null,Mm=0,a=dt;for(;a!==null;)oM(a.alternate,a),a=a.return;dt=null}}function Bl(a,i){(a&127)!==0&&(Fl=i),(a&4194048)!==0&&($o=i),(a&62914560)!==0&&(X5=i),(a&2080374784)!==0&&(W5=i)}function Nu(a,i){Qt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",bt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",bt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",bt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",bt,"primary-light"));var l=Fn;if(Fn=En(),ct!==0&&0<l){if(Ga(ct),sn===Iv||sn===Hs)Mj(l,Fn,i,mn);else{var d=Fn,p=mn;if(Qt&&!(d<=l)){var v=(i&738197653)===i?"tertiary-dark":"primary-dark",E=(i&536870912)===i?"Prewarm":(i&201326741)===i?"Interrupted Hydration":"Interrupted Render";p?p.run(console.timeStamp.bind(console,E,l,d,xt,bt,v)):console.timeStamp(E,l,d,xt,bt,v)}}Bl(ct,Fn)}if(l=mn,mn=null,(i&127)!==0){mn=wm,p=0<=Fi&&Fi<Fl?Fl:Fi,d=0<=Kl&&Kl<Fl?Fl:Kl,v=0<=d?d:0<=p?p:Fn,0<=Ev?(Ga(2),kj(Ev,v,i,l)):Av&127,l=p;var T=d,M=Em,I=0<Hu,oe=Bs===Nm,se=Bs===wv;if(p=Fn,d=wm,v=hw,E=pw,Qt){if(xt="Blocking",0<l?l>p&&(l=p):l=p,0<T?T>l&&(T=l):T=l,M!==null&&l>T){var Z=I?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,I?"Consecutive":"Event: "+M,T,l,xt,bt,Z)):console.timeStamp(I?"Consecutive":"Event: "+M,T,l,xt,bt,Z)}p>l&&(T=oe?"error":(i&738197653)===i?"tertiary-light":"primary-light",oe=se?"Promise Resolved":oe?"Cascading Update":5<p-l?"Update Blocked":"Update",se=[],E!=null&&se.push(["Component name",E]),v!=null&&se.push(["Method name",v]),l={start:l,end:p,detail:{devtools:{properties:se,track:xt,trackGroup:bt,color:T}}},d?d.run(performance.measure.bind(performance,oe,l)):performance.measure(oe,l))}Fi=-1.1,Bs=0,pw=hw=null,Ev=-1.1,Hu=Kl,Kl=-1.1,Fl=En()}if((i&4194048)!==0&&(mn=Sm,p=0<=Bo&&Bo<$o?$o:Bo,l=0<=Ta&&Ta<$o?$o:Ta,d=0<=zs&&zs<$o?$o:zs,v=0<=d?d:0<=l?l:Fn,0<=Sv?(Ga(256),kj(Sv,v,i,mn)):Av&4194048,se=d,T=Gl,M=0<Us,I=gw===wv,v=Fn,d=Sm,E=Y5,oe=Q5,Qt&&(xt="Transition",0<l?l>v&&(l=v):l=v,0<p?p>l&&(p=l):p=l,0<se?se>p&&(se=p):se=p,p>se&&T!==null&&(Z=M?"secondary-light":"warning",d?d.run(console.timeStamp.bind(console,M?"Consecutive":"Event: "+T,se,p,xt,bt,Z)):console.timeStamp(M?"Consecutive":"Event: "+T,se,p,xt,bt,Z)),l>p&&(d?d.run(console.timeStamp.bind(console,"Action",p,l,xt,bt,"primary-dark")):console.timeStamp("Action",p,l,xt,bt,"primary-dark")),v>l&&(p=I?"Promise Resolved":5<v-l?"Update Blocked":"Update",se=[],oe!=null&&se.push(["Component name",oe]),E!=null&&se.push(["Method name",E]),l={start:l,end:v,detail:{devtools:{properties:se,track:xt,trackGroup:bt,color:"primary-light"}}},d?d.run(performance.measure.bind(performance,p,l)):performance.measure(p,l))),Ta=Bo=-1.1,gw=0,Sv=-1.1,Us=zs,zs=-1.1,$o=En()),(i&62914560)!==0&&(Av&62914560)!==0&&(Ga(4194304),I0(X5,Fn)),(i&2080374784)!==0&&(Av&2080374784)!==0&&(Ga(268435456),I0(W5,Fn)),l=a.timeoutHandle,l!==lc&&(a.timeoutHandle=lc,XX(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),ti=0,eN(),Ht=a,dt=l=So(a.current,null),ct=i,Lt=zr,la=null,Fs=!1,nd=Mr(a,i),kw=!1,sn=Fo,rc=Ur=Lw=Gs=Ks=0,Tr=Hm=null,zv=!1,(i&8)!==0&&(i|=i&32),d=a.entangledLanes,d!==0)for(a=a.entanglements,d&=i;0<d;)p=31-Nr(d),v=1<<p,i|=a[p],d&=~v;return Gi=i,ig(),a=U5(),1e3<a-z5&&(pe.recentlyCreatedOwnerStacks=0,z5=a),Za.discardPendingWarnings(),l}function LM(a,i){We=null,pe.H=Vm,pe.getCurrentStack=null,$i=!1,ra=null,i===Ku||i===Cv?(i=rP(),Lt=Um):i===xw?(i=rP(),Lt=Gk):Lt=i===_w?Mw:i!==null&&typeof i=="object"&&typeof i.then=="function"?qm:$v,la=i;var l=dt;l===null?(sn=zm,kg(a,Xr(i,a.current))):l.mode&st&&Z0(l)}function IM(){var a=ia.current;return a===null?!0:(ct&4194048)===ct?Ca===null:(ct&62914560)===ct||(ct&536870912)!==0?a===Ca:!1}function VM(){var a=pe.H;return pe.H=Vm,a===null?Vm:a}function $M(){var a=pe.A;return pe.A=LX,a}function qg(a){mn===null&&(mn=a._debugTask==null?null:a._debugTask)}function Hg(){sn=Hs,Fs||(ct&4194048)!==ct&&ia.current!==null||(nd=!0),(Ks&134217727)===0&&(Gs&134217727)===0||Ht===null||Ds(Ht,ct,Ur,!1)}function tN(a,i,l){var d=Et;Et|=Mn;var p=VM(),v=$M();if(Ht!==a||ct!==i){if(zi){var E=a.memoizedUpdaters;0<E.size&&(Zf(a,ct),E.clear()),yo(a,i)}Fm=null,Nu(a,i)}i=!1,E=sn;e:do try{if(Lt!==zr&&dt!==null){var T=dt,M=la;switch(Lt){case Mw:eN(),E=Vv;break e;case Um:case tc:case nc:case qm:ia.current===null&&(i=!0);var I=Lt;if(Lt=zr,la=null,wu(a,T,M,I),l&&nd){E=Fo;break e}break;default:I=Lt,Lt=zr,la=null,wu(a,T,M,I)}}BM(),E=sn;break}catch(oe){LM(a,oe)}while(!0);return i&&a.shellSuspendCounter++,ug(),Et=d,pe.H=p,pe.A=v,dt===null&&(Ht=null,ct=0,ig()),E}function BM(){for(;dt!==null;)zM(dt)}function gY(a,i){var l=Et;Et|=Mn;var d=VM(),p=$M();if(Ht!==a||ct!==i){if(zi){var v=a.memoizedUpdaters;0<v.size&&(Zf(a,ct),v.clear()),yo(a,i)}Fm=null,qv=Hn()+Xk,Nu(a,i)}else nd=Mr(a,i);e:do try{if(Lt!==zr&&dt!==null)t:switch(i=dt,v=la,Lt){case $v:Lt=zr,la=null,wu(a,i,v,$v);break;case tc:case nc:if(tP(v)){Lt=zr,la=null,UM(i);break}i=function(){Lt!==tc&&Lt!==nc||Ht!==a||(Lt=Bv),ki(a)},v.then(i,i);break e;case Um:Lt=Bv;break e;case Gk:Lt=Pw;break e;case Bv:tP(v)?(Lt=zr,la=null,UM(i)):(Lt=zr,la=null,wu(a,i,v,Bv));break;case Pw:var E=null;switch(dt.tag){case 26:E=dt.memoizedState;case 5:case 27:var T=dt;if(E?M3(E):T.stateNode.complete){Lt=zr,la=null;var M=T.sibling;if(M!==null)dt=M;else{var I=T.return;I!==null?(dt=I,Fg(I)):dt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Lt=zr,la=null,wu(a,i,v,Pw);break;case qm:Lt=zr,la=null,wu(a,i,v,qm);break;case Mw:eN(),sn=Vv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}pe.actQueue!==null?BM():vY();break}catch(oe){LM(a,oe)}while(!0);return ug(),pe.H=d,pe.A=p,Et=l,dt!==null?Fo:(Ht=null,ct=0,ig(),sn)}function vY(){for(;dt!==null&&!gQ();)zM(dt)}function zM(a){var i=a.alternate;(a.mode&st)!==Ye?(W0(a),i=de(a,F1,i,a,Gi),Z0(a)):i=de(a,F1,i,a,Gi),a.memoizedProps=a.pendingProps,i===null?Fg(a):dt=i}function UM(a){var i=de(a,bY,a);a.memoizedProps=a.pendingProps,i===null?Fg(a):dt=i}function bY(a){var i=a.alternate,l=(a.mode&st)!==Ye;switch(l&&W0(a),a.tag){case 15:case 0:i=JP(i,a,a.pendingProps,a.type,void 0,ct);break;case 11:i=JP(i,a,a.pendingProps,a.type.render,a.ref,ct);break;case 5:d1(a);default:oM(i,a),a=dt=zj(a,Gi),i=F1(i,a,Gi)}return l&&Z0(a),i}function wu(a,i,l,d){ug(),d1(i),Gu=null,Mm=0;var p=i.return;try{if(nY(a,p,i,l,ct)){sn=zm,kg(a,Xr(l,a.current)),dt=null;return}}catch(v){if(p!==null)throw dt=p,v;sn=zm,kg(a,Xr(l,a.current)),dt=null;return}i.flags&32768?(pt||d===$v?a=!0:nd||(ct&536870912)!==0?a=!1:(Fs=a=!0,(d===tc||d===nc||d===Um||d===qm)&&(d=ia.current,d!==null&&d.tag===13&&(d.flags|=16384))),qM(i,a)):Fg(i)}function Fg(a){var i=a;do{if((i.flags&32768)!==0){qM(i,Fs);return}var l=i.alternate;if(a=i.return,W0(i),l=de(i,iY,l,i,Gi),(i.mode&st)!==Ye&&Xj(i),l!==null){dt=l;return}if(i=i.sibling,i!==null){dt=i;return}dt=i=a}while(i!==null);sn===Fo&&(sn=Kk)}function qM(a,i){do{var l=oY(a.alternate,a);if(l!==null){l.flags&=32767,dt=l;return}if((a.mode&st)!==Ye){Xj(a),l=a.actualDuration;for(var d=a.child;d!==null;)l+=d.actualDuration,d=d.sibling;a.actualDuration=l}if(l=a.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(a=a.sibling,a!==null)){dt=a;return}dt=a=l}while(a!==null);sn=Vv,dt=null}function nN(a,i,l,d,p,v,E,T,M,I,oe,se,Z,fe){a.cancelPendingCommit=null;do Wf();while(Tn!==Qs);if(Za.flushLegacyContextWarning(),Za.flushPendingUnsafeLifecycleWarnings(),(Et&(Mn|sa))!==Gn)throw Error("Should not already be working.");if(Ga(l),I===ec?L0(Z,fe,l,mn):d!==null?qG(Z,fe,l,d,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,mn):UG(Z,fe,l,mn),i!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(v=i.lanes|i.childLanes,v|=cw,gs(a,l,v,E,T,M),a===Ht&&(dt=Ht=null,ct=0),rd=i,Xs=a,ti=l,$w=v,zw=p,nL=d,Bw=fe,rL=se,ni=Hv,aL=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,EY(Tu,function(){return Wm=window.event,ni===Hv&&(ni=Vw),YM(),null})):(a.callbackNode=null,a.callbackPriority=0),Vo=null,$s=En(),se!==null&&HG(fe,$s,se,mn),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=pe.T,pe.T=null,p=Pt.p,Pt.p=Na,E=Et,Et|=sa;try{fY(a,i,l)}finally{Et=E,Pt.p=p,pe.T=d}}Tn=Zk,HM(),FM(),KM()}}function HM(){if(Tn===Zk){Tn=Qs;var a=Xs,i=rd,l=ti,d=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||d){d=pe.T,pe.T=null;var p=Pt.p;Pt.p=Na;var v=Et;Et|=sa;try{ed=l,td=a,hg(),NM(i,a),td=ed=null,l=Zw;var E=Rj(a.containerInfo),T=l.focusedElem,M=l.selectionRange;if(E!==T&&T&&T.ownerDocument&&_j(T.ownerDocument.documentElement,T)){if(M!==null&&P0(T)){var I=M.start,oe=M.end;if(oe===void 0&&(oe=I),"selectionStart"in T)T.selectionStart=I,T.selectionEnd=Math.min(oe,T.value.length);else{var se=T.ownerDocument||document,Z=se&&se.defaultView||window;if(Z.getSelection){var fe=Z.getSelection(),Te=T.textContent.length,_e=Math.min(M.start,Te),Gt=M.end===void 0?_e:Math.min(M.end,Te);!fe.extend&&_e>Gt&&(E=Gt,Gt=_e,_e=E);var yt=Cj(T,_e),X=Cj(T,Gt);if(yt&&X&&(fe.rangeCount!==1||fe.anchorNode!==yt.node||fe.anchorOffset!==yt.offset||fe.focusNode!==X.node||fe.focusOffset!==X.offset)){var ee=se.createRange();ee.setStart(yt.node,yt.offset),fe.removeAllRanges(),_e>Gt?(fe.addRange(ee),fe.extend(X.node,X.offset)):(ee.setEnd(X.node,X.offset),fe.addRange(ee))}}}}for(se=[],fe=T;fe=fe.parentNode;)fe.nodeType===1&&se.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<se.length;T++){var re=se[T];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}ob=!!Ww,Zw=Ww=null}finally{Et=v,Pt.p=p,pe.T=d}}a.current=i,Tn=Jk}}function FM(){if(Tn===Jk){Tn=Qs;var a=aL;if(a!==null){$s=En();var i=Io,l=$s;!Qt||l<=i||console.timeStamp(a,i,l,xt,bt,"secondary-light")}a=Xs,i=rd,l=ti;var d=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||d){d=pe.T,pe.T=null;var p=Pt.p;Pt.p=Na;var v=Et;Et|=sa;try{ed=l,td=a,hg(),gM(a,i.alternate,i),td=ed=null}finally{Et=v,Pt.p=p,pe.T=d}}a=Bw,i=rL,Io=En(),a=i===null?a:$s,i=Io,l=ni===Iw,d=mn,Vo!==null?Lj(a,i,Vo,!1,d):!Qt||i<=a||(d?d.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",a,i,xt,bt,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",a,i,xt,bt,l?"error":"secondary-dark")),Tn=eL}}function KM(){if(Tn===tL||Tn===eL){if(Tn===tL){var a=Io;Io=En();var i=Io,l=ni===Iw;!Qt||i<=a||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",a,i,xt,bt,l?" error":"secondary-light"),ni!==Iw&&(ni=Wk)}Tn=Qs,vQ(),a=Xs;var d=rd;i=ti,l=nL;var p=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;p?Tn=Fv:(Tn=Qs,rd=Xs=null,GM(a,a.pendingLanes),ac=0,Gm=null);var v=a.pendingLanes;if(v===0&&(Ys=null),p||ZM(a),v=xo(i),d=d.stateNode,sr&&typeof sr.onCommitFiberRoot=="function")try{var E=(d.current.flags&128)===128;switch(v){case Na:var T=zN;break;case Ui:T=UN;break;case jo:T=Tu;break;case cv:T=qN;break;default:T=Tu}sr.onCommitFiberRoot(Cu,d,T,E)}catch(se){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",se))}if(zi&&a.memoizedUpdaters.clear(),hY(),l!==null){E=pe.T,T=Pt.p,Pt.p=Na,pe.T=null;try{var M=a.onRecoverableError;for(d=0;d<l.length;d++){var I=l[d],oe=yY(I.stack);de(I.source,M,I.value,oe)}}finally{pe.T=E,Pt.p=T}}(ti&3)!==0&&Wf(),ki(a),v=a.pendingLanes,(i&261930)!==0&&(v&42)!==0?(Dv=!0,a===Uw?Km++:(Km=0,Uw=a)):Km=0,p||Bl(i,Io),Jf(0)}}function yY(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function GM(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,kf(i)))}function Wf(){return HM(),FM(),KM(),YM()}function YM(){if(Tn!==Fv)return!1;var a=Xs,i=$w;$w=0;var l=xo(ti),d=jo>l?jo:l;l=pe.T;var p=Pt.p;try{Pt.p=d,pe.T=null;var v=zw;zw=null,d=Xs;var E=ti;if(Tn=Qs,rd=Xs=null,ti=0,(Et&(Mn|sa))!==Gn)throw Error("Cannot flush passive effects while already rendering.");Ga(E),qw=!0,Kv=!1;var T=0;if(Vo=null,T=Hn(),ni===Wk)I0(Io,T,CX);else{var M=Io,I=T,oe=ni===Vw;!Qt||I<=M||(mn?mn.run(console.timeStamp.bind(console,oe?"Waiting for Paint":"Waiting",M,I,xt,bt,"secondary-light")):console.timeStamp(oe?"Waiting for Paint":"Waiting",M,I,xt,bt,"secondary-light"))}M=Et,Et|=sa;var se=d.current;hg(),CM(se);var Z=d.current;se=Bw,hg(),AM(d,Z,E,v,se),ZM(d),Et=M;var fe=Hn();if(Z=T,se=mn,Vo!==null?Lj(Z,fe,Vo,!0,se):!Qt||fe<=Z||(se?se.run(console.timeStamp.bind(console,"Remaining Effects",Z,fe,xt,bt,"secondary-dark")):console.timeStamp("Remaining Effects",Z,fe,xt,bt,"secondary-dark")),Bl(E,fe),Jf(0,!1),Kv?d===Gm?ac++:(ac=0,Gm=d):ac=0,Kv=qw=!1,sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(Cu,d)}catch(_e){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",_e))}var Te=d.current.stateNode;return Te.effectDuration=0,Te.passiveEffectDuration=0,!0}finally{Pt.p=p,pe.T=l,GM(a,i)}}function QM(a,i,l){i=Xr(l,i),Wj(i),i=M1(a.stateNode,i,2),a=Es(a,i,2),a!==null&&(Fa(a,2),ki(a))}function jt(a,i,l){if(ad=!1,a.tag===3)QM(a,a,l);else{for(;i!==null;){if(i.tag===3){QM(i,a,l);return}if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ys===null||!Ys.has(d))){a=Xr(l,a),Wj(a),l=k1(2),d=Es(i,l,2),d!==null&&(L1(l,d,i,a),Fa(d,2),ki(d));return}}i=i.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,l)}}function rN(a,i,l){var d=a.pingCache;if(d===null){d=a.pingCache=new VX;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(l)||(kw=!0,p.add(l),d=xY.bind(null,a,i,l),zi&&Zf(a,l),i.then(d,d))}function xY(a,i,l){var d=a.pingCache;d!==null&&d.delete(i),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,(l&127)!==0?0>Fi&&(Fl=Fi=En(),wm=Nv("Promise Resolved"),Bs=wv):(l&4194048)!==0&&0>Ta&&($o=Ta=En(),Sm=Nv("Promise Resolved"),gw=wv),jM()&&pe.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ht===a&&(ct&l)===l&&(sn===Hs||sn===Iv&&(ct&62914560)===ct&&Hn()-Uv<Qk?(Et&Mn)===Gn&&Nu(a,0):Lw|=l,rc===ct&&(rc=0)),ki(a)}function XM(a,i){i===0&&(i=Yr()),a=or(a,i),a!==null&&(Fa(a,i),ki(a))}function NY(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),XM(a,l)}function wY(a,i){var l=0;switch(a.tag){case 31:case 13:var d=a.stateNode,p=a.memoizedState;p!==null&&(l=p.retryLane);break;case 19:d=a.stateNode;break;case 22:d=a.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}d!==null&&d.delete(i),XM(a,l)}function aN(a,i,l){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var d=a,p=i,v=p.type===rv;v=l||v,p.tag!==22?p.flags&67108864?v&&de(p,WM,d,p):aN(d,p,v):p.memoizedState===null&&(v&&p.flags&8192?de(p,WM,d,p):p.subtreeFlags&67108864&&de(p,aN,d,p,v)),i=i.sibling}}function WM(a,i){je(!0);try{EM(i),_M(i),SM(a,i.alternate,i,!1),OM(a,i,0,null,!1,0)}finally{je(!1)}}function ZM(a){var i=!0;a.current.mode&(lr|Wa)||(i=!1),aN(a,a.current,i)}function JM(a){if((Et&Mn)===Gn){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=B(a)||"ReactComponent",Gv!==null){if(Gv.has(i))return;Gv.add(i)}else Gv=new Set([i]);de(a,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Zf(a,i){zi&&a.memoizedUpdaters.forEach(function(l){bo(a,l,i)})}function EY(a,i){var l=pe.actQueue;return l!==null?(l.push(i),zX):BN(a,i)}function SY(a){jM()&&pe.actQueue===null&&de(a,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,B(a))})}function ki(a){a!==id&&a.next===null&&(id===null?Yv=id=a:id=id.next=a),Qv=!0,pe.actQueue!==null?Fw||(Fw=!0,r3()):Hw||(Hw=!0,r3())}function Jf(a,i){if(!Kw&&Qv){Kw=!0;do for(var l=!1,d=Yv;d!==null;){if(a!==0){var p=d.pendingLanes;if(p===0)var v=0;else{var E=d.suspendedLanes,T=d.pingedLanes;v=(1<<31-Nr(42|a)+1)-1,v&=p&~(E&~T),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,n3(d,v))}else v=ct,v=Un(d,d===Ht?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==lc),(v&3)===0||Mr(d,v)||(l=!0,n3(d,v));d=d.next}while(l);Kw=!1}}function AY(){Wm=window.event,iN()}function iN(){Qv=Fw=Hw=!1;var a=0;Ws!==0&&jY()&&(a=Ws);for(var i=Hn(),l=null,d=Yv;d!==null;){var p=d.next,v=e3(d,i);v===0?(d.next=null,l===null?Yv=p:l.next=p,p===null&&(id=l)):(l=d,(a!==0||(v&3)!==0)&&(Qv=!0)),d=p}Tn!==Qs&&Tn!==Fv||Jf(a),Ws!==0&&(Ws=0)}function e3(a,i){for(var l=a.suspendedLanes,d=a.pingedLanes,p=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var E=31-Nr(v),T=1<<E,M=p[E];M===-1?((T&l)===0||(T&d)!==0)&&(p[E]=vi(T,i)):M<=i&&(a.expiredLanes|=T),v&=~T}if(i=Ht,l=ct,l=Un(a,a===i?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==lc),d=a.callbackNode,l===0||a===i&&(Lt===tc||Lt===nc)||a.cancelPendingCommit!==null)return d!==null&&oN(d),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||Mr(a,l)){if(i=l&-l,i!==a.callbackPriority||pe.actQueue!==null&&d!==Gw)oN(d);else return i;switch(xo(l)){case Na:case Ui:l=UN;break;case jo:l=Tu;break;case cv:l=qN;break;default:l=Tu}return d=t3.bind(null,a),pe.actQueue!==null?(pe.actQueue.push(d),l=Gw):l=BN(l,d),a.callbackPriority=i,a.callbackNode=l,i}return d!==null&&oN(d),a.callbackPriority=2,a.callbackNode=null,2}function t3(a,i){if(Dv=Ov=!1,Wm=window.event,Tn!==Qs&&Tn!==Fv)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(ni===Hv&&(ni=Vw),Wf()&&a.callbackNode!==l)return null;var d=ct;return d=Un(a,a===Ht?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==lc),d===0?null:(MM(a,d,i),e3(a,Hn()),a.callbackNode!=null&&a.callbackNode===l?t3.bind(null,a):null)}function n3(a,i){if(Wf())return null;Ov=Dv,Dv=!1,MM(a,i,!0)}function oN(a){a!==Gw&&a!==null&&pQ(a)}function r3(){pe.actQueue!==null&&pe.actQueue.push(function(){return iN(),null}),WX(function(){(Et&(Mn|sa))!==Gn?BN(zN,AY):iN()})}function sN(){if(Ws===0){var a=Yl;a===0&&(a=ov,ov<<=1,(ov&261888)===0&&(ov=256)),Ws=a}return Ws}function a3(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:(Ve(a,"action"),Rf(""+a))}function i3(a,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,a.id&&l.setAttribute("form",a.id),i.parentNode.insertBefore(l,i),a=new FormData(a),l.parentNode.removeChild(l),a}function OY(a,i,l,d,p){if(i==="submit"&&l&&l.stateNode===p){var v=a3((p[wr]||null).action),E=d.submitter;E&&(i=(i=E[wr]||null)?a3(i.formAction):E.getAttribute("formAction"),i!==null&&(v=i,E=null));var T=new hv("action","action",null,d,p);a.push({event:T,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ws!==0){var M=E?i3(p,E):new FormData(p),I={pending:!0,data:M,method:p.method,action:v};Object.freeze(I),D1(l,I,null,M)}}else typeof v=="function"&&(T.preventDefault(),M=E?i3(p,E):new FormData(p),I={pending:!0,data:M,method:p.method,action:v},Object.freeze(I),D1(l,I,v,M))},currentTarget:p}]})}}function Kg(a,i,l){a.currentTarget=l;try{i(a)}catch(d){iw(d)}a.currentTarget=null}function o3(a,i){i=(i&4)!==0;for(var l=0;l<a.length;l++){var d=a[l];e:{var p=void 0,v=d.event;if(d=d.listeners,i)for(var E=d.length-1;0<=E;E--){var T=d[E],M=T.instance,I=T.currentTarget;if(T=T.listener,M!==p&&v.isPropagationStopped())break e;M!==null?de(M,Kg,v,T,I):Kg(v,T,I),p=M}else for(E=0;E<d.length;E++){if(T=d[E],M=T.instance,I=T.currentTarget,T=T.listener,M!==p&&v.isPropagationStopped())break e;M!==null?de(M,Kg,v,T,I):Kg(v,T,I),p=M}}}}function vt(a,i){Yw.has(a)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',a);var l=i[HN];l===void 0&&(l=i[HN]=new Set);var d=a+"__bubble";l.has(d)||(s3(i,a,2,!1),l.add(d))}function lN(a,i,l){Yw.has(a)&&!i&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',a);var d=0;i&&(d|=4),s3(l,a,d,i)}function cN(a){if(!a[Xv]){a[Xv]=!0,r5.forEach(function(l){l!=="selectionchange"&&(Yw.has(l)||lN(l,!1,a),lN(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Xv]||(i[Xv]=!0,lN("selectionchange",!1,i))}}function s3(a,i,l,d){switch(B3(i)){case Na:var p=oQ;break;case Ui:p=sQ;break;default:p=AN}l=p.bind(null,i,l,a),p=void 0,!QN||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?a.addEventListener(i,l,{capture:!0,passive:p}):a.addEventListener(i,l,!0):p!==void 0?a.addEventListener(i,l,{passive:p}):a.addEventListener(i,l,!1)}function uN(a,i,l,d,p){var v=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var T=d.stateNode.containerInfo;if(T===p)break;if(E===4)for(E=d.return;E!==null;){var M=E.tag;if((M===3||M===4)&&E.stateNode.containerInfo===p)return;E=E.return}for(;T!==null;){if(E=Ee(T),E===null)return;if(M=E.tag,M===5||M===6||M===26||M===27){d=v=E;continue e}T=T.parentNode}}d=d.return}bj(function(){var I=v,oe=R0(l),se=[];e:{var Z=B5.get(a);if(Z!==void 0){var fe=hv,Te=a;switch(a){case"keypress":if(eg(l)===0)break e;case"keydown":case"keyup":fe=nX;break;case"focusin":Te="focus",fe=JN;break;case"focusout":Te="blur",fe=JN;break;case"beforeblur":case"afterblur":fe=JN;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=O5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=HQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=iX;break;case L5:case I5:case V5:fe=GQ;break;case $5:fe=sX;break;case"scroll":case"scrollend":fe=UQ;break;case"wheel":fe=cX;break;case"copy":case"cut":case"paste":fe=QQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=T5;break;case"toggle":case"beforetoggle":fe=dX}var _e=(i&4)!==0,Gt=!_e&&(a==="scroll"||a==="scrollend"),yt=_e?Z!==null?Z+"Capture":null:Z;_e=[];for(var X=I,ee;X!==null;){var re=X;if(ee=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||ee===null||yt===null||(re=jf(X,yt),re!=null&&_e.push(em(X,re,ee))),Gt)break;X=X.return}0<_e.length&&(Z=new fe(Z,Te,null,l,oe),se.push({event:Z,listeners:_e}))}}if((i&7)===0){e:{if(Z=a==="mouseover"||a==="pointerover",fe=a==="mouseout"||a==="pointerout",Z&&l!==dm&&(Te=l.relatedTarget||l.fromElement)&&(Ee(Te)||Te[Ps]))break e;if((fe||Z)&&(Z=oe.window===oe?oe:(Z=oe.ownerDocument)?Z.defaultView||Z.parentWindow:window,fe?(Te=l.relatedTarget||l.toElement,fe=I,Te=Te?Ee(Te):null,Te!==null&&(Gt=A(Te),_e=Te.tag,Te!==Gt||_e!==5&&_e!==27&&_e!==6)&&(Te=null)):(fe=null,Te=I),fe!==Te)){if(_e=O5,re="onMouseLeave",yt="onMouseEnter",X="mouse",(a==="pointerout"||a==="pointerover")&&(_e=T5,re="onPointerLeave",yt="onPointerEnter",X="pointer"),Gt=fe==null?Z:Me(fe),ee=Te==null?Z:Me(Te),Z=new _e(re,X+"leave",fe,l,oe),Z.target=Gt,Z.relatedTarget=ee,re=null,Ee(oe)===I&&(_e=new _e(yt,X+"enter",Te,l,oe),_e.target=ee,_e.relatedTarget=Gt,re=_e),Gt=re,fe&&Te)t:{for(_e=DY,yt=fe,X=Te,ee=0,re=yt;re;re=_e(re))ee++;re=0;for(var ve=X;ve;ve=_e(ve))re++;for(;0<ee-re;)yt=_e(yt),ee--;for(;0<re-ee;)X=_e(X),re--;for(;ee--;){if(yt===X||X!==null&&yt===X.alternate){_e=yt;break t}yt=_e(yt),X=_e(X)}_e=null}else _e=null;fe!==null&&l3(se,Z,fe,_e,!1),Te!==null&&Gt!==null&&l3(se,Gt,Te,_e,!0)}}e:{if(Z=I?Me(I):window,fe=Z.nodeName&&Z.nodeName.toLowerCase(),fe==="select"||fe==="input"&&Z.type==="file")var Ce=Aj;else if(Ej(Z))if(M5)Ce=$G;else{Ce=IG;var Ze=LG}else fe=Z.nodeName,!fe||fe.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?I&&_f(I.elementType)&&(Ce=Aj):Ce=VG;if(Ce&&(Ce=Ce(a,I))){Sj(se,Ce,l,oe);break e}Ze&&Ze(a,Z,I),a==="focusout"&&I&&Z.type==="number"&&I.memoizedProps.value!=null&&A0(Z,"number",Z.value)}switch(Ze=I?Me(I):window,a){case"focusin":(Ej(Ze)||Ze.contentEditable==="true")&&(Lu=Ze,tw=I,bm=null);break;case"focusout":bm=tw=Lu=null;break;case"mousedown":nw=!0;break;case"contextmenu":case"mouseup":case"dragend":nw=!1,jj(se,l,oe);break;case"selectionchange":if(pX)break;case"keydown":case"keyup":jj(se,l,oe)}var Ue;if(ew)e:{switch(a){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else ku?Nj(a,l)&&($e="onCompositionEnd"):a==="keydown"&&l.keyCode===C5&&($e="onCompositionStart");$e&&(_5&&l.locale!=="ko"&&(ku||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&ku&&(Ue=yj()):(Ms=oe,XN="value"in Ms?Ms.value:Ms.textContent,ku=!0)),Ze=Gg(I,$e),0<Ze.length&&($e=new D5($e,a,null,l,oe),se.push({event:$e,listeners:Ze}),Ue?$e.data=Ue:(Ue=wj(l),Ue!==null&&($e.data=Ue)))),(Ue=mX?jG(a,l):PG(a,l))&&($e=Gg(I,"onBeforeInput"),0<$e.length&&(Ze=new WQ("onBeforeInput","beforeinput",null,l,oe),se.push({event:Ze,listeners:$e}),Ze.data=Ue)),OY(se,a,I,l,oe)}o3(se,i)})}function em(a,i,l){return{instance:a,listener:i,currentTarget:l}}function Gg(a,i){for(var l=i+"Capture",d=[];a!==null;){var p=a,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=jf(a,l),p!=null&&d.unshift(em(a,p,v)),p=jf(a,i),p!=null&&d.push(em(a,p,v))),a.tag===3)return d;a=a.return}return[]}function DY(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function l3(a,i,l,d,p){for(var v=i._reactName,E=[];l!==null&&l!==d;){var T=l,M=T.alternate,I=T.stateNode;if(T=T.tag,M!==null&&M===d)break;T!==5&&T!==26&&T!==27||I===null||(M=I,p?(I=jf(l,v),I!=null&&E.unshift(em(l,I,M))):p||(I=jf(l,v),I!=null&&E.push(em(l,I,M)))),l=l.return}E.length!==0&&a.push({event:i,listeners:E})}function dN(a,i){TG(a,i),a!=="input"&&a!=="textarea"&&a!=="select"||i==null||i.value!==null||S5||(S5=!0,a==="select"&&i.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",a):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",a));var l={registrationNameDependencies:zl,possibleRegistrationNames:FN};_f(a)||typeof i.is=="string"||_G(a,i,l),i.contentEditable&&!i.suppressContentEditableWarning&&i.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qn(a,i,l,d){i!==l&&(l=Ts(l),Ts(i)!==l&&(d[a]=i))}function TY(a,i,l){i.forEach(function(d){l[d3(d)]=d==="style"?mN(a):a.getAttribute(d)})}function Li(a,i){i===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",a,a,a):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",a,typeof i)}function c3(a,i){return a=a.namespaceURI===dv||a.namespaceURI===Ru?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=i,a.innerHTML}function Ts(a){return Ne(a)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",ze(a)),ut(a)),(typeof a=="string"?a:""+a).replace(UX,`
`).replace(qX,"")}function u3(a,i){return i=Ts(i),Ts(a)===i}function Ut(a,i,l,d,p,v){switch(l){case"children":typeof d=="string"?(Jp(d,i,!1),i==="body"||i==="textarea"&&d===""||Cf(a,d)):(typeof d=="number"||typeof d=="bigint")&&(Jp(""+d,i,!1),i!=="body"&&Cf(a,""+d));break;case"className":No(a,"class",d);break;case"tabIndex":No(a,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":No(a,l,d);break;case"style":pj(a,d,v);break;case"data":if(i!=="object"){No(a,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||l!=="href")){console.error(l==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',l,l),a.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(l);break}Ve(d,l),d=Rf(""+d),a.setAttribute(l,d);break;case"action":case"formAction":if(d!=null&&(i==="form"?l==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof d=="function"&&(p.encType==null&&p.method==null||Jv||(Jv=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),p.target==null||Zv||(Zv=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):i==="input"||i==="button"?l==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):i!=="input"||p.type==="submit"||p.type==="image"||Wv?i!=="button"||p.type==null||p.type==="submit"||Wv?typeof d=="function"&&(p.name==null||cL||(cL=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),p.formEncType==null&&p.formMethod==null||Jv||(Jv=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),p.formTarget==null||Zv||(Zv=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Wv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Wv=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(l==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof d=="function"){a.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(l==="formAction"?(i!=="input"&&Ut(a,i,"name",p.name,p,null),Ut(a,i,"formEncType",p.formEncType,p,null),Ut(a,i,"formMethod",p.formMethod,p,null),Ut(a,i,"formTarget",p.formTarget,p,null)):(Ut(a,i,"encType",p.encType,p,null),Ut(a,i,"method",p.method,p,null),Ut(a,i,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(l);break}Ve(d,l),d=Rf(""+d),a.setAttribute(l,d);break;case"onClick":d!=null&&(typeof d!="function"&&Li(l,d),a.onclick=Eo);break;case"onScroll":d!=null&&(typeof d!="function"&&Li(l,d),vt("scroll",a));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&Li(l,d),vt("scrollend",a));break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=d.__html,l!=null){if(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=l}}break;case"multiple":a.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":a.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){a.removeAttribute("xlink:href");break}Ve(d,l),l=Rf(""+d),a.setAttributeNS(ic,"xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?(Ve(d,l),a.setAttribute(l,""+d)):a.removeAttribute(l);break;case"inert":d!==""||eb[l]||(eb[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?a.setAttribute(l,""):a.removeAttribute(l);break;case"capture":case"download":d===!0?a.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?(Ve(d,l),a.setAttribute(l,d)):a.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?(Ve(d,l),a.setAttribute(l,d)):a.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?a.removeAttribute(l):(Ve(d,l),a.setAttribute(l,d));break;case"popover":vt("beforetoggle",a),vt("toggle",a),Rn(a,"popover",d);break;case"xlinkActuate":gn(a,ic,"xlink:actuate",d);break;case"xlinkArcrole":gn(a,ic,"xlink:arcrole",d);break;case"xlinkRole":gn(a,ic,"xlink:role",d);break;case"xlinkShow":gn(a,ic,"xlink:show",d);break;case"xlinkTitle":gn(a,ic,"xlink:title",d);break;case"xlinkType":gn(a,ic,"xlink:type",d);break;case"xmlBase":gn(a,Qw,"xml:base",d);break;case"xmlLang":gn(a,Qw,"xml:lang",d);break;case"xmlSpace":gn(a,Qw,"xml:space",d);break;case"is":v!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Rn(a,"is",d);break;case"innerText":case"textContent":break;case"popoverTarget":uL||d==null||typeof d!="object"||(uL=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",d));default:!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N"?(l=gj(l),Rn(a,l,d)):zl.hasOwnProperty(l)&&d!=null&&typeof d!="function"&&Li(l,d)}}function fN(a,i,l,d,p,v){switch(l){case"style":pj(a,d,v);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(l=d.__html,l!=null){if(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=l}}break;case"children":typeof d=="string"?Cf(a,d):(typeof d=="number"||typeof d=="bigint")&&Cf(a,""+d);break;case"onScroll":d!=null&&(typeof d!="function"&&Li(l,d),vt("scroll",a));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&Li(l,d),vt("scrollend",a));break;case"onClick":d!=null&&(typeof d!="function"&&Li(l,d),a.onclick=Eo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(zl.hasOwnProperty(l))d!=null&&typeof d!="function"&&Li(l,d);else e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),i=l.slice(2,p?l.length-7:void 0),v=a[wr]||null,v=v!=null?v[l]:null,typeof v=="function"&&a.removeEventListener(i,v,p),typeof d=="function")){typeof v!="function"&&v!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(i,d,p);break e}l in a?a[l]=d:d===!0?a.setAttribute(l,""):Rn(a,l,d)}}}function er(a,i,l){switch(dN(i,l),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",a),vt("load",a);var d=!1,p=!1,v;for(v in l)if(l.hasOwnProperty(v)){var E=l[v];if(E!=null)switch(v){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ut(a,i,v,E,l,null)}}p&&Ut(a,i,"srcSet",l.srcSet,l,null),d&&Ut(a,i,"src",l.src,l,null);return;case"input":zt("input",l),vt("invalid",a);var T=v=E=p=null,M=null,I=null;for(d in l)if(l.hasOwnProperty(d)){var oe=l[d];if(oe!=null)switch(d){case"name":p=oe;break;case"type":E=oe;break;case"checked":M=oe;break;case"defaultChecked":I=oe;break;case"value":v=oe;break;case"defaultValue":T=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ut(a,i,d,oe,l,null)}}JR(a,l),ej(a,v,T,M,I,E,p,!1);return;case"select":zt("select",l),vt("invalid",a),d=E=v=null;for(p in l)if(l.hasOwnProperty(p)&&(T=l[p],T!=null))switch(p){case"value":v=T;break;case"defaultValue":E=T;break;case"multiple":d=T;default:Ut(a,i,p,T,l,null)}rj(a,l),i=v,l=E,a.multiple=!!d,i!=null?lu(a,!!d,i,!1):l!=null&&lu(a,!!d,l,!0);return;case"textarea":zt("textarea",l),vt("invalid",a),v=p=d=null;for(E in l)if(l.hasOwnProperty(E)&&(T=l[E],T!=null))switch(E){case"value":d=T;break;case"defaultValue":p=T;break;case"children":v=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Ut(a,i,E,T,l,null)}aj(a,l),oj(a,d,p,v);return;case"option":tj(a,l);for(M in l)if(l.hasOwnProperty(M)&&(d=l[M],d!=null))switch(M){case"selected":a.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Ut(a,i,M,d,l,null)}return;case"dialog":vt("beforetoggle",a),vt("toggle",a),vt("cancel",a),vt("close",a);break;case"iframe":case"object":vt("load",a);break;case"video":case"audio":for(d=0;d<Ym.length;d++)vt(Ym[d],a);break;case"image":vt("error",a),vt("load",a);break;case"details":vt("toggle",a);break;case"embed":case"source":case"link":vt("error",a),vt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(I in l)if(l.hasOwnProperty(I)&&(d=l[I],d!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ut(a,i,I,d,l,null)}return;default:if(_f(i)){for(oe in l)l.hasOwnProperty(oe)&&(d=l[oe],d!==void 0&&fN(a,i,oe,d,l,void 0));return}}for(T in l)l.hasOwnProperty(T)&&(d=l[T],d!=null&&Ut(a,i,T,d,l,null))}function CY(a,i,l,d){switch(dN(i,d),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,E=null,T=null,M=null,I=null,oe=null;for(fe in l){var se=l[fe];if(l.hasOwnProperty(fe)&&se!=null)switch(fe){case"checked":break;case"value":break;case"defaultValue":M=se;default:d.hasOwnProperty(fe)||Ut(a,i,fe,null,d,se)}}for(var Z in d){var fe=d[Z];if(se=l[Z],d.hasOwnProperty(Z)&&(fe!=null||se!=null))switch(Z){case"type":v=fe;break;case"name":p=fe;break;case"checked":I=fe;break;case"defaultChecked":oe=fe;break;case"value":E=fe;break;case"defaultValue":T=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:fe!==se&&Ut(a,i,Z,fe,d,se)}}i=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,d=d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null,i||!d||lL||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),lL=!0),!i||d||sL||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),sL=!0),S0(a,E,T,M,I,oe,v,p);return;case"select":fe=E=T=Z=null;for(v in l)if(M=l[v],l.hasOwnProperty(v)&&M!=null)switch(v){case"value":break;case"multiple":fe=M;default:d.hasOwnProperty(v)||Ut(a,i,v,null,d,M)}for(p in d)if(v=d[p],M=l[p],d.hasOwnProperty(p)&&(v!=null||M!=null))switch(p){case"value":Z=v;break;case"defaultValue":T=v;break;case"multiple":E=v;default:v!==M&&Ut(a,i,p,v,d,M)}d=T,i=E,l=fe,Z!=null?lu(a,!!i,Z,!1):!!l!=!!i&&(d!=null?lu(a,!!i,d,!0):lu(a,!!i,i?[]:"",!1));return;case"textarea":fe=Z=null;for(T in l)if(p=l[T],l.hasOwnProperty(T)&&p!=null&&!d.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ut(a,i,T,null,d,p)}for(E in d)if(p=d[E],v=l[E],d.hasOwnProperty(E)&&(p!=null||v!=null))switch(E){case"value":Z=p;break;case"defaultValue":fe=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:p!==v&&Ut(a,i,E,p,d,v)}ij(a,Z,fe);return;case"option":for(var Te in l)if(Z=l[Te],l.hasOwnProperty(Te)&&Z!=null&&!d.hasOwnProperty(Te))switch(Te){case"selected":a.selected=!1;break;default:Ut(a,i,Te,null,d,Z)}for(M in d)if(Z=d[M],fe=l[M],d.hasOwnProperty(M)&&Z!==fe&&(Z!=null||fe!=null))switch(M){case"selected":a.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Ut(a,i,M,Z,d,fe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in l)Z=l[_e],l.hasOwnProperty(_e)&&Z!=null&&!d.hasOwnProperty(_e)&&Ut(a,i,_e,null,d,Z);for(I in d)if(Z=d[I],fe=l[I],d.hasOwnProperty(I)&&Z!==fe&&(Z!=null||fe!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ut(a,i,I,Z,d,fe)}return;default:if(_f(i)){for(var Gt in l)Z=l[Gt],l.hasOwnProperty(Gt)&&Z!==void 0&&!d.hasOwnProperty(Gt)&&fN(a,i,Gt,void 0,d,Z);for(oe in d)Z=d[oe],fe=l[oe],!d.hasOwnProperty(oe)||Z===fe||Z===void 0&&fe===void 0||fN(a,i,oe,Z,d,fe);return}}for(var yt in l)Z=l[yt],l.hasOwnProperty(yt)&&Z!=null&&!d.hasOwnProperty(yt)&&Ut(a,i,yt,null,d,Z);for(se in d)Z=d[se],fe=l[se],!d.hasOwnProperty(se)||Z===fe||Z==null&&fe==null||Ut(a,i,se,Z,d,fe)}function d3(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function mN(a){var i={};a=a.style;for(var l=0;l<a.length;l++){var d=a[l];i[d]=a.getPropertyValue(d)}return i}function f3(a,i,l){if(i!=null&&typeof i!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var d,p=d="",v;for(v in i)if(i.hasOwnProperty(v)){var E=i[v];E!=null&&typeof E!="boolean"&&E!==""&&(v.indexOf("--")===0?(tt(E,v),d+=p+v+":"+(""+E).trim()):typeof E!="number"||E===0||w5.has(v)?(tt(E,v),d+=p+v.replace(v5,"-$1").toLowerCase().replace(b5,"-ms-")+":"+(""+E).trim()):d+=p+v.replace(v5,"-$1").toLowerCase().replace(b5,"-ms-")+":"+E+"px",p=";")}d=d||null,i=a.getAttribute("style"),i!==d&&(d=Ts(d),Ts(i)!==d&&(l.style=mN(a)))}}function xa(a,i,l,d,p,v){if(p.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(Ve(d,i),a===""+d)return}qn(i,a,d,v)}function m3(a,i,l,d,p,v){if(p.delete(l),a=a.getAttribute(l),a===null){switch(typeof d){case"function":case"symbol":return}if(!d)return}else switch(typeof d){case"function":case"symbol":break;default:if(d)return}qn(i,a,d,v)}function hN(a,i,l,d,p,v){if(p.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":return}else if(d!=null)switch(typeof d){case"function":case"symbol":break;default:if(Ve(d,l),a===""+d)return}qn(i,a,d,v)}function h3(a,i,l,d,p,v){if(p.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(d))return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(!isNaN(d)&&(Ve(d,i),a===""+d))return}qn(i,a,d,v)}function pN(a,i,l,d,p,v){if(p.delete(l),a=a.getAttribute(l),a===null)switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(Ve(d,i),l=Rf(""+d),a===l)return}qn(i,a,d,v)}function p3(a,i,l,d){for(var p={},v=new Set,E=a.attributes,T=0;T<E.length;T++)switch(E[T].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:v.add(E[T].name)}if(_f(i)){for(var M in l)if(l.hasOwnProperty(M)){var I=l[M];if(I!=null){if(zl.hasOwnProperty(M))typeof I!="function"&&Li(M,I);else if(l.suppressHydrationWarning!==!0)switch(M){case"children":typeof I!="string"&&typeof I!="number"||qn("children",a.textContent,I,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,I=I?I.__html:void 0,I!=null&&(I=c3(a,I),qn(M,E,I,p));continue;case"style":v.delete(M),f3(a,I,p);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":v.delete(M.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",M);continue;case"className":v.delete("class"),E=dn(a,"class",I),qn("className",E,I,p);continue;default:d.context===Ko&&i!=="svg"&&i!=="math"?v.delete(M.toLowerCase()):v.delete(M),E=dn(a,M,I),qn(M,E,I,p)}}}}else for(I in l)if(l.hasOwnProperty(I)&&(M=l[I],M!=null)){if(zl.hasOwnProperty(I))typeof M!="function"&&Li(I,M);else if(l.suppressHydrationWarning!==!0)switch(I){case"children":typeof M!="string"&&typeof M!="number"||qn("children",a.textContent,M,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,M=M?M.__html:void 0,M!=null&&(M=c3(a,M),E!==M&&(p[I]={__html:E}));continue;case"className":xa(a,I,"class",M,v,p);continue;case"tabIndex":xa(a,I,"tabindex",M,v,p);continue;case"style":v.delete(I),f3(a,M,p);continue;case"multiple":v.delete(I),qn(I,a.multiple,M,p);continue;case"muted":v.delete(I),qn(I,a.muted,M,p);continue;case"autoFocus":v.delete("autofocus"),qn(I,a.autofocus,M,p);continue;case"data":if(i!=="object"){v.delete(I),E=a.getAttribute("data"),qn(I,E,M,p);continue}case"src":case"href":if(!(M!==""||i==="a"&&I==="href"||i==="object"&&I==="data")){console.error(I==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',I,I);continue}pN(a,I,I,M,v,p);continue;case"action":case"formAction":if(E=a.getAttribute(I),typeof M=="function"){v.delete(I.toLowerCase()),I==="formAction"?(v.delete("name"),v.delete("formenctype"),v.delete("formmethod"),v.delete("formtarget")):(v.delete("enctype"),v.delete("method"),v.delete("target"));continue}else if(E===HX){v.delete(I.toLowerCase()),qn(I,"function",M,p);continue}pN(a,I,I.toLowerCase(),M,v,p);continue;case"xlinkHref":pN(a,I,"xlink:href",M,v,p);continue;case"contentEditable":hN(a,I,"contenteditable",M,v,p);continue;case"spellCheck":hN(a,I,"spellcheck",M,v,p);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":hN(a,I,I,M,v,p);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m3(a,I,I.toLowerCase(),M,v,p);continue;case"capture":case"download":e:{T=a;var oe=E=I,se=p;if(v.delete(oe),T=T.getAttribute(oe),T===null)switch(typeof M){case"undefined":case"function":case"symbol":break e;default:if(M===!1)break e}else if(M!=null)switch(typeof M){case"function":case"symbol":break;case"boolean":if(M===!0&&T==="")break e;break;default:if(Ve(M,E),T===""+M)break e}qn(E,T,M,se)}continue;case"cols":case"rows":case"size":case"span":e:{if(T=a,oe=E=I,se=p,v.delete(oe),T=T.getAttribute(oe),T===null)switch(typeof M){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(M)||1>M)break e}else if(M!=null)switch(typeof M){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(M)||1>M)&&(Ve(M,E),T===""+M))break e}qn(E,T,M,se)}continue;case"rowSpan":h3(a,I,"rowspan",M,v,p);continue;case"start":h3(a,I,I,M,v,p);continue;case"xHeight":xa(a,I,"x-height",M,v,p);continue;case"xlinkActuate":xa(a,I,"xlink:actuate",M,v,p);continue;case"xlinkArcrole":xa(a,I,"xlink:arcrole",M,v,p);continue;case"xlinkRole":xa(a,I,"xlink:role",M,v,p);continue;case"xlinkShow":xa(a,I,"xlink:show",M,v,p);continue;case"xlinkTitle":xa(a,I,"xlink:title",M,v,p);continue;case"xlinkType":xa(a,I,"xlink:type",M,v,p);continue;case"xmlBase":xa(a,I,"xml:base",M,v,p);continue;case"xmlLang":xa(a,I,"xml:lang",M,v,p);continue;case"xmlSpace":xa(a,I,"xml:space",M,v,p);continue;case"inert":M!==""||eb[I]||(eb[I]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",I)),m3(a,I,I,M,v,p);continue;default:if(!(2<I.length)||I[0]!=="o"&&I[0]!=="O"||I[1]!=="n"&&I[1]!=="N"){T=gj(I),E=!1,d.context===Ko&&i!=="svg"&&i!=="math"?v.delete(T.toLowerCase()):(oe=I.toLowerCase(),oe=fv.hasOwnProperty(oe)&&fv[oe]||null,oe!==null&&oe!==I&&(E=!0,v.delete(oe)),v.delete(T));e:if(oe=a,se=T,T=M,yr(se))if(oe.hasAttribute(se))oe=oe.getAttribute(se),Ve(T,se),T=oe===""+T?T:oe;else{switch(typeof T){case"function":case"symbol":break e;case"boolean":if(oe=se.toLowerCase().slice(0,5),oe!=="data-"&&oe!=="aria-")break e}T=T===void 0?void 0:null}else T=void 0;E||qn(I,T,M,p)}}}return 0<v.size&&l.suppressHydrationWarning!==!0&&TY(a,v,p),Object.keys(p).length===0?null:p}function _Y(a,i){switch(a.length){case 0:return"";case 1:return a[0];case 2:return a[0]+" "+i+" "+a[1];default:return a.slice(0,-1).join(", ")+", "+i+" "+a[a.length-1]}}function g3(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RY(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var p=l[d],v=p.transferSize,E=p.initiatorType,T=p.duration;if(v&&T&&g3(E)){for(E=0,T=p.responseEnd,d+=1;d<l.length;d++){var M=l[d],I=M.startTime;if(I>T)break;var oe=M.transferSize,se=M.initiatorType;oe&&g3(se)&&(M=M.responseEnd,E+=oe*(M<T?1:(T-I)/(M-I)))}if(--d,i+=8*(v+E)/(p.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}function Yg(a){return a.nodeType===9?a:a.ownerDocument}function v3(a){switch(a){case Ru:return sd;case dv:return nb;default:return Ko}}function b3(a,i){if(a===Ko)switch(i){case"svg":return sd;case"math":return nb;default:return Ko}return a===sd&&i==="foreignObject"?Ko:a}function gN(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}function jY(){var a=window.event;return a&&a.type==="popstate"?a===Jw?!1:(Jw=a,!0):(Jw=null,!1)}function tm(){var a=window.event;return a&&a!==Wm?a.type:null}function nm(){var a=window.event;return a&&a!==Wm?a.timeStamp:-1.1}function PY(a){setTimeout(function(){throw a})}function MY(a,i,l){switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}function kY(){}function LY(a,i,l,d){CY(a,i,l,d),a[wr]=d}function y3(a){Cf(a,"")}function IY(a,i,l){a.nodeValue=l}function x3(a){if(!a.__reactWarnedAboutChildrenConflict){var i=a[wr]||null;if(i!==null){var l=De(a);l!==null&&(typeof i.children=="string"||typeof i.children=="number"?(a.__reactWarnedAboutChildrenConflict=!0,de(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):i.dangerouslySetInnerHTML!=null&&(a.__reactWarnedAboutChildrenConflict=!0,de(l,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Cs(a){return a==="head"}function VY(a,i){a.removeChild(i)}function $Y(a,i){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(i)}function N3(a,i){var l=i,d=0;do{var p=l.nextSibling;if(a.removeChild(l),p&&p.nodeType===8)if(l=p.data,l===Xm||l===tb){if(d===0){a.removeChild(p),Au(i);return}d--}else if(l===Qm||l===Zs||l===sc||l===od||l===oc)d++;else if(l===KX)rm(a.ownerDocument.documentElement);else if(l===YX){l=a.ownerDocument.head,rm(l);for(var v=l.firstChild;v;){var E=v.nextSibling,T=v.nodeName;v[um]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=E}}else l===GX&&rm(a.ownerDocument.body);l=p}while(l);Au(i)}function w3(a,i){var l=a;a=0;do{var d=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l===Xm){if(a===0)break;a--}else l!==Qm&&l!==Zs&&l!==sc&&l!==od||a++;l=d}while(l)}function BY(a){w3(a,!0)}function zY(a){a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function UY(a){a.nodeValue=""}function qY(a){w3(a,!1)}function HY(a,i){i=i[QX],i=i!=null&&i.hasOwnProperty("display")?i.display:null,a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function FY(a,i){a.nodeValue=i}function vN(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vN(l),ce(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function KY(a,i,l,d){for(;a.nodeType===1;){var p=l;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(d){if(!a[um])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==p.rel||a.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){Ve(p.name,"name");var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=ta(a.nextSibling),a===null)break}return null}function GY(a,i,l){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=ta(a.nextSibling),a===null))return null;return a}function E3(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=ta(a.nextSibling),a===null))return null;return a}function bN(a){return a.data===Zs||a.data===sc}function yN(a){return a.data===od||a.data===Zs&&a.ownerDocument.readyState!==fL}function YY(a,i){var l=a.ownerDocument;if(a.data===sc)a._reactRetry=i;else if(a.data!==Zs||l.readyState!==fL)i();else{var d=function(){i(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),a._reactRetry=d}}function ta(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i===Qm||i===od||i===Zs||i===sc||i===oc||i===Xw||i===dL)break;if(i===Xm||i===tb)return null}}return a}function S3(a){if(a.nodeType===1){for(var i=a.nodeName.toLowerCase(),l={},d=a.attributes,p=0;p<d.length;p++){var v=d[p];l[d3(v.name)]=v.name.toLowerCase()==="style"?mN(a):v.value}return{type:i,props:l}}return a.nodeType===8?a.data===oc?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function A3(a,i,l){return l===null||l[FX]!==!0?(a.nodeValue===i?a=null:(i=Ts(i),a=Ts(a.nodeValue)===i?null:a.nodeValue),a):null}function xN(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Xm||l===tb){if(i===0)return ta(a.nextSibling);i--}else l!==Qm&&l!==od&&l!==Zs&&l!==sc&&l!==oc||i++}a=a.nextSibling}return null}function O3(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Qm||l===od||l===Zs||l===sc||l===oc){if(i===0)return a;i--}else l!==Xm&&l!==tb||i++}a=a.previousSibling}return null}function QY(a){Au(a)}function XY(a){Au(a)}function WY(a){Au(a)}function D3(a,i,l,d,p){switch(p&&_0(a,d.ancestorInfo),i=Yg(l),a){case"html":if(a=i.documentElement,!a)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"head":if(a=i.head,!a)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return a;case"body":if(a=i.body,!a)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return a;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function ZY(a,i,l,d){if(!l[Ps]&&De(l)){var p=l.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",p,p,p)}switch(a){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(p=l.attributes;p.length;)l.removeAttributeNode(p[0]);er(l,a,i),l[tr]=d,l[wr]=i}function rm(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);ce(a)}function Qg(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function T3(a,i,l){var d=ld;if(d&&typeof i=="string"&&i){var p=ya(i);p='link[rel="'+a+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),bL.has(p)||(bL.add(p),a={rel:a,crossOrigin:l,href:i},d.querySelector(p)===null&&(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}}function C3(a,i,l,d){var p=(p=Rs.current)?Qg(p):null;if(!p)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(a){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Eu(l.href),i=Je(p).hoistableStyles,d=i.get(l),d||(d={type:"style",instance:null,count:0,state:null},i.set(l,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){a=Eu(l.href);var v=Je(p).hoistableStyles,E=v.get(a);if(!E&&(p=p.ownerDocument||p,E={type:"stylesheet",instance:null,count:0,state:{loading:cc,preload:null}},v.set(a,E),(v=p.querySelector(am(a)))&&!v._p&&(E.instance=v,E.state.loading=Zm|ja),!Pa.has(a))){var T={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy};Pa.set(a,T),v||JY(p,a,T,E.state)}if(i&&d===null)throw l=`
- `+Xg(i)+`
+ `+Xg(l),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return E}if(i&&d!==null)throw l=`
- `+Xg(i)+`
+ `+Xg(l),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+l);return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(l=Su(l),i=Je(p).hoistableScripts,d=i.get(l),d||(d={type:"script",instance:null,count:0,state:null},i.set(l,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+a+'". this is a bug in React.')}}function Xg(a){var i=0,l="<link";return typeof a.rel=="string"?(i++,l+=' rel="'+a.rel+'"'):Xa.call(a,"rel")&&(i++,l+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href=="string"?(i++,l+=' href="'+a.href+'"'):Xa.call(a,"href")&&(i++,l+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence=="string"?(i++,l+=' precedence="'+a.precedence+'"'):Xa.call(a,"precedence")&&(i++,l+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>i&&(l+=" ..."),l+" />"}function Eu(a){return'href="'+ya(a)+'"'}function am(a){return'link[rel="stylesheet"]['+a+"]"}function _3(a){return mt({},a,{"data-precedence":a.precedence,precedence:null})}function JY(a,i,l,d){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=Zm:(i=a.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=Zm}),i.addEventListener("error",function(){return d.loading|=gL}),er(i,"link",l),Se(i),a.head.appendChild(i))}function Su(a){return'[src="'+ya(a)+'"]'}function im(a){return"script[async]"+a}function R3(a,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var d=a.querySelector('style[data-href~="'+ya(l.href)+'"]');if(d)return i.instance=d,Se(d),d;var p=mt({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(a.ownerDocument||a).createElement("style"),Se(d),er(d,"style",p),Wg(d,l.precedence,a),i.instance=d;case"stylesheet":p=Eu(l.href);var v=a.querySelector(am(p));if(v)return i.state.loading|=ja,i.instance=v,Se(v),v;d=_3(l),(p=Pa.get(p))&&NN(d,p),v=(a.ownerDocument||a).createElement("link"),Se(v);var E=v;return E._p=new Promise(function(T,M){E.onload=T,E.onerror=M}),er(v,"link",d),i.state.loading|=ja,Wg(v,l.precedence,a),i.instance=v;case"script":return v=Su(l.src),(p=a.querySelector(im(v)))?(i.instance=p,Se(p),p):(d=l,(p=Pa.get(v))&&(d=mt({},l),wN(d,p)),a=a.ownerDocument||a,p=a.createElement("script"),Se(p),er(p,"link",d),a.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+i.type+'". this is a bug in React.')}else i.type==="stylesheet"&&(i.state.loading&ja)===cc&&(d=i.instance,i.state.loading|=ja,Wg(d,l.precedence,a));return i.instance}function Wg(a,i,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,v=p,E=0;E<d.length;E++){var T=d[E];if(T.dataset.precedence===i)v=T;else if(v!==p)break}v?v.parentNode.insertBefore(a,v.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(a,i.firstChild))}function NN(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function wN(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function j3(a,i,l){if(rb===null){var d=new Map,p=rb=new Map;p.set(l,d)}else p=rb,d=p.get(l),d||(d=new Map,p.set(l,d));if(d.has(a))return d;for(d.set(a,null),l=l.getElementsByTagName(a),p=0;p<l.length;p++){var v=l[p];if(!(v[um]||v[tr]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!==Ru){var E=v.getAttribute(i)||"";E=a+E;var T=d.get(E);T?T.push(v):d.set(E,[v])}}return d}function P3(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i==="title"?a.querySelector("head > title"):null)}function eQ(a,i,l){var d=!l.ancestorInfo.containerTagInScope;if(l.context===sd||i.itemProp!=null)return!d||i.itemProp==null||a!=="meta"&&a!=="title"&&a!=="style"&&a!=="link"&&a!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",a,a),!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href===""){d&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError){if(i.rel==="stylesheet"&&typeof i.precedence=="string"){a=i.href;var p=i.onError,v=i.disabled;l=[],i.onLoad&&l.push("`onLoad`"),p&&l.push("`onError`"),v!=null&&l.push("`disabled`"),p=_Y(l,"and"),p+=l.length===1?" prop":" props",v=l.length===1?"an "+p:"the "+p,l.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',a,v,p)}d&&(typeof i.rel!="string"||typeof i.href!="string"||i.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(i.onError||i.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(i.rel){case"stylesheet":return a=i.precedence,i=i.disabled,typeof a!="string"&&d&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof a=="string"&&i==null;default:return!0}case"script":if(a=i.async&&typeof i.async!="function"&&typeof i.async!="symbol",!a||i.onLoad||i.onError||!i.src||typeof i.src!="string"){d&&(a?i.onLoad||i.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":d&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",a)}return!1}function M3(a){return!(a.type==="stylesheet"&&(a.state.loading&vL)===cc)}function tQ(a,i,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&ja)===cc){if(l.instance===null){var p=Eu(d.href),v=i.querySelector(am(p));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Zg.bind(a),i.then(a,a)),l.state.loading|=ja,l.instance=v,Se(v);return}v=i.ownerDocument||i,d=_3(d),(p=Pa.get(p))&&NN(d,p),v=v.createElement("link"),Se(v);var E=v;E._p=new Promise(function(T,M){E.onload=T,E.onerror=M}),er(v,"link",d),l.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&vL)===cc&&(a.count++,l=Zg.bind(a),i.addEventListener("load",l),i.addEventListener("error",l))}}function nQ(a,i){return a.stylesheets&&a.count===0&&Jg(a,a.stylesheets),0<a.count||0<a.imgCount?function(l){var d=setTimeout(function(){if(a.stylesheets&&Jg(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},ZX+i);0<a.imgBytes&&tE===0&&(tE=125*RY()*eW);var p=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Jg(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>tE?50:JX)+i);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(d),clearTimeout(p)}}:null}function Zg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function Jg(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,ab=new Map,i.forEach(rQ,a),ab=null,Zg.call(a))}function rQ(a,i){if(!(i.state.loading&ja)){var l=ab.get(a);if(l)var d=l.get(nE);else{l=new Map,ab.set(a,l);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var E=p[v];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(l.set(E.dataset.precedence,E),d=E)}d&&l.set(nE,d)}p=i.instance,E=p.getAttribute("data-precedence"),v=l.get(E)||d,v===d&&l.set(nE,p),l.set(E,p),this.count++,d=Zg.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),v?v.parentNode.insertBefore(p,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),i.state.loading|=ja}}function aQ(a,i,l,d,p,v,E,T,M){for(this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=lc,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.hiddenUpdates=bi(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,a=this.pendingUpdatersLaneMap=[],i=0;31>i;i++)a.push(new Set);this._debugRootType=l?"hydrateRoot()":"createRoot()"}function k3(a,i,l,d,p,v,E,T,M,I,oe,se){return a=new aQ(a,i,l,E,M,I,oe,se,T),i=SX,v===!0&&(i|=lr|Wa),i|=st,v=y(3,null,null,i),a.current=v,v.stateNode=a,i=X0(),Ml(i),a.pooledCache=i,Ml(i),v.memoizedState={element:d,isDehydrated:l,cache:i},t1(v),a}function L3(a){return a?(a=Is,a):Is}function EN(a,i,l,d,p,v){if(sr&&typeof sr.onScheduleFiberRoot=="function")try{sr.onScheduleFiberRoot(Cu,d,l)}catch(E){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",E))}p=L3(p),d.context===null?d.context=p:d.pendingContext=p,$i&&ra!==null&&!wL&&(wL=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,B(ra)||"Unknown")),d=ws(i),d.payload={element:l},v=v===void 0?null:v,v!==null&&(typeof v!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",v),d.callback=v),l=Es(a,d,i),l!==null&&(Si(i,"root.render()",null),cn(l,a,i),$f(l,a,i))}function I3(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function SN(a,i){I3(a,i),(a=a.alternate)&&I3(a,i)}function V3(a){if(a.tag===13||a.tag===31){var i=or(a,67108864);i!==null&&cn(i,a,67108864),SN(a,67108864)}}function $3(a){if(a.tag===13||a.tag===31){var i=ea(a);i=yi(i);var l=or(a,i);l!==null&&cn(l,a,i),SN(a,i)}}function iQ(){return ra}function oQ(a,i,l,d){var p=pe.T;pe.T=null;var v=Pt.p;try{Pt.p=Na,AN(a,i,l,d)}finally{Pt.p=v,pe.T=p}}function sQ(a,i,l,d){var p=pe.T;pe.T=null;var v=Pt.p;try{Pt.p=Ui,AN(a,i,l,d)}finally{Pt.p=v,pe.T=p}}function AN(a,i,l,d){if(ob){var p=ON(d);if(p===null)uN(a,i,d,sb,l),z3(a,d);else if(lQ(p,a,i,l,d))d.stopPropagation();else if(z3(a,d),i&4&&-1<nW.indexOf(a)){for(;p!==null;){var v=De(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var E=St(v.pendingLanes);if(E!==0){var T=v;for(T.pendingLanes|=2,T.entangledLanes|=2;E;){var M=1<<31-Nr(E);T.entanglements[1]|=M,E&=~M}ki(v),(Et&(Mn|sa))===Gn&&(qv=Hn()+Xk,Jf(0))}}break;case 31:case 13:T=or(v,2),T!==null&&cn(T,v,2),xu(),SN(v,2)}if(v=ON(d),v===null&&uN(a,i,d,sb,l),v===p)break;p=v}p!==null&&d.stopPropagation()}else uN(a,i,d,null,l)}}function ON(a){return a=R0(a),DN(a)}function DN(a){if(sb=null,a=Ee(a),a!==null){var i=A(a);if(i===null)a=null;else{var l=i.tag;if(l===13){if(a=D(i),a!==null)return a;a=null}else if(l===31){if(a=_(i),a!==null)return a;a=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return sb=a,null}function B3(a){switch(a){case"beforetoggle":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"toggle":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 Na;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ui;case"message":switch(bQ()){case zN:return Na;case UN:return Ui;case Tu:case yQ:return jo;case qN:return cv;default:return jo}default:return jo}}function z3(a,i){switch(a){case"focusin":case"focusout":Js=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":eh.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":th.delete(i.pointerId)}}function om(a,i,l,d,p,v){return a===null||a.nativeEvent!==v?(a={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:v,targetContainers:[p]},i!==null&&(i=De(i),i!==null&&V3(i)),a):(a.eventSystemFlags|=d,i=a.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),a)}function lQ(a,i,l,d,p){switch(i){case"focusin":return Js=om(Js,a,i,l,d,p),!0;case"dragenter":return el=om(el,a,i,l,d,p),!0;case"mouseover":return tl=om(tl,a,i,l,d,p),!0;case"pointerover":var v=p.pointerId;return eh.set(v,om(eh.get(v)||null,a,i,l,d,p)),!0;case"gotpointercapture":return v=p.pointerId,th.set(v,om(th.get(v)||null,a,i,l,d,p)),!0}return!1}function U3(a){var i=Ee(a.target);if(i!==null){var l=A(i);if(l!==null){if(i=l.tag,i===13){if(i=D(l),i!==null){a.blockedOn=i,V(a.priority,function(){$3(l)});return}}else if(i===31){if(i=_(l),i!==null){a.blockedOn=i,V(a.priority,function(){$3(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){a.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}a.blockedOn=null}function ev(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=ON(a.nativeEvent);if(l===null){l=a.nativeEvent;var d=new l.constructor(l.type,l),p=d;dm!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),dm=p,l.target.dispatchEvent(d),dm===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),dm=null}else return i=De(l),i!==null&&V3(i),a.blockedOn=l,!1;i.shift()}return!0}function q3(a,i,l){ev(a)&&l.delete(i)}function cQ(){rE=!1,Js!==null&&ev(Js)&&(Js=null),el!==null&&ev(el)&&(el=null),tl!==null&&ev(tl)&&(tl=null),eh.forEach(q3),th.forEach(q3)}function tv(a,i){a.blockedOn===i&&(a.blockedOn=null,rE||(rE=!0,Nn.unstable_scheduleCallback(Nn.unstable_NormalPriority,cQ)))}function H3(a){lb!==a&&(lb=a,Nn.unstable_scheduleCallback(Nn.unstable_NormalPriority,function(){lb===a&&(lb=null);for(var i=0;i<a.length;i+=3){var l=a[i],d=a[i+1],p=a[i+2];if(typeof d!="function"){if(DN(d||l)===null)continue;break}var v=De(l);v!==null&&(a.splice(i,3),i-=3,l={pending:!0,data:p,method:l.method,action:d},Object.freeze(l),D1(v,l,d,p))}}))}function Au(a){function i(M){return tv(M,a)}Js!==null&&tv(Js,a),el!==null&&tv(el,a),tl!==null&&tv(tl,a),eh.forEach(i),th.forEach(i);for(var l=0;l<nl.length;l++){var d=nl[l];d.blockedOn===a&&(d.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)U3(l),l.blockedOn===null&&nl.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var p=l[d],v=l[d+1],E=p[wr]||null;if(typeof v=="function")E||H3(l);else if(E){var T=null;if(v&&v.hasAttribute("formAction")){if(p=v,E=v[wr]||null)T=E.formAction;else if(DN(p)!==null)continue}else T=E.action;typeof T=="function"?l[d+1]=T:(l.splice(d,3),d-=3),H3(l)}}}function F3(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(E){return p=E})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,p=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function TN(a){this._internalRoot=a}function nv(a){this._internalRoot=a}function K3(a){a[Ps]&&(a._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Nn=Oee(),CN=uf(),uQ=D9(),mt=Object.assign,dQ=Symbol.for("react.element"),Ii=Symbol.for("react.transitional.element"),Ou=Symbol.for("react.portal"),Du=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),_N=Symbol.for("react.profiler"),RN=Symbol.for("react.consumer"),Vi=Symbol.for("react.context"),sm=Symbol.for("react.forward_ref"),jN=Symbol.for("react.suspense"),PN=Symbol.for("react.suspense_list"),av=Symbol.for("react.memo"),na=Symbol.for("react.lazy"),MN=Symbol.for("react.activity"),fQ=Symbol.for("react.memo_cache_sentinel"),G3=Symbol.iterator,mQ=Symbol.for("react.client.reference"),jn=Array.isArray,pe=CN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pt=uQ.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,hQ=Object.freeze({pending:!1,data:null,method:null,action:null}),kN=[],LN=[],Ro=-1,_s=U(null),lm=U(null),Rs=U(null),iv=U(null),cm=0,Y3,Q3,X3,W3,Z3,J3,e5;ne.__reactDisabledLog=!0;var IN,t5,VN=!1,$N=new(typeof WeakMap=="function"?WeakMap:Map),ra=null,$i=!1,Xa=Object.prototype.hasOwnProperty,BN=Nn.unstable_scheduleCallback,pQ=Nn.unstable_cancelCallback,gQ=Nn.unstable_shouldYield,vQ=Nn.unstable_requestPaint,Hn=Nn.unstable_now,bQ=Nn.unstable_getCurrentPriorityLevel,zN=Nn.unstable_ImmediatePriority,UN=Nn.unstable_UserBlockingPriority,Tu=Nn.unstable_NormalPriority,yQ=Nn.unstable_LowPriority,qN=Nn.unstable_IdlePriority,xQ=Nn.log,NQ=Nn.unstable_setDisableYieldValue,Cu=null,sr=null,Bi=!1,zi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Nr=Math.clz32?Math.clz32:ir,wQ=Math.log,EQ=Math.LN2,ov=256,sv=262144,lv=4194304,Na=2,Ui=8,jo=32,cv=268435456,js=Math.random().toString(36).slice(2),tr="__reactFiber$"+js,wr="__reactProps$"+js,Ps="__reactContainer$"+js,HN="__reactEvents$"+js,SQ="__reactListeners$"+js,AQ="__reactHandles$"+js,n5="__reactResources$"+js,um="__reactMarker$"+js,r5=new Set,zl={},FN={},OQ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},DQ=RegExp("^[: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]*$"),a5={},i5={},TQ=/[\n"\\]/g,o5=!1,s5=!1,l5=!1,c5=!1,u5=!1,d5=!1,f5=["value","defaultValue"],m5=!1,h5=/["'&<>\n\t]|^\s|\s$/,CQ="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),p5="applet caption html table td th marquee object template foreignObject desc title".split(" "),_Q=p5.concat(["button"]),RQ="dd dt li option optgroup p rp rt".split(" "),g5={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},uv={},KN={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},v5=/([A-Z])/g,b5=/^ms-/,jQ=/^(?:webkit|moz|o)[A-Z]/,PQ=/^-ms-/,MQ=/-(.)/g,y5=/;\s*$/,_u={},GN={},x5=!1,N5=!1,w5=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),dv="http://www.w3.org/1998/Math/MathML",Ru="http://www.w3.org/2000/svg",kQ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fv={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},E5={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},ju={},LQ=RegExp("^(aria)-[: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]*$"),IQ=RegExp("^(aria)[A-Z][: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]*$"),S5=!1,Er={},A5=/^on./,VQ=/^on[^A-Z]/,$Q=RegExp("^(aria)-[: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]*$"),BQ=RegExp("^(aria)[A-Z][: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]*$"),zQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,dm=null,Pu=null,Mu=null,YN=!1,qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),QN=!1;if(qi)try{var fm={};Object.defineProperty(fm,"passive",{get:function(){QN=!0}}),window.addEventListener("test",fm,fm),window.removeEventListener("test",fm,fm)}catch{QN=!1}var Ms=null,XN=null,mv=null,Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hv=Lr(Ul),mm=mt({},Ul,{view:0,detail:0}),UQ=Lr(mm),WN,ZN,hm,pv=mt({},mm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:j0,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!==hm&&(hm&&a.type==="mousemove"?(WN=a.screenX-hm.screenX,ZN=a.screenY-hm.screenY):ZN=WN=0,hm=a),WN)},movementY:function(a){return"movementY"in a?a.movementY:ZN}}),O5=Lr(pv),qQ=mt({},pv,{dataTransfer:0}),HQ=Lr(qQ),FQ=mt({},mm,{relatedTarget:0}),JN=Lr(FQ),KQ=mt({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),GQ=Lr(KQ),YQ=mt({},Ul,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),QQ=Lr(YQ),XQ=mt({},Ul,{data:0}),D5=Lr(XQ),WQ=D5,ZQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},JQ={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"},eX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},tX=mt({},mm,{key:function(a){if(a.key){var i=ZQ[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=eg(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?JQ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:j0,charCode:function(a){return a.type==="keypress"?eg(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?eg(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),nX=Lr(tX),rX=mt({},pv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),T5=Lr(rX),aX=mt({},mm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:j0}),iX=Lr(aX),oX=mt({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),sX=Lr(oX),lX=mt({},pv,{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}),cX=Lr(lX),uX=mt({},Ul,{newState:0,oldState:0}),dX=Lr(uX),fX=[9,13,27,32],C5=229,ew=qi&&"CompositionEvent"in window,pm=null;qi&&"documentMode"in document&&(pm=document.documentMode);var mX=qi&&"TextEvent"in window&&!pm,_5=qi&&(!ew||pm&&8<pm&&11>=pm),R5=32,j5=String.fromCharCode(R5),P5=!1,ku=!1,hX={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},gm=null,vm=null,M5=!1;qi&&(M5=MG("input")&&(!document.documentMode||9<document.documentMode));var Sr=typeof Object.is=="function"?Object.is:BG,pX=qi&&"documentMode"in document&&11>=document.documentMode,Lu=null,tw=null,bm=null,nw=!1,Iu={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},rw={},k5={};qi&&(k5=document.createElement("div").style,"AnimationEvent"in window||(delete Iu.animationend.animation,delete Iu.animationiteration.animation,delete Iu.animationstart.animation),"TransitionEvent"in window||delete Iu.transitionend.transition);var L5=Tl("animationend"),I5=Tl("animationiteration"),V5=Tl("animationstart"),gX=Tl("transitionrun"),vX=Tl("transitionstart"),bX=Tl("transitioncancel"),$5=Tl("transitionend"),B5=new Map,aw="abort auxClick beforeToggle 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(" ");aw.push("scrollEnd");var z5=0;if(typeof performance=="object"&&typeof performance.now=="function")var yX=performance,U5=function(){return yX.now()};else{var xX=Date;U5=function(){return xX.now()}}var iw=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},NX="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",gv=0,ow=1,sw=2,lw=3,vv=" ",bv="+ ",q5=" ",Qt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",wa="Components ⚛",bt="Scheduler ⚛",xt="Blocking",ks=!1,Po={color:"primary",properties:null,tooltipText:"",track:wa},Ls={start:-0,end:-0,detail:{devtools:Po}},wX=["Changed Props",""],H5="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",EX=["Changed Props",H5],ym=1,Mo=2,Ea=[],Vu=0,cw=0,Is={};Object.freeze(Is);var Sa=null,$u=null,Ye=0,SX=1,st=2,lr=8,Wa=16,AX=32,F5=!1;try{var K5=Object.preventExtensions({})}catch{F5=!0}var uw=new WeakMap,Bu=[],zu=0,yv=null,xm=0,Aa=[],Oa=0,ql=null,ko=1,Lo="",nr=null,Xt=null,pt=!1,Hi=!1,aa=null,Vs=null,Da=!1,dw=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),fw=U(null),mw=U(null),G5={},xv=null,Uu=null,qu=!1,OX=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(l,d){a.push(d)}};this.abort=function(){i.aborted=!0,a.forEach(function(l){return l()})}},DX=Nn.unstable_scheduleCallback,TX=Nn.unstable_NormalPriority,wn={$$typeof:Vi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},En=Nn.unstable_now,Nv=console.createTask?console.createTask:function(){return null},Nm=1,wv=2,Fn=-0,$s=-0,Io=-0,Vo=null,Ar=-1.1,Hl=-0,on=-0,qe=-1.1,Ke=-1.1,nn=null,un=!1,Fl=-0,Fi=-1.1,wm=null,Bs=0,hw=null,pw=null,Kl=-1.1,Em=null,Hu=-1.1,Ev=-1.1,$o=-0,Bo=-1.1,Ta=-1.1,gw=0,Sm=null,Y5=null,Q5=null,zs=-1.1,Gl=null,Us=-1.1,Sv=-1.1,X5=-0,W5=-0,Av=0,CX=null,Z5=0,Am=-1.1,Ov=!1,Dv=!1,Om=null,vw=0,Yl=0,Fu=null,J5=pe.S;pe.S=function(a,i){if(Yk=Hn(),typeof i=="object"&&i!==null&&typeof i.then=="function"){if(0>Bo&&0>Ta){Bo=En();var l=nm(),d=tm();(l!==Us||d!==Gl)&&(Us=-1.1),zs=l,Gl=d}GG(a,i)}J5!==null&&J5(a,i)};var Ql=U(null),Za={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dm=[],Tm=[],Cm=[],_m=[],Rm=[],jm=[],Xl=new Set;Za.recordUnsafeLifecycleWarnings=function(a,i){Xl.has(a.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&Dm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillMount=="function"&&Tm.push(a),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Cm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&_m.push(a),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Rm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillUpdate=="function"&&jm.push(a))},Za.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<Dm.length&&(Dm.forEach(function(T){a.add(B(T)||"Component"),Xl.add(T.type)}),Dm=[]);var i=new Set;0<Tm.length&&(Tm.forEach(function(T){i.add(B(T)||"Component"),Xl.add(T.type)}),Tm=[]);var l=new Set;0<Cm.length&&(Cm.forEach(function(T){l.add(B(T)||"Component"),Xl.add(T.type)}),Cm=[]);var d=new Set;0<_m.length&&(_m.forEach(function(T){d.add(B(T)||"Component"),Xl.add(T.type)}),_m=[]);var p=new Set;0<Rm.length&&(Rm.forEach(function(T){p.add(B(T)||"Component"),Xl.add(T.type)}),Rm=[]);var v=new Set;if(0<jm.length&&(jm.forEach(function(T){v.add(B(T)||"Component"),Xl.add(T.type)}),jm=[]),0<i.size){var E=h(i);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,E)}0<d.size&&(E=h(d),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
Please update the following components: %s`,E)),0<v.size&&(E=h(v),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,E)),0<a.size&&(E=h(a),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,E)),0<l.size&&(E=h(l),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,E)),0<p.size&&(E=h(p),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,E))};var Tv=new Map,ek=new Set;Za.recordLegacyContextWarning=function(a,i){for(var l=null,d=a;d!==null;)d.mode&lr&&(l=d),d=d.return;l===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!ek.has(a.type)&&(d=Tv.get(l),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],Tv.set(l,d)),d.push(a))},Za.flushLegacyContextWarning=function(){Tv.forEach(function(a){if(a.length!==0){var i=a[0],l=new Set;a.forEach(function(p){l.add(B(p)||"Component"),ek.add(p.type)});var d=h(l);de(i,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://react.dev/link/legacy-context`,d)})}})},Za.discardPendingWarnings=function(){Dm=[],Tm=[],Cm=[],_m=[],Rm=[],jm=[],Tv=new Map};var tk={react_stack_bottom_frame:function(a,i,l){var d=$i;$i=!0;try{return a(i,l)}finally{$i=d}}},bw=tk.react_stack_bottom_frame.bind(tk),nk={react_stack_bottom_frame:function(a){var i=$i;$i=!0;try{return a.render()}finally{$i=i}}},rk=nk.react_stack_bottom_frame.bind(nk),ak={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){jt(a,a.return,l)}}},yw=ak.react_stack_bottom_frame.bind(ak),ik={react_stack_bottom_frame:function(a,i,l,d,p){try{i.componentDidUpdate(l,d,p)}catch(v){jt(a,a.return,v)}}},ok=ik.react_stack_bottom_frame.bind(ik),sk={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:""})}},_X=sk.react_stack_bottom_frame.bind(sk),lk={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(d){jt(a,i,d)}}},ck=lk.react_stack_bottom_frame.bind(lk),uk={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},RX=uk.react_stack_bottom_frame.bind(uk),dk={react_stack_bottom_frame:function(a,i,l){try{l()}catch(d){jt(a,i,d)}}},jX=dk.react_stack_bottom_frame.bind(dk),fk={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},PX=fk.react_stack_bottom_frame.bind(fk),Ku=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),xw=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Cv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),_v={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Wl=null,Pm=!1,Gu=null,Mm=0,lt=null,Nw,mk=Nw=!1,hk={},pk={},gk={};g=function(a,i,l){if(l!==null&&typeof l=="object"&&l._store&&(!l._store.validated&&l.key==null||l._store.validated===2)){if(typeof l._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");l._store.validated=1;var d=B(a),p=d||"null";if(!hk[p]){hk[p]=!0,l=l._owner,a=a._debugOwner;var v="";a&&typeof a.tag=="number"&&(p=B(a))&&(v=`
Check the render method of \``+p+"`."),v||d&&(v=`
Check the top-level render call using <`+d+">.");var E="";l!=null&&a!==l&&(d=null,typeof l.tag=="number"?d=B(l):typeof l.name=="string"&&(d=l.name),d&&(E=" It was passed a child from "+d+".")),de(i,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',v,E)})}}};var Zl=lP(!0),vk=lP(!1),bk=0,yk=1,xk=2,ww=3,qs=!1,Nk=!1,Ew=null,Sw=!1,Yu=U(null),Rv=U(0),ia=U(null),Ca=null,Qu=1,km=2,vn=U(0),jv=0,_a=1,Or=2,oa=4,Dr=8,Xu,wk=new Set,Ek=new Set,Aw=new Set,Sk=new Set,zo=0,We=null,qt=null,Sn=null,Pv=!1,Wu=!1,Jl=!1,Mv=0,Lm=0,Uo=null,MX=0,kX=25,he=null,Ra=null,qo=-1,Im=!1,Vm={readContext:tn,use:Os,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn};Vm.useEffectEvent=fn;var Ow=null,Ak=null,Dw=null,Ok=null,Ki=null,Ja=null,kv=null;Ow={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",ft(),mu(i),E1(a,i)},useContext:function(a){return he="useContext",ft(),tn(a)},useEffect:function(a,i){return he="useEffect",ft(),mu(i),Tg(a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",ft(),mu(l),w1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",ft(),mu(i),Ll(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",ft(),mu(i),N1(a,i)},useMemo:function(a,i){he="useMemo",ft(),mu(i);var l=pe.H;pe.H=Ki;try{return S1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",ft();var d=pe.H;pe.H=Ki;try{return f1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",ft(),y1(a)},useState:function(a){he="useState",ft();var i=pe.H;pe.H=Ki;try{return g1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",ft()},useDeferredValue:function(a,i){return he="useDeferredValue",ft(),A1(a,i)},useTransition:function(){return he="useTransition",ft(),T1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",ft(),h1(a,i,l)},useId:function(){return he="useId",ft(),C1()},useFormState:function(a,i){return he="useFormState",ft(),Eg(),pu(a,i)},useActionState:function(a,i){return he="useActionState",ft(),pu(a,i)},useOptimistic:function(a){return he="useOptimistic",ft(),v1(a)},useHostTransitionStatus:Il,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",ft(),_1()},useEffectEvent:function(a){return he="useEffectEvent",ft(),x1(a)}},Ak={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),E1(a,i)},useContext:function(a){return he="useContext",Ae(),tn(a)},useEffect:function(a,i){return he="useEffect",Ae(),Tg(a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",Ae(),w1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",Ae(),Ll(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),N1(a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=Ki;try{return S1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=Ki;try{return f1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",Ae(),y1(a)},useState:function(a){he="useState",Ae();var i=pe.H;pe.H=Ki;try{return g1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),A1(a,i)},useTransition:function(){return he="useTransition",Ae(),T1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),h1(a,i,l)},useId:function(){return he="useId",Ae(),C1()},useActionState:function(a,i){return he="useActionState",Ae(),pu(a,i)},useFormState:function(a,i){return he="useFormState",Ae(),Eg(),pu(a,i)},useOptimistic:function(a){return he="useOptimistic",Ae(),v1(a)},useHostTransitionStatus:Il,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),_1()},useEffectEvent:function(a){return he="useEffectEvent",Ae(),x1(a)}},Dw={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),Rg(a,i)},useContext:function(a){return he="useContext",Ae(),tn(a)},useEffect:function(a,i){he="useEffect",Ae(),Ir(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),Ir(4,oa,a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=Ja;try{return jg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=Ja;try{return hu(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",Ae(),kt().memoizedState},useState:function(){he="useState",Ae();var a=pe.H;pe.H=Ja;try{return hu(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),_P(a,i)},useTransition:function(){return he="useTransition",Ae(),LP()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),Ag(a,i,l)},useId:function(){return he="useId",Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",Ae(),Eg(),Og(a)},useActionState:function(a){return he="useActionState",Ae(),Og(a)},useOptimistic:function(a,i){return he="useOptimistic",Ae(),xP(a,i)},useHostTransitionStatus:Il,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",Ae(),Cg(a)}},Ok={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),Rg(a,i)},useContext:function(a){return he="useContext",Ae(),tn(a)},useEffect:function(a,i){he="useEffect",Ae(),Ir(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),Ir(4,oa,a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=kv;try{return jg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=kv;try{return qf(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",Ae(),kt().memoizedState},useState:function(){he="useState",Ae();var a=pe.H;pe.H=kv;try{return qf(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),RP(a,i)},useTransition:function(){return he="useTransition",Ae(),IP()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),Ag(a,i,l)},useId:function(){return he="useId",Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",Ae(),Eg(),Dg(a)},useActionState:function(a){return he="useActionState",Ae(),Dg(a)},useOptimistic:function(a,i){return he="useOptimistic",Ae(),wP(a,i)},useHostTransitionStatus:Il,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",Ae(),Cg(a)}},Ki={readContext:function(a){return f(),tn(a)},use:function(a){return u(),Os(a)},useCallback:function(a,i){return he="useCallback",u(),ft(),E1(a,i)},useContext:function(a){return he="useContext",u(),ft(),tn(a)},useEffect:function(a,i){return he="useEffect",u(),ft(),Tg(a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",u(),ft(),w1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",u(),ft(),Ll(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",u(),ft(),N1(a,i)},useMemo:function(a,i){he="useMemo",u(),ft();var l=pe.H;pe.H=Ki;try{return S1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),ft();var d=pe.H;pe.H=Ki;try{return f1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",u(),ft(),y1(a)},useState:function(a){he="useState",u(),ft();var i=pe.H;pe.H=Ki;try{return g1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",u(),ft()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),ft(),A1(a,i)},useTransition:function(){return he="useTransition",u(),ft(),T1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),ft(),h1(a,i,l)},useId:function(){return he="useId",u(),ft(),C1()},useFormState:function(a,i){return he="useFormState",u(),ft(),pu(a,i)},useActionState:function(a,i){return he="useActionState",u(),ft(),pu(a,i)},useOptimistic:function(a){return he="useOptimistic",u(),ft(),v1(a)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Il,useCacheRefresh:function(){return he="useCacheRefresh",ft(),_1()},useEffectEvent:function(a){return he="useEffectEvent",u(),ft(),x1(a)}},Ja={readContext:function(a){return f(),tn(a)},use:function(a){return u(),Os(a)},useCallback:function(a,i){return he="useCallback",u(),Ae(),Rg(a,i)},useContext:function(a){return he="useContext",u(),Ae(),tn(a)},useEffect:function(a,i){he="useEffect",u(),Ae(),Ir(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",u(),Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",u(),Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",u(),Ae(),Ir(4,oa,a,i)},useMemo:function(a,i){he="useMemo",u(),Ae();var l=pe.H;pe.H=Ja;try{return jg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),Ae();var d=pe.H;pe.H=Ja;try{return hu(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",u(),Ae(),kt().memoizedState},useState:function(){he="useState",u(),Ae();var a=pe.H;pe.H=Ja;try{return hu(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",u(),Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),Ae(),_P(a,i)},useTransition:function(){return he="useTransition",u(),Ae(),LP()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),Ae(),Ag(a,i,l)},useId:function(){return he="useId",u(),Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",u(),Ae(),Og(a)},useActionState:function(a){return he="useActionState",u(),Ae(),Og(a)},useOptimistic:function(a,i){return he="useOptimistic",u(),Ae(),xP(a,i)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Il,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",u(),Ae(),Cg(a)}},kv={readContext:function(a){return f(),tn(a)},use:function(a){return u(),Os(a)},useCallback:function(a,i){return he="useCallback",u(),Ae(),Rg(a,i)},useContext:function(a){return he="useContext",u(),Ae(),tn(a)},useEffect:function(a,i){he="useEffect",u(),Ae(),Ir(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",u(),Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",u(),Ae(),Ir(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",u(),Ae(),Ir(4,oa,a,i)},useMemo:function(a,i){he="useMemo",u(),Ae();var l=pe.H;pe.H=Ja;try{return jg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),Ae();var d=pe.H;pe.H=Ja;try{return qf(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",u(),Ae(),kt().memoizedState},useState:function(){he="useState",u(),Ae();var a=pe.H;pe.H=Ja;try{return qf(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",u(),Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),Ae(),RP(a,i)},useTransition:function(){return he="useTransition",u(),Ae(),IP()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),Ae(),Ag(a,i,l)},useId:function(){return he="useId",u(),Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",u(),Ae(),Dg(a)},useActionState:function(a){return he="useActionState",u(),Ae(),Dg(a)},useOptimistic:function(a,i){return he="useOptimistic",u(),Ae(),wP(a,i)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Il,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",u(),Ae(),Cg(a)}};var Dk={},Tk=new Set,Ck=new Set,_k=new Set,Rk=new Set,jk=new Set,Pk=new Set,Mk=new Set,kk=new Set,Lk=new Set,Ik=new Set;Object.freeze(Dk);var Tw={enqueueSetState:function(a,i,l){a=a._reactInternals;var d=ea(a),p=ws(d);p.payload=i,l!=null&&(j1(l),p.callback=l),i=Es(a,p,d),i!==null&&(Si(d,"this.setState()",a),cn(i,a,d),$f(i,a,d))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var d=ea(a),p=ws(d);p.tag=yk,p.payload=i,l!=null&&(j1(l),p.callback=l),i=Es(a,p,d),i!==null&&(Si(d,"this.replaceState()",a),cn(i,a,d),$f(i,a,d))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=ea(a),d=ws(l);d.tag=xk,i!=null&&(j1(i),d.callback=i),i=Es(a,d,l),i!==null&&(Si(l,"this.forceUpdate()",a),cn(i,a,l),$f(i,a,l))}},Zu=null,Cw=null,_w=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),An=!1,Vk={},$k={},Bk={},zk={},Ju=!1,Uk={},Lv={},Rw={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},qk=!1,Hk=null;Hk=new Set;var Ho=!1,On=!1,jw=!1,Fk=typeof WeakSet=="function"?WeakSet:Set,Kn=null,ed=null,td=null,Dn=null,Br=!1,ei=null,Pn=!1,$m=8192,LX={getCacheForType:function(a){var i=tn(wn),l=i.data.get(a);return l===void 0&&(l=a(),i.data.set(a,l)),l},cacheSignal:function(){return tn(wn).controller.signal},getOwner:function(){return ra}};if(typeof Symbol=="function"&&Symbol.for){var Bm=Symbol.for;Bm("selector.component"),Bm("selector.has_pseudo_class"),Bm("selector.role"),Bm("selector.test_id"),Bm("selector.text")}var IX=[],VX=typeof WeakMap=="function"?WeakMap:Map,Gn=0,Mn=2,sa=4,Fo=0,zm=1,ec=2,Iv=3,Hs=4,Vv=6,Kk=5,Et=Gn,Ht=null,dt=null,ct=0,zr=0,$v=1,tc=2,Um=3,Gk=4,Pw=5,qm=6,Bv=7,Mw=8,nc=9,Lt=zr,la=null,Fs=!1,nd=!1,kw=!1,Gi=0,sn=Fo,Ks=0,Gs=0,Lw=0,Ur=0,rc=0,Hm=null,Tr=null,zv=!1,Uv=0,Yk=0,Qk=300,qv=1/0,Xk=500,Fm=null,mn=null,Ys=null,Hv=0,Iw=1,Vw=2,Wk=3,Qs=0,Zk=1,Jk=2,eL=3,tL=4,Fv=5,Tn=0,Xs=null,rd=null,ti=0,$w=0,Bw=-0,zw=null,nL=null,rL=null,ni=Hv,aL=null,$X=50,Km=0,Uw=null,qw=!1,Kv=!1,BX=50,ac=0,Gm=null,ad=!1,Gv=null,iL=!1,oL=new Set,zX={},Yv=null,id=null,Hw=!1,Fw=!1,Qv=!1,Kw=!1,Ws=0,Gw={};(function(){for(var a=0;a<aw.length;a++){var i=aw[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),Ka(l,"on"+i)}Ka(L5,"onAnimationEnd"),Ka(I5,"onAnimationIteration"),Ka(V5,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(gX,"onTransitionRun"),Ka(vX,"onTransitionStart"),Ka(bX,"onTransitionCancel"),Ka($5,"onTransitionEnd")})(),Be("onMouseEnter",["mouseout","mouseover"]),Be("onMouseLeave",["mouseout","mouseover"]),Be("onPointerEnter",["pointerout","pointerover"]),Be("onPointerLeave",["pointerout","pointerover"]),He("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),He("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),He("onBeforeInput",["compositionend","keypress","textInput","paste"]),He("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),He("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ym="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(" "),Yw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ym)),Xv="_reactListening"+Math.random().toString(36).slice(2),sL=!1,lL=!1,Wv=!1,cL=!1,Zv=!1,Jv=!1,uL=!1,eb={},UX=/\r\n?/g,qX=/\u0000|\uFFFD/g,ic="http://www.w3.org/1999/xlink",Qw="http://www.w3.org/XML/1998/namespace",HX="javascript:throw new Error('React form unexpectedly submitted.')",FX="suppressHydrationWarning",oc="&",tb="/&",Qm="$",Xm="/$",Zs="$?",sc="$~",od="$!",KX="html",GX="body",YX="head",Xw="F!",dL="F",fL="loading",QX="style",Ko=0,sd=1,nb=2,Ww=null,Zw=null,mL={dialog:!0,webview:!0},Jw=null,Wm=void 0,hL=typeof setTimeout=="function"?setTimeout:void 0,XX=typeof clearTimeout=="function"?clearTimeout:void 0,lc=-1,pL=typeof Promise=="function"?Promise:void 0,WX=typeof queueMicrotask=="function"?queueMicrotask:typeof pL<"u"?function(a){return pL.resolve(null).then(a).catch(PY)}:hL,eE=null,cc=0,Zm=1,gL=2,vL=3,ja=4,Pa=new Map,bL=new Set,Go=Pt.d;Pt.d={f:function(){var a=Go.f(),i=xu();return a||i},r:function(a){var i=De(a);i!==null&&i.tag===5&&i.type==="form"?kP(i):Go.r(a)},D:function(a){Go.D(a),T3("dns-prefetch",a,null)},C:function(a,i){Go.C(a,i),T3("preconnect",a,i)},L:function(a,i,l){Go.L(a,i,l);var d=ld;if(d&&a&&i){var p='link[rel="preload"][as="'+ya(i)+'"]';i==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+ya(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+ya(l.imageSizes)+'"]')):p+='[href="'+ya(a)+'"]';var v=p;switch(i){case"style":v=Eu(a);break;case"script":v=Su(a)}Pa.has(v)||(a=mt({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:a,as:i},l),Pa.set(v,a),d.querySelector(p)!==null||i==="style"&&d.querySelector(am(v))||i==="script"&&d.querySelector(im(v))||(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}},m:function(a,i){Go.m(a,i);var l=ld;if(l&&a){var d=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+ya(d)+'"][href="'+ya(a)+'"]',v=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Su(a)}if(!Pa.has(v)&&(a=mt({rel:"modulepreload",href:a},i),Pa.set(v,a),l.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(im(v)))return}d=l.createElement("link"),er(d,"link",a),Se(d),l.head.appendChild(d)}}},X:function(a,i){Go.X(a,i);var l=ld;if(l&&a){var d=Je(l).hoistableScripts,p=Su(a),v=d.get(p);v||(v=l.querySelector(im(p)),v||(a=mt({src:a,async:!0},i),(i=Pa.get(p))&&wN(a,i),v=l.createElement("script"),Se(v),er(v,"link",a),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(p,v))}},S:function(a,i,l){Go.S(a,i,l);var d=ld;if(d&&a){var p=Je(d).hoistableStyles,v=Eu(a);i=i||"default";var E=p.get(v);if(!E){var T={loading:cc,preload:null};if(E=d.querySelector(am(v)))T.loading=Zm|ja;else{a=mt({rel:"stylesheet",href:a,"data-precedence":i},l),(l=Pa.get(v))&&NN(a,l);var M=E=d.createElement("link");Se(M),er(M,"link",a),M._p=new Promise(function(I,oe){M.onload=I,M.onerror=oe}),M.addEventListener("load",function(){T.loading|=Zm}),M.addEventListener("error",function(){T.loading|=gL}),T.loading|=ja,Wg(E,i,d)}E={type:"stylesheet",instance:E,count:1,state:T},p.set(v,E)}}},M:function(a,i){Go.M(a,i);var l=ld;if(l&&a){var d=Je(l).hoistableScripts,p=Su(a),v=d.get(p);v||(v=l.querySelector(im(p)),v||(a=mt({src:a,async:!0,type:"module"},i),(i=Pa.get(p))&&wN(a,i),v=l.createElement("script"),Se(v),er(v,"link",a),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(p,v))}}};var ld=typeof document>"u"?null:document,rb=null,ZX=6e4,JX=800,eW=500,tE=0,nE=null,ab=null,uc=hQ,Jm={$$typeof:Vi,Provider:null,Consumer:null,_currentValue:uc,_currentValue2:uc,_threadCount:0},yL="%c%s%c",xL="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",NL="",ib=" ",tW=Function.prototype.bind,wL=!1,EL=null,SL=null,AL=null,OL=null,DL=null,TL=null,CL=null,_L=null,RL=null,jL=null;EL=function(a,i,l,d){i=e(a,i),i!==null&&(l=t(i.memoizedState,l,0,d),i.memoizedState=l,i.baseState=l,a.memoizedProps=mt({},a.memoizedProps),l=or(a,2),l!==null&&cn(l,a,2))},SL=function(a,i,l){i=e(a,i),i!==null&&(l=o(i.memoizedState,l,0),i.memoizedState=l,i.baseState=l,a.memoizedProps=mt({},a.memoizedProps),l=or(a,2),l!==null&&cn(l,a,2))},AL=function(a,i,l,d){i=e(a,i),i!==null&&(l=n(i.memoizedState,l,d),i.memoizedState=l,i.baseState=l,a.memoizedProps=mt({},a.memoizedProps),l=or(a,2),l!==null&&cn(l,a,2))},OL=function(a,i,l){a.pendingProps=t(a.memoizedProps,i,0,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&cn(i,a,2)},DL=function(a,i){a.pendingProps=o(a.memoizedProps,i,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&cn(i,a,2)},TL=function(a,i,l){a.pendingProps=n(a.memoizedProps,i,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&cn(i,a,2)},CL=function(a){var i=or(a,2);i!==null&&cn(i,a,2)},_L=function(a){var i=Yr(),l=or(a,i);l!==null&&cn(l,a,i)},RL=function(a){c=a},jL=function(a){s=a};var ob=!0,sb=null,rE=!1,Js=null,el=null,tl=null,eh=new Map,th=new Map,nl=[],nW="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".split(" "),lb=null;if(nv.prototype.render=TN.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error("Cannot update an unmounted root.");var l=arguments;typeof l[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):w(l[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof l[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),l=a;var d=i.current,p=ea(d);EN(d,p,l,i,null,null)},nv.prototype.unmount=TN.prototype.unmount=function(){var a=arguments;if(typeof a[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),a=this._internalRoot,a!==null){this._internalRoot=null;var i=a.containerInfo;(Et&(Mn|sa))!==Gn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),EN(a.current,2,null,a,null,null),xu(),i[Ps]=null}},nv.prototype.unstable_scheduleHydration=function(a){if(a){var i=xi();a={blockedOn:null,target:a,priority:i};for(var l=0;l<nl.length&&i!==0&&i<nl[l].priority;l++);nl.splice(l,0,a),l===0&&U3(a)}},(function(){var a=CN.version;if(a!=="19.2.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
- react: `+(a+`
- react-dom: 19.2.1
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Pt.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error("Unable to find node on an unmounted component."):(a=Object.keys(a).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+a));return a=O(i),a=a!==null?C(a):null,a=a===null?null:a.stateNode,a},!(function(){var a={bundleType:1,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:pe,reconcilerVersion:"19.2.1"};return a.overrideHookState=EL,a.overrideHookStateDeletePath=SL,a.overrideHookStateRenamePath=AL,a.overrideProps=OL,a.overridePropsDeletePath=DL,a.overridePropsRenamePath=TL,a.scheduleUpdate=CL,a.scheduleRetry=_L,a.setErrorHandler=RL,a.setSuspenseHandler=jL,a.scheduleRefresh=S,a.scheduleRoot=x,a.setRefreshHandler=N,a.getCurrentFiber=iQ,xn(a)})()&&qi&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var PL=window.location.protocol;/^(https?|file):$/.test(PL)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(PL==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}ih.createRoot=function(a,i){if(!w(a))throw Error("Target container is not a DOM element.");K3(a);var l=!1,d="",p=qP,v=HP,E=FP;return i!=null&&(i.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof i=="object"&&i!==null&&i.$$typeof===Ii&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError)),i=k3(a,1,!1,null,null,l,d,null,p,v,E,F3),a[Ps]=i.current,cN(a),new TN(i)},ih.hydrateRoot=function(a,i,l){if(!w(a))throw Error("Target container is not a DOM element.");K3(a),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=!1,p="",v=qP,E=HP,T=FP,M=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(T=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),i=k3(a,1,!0,i,l??null,d,p,M,v,E,T,F3),i.context=L3(null),l=i.current,d=ea(l),d=yi(d),p=ws(d),p.callback=null,Es(l,p,d),Si(d,"hydrateRoot()",null),l=d,i.current.lanes=l,Fa(i,l),ki(i),a[Ps]=i.current,cN(a),new nv(i)},ih.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),ih}var TI;function Cee(){return TI||(TI=1,gE.exports=Tee()),gE.exports}var _ee=Cee(),Ree=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),T9=(function(){function e(t){this.generateIdentifier=t,this.kv=new Ree}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),jee=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[s]=o[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),Pee=(function(e){jee(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(T9),Mee=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s};function kee(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Lee(e,t){var n=kee(e);if("find"in n)return n.find(t);for(var r=n,o=0;o<r.length;o++){var s=r[o];if(t(s))return s}}function jd(e,t){Object.entries(e).forEach(function(n){var r=Mee(n,2),o=r[0],s=r[1];return t(s,o)})}function qb(e,t){return e.indexOf(t)!==-1}function CI(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var Iee=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return Lee(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),Vee=function(e){return Object.prototype.toString.call(e).slice(8,-1)},C9=function(e){return typeof e>"u"},$ee=function(e){return e===null},Vh=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},sT=function(e){return Vh(e)&&Object.keys(e).length===0},pl=function(e){return Array.isArray(e)},Bee=function(e){return typeof e=="string"},zee=function(e){return typeof e=="number"&&!isNaN(e)},Uee=function(e){return typeof e=="boolean"},qee=function(e){return e instanceof RegExp},$h=function(e){return e instanceof Map},Bh=function(e){return e instanceof Set},_9=function(e){return Vee(e)==="Symbol"},Hee=function(e){return e instanceof Date&&!isNaN(e.valueOf())},Fee=function(e){return e instanceof Error},_I=function(e){return typeof e=="number"&&isNaN(e)},Kee=function(e){return Uee(e)||$ee(e)||C9(e)||zee(e)||Bee(e)||_9(e)},Gee=function(e){return typeof e=="bigint"},Yee=function(e){return e===1/0||e===-1/0},Qee=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},Xee=function(e){return e instanceof URL},R9=function(e){return e.replace(/\./g,"\\.")},xE=function(e){return e.map(String).map(R9).join(".")},Oh=function(e){for(var t=[],n="",r=0;r<e.length;r++){var o=e.charAt(r),s=o==="\\"&&e.charAt(r+1)===".";if(s){n+=".",r++;continue}var c=o===".";if(c){t.push(n),n="";continue}n+=o}var u=n;return t.push(u),t},lT=function(){return lT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},lT.apply(this,arguments)},cT=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s},uT=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Yi(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var j9=[Yi(C9,"undefined",function(){return null},function(){}),Yi(Gee,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Yi(Hee,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Yi(Fee,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),Yi(qee,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Yi(Bh,"set",function(e){return uT([],cT(e.values()))},function(e){return new Set(e)}),Yi($h,"map",function(e){return uT([],cT(e.entries()))},function(e){return new Map(e)}),Yi(function(e){return _I(e)||Yee(e)},"number",function(e){return _I(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Yi(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),Yi(Xee,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function bx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var P9=bx(function(e,t){if(_9(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Wee=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),M9=bx(Qee,function(e){return["typed-array",e.constructor.name]},function(e){return uT([],cT(e))},function(e,t){var n=Wee[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function k9(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var L9=bx(k9,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return lT({},e);var r={};return n.forEach(function(o){r[o]=e[o]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),I9=bx(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Zee=[L9,P9,I9,M9],RI=function(e,t){var n=CI(Zee,function(o){return o.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=CI(j9,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},V9={};j9.forEach(function(e){V9[e.annotation]=e});var Jee=function(e,t,n){if(pl(t))switch(t[0]){case"symbol":return P9.untransform(e,t,n);case"class":return L9.untransform(e,t,n);case"custom":return I9.untransform(e,t,n);case"typed-array":return M9.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=V9[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},xd=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function $9(e){if(qb(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(qb(e,"prototype"))throw new Error("prototype is not allowed as a property");if(qb(e,"constructor"))throw new Error("constructor is not allowed as a property")}var ete=function(e,t){$9(t);for(var n=0;n<t.length;n++){var r=t[n];if(Bh(e))e=xd(e,+r);else if($h(e)){var o=+r,s=+t[++n]==0?"key":"value",c=xd(e,o);switch(s){case"key":e=c;break;case"value":e=e.get(c);break}}else e=e[r]}return e},dT=function(e,t,n){if($9(t),t.length===0)return n(e);for(var r=e,o=0;o<t.length-1;o++){var s=t[o];if(pl(r)){var c=+s;r=r[c]}else if(Vh(r))r=r[s];else if(Bh(r)){var u=+s;r=xd(r,u)}else if($h(r)){var f=o===t.length-2;if(f)break;var u=+s,m=+t[++o]==0?"key":"value",g=xd(r,u);switch(m){case"key":r=g;break;case"value":r=r.get(g);break}}}var h=t[t.length-1];if(pl(r)?r[+h]=n(r[+h]):Vh(r)&&(r[h]=n(r[h])),Bh(r)){var y=xd(r,+h),x=n(y);y!==x&&(r.delete(y),r.add(x))}if($h(r)){var u=+t[t.length-2],S=xd(r,u),m=+h==0?"key":"value";switch(m){case"key":{var N=n(S);r.set(N,r.get(S)),N!==S&&r.delete(S);break}case"value":{r.set(S,n(r.get(S)));break}}}return e},Zo=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s},cl=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function fT(e,t,n){if(n===void 0&&(n=[]),!!e){if(!pl(e)){jd(e,function(c,u){return fT(c,t,cl(cl([],Zo(n)),Zo(Oh(u))))});return}var r=Zo(e,2),o=r[0],s=r[1];s&&jd(s,function(c,u){fT(c,t,cl(cl([],Zo(n)),Zo(Oh(u))))}),t(o,n)}}function tte(e,t,n){return fT(t,function(r,o){e=dT(e,o,function(s){return Jee(s,r,n)})}),e}function nte(e,t){function n(c,u){var f=ete(e,Oh(u));c.map(Oh).forEach(function(m){e=dT(e,m,function(){return f})})}if(pl(t)){var r=Zo(t,2),o=r[0],s=r[1];o.forEach(function(c){e=dT(e,Oh(c),function(){return e})}),s&&jd(s,n)}else jd(t,n);return e}var rte=function(e,t){return Vh(e)||pl(e)||$h(e)||Bh(e)||k9(e,t)};function ate(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function ite(e,t){var n={},r=void 0;return e.forEach(function(o){if(!(o.length<=1)){t||(o=o.map(function(f){return f.map(String)}).sort(function(f,m){return f.length-m.length}));var s=Zo(o),c=s[0],u=s.slice(1);c.length===0?r=u.map(xE):n[xE(c)]=u.map(xE)}}),r?sT(n)?[r]:[r,n]:sT(n)?void 0:n}var B9=function(e,t,n,r,o,s,c){var u;o===void 0&&(o=[]),s===void 0&&(s=[]),c===void 0&&(c=new Map);var f=Kee(e);if(!f){ate(e,o,t);var m=c.get(e);if(m)return r?{transformedValue:null}:m}if(!rte(e,n)){var g=RI(e,n),h=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return f||c.set(e,h),h}if(qb(s,e))return{transformedValue:null};var y=RI(e,n),x=(u=y?.value)!==null&&u!==void 0?u:e,S=pl(x)?[]:{},N={};jd(x,function(A,D){var _=B9(A,t,n,r,cl(cl([],Zo(o)),[D]),cl(cl([],Zo(s)),[e]),c);S[D]=_.transformedValue,pl(_.annotations)?N[D]=_.annotations:Vh(_.annotations)&&jd(_.annotations,function(P,O){N[R9(D)+"."+O]=P})});var w=sT(N)?{transformedValue:S,annotations:y?[y.type]:void 0}:{transformedValue:S,annotations:y?[y.type,N]:N};return f||c.set(e,w),w};function z9(e){return Object.prototype.toString.call(e).slice(8,-1)}function jI(e){return z9(e)==="Array"}function ote(e){if(z9(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function ste(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function mT(e,t={}){if(jI(e))return e.map(o=>mT(o,t));if(!ote(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(jI(t.props)&&!t.props.includes(s))return o;const c=e[s],u=mT(c,t);return ste(o,s,u,e,t.nonenumerable),o},{})}var yc=function(){return yc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},yc.apply(this,arguments)},lte=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s},cte=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},us=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,o=r===void 0?!1:r;this.classRegistry=new Pee,this.symbolRegistry=new T9(function(s){var c;return(c=s.description)!==null&&c!==void 0?c:""}),this.customTransformerRegistry=new Iee,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var n=new Map,r=B9(t,n,this,this.dedupe),o={json:r.transformedValue};r.annotations&&(o.meta=yc(yc({},o.meta),{values:r.annotations}));var s=ite(n,this.dedupe);return s&&(o.meta=yc(yc({},o.meta),{referentialEqualities:s})),o},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,o=mT(n);return r?.values&&(o=tte(o,r.values,this)),r?.referentialEqualities&&(o=nte(o,r.referentialEqualities)),o},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(yc({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,cte([],lte(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();us.serialize;us.deserialize;us.stringify;us.parse;us.registerClass;us.registerCustom;us.registerSymbol;us.allowErrorProps;var ute=(e,t,n,r,o,s,c,u)=>{let f=document.documentElement,m=["light","dark"];function g(x){(Array.isArray(e)?e:[e]).forEach(S=>{let N=S==="class",w=N&&s?o.map(A=>s[A]||A):o;N?(f.classList.remove(...w),f.classList.add(s&&s[x]?s[x]:x)):f.setAttribute(S,x)}),h(x)}function h(x){u&&m.includes(x)&&(f.style.colorScheme=x)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)g(r);else try{let x=localStorage.getItem(t)||n,S=c&&x==="system"?y():x;g(S)}catch{}},dte=R.createContext(void 0),fte={setTheme:e=>{},themes:[]},mte=()=>{var e;return(e=R.useContext(dte))!=null?e:fte};R.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:c,themes:u,nonce:f,scriptProps:m})=>{let g=JSON.stringify([n,t,s,e,u,c,r,o]).slice(1,-1);return R.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${ute.toString()})(${g})`}})});var Pp=D9();const U9=Bt(Pp);function hte(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const pte=e=>{switch(e){case"success":return bte;case"info":return xte;case"warning":return yte;case"error":return Nte;default:return null}},gte=Array(12).fill(0),vte=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},gte.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),bte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),yte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),xte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Nte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),wte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ete=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let hT=1;class Ste{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,s=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:hT++,c=this.toasts.find(f=>f.id===s),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),c?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...t,id:s,title:r}),{...f,...t,id:s,dismissible:u,title:r}):f):this.addToast({title:r,...o,dismissible:u,id:s}),s},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let s=r!==void 0,c;const u=o.then(async m=>{if(c=["resolve",m],F.isValidElement(m))s=!1,this.create({id:r,type:"default",message:m});else if(Ote(m)&&!m.ok){s=!1;const h=typeof n.error=="function"?await n.error(`HTTP error! status: ${m.status}`):n.error,y=typeof n.description=="function"?await n.description(`HTTP error! status: ${m.status}`):n.description,S=typeof h=="object"&&!F.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:y,...S})}else if(m instanceof Error){s=!1;const h=typeof n.error=="function"?await n.error(m):n.error,y=typeof n.description=="function"?await n.description(m):n.description,S=typeof h=="object"&&!F.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:y,...S})}else if(n.success!==void 0){s=!1;const h=typeof n.success=="function"?await n.success(m):n.success,y=typeof n.description=="function"?await n.description(m):n.description,S=typeof h=="object"&&!F.isValidElement(h)?h:{message:h};this.create({id:r,type:"success",description:y,...S})}}).catch(async m=>{if(c=["reject",m],n.error!==void 0){s=!1;const g=typeof n.error=="function"?await n.error(m):n.error,h=typeof n.description=="function"?await n.description(m):n.description,x=typeof g=="object"&&!F.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:h,...x})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((m,g)=>u.then(()=>c[0]==="reject"?g(c[1]):m(c[1])).catch(g));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=n?.id||hT++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qr=new Ste,Ate=(e,t)=>{const n=t?.id||hT++;return qr.addToast({title:e,...t,id:n}),n},Ote=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Dte=Ate,Tte=()=>qr.toasts,Cte=()=>qr.getActiveToasts(),Nt=Object.assign(Dte,{success:qr.success,info:qr.info,warning:qr.warning,error:qr.error,custom:qr.custom,message:qr.message,promise:qr.promise,dismiss:qr.dismiss,loading:qr.loading},{getHistory:Tte,getToasts:Cte});hte("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function gb(e){return e.label!==void 0}const _te=3,Rte="24px",jte="16px",PI=4e3,Pte=356,Mte=14,kte=45,Lte=200;function Qi(...e){return e.filter(Boolean).join(" ")}function Ite(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Vte=e=>{var t,n,r,o,s,c,u,f,m;const{invert:g,toast:h,unstyled:y,interacting:x,setHeights:S,visibleToasts:N,heights:w,index:A,toasts:D,expanded:_,removeToast:P,defaultRichColors:O,closeButton:C,style:j,cancelButtonStyle:k,actionButtonStyle:$,className:B="",descriptionClassName:U="",duration:H,position:G,gap:Y,expandByDefault:J,classNames:q,icons:z,closeButtonAriaLabel:K="Close toast"}=e,[te,ne]=F.useState(null),[L,Q]=F.useState(null),[W,ae]=F.useState(!1),[ge,we]=F.useState(!1),[ue,xe]=F.useState(!1),[me,ye]=F.useState(!1),[de,ie]=F.useState(!1),[ze,Ne]=F.useState(0),[ut,Ve]=F.useState(0),tt=F.useRef(h.duration||H||PI),zn=F.useRef(null),xn=F.useRef(null),je=A===0,ir=A+1<=N,St=h.type,Un=h.dismissible!==!1,Mr=h.className||"",vi=h.descriptionClassName||"",Yr=F.useMemo(()=>w.findIndex(Se=>Se.toastId===h.id)||0,[w,h.id]),bi=F.useMemo(()=>{var Se;return(Se=h.closeButton)!=null?Se:C},[h.closeButton,C]),Fa=F.useMemo(()=>h.duration||H||PI,[h.duration,H]),gs=F.useRef(0),ba=F.useRef(0),vs=F.useRef(0),kr=F.useRef(null),[yi,bo]=G.split("-"),yo=F.useMemo(()=>w.reduce((Se,He,Be)=>Be>=Yr?Se:Se+He.height,0),[w,Yr]),xo=Ete(),xi=h.invert||g,V=St==="loading";ba.current=F.useMemo(()=>Yr*Y+yo,[Yr,yo]),F.useEffect(()=>{tt.current=Fa},[Fa]),F.useEffect(()=>{ae(!0)},[]),F.useEffect(()=>{const Se=xn.current;if(Se){const He=Se.getBoundingClientRect().height;return Ve(He),S(Be=>[{toastId:h.id,height:He,position:h.position},...Be]),()=>S(Be=>Be.filter(zt=>zt.toastId!==h.id))}},[S,h.id]),F.useLayoutEffect(()=>{if(!W)return;const Se=xn.current,He=Se.style.height;Se.style.height="auto";const Be=Se.getBoundingClientRect().height;Se.style.height=He,Ve(Be),S(zt=>zt.find(dn=>dn.toastId===h.id)?zt.map(dn=>dn.toastId===h.id?{...dn,height:Be}:dn):[{toastId:h.id,height:Be,position:h.position},...zt])},[W,h.title,h.description,S,h.id,h.jsx,h.action,h.cancel]);const ce=F.useCallback(()=>{we(!0),Ne(ba.current),S(Se=>Se.filter(He=>He.toastId!==h.id)),setTimeout(()=>{P(h)},Lte)},[h,P,S,ba]);F.useEffect(()=>{if(h.promise&&St==="loading"||h.duration===1/0||h.type==="loading")return;let Se;return _||x||xo?(()=>{if(vs.current<gs.current){const zt=new Date().getTime()-gs.current;tt.current=tt.current-zt}vs.current=new Date().getTime()})():(()=>{tt.current!==1/0&&(gs.current=new Date().getTime(),Se=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),ce()},tt.current))})(),()=>clearTimeout(Se)},[_,x,h,St,xo,ce]),F.useEffect(()=>{h.delete&&(ce(),h.onDismiss==null||h.onDismiss.call(h,h))},[ce,h.delete]);function Ee(){var Se;if(z?.loading){var He;return F.createElement("div",{className:Qi(q?.loader,h==null||(He=h.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":St==="loading"},z.loading)}return F.createElement(vte,{className:Qi(q?.loader,h==null||(Se=h.classNames)==null?void 0:Se.loader),visible:St==="loading"})}const De=h.icon||z?.[St]||pte(St);var Me,Je;return F.createElement("li",{tabIndex:0,ref:xn,className:Qi(B,Mr,q?.toast,h==null||(t=h.classNames)==null?void 0:t.toast,q?.default,q?.[St],h==null||(n=h.classNames)==null?void 0:n[St]),"data-sonner-toast":"","data-rich-colors":(Me=h.richColors)!=null?Me:O,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":W,"data-promise":!!h.promise,"data-swiped":de,"data-removed":ge,"data-visible":ir,"data-y-position":yi,"data-x-position":bo,"data-index":A,"data-front":je,"data-swiping":ue,"data-dismissible":Un,"data-type":St,"data-invert":xi,"data-swipe-out":me,"data-swipe-direction":L,"data-expanded":!!(_||J&&W),"data-testid":h.testId,style:{"--index":A,"--toasts-before":A,"--z-index":D.length-A,"--offset":`${ge?ze:ba.current}px`,"--initial-height":J?"auto":`${ut}px`,...j,...h.style},onDragEnd:()=>{xe(!1),ne(null),kr.current=null},onPointerDown:Se=>{Se.button!==2&&(V||!Un||(zn.current=new Date,Ne(ba.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(xe(!0),kr.current={x:Se.clientX,y:Se.clientY})))},onPointerUp:()=>{var Se,He,Be;if(me||!Un)return;kr.current=null;const zt=Number(((Se=xn.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yr=Number(((He=xn.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),dn=new Date().getTime()-((Be=zn.current)==null?void 0:Be.getTime()),Rn=te==="x"?zt:yr,No=Math.abs(Rn)/dn;if(Math.abs(Rn)>=kte||No>.11){Ne(ba.current),h.onDismiss==null||h.onDismiss.call(h,h),Q(te==="x"?zt>0?"right":"left":yr>0?"down":"up"),ce(),ye(!0);return}else{var gn,an;(gn=xn.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(an=xn.current)==null||an.style.setProperty("--swipe-amount-y","0px")}ie(!1),xe(!1),ne(null)},onPointerMove:Se=>{var He,Be,zt;if(!kr.current||!Un||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;const dn=Se.clientY-kr.current.y,Rn=Se.clientX-kr.current.x;var No;const gn=(No=e.swipeDirections)!=null?No:Ite(G);!te&&(Math.abs(Rn)>1||Math.abs(dn)>1)&&ne(Math.abs(Rn)>Math.abs(dn)?"x":"y");let an={x:0,y:0};const Of=wo=>1/(1.5+Math.abs(wo)/20);if(te==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&dn<0||gn.includes("bottom")&&dn>0)an.y=dn;else{const wo=dn*Of(dn);an.y=Math.abs(wo)<Math.abs(dn)?wo:dn}}else if(te==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&Rn<0||gn.includes("right")&&Rn>0)an.x=Rn;else{const wo=Rn*Of(Rn);an.x=Math.abs(wo)<Math.abs(Rn)?wo:Rn}(Math.abs(an.x)>0||Math.abs(an.y)>0)&&ie(!0),(Be=xn.current)==null||Be.style.setProperty("--swipe-amount-x",`${an.x}px`),(zt=xn.current)==null||zt.style.setProperty("--swipe-amount-y",`${an.y}px`)}},bi&&!h.jsx&&St!=="loading"?F.createElement("button",{"aria-label":K,"data-disabled":V,"data-close-button":!0,onClick:V||!Un?()=>{}:()=>{ce(),h.onDismiss==null||h.onDismiss.call(h,h)},className:Qi(q?.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(Je=z?.close)!=null?Je:wte):null,(St||h.icon||h.promise)&&h.icon!==null&&(z?.[St]!==null||h.icon)?F.createElement("div",{"data-icon":"",className:Qi(q?.icon,h==null||(o=h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Ee():null,h.type!=="loading"?De:null):null,F.createElement("div",{"data-content":"",className:Qi(q?.content,h==null||(s=h.classNames)==null?void 0:s.content)},F.createElement("div",{"data-title":"",className:Qi(q?.title,h==null||(c=h.classNames)==null?void 0:c.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?F.createElement("div",{"data-description":"",className:Qi(U,vi,q?.description,h==null||(u=h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),F.isValidElement(h.cancel)?h.cancel:h.cancel&&gb(h.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||k,onClick:Se=>{gb(h.cancel)&&Un&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Se),ce())},className:Qi(q?.cancelButton,h==null||(f=h.classNames)==null?void 0:f.cancelButton)},h.cancel.label):null,F.isValidElement(h.action)?h.action:h.action&&gb(h.action)?F.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||$,onClick:Se=>{gb(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,Se),!Se.defaultPrevented&&ce())},className:Qi(q?.actionButton,h==null||(m=h.classNames)==null?void 0:m.actionButton)},h.action.label):null)};function MI(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function $te(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,c=s?"--mobile-offset":"--offset",u=s?jte:Rte;function f(m){["top","right","bottom","left"].forEach(g=>{n[`${c}-${g}`]=typeof m=="number"?`${m}px`:m})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(m=>{r[m]===void 0?n[`${c}-${m}`]=u:n[`${c}-${m}`]=typeof r[m]=="number"?`${r[m]}px`:r[m]}):f(u)}),n}const Bte=F.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:c=["altKey","KeyT"],expand:u,closeButton:f,className:m,offset:g,mobileOffset:h,theme:y="light",richColors:x,duration:S,style:N,visibleToasts:w=_te,toastOptions:A,dir:D=MI(),gap:_=Mte,icons:P,containerAriaLabel:O="Notifications"}=t,[C,j]=F.useState([]),k=F.useMemo(()=>r?C.filter(W=>W.toasterId===r):C.filter(W=>!W.toasterId),[C,r]),$=F.useMemo(()=>Array.from(new Set([s].concat(k.filter(W=>W.position).map(W=>W.position)))),[k,s]),[B,U]=F.useState([]),[H,G]=F.useState(!1),[Y,J]=F.useState(!1),[q,z]=F.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=F.useRef(null),te=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),ne=F.useRef(null),L=F.useRef(!1),Q=F.useCallback(W=>{j(ae=>{var ge;return(ge=ae.find(we=>we.id===W.id))!=null&&ge.delete||qr.dismiss(W.id),ae.filter(({id:we})=>we!==W.id)})},[]);return F.useEffect(()=>qr.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{j(ae=>ae.map(ge=>ge.id===W.id?{...ge,delete:!0}:ge))});return}setTimeout(()=>{U9.flushSync(()=>{j(ae=>{const ge=ae.findIndex(we=>we.id===W.id);return ge!==-1?[...ae.slice(0,ge),{...ae[ge],...W},...ae.slice(ge+1)]:[W,...ae]})})})}),[C]),F.useEffect(()=>{if(y!=="system"){z(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:ae})=>{z(ae?"dark":"light")})}catch{W.addListener(({matches:ge})=>{try{z(ge?"dark":"light")}catch(we){console.error(we)}})}},[y]),F.useEffect(()=>{C.length<=1&&G(!1)},[C]),F.useEffect(()=>{const W=ae=>{var ge;if(c.every(xe=>ae[xe]||ae.code===xe)){var ue;G(!0),(ue=K.current)==null||ue.focus()}ae.code==="Escape"&&(document.activeElement===K.current||(ge=K.current)!=null&&ge.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[c]),F.useEffect(()=>{if(K.current)return()=>{ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null,L.current=!1)}},[K.current]),F.createElement("section",{ref:n,"aria-label":`${O} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((W,ae)=>{var ge;const[we,ue]=W.split("-");return k.length?F.createElement("ol",{key:W,dir:D==="auto"?MI():D,tabIndex:-1,ref:K,className:m,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":we,"data-x-position":ue,style:{"--front-toast-height":`${((ge=B[0])==null?void 0:ge.height)||0}px`,"--width":`${Pte}px`,"--gap":`${_}px`,...N,...$te(g,h)},onBlur:xe=>{L.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(L.current=!1,ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||L.current||(L.current=!0,ne.current=xe.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{Y||G(!1)},onDragEnd:()=>G(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},k.filter(xe=>!xe.position&&ae===0||xe.position===W).map((xe,me)=>{var ye,de;return F.createElement(Vte,{key:xe.id,icons:P,index:me,toast:xe,defaultRichColors:x,duration:(ye=A?.duration)!=null?ye:S,className:A?.className,descriptionClassName:A?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(de=A?.closeButton)!=null?de:f,interacting:Y,position:W,style:A?.style,unstyled:A?.unstyled,classNames:A?.classNames,cancelButtonStyle:A?.cancelButtonStyle,actionButtonStyle:A?.actionButtonStyle,closeButtonAriaLabel:A?.closeButtonAriaLabel,removeToast:Q,toasts:k.filter(ie=>ie.position==xe.position),heights:B.filter(ie=>ie.position==xe.position),setHeights:U,expandByDefault:u,gap:_,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),zte=({...e})=>{const{theme:t="system"}=mte();return b.jsxDEV(Bte,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/sonner.tsx",lineNumber:8,columnNumber:5},void 0)};function Ie(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function kI(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function yx(...e){return t=>{let n=!1;const r=e.map(o=>{const s=kI(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():kI(e[o],null)}}}}function Mt(...e){return R.useCallback(yx(...e),e)}function Ute(e,t){const n=R.createContext(t),r=s=>{const{children:c,...u}=s,f=R.useMemo(()=>u,Object.values(u));return le.jsx(n.Provider,{value:f,children:c})};r.displayName=e+"Provider";function o(s){const c=R.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ds(e,t=[]){let n=[];function r(s,c){const u=R.createContext(c),f=n.length;n=[...n,c];const m=h=>{const{scope:y,children:x,...S}=h,N=y?.[e]?.[f]||u,w=R.useMemo(()=>S,Object.values(S));return le.jsx(N.Provider,{value:w,children:x})};m.displayName=s+"Provider";function g(h,y){const x=y?.[e]?.[f]||u,S=R.useContext(x);if(S)return S;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[m,g]}const o=()=>{const s=n.map(c=>R.createContext(c));return function(u){const f=u?.[e]||s;return R.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[r,qte(o,...t)]}function qte(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=r.reduce((u,{useScope:f,scopeName:m})=>{const h=f(s)[`__scope${m}`];return{...u,...h}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Pc(e){const t=Hte(e),n=R.forwardRef((r,o)=>{const{children:s,...c}=r,u=R.Children.toArray(s),f=u.find(Kte);if(f){const m=f.props.children,g=u.map(h=>h===f?R.Children.count(m)>1?R.Children.only(null):R.isValidElement(m)?m.props.children:null:h);return le.jsx(t,{...c,ref:o,children:R.isValidElement(m)?R.cloneElement(m,void 0,g):null})}return le.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var q9=Pc("Slot");function Hte(e){const t=R.forwardRef((n,r)=>{const{children:o,...s}=n;if(R.isValidElement(o)){const c=Yte(o),u=Gte(s,o.props);return o.type!==R.Fragment&&(u.ref=r?yx(r,c):c),R.cloneElement(o,u)}return R.Children.count(o)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H9=Symbol("radix.slottable");function Fte(e){const t=({children:n})=>le.jsx(le.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=H9,t}function Kte(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H9}function Gte(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Yte(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],gt=Qte.reduce((e,t)=>{const n=Pc(`Primitive.${t}`),r=R.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),le.jsx(f,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function F9(e,t){e&&Pp.flushSync(()=>e.dispatchEvent(t))}function lo(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>t.current?.(...n),[])}function Xte(e,t=globalThis?.document){const n=lo(e);R.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wte="DismissableLayer",pT="dismissableLayer.update",Zte="dismissableLayer.pointerDownOutside",Jte="dismissableLayer.focusOutside",LI,K9=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=R.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...f}=e,m=R.useContext(K9),[g,h]=R.useState(null),y=g?.ownerDocument??globalThis?.document,[,x]=R.useState({}),S=Mt(t,j=>h(j)),N=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),A=N.indexOf(w),D=g?N.indexOf(g):-1,_=m.layersWithOutsidePointerEventsDisabled.size>0,P=D>=A,O=nne(j=>{const k=j.target,$=[...m.branches].some(B=>B.contains(k));!P||$||(o?.(j),c?.(j),j.defaultPrevented||u?.())},y),C=rne(j=>{const k=j.target;[...m.branches].some(B=>B.contains(k))||(s?.(j),c?.(j),j.defaultPrevented||u?.())},y);return Xte(j=>{D===m.layers.size-1&&(r?.(j),!j.defaultPrevented&&u&&(j.preventDefault(),u()))},y),R.useEffect(()=>{if(g)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(LI=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),II(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=LI)}},[g,y,n,m]),R.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),II())},[g,m]),R.useEffect(()=>{const j=()=>x({});return document.addEventListener(pT,j),()=>document.removeEventListener(pT,j)},[]),le.jsx(gt.div,{...f,ref:S,style:{pointerEvents:_?P?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,O.onPointerDownCapture)})});Mp.displayName=Wte;var ene="DismissableLayerBranch",tne=R.forwardRef((e,t)=>{const n=R.useContext(K9),r=R.useRef(null),o=Mt(t,r);return R.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),le.jsx(gt.div,{...e,ref:o})});tne.displayName=ene;function nne(e,t=globalThis?.document){const n=lo(e),r=R.useRef(!1),o=R.useRef(()=>{});return R.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let f=function(){G9(Zte,n,m,{discrete:!0})};const m={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function rne(e,t=globalThis?.document){const n=lo(e),r=R.useRef(!1);return R.useEffect(()=>{const o=s=>{s.target&&!r.current&&G9(Jte,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function II(){const e=new CustomEvent(pT);document.dispatchEvent(e)}function G9(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?F9(o,s):o.dispatchEvent(s)}var vr=globalThis?.document?R.useLayoutEffect:()=>{},ane=dx[" useId ".trim().toString()]||(()=>{}),ine=0;function ro(e){const[t,n]=R.useState(ane());return vr(()=>{n(r=>r??String(ine++))},[e]),t?`radix-${t}`:""}const one=["top","right","bottom","left"],gl=Math.min,fa=Math.max,ny=Math.round,vb=Math.floor,ao=e=>({x:e,y:e}),sne={left:"right",right:"left",bottom:"top",top:"bottom"},lne={start:"end",end:"start"};function gT(e,t,n){return fa(e,gl(t,n))}function is(e,t){return typeof e=="function"?e(t):e}function os(e){return e.split("-")[0]}function df(e){return e.split("-")[1]}function u_(e){return e==="x"?"y":"x"}function d_(e){return e==="y"?"height":"width"}const cne=new Set(["top","bottom"]);function eo(e){return cne.has(os(e))?"y":"x"}function f_(e){return u_(eo(e))}function une(e,t,n){n===void 0&&(n=!1);const r=df(e),o=f_(e),s=d_(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=ry(c)),[c,ry(c)]}function dne(e){const t=ry(e);return[vT(e),t,vT(t)]}function vT(e){return e.replace(/start|end/g,t=>lne[t])}const VI=["left","right"],$I=["right","left"],fne=["top","bottom"],mne=["bottom","top"];function hne(e,t,n){switch(e){case"top":case"bottom":return n?t?$I:VI:t?VI:$I;case"left":case"right":return t?fne:mne;default:return[]}}function pne(e,t,n,r){const o=df(e);let s=hne(os(e),n==="start",r);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(vT)))),s}function ry(e){return e.replace(/left|right|bottom|top/g,t=>sne[t])}function gne(e){return{top:0,right:0,bottom:0,left:0,...e}}function Y9(e){return typeof e!="number"?gne(e):{top:e,right:e,bottom:e,left:e}}function ay(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function BI(e,t,n){let{reference:r,floating:o}=e;const s=eo(t),c=f_(t),u=d_(c),f=os(t),m=s==="y",g=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,y=r[u]/2-o[u]/2;let x;switch(f){case"top":x={x:g,y:r.y-o.height};break;case"bottom":x={x:g,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-o.width,y:h};break;default:x={x:r.x,y:r.y}}switch(df(t)){case"start":x[c]-=y*(n&&m?-1:1);break;case"end":x[c]+=y*(n&&m?-1:1);break}return x}const vne=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c}=n,u=s.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:h}=BI(m,r,f),y=r,x={},S=0;for(let N=0;N<u.length;N++){const{name:w,fn:A}=u[N],{x:D,y:_,data:P,reset:O}=await A({x:g,y:h,initialPlacement:r,placement:y,strategy:o,middlewareData:x,rects:m,platform:c,elements:{reference:e,floating:t}});g=D??g,h=_??h,x={...x,[w]:{...x[w],...P}},O&&S<=50&&(S++,typeof O=="object"&&(O.placement&&(y=O.placement),O.rects&&(m=O.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):O.rects),{x:g,y:h}=BI(m,y,f)),N=-1)}return{x:g,y:h,placement:y,strategy:o,middlewareData:x}};async function zh(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:c,elements:u,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:h="floating",altBoundary:y=!1,padding:x=0}=is(t,e),S=Y9(x),w=u[y?h==="floating"?"reference":"floating":h],A=ay(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:m,rootBoundary:g,strategy:f})),D=h==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),P=await(s.isElement==null?void 0:s.isElement(_))?await(s.getScale==null?void 0:s.getScale(_))||{x:1,y:1}:{x:1,y:1},O=ay(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:D,offsetParent:_,strategy:f}):D);return{top:(A.top-O.top+S.top)/P.y,bottom:(O.bottom-A.bottom+S.bottom)/P.y,left:(A.left-O.left+S.left)/P.x,right:(O.right-A.right+S.right)/P.x}}const bne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:c,elements:u,middlewareData:f}=t,{element:m,padding:g=0}=is(e,t)||{};if(m==null)return{};const h=Y9(g),y={x:n,y:r},x=f_(o),S=d_(x),N=await c.getDimensions(m),w=x==="y",A=w?"top":"left",D=w?"bottom":"right",_=w?"clientHeight":"clientWidth",P=s.reference[S]+s.reference[x]-y[x]-s.floating[S],O=y[x]-s.reference[x],C=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let j=C?C[_]:0;(!j||!await(c.isElement==null?void 0:c.isElement(C)))&&(j=u.floating[_]||s.floating[S]);const k=P/2-O/2,$=j/2-N[S]/2-1,B=gl(h[A],$),U=gl(h[D],$),H=B,G=j-N[S]-U,Y=j/2-N[S]/2+k,J=gT(H,Y,G),q=!f.arrow&&df(o)!=null&&Y!==J&&s.reference[S]/2-(Y<H?B:U)-N[S]/2<0,z=q?Y<H?Y-H:Y-G:0;return{[x]:y[x]+z,data:{[x]:J,centerOffset:Y-J-z,...q&&{alignmentOffset:z}},reset:q}}}),yne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:c,initialPlacement:u,platform:f,elements:m}=t,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:N=!0,...w}=is(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const A=os(o),D=eo(u),_=os(u)===u,P=await(f.isRTL==null?void 0:f.isRTL(m.floating)),O=y||(_||!N?[ry(u)]:dne(u)),C=S!=="none";!y&&C&&O.push(...pne(u,N,S,P));const j=[u,...O],k=await zh(t,w),$=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&$.push(k[A]),h){const Y=une(o,c,P);$.push(k[Y[0]],k[Y[1]])}if(B=[...B,{placement:o,overflows:$}],!$.every(Y=>Y<=0)){var U,H;const Y=(((U=s.flip)==null?void 0:U.index)||0)+1,J=j[Y];if(J&&(!(h==="alignment"?D!==eo(J):!1)||B.every(K=>eo(K.placement)===D?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:B},reset:{placement:J}};let q=(H=B.filter(z=>z.overflows[0]<=0).sort((z,K)=>z.overflows[1]-K.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(x){case"bestFit":{var G;const z=(G=B.filter(K=>{if(C){const te=eo(K.placement);return te===D||te==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(te=>te>0).reduce((te,ne)=>te+ne,0)]).sort((K,te)=>K[1]-te[1])[0])==null?void 0:G[0];z&&(q=z);break}case"initialPlacement":q=u;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function zI(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function UI(e){return one.some(t=>e[t]>=0)}const xne=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=is(e,t);switch(r){case"referenceHidden":{const s=await zh(t,{...o,elementContext:"reference"}),c=zI(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:UI(c)}}}case"escaped":{const s=await zh(t,{...o,altBoundary:!0}),c=zI(s,n.floating);return{data:{escapedOffsets:c,escaped:UI(c)}}}default:return{}}}}},Q9=new Set(["left","top"]);async function Nne(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=os(n),u=df(n),f=eo(n)==="y",m=Q9.has(c)?-1:1,g=s&&f?-1:1,h=is(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof S=="number"&&(x=u==="end"?S*-1:S),f?{x:x*g,y:y*m}:{x:y*m,y:x*g}}const wne=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:c,middlewareData:u}=t,f=await Nne(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:c}}}}},Ene=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:w=>{let{x:A,y:D}=w;return{x:A,y:D}}},...f}=is(e,t),m={x:n,y:r},g=await zh(t,f),h=eo(os(o)),y=u_(h);let x=m[y],S=m[h];if(s){const w=y==="y"?"top":"left",A=y==="y"?"bottom":"right",D=x+g[w],_=x-g[A];x=gT(D,x,_)}if(c){const w=h==="y"?"top":"left",A=h==="y"?"bottom":"right",D=S+g[w],_=S-g[A];S=gT(D,S,_)}const N=u.fn({...t,[y]:x,[h]:S});return{...N,data:{x:N.x-n,y:N.y-r,enabled:{[y]:s,[h]:c}}}}}},Sne=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=is(e,t),g={x:n,y:r},h=eo(o),y=u_(h);let x=g[y],S=g[h];const N=is(u,t),w=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(f){const _=y==="y"?"height":"width",P=s.reference[y]-s.floating[_]+w.mainAxis,O=s.reference[y]+s.reference[_]-w.mainAxis;x<P?x=P:x>O&&(x=O)}if(m){var A,D;const _=y==="y"?"width":"height",P=Q9.has(os(o)),O=s.reference[h]-s.floating[_]+(P&&((A=c.offset)==null?void 0:A[h])||0)+(P?0:w.crossAxis),C=s.reference[h]+s.reference[_]+(P?0:((D=c.offset)==null?void 0:D[h])||0)-(P?w.crossAxis:0);S<O?S=O:S>C&&(S=C)}return{[y]:x,[h]:S}}}},Ane=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:c,elements:u}=t,{apply:f=()=>{},...m}=is(e,t),g=await zh(t,m),h=os(o),y=df(o),x=eo(o)==="y",{width:S,height:N}=s.floating;let w,A;h==="top"||h==="bottom"?(w=h,A=y===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(A=h,w=y==="end"?"top":"bottom");const D=N-g.top-g.bottom,_=S-g.left-g.right,P=gl(N-g[w],D),O=gl(S-g[A],_),C=!t.middlewareData.shift;let j=P,k=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=_),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=D),C&&!y){const B=fa(g.left,0),U=fa(g.right,0),H=fa(g.top,0),G=fa(g.bottom,0);x?k=S-2*(B!==0||U!==0?B+U:fa(g.left,g.right)):j=N-2*(H!==0||G!==0?H+G:fa(g.top,g.bottom))}await f({...t,availableWidth:k,availableHeight:j});const $=await c.getDimensions(u.floating);return S!==$.width||N!==$.height?{reset:{rects:!0}}:{}}}};function xx(){return typeof window<"u"}function ff(e){return X9(e)?(e.nodeName||"").toLowerCase():"#document"}function ga(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ho(e){var t;return(t=(X9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X9(e){return xx()?e instanceof Node||e instanceof ga(e).Node:!1}function di(e){return xx()?e instanceof Element||e instanceof ga(e).Element:!1}function co(e){return xx()?e instanceof HTMLElement||e instanceof ga(e).HTMLElement:!1}function qI(e){return!xx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}const One=new Set(["inline","contents"]);function kp(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!One.has(o)}const Dne=new Set(["table","td","th"]);function Tne(e){return Dne.has(ff(e))}const Cne=[":popover-open",":modal"];function Nx(e){return Cne.some(t=>{try{return e.matches(t)}catch{return!1}})}const _ne=["transform","translate","scale","rotate","perspective"],Rne=["transform","translate","scale","rotate","perspective","filter"],jne=["paint","layout","strict","content"];function m_(e){const t=h_(),n=di(e)?fi(e):e;return _ne.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Rne.some(r=>(n.willChange||"").includes(r))||jne.some(r=>(n.contain||"").includes(r))}function Pne(e){let t=vl(e);for(;co(t)&&!Pd(t);){if(m_(t))return t;if(Nx(t))return null;t=vl(t)}return null}function h_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Mne=new Set(["html","body","#document"]);function Pd(e){return Mne.has(ff(e))}function fi(e){return ga(e).getComputedStyle(e)}function wx(e){return di(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vl(e){if(ff(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qI(e)&&e.host||ho(e);return qI(t)?t.host:t}function W9(e){const t=vl(e);return Pd(t)?e.ownerDocument?e.ownerDocument.body:e.body:co(t)&&kp(t)?t:W9(t)}function Uh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=W9(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ga(o);if(s){const u=bT(c);return t.concat(c,c.visualViewport||[],kp(o)?o:[],u&&n?Uh(u):[])}return t.concat(o,Uh(o,[],n))}function bT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Z9(e){const t=fi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=co(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:r,u=ny(n)!==s||ny(r)!==c;return u&&(n=s,r=c),{width:n,height:r,$:u}}function p_(e){return di(e)?e:e.contextElement}function Od(e){const t=p_(e);if(!co(t))return ao(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Z9(t);let c=(s?ny(n.width):n.width)/r,u=(s?ny(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const kne=ao(0);function J9(e){const t=ga(e);return!h_()||!t.visualViewport?kne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lne(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ga(e)?!1:t}function Mc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=p_(e);let c=ao(1);t&&(r?di(r)&&(c=Od(r)):c=Od(e));const u=Lne(s,n,r)?J9(s):ao(0);let f=(o.left+u.x)/c.x,m=(o.top+u.y)/c.y,g=o.width/c.x,h=o.height/c.y;if(s){const y=ga(s),x=r&&di(r)?ga(r):r;let S=y,N=bT(S);for(;N&&r&&x!==S;){const w=Od(N),A=N.getBoundingClientRect(),D=fi(N),_=A.left+(N.clientLeft+parseFloat(D.paddingLeft))*w.x,P=A.top+(N.clientTop+parseFloat(D.paddingTop))*w.y;f*=w.x,m*=w.y,g*=w.x,h*=w.y,f+=_,m+=P,S=ga(N),N=bT(S)}}return ay({width:g,height:h,x:f,y:m})}function Ex(e,t){const n=wx(e).scrollLeft;return t?t.left+n:Mc(ho(e)).left+n}function ez(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ex(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ine(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",c=ho(r),u=t?Nx(t.floating):!1;if(r===c||u&&s)return n;let f={scrollLeft:0,scrollTop:0},m=ao(1);const g=ao(0),h=co(r);if((h||!h&&!s)&&((ff(r)!=="body"||kp(c))&&(f=wx(r)),co(r))){const x=Mc(r);m=Od(r),g.x=x.x+r.clientLeft,g.y=x.y+r.clientTop}const y=c&&!h&&!s?ez(c,f):ao(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-f.scrollLeft*m.x+g.x+y.x,y:n.y*m.y-f.scrollTop*m.y+g.y+y.y}}function Vne(e){return Array.from(e.getClientRects())}function $ne(e){const t=ho(e),n=wx(e),r=e.ownerDocument.body,o=fa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=fa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Ex(e);const u=-n.scrollTop;return fi(r).direction==="rtl"&&(c+=fa(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:c,y:u}}const HI=25;function Bne(e,t){const n=ga(e),r=ho(e),o=n.visualViewport;let s=r.clientWidth,c=r.clientHeight,u=0,f=0;if(o){s=o.width,c=o.height;const g=h_();(!g||g&&t==="fixed")&&(u=o.offsetLeft,f=o.offsetTop)}const m=Ex(r);if(m<=0){const g=r.ownerDocument,h=g.body,y=getComputedStyle(h),x=g.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,S=Math.abs(r.clientWidth-h.clientWidth-x);S<=HI&&(s-=S)}else m<=HI&&(s+=m);return{width:s,height:c,x:u,y:f}}const zne=new Set(["absolute","fixed"]);function Une(e,t){const n=Mc(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=co(e)?Od(e):ao(1),c=e.clientWidth*s.x,u=e.clientHeight*s.y,f=o*s.x,m=r*s.y;return{width:c,height:u,x:f,y:m}}function FI(e,t,n){let r;if(t==="viewport")r=Bne(e,n);else if(t==="document")r=$ne(ho(e));else if(di(t))r=Une(t,n);else{const o=J9(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ay(r)}function tz(e,t){const n=vl(e);return n===t||!di(n)||Pd(n)?!1:fi(n).position==="fixed"||tz(n,t)}function qne(e,t){const n=t.get(e);if(n)return n;let r=Uh(e,[],!1).filter(u=>di(u)&&ff(u)!=="body"),o=null;const s=fi(e).position==="fixed";let c=s?vl(e):e;for(;di(c)&&!Pd(c);){const u=fi(c),f=m_(c);!f&&u.position==="fixed"&&(o=null),(s?!f&&!o:!f&&u.position==="static"&&!!o&&zne.has(o.position)||kp(c)&&!f&&tz(e,c))?r=r.filter(g=>g!==c):o=u,c=vl(c)}return t.set(e,r),r}function Hne(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Nx(t)?[]:qne(t,this._c):[].concat(n),r],u=c[0],f=c.reduce((m,g)=>{const h=FI(t,g,o);return m.top=fa(h.top,m.top),m.right=gl(h.right,m.right),m.bottom=gl(h.bottom,m.bottom),m.left=fa(h.left,m.left),m},FI(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Fne(e){const{width:t,height:n}=Z9(e);return{width:t,height:n}}function Kne(e,t,n){const r=co(t),o=ho(t),s=n==="fixed",c=Mc(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=ao(0);function m(){f.x=Ex(o)}if(r||!r&&!s)if((ff(t)!=="body"||kp(o))&&(u=wx(t)),r){const x=Mc(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else o&&m();s&&!r&&o&&m();const g=o&&!r&&!s?ez(o,u):ao(0),h=c.left+u.scrollLeft-f.x-g.x,y=c.top+u.scrollTop-f.y-g.y;return{x:h,y,width:c.width,height:c.height}}function NE(e){return fi(e).position==="static"}function KI(e,t){if(!co(e)||fi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ho(e)===n&&(n=n.ownerDocument.body),n}function nz(e,t){const n=ga(e);if(Nx(e))return n;if(!co(e)){let o=vl(e);for(;o&&!Pd(o);){if(di(o)&&!NE(o))return o;o=vl(o)}return n}let r=KI(e,t);for(;r&&Tne(r)&&NE(r);)r=KI(r,t);return r&&Pd(r)&&NE(r)&&!m_(r)?n:r||Pne(e)||n}const Gne=async function(e){const t=this.getOffsetParent||nz,n=this.getDimensions,r=await n(e.floating);return{reference:Kne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Yne(e){return fi(e).direction==="rtl"}const Qne={convertOffsetParentRelativeRectToViewportRelativeRect:Ine,getDocumentElement:ho,getClippingRect:Hne,getOffsetParent:nz,getElementRects:Gne,getClientRects:Vne,getDimensions:Fne,getScale:Od,isElement:di,isRTL:Yne};function rz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Xne(e,t){let n=null,r;const o=ho(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const m=e.getBoundingClientRect(),{left:g,top:h,width:y,height:x}=m;if(u||t(),!y||!x)return;const S=vb(h),N=vb(o.clientWidth-(g+y)),w=vb(o.clientHeight-(h+x)),A=vb(g),_={rootMargin:-S+"px "+-N+"px "+-w+"px "+-A+"px",threshold:fa(0,gl(1,f))||1};let P=!0;function O(C){const j=C[0].intersectionRatio;if(j!==f){if(!P)return c();j?c(!1,j):r=setTimeout(()=>{c(!1,1e-7)},1e3)}j===1&&!rz(m,e.getBoundingClientRect())&&c(),P=!1}try{n=new IntersectionObserver(O,{..._,root:o.ownerDocument})}catch{n=new IntersectionObserver(O,_)}n.observe(e)}return c(!0),s}function Wne(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,m=p_(e),g=o||s?[...m?Uh(m):[],...Uh(t)]:[];g.forEach(A=>{o&&A.addEventListener("scroll",n,{passive:!0}),s&&A.addEventListener("resize",n)});const h=m&&u?Xne(m,n):null;let y=-1,x=null;c&&(x=new ResizeObserver(A=>{let[D]=A;D&&D.target===m&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var _;(_=x)==null||_.observe(t)})),n()}),m&&!f&&x.observe(m),x.observe(t));let S,N=f?Mc(e):null;f&&w();function w(){const A=Mc(e);N&&!rz(N,A)&&n(),N=A,S=requestAnimationFrame(w)}return n(),()=>{var A;g.forEach(D=>{o&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),h?.(),(A=x)==null||A.disconnect(),x=null,f&&cancelAnimationFrame(S)}}const Zne=wne,Jne=Ene,ere=yne,tre=Ane,nre=xne,GI=bne,rre=Sne,are=(e,t,n)=>{const r=new Map,o={platform:Qne,...n},s={...o.platform,_c:r};return vne(e,t,{...o,platform:s})};var ire=typeof document<"u",ore=function(){},Hb=ire?R.useLayoutEffect:ore;function iy(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 n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!iy(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!iy(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function az(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YI(e,t){const n=az(e);return Math.round(t*n)/n}function wE(e){const t=R.useRef(e);return Hb(()=>{t.current=e}),t}function sre(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:c}={},transform:u=!0,whileElementsMounted:f,open:m}=e,[g,h]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=R.useState(r);iy(y,r)||x(r);const[S,N]=R.useState(null),[w,A]=R.useState(null),D=R.useCallback(K=>{K!==C.current&&(C.current=K,N(K))},[]),_=R.useCallback(K=>{K!==j.current&&(j.current=K,A(K))},[]),P=s||S,O=c||w,C=R.useRef(null),j=R.useRef(null),k=R.useRef(g),$=f!=null,B=wE(f),U=wE(o),H=wE(m),G=R.useCallback(()=>{if(!C.current||!j.current)return;const K={placement:t,strategy:n,middleware:y};U.current&&(K.platform=U.current),are(C.current,j.current,K).then(te=>{const ne={...te,isPositioned:H.current!==!1};Y.current&&!iy(k.current,ne)&&(k.current=ne,Pp.flushSync(()=>{h(ne)}))})},[y,t,n,U,H]);Hb(()=>{m===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,h(K=>({...K,isPositioned:!1})))},[m]);const Y=R.useRef(!1);Hb(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Hb(()=>{if(P&&(C.current=P),O&&(j.current=O),P&&O){if(B.current)return B.current(P,O,G);G()}},[P,O,G,B,$]);const J=R.useMemo(()=>({reference:C,floating:j,setReference:D,setFloating:_}),[D,_]),q=R.useMemo(()=>({reference:P,floating:O}),[P,O]),z=R.useMemo(()=>{const K={position:n,left:0,top:0};if(!q.floating)return K;const te=YI(q.floating,g.x),ne=YI(q.floating,g.y);return u?{...K,transform:"translate("+te+"px, "+ne+"px)",...az(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:ne}},[n,u,q.floating,g.x,g.y]);return R.useMemo(()=>({...g,update:G,refs:J,elements:q,floatingStyles:z}),[g,G,J,q,z])}const lre=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?GI({element:r.current,padding:o}).fn(n):{}:r?GI({element:r,padding:o}).fn(n):{}}}},cre=(e,t)=>({...Zne(e),options:[e,t]}),ure=(e,t)=>({...Jne(e),options:[e,t]}),dre=(e,t)=>({...rre(e),options:[e,t]}),fre=(e,t)=>({...ere(e),options:[e,t]}),mre=(e,t)=>({...tre(e),options:[e,t]}),hre=(e,t)=>({...nre(e),options:[e,t]}),pre=(e,t)=>({...lre(e),options:[e,t]});var gre="Arrow",iz=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return le.jsx(gt.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:le.jsx("polygon",{points:"0,0 30,0 15,10"})})});iz.displayName=gre;var vre=iz;function oz(e){const[t,n]=R.useState(void 0);return vr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,u;if("borderBoxSize"in s){const f=s.borderBoxSize,m=Array.isArray(f)?f[0]:f;c=m.inlineSize,u=m.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var g_="Popper",[sz,mf]=ds(g_),[bre,lz]=sz(g_),cz=e=>{const{__scopePopper:t,children:n}=e,[r,o]=R.useState(null);return le.jsx(bre,{scope:t,anchor:r,onAnchorChange:o,children:n})};cz.displayName=g_;var uz="PopperAnchor",dz=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=lz(uz,n),c=R.useRef(null),u=Mt(t,c),f=R.useRef(null);return R.useEffect(()=>{const m=f.current;f.current=r?.current||c.current,m!==f.current&&s.onAnchorChange(f.current)}),r?null:le.jsx(gt.div,{...o,ref:u})});dz.displayName=uz;var v_="PopperContent",[yre,xre]=sz(v_),fz=R.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:h="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:S,...N}=e,w=lz(v_,n),[A,D]=R.useState(null),_=Mt(t,ue=>D(ue)),[P,O]=R.useState(null),C=oz(P),j=C?.width??0,k=C?.height??0,$=r+(s!=="center"?"-"+s:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},U=Array.isArray(m)?m:[m],H=U.length>0,G={padding:B,boundary:U.filter(wre),altBoundary:H},{refs:Y,floatingStyles:J,placement:q,isPositioned:z,middlewareData:K}=sre({strategy:"fixed",placement:$,whileElementsMounted:(...ue)=>Wne(...ue,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[cre({mainAxis:o+k,alignmentAxis:c}),f&&ure({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?dre():void 0,...G}),f&&fre({...G}),mre({...G,apply:({elements:ue,rects:xe,availableWidth:me,availableHeight:ye})=>{const{width:de,height:ie}=xe.reference,ze=ue.floating.style;ze.setProperty("--radix-popper-available-width",`${me}px`),ze.setProperty("--radix-popper-available-height",`${ye}px`),ze.setProperty("--radix-popper-anchor-width",`${de}px`),ze.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),P&&pre({element:P,padding:u}),Ere({arrowWidth:j,arrowHeight:k}),y&&hre({strategy:"referenceHidden",...G})]}),[te,ne]=pz(q),L=lo(S);vr(()=>{z&&L?.()},[z,L]);const Q=K.arrow?.x,W=K.arrow?.y,ae=K.arrow?.centerOffset!==0,[ge,we]=R.useState();return vr(()=>{A&&we(window.getComputedStyle(A).zIndex)},[A]),le.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:z?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:le.jsx(yre,{scope:n,placedSide:te,onArrowChange:O,arrowX:Q,arrowY:W,shouldHideArrow:ae,children:le.jsx(gt.div,{"data-side":te,"data-align":ne,...N,ref:_,style:{...N.style,animation:z?void 0:"none"}})})})});fz.displayName=v_;var mz="PopperArrow",Nre={top:"bottom",right:"left",bottom:"top",left:"right"},hz=R.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=xre(mz,r),c=Nre[s.placedSide];return le.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:le.jsx(vre,{...o,ref:n,style:{...o.style,display:"block"}})})});hz.displayName=mz;function wre(e){return e!==null}var Ere=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,u=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[m,g]=pz(n),h={start:"0%",center:"50%",end:"100%"}[g],y=(o.arrow?.x??0)+u/2,x=(o.arrow?.y??0)+f/2;let S="",N="";return m==="bottom"?(S=c?h:`${y}px`,N=`${-f}px`):m==="top"?(S=c?h:`${y}px`,N=`${r.floating.height+f}px`):m==="right"?(S=`${-f}px`,N=c?h:`${x}px`):m==="left"&&(S=`${r.floating.width+f}px`,N=c?h:`${x}px`),{data:{x:S,y:N}}}});function pz(e){const[t,n="center"]=e.split("-");return[t,n]}var b_=cz,y_=dz,x_=fz,N_=hz,Sre="Portal",Lp=R.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=R.useState(!1);vr(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?U9.createPortal(le.jsx(gt.div,{...r,ref:t}),c):null});Lp.displayName=Sre;function Are(e,t){return R.useReducer((n,r)=>t[n][r]??n,e)}var po=e=>{const{present:t,children:n}=e,r=Ore(t),o=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),s=Mt(r.ref,Dre(o));return typeof n=="function"||r.isPresent?R.cloneElement(o,{ref:s}):null};po.displayName="Presence";function Ore(e){const[t,n]=R.useState(),r=R.useRef(null),o=R.useRef(e),s=R.useRef("none"),c=e?"mounted":"unmounted",[u,f]=Are(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const m=bb(r.current);s.current=u==="mounted"?m:"none"},[u]),vr(()=>{const m=r.current,g=o.current;if(g!==e){const y=s.current,x=bb(m);e?f("MOUNT"):x==="none"||m?.display==="none"?f("UNMOUNT"):f(g&&y!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),vr(()=>{if(t){let m;const g=t.ownerDocument.defaultView??window,h=x=>{const N=bb(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&N&&(f("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",m=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},y=x=>{x.target===t&&(s.current=bb(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{g.clearTimeout(m),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:R.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}function bb(e){return e?.animationName||"none"}function Dre(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tre=dx[" useInsertionEffect ".trim().toString()]||vr;function kc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=Cre({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:o;{const g=R.useRef(e!==void 0);R.useEffect(()=>{const h=g.current;h!==u&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=u},[u,r])}const m=R.useCallback(g=>{if(u){const h=_re(g)?g(e):g;h!==e&&c.current?.(h)}else s(g)},[u,e,s,c]);return[f,m]}function Cre({defaultProp:e,onChange:t}){const[n,r]=R.useState(e),o=R.useRef(n),s=R.useRef(t);return Tre(()=>{s.current=t},[t]),R.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function _re(e){return typeof e=="function"}var gz=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"}),Rre="VisuallyHidden",vz=R.forwardRef((e,t)=>le.jsx(gt.span,{...e,ref:t,style:{...gz,...e.style}}));vz.displayName=Rre;var jre=vz,[Sx]=ds("Tooltip",[mf]),Ax=mf(),bz="TooltipProvider",Pre=700,yT="tooltip.open",[Mre,w_]=Sx(bz),yz=e=>{const{__scopeTooltip:t,delayDuration:n=Pre,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,c=R.useRef(!0),u=R.useRef(!1),f=R.useRef(0);return R.useEffect(()=>{const m=f.current;return()=>window.clearTimeout(m)},[]),le.jsx(Mre,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(f.current),c.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.current=!0,r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:R.useCallback(m=>{u.current=m},[]),disableHoverableContent:o,children:s})};yz.displayName=bz;var qh="Tooltip",[kre,Ip]=Sx(qh),xz=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:u}=e,f=w_(qh,e.__scopeTooltip),m=Ax(t),[g,h]=R.useState(null),y=ro(),x=R.useRef(0),S=c??f.disableHoverableContent,N=u??f.delayDuration,w=R.useRef(!1),[A,D]=kc({prop:r,defaultProp:o??!1,onChange:j=>{j?(f.onOpen(),document.dispatchEvent(new CustomEvent(yT))):f.onClose(),s?.(j)},caller:qh}),_=R.useMemo(()=>A?w.current?"delayed-open":"instant-open":"closed",[A]),P=R.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,D(!0)},[D]),O=R.useCallback(()=>{window.clearTimeout(x.current),x.current=0,D(!1)},[D]),C=R.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,D(!0),x.current=0},N)},[N,D]);return R.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),le.jsx(b_,{...m,children:le.jsx(kre,{scope:t,contentId:y,open:A,stateAttribute:_,trigger:g,onTriggerChange:h,onTriggerEnter:R.useCallback(()=>{f.isOpenDelayedRef.current?C():P()},[f.isOpenDelayedRef,C,P]),onTriggerLeave:R.useCallback(()=>{S?O():(window.clearTimeout(x.current),x.current=0)},[O,S]),onOpen:P,onClose:O,disableHoverableContent:S,children:n})})};xz.displayName=qh;var xT="TooltipTrigger",Nz=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ip(xT,n),s=w_(xT,n),c=Ax(n),u=R.useRef(null),f=Mt(t,u,o.onTriggerChange),m=R.useRef(!1),g=R.useRef(!1),h=R.useCallback(()=>m.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),le.jsx(y_,{asChild:!0,...c,children:le.jsx(gt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:f,onPointerMove:Ie(e.onPointerMove,y=>{y.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Ie(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Ie(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Ie(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:Ie(e.onBlur,o.onClose),onClick:Ie(e.onClick,o.onClose)})})});Nz.displayName=xT;var E_="TooltipPortal",[Lre,Ire]=Sx(E_,{forceMount:void 0}),wz=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Ip(E_,t);return le.jsx(Lre,{scope:t,forceMount:n,children:le.jsx(po,{present:n||s.open,children:le.jsx(Lp,{asChild:!0,container:o,children:r})})})};wz.displayName=E_;var Md="TooltipContent",Ez=R.forwardRef((e,t)=>{const n=Ire(Md,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,c=Ip(Md,e.__scopeTooltip);return le.jsx(po,{present:r||c.open,children:c.disableHoverableContent?le.jsx(Sz,{side:o,...s,ref:t}):le.jsx(Vre,{side:o,...s,ref:t})})}),Vre=R.forwardRef((e,t)=>{const n=Ip(Md,e.__scopeTooltip),r=w_(Md,e.__scopeTooltip),o=R.useRef(null),s=Mt(t,o),[c,u]=R.useState(null),{trigger:f,onClose:m}=n,g=o.current,{onPointerInTransitChange:h}=r,y=R.useCallback(()=>{u(null),h(!1)},[h]),x=R.useCallback((S,N)=>{const w=S.currentTarget,A={x:S.clientX,y:S.clientY},D=Ure(A,w.getBoundingClientRect()),_=qre(A,D),P=Hre(N.getBoundingClientRect()),O=Kre([..._,...P]);u(O),h(!0)},[h]);return R.useEffect(()=>()=>y(),[y]),R.useEffect(()=>{if(f&&g){const S=w=>x(w,g),N=w=>x(w,f);return f.addEventListener("pointerleave",S),g.addEventListener("pointerleave",N),()=>{f.removeEventListener("pointerleave",S),g.removeEventListener("pointerleave",N)}}},[f,g,x,y]),R.useEffect(()=>{if(c){const S=N=>{const w=N.target,A={x:N.clientX,y:N.clientY},D=f?.contains(w)||g?.contains(w),_=!Fre(A,c);D?y():_&&(y(),m())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,g,c,m,y]),le.jsx(Sz,{...e,ref:s})}),[$re,Bre]=Sx(qh,{isInside:!1}),zre=Fte("TooltipContent"),Sz=R.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...u}=e,f=Ip(Md,n),m=Ax(n),{onClose:g}=f;return R.useEffect(()=>(document.addEventListener(yT,g),()=>document.removeEventListener(yT,g)),[g]),R.useEffect(()=>{if(f.trigger){const h=y=>{y.target?.contains(f.trigger)&&g()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,g]),le.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:h=>h.preventDefault(),onDismiss:g,children:le.jsxs(x_,{"data-state":f.stateAttribute,...m,...u,ref:t,style:{...u.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:[le.jsx(zre,{children:r}),le.jsx($re,{scope:n,isInside:!0,children:le.jsx(jre,{id:f.contentId,role:"tooltip",children:o||r})})]})})});Ez.displayName=Md;var Az="TooltipArrow",Oz=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ax(n);return Bre(Az,n).isInside?null:le.jsx(N_,{...o,...r,ref:t})});Oz.displayName=Az;function Ure(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function qre(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function Hre(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function Fre(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const u=t[s],f=t[c],m=u.x,g=u.y,h=f.x,y=f.y;g>r!=y>r&&n<(h-m)*(r-g)/(y-g)+m&&(o=!o)}return o}function Kre(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),Gre(t)}function Gre(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],c=t[t.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var Yre=yz,Qre=xz,Xre=Nz,Wre=wz,Zre=Ez,Jre=Oz;function Dz(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Dz(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function it(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dz(e))&&(r&&(r+=" "),r+=t);return r}const S_="-",eae=e=>{const t=nae(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const u=c.split(S_);return u[0]===""&&u.length!==1&&u.shift(),Tz(u,t)||tae(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&r[c]?[...f,...r[c]]:f}}},Tz=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Tz(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(S_);return t.validators.find(({validator:c})=>c(s))?.classGroupId},QI=/^\[(.+)\]$/,tae=e=>{if(QI.test(e)){const t=QI.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},nae=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)NT(n[o],r,o,t);return r},NT=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:XI(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(rae(o)){NT(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{NT(c,XI(t,s),n,r)})})},XI=(e,t)=>{let n=e;return t.split(S_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},rae=e=>e.isThemeGetter,aae=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=r.get(s))!==void 0)return o(s,c),c},set(s,c){n.has(s)?n.set(s,c):o(s,c)}}},wT="!",ET=":",iae=ET.length,oae=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let c=0,u=0,f=0,m;for(let S=0;S<o.length;S++){let N=o[S];if(c===0&&u===0){if(N===ET){s.push(o.slice(f,S)),f=S+iae;continue}if(N==="/"){m=S;continue}}N==="["?c++:N==="]"?c--:N==="("?u++:N===")"&&u--}const g=s.length===0?o:o.substring(f),h=sae(g),y=h!==g,x=m&&m>f?m-f:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:h,maybePostfixModifierPosition:x}};if(t){const o=t+ET,s=r;r=c=>c.startsWith(o)?s(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},sae=e=>e.endsWith(wT)?e.substring(0,e.length-1):e.startsWith(wT)?e.substring(1):e,lae=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(c=>{c[0]==="["||t[c]?(o.push(...s.sort(),c),s=[]):s.push(c)}),o.push(...s.sort()),o}},cae=e=>({cache:aae(e.cacheSize),parseClassName:oae(e),sortModifiers:lae(e),...eae(e)}),uae=/\s+/,dae=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],u=e.trim().split(uae);let f="";for(let m=u.length-1;m>=0;m-=1){const g=u[m],{isExternal:h,modifiers:y,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:N}=n(g);if(h){f=g+(f.length>0?" "+f:f);continue}let w=!!N,A=r(w?S.substring(0,N):S);if(!A){if(!w){f=g+(f.length>0?" "+f:f);continue}if(A=r(S),!A){f=g+(f.length>0?" "+f:f);continue}w=!1}const D=s(y).join(":"),_=x?D+wT:D,P=_+A;if(c.includes(P))continue;c.push(P);const O=o(A,w);for(let C=0;C<O.length;++C){const j=O[C];c.push(_+j)}f=g+(f.length>0?" "+f:f)}return f};function fae(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Cz(t))&&(r&&(r+=" "),r+=n);return r}const Cz=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Cz(e[r]))&&(n&&(n+=" "),n+=t);return n};function mae(e,...t){let n,r,o,s=c;function c(f){const m=t.reduce((g,h)=>h(g),e());return n=cae(m),r=n.cache.get,o=n.cache.set,s=u,u(f)}function u(f){const m=r(f);if(m)return m;const g=dae(f,n);return o(f,g),g}return function(){return s(fae.apply(null,arguments))}}const kn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},_z=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rz=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hae=/^\d+\/\d+$/,pae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gae=/\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$/,vae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fd=e=>hae.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),rl=e=>!!e&&Number.isInteger(Number(e)),EE=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Qo=e=>pae.test(e),xae=()=>!0,Nae=e=>gae.test(e)&&!vae.test(e),jz=()=>!1,wae=e=>bae.test(e),Eae=e=>yae.test(e),Sae=e=>!ke(e)&&!Le(e),Aae=e=>hf(e,kz,jz),ke=e=>_z.test(e),fc=e=>hf(e,Lz,Nae),SE=e=>hf(e,_ae,ht),WI=e=>hf(e,Pz,jz),Oae=e=>hf(e,Mz,Eae),yb=e=>hf(e,Iz,wae),Le=e=>Rz.test(e),oh=e=>pf(e,Lz),Dae=e=>pf(e,Rae),ZI=e=>pf(e,Pz),Tae=e=>pf(e,kz),Cae=e=>pf(e,Mz),xb=e=>pf(e,Iz,!0),hf=(e,t,n)=>{const r=_z.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},pf=(e,t,n=!1)=>{const r=Rz.exec(e);return r?r[1]?t(r[1]):n:!1},Pz=e=>e==="position"||e==="percentage",Mz=e=>e==="image"||e==="url",kz=e=>e==="length"||e==="size"||e==="bg-size",Lz=e=>e==="length",_ae=e=>e==="number",Rae=e=>e==="family-name",Iz=e=>e==="shadow",jae=()=>{const e=kn("color"),t=kn("font"),n=kn("text"),r=kn("font-weight"),o=kn("tracking"),s=kn("leading"),c=kn("breakpoint"),u=kn("container"),f=kn("spacing"),m=kn("radius"),g=kn("shadow"),h=kn("inset-shadow"),y=kn("text-shadow"),x=kn("drop-shadow"),S=kn("blur"),N=kn("perspective"),w=kn("aspect"),A=kn("ease"),D=kn("animate"),_=()=>["auto","avoid","all","avoid-page","page","left","right","column"],P=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...P(),Le,ke],C=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],k=()=>[Le,ke,f],$=()=>[fd,"full","auto",...k()],B=()=>[rl,"none","subgrid",Le,ke],U=()=>["auto",{span:["full",rl,Le,ke]},rl,Le,ke],H=()=>[rl,"auto",Le,ke],G=()=>["auto","min","max","fr",Le,ke],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...k()],z=()=>[fd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],K=()=>[e,Le,ke],te=()=>[...P(),ZI,WI,{position:[Le,ke]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Tae,Aae,{size:[Le,ke]}],Q=()=>[EE,oh,fc],W=()=>["","none","full",m,Le,ke],ae=()=>["",ht,oh,fc],ge=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[ht,EE,ZI,WI],xe=()=>["","none",S,Le,ke],me=()=>["none",ht,Le,ke],ye=()=>["none",ht,Le,ke],de=()=>[ht,Le,ke],ie=()=>[fd,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qo],breakpoint:[Qo],color:[xae],container:[Qo],"drop-shadow":[Qo],ease:["in","out","in-out"],font:[Sae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qo],shadow:[Qo],spacing:["px",ht],text:[Qo],"text-shadow":[Qo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fd,ke,Le,w]}],container:["container"],columns:[{columns:[ht,ke,Le,u]}],"break-after":[{"break-after":_()}],"break-before":[{"break-before":_()}],"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"],sr:["sr-only","not-sr-only"],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:O()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[rl,"auto",Le,ke]}],basis:[{basis:[fd,"full","auto",u,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,fd,"auto","initial","none",ke]}],grow:[{grow:["",ht,Le,ke]}],shrink:[{shrink:["",ht,Le,ke]}],order:[{order:[rl,"first","last","none",Le,ke]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[u,"screen",...z()]}],"min-w":[{"min-w":[u,"screen","none",...z()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",n,oh,fc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Le,SE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",EE,ke]}],"font-family":[{font:[Dae,ke,t]}],"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:[o,Le,ke]}],"line-clamp":[{"line-clamp":[ht,"none",Le,SE]}],leading:[{leading:[s,...k()]}],"list-image":[{"list-image":["none",Le,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Le,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",Le,fc]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[ht,"auto",Le,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le,ke]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rl,Le,ke],radial:["",Le,ke],conic:[rl,Le,ke]},Cae,Oae]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,Le,ke]}],"outline-w":[{outline:["",ht,oh,fc]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",g,xb,yb]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",h,xb,yb]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ht,fc]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",y,xb,yb]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[ht,Le,ke]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Le,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Le,ke]}],filter:[{filter:["","none",Le,ke]}],blur:[{blur:xe()}],brightness:[{brightness:[ht,Le,ke]}],contrast:[{contrast:[ht,Le,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,xb,yb]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",ht,Le,ke]}],"hue-rotate":[{"hue-rotate":[ht,Le,ke]}],invert:[{invert:["",ht,Le,ke]}],saturate:[{saturate:[ht,Le,ke]}],sepia:[{sepia:["",ht,Le,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Le,ke]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[ht,Le,ke]}],"backdrop-contrast":[{"backdrop-contrast":[ht,Le,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,Le,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,Le,ke]}],"backdrop-invert":[{"backdrop-invert":["",ht,Le,ke]}],"backdrop-opacity":[{"backdrop-opacity":[ht,Le,ke]}],"backdrop-saturate":[{"backdrop-saturate":[ht,Le,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,Le,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Le,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",Le,ke]}],ease:[{ease:["linear","initial",A,Le,ke]}],delay:[{delay:[ht,Le,ke]}],animate:[{animate:["none",D,Le,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Le,ke]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:me()}],"rotate-x":[{"rotate-x":me()}],"rotate-y":[{"rotate-y":me()}],"rotate-z":[{"rotate-z":me()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[Le,ke,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Le,ke]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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",Le,ke]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[ht,oh,fc,SE]}],stroke:[{stroke:["none",...K()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Pae=mae(jae);function wt(...e){return Pae(it(e))}function A_({delayDuration:e=0,...t}){return b.jsxDEV(Yre,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:11,columnNumber:5},this)}function AE({...e}){return b.jsxDEV(A_,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:b.jsxDEV(Qre,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:24,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:23,columnNumber:5},this)}function OE({...e}){return b.jsxDEV(Xre,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:32,columnNumber:10},this)}function DE({className:e,sideOffset:t=0,children:n,...r}){return b.jsxDEV(Wre,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:b.jsxDEV(Zre,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:t,className:wt("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,b.jsxDEV(Jre,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:43,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:42,columnNumber:5},this)}const JI=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,eV=it,O_=(e,t)=>n=>{var r;if(t?.variants==null)return eV(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,c=Object.keys(o).map(m=>{const g=n?.[m],h=s?.[m];if(g===null)return null;const y=JI(g)||JI(h);return o[m][y]}),u=n&&Object.entries(n).reduce((m,g)=>{let[h,y]=g;return y===void 0||(m[h]=y),m},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((m,g)=>{let{class:h,className:y,...x}=g;return Object.entries(x).every(S=>{let[N,w]=S;return Array.isArray(w)?w.includes({...s,...u}[N]):{...s,...u}[N]===w})?[...m,h,y]:m},[]);return eV(e,c,f,n?.class,n?.className)},Mae=O_("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function rt({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?q9:"button";return b.jsxDEV(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:wt(Mae({variant:t,size:n,className:e})),...o},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/button.tsx",lineNumber:52,columnNumber:5},this)}function At({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:wt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:7,columnNumber:5},this)}function ha({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:wt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:20,columnNumber:5},this)}function pa({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:wt("leading-none font-semibold",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:33,columnNumber:5},this)}function Vz({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:wt("text-muted-foreground text-sm",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:43,columnNumber:5},this)}function Ot({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:wt("px-6",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/card.tsx",lineNumber:66,columnNumber:5},this)}/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kae=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$z=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Lae={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"};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Iae=R.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:c,...u},f)=>R.createElement("svg",{ref:f,...Lae,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$z("lucide",o),...u},[...c.map(([m,g])=>R.createElement(m,g)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ge=(e,t)=>{const n=R.forwardRef(({className:r,...o},s)=>R.createElement(Iae,{ref:s,iconNode:t,className:$z(`lucide-${kae(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oy=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yd=Ge("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bz=Ge("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vae=Ge("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vh=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $ae=Ge("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Bae=Ge("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zae=Ge("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const D_=Ge("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zz=Ge("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uz=Ge("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ST=Ge("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mi=Ge("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hh=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uae=Ge("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vp=Ge("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const T_=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qae=Ge("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hae=Ge("FileCheck",[["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:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qz=Ge("FileText",[["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:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fae=Ge("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lc=Ge("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kae=Ge("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C_=Ge("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fb=Ge("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gae=Ge("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yae=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fr=Ge("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qae=Ge("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xae=Ge("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Wae=Ge("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hz=Ge("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const AT=Ge("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ox=Ge("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zae=Ge("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eu=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jae=Ge("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eie=Ge("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fz=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tie=Ge("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bl=Ge("Shield",[["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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OT=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kz=Ge("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gz=Ge("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nie=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yz=Ge("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ic=Ge("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"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DT=Ge("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rie=Ge("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aie=Ge("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iie=Ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dh=Ge("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function oie(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,o,s,c=[],u="",f=e.split("/");for(f[0]||f.shift();o=f.shift();)n=o[0],n==="*"?(c.push(n),u+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=o.indexOf("?",1),s=o.indexOf(".",1),c.push(o.substring(1,~r?r:~s?s:o.length)),u+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(u+=(~r?"?":"")+"\\"+o.substring(s))):u+="/"+o;return{keys:c,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}const sie=dx.useInsertionEffect,lie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cie=lie?R.useLayoutEffect:R.useEffect,uie=sie||cie,Qz=e=>{const t=R.useRef([e,(...n)=>t[0](...n)]).current;return uie(()=>{t[0]=e}),t[1]},die="popstate",__="pushState",R_="replaceState",fie="hashchange",tV=[die,__,R_,fie],mie=e=>{for(const t of tV)addEventListener(t,e);return()=>{for(const t of tV)removeEventListener(t,e)}},Xz=(e,t)=>O9.useSyncExternalStore(mie,e,t),hie=()=>location.search,pie=({ssrSearch:e=""}={})=>Xz(hie,()=>e),nV=()=>location.pathname,gie=({ssrPath:e}={})=>Xz(nV,e?()=>e:nV),vie=(e,{replace:t=!1,state:n=null}={})=>history[t?R_:__](n,"",e),bie=(e={})=>[gie(e),vie],rV=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[rV]>"u"){for(const e of[__,R_]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,rV,{value:!0})}const yie=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Wz=(e="")=>e==="/"?"":e,xie=(e,t)=>e[0]==="~"?e.slice(1):Wz(t)+e,Nie=(e="",t)=>yie(aV(Wz(e)),aV(t)),aV=e=>{try{return decodeURI(e)}catch{return e}},Zz={hook:bie,searchHook:pie,parser:oie,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},Jz=R.createContext(Zz),$p=()=>R.useContext(Jz),eU={},tU=R.createContext(eU),wie=()=>R.useContext(tU),Dx=e=>{const[t,n]=e.hook(e);return[Nie(e.base,t),Qz((r,o)=>n(xie(r,e.base),o))]},j_=()=>Dx($p()),nU=(e,t,n,r)=>{const{pattern:o,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),c=o.exec(n)||[],[u,...f]=c;return u!==void 0?[!0,(()=>{const m=s!==!1?Object.fromEntries(s.map((h,y)=>[h,f[y]])):c.groups;let g={...f};return m&&Object.assign(g,m),g})(),...r?[u]:[]]:[!1,null]},Eie=({children:e,...t})=>{const n=$p(),r=t.hook?Zz:n;let o=r;const[s,c]=t.ssrPath?.split("?")??[];c&&(t.ssrSearch=c,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let u=R.useRef({}),f=u.current,m=f;for(let g in r){const h=g==="base"?r[g]+(t[g]||""):t[g]||r[g];f===m&&h!==m[g]&&(u.current=m={...m}),m[g]=h,(h!==r[g]||h!==o[g])&&(o=m)}return R.createElement(Jz.Provider,{value:o,children:e})},iV=({children:e,component:t},n)=>t?R.createElement(t,{params:n}):typeof e=="function"?e(n):e,Sie=e=>{let t=R.useRef(eU);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,o])=>o!==n[r])?e:n},ca=({path:e,nest:t,match:n,...r})=>{const o=$p(),[s]=Dx(o),[c,u,f]=n??nU(o.parser,e,s,t),m=Sie({...wie(),...u});if(!c)return null;const g=f?R.createElement(Eie,{base:f},iV(r,m)):iV(r,m);return R.createElement(tU.Provider,{value:m,children:g})},Aie=R.forwardRef((e,t)=>{const n=$p(),[r,o]=Dx(n),{to:s="",href:c=s,onClick:u,asChild:f,children:m,className:g,replace:h,state:y,...x}=e,S=Qz(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(u?.(w),w.defaultPrevented||(w.preventDefault(),o(c,e)))}),N=n.hrefs(c[0]==="~"?c.slice(1):n.base+c,n);return f&&R.isValidElement(m)?R.cloneElement(m,{onClick:S,href:N}):R.createElement("a",{...x,onClick:S,href:N,className:g?.call?g(r===c):g,children:m,ref:t})}),TT=e=>Array.isArray(e)?e.flatMap(t=>TT(t&&t.type===R.Fragment?t.props.children:t)):[e],Oie=({children:e,location:t})=>{const n=$p(),[r]=Dx(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),TT(e).forEach(s=>{if(R.isValidElement(s)&&s.props.path){const c=s.props.path;window.__WOUTER_ROUTES__.includes(c)||window.__WOUTER_ROUTES__.push(c)}}));for(const o of TT(e)){let s=0;if(R.isValidElement(o)&&(s=nU(n.parser,o.props.path,t||r,o.props.nest))[0])return R.cloneElement(o,{match:s})}return null};function oV(){const[,e]=j_(),t=()=>{e("/")};return b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:b.jsxDEV(At,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:19,columnNumber:15},this),b.jsxDEV(ST,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:20,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:18,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:17,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:24,columnNumber:11},this),b.jsxDEV("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:26,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",b.jsxDEV("br",{"data-loc":"client/src/pages/NotFound.tsx:32"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:32,columnNumber:13},this),"It may have been moved or deleted."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:30,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:b.jsxDEV(rt,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[b.jsxDEV(Kae,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:44,columnNumber:15},this),"Go Home"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:40,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:36,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:16,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:14,columnNumber:5},this)}class Die extends R.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?b.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:b.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[b.jsxDEV(Ic,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:29,columnNumber:13},this),b.jsxDEV("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:34,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:b.jsxDEV("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:37,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:36,columnNumber:13},this),b.jsxDEV("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:wt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[b.jsxDEV(Jae,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:50,columnNumber:15},this),"Reload Page"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:42,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:28,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ErrorBoundary.tsx",lineNumber:27,columnNumber:9},this):this.props.children}}const Tie=R.createContext(void 0);function Cie({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,o]=R.useState(()=>n&&localStorage.getItem("theme")||t);R.useEffect(()=>{const c=document.documentElement;r==="dark"?c.classList.add("dark"):c.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const s=n?()=>{o(c=>c==="light"?"dark":"light")}:void 0;return b.jsxDEV(Tie.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:s,switchable:n},children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/contexts/ThemeContext.tsx",lineNumber:52,columnNumber:5},this)}var TE="focusScope.autoFocusOnMount",CE="focusScope.autoFocusOnUnmount",sV={bubbles:!1,cancelable:!0},_ie="FocusScope",Tx=R.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[u,f]=R.useState(null),m=lo(o),g=lo(s),h=R.useRef(null),y=Mt(t,N=>f(N)),x=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(r){let N=function(_){if(x.paused||!u)return;const P=_.target;u.contains(P)?h.current=P:il(h.current,{select:!0})},w=function(_){if(x.paused||!u)return;const P=_.relatedTarget;P!==null&&(u.contains(P)||il(h.current,{select:!0}))},A=function(_){if(document.activeElement===document.body)for(const O of _)O.removedNodes.length>0&&il(u)};document.addEventListener("focusin",N),document.addEventListener("focusout",w);const D=new MutationObserver(A);return u&&D.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",w),D.disconnect()}}},[r,u,x.paused]),R.useEffect(()=>{if(u){cV.add(x);const N=document.activeElement;if(!u.contains(N)){const A=new CustomEvent(TE,sV);u.addEventListener(TE,m),u.dispatchEvent(A),A.defaultPrevented||(Rie(Lie(rU(u)),{select:!0}),document.activeElement===N&&il(u))}return()=>{u.removeEventListener(TE,m),setTimeout(()=>{const A=new CustomEvent(CE,sV);u.addEventListener(CE,g),u.dispatchEvent(A),A.defaultPrevented||il(N??document.body,{select:!0}),u.removeEventListener(CE,g),cV.remove(x)},0)}}},[u,m,g,x]);const S=R.useCallback(N=>{if(!n&&!r||x.paused)return;const w=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,A=document.activeElement;if(w&&A){const D=N.currentTarget,[_,P]=jie(D);_&&P?!N.shiftKey&&A===P?(N.preventDefault(),n&&il(_,{select:!0})):N.shiftKey&&A===_&&(N.preventDefault(),n&&il(P,{select:!0})):A===D&&N.preventDefault()}},[n,r,x.paused]);return le.jsx(gt.div,{tabIndex:-1,...c,ref:y,onKeyDown:S})});Tx.displayName=_ie;function Rie(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(il(r,{select:t}),document.activeElement!==n)return}function jie(e){const t=rU(e),n=lV(t,e),r=lV(t.reverse(),e);return[n,r]}function rU(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function lV(e,t){for(const n of e)if(!Pie(n,{upTo:t}))return n}function Pie(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}function Mie(e){return e instanceof HTMLInputElement&&"select"in e}function il(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Mie(e)&&t&&e.select()}}var cV=kie();function kie(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=uV(e,t),e.unshift(t)},remove(t){e=uV(e,t),e[0]?.resume()}}}function uV(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lie(e){return e.filter(t=>t.tagName!=="A")}var _E=0;function P_(){R.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dV()),document.body.insertAdjacentElement("beforeend",e[1]??dV()),_E++,()=>{_E===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),_E--}},[])}function dV(){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}var Zi=function(){return Zi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Zi.apply(this,arguments)};function aU(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Iie(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Kb="right-scroll-bar-position",Gb="width-before-scroll-bar",Vie="with-scroll-bars-hidden",$ie="--removed-body-scroll-bar-size";function RE(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bie(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var zie=typeof window<"u"?R.useLayoutEffect:R.useEffect,fV=new WeakMap;function Uie(e,t){var n=Bie(null,function(r){return e.forEach(function(o){return RE(o,r)})});return zie(function(){var r=fV.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(u){s.has(u)||RE(u,null)}),s.forEach(function(u){o.has(u)||RE(u,c)})}fV.set(n,e)},[e]),n}function qie(e){return e}function Hie(e,t){t===void 0&&(t=qie);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var c=t(s,r);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(s),c=n}var f=function(){var g=c;c=[],g.forEach(s)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(g){c.push(g),m()},filter:function(g){return c=c.filter(g),n}}}};return o}function Fie(e){e===void 0&&(e={});var t=Hie(null);return t.options=Zi({async:!0,ssr:!1},e),t}var iU=function(e){var t=e.sideCar,n=aU(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return R.createElement(r,Zi({},n))};iU.isSideCarExport=!0;function Kie(e,t){return e.useMedium(t),iU}var oU=Fie(),jE=function(){},Cx=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:jE,onWheelCapture:jE,onTouchMoveCapture:jE}),o=r[0],s=r[1],c=e.forwardProps,u=e.children,f=e.className,m=e.removeScrollBar,g=e.enabled,h=e.shards,y=e.sideCar,x=e.noRelative,S=e.noIsolation,N=e.inert,w=e.allowPinchZoom,A=e.as,D=A===void 0?"div":A,_=e.gapMode,P=aU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=y,C=Uie([n,t]),j=Zi(Zi({},P),o);return R.createElement(R.Fragment,null,g&&R.createElement(O,{sideCar:oU,removeScrollBar:m,shards:h,noRelative:x,noIsolation:S,inert:N,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:_}),c?R.cloneElement(R.Children.only(u),Zi(Zi({},j),{ref:C})):R.createElement(D,Zi({},j,{className:f,ref:C}),u))});Cx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Cx.classNames={fullWidth:Gb,zeroRight:Kb};var Gie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Gie();return t&&e.setAttribute("nonce",t),e}function Qie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yie())&&(Qie(t,n),Xie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Zie=function(){var e=Wie();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},sU=function(){var e=Zie(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Jie={left:0,top:0,right:0,gap:0},PE=function(e){return parseInt(e||"",10)||0},eoe=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[PE(n),PE(r),PE(o)]},toe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Jie;var t=eoe(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},noe=sU(),Dd="data-scroll-locked",roe=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Vie,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(u,"px ").concat(r,`;
}
body[`).concat(Dd,`] {
overflow: hidden `).concat(r,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(s,`px;
padding-right: `).concat(c,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(u,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(Kb,` {
right: `).concat(u,"px ").concat(r,`;
}
.`).concat(Gb,` {
margin-right: `).concat(u,"px ").concat(r,`;
}
.`).concat(Kb," .").concat(Kb,` {
right: 0 `).concat(r,`;
}
.`).concat(Gb," .").concat(Gb,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Dd,`] {
`).concat($ie,": ").concat(u,`px;
}
`)},mV=function(){var e=parseInt(document.body.getAttribute(Dd)||"0",10);return isFinite(e)?e:0},aoe=function(){R.useEffect(function(){return document.body.setAttribute(Dd,(mV()+1).toString()),function(){var e=mV()-1;e<=0?document.body.removeAttribute(Dd):document.body.setAttribute(Dd,e.toString())}},[])},ioe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;aoe();var s=R.useMemo(function(){return toe(o)},[o]);return R.createElement(noe,{styles:roe(s,!t,o,n?"":"!important")})},CT=!1;if(typeof window<"u")try{var Nb=Object.defineProperty({},"passive",{get:function(){return CT=!0,!0}});window.addEventListener("test",Nb,Nb),window.removeEventListener("test",Nb,Nb)}catch{CT=!1}var md=CT?{passive:!1}:!1,ooe=function(e){return e.tagName==="TEXTAREA"},lU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ooe(e)&&n[t]==="visible")},soe=function(e){return lU(e,"overflowY")},loe=function(e){return lU(e,"overflowX")},hV=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=cU(e,r);if(o){var s=uU(e,r),c=s[1],u=s[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},coe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uoe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},cU=function(e,t){return e==="v"?soe(t):loe(t)},uU=function(e,t){return e==="v"?coe(t):uoe(t)},doe=function(e,t){return e==="h"&&t==="rtl"?-1:1},foe=function(e,t,n,r,o){var s=doe(e,window.getComputedStyle(t).direction),c=s*r,u=n.target,f=t.contains(u),m=!1,g=c>0,h=0,y=0;do{if(!u)break;var x=uU(e,u),S=x[0],N=x[1],w=x[2],A=N-w-s*S;(S||A)&&cU(e,u)&&(h+=A,y+=S);var D=u.parentNode;u=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(g&&Math.abs(h)<1||!g&&Math.abs(y)<1)&&(m=!0),m},wb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pV=function(e){return[e.deltaX,e.deltaY]},gV=function(e){return e&&"current"in e?e.current:e},moe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hoe=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},poe=0,hd=[];function goe(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),o=R.useState(poe++)[0],s=R.useState(sU)[0],c=R.useRef(e);R.useEffect(function(){c.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var N=Iie([e.lockRef.current],(e.shards||[]).map(gV),!0).filter(Boolean);return N.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),N.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=R.useCallback(function(N,w){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!c.current.allowPinchZoom;var A=wb(N),D=n.current,_="deltaX"in N?N.deltaX:D[0]-A[0],P="deltaY"in N?N.deltaY:D[1]-A[1],O,C=N.target,j=Math.abs(_)>Math.abs(P)?"h":"v";if("touches"in N&&j==="h"&&C.type==="range")return!1;var k=hV(j,C);if(!k)return!0;if(k?O=j:(O=j==="v"?"h":"v",k=hV(j,C)),!k)return!1;if(!r.current&&"changedTouches"in N&&(_||P)&&(r.current=O),!O)return!0;var $=r.current||O;return foe($,w,N,$==="h"?_:P)},[]),f=R.useCallback(function(N){var w=N;if(!(!hd.length||hd[hd.length-1]!==s)){var A="deltaY"in w?pV(w):wb(w),D=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&moe(O.delta,A)})[0];if(D&&D.should){w.cancelable&&w.preventDefault();return}if(!D){var _=(c.current.shards||[]).map(gV).filter(Boolean).filter(function(O){return O.contains(w.target)}),P=_.length>0?u(w,_[0]):!c.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),m=R.useCallback(function(N,w,A,D){var _={name:N,delta:w,target:A,should:D,shadowParent:voe(A)};t.current.push(_),setTimeout(function(){t.current=t.current.filter(function(P){return P!==_})},1)},[]),g=R.useCallback(function(N){n.current=wb(N),r.current=void 0},[]),h=R.useCallback(function(N){m(N.type,pV(N),N.target,u(N,e.lockRef.current))},[]),y=R.useCallback(function(N){m(N.type,wb(N),N.target,u(N,e.lockRef.current))},[]);R.useEffect(function(){return hd.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",f,md),document.addEventListener("touchmove",f,md),document.addEventListener("touchstart",g,md),function(){hd=hd.filter(function(N){return N!==s}),document.removeEventListener("wheel",f,md),document.removeEventListener("touchmove",f,md),document.removeEventListener("touchstart",g,md)}},[]);var x=e.removeScrollBar,S=e.inert;return R.createElement(R.Fragment,null,S?R.createElement(s,{styles:hoe(o)}):null,x?R.createElement(ioe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function voe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const boe=Kie(oU,goe);var _x=R.forwardRef(function(e,t){return R.createElement(Cx,Zi({},e,{ref:t,sideCar:boe}))});_x.classNames=Cx.classNames;var yoe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pd=new WeakMap,Eb=new WeakMap,Sb={},ME=0,dU=function(e){return e&&(e.host||dU(e.parentNode))},xoe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=dU(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Noe=function(e,t,n,r){var o=xoe(t,Array.isArray(e)?e:[e]);Sb[n]||(Sb[n]=new WeakMap);var s=Sb[n],c=[],u=new Set,f=new Set(o),m=function(h){!h||u.has(h)||(u.add(h),m(h.parentNode))};o.forEach(m);var g=function(h){!h||f.has(h)||Array.prototype.forEach.call(h.children,function(y){if(u.has(y))g(y);else try{var x=y.getAttribute(r),S=x!==null&&x!=="false",N=(pd.get(y)||0)+1,w=(s.get(y)||0)+1;pd.set(y,N),s.set(y,w),c.push(y),N===1&&S&&Eb.set(y,!0),w===1&&y.setAttribute(n,"true"),S||y.setAttribute(r,"true")}catch(A){console.error("aria-hidden: cannot operate on ",y,A)}})};return g(t),u.clear(),ME++,function(){c.forEach(function(h){var y=pd.get(h)-1,x=s.get(h)-1;pd.set(h,y),s.set(h,x),y||(Eb.has(h)||h.removeAttribute(r),Eb.delete(h)),x||h.removeAttribute(n)}),ME--,ME||(pd=new WeakMap,pd=new WeakMap,Eb=new WeakMap,Sb={})}},M_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=yoe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Noe(r,o,n,"aria-hidden")):function(){return null}},Rx="Dialog",[fU]=ds(Rx),[woe,pi]=fU(Rx),mU=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,u=R.useRef(null),f=R.useRef(null),[m,g]=kc({prop:r,defaultProp:o??!1,onChange:s,caller:Rx});return le.jsx(woe,{scope:t,triggerRef:u,contentRef:f,contentId:ro(),titleId:ro(),descriptionId:ro(),open:m,onOpenChange:g,onOpenToggle:R.useCallback(()=>g(h=>!h),[g]),modal:c,children:n})};mU.displayName=Rx;var hU="DialogTrigger",pU=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(hU,n),s=Mt(t,o.triggerRef);return le.jsx(gt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I_(o.open),...r,ref:s,onClick:Ie(e.onClick,o.onOpenToggle)})});pU.displayName=hU;var k_="DialogPortal",[Eoe,gU]=fU(k_,{forceMount:void 0}),vU=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=pi(k_,t);return le.jsx(Eoe,{scope:t,forceMount:n,children:R.Children.map(r,c=>le.jsx(po,{present:n||s.open,children:le.jsx(Lp,{asChild:!0,container:o,children:c})}))})};vU.displayName=k_;var sy="DialogOverlay",bU=R.forwardRef((e,t)=>{const n=gU(sy,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=pi(sy,e.__scopeDialog);return s.modal?le.jsx(po,{present:r||s.open,children:le.jsx(Aoe,{...o,ref:t})}):null});bU.displayName=sy;var Soe=Pc("DialogOverlay.RemoveScroll"),Aoe=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(sy,n);return le.jsx(_x,{as:Soe,allowPinchZoom:!0,shards:[o.contentRef],children:le.jsx(gt.div,{"data-state":I_(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Vc="DialogContent",yU=R.forwardRef((e,t)=>{const n=gU(Vc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=pi(Vc,e.__scopeDialog);return le.jsx(po,{present:r||s.open,children:s.modal?le.jsx(Ooe,{...o,ref:t}):le.jsx(Doe,{...o,ref:t})})});yU.displayName=Vc;var Ooe=R.forwardRef((e,t)=>{const n=pi(Vc,e.__scopeDialog),r=R.useRef(null),o=Mt(t,n.contentRef,r);return R.useEffect(()=>{const s=r.current;if(s)return M_(s)},[]),le.jsx(xU,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ie(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&s.preventDefault()}),onFocusOutside:Ie(e.onFocusOutside,s=>s.preventDefault())})}),Doe=R.forwardRef((e,t)=>{const n=pi(Vc,e.__scopeDialog),r=R.useRef(!1),o=R.useRef(!1);return le.jsx(xU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||n.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),xU=R.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,u=pi(Vc,n),f=R.useRef(null),m=Mt(t,f);return P_(),le.jsxs(le.Fragment,{children:[le.jsx(Tx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:le.jsx(Mp,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":I_(u.open),...c,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),le.jsxs(le.Fragment,{children:[le.jsx(Coe,{titleId:u.titleId}),le.jsx(Roe,{contentRef:f,descriptionId:u.descriptionId})]})]})}),L_="DialogTitle",NU=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(L_,n);return le.jsx(gt.h2,{id:o.titleId,...r,ref:t})});NU.displayName=L_;var wU="DialogDescription",Toe=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(wU,n);return le.jsx(gt.p,{id:o.descriptionId,...r,ref:t})});Toe.displayName=wU;var EU="DialogClose",SU=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(EU,n);return le.jsx(gt.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});SU.displayName=EU;function I_(e){return e?"open":"closed"}var AU="DialogTitleWarning",[EAe,OU]=Ute(AU,{contentName:Vc,titleName:L_,docsSlug:"dialog"}),Coe=({titleId:e})=>{const t=OU(AU),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return R.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},_oe="DialogDescriptionWarning",Roe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${OU(_oe).contentName}}.`;return R.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},joe=mU,Poe=pU,Moe=vU,koe=bU,Loe=yU,Ioe=NU,Voe=SU;const DU=R.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),V_=()=>R.useContext(DU);function $c({...e}){const t=R.useRef(!1),n=R.useRef(!1),r=R.useRef(null),o=R.useMemo(()=>({isComposing:()=>t.current,setComposing:s=>{t.current=s},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=!1},150)}}),[]);return b.jsxDEV(DU.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:b.jsxDEV(joe,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:51,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:50,columnNumber:5},this)}function Fh({...e}){return b.jsxDEV(Poe,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:59,columnNumber:10},this)}function $oe({...e}){return b.jsxDEV(Moe,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:65,columnNumber:10},this)}function TU({className:e,...t}){return b.jsxDEV(koe,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:wt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:79,columnNumber:5},this)}TU.displayName="DialogOverlay";function Bc({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...o}){const{isComposing:s}=V_(),c=R.useCallback(u=>{if(u.isComposing||s()){u.preventDefault();return}r?.(u)},[s,r]);return b.jsxDEV($oe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[b.jsxDEV(TU,{"data-loc":"client/src/components/ui/dialog.tsx:123"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:123,columnNumber:7},this),b.jsxDEV(Loe,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:wt("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:c,...o,children:[t,n&&b.jsxDEV(Voe,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[b.jsxDEV(iie,{"data-loc":"client/src/components/ui/dialog.tsx:139"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:139,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:140,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:135,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:124,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:122,columnNumber:5},this)}function zc({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:wt("flex flex-col gap-2 text-center sm:text-left",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:150,columnNumber:5},this)}function Uc({className:e,...t}){return b.jsxDEV(Ioe,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:wt("text-lg leading-none font-semibold",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dialog.tsx",lineNumber:176,columnNumber:5},this)}function Ab(e){const t=R.useRef(e);t.current=e;const n=R.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function CU(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,o=R.useRef(!1),s=R.useRef(null),c=R.useRef(null),u=Ab(h=>{s.current&&(clearTimeout(s.current),s.current=null),c.current&&(clearTimeout(c.current),c.current=null),o.current=!0,n?.(h)}),f=Ab(h=>{s.current=setTimeout(()=>{c.current=setTimeout(()=>{o.current=!1})}),r?.(h)}),m=Ab(h=>{if(o.current&&(h.key==="Escape"||h.key==="Enter"&&!h.shiftKey)){h.stopPropagation();return}t?.(h)}),g=Ab(()=>o.current);return{onCompositionStart:u,onCompositionEnd:f,onKeyDown:m,isComposing:g}}function Qn({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:o,...s}){const c=V_(),{onCompositionStart:u,onCompositionEnd:f,onKeyDown:m}=CU({onKeyDown:g=>{const h=g.nativeEvent.isComposing||c.justEndedComposing();g.key==="Enter"&&h||n?.(g)},onCompositionStart:g=>{c.setComposing(!0),r?.(g)},onCompositionEnd:g=>{c.markCompositionEnd(),setTimeout(()=>{c.setComposing(!1)},100),o?.(g)}});return b.jsxDEV("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:wt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:u,onCompositionEnd:f,onKeyDown:m,...s},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/input.tsx",lineNumber:53,columnNumber:5},this)}var Boe="Label",_U=R.forwardRef((e,t)=>le.jsx(gt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));_U.displayName=Boe;var zoe=_U;function Tt({className:e,...t}){return b.jsxDEV(zoe,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:wt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/label.tsx",lineNumber:11,columnNumber:5},this)}const Uoe=O_("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function qoe({className:e,variant:t,...n}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:28","data-slot":"alert",role:"alert",className:wt(Uoe({variant:t}),e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Hoe({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:55","data-slot":"alert-description",className:wt("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:55,columnNumber:5},this)}function $_(e){const t=e+"CollectionProvider",[n,r]=ds(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=N=>{const{scope:w,children:A}=N,D=F.useRef(null),_=F.useRef(new Map).current;return le.jsx(o,{scope:w,itemMap:_,collectionRef:D,children:A})};c.displayName=t;const u=e+"CollectionSlot",f=Pc(u),m=F.forwardRef((N,w)=>{const{scope:A,children:D}=N,_=s(u,A),P=Mt(w,_.collectionRef);return le.jsx(f,{ref:P,children:D})});m.displayName=u;const g=e+"CollectionItemSlot",h="data-radix-collection-item",y=Pc(g),x=F.forwardRef((N,w)=>{const{scope:A,children:D,..._}=N,P=F.useRef(null),O=Mt(w,P),C=s(g,A);return F.useEffect(()=>(C.itemMap.set(P,{ref:P,..._}),()=>void C.itemMap.delete(P))),le.jsx(y,{[h]:"",ref:O,children:D})});x.displayName=g;function S(N){const w=s(e+"CollectionConsumer",N);return F.useCallback(()=>{const D=w.collectionRef.current;if(!D)return[];const _=Array.from(D.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((C,j)=>_.indexOf(C.ref.current)-_.indexOf(j.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:m,ItemSlot:x},S,r]}var Foe=R.createContext(void 0);function B_(e){const t=R.useContext(Foe);return e||t||"ltr"}var kE="rovingFocusGroup.onEntryFocus",Koe={bubbles:!1,cancelable:!0},Bp="RovingFocusGroup",[_T,RU,Goe]=$_(Bp),[Yoe,jU]=ds(Bp,[Goe]),[Qoe,Xoe]=Yoe(Bp),PU=R.forwardRef((e,t)=>le.jsx(_T.Provider,{scope:e.__scopeRovingFocusGroup,children:le.jsx(_T.Slot,{scope:e.__scopeRovingFocusGroup,children:le.jsx(Woe,{...e,ref:t})})}));PU.displayName=Bp;var Woe=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...h}=e,y=R.useRef(null),x=Mt(t,y),S=B_(s),[N,w]=kc({prop:c,defaultProp:u??null,onChange:f,caller:Bp}),[A,D]=R.useState(!1),_=lo(m),P=RU(n),O=R.useRef(!1),[C,j]=R.useState(0);return R.useEffect(()=>{const k=y.current;if(k)return k.addEventListener(kE,_),()=>k.removeEventListener(kE,_)},[_]),le.jsx(Qoe,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:N,onItemFocus:R.useCallback(k=>w(k),[w]),onItemShiftTab:R.useCallback(()=>D(!0),[]),onFocusableItemAdd:R.useCallback(()=>j(k=>k+1),[]),onFocusableItemRemove:R.useCallback(()=>j(k=>k-1),[]),children:le.jsx(gt.div,{tabIndex:A||C===0?-1:0,"data-orientation":r,...h,ref:x,style:{outline:"none",...e.style},onMouseDown:Ie(e.onMouseDown,()=>{O.current=!0}),onFocus:Ie(e.onFocus,k=>{const $=!O.current;if(k.target===k.currentTarget&&$&&!A){const B=new CustomEvent(kE,Koe);if(k.currentTarget.dispatchEvent(B),!B.defaultPrevented){const U=P().filter(q=>q.focusable),H=U.find(q=>q.active),G=U.find(q=>q.id===N),J=[H,G,...U].filter(Boolean).map(q=>q.ref.current);LU(J,g)}}O.current=!1}),onBlur:Ie(e.onBlur,()=>D(!1))})})}),MU="RovingFocusGroupItem",kU=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:c,...u}=e,f=ro(),m=s||f,g=Xoe(MU,n),h=g.currentTabStopId===m,y=RU(n),{onFocusableItemAdd:x,onFocusableItemRemove:S,currentTabStopId:N}=g;return R.useEffect(()=>{if(r)return x(),()=>S()},[r,x,S]),le.jsx(_T.ItemSlot,{scope:n,id:m,focusable:r,active:o,children:le.jsx(gt.span,{tabIndex:h?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:Ie(e.onMouseDown,w=>{r?g.onItemFocus(m):w.preventDefault()}),onFocus:Ie(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:Ie(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){g.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const A=ese(w,g.orientation,g.dir);if(A!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let _=y().filter(P=>P.focusable).map(P=>P.ref.current);if(A==="last")_.reverse();else if(A==="prev"||A==="next"){A==="prev"&&_.reverse();const P=_.indexOf(w.currentTarget);_=g.loop?tse(_,P+1):_.slice(P+1)}setTimeout(()=>LU(_))}}),children:typeof c=="function"?c({isCurrentTabStop:h,hasTabStop:N!=null}):c})})});kU.displayName=MU;var Zoe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Joe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ese(e,t,n){const r=Joe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Zoe[r]}function LU(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function tse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var nse=PU,rse=kU,RT=["Enter"," "],ase=["ArrowDown","PageUp","Home"],IU=["ArrowUp","PageDown","End"],ise=[...ase,...IU],ose={ltr:[...RT,"ArrowRight"],rtl:[...RT,"ArrowLeft"]},sse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zp="Menu",[Kh,lse,cse]=$_(zp),[tu,VU]=ds(zp,[cse,mf,jU]),jx=mf(),$U=jU(),[use,nu]=tu(zp),[dse,Up]=tu(zp),BU=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:c=!0}=e,u=jx(t),[f,m]=R.useState(null),g=R.useRef(!1),h=lo(s),y=B_(o);return R.useEffect(()=>{const x=()=>{g.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>g.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),le.jsx(b_,{...u,children:le.jsx(use,{scope:t,open:n,onOpenChange:h,content:f,onContentChange:m,children:le.jsx(dse,{scope:t,onClose:R.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:g,dir:y,modal:c,children:r})})})};BU.displayName=zp;var fse="MenuAnchor",z_=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=jx(n);return le.jsx(y_,{...o,...r,ref:t})});z_.displayName=fse;var U_="MenuPortal",[mse,zU]=tu(U_,{forceMount:void 0}),UU=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=nu(U_,t);return le.jsx(mse,{scope:t,forceMount:n,children:le.jsx(po,{present:n||s.open,children:le.jsx(Lp,{asChild:!0,container:o,children:r})})})};UU.displayName=U_;var Ba="MenuContent",[hse,q_]=tu(Ba),qU=R.forwardRef((e,t)=>{const n=zU(Ba,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=nu(Ba,e.__scopeMenu),c=Up(Ba,e.__scopeMenu);return le.jsx(Kh.Provider,{scope:e.__scopeMenu,children:le.jsx(po,{present:r||s.open,children:le.jsx(Kh.Slot,{scope:e.__scopeMenu,children:c.modal?le.jsx(pse,{...o,ref:t}):le.jsx(gse,{...o,ref:t})})})})}),pse=R.forwardRef((e,t)=>{const n=nu(Ba,e.__scopeMenu),r=R.useRef(null),o=Mt(t,r);return R.useEffect(()=>{const s=r.current;if(s)return M_(s)},[]),le.jsx(H_,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ie(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),gse=R.forwardRef((e,t)=>{const n=nu(Ba,e.__scopeMenu);return le.jsx(H_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),vse=Pc("MenuContent.ScrollLock"),H_=R.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:y,onDismiss:x,disableOutsideScroll:S,...N}=e,w=nu(Ba,n),A=Up(Ba,n),D=jx(n),_=$U(n),P=lse(n),[O,C]=R.useState(null),j=R.useRef(null),k=Mt(t,j,w.onContentChange),$=R.useRef(0),B=R.useRef(""),U=R.useRef(0),H=R.useRef(null),G=R.useRef("right"),Y=R.useRef(0),J=S?_x:R.Fragment,q=S?{as:vse,allowPinchZoom:!0}:void 0,z=te=>{const ne=B.current+te,L=P().filter(ue=>!ue.disabled),Q=document.activeElement,W=L.find(ue=>ue.ref.current===Q)?.textValue,ae=L.map(ue=>ue.textValue),ge=Cse(ae,ne,W),we=L.find(ue=>ue.textValue===ge)?.ref.current;(function ue(xe){B.current=xe,window.clearTimeout($.current),xe!==""&&($.current=window.setTimeout(()=>ue(""),1e3))})(ne),we&&setTimeout(()=>we.focus())};R.useEffect(()=>()=>window.clearTimeout($.current),[]),P_();const K=R.useCallback(te=>G.current===H.current?.side&&Rse(te,H.current?.area),[]);return le.jsx(hse,{scope:n,searchRef:B,onItemEnter:R.useCallback(te=>{K(te)&&te.preventDefault()},[K]),onItemLeave:R.useCallback(te=>{K(te)||(j.current?.focus(),C(null))},[K]),onTriggerLeave:R.useCallback(te=>{K(te)&&te.preventDefault()},[K]),pointerGraceTimerRef:U,onPointerGraceIntentChange:R.useCallback(te=>{H.current=te},[]),children:le.jsx(J,{...q,children:le.jsx(Tx,{asChild:!0,trapped:o,onMountAutoFocus:Ie(s,te=>{te.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:le.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:y,onDismiss:x,children:le.jsx(nse,{asChild:!0,..._,dir:A.dir,orientation:"vertical",loop:r,currentTabStopId:O,onCurrentTabStopIdChange:C,onEntryFocus:Ie(f,te=>{A.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:le.jsx(x_,{role:"menu","aria-orientation":"vertical","data-state":iq(w.open),"data-radix-menu-content":"",dir:A.dir,...D,...N,ref:k,style:{outline:"none",...N.style},onKeyDown:Ie(N.onKeyDown,te=>{const L=te.target.closest("[data-radix-menu-content]")===te.currentTarget,Q=te.ctrlKey||te.altKey||te.metaKey,W=te.key.length===1;L&&(te.key==="Tab"&&te.preventDefault(),!Q&&W&&z(te.key));const ae=j.current;if(te.target!==ae||!ise.includes(te.key))return;te.preventDefault();const we=P().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);IU.includes(te.key)&&we.reverse(),Dse(we)}),onBlur:Ie(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:Ie(e.onPointerMove,Gh(te=>{const ne=te.target,L=Y.current!==te.clientX;if(te.currentTarget.contains(ne)&&L){const Q=te.clientX>Y.current?"right":"left";G.current=Q,Y.current=te.clientX}}))})})})})})})});qU.displayName=Ba;var bse="MenuGroup",F_=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(gt.div,{role:"group",...r,ref:t})});F_.displayName=bse;var yse="MenuLabel",HU=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(gt.div,{...r,ref:t})});HU.displayName=yse;var ly="MenuItem",vV="menu.itemSelect",Px=R.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=R.useRef(null),c=Up(ly,e.__scopeMenu),u=q_(ly,e.__scopeMenu),f=Mt(t,s),m=R.useRef(!1),g=()=>{const h=s.current;if(!n&&h){const y=new CustomEvent(vV,{bubbles:!0,cancelable:!0});h.addEventListener(vV,x=>r?.(x),{once:!0}),F9(h,y),y.defaultPrevented?m.current=!1:c.onClose()}};return le.jsx(FU,{...o,ref:f,disabled:n,onClick:Ie(e.onClick,g),onPointerDown:h=>{e.onPointerDown?.(h),m.current=!0},onPointerUp:Ie(e.onPointerUp,h=>{m.current||h.currentTarget?.click()}),onKeyDown:Ie(e.onKeyDown,h=>{const y=u.searchRef.current!=="";n||y&&h.key===" "||RT.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Px.displayName=ly;var FU=R.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,c=q_(ly,n),u=$U(n),f=R.useRef(null),m=Mt(t,f),[g,h]=R.useState(!1),[y,x]=R.useState("");return R.useEffect(()=>{const S=f.current;S&&x((S.textContent??"").trim())},[s.children]),le.jsx(Kh.ItemSlot,{scope:n,disabled:r,textValue:o??y,children:le.jsx(rse,{asChild:!0,...u,focusable:!r,children:le.jsx(gt.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:m,onPointerMove:Ie(e.onPointerMove,Gh(S=>{r?c.onItemLeave(S):(c.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ie(e.onPointerLeave,Gh(S=>c.onItemLeave(S))),onFocus:Ie(e.onFocus,()=>h(!0)),onBlur:Ie(e.onBlur,()=>h(!1))})})})}),xse="MenuCheckboxItem",KU=R.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return le.jsx(WU,{scope:e.__scopeMenu,checked:n,children:le.jsx(Px,{role:"menuitemcheckbox","aria-checked":cy(n)?"mixed":n,...o,ref:t,"data-state":G_(n),onSelect:Ie(o.onSelect,()=>r?.(cy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});KU.displayName=xse;var GU="MenuRadioGroup",[Nse,wse]=tu(GU,{value:void 0,onValueChange:()=>{}}),YU=R.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=lo(r);return le.jsx(Nse,{scope:e.__scopeMenu,value:n,onValueChange:s,children:le.jsx(F_,{...o,ref:t})})});YU.displayName=GU;var QU="MenuRadioItem",XU=R.forwardRef((e,t)=>{const{value:n,...r}=e,o=wse(QU,e.__scopeMenu),s=n===o.value;return le.jsx(WU,{scope:e.__scopeMenu,checked:s,children:le.jsx(Px,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":G_(s),onSelect:Ie(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});XU.displayName=QU;var K_="MenuItemIndicator",[WU,Ese]=tu(K_,{checked:!1}),ZU=R.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Ese(K_,n);return le.jsx(po,{present:r||cy(s.checked)||s.checked===!0,children:le.jsx(gt.span,{...o,ref:t,"data-state":G_(s.checked)})})});ZU.displayName=K_;var Sse="MenuSeparator",JU=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(gt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});JU.displayName=Sse;var Ase="MenuArrow",eq=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=jx(n);return le.jsx(N_,{...o,...r,ref:t})});eq.displayName=Ase;var Ose="MenuSub",[SAe,tq]=tu(Ose),bh="MenuSubTrigger",nq=R.forwardRef((e,t)=>{const n=nu(bh,e.__scopeMenu),r=Up(bh,e.__scopeMenu),o=tq(bh,e.__scopeMenu),s=q_(bh,e.__scopeMenu),c=R.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=s,m={__scopeMenu:e.__scopeMenu},g=R.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return R.useEffect(()=>g,[g]),R.useEffect(()=>{const h=u.current;return()=>{window.clearTimeout(h),f(null)}},[u,f]),le.jsx(z_,{asChild:!0,...m,children:le.jsx(FU,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":iq(n.open),...e,ref:yx(t,o.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ie(e.onPointerMove,Gh(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:Ie(e.onPointerLeave,Gh(h=>{g();const y=n.content?.getBoundingClientRect();if(y){const x=n.content?.dataset.side,S=x==="right",N=S?-5:5,w=y[S?"left":"right"],A=y[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+N,y:h.clientY},{x:w,y:y.top},{x:A,y:y.top},{x:A,y:y.bottom},{x:w,y:y.bottom}],side:x}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Ie(e.onKeyDown,h=>{const y=s.searchRef.current!=="";e.disabled||y&&h.key===" "||ose[r.dir].includes(h.key)&&(n.onOpenChange(!0),n.content?.focus(),h.preventDefault())})})})});nq.displayName=bh;var rq="MenuSubContent",aq=R.forwardRef((e,t)=>{const n=zU(Ba,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=nu(Ba,e.__scopeMenu),c=Up(Ba,e.__scopeMenu),u=tq(rq,e.__scopeMenu),f=R.useRef(null),m=Mt(t,f);return le.jsx(Kh.Provider,{scope:e.__scopeMenu,children:le.jsx(po,{present:r||s.open,children:le.jsx(Kh.Slot,{scope:e.__scopeMenu,children:le.jsx(H_,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:m,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{c.isUsingKeyboardRef.current&&f.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:Ie(e.onFocusOutside,g=>{g.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Ie(e.onEscapeKeyDown,g=>{c.onClose(),g.preventDefault()}),onKeyDown:Ie(e.onKeyDown,g=>{const h=g.currentTarget.contains(g.target),y=sse[c.dir].includes(g.key);h&&y&&(s.onOpenChange(!1),u.trigger?.focus(),g.preventDefault())})})})})})});aq.displayName=rq;function iq(e){return e?"open":"closed"}function cy(e){return e==="indeterminate"}function G_(e){return cy(e)?"indeterminate":e?"checked":"unchecked"}function Dse(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Tse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Cse(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=Tse(e,Math.max(s,0));o.length===1&&(c=c.filter(m=>m!==n));const f=c.find(m=>m.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function _se(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const u=t[s],f=t[c],m=u.x,g=u.y,h=f.x,y=f.y;g>r!=y>r&&n<(h-m)*(r-g)/(y-g)+m&&(o=!o)}return o}function Rse(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return _se(n,t)}function Gh(e){return t=>t.pointerType==="mouse"?e(t):void 0}var jse=BU,Pse=z_,Mse=UU,kse=qU,Lse=F_,Ise=HU,Vse=Px,$se=KU,Bse=YU,zse=XU,Use=ZU,qse=JU,Hse=eq,Fse=nq,Kse=aq,Mx="DropdownMenu",[Gse]=ds(Mx,[VU]),Pr=VU(),[Yse,oq]=Gse(Mx),sq=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,f=Pr(t),m=R.useRef(null),[g,h]=kc({prop:o,defaultProp:s??!1,onChange:c,caller:Mx});return le.jsx(Yse,{scope:t,triggerId:ro(),triggerRef:m,contentId:ro(),open:g,onOpenChange:h,onOpenToggle:R.useCallback(()=>h(y=>!y),[h]),modal:u,children:le.jsx(jse,{...f,open:g,onOpenChange:h,dir:r,modal:u,children:n})})};sq.displayName=Mx;var lq="DropdownMenuTrigger",cq=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=oq(lq,n),c=Pr(n);return le.jsx(Pse,{asChild:!0,...c,children:le.jsx(gt.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:yx(t,s.triggerRef),onPointerDown:Ie(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:Ie(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});cq.displayName=lq;var Qse="DropdownMenuPortal",uq=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Pr(t);return le.jsx(Mse,{...r,...n})};uq.displayName=Qse;var dq="DropdownMenuContent",fq=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=oq(dq,n),s=Pr(n),c=R.useRef(!1);return le.jsx(kse,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:Ie(e.onCloseAutoFocus,u=>{c.current||o.triggerRef.current?.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:Ie(e.onInteractOutside,u=>{const f=u.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,g=f.button===2||m;(!o.modal||g)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});fq.displayName=dq;var Xse="DropdownMenuGroup",Wse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Lse,{...o,...r,ref:t})});Wse.displayName=Xse;var Zse="DropdownMenuLabel",mq=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Ise,{...o,...r,ref:t})});mq.displayName=Zse;var Jse="DropdownMenuItem",hq=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Vse,{...o,...r,ref:t})});hq.displayName=Jse;var ele="DropdownMenuCheckboxItem",tle=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx($se,{...o,...r,ref:t})});tle.displayName=ele;var nle="DropdownMenuRadioGroup",rle=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Bse,{...o,...r,ref:t})});rle.displayName=nle;var ale="DropdownMenuRadioItem",ile=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(zse,{...o,...r,ref:t})});ile.displayName=ale;var ole="DropdownMenuItemIndicator",sle=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Use,{...o,...r,ref:t})});sle.displayName=ole;var lle="DropdownMenuSeparator",pq=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(qse,{...o,...r,ref:t})});pq.displayName=lle;var cle="DropdownMenuArrow",ule=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Hse,{...o,...r,ref:t})});ule.displayName=cle;var dle="DropdownMenuSubTrigger",fle=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Fse,{...o,...r,ref:t})});fle.displayName=dle;var mle="DropdownMenuSubContent",hle=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return le.jsx(Kse,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hle.displayName=mle;var ple=sq,gle=cq,vle=uq,ble=fq,yle=mq,xle=hq,Nle=pq;function wle({...e}){return b.jsxDEV(ple,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:10,columnNumber:10},this)}function Ele({...e}){return b.jsxDEV(gle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:25,columnNumber:5},this)}function Sle({className:e,sideOffset:t=4,...n}){return b.jsxDEV(vle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:b.jsxDEV(ble,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:wt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:39,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:38,columnNumber:5},this)}function Ale({className:e,inset:t,variant:n="default",...r}){return b.jsxDEV(xle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:wt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:70,columnNumber:5},this)}function Ole({className:e,inset:t,...n}){return b.jsxDEV(yle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:152","data-slot":"dropdown-menu-label","data-inset":t,className:wt("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:152,columnNumber:5},this)}function Dle({className:e,...t}){return b.jsxDEV(Nle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:169","data-slot":"dropdown-menu-separator",className:wt("bg-border -mx-1 my-1 h-px",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/dropdown-menu.tsx",lineNumber:169,columnNumber:5},this)}const Ob=[{code:"zh",label:"简体中文",flag:"🇨🇳",dir:"ltr"},{code:"en",label:"English",flag:"🇺🇸",dir:"ltr"},{code:"ar",label:"العربية",flag:"🇦🇪",dir:"rtl"},{code:"ja",label:"日本語",flag:"🇯🇵",dir:"ltr"},{code:"ko",label:"한국어",flag:"🇰🇷",dir:"ltr"},{code:"fr",label:"Français",flag:"🇫🇷",dir:"ltr"},{code:"ru",label:"Русский",flag:"🇷🇺",dir:"ltr"}];function gq({variant:e="icon",className:t}){const{i18n:n,t:r}=jp(),o=Ob.find(c=>c.code===n.language)||Ob[0],s=c=>{const u=Ob.find(f=>f.code===c);n.changeLanguage(c),u&&(document.documentElement.dir=u.dir,document.documentElement.lang=c),localStorage.setItem("nac-admin-language",c)};return b.jsxDEV(wle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:46",children:[b.jsxDEV(Ele,{"data-loc":"client/src/components/LanguageSwitcher.tsx:47",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/components/LanguageSwitcher.tsx:48",variant:"ghost",size:e==="icon"?"icon":"sm",className:`text-slate-400 hover:text-white hover:bg-slate-700/50 ${t??""}`,children:[b.jsxDEV(Lc,{"data-loc":"client/src/components/LanguageSwitcher.tsx:53",className:"h-4 w-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:53,columnNumber:11},this),e==="full"&&b.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:55",className:"ml-2 text-sm",children:[o.flag," ",o.label]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:55,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:48,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:47,columnNumber:7},this),b.jsxDEV(Sle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:61",align:"end",className:"w-48 bg-slate-800 border-slate-700 text-slate-200",children:[b.jsxDEV(Ole,{"data-loc":"client/src/components/LanguageSwitcher.tsx:65",className:"text-slate-400 text-xs",children:r("languageSwitcher.selectLanguage")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:65,columnNumber:9},this),b.jsxDEV(Dle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:68",className:"bg-slate-700"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:68,columnNumber:9},this),Ob.map(c=>b.jsxDEV(Ale,{"data-loc":"client/src/components/LanguageSwitcher.tsx:70",onClick:()=>s(c.code),className:`cursor-pointer hover:bg-slate-700 focus:bg-slate-700 ${n.language===c.code?"text-amber-400 bg-slate-700/50":"text-slate-200"}`,children:[b.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:79",className:"mr-2 text-base",children:c.flag},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:79,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:80",className:"flex-1",children:c.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:80,columnNumber:13},this),n.language===c.code&&b.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:82",className:"text-amber-400 text-xs",children:"✓"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:82,columnNumber:15},this)]},c.code,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:70,columnNumber:11},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:61,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:46,columnNumber:5},this)}function Tle(){j_();const{t:e}=jp(),[t,n]=R.useState(""),[r,o]=R.useState(""),[s,c]=R.useState(""),u=at.nacAuth.login.useMutation({onSuccess:()=>{window.location.href="/"},onError:m=>{c(m.message||e("auth.loginFailed"))}}),f=m=>{if(m.preventDefault(),c(""),!t||!r){c(e("auth.loginFailed"));return}u.mutate({email:t,password:r})};return b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:41",className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:43",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:44",className:"absolute -top-40 -right-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:44,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:46",className:"absolute -bottom-40 -left-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.55 0.20 230), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:46,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:48",className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-5",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:48,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:43,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:53",className:"absolute top-4 right-4 z-20",children:b.jsxDEV(gq,{"data-loc":"client/src/pages/Login.tsx:54",variant:"full"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:54,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:53,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:57",className:"w-full max-w-md relative z-10",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:59",className:"text-center mb-8",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:60",className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl nac-gradient mb-4 shadow-lg",children:b.jsxDEV(bl,{"data-loc":"client/src/pages/Login.tsx:61",className:"w-8 h-8 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:61,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:60,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/Login.tsx:63",className:"text-3xl font-bold nac-gradient-text",children:e("nav.systemTitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:63,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:64",className:"text-muted-foreground mt-2 text-sm",children:e("nav.systemSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:64,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:65",className:"text-muted-foreground/60 text-xs mt-1",children:"NewAssetChain Knowledge Engine"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:59,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/Login.tsx:68",className:"border-border/50 shadow-2xl",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Login.tsx:69",className:"pb-4",children:[b.jsxDEV(pa,{"data-loc":"client/src/pages/Login.tsx:70",className:"text-lg font-semibold",children:e("auth.login")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:70,columnNumber:13},this),b.jsxDEV(Vz,{"data-loc":"client/src/pages/Login.tsx:71",className:"text-sm",children:e("auth.loginSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:71,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:69,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Login.tsx:75",children:[b.jsxDEV("form",{"data-loc":"client/src/pages/Login.tsx:76",onSubmit:f,className:"space-y-4",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:77",className:"space-y-2",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Login.tsx:78",htmlFor:"email",className:"text-sm font-medium",children:e("auth.email")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:78,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:79",className:"relative",children:[b.jsxDEV(Wae,{"data-loc":"client/src/pages/Login.tsx:80",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:80,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/Login.tsx:81",id:"email",type:"email",placeholder:"admin@newassetchain.io",value:t,onChange:m=>n(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:u.isPending,autoComplete:"email"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:81,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:79,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:77,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:94",className:"space-y-2",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Login.tsx:95",htmlFor:"password",className:"text-sm font-medium",children:e("auth.password")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:95,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:96",className:"relative",children:[b.jsxDEV(Qae,{"data-loc":"client/src/pages/Login.tsx:97",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:97,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/Login.tsx:98",id:"password",type:"password",placeholder:"••••••••",value:r,onChange:m=>o(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:u.isPending,autoComplete:"current-password"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:96,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:94,columnNumber:15},this),s&&b.jsxDEV(qoe,{"data-loc":"client/src/pages/Login.tsx:112",variant:"destructive",className:"py-2",children:b.jsxDEV(Hoe,{"data-loc":"client/src/pages/Login.tsx:113",className:"text-sm",children:s},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:113,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:112,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/Login.tsx:117",type:"submit",className:"w-full nac-gradient text-white font-medium h-10 mt-2",disabled:u.isPending,children:u.isPending?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Fr,{"data-loc":"client/src/pages/Login.tsx:123",className:"w-4 h-4 mr-2 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:123,columnNumber:21},this),e("auth.loggingIn")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:123,columnNumber:19},this):e("auth.loginButton")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:117,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:76,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:130",className:"mt-6 pt-4 border-t border-border/30",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:131",className:"flex items-center gap-2 text-xs text-muted-foreground/60",children:[b.jsxDEV(bl,{"data-loc":"client/src/pages/Login.tsx:132",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:132,columnNumber:17},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Login.tsx:133",children:e("auth.authNotice")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:133,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:131,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:75,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:68,columnNumber:9},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:139",className:"text-center text-xs text-muted-foreground/40 mt-6",children:"© 2025 NewAssetChain · Knowledge Engine Admin v1.0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:41,columnNumber:5},this)}const Cle=O_("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function za({className:e,variant:t,asChild:n=!1,...r}){const o=n?q9:"span";return b.jsxDEV(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:wt(Cle({variant:t}),e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}var LE,bV;function Gr(){if(bV)return LE;bV=1;var e=Array.isArray;return LE=e,LE}var IE,yV;function vq(){if(yV)return IE;yV=1;var e=typeof cb=="object"&&cb&&cb.Object===Object&&cb;return IE=e,IE}var VE,xV;function go(){if(xV)return VE;xV=1;var e=vq(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return VE=n,VE}var $E,NV;function qp(){if(NV)return $E;NV=1;var e=go(),t=e.Symbol;return $E=t,$E}var BE,wV;function _le(){if(wV)return BE;wV=1;var e=qp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function s(c){var u=n.call(c,o),f=c[o];try{c[o]=void 0;var m=!0}catch{}var g=r.call(c);return m&&(u?c[o]=f:delete c[o]),g}return BE=s,BE}var zE,EV;function Rle(){if(EV)return zE;EV=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return zE=n,zE}var UE,SV;function fs(){if(SV)return UE;SV=1;var e=qp(),t=_le(),n=Rle(),r="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function c(u){return u==null?u===void 0?o:r:s&&s in Object(u)?t(u):n(u)}return UE=c,UE}var qE,AV;function ms(){if(AV)return qE;AV=1;function e(t){return t!=null&&typeof t=="object"}return qE=e,qE}var HE,OV;function gf(){if(OV)return HE;OV=1;var e=fs(),t=ms(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return HE=r,HE}var FE,DV;function Y_(){if(DV)return FE;DV=1;var e=Gr(),t=gf(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(s,c){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||c!=null&&s in Object(c)}return FE=o,FE}var KE,TV;function xl(){if(TV)return KE;TV=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return KE=e,KE}var GE,CV;function Q_(){if(CV)return GE;CV=1;var e=fs(),t=xl(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function c(u){if(!t(u))return!1;var f=e(u);return f==r||f==o||f==n||f==s}return GE=c,GE}var YE,_V;function jle(){if(_V)return YE;_V=1;var e=go(),t=e["__core-js_shared__"];return YE=t,YE}var QE,RV;function Ple(){if(RV)return QE;RV=1;var e=jle(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return QE=n,QE}var XE,jV;function bq(){if(jV)return XE;jV=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return XE=n,XE}var WE,PV;function Mle(){if(PV)return WE;PV=1;var e=Q_(),t=Ple(),n=xl(),r=bq(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,m=u.hasOwnProperty,g=RegExp("^"+f.call(m).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(y){if(!n(y)||t(y))return!1;var x=e(y)?g:s;return x.test(r(y))}return WE=h,WE}var ZE,MV;function kle(){if(MV)return ZE;MV=1;function e(t,n){return t?.[n]}return ZE=e,ZE}var JE,kV;function ru(){if(kV)return JE;kV=1;var e=Mle(),t=kle();function n(r,o){var s=t(r,o);return e(s)?s:void 0}return JE=n,JE}var eS,LV;function kx(){if(LV)return eS;LV=1;var e=ru(),t=e(Object,"create");return eS=t,eS}var tS,IV;function Lle(){if(IV)return tS;IV=1;var e=kx();function t(){this.__data__=e?e(null):{},this.size=0}return tS=t,tS}var nS,VV;function Ile(){if(VV)return nS;VV=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return nS=e,nS}var rS,$V;function Vle(){if($V)return rS;$V=1;var e=kx(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(s){var c=this.__data__;if(e){var u=c[s];return u===t?void 0:u}return r.call(c,s)?c[s]:void 0}return rS=o,rS}var aS,BV;function $le(){if(BV)return aS;BV=1;var e=kx(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var s=this.__data__;return e?s[o]!==void 0:n.call(s,o)}return aS=r,aS}var iS,zV;function Ble(){if(zV)return iS;zV=1;var e=kx(),t="__lodash_hash_undefined__";function n(r,o){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&o===void 0?t:o,this}return iS=n,iS}var oS,UV;function zle(){if(UV)return oS;UV=1;var e=Lle(),t=Ile(),n=Vle(),r=$le(),o=Ble();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,oS=s,oS}var sS,qV;function Ule(){if(qV)return sS;qV=1;function e(){this.__data__=[],this.size=0}return sS=e,sS}var lS,HV;function X_(){if(HV)return lS;HV=1;function e(t,n){return t===n||t!==t&&n!==n}return lS=e,lS}var cS,FV;function Lx(){if(FV)return cS;FV=1;var e=X_();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return cS=t,cS}var uS,KV;function qle(){if(KV)return uS;KV=1;var e=Lx(),t=Array.prototype,n=t.splice;function r(o){var s=this.__data__,c=e(s,o);if(c<0)return!1;var u=s.length-1;return c==u?s.pop():n.call(s,c,1),--this.size,!0}return uS=r,uS}var dS,GV;function Hle(){if(GV)return dS;GV=1;var e=Lx();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return dS=t,dS}var fS,YV;function Fle(){if(YV)return fS;YV=1;var e=Lx();function t(n){return e(this.__data__,n)>-1}return fS=t,fS}var mS,QV;function Kle(){if(QV)return mS;QV=1;var e=Lx();function t(n,r){var o=this.__data__,s=e(o,n);return s<0?(++this.size,o.push([n,r])):o[s][1]=r,this}return mS=t,mS}var hS,XV;function Ix(){if(XV)return hS;XV=1;var e=Ule(),t=qle(),n=Hle(),r=Fle(),o=Kle();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,hS=s,hS}var pS,WV;function W_(){if(WV)return pS;WV=1;var e=ru(),t=go(),n=e(t,"Map");return pS=n,pS}var gS,ZV;function Gle(){if(ZV)return gS;ZV=1;var e=zle(),t=Ix(),n=W_();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return gS=r,gS}var vS,JV;function Yle(){if(JV)return vS;JV=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return vS=e,vS}var bS,e2;function Vx(){if(e2)return bS;e2=1;var e=Yle();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return bS=t,bS}var yS,t2;function Qle(){if(t2)return yS;t2=1;var e=Vx();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return yS=t,yS}var xS,n2;function Xle(){if(n2)return xS;n2=1;var e=Vx();function t(n){return e(this,n).get(n)}return xS=t,xS}var NS,r2;function Wle(){if(r2)return NS;r2=1;var e=Vx();function t(n){return e(this,n).has(n)}return NS=t,NS}var wS,a2;function Zle(){if(a2)return wS;a2=1;var e=Vx();function t(n,r){var o=e(this,n),s=o.size;return o.set(n,r),this.size+=o.size==s?0:1,this}return wS=t,wS}var ES,i2;function Z_(){if(i2)return ES;i2=1;var e=Gle(),t=Qle(),n=Xle(),r=Wle(),o=Zle();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,ES=s,ES}var SS,o2;function yq(){if(o2)return SS;o2=1;var e=Z_(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var s=function(){var c=arguments,u=o?o.apply(this,c):c[0],f=s.cache;if(f.has(u))return f.get(u);var m=r.apply(this,c);return s.cache=f.set(u,m)||f,m};return s.cache=new(n.Cache||e),s}return n.Cache=e,SS=n,SS}var AS,s2;function Jle(){if(s2)return AS;s2=1;var e=yq(),t=500;function n(r){var o=e(r,function(c){return s.size===t&&s.clear(),c}),s=o.cache;return o}return AS=n,AS}var OS,l2;function ece(){if(l2)return OS;l2=1;var e=Jle(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(t,function(c,u,f,m){s.push(f?m.replace(n,"$1"):u||c)}),s});return OS=r,OS}var DS,c2;function J_(){if(c2)return DS;c2=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,s=Array(o);++r<o;)s[r]=n(t[r],r,t);return s}return DS=e,DS}var TS,u2;function tce(){if(u2)return TS;u2=1;var e=qp(),t=J_(),n=Gr(),r=gf(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function c(u){if(typeof u=="string")return u;if(n(u))return t(u,c)+"";if(r(u))return s?s.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return TS=c,TS}var CS,d2;function xq(){if(d2)return CS;d2=1;var e=tce();function t(n){return n==null?"":e(n)}return CS=t,CS}var _S,f2;function Nq(){if(f2)return _S;f2=1;var e=Gr(),t=Y_(),n=ece(),r=xq();function o(s,c){return e(s)?s:t(s,c)?[s]:n(r(s))}return _S=o,_S}var RS,m2;function $x(){if(m2)return RS;m2=1;var e=gf();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return RS=t,RS}var jS,h2;function eR(){if(h2)return jS;h2=1;var e=Nq(),t=$x();function n(r,o){o=e(o,r);for(var s=0,c=o.length;r!=null&&s<c;)r=r[t(o[s++])];return s&&s==c?r:void 0}return jS=n,jS}var PS,p2;function wq(){if(p2)return PS;p2=1;var e=eR();function t(n,r,o){var s=n==null?void 0:e(n,r);return s===void 0?o:s}return PS=t,PS}var nce=wq();const va=Bt(nce);var MS,g2;function rce(){if(g2)return MS;g2=1;function e(t){return t==null}return MS=e,MS}var ace=rce();const ot=Bt(ace);var kS,v2;function ice(){if(v2)return kS;v2=1;var e=fs(),t=Gr(),n=ms(),r="[object String]";function o(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return kS=o,kS}var oce=ice();const qc=Bt(oce);var sce=Q_();const Xe=Bt(sce);var lce=xl();const vf=Bt(lce);var LS={exports:{}},It={},b2;function cce(){if(b2)return It;b2=1;/**
* @license React
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),S=!1,N=!1,w=!1,A=!1,D=!1,_;_=Symbol.for("react.module.reference");function P(Ne){return!!(typeof Ne=="string"||typeof Ne=="function"||Ne===n||Ne===o||D||Ne===r||Ne===m||Ne===g||A||Ne===x||S||N||w||typeof Ne=="object"&&Ne!==null&&(Ne.$$typeof===y||Ne.$$typeof===h||Ne.$$typeof===s||Ne.$$typeof===c||Ne.$$typeof===f||Ne.$$typeof===_||Ne.getModuleId!==void 0))}function O(Ne){if(typeof Ne=="object"&&Ne!==null){var ut=Ne.$$typeof;switch(ut){case e:var Ve=Ne.type;switch(Ve){case n:case o:case r:case m:case g:return Ve;default:var tt=Ve&&Ve.$$typeof;switch(tt){case u:case c:case f:case y:case h:case s:return tt;default:return ut}}case t:return ut}}}var C=c,j=s,k=e,$=f,B=n,U=y,H=h,G=t,Y=o,J=r,q=m,z=g,K=!1,te=!1;function ne(Ne){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(Ne){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(Ne){return O(Ne)===c}function W(Ne){return O(Ne)===s}function ae(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===e}function ge(Ne){return O(Ne)===f}function we(Ne){return O(Ne)===n}function ue(Ne){return O(Ne)===y}function xe(Ne){return O(Ne)===h}function me(Ne){return O(Ne)===t}function ye(Ne){return O(Ne)===o}function de(Ne){return O(Ne)===r}function ie(Ne){return O(Ne)===m}function ze(Ne){return O(Ne)===g}It.ContextConsumer=C,It.ContextProvider=j,It.Element=k,It.ForwardRef=$,It.Fragment=B,It.Lazy=U,It.Memo=H,It.Portal=G,It.Profiler=Y,It.StrictMode=J,It.Suspense=q,It.SuspenseList=z,It.isAsyncMode=ne,It.isConcurrentMode=L,It.isContextConsumer=Q,It.isContextProvider=W,It.isElement=ae,It.isForwardRef=ge,It.isFragment=we,It.isLazy=ue,It.isMemo=xe,It.isPortal=me,It.isProfiler=ye,It.isStrictMode=de,It.isSuspense=ie,It.isSuspenseList=ze,It.isValidElementType=P,It.typeOf=O})(),It}var y2;function uce(){return y2||(y2=1,LS.exports=cce()),LS.exports}var dce=uce(),IS,x2;function Eq(){if(x2)return IS;x2=1;var e=fs(),t=ms(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return IS=r,IS}var VS,N2;function fce(){if(N2)return VS;N2=1;var e=Eq();function t(n){return e(n)&&n!=+n}return VS=t,VS}var mce=fce();const bf=Bt(mce);var hce=Eq();const pce=Bt(hce);var _r=function(t){return t===0?0:t>0?1:-1},wc=function(t){return qc(t)&&t.indexOf("%")===t.length-1},Oe=function(t){return pce(t)&&!bf(t)},gce=function(t){return ot(t)},$n=function(t){return Oe(t)||qc(t)},vce=0,yf=function(t){var n=++vce;return"".concat(t||"").concat(n)},Rr=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Oe(t)&&!qc(t))return r;var s;if(wc(t)){var c=t.indexOf("%");s=n*parseFloat(t.slice(0,c))/100}else s=+t;return bf(s)&&(s=r),o&&s>n&&(s=n),s},ll=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},bce=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},o=0;o<n;o++)if(!r[t[o]])r[t[o]]=!0;else return!0;return!1},Hr=function(t,n){return Oe(t)&&Oe(n)?function(r){return t+r*(n-t)}:function(){return n}};function uy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):va(r,t))===n})}var yce=function(t,n){return Oe(t)&&Oe(n)?t-n:qc(t)&&qc(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Td(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function jT(e){"@babel/helpers - typeof";return jT=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},jT(e)}var xce=["viewBox","children"],Nce=["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"],w2=["points","pathLength"],$S={svg:xce,polygon:w2,polyline:w2},tR=["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"],dy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(R.isValidElement(t)&&(r=t.props),!vf(r))return null;var o={};return Object.keys(r).forEach(function(s){tR.includes(s)&&(o[s]=n||function(c){return r[s](r,c)})}),o},wce=function(t,n,r){return function(o){return t(n,r,o),null}},Hc=function(t,n,r){if(!vf(t)||jT(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(s){var c=t[s];tR.includes(s)&&typeof c=="function"&&(o||(o={}),o[s]=wce(c,n,r))}),o},Ece=["children"],Sce=["children"];function E2(e,t){if(e==null)return{};var n=Ace(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ace(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function PT(e){"@babel/helpers - typeof";return PT=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},PT(e)}var S2={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"},ns=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},A2=null,BS=null,nR=function e(t){if(t===A2&&Array.isArray(BS))return BS;var n=[];return R.Children.forEach(t,function(r){ot(r)||(dce.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),BS=n,A2=t,n};function Ua(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return ns(o)}):r=[ns(t)],nR(e).forEach(function(o){var s=va(o,"type.displayName")||va(o,"type.name");r.indexOf(s)!==-1&&n.push(o)}),n}function da(e,t){var n=Ua(e,t);return n&&n[0]}var O2=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!Oe(r)||r<=0||!Oe(o)||o<=0)},Oce=["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"],Dce=function(t){return t&&t.type&&qc(t.type)&&Oce.indexOf(t.type)>=0},Tce=function(t){return t&&PT(t)==="object"&&"clipDot"in t},Cce=function(t,n,r,o){var s,c=(s=$S?.[o])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Xe(t)&&(o&&c.includes(n)||Nce.includes(n))||r&&tR.includes(n)},Fe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(R.isValidElement(t)&&(o=t.props),!vf(o))return null;var s={};return Object.keys(o).forEach(function(c){var u;Cce((u=o)===null||u===void 0?void 0:u[c],c,n,r)&&(s[c]=o[c])}),s},MT=function e(t,n){if(t===n)return!0;var r=R.Children.count(t);if(r!==R.Children.count(n))return!1;if(r===0)return!0;if(r===1)return D2(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var s=t[o],c=n[o];if(Array.isArray(s)||Array.isArray(c)){if(!e(s,c))return!1}else if(!D2(s,c))return!1}return!0},D2=function(t,n){if(ot(t)&&ot(n))return!0;if(!ot(t)&&!ot(n)){var r=t.props||{},o=r.children,s=E2(r,Ece),c=n.props||{},u=c.children,f=E2(c,Sce);return o&&u?Td(s,f)&&MT(o,u):!o&&!u?Td(s,f):!1}return!1},T2=function(t,n){var r=[],o={};return nR(t).forEach(function(s,c){if(Dce(s))r.push(s);else if(s){var u=ns(s.type),f=n[u]||{},m=f.handler,g=f.once;if(m&&(!g||!o[u])){var h=m(s,u,c);r.push(h),o[u]=!0}}}),r},_ce=function(t){var n=t&&t.type;return n&&S2[n]?S2[n]:null},Rce=function(t,n){return nR(n).indexOf(t)},jce=["children","width","height","viewBox","className","style","title","desc"];function kT(){return kT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kT.apply(this,arguments)}function Pce(e,t){if(e==null)return{};var n=Mce(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LT(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,s=e.className,c=e.style,u=e.title,f=e.desc,m=Pce(e,jce),g=o||{width:n,height:r,x:0,y:0},h=it("recharts-surface",s);return F.createElement("svg",kT({},Fe(m,!0,"svg"),{className:h,width:n,height:r,style:c,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),F.createElement("title",null,u),F.createElement("desc",null,f),t)}var kce=["children","className"];function IT(){return IT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IT.apply(this,arguments)}function Lce(e,t){if(e==null)return{};var n=Ice(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ice(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Dt=F.forwardRef(function(e,t){var n=e.children,r=e.className,o=Lce(e,kce),s=it("recharts-layer",r);return F.createElement("g",IT({className:s},Fe(o,!0),{ref:t}),n)}),ui=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=0;console.warn(n.replace(/%s/g,function(){return o[c++]}))}},zS,C2;function Vce(){if(C2)return zS;C2=1;function e(t,n,r){var o=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var c=Array(s);++o<s;)c[o]=t[o+n];return c}return zS=e,zS}var US,_2;function $ce(){if(_2)return US;_2=1;var e=Vce();function t(n,r,o){var s=n.length;return o=o===void 0?s:o,!r&&o>=s?n:e(n,r,o)}return US=t,US}var qS,R2;function Sq(){if(R2)return qS;R2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,s="\\ufe0e\\ufe0f",c="\\u200d",u=RegExp("["+c+e+o+s+"]");function f(m){return u.test(m)}return qS=f,qS}var HS,j2;function Bce(){if(j2)return HS;j2=1;function e(t){return t.split("")}return HS=e,HS}var FS,P2;function zce(){if(P2)return FS;P2=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,s="\\ufe0e\\ufe0f",c="["+e+"]",u="["+o+"]",f="\\ud83c[\\udffb-\\udfff]",m="(?:"+u+"|"+f+")",g="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",S=m+"?",N="["+s+"]?",w="(?:"+x+"(?:"+[g,h,y].join("|")+")"+N+S+")*",A=N+S+w,D="(?:"+[g+u+"?",u,h,y,c].join("|")+")",_=RegExp(f+"(?="+f+")|"+D+A,"g");function P(O){return O.match(_)||[]}return FS=P,FS}var KS,M2;function Uce(){if(M2)return KS;M2=1;var e=Bce(),t=Sq(),n=zce();function r(o){return t(o)?n(o):e(o)}return KS=r,KS}var GS,k2;function qce(){if(k2)return GS;k2=1;var e=$ce(),t=Sq(),n=Uce(),r=xq();function o(s){return function(c){c=r(c);var u=t(c)?n(c):void 0,f=u?u[0]:c.charAt(0),m=u?e(u,1).join(""):c.slice(1);return f[s]()+m}}return GS=o,GS}var YS,L2;function Hce(){if(L2)return YS;L2=1;var e=qce(),t=e("toUpperCase");return YS=t,YS}var Fce=Hce();const Bx=Bt(Fce);function Jt(e){return function(){return e}}const Aq=Math.cos,fy=Math.sin,gi=Math.sqrt,my=Math.PI,zx=2*my,VT=Math.PI,$T=2*VT,vc=1e-6,Kce=$T-vc;function Oq(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Gce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Oq;const n=10**t;return function(r){this._+=r[0];for(let o=1,s=r.length;o<s;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Yce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Oq:Gce(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,s,c){this._append`C${+t},${+n},${+r},${+o},${this._x1=+s},${this._y1=+c}`}arcTo(t,n,r,o,s){if(t=+t,n=+n,r=+r,o=+o,s=+s,s<0)throw new Error(`negative radius: ${s}`);let c=this._x1,u=this._y1,f=r-t,m=o-n,g=c-t,h=u-n,y=g*g+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>vc)if(!(Math.abs(h*f-m*g)>vc)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-c,S=o-u,N=f*f+m*m,w=x*x+S*S,A=Math.sqrt(N),D=Math.sqrt(y),_=s*Math.tan((VT-Math.acos((N+y-w)/(2*A*D)))/2),P=_/D,O=_/A;Math.abs(P-1)>vc&&this._append`L${t+P*g},${n+P*h}`,this._append`A${s},${s},0,0,${+(h*x>g*S)},${this._x1=t+O*f},${this._y1=n+O*m}`}}arc(t,n,r,o,s,c){if(t=+t,n=+n,r=+r,c=!!c,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(o),f=r*Math.sin(o),m=t+u,g=n+f,h=1^c,y=c?o-s:s-o;this._x1===null?this._append`M${m},${g}`:(Math.abs(this._x1-m)>vc||Math.abs(this._y1-g)>vc)&&this._append`L${m},${g}`,r&&(y<0&&(y=y%$T+$T),y>Kce?this._append`A${r},${r},0,1,${h},${t-u},${n-f}A${r},${r},0,1,${h},${this._x1=m},${this._y1=g}`:y>vc&&this._append`A${r},${r},0,${+(y>=VT)},${h},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function rR(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Yce(t)}function aR(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Dq(e){this._context=e}Dq.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 Ux(e){return new Dq(e)}function Tq(e){return e[0]}function Cq(e){return e[1]}function _q(e,t){var n=Jt(!0),r=null,o=Ux,s=null,c=rR(u);e=typeof e=="function"?e:e===void 0?Tq:Jt(e),t=typeof t=="function"?t:t===void 0?Cq:Jt(t);function u(f){var m,g=(f=aR(f)).length,h,y=!1,x;for(r==null&&(s=o(x=c())),m=0;m<=g;++m)!(m<g&&n(h=f[m],m,f))===y&&((y=!y)?s.lineStart():s.lineEnd()),y&&s.point(+e(h,m,f),+t(h,m,f));if(x)return s=null,x+""||null}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Jt(+f),u):e},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Jt(+f),u):t},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Jt(!!f),u):n},u.curve=function(f){return arguments.length?(o=f,r!=null&&(s=o(r)),u):o},u.context=function(f){return arguments.length?(f==null?r=s=null:s=o(r=f),u):r},u}function Db(e,t,n){var r=null,o=Jt(!0),s=null,c=Ux,u=null,f=rR(m);e=typeof e=="function"?e:e===void 0?Tq:Jt(+e),t=typeof t=="function"?t:Jt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Cq:Jt(+n);function m(h){var y,x,S,N=(h=aR(h)).length,w,A=!1,D,_=new Array(N),P=new Array(N);for(s==null&&(u=c(D=f())),y=0;y<=N;++y){if(!(y<N&&o(w=h[y],y,h))===A)if(A=!A)x=y,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),S=y-1;S>=x;--S)u.point(_[S],P[S]);u.lineEnd(),u.areaEnd()}A&&(_[y]=+e(w,y,h),P[y]=+t(w,y,h),u.point(r?+r(w,y,h):_[y],n?+n(w,y,h):P[y]))}if(D)return u=null,D+""||null}function g(){return _q().defined(o).curve(c).context(s)}return m.x=function(h){return arguments.length?(e=typeof h=="function"?h:Jt(+h),r=null,m):e},m.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Jt(+h),m):e},m.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Jt(+h),m):r},m.y=function(h){return arguments.length?(t=typeof h=="function"?h:Jt(+h),n=null,m):t},m.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Jt(+h),m):t},m.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Jt(+h),m):n},m.lineX0=m.lineY0=function(){return g().x(e).y(t)},m.lineY1=function(){return g().x(e).y(n)},m.lineX1=function(){return g().x(r).y(t)},m.defined=function(h){return arguments.length?(o=typeof h=="function"?h:Jt(!!h),m):o},m.curve=function(h){return arguments.length?(c=h,s!=null&&(u=c(s)),m):c},m.context=function(h){return arguments.length?(h==null?s=u=null:u=c(s=h),m):s},m}class Rq{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Qce(e){return new Rq(e,!0)}function Xce(e){return new Rq(e,!1)}const iR={draw(e,t){const n=gi(t/my);e.moveTo(n,0),e.arc(0,0,n,0,zx)}},Wce={draw(e,t){const n=gi(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},jq=gi(1/3),Zce=jq*2,Jce={draw(e,t){const n=gi(t/Zce),r=n*jq;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},eue={draw(e,t){const n=gi(t),r=-n/2;e.rect(r,r,n,n)}},tue=.8908130915292852,Pq=fy(my/10)/fy(7*my/10),nue=fy(zx/10)*Pq,rue=-Aq(zx/10)*Pq,aue={draw(e,t){const n=gi(t*tue),r=nue*n,o=rue*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const c=zx*s/5,u=Aq(c),f=fy(c);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*o,f*r+u*o)}e.closePath()}},QS=gi(3),iue={draw(e,t){const n=-gi(t/(QS*3));e.moveTo(0,n*2),e.lineTo(-QS*n,-n),e.lineTo(QS*n,-n),e.closePath()}},Ma=-.5,ka=gi(3)/2,BT=1/gi(12),oue=(BT/2+1)*3,sue={draw(e,t){const n=gi(t/oue),r=n/2,o=n*BT,s=r,c=n*BT+n,u=-s,f=c;e.moveTo(r,o),e.lineTo(s,c),e.lineTo(u,f),e.lineTo(Ma*r-ka*o,ka*r+Ma*o),e.lineTo(Ma*s-ka*c,ka*s+Ma*c),e.lineTo(Ma*u-ka*f,ka*u+Ma*f),e.lineTo(Ma*r+ka*o,Ma*o-ka*r),e.lineTo(Ma*s+ka*c,Ma*c-ka*s),e.lineTo(Ma*u+ka*f,Ma*f-ka*u),e.closePath()}};function lue(e,t){let n=null,r=rR(o);e=typeof e=="function"?e:Jt(e||iR),t=typeof t=="function"?t:Jt(t===void 0?64:+t);function o(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return o.type=function(s){return arguments.length?(e=typeof s=="function"?s:Jt(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:Jt(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function hy(){}function py(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Mq(e){this._context=e}Mq.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:py(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:py(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cue(e){return new Mq(e)}function kq(e){this._context=e}kq.prototype={areaStart:hy,areaEnd:hy,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:py(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function uue(e){return new kq(e)}function Lq(e){this._context=e}Lq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:py(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function due(e){return new Lq(e)}function Iq(e){this._context=e}Iq.prototype={areaStart:hy,areaEnd:hy,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 fue(e){return new Iq(e)}function I2(e){return e<0?-1:1}function V2(e,t,n){var r=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(r||o<0&&-0),c=(n-e._y1)/(o||r<0&&-0),u=(s*o+c*r)/(r+o);return(I2(s)+I2(c))*Math.min(Math.abs(s),Math.abs(c),.5*Math.abs(u))||0}function $2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function XS(e,t,n){var r=e._x0,o=e._y0,s=e._x1,c=e._y1,u=(s-r)/3;e._context.bezierCurveTo(r+u,o+u*t,s-u,c-u*n,s,c)}function gy(e){this._context=e}gy.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:XS(this,this._t0,$2(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,XS(this,$2(this,n=V2(this,e,t)),n);break;default:XS(this,this._t0,n=V2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Vq(e){this._context=new $q(e)}(Vq.prototype=Object.create(gy.prototype)).point=function(e,t){gy.prototype.point.call(this,t,e)};function $q(e){this._context=e}$q.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,s){this._context.bezierCurveTo(t,e,r,n,s,o)}};function mue(e){return new gy(e)}function hue(e){return new Vq(e)}function Bq(e){this._context=e}Bq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=B2(e),o=B2(t),s=0,c=1;c<n;++s,++c)this._context.bezierCurveTo(r[0][s],o[0][s],r[1][s],o[1][s],e[c],t[c]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function B2(e){var t,n=e.length-1,r,o=new Array(n),s=new Array(n),c=new Array(n);for(o[0]=0,s[0]=2,c[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,s[t]=4,c[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,s[n-1]=7,c[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/s[t-1],s[t]-=r,c[t]-=r*c[t-1];for(o[n-1]=c[n-1]/s[n-1],t=n-2;t>=0;--t)o[t]=(c[t]-o[t+1])/s[t];for(s[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-o[t+1];return[o,s]}function pue(e){return new Bq(e)}function qx(e,t){this._context=e,this._t=t}qx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function gue(e){return new qx(e,.5)}function vue(e){return new qx(e,0)}function bue(e){return new qx(e,1)}function kd(e,t){if((c=e.length)>1)for(var n=1,r,o,s=e[t[0]],c,u=s.length;n<c;++n)for(o=s,s=e[t[n]],r=0;r<u;++r)s[r][1]+=s[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function zT(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function yue(e,t){return e[t]}function xue(e){const t=[];return t.key=e,t}function Nue(){var e=Jt([]),t=zT,n=kd,r=yue;function o(s){var c=Array.from(e.apply(this,arguments),xue),u,f=c.length,m=-1,g;for(const h of s)for(u=0,++m;u<f;++u)(c[u][m]=[0,+r(h,c[u].key,m,s)]).data=h;for(u=0,g=aR(t(c));u<f;++u)c[g[u]].index=u;return n(c,g),c}return o.keys=function(s){return arguments.length?(e=typeof s=="function"?s:Jt(Array.from(s)),o):e},o.value=function(s){return arguments.length?(r=typeof s=="function"?s:Jt(+s),o):r},o.order=function(s){return arguments.length?(t=s==null?zT:typeof s=="function"?s:Jt(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??kd,o):n},o}function wue(e,t){if((r=e.length)>0){for(var n,r,o=0,s=e[0].length,c;o<s;++o){for(c=n=0;n<r;++n)c+=e[n][o][1]||0;if(c)for(n=0;n<r;++n)e[n][o][1]/=c}kd(e,t)}}function Eue(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,s=r.length;n<s;++n){for(var c=0,u=0;c<o;++c)u+=e[c][n][1]||0;r[n][1]+=r[n][0]=-u/2}kd(e,t)}}function Sue(e,t){if(!(!((c=e.length)>0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,s,c;r<s;++r){for(var u=0,f=0,m=0;u<c;++u){for(var g=e[t[u]],h=g[r][1]||0,y=g[r-1][1]||0,x=(h-y)/2,S=0;S<u;++S){var N=e[t[S]],w=N[r][1]||0,A=N[r-1][1]||0;x+=w-A}f+=h,m+=x*h}o[r-1][1]+=o[r-1][0]=n,f&&(n-=m/f)}o[r-1][1]+=o[r-1][0]=n,kd(e,t)}}function Yh(e){"@babel/helpers - typeof";return Yh=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},Yh(e)}var Aue=["type","size","sizeType"];function UT(){return UT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UT.apply(this,arguments)}function z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function U2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z2(Object(n),!0).forEach(function(r){Oue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oue(e,t,n){return t=Due(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Due(e){var t=Tue(e,"string");return Yh(t)=="symbol"?t:t+""}function Tue(e,t){if(Yh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cue(e,t){if(e==null)return{};var n=_ue(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _ue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var zq={symbolCircle:iR,symbolCross:Wce,symbolDiamond:Jce,symbolSquare:eue,symbolStar:aue,symbolTriangle:iue,symbolWye:sue},Rue=Math.PI/180,jue=function(t){var n="symbol".concat(Bx(t));return zq[n]||iR},Pue=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var o=18*Rue;return 1.25*t*t*(Math.tan(o)-Math.tan(o*2)*Math.pow(Math.tan(o),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}},Mue=function(t,n){zq["symbol".concat(Bx(t))]=n},oR=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,s=o===void 0?64:o,c=t.sizeType,u=c===void 0?"area":c,f=Cue(t,Aue),m=U2(U2({},f),{},{type:r,size:s,sizeType:u}),g=function(){var w=jue(r),A=lue().type(w).size(Pue(s,u,r));return A()},h=m.className,y=m.cx,x=m.cy,S=Fe(m,!0);return y===+y&&x===+x&&s===+s?F.createElement("path",UT({},S,{className:it("recharts-symbols",h),transform:"translate(".concat(y,", ").concat(x,")"),d:g()})):null};oR.registerSymbol=Mue;function Ld(e){"@babel/helpers - typeof";return Ld=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},Ld(e)}function qT(){return qT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qT.apply(this,arguments)}function q2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q2(Object(n),!0).forEach(function(r){Qh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qq(r.key),r)}}function Vue(e,t,n){return t&&Iue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $ue(e,t,n){return t=vy(t),Bue(e,Uq()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}function Bue(e,t){if(t&&(Ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zue(e)}function zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uq=function(){return!!e})()}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function Uue(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&&HT(e,t)}function HT(e,t){return HT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},HT(e,t)}function Qh(e,t,n){return t=qq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qq(e){var t=que(e,"string");return Ld(t)=="symbol"?t:t+""}function que(e,t){if(Ld(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ld(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var La=32,sR=(function(e){function t(){return Lue(this,t),$ue(this,t,arguments)}return Uue(t,e),Vue(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,s=La/2,c=La/6,u=La/3,f=r.inactive?o:r.color;if(r.type==="plainline")return F.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:La,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return F.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(u,`
A`).concat(c,",").concat(c,",0,1,1,").concat(2*u,",").concat(s,`
H`).concat(La,"M").concat(2*u,",").concat(s,`
A`).concat(c,",").concat(c,",0,1,1,").concat(u,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return F.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(La/8,"h").concat(La,"v").concat(La*3/4,"h").concat(-La,"z"),className:"recharts-legend-icon"});if(F.isValidElement(r.legendIcon)){var m=kue({},r);return delete m.legendIcon,F.cloneElement(r.legendIcon,m)}return F.createElement(oR,{fill:f,cx:s,cy:s,size:La,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,s=o.payload,c=o.iconSize,u=o.layout,f=o.formatter,m=o.inactiveColor,g={x:0,y:0,width:La,height:La},h={display:u==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(x,S){var N=x.formatter||f,w=it(Qh(Qh({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",x.inactive));if(x.type==="none")return null;var A=Xe(x.value)?null:x.value;ui(!Xe(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 D=x.inactive?m:x.color;return F.createElement("li",qT({className:w,style:h,key:"legend-item-".concat(S)},Hc(r.props,x,S)),F.createElement(LT,{width:c,height:c,viewBox:g,style:y},r.renderIcon(x)),F.createElement("span",{className:"recharts-legend-item-text",style:{color:D}},N?N(A,x,S):A))})}},{key:"render",value:function(){var r=this.props,o=r.payload,s=r.layout,c=r.align;if(!o||!o.length)return null;var u={padding:0,margin:0,textAlign:s==="horizontal"?c:"left"};return F.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(R.PureComponent);Qh(sR,"displayName","Legend");Qh(sR,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var WS,H2;function Hue(){if(H2)return WS;H2=1;var e=Ix();function t(){this.__data__=new e,this.size=0}return WS=t,WS}var ZS,F2;function Fue(){if(F2)return ZS;F2=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return ZS=e,ZS}var JS,K2;function Kue(){if(K2)return JS;K2=1;function e(t){return this.__data__.get(t)}return JS=e,JS}var eA,G2;function Gue(){if(G2)return eA;G2=1;function e(t){return this.__data__.has(t)}return eA=e,eA}var tA,Y2;function Yue(){if(Y2)return tA;Y2=1;var e=Ix(),t=W_(),n=Z_(),r=200;function o(s,c){var u=this.__data__;if(u instanceof e){var f=u.__data__;if(!t||f.length<r-1)return f.push([s,c]),this.size=++u.size,this;u=this.__data__=new n(f)}return u.set(s,c),this.size=u.size,this}return tA=o,tA}var nA,Q2;function Hq(){if(Q2)return nA;Q2=1;var e=Ix(),t=Hue(),n=Fue(),r=Kue(),o=Gue(),s=Yue();function c(u){var f=this.__data__=new e(u);this.size=f.size}return c.prototype.clear=t,c.prototype.delete=n,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,nA=c,nA}var rA,X2;function Que(){if(X2)return rA;X2=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return rA=t,rA}var aA,W2;function Xue(){if(W2)return aA;W2=1;function e(t){return this.__data__.has(t)}return aA=e,aA}var iA,Z2;function Fq(){if(Z2)return iA;Z2=1;var e=Z_(),t=Que(),n=Xue();function r(o){var s=-1,c=o==null?0:o.length;for(this.__data__=new e;++s<c;)this.add(o[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,iA=r,iA}var oA,J2;function Kq(){if(J2)return oA;J2=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return oA=e,oA}var sA,e4;function Gq(){if(e4)return sA;e4=1;function e(t,n){return t.has(n)}return sA=e,sA}var lA,t4;function Yq(){if(t4)return lA;t4=1;var e=Fq(),t=Kq(),n=Gq(),r=1,o=2;function s(c,u,f,m,g,h){var y=f&r,x=c.length,S=u.length;if(x!=S&&!(y&&S>x))return!1;var N=h.get(c),w=h.get(u);if(N&&w)return N==u&&w==c;var A=-1,D=!0,_=f&o?new e:void 0;for(h.set(c,u),h.set(u,c);++A<x;){var P=c[A],O=u[A];if(m)var C=y?m(O,P,A,u,c,h):m(P,O,A,c,u,h);if(C!==void 0){if(C)continue;D=!1;break}if(_){if(!t(u,function(j,k){if(!n(_,k)&&(P===j||g(P,j,f,m,h)))return _.push(k)})){D=!1;break}}else if(!(P===O||g(P,O,f,m,h))){D=!1;break}}return h.delete(c),h.delete(u),D}return lA=s,lA}var cA,n4;function Wue(){if(n4)return cA;n4=1;var e=go(),t=e.Uint8Array;return cA=t,cA}var uA,r4;function Zue(){if(r4)return uA;r4=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,s){r[++n]=[s,o]}),r}return uA=e,uA}var dA,a4;function lR(){if(a4)return dA;a4=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return dA=e,dA}var fA,i4;function Jue(){if(i4)return fA;i4=1;var e=qp(),t=Wue(),n=X_(),r=Yq(),o=Zue(),s=lR(),c=1,u=2,f="[object Boolean]",m="[object Date]",g="[object Error]",h="[object Map]",y="[object Number]",x="[object RegExp]",S="[object Set]",N="[object String]",w="[object Symbol]",A="[object ArrayBuffer]",D="[object DataView]",_=e?e.prototype:void 0,P=_?_.valueOf:void 0;function O(C,j,k,$,B,U,H){switch(k){case D:if(C.byteLength!=j.byteLength||C.byteOffset!=j.byteOffset)return!1;C=C.buffer,j=j.buffer;case A:return!(C.byteLength!=j.byteLength||!U(new t(C),new t(j)));case f:case m:case y:return n(+C,+j);case g:return C.name==j.name&&C.message==j.message;case x:case N:return C==j+"";case h:var G=o;case S:var Y=$&c;if(G||(G=s),C.size!=j.size&&!Y)return!1;var J=H.get(C);if(J)return J==j;$|=u,H.set(C,j);var q=r(G(C),G(j),$,B,U,H);return H.delete(C),q;case w:if(P)return P.call(C)==P.call(j)}return!1}return fA=O,fA}var mA,o4;function Qq(){if(o4)return mA;o4=1;function e(t,n){for(var r=-1,o=n.length,s=t.length;++r<o;)t[s+r]=n[r];return t}return mA=e,mA}var hA,s4;function ede(){if(s4)return hA;s4=1;var e=Qq(),t=Gr();function n(r,o,s){var c=o(r);return t(r)?c:e(c,s(r))}return hA=n,hA}var pA,l4;function tde(){if(l4)return pA;l4=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,s=0,c=[];++r<o;){var u=t[r];n(u,r,t)&&(c[s++]=u)}return c}return pA=e,pA}var gA,c4;function nde(){if(c4)return gA;c4=1;function e(){return[]}return gA=e,gA}var vA,u4;function rde(){if(u4)return vA;u4=1;var e=tde(),t=nde(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(c){return c==null?[]:(c=Object(c),e(o(c),function(u){return r.call(c,u)}))}:t;return vA=s,vA}var bA,d4;function ade(){if(d4)return bA;d4=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return bA=e,bA}var yA,f4;function ide(){if(f4)return yA;f4=1;var e=fs(),t=ms(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return yA=r,yA}var xA,m4;function cR(){if(m4)return xA;m4=1;var e=ide(),t=ms(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(c){return t(c)&&r.call(c,"callee")&&!o.call(c,"callee")};return xA=s,xA}var yh={exports:{}},NA,h4;function ode(){if(h4)return NA;h4=1;function e(){return!1}return NA=e,NA}yh.exports;var p4;function Xq(){return p4||(p4=1,(function(e,t){var n=go(),r=ode(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===o,u=c?n.Buffer:void 0,f=u?u.isBuffer:void 0,m=f||r;e.exports=m})(yh,yh.exports)),yh.exports}var wA,g4;function uR(){if(g4)return wA;g4=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var s=typeof r;return o=o??e,!!o&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return wA=n,wA}var EA,v4;function dR(){if(v4)return EA;v4=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return EA=t,EA}var SA,b4;function sde(){if(b4)return SA;b4=1;var e=fs(),t=dR(),n=ms(),r="[object Arguments]",o="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Function]",m="[object Map]",g="[object Number]",h="[object Object]",y="[object RegExp]",x="[object Set]",S="[object String]",N="[object WeakMap]",w="[object ArrayBuffer]",A="[object DataView]",D="[object Float32Array]",_="[object Float64Array]",P="[object Int8Array]",O="[object Int16Array]",C="[object Int32Array]",j="[object Uint8Array]",k="[object Uint8ClampedArray]",$="[object Uint16Array]",B="[object Uint32Array]",U={};U[D]=U[_]=U[P]=U[O]=U[C]=U[j]=U[k]=U[$]=U[B]=!0,U[r]=U[o]=U[w]=U[s]=U[A]=U[c]=U[u]=U[f]=U[m]=U[g]=U[h]=U[y]=U[x]=U[S]=U[N]=!1;function H(G){return n(G)&&t(G.length)&&!!U[e(G)]}return SA=H,SA}var AA,y4;function Wq(){if(y4)return AA;y4=1;function e(t){return function(n){return t(n)}}return AA=e,AA}var xh={exports:{}};xh.exports;var x4;function lde(){return x4||(x4=1,(function(e,t){var n=vq(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===r,c=s&&n.process,u=(function(){try{var f=o&&o.require&&o.require("util").types;return f||c&&c.binding&&c.binding("util")}catch{}})();e.exports=u})(xh,xh.exports)),xh.exports}var OA,N4;function Zq(){if(N4)return OA;N4=1;var e=sde(),t=Wq(),n=lde(),r=n&&n.isTypedArray,o=r?t(r):e;return OA=o,OA}var DA,w4;function cde(){if(w4)return DA;w4=1;var e=ade(),t=cR(),n=Gr(),r=Xq(),o=uR(),s=Zq(),c=Object.prototype,u=c.hasOwnProperty;function f(m,g){var h=n(m),y=!h&&t(m),x=!h&&!y&&r(m),S=!h&&!y&&!x&&s(m),N=h||y||x||S,w=N?e(m.length,String):[],A=w.length;for(var D in m)(g||u.call(m,D))&&!(N&&(D=="length"||x&&(D=="offset"||D=="parent")||S&&(D=="buffer"||D=="byteLength"||D=="byteOffset")||o(D,A)))&&w.push(D);return w}return DA=f,DA}var TA,E4;function ude(){if(E4)return TA;E4=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return TA=t,TA}var CA,S4;function Jq(){if(S4)return CA;S4=1;function e(t,n){return function(r){return t(n(r))}}return CA=e,CA}var _A,A4;function dde(){if(A4)return _A;A4=1;var e=Jq(),t=e(Object.keys,Object);return _A=t,_A}var RA,O4;function fde(){if(O4)return RA;O4=1;var e=ude(),t=dde(),n=Object.prototype,r=n.hasOwnProperty;function o(s){if(!e(s))return t(s);var c=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&c.push(u);return c}return RA=o,RA}var jA,D4;function Hp(){if(D4)return jA;D4=1;var e=Q_(),t=dR();function n(r){return r!=null&&t(r.length)&&!e(r)}return jA=n,jA}var PA,T4;function Hx(){if(T4)return PA;T4=1;var e=cde(),t=fde(),n=Hp();function r(o){return n(o)?e(o):t(o)}return PA=r,PA}var MA,C4;function mde(){if(C4)return MA;C4=1;var e=ede(),t=rde(),n=Hx();function r(o){return e(o,n,t)}return MA=r,MA}var kA,_4;function hde(){if(_4)return kA;_4=1;var e=mde(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(s,c,u,f,m,g){var h=u&t,y=e(s),x=y.length,S=e(c),N=S.length;if(x!=N&&!h)return!1;for(var w=x;w--;){var A=y[w];if(!(h?A in c:r.call(c,A)))return!1}var D=g.get(s),_=g.get(c);if(D&&_)return D==c&&_==s;var P=!0;g.set(s,c),g.set(c,s);for(var O=h;++w<x;){A=y[w];var C=s[A],j=c[A];if(f)var k=h?f(j,C,A,c,s,g):f(C,j,A,s,c,g);if(!(k===void 0?C===j||m(C,j,u,f,g):k)){P=!1;break}O||(O=A=="constructor")}if(P&&!O){var $=s.constructor,B=c.constructor;$!=B&&"constructor"in s&&"constructor"in c&&!(typeof $=="function"&&$ instanceof $&&typeof B=="function"&&B instanceof B)&&(P=!1)}return g.delete(s),g.delete(c),P}return kA=o,kA}var LA,R4;function pde(){if(R4)return LA;R4=1;var e=ru(),t=go(),n=e(t,"DataView");return LA=n,LA}var IA,j4;function gde(){if(j4)return IA;j4=1;var e=ru(),t=go(),n=e(t,"Promise");return IA=n,IA}var VA,P4;function eH(){if(P4)return VA;P4=1;var e=ru(),t=go(),n=e(t,"Set");return VA=n,VA}var $A,M4;function vde(){if(M4)return $A;M4=1;var e=ru(),t=go(),n=e(t,"WeakMap");return $A=n,$A}var BA,k4;function bde(){if(k4)return BA;k4=1;var e=pde(),t=W_(),n=gde(),r=eH(),o=vde(),s=fs(),c=bq(),u="[object Map]",f="[object Object]",m="[object Promise]",g="[object Set]",h="[object WeakMap]",y="[object DataView]",x=c(e),S=c(t),N=c(n),w=c(r),A=c(o),D=s;return(e&&D(new e(new ArrayBuffer(1)))!=y||t&&D(new t)!=u||n&&D(n.resolve())!=m||r&&D(new r)!=g||o&&D(new o)!=h)&&(D=function(_){var P=s(_),O=P==f?_.constructor:void 0,C=O?c(O):"";if(C)switch(C){case x:return y;case S:return u;case N:return m;case w:return g;case A:return h}return P}),BA=D,BA}var zA,L4;function yde(){if(L4)return zA;L4=1;var e=Hq(),t=Yq(),n=Jue(),r=hde(),o=bde(),s=Gr(),c=Xq(),u=Zq(),f=1,m="[object Arguments]",g="[object Array]",h="[object Object]",y=Object.prototype,x=y.hasOwnProperty;function S(N,w,A,D,_,P){var O=s(N),C=s(w),j=O?g:o(N),k=C?g:o(w);j=j==m?h:j,k=k==m?h:k;var $=j==h,B=k==h,U=j==k;if(U&&c(N)){if(!c(w))return!1;O=!0,$=!1}if(U&&!$)return P||(P=new e),O||u(N)?t(N,w,A,D,_,P):n(N,w,j,A,D,_,P);if(!(A&f)){var H=$&&x.call(N,"__wrapped__"),G=B&&x.call(w,"__wrapped__");if(H||G){var Y=H?N.value():N,J=G?w.value():w;return P||(P=new e),_(Y,J,A,D,P)}}return U?(P||(P=new e),r(N,w,A,D,_,P)):!1}return zA=S,zA}var UA,I4;function fR(){if(I4)return UA;I4=1;var e=yde(),t=ms();function n(r,o,s,c,u){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,s,c,n,u)}return UA=n,UA}var qA,V4;function xde(){if(V4)return qA;V4=1;var e=Hq(),t=fR(),n=1,r=2;function o(s,c,u,f){var m=u.length,g=m,h=!f;if(s==null)return!g;for(s=Object(s);m--;){var y=u[m];if(h&&y[2]?y[1]!==s[y[0]]:!(y[0]in s))return!1}for(;++m<g;){y=u[m];var x=y[0],S=s[x],N=y[1];if(h&&y[2]){if(S===void 0&&!(x in s))return!1}else{var w=new e;if(f)var A=f(S,N,x,s,c,w);if(!(A===void 0?t(N,S,n|r,f,w):A))return!1}}return!0}return qA=o,qA}var HA,$4;function tH(){if($4)return HA;$4=1;var e=xl();function t(n){return n===n&&!e(n)}return HA=t,HA}var FA,B4;function Nde(){if(B4)return FA;B4=1;var e=tH(),t=Hx();function n(r){for(var o=t(r),s=o.length;s--;){var c=o[s],u=r[c];o[s]=[c,u,e(u)]}return o}return FA=n,FA}var KA,z4;function nH(){if(z4)return KA;z4=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return KA=e,KA}var GA,U4;function wde(){if(U4)return GA;U4=1;var e=xde(),t=Nde(),n=nH();function r(o){var s=t(o);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(c){return c===o||e(c,o,s)}}return GA=r,GA}var YA,q4;function Ede(){if(q4)return YA;q4=1;function e(t,n){return t!=null&&n in Object(t)}return YA=e,YA}var QA,H4;function Sde(){if(H4)return QA;H4=1;var e=Nq(),t=cR(),n=Gr(),r=uR(),o=dR(),s=$x();function c(u,f,m){f=e(f,u);for(var g=-1,h=f.length,y=!1;++g<h;){var x=s(f[g]);if(!(y=u!=null&&m(u,x)))break;u=u[x]}return y||++g!=h?y:(h=u==null?0:u.length,!!h&&o(h)&&r(x,h)&&(n(u)||t(u)))}return QA=c,QA}var XA,F4;function Ade(){if(F4)return XA;F4=1;var e=Ede(),t=Sde();function n(r,o){return r!=null&&t(r,o,e)}return XA=n,XA}var WA,K4;function Ode(){if(K4)return WA;K4=1;var e=fR(),t=wq(),n=Ade(),r=Y_(),o=tH(),s=nH(),c=$x(),u=1,f=2;function m(g,h){return r(g)&&o(h)?s(c(g),h):function(y){var x=t(y,g);return x===void 0&&x===h?n(y,g):e(h,x,u|f)}}return WA=m,WA}var ZA,G4;function xf(){if(G4)return ZA;G4=1;function e(t){return t}return ZA=e,ZA}var JA,Y4;function Dde(){if(Y4)return JA;Y4=1;function e(t){return function(n){return n?.[t]}}return JA=e,JA}var eO,Q4;function Tde(){if(Q4)return eO;Q4=1;var e=eR();function t(n){return function(r){return e(r,n)}}return eO=t,eO}var tO,X4;function Cde(){if(X4)return tO;X4=1;var e=Dde(),t=Tde(),n=Y_(),r=$x();function o(s){return n(s)?e(r(s)):t(s)}return tO=o,tO}var nO,W4;function vo(){if(W4)return nO;W4=1;var e=wde(),t=Ode(),n=xf(),r=Gr(),o=Cde();function s(c){return typeof c=="function"?c:c==null?n:typeof c=="object"?r(c)?t(c[0],c[1]):e(c):o(c)}return nO=s,nO}var rO,Z4;function rH(){if(Z4)return rO;Z4=1;function e(t,n,r,o){for(var s=t.length,c=r+(o?1:-1);o?c--:++c<s;)if(n(t[c],c,t))return c;return-1}return rO=e,rO}var aO,J4;function _de(){if(J4)return aO;J4=1;function e(t){return t!==t}return aO=e,aO}var iO,e$;function Rde(){if(e$)return iO;e$=1;function e(t,n,r){for(var o=r-1,s=t.length;++o<s;)if(t[o]===n)return o;return-1}return iO=e,iO}var oO,t$;function jde(){if(t$)return oO;t$=1;var e=rH(),t=_de(),n=Rde();function r(o,s,c){return s===s?n(o,s,c):e(o,t,c)}return oO=r,oO}var sO,n$;function Pde(){if(n$)return sO;n$=1;var e=jde();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return sO=t,sO}var lO,r$;function Mde(){if(r$)return lO;r$=1;function e(t,n,r){for(var o=-1,s=t==null?0:t.length;++o<s;)if(r(n,t[o]))return!0;return!1}return lO=e,lO}var cO,a$;function kde(){if(a$)return cO;a$=1;function e(){}return cO=e,cO}var uO,i$;function Lde(){if(i$)return uO;i$=1;var e=eH(),t=kde(),n=lR(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return uO=o,uO}var dO,o$;function Ide(){if(o$)return dO;o$=1;var e=Fq(),t=Pde(),n=Mde(),r=Gq(),o=Lde(),s=lR(),c=200;function u(f,m,g){var h=-1,y=t,x=f.length,S=!0,N=[],w=N;if(g)S=!1,y=n;else if(x>=c){var A=m?null:o(f);if(A)return s(A);S=!1,y=r,w=new e}else w=m?[]:N;e:for(;++h<x;){var D=f[h],_=m?m(D):D;if(D=g||D!==0?D:0,S&&_===_){for(var P=w.length;P--;)if(w[P]===_)continue e;m&&w.push(_),N.push(D)}else y(w,_,g)||(w!==N&&w.push(_),N.push(D))}return N}return dO=u,dO}var fO,s$;function Vde(){if(s$)return fO;s$=1;var e=vo(),t=Ide();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return fO=n,fO}var $de=Vde();const l$=Bt($de);function aH(e,t,n){return t===!0?l$(e,n):Xe(t)?l$(e,t):e}function Id(e){"@babel/helpers - typeof";return Id=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},Id(e)}var Bde=["ref"];function c$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c$(Object(n),!0).forEach(function(r){Fx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oH(r.key),r)}}function Ude(e,t,n){return t&&u$(e.prototype,t),n&&u$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qde(e,t,n){return t=by(t),Hde(e,iH()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function Hde(e,t){if(t&&(Id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fde(e)}function Fde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iH=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function Kde(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&&FT(e,t)}function FT(e,t){return FT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},FT(e,t)}function Fx(e,t,n){return t=oH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oH(e){var t=Gde(e,"string");return Id(t)=="symbol"?t:t+""}function Gde(e,t){if(Id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Yde(e,t){if(e==null)return{};var n=Qde(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qde(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Xde(e){return e.value}function Wde(e,t){if(F.isValidElement(e))return F.cloneElement(e,t);if(typeof e=="function")return F.createElement(e,t);t.ref;var n=Yde(t,Bde);return F.createElement(sR,n)}var d$=1,Dc=(function(e){function t(){var n;zde(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=qde(this,t,[].concat(o)),Fx(n,"lastBoundingBox",{width:-1,height:-1}),n}return Kde(t,e),Ude(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,o=this.getBBox();o?(Math.abs(o.width-this.lastBoundingBox.width)>d$||Math.abs(o.height-this.lastBoundingBox.height)>d$)&&(this.lastBoundingBox.width=o.width,this.lastBoundingBox.height=o.height,r&&r(o)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Xo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,s=o.layout,c=o.align,u=o.verticalAlign,f=o.margin,m=o.chartWidth,g=o.chartHeight,h,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(c==="center"&&s==="vertical"){var x=this.getBBoxSnapshot();h={left:((m||0)-x.width)/2}}else h=c==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(u==="middle"){var S=this.getBBoxSnapshot();y={top:((g||0)-S.height)/2}}else y=u==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Xo(Xo({},h),y)}},{key:"render",value:function(){var r=this,o=this.props,s=o.content,c=o.width,u=o.height,f=o.wrapperStyle,m=o.payloadUniqBy,g=o.payload,h=Xo(Xo({position:"absolute",width:c||"auto",height:u||"auto"},this.getDefaultPosition(f)),f);return F.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(x){r.wrapperNode=x}},Wde(s,Xo(Xo({},this.props),{},{payload:aH(g,m,Xde)})))}}],[{key:"getWithHeight",value:function(r,o){var s=Xo(Xo({},this.defaultProps),r.props),c=s.layout;return c==="vertical"&&Oe(r.props.height)?{height:r.props.height}:c==="horizontal"?{width:r.props.width||o}:null}}])})(R.PureComponent);Fx(Dc,"displayName","Legend");Fx(Dc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var mO,f$;function Zde(){if(f$)return mO;f$=1;var e=qp(),t=cR(),n=Gr(),r=e?e.isConcatSpreadable:void 0;function o(s){return n(s)||t(s)||!!(r&&s&&s[r])}return mO=o,mO}var hO,m$;function sH(){if(m$)return hO;m$=1;var e=Qq(),t=Zde();function n(r,o,s,c,u){var f=-1,m=r.length;for(s||(s=t),u||(u=[]);++f<m;){var g=r[f];o>0&&s(g)?o>1?n(g,o-1,s,c,u):e(u,g):c||(u[u.length]=g)}return u}return hO=n,hO}var pO,h$;function Jde(){if(h$)return pO;h$=1;function e(t){return function(n,r,o){for(var s=-1,c=Object(n),u=o(n),f=u.length;f--;){var m=u[t?f:++s];if(r(c[m],m,c)===!1)break}return n}}return pO=e,pO}var gO,p$;function efe(){if(p$)return gO;p$=1;var e=Jde(),t=e();return gO=t,gO}var vO,g$;function lH(){if(g$)return vO;g$=1;var e=efe(),t=Hx();function n(r,o){return r&&e(r,o,t)}return vO=n,vO}var bO,v$;function tfe(){if(v$)return bO;v$=1;var e=Hp();function t(n,r){return function(o,s){if(o==null)return o;if(!e(o))return n(o,s);for(var c=o.length,u=r?c:-1,f=Object(o);(r?u--:++u<c)&&s(f[u],u,f)!==!1;);return o}}return bO=t,bO}var yO,b$;function mR(){if(b$)return yO;b$=1;var e=lH(),t=tfe(),n=t(e);return yO=n,yO}var xO,y$;function cH(){if(y$)return xO;y$=1;var e=mR(),t=Hp();function n(r,o){var s=-1,c=t(r)?Array(r.length):[];return e(r,function(u,f,m){c[++s]=o(u,f,m)}),c}return xO=n,xO}var NO,x$;function nfe(){if(x$)return NO;x$=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return NO=e,NO}var wO,N$;function rfe(){if(N$)return wO;N$=1;var e=gf();function t(n,r){if(n!==r){var o=n!==void 0,s=n===null,c=n===n,u=e(n),f=r!==void 0,m=r===null,g=r===r,h=e(r);if(!m&&!h&&!u&&n>r||u&&f&&g&&!m&&!h||s&&f&&g||!o&&g||!c)return 1;if(!s&&!u&&!h&&n<r||h&&o&&c&&!s&&!u||m&&o&&c||!f&&c||!g)return-1}return 0}return wO=t,wO}var EO,w$;function afe(){if(w$)return EO;w$=1;var e=rfe();function t(n,r,o){for(var s=-1,c=n.criteria,u=r.criteria,f=c.length,m=o.length;++s<f;){var g=e(c[s],u[s]);if(g){if(s>=m)return g;var h=o[s];return g*(h=="desc"?-1:1)}}return n.index-r.index}return EO=t,EO}var SO,E$;function ife(){if(E$)return SO;E$=1;var e=J_(),t=eR(),n=vo(),r=cH(),o=nfe(),s=Wq(),c=afe(),u=xf(),f=Gr();function m(g,h,y){h.length?h=e(h,function(N){return f(N)?function(w){return t(w,N.length===1?N[0]:N)}:N}):h=[u];var x=-1;h=e(h,s(n));var S=r(g,function(N,w,A){var D=e(h,function(_){return _(N)});return{criteria:D,index:++x,value:N}});return o(S,function(N,w){return c(N,w,y)})}return SO=m,SO}var AO,S$;function ofe(){if(S$)return AO;S$=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return AO=e,AO}var OO,A$;function sfe(){if(A$)return OO;A$=1;var e=ofe(),t=Math.max;function n(r,o,s){return o=t(o===void 0?r.length-1:o,0),function(){for(var c=arguments,u=-1,f=t(c.length-o,0),m=Array(f);++u<f;)m[u]=c[o+u];u=-1;for(var g=Array(o+1);++u<o;)g[u]=c[u];return g[o]=s(m),e(r,this,g)}}return OO=n,OO}var DO,O$;function lfe(){if(O$)return DO;O$=1;function e(t){return function(){return t}}return DO=e,DO}var TO,D$;function uH(){if(D$)return TO;D$=1;var e=ru(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return TO=t,TO}var CO,T$;function cfe(){if(T$)return CO;T$=1;var e=lfe(),t=uH(),n=xf(),r=t?function(o,s){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return CO=r,CO}var _O,C$;function ufe(){if(C$)return _O;C$=1;var e=800,t=16,n=Date.now;function r(o){var s=0,c=0;return function(){var u=n(),f=t-(u-c);if(c=u,f>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return _O=r,_O}var RO,_$;function dfe(){if(_$)return RO;_$=1;var e=cfe(),t=ufe(),n=t(e);return RO=n,RO}var jO,R$;function ffe(){if(R$)return jO;R$=1;var e=xf(),t=sfe(),n=dfe();function r(o,s){return n(t(o,s,e),o+"")}return jO=r,jO}var PO,j$;function Kx(){if(j$)return PO;j$=1;var e=X_(),t=Hp(),n=uR(),r=xl();function o(s,c,u){if(!r(u))return!1;var f=typeof c;return(f=="number"?t(u)&&n(c,u.length):f=="string"&&c in u)?e(u[c],s):!1}return PO=o,PO}var MO,P$;function mfe(){if(P$)return MO;P$=1;var e=sH(),t=ife(),n=ffe(),r=Kx(),o=n(function(s,c){if(s==null)return[];var u=c.length;return u>1&&r(s,c[0],c[1])?c=[]:u>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),t(s,e(c,1),[])});return MO=o,MO}var hfe=mfe();const hR=Bt(hfe);function Xh(e){"@babel/helpers - typeof";return Xh=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},Xh(e)}function KT(){return KT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KT.apply(this,arguments)}function pfe(e,t){return yfe(e)||bfe(e,t)||vfe(e,t)||gfe()}function gfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vfe(e,t){if(e){if(typeof e=="string")return M$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M$(e,t)}}function M$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function yfe(e){if(Array.isArray(e))return e}function k$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k$(Object(n),!0).forEach(function(r){xfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xfe(e,t,n){return t=Nfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nfe(e){var t=wfe(e,"string");return Xh(t)=="symbol"?t:t+""}function wfe(e,t){if(Xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Efe(e){return Array.isArray(e)&&$n(e[0])&&$n(e[1])?e.join(" ~ "):e}var Sfe=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,s=o===void 0?{}:o,c=t.itemStyle,u=c===void 0?{}:c,f=t.labelStyle,m=f===void 0?{}:f,g=t.payload,h=t.formatter,y=t.itemSorter,x=t.wrapperClassName,S=t.labelClassName,N=t.label,w=t.labelFormatter,A=t.accessibilityLayer,D=A===void 0?!1:A,_=function(){if(g&&g.length){var H={padding:0,margin:0},G=(y?hR(g,y):g).map(function(Y,J){if(Y.type==="none")return null;var q=kO({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},u),z=Y.formatter||h||Efe,K=Y.value,te=Y.name,ne=K,L=te;if(z&&ne!=null&&L!=null){var Q=z(K,te,Y,J,g);if(Array.isArray(Q)){var W=pfe(Q,2);ne=W[0],L=W[1]}else ne=Q}return F.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:q},$n(L)?F.createElement("span",{className:"recharts-tooltip-item-name"},L):null,$n(L)?F.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,F.createElement("span",{className:"recharts-tooltip-item-value"},ne),F.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return F.createElement("ul",{className:"recharts-tooltip-item-list",style:H},G)}return null},P=kO({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),O=kO({margin:0},m),C=!ot(N),j=C?N:"",k=it("recharts-default-tooltip",x),$=it("recharts-tooltip-label",S);C&&w&&g!==void 0&&g!==null&&(j=w(N,g));var B=D?{role:"status","aria-live":"assertive"}:{};return F.createElement("div",KT({className:k,style:P},B),F.createElement("p",{className:$,style:O},F.isValidElement(j)?j:"".concat(j)),_())};function Wh(e){"@babel/helpers - typeof";return Wh=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},Wh(e)}function Tb(e,t,n){return t=Afe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Afe(e){var t=Ofe(e,"string");return Wh(t)=="symbol"?t:t+""}function Ofe(e,t){if(Wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sh="recharts-tooltip-wrapper",Dfe={visibility:"hidden"};function Tfe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return it(sh,Tb(Tb(Tb(Tb({},"".concat(sh,"-right"),Oe(n)&&t&&Oe(t.x)&&n>=t.x),"".concat(sh,"-left"),Oe(n)&&t&&Oe(t.x)&&n<t.x),"".concat(sh,"-bottom"),Oe(r)&&t&&Oe(t.y)&&r>=t.y),"".concat(sh,"-top"),Oe(r)&&t&&Oe(t.y)&&r<t.y))}function L$(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,s=e.position,c=e.reverseDirection,u=e.tooltipDimension,f=e.viewBox,m=e.viewBoxDimension;if(s&&Oe(s[r]))return s[r];var g=n[r]-u-o,h=n[r]+o;if(t[r])return c[r]?g:h;if(c[r]){var y=g,x=f[r];return y<x?Math.max(h,f[r]):Math.max(g,f[r])}var S=h+u,N=f[r]+m;return S>N?Math.max(g,f[r]):Math.max(h,f[r])}function Cfe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function _fe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,s=e.reverseDirection,c=e.tooltipBox,u=e.useTranslate3d,f=e.viewBox,m,g,h;return c.height>0&&c.width>0&&n?(g=L$({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:c.width,viewBox:f,viewBoxDimension:f.width}),h=L$({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:c.height,viewBox:f,viewBoxDimension:f.height}),m=Cfe({translateX:g,translateY:h,useTranslate3d:u})):m=Dfe,{cssProperties:m,cssClasses:Tfe({translateX:g,translateY:h,coordinate:n})}}function Vd(e){"@babel/helpers - typeof";return Vd=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},Vd(e)}function I$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function V$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I$(Object(n),!0).forEach(function(r){YT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jfe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fH(r.key),r)}}function Pfe(e,t,n){return t&&jfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mfe(e,t,n){return t=yy(t),kfe(e,dH()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function kfe(e,t){if(t&&(Vd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lfe(e)}function Lfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dH=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function Ife(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&&GT(e,t)}function GT(e,t){return GT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},GT(e,t)}function YT(e,t,n){return t=fH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fH(e){var t=Vfe(e,"string");return Vd(t)=="symbol"?t:t+""}function Vfe(e,t){if(Vd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $$=1,$fe=(function(e){function t(){var n;Rfe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Mfe(this,t,[].concat(o)),YT(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),YT(n,"handleKeyDown",function(c){if(c.key==="Escape"){var u,f,m,g;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&u!==void 0?u:0,y:(m=(g=n.props.coordinate)===null||g===void 0?void 0:g.y)!==null&&m!==void 0?m:0}})}}),n}return Ife(t,e),Pfe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>$$||Math.abs(r.height-this.state.lastBoundingBox.height)>$$)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,o;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,o=this.props,s=o.active,c=o.allowEscapeViewBox,u=o.animationDuration,f=o.animationEasing,m=o.children,g=o.coordinate,h=o.hasPayload,y=o.isAnimationActive,x=o.offset,S=o.position,N=o.reverseDirection,w=o.useTranslate3d,A=o.viewBox,D=o.wrapperStyle,_=_fe({allowEscapeViewBox:c,coordinate:g,offsetTopLeft:x,position:S,reverseDirection:N,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:A}),P=_.cssClasses,O=_.cssProperties,C=V$(V$({transition:y&&s?"transform ".concat(u,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&h?"visible":"hidden",position:"absolute",top:0,left:0},D);return F.createElement("div",{tabIndex:-1,className:P,style:C,ref:function(k){r.wrapperNode=k}},m)}}])})(R.PureComponent),Bfe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},au={isSsr:Bfe()};function $d(e){"@babel/helpers - typeof";return $d=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},$d(e)}function B$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B$(Object(n),!0).forEach(function(r){pR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ufe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hH(r.key),r)}}function qfe(e,t,n){return t&&Ufe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hfe(e,t,n){return t=xy(t),Ffe(e,mH()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function Ffe(e,t){if(t&&($d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kfe(e)}function Kfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mH=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function Gfe(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&&QT(e,t)}function QT(e,t){return QT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},QT(e,t)}function pR(e,t,n){return t=hH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hH(e){var t=Yfe(e,"string");return $d(t)=="symbol"?t:t+""}function Yfe(e,t){if($d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qfe(e){return e.dataKey}function Xfe(e,t){return F.isValidElement(e)?F.cloneElement(e,t):typeof e=="function"?F.createElement(e,t):F.createElement(Sfe,t)}var si=(function(e){function t(){return zfe(this,t),Hfe(this,t,arguments)}return Gfe(t,e),qfe(t,[{key:"render",value:function(){var r=this,o=this.props,s=o.active,c=o.allowEscapeViewBox,u=o.animationDuration,f=o.animationEasing,m=o.content,g=o.coordinate,h=o.filterNull,y=o.isAnimationActive,x=o.offset,S=o.payload,N=o.payloadUniqBy,w=o.position,A=o.reverseDirection,D=o.useTranslate3d,_=o.viewBox,P=o.wrapperStyle,O=S??[];h&&O.length&&(O=aH(S.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),N,Qfe));var C=O.length>0;return F.createElement($fe,{allowEscapeViewBox:c,animationDuration:u,animationEasing:f,isAnimationActive:y,active:s,coordinate:g,hasPayload:C,offset:x,position:w,reverseDirection:A,useTranslate3d:D,viewBox:_,wrapperStyle:P},Xfe(m,z$(z$({},this.props),{},{payload:O})))}}])})(R.PureComponent);pR(si,"displayName","Tooltip");pR(si,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!au.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 LO,U$;function Wfe(){if(U$)return LO;U$=1;var e=go(),t=function(){return e.Date.now()};return LO=t,LO}var IO,q$;function Zfe(){if(q$)return IO;q$=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return IO=t,IO}var VO,H$;function Jfe(){if(H$)return VO;H$=1;var e=Zfe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return VO=n,VO}var $O,F$;function pH(){if(F$)return $O;F$=1;var e=Jfe(),t=xl(),n=gf(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function f(m){if(typeof m=="number")return m;if(n(m))return r;if(t(m)){var g=typeof m.valueOf=="function"?m.valueOf():m;m=t(g)?g+"":g}if(typeof m!="string")return m===0?m:+m;m=e(m);var h=s.test(m);return h||c.test(m)?u(m.slice(2),h?2:8):o.test(m)?r:+m}return $O=f,$O}var BO,K$;function eme(){if(K$)return BO;K$=1;var e=xl(),t=Wfe(),n=pH(),r="Expected a function",o=Math.max,s=Math.min;function c(u,f,m){var g,h,y,x,S,N,w=0,A=!1,D=!1,_=!0;if(typeof u!="function")throw new TypeError(r);f=n(f)||0,e(m)&&(A=!!m.leading,D="maxWait"in m,y=D?o(n(m.maxWait)||0,f):y,_="trailing"in m?!!m.trailing:_);function P(G){var Y=g,J=h;return g=h=void 0,w=G,x=u.apply(J,Y),x}function O(G){return w=G,S=setTimeout(k,f),A?P(G):x}function C(G){var Y=G-N,J=G-w,q=f-Y;return D?s(q,y-J):q}function j(G){var Y=G-N,J=G-w;return N===void 0||Y>=f||Y<0||D&&J>=y}function k(){var G=t();if(j(G))return $(G);S=setTimeout(k,C(G))}function $(G){return S=void 0,_&&g?P(G):(g=h=void 0,x)}function B(){S!==void 0&&clearTimeout(S),w=0,g=N=h=S=void 0}function U(){return S===void 0?x:$(t())}function H(){var G=t(),Y=j(G);if(g=arguments,h=this,N=G,Y){if(S===void 0)return O(N);if(D)return clearTimeout(S),S=setTimeout(k,f),P(N)}return S===void 0&&(S=setTimeout(k,f)),x}return H.cancel=B,H.flush=U,H}return BO=c,BO}var zO,G$;function tme(){if(G$)return zO;G$=1;var e=eme(),t=xl(),n="Expected a function";function r(o,s,c){var u=!0,f=!0;if(typeof o!="function")throw new TypeError(n);return t(c)&&(u="leading"in c?!!c.leading:u,f="trailing"in c?!!c.trailing:f),e(o,s,{leading:u,maxWait:s,trailing:f})}return zO=r,zO}var nme=tme();const gH=Bt(nme);function Zh(e){"@babel/helpers - typeof";return Zh=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},Zh(e)}function Y$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y$(Object(n),!0).forEach(function(r){rme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rme(e,t,n){return t=ame(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ame(e){var t=ime(e,"string");return Zh(t)=="symbol"?t:t+""}function ime(e,t){if(Zh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ome(e,t){return ume(e)||cme(e,t)||lme(e,t)||sme()}function sme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lme(e,t){if(e){if(typeof e=="string")return Q$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q$(e,t)}}function Q$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function ume(e){if(Array.isArray(e))return e}var X$=R.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,s=e.width,c=s===void 0?"100%":s,u=e.height,f=u===void 0?"100%":u,m=e.minWidth,g=m===void 0?0:m,h=e.minHeight,y=e.maxHeight,x=e.children,S=e.debounce,N=S===void 0?0:S,w=e.id,A=e.className,D=e.onResize,_=e.style,P=_===void 0?{}:_,O=R.useRef(null),C=R.useRef();C.current=D,R.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var j=R.useState({containerWidth:o.width,containerHeight:o.height}),k=ome(j,2),$=k[0],B=k[1],U=R.useCallback(function(G,Y){B(function(J){var q=Math.round(G),z=Math.round(Y);return J.containerWidth===q&&J.containerHeight===z?J:{containerWidth:q,containerHeight:z}})},[]);R.useEffect(function(){var G=function(te){var ne,L=te[0].contentRect,Q=L.width,W=L.height;U(Q,W),(ne=C.current)===null||ne===void 0||ne.call(C,Q,W)};N>0&&(G=gH(G,N,{trailing:!0,leading:!1}));var Y=new ResizeObserver(G),J=O.current.getBoundingClientRect(),q=J.width,z=J.height;return U(q,z),Y.observe(O.current),function(){Y.disconnect()}},[U,N]);var H=R.useMemo(function(){var G=$.containerWidth,Y=$.containerHeight;if(G<0||Y<0)return null;ui(wc(c)||wc(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,c,f),ui(!n||n>0,"The aspect(%s) must be greater than zero.",n);var J=wc(c)?G:c,q=wc(f)?Y:f;n&&n>0&&(J?q=J/n:q&&(J=q*n),y&&q>y&&(q=y)),ui(J>0||q>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,J,q,c,f,g,h,n);var z=!Array.isArray(x)&&ns(x.type).endsWith("Chart");return F.Children.map(x,function(K){return F.isValidElement(K)?R.cloneElement(K,Cb({width:J,height:q},z?{style:Cb({height:"100%",width:"100%",maxHeight:q,maxWidth:J},K.props.style)}:{})):K})},[n,x,f,y,h,g,$,c]);return F.createElement("div",{id:w?"".concat(w):void 0,className:it("recharts-responsive-container",A),style:Cb(Cb({},P),{},{width:c,height:f,minWidth:g,minHeight:h,maxHeight:y}),ref:O},H)}),Gx=function(t){return null};Gx.displayName="Cell";function Jh(e){"@babel/helpers - typeof";return Jh=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},Jh(e)}function W$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function XT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W$(Object(n),!0).forEach(function(r){dme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dme(e,t,n){return t=fme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fme(e){var t=mme(e,"string");return Jh(t)=="symbol"?t:t+""}function mme(e,t){if(Jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gd={widthCache:{},cacheCount:0},hme=2e3,pme={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Z$="recharts_measurement_span";function gme(e){var t=XT({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Th=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||au.isSsr)return{width:0,height:0};var r=gme(n),o=JSON.stringify({text:t,copyStyle:r});if(gd.widthCache[o])return gd.widthCache[o];try{var s=document.getElementById(Z$);s||(s=document.createElement("span"),s.setAttribute("id",Z$),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var c=XT(XT({},pme),r);Object.assign(s.style,c),s.textContent="".concat(t);var u=s.getBoundingClientRect(),f={width:u.width,height:u.height};return gd.widthCache[o]=f,++gd.cacheCount>hme&&(gd.cacheCount=0,gd.widthCache={}),f}catch{return{width:0,height:0}}},vme=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function Ny(e,t){return Nme(e)||xme(e,t)||yme(e,t)||bme()}function bme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yme(e,t){if(e){if(typeof e=="string")return J$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J$(e,t)}}function J$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Nme(e){if(Array.isArray(e))return e}function wme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sme(r.key),r)}}function Eme(e,t,n){return t&&e6(e.prototype,t),n&&e6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sme(e){var t=Ame(e,"string");return ep(t)=="symbol"?t:t+""}function Ame(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var t6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,n6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ome=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Dme=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,vH={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Tme=Object.keys(vH),Nd="NaN";function Cme(e,t){return e*vH[t]}var _b=(function(){function e(t,n){wme(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Ome.test(n)&&(this.num=NaN,this.unit=""),Tme.includes(n)&&(this.num=Cme(t,n),this.unit="px")}return Eme(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,o=(r=Dme.exec(n))!==null&&r!==void 0?r:[],s=Ny(o,3),c=s[1],u=s[2];return new e(parseFloat(c),u??"")}}])})();function bH(e){if(e.includes(Nd))return Nd;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=t6.exec(t))!==null&&n!==void 0?n:[],o=Ny(r,4),s=o[1],c=o[2],u=o[3],f=_b.parse(s??""),m=_b.parse(u??""),g=c==="*"?f.multiply(m):f.divide(m);if(g.isNaN())return Nd;t=t.replace(t6,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,y=(h=n6.exec(t))!==null&&h!==void 0?h:[],x=Ny(y,4),S=x[1],N=x[2],w=x[3],A=_b.parse(S??""),D=_b.parse(w??""),_=N==="+"?A.add(D):A.subtract(D);if(_.isNaN())return Nd;t=t.replace(n6,_.toString())}return t}var r6=/\(([^()]*)\)/;function _me(e){for(var t=e;t.includes("(");){var n=r6.exec(t),r=Ny(n,2),o=r[1];t=t.replace(r6,bH(o))}return t}function Rme(e){var t=e.replace(/\s+/g,"");return t=_me(t),t=bH(t),t}function jme(e){try{return Rme(e)}catch{return Nd}}function UO(e){var t=jme(e.slice(5,-1));return t===Nd?"":t}var Pme=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Mme=["dx","dy","angle","className","breakAll"];function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WT.apply(this,arguments)}function a6(e,t){if(e==null)return{};var n=kme(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function i6(e,t){return $me(e)||Vme(e,t)||Ime(e,t)||Lme()}function Lme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ime(e,t){if(e){if(typeof e=="string")return o6(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o6(e,t)}}function o6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function $me(e){if(Array.isArray(e))return e}var yH=/[ \f\n\r\t\v\u2028\u2029]+/,xH=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var s=[];ot(n)||(r?s=n.toString().split(""):s=n.toString().split(yH));var c=s.map(function(f){return{word:f,width:Th(f,o).width}}),u=r?0:Th(" ",o).width;return{wordsWithComputedWidth:c,spaceWidth:u}}catch{return null}},Bme=function(t,n,r,o,s){var c=t.maxLines,u=t.children,f=t.style,m=t.breakAll,g=Oe(c),h=u,y=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(q,z){var K=z.word,te=z.width,ne=q[q.length-1];if(ne&&(o==null||s||ne.width+te+r<Number(o)))ne.words.push(K),ne.width+=te+r;else{var L={words:[K],width:te};q.push(L)}return q},[])},x=y(n),S=function(J){return J.reduce(function(q,z){return q.width>z.width?q:z})};if(!g)return x;for(var N="…",w=function(J){var q=h.slice(0,J),z=xH({breakAll:m,style:f,children:q+N}).wordsWithComputedWidth,K=y(z),te=K.length>c||S(K).width>Number(o);return[te,K]},A=0,D=h.length-1,_=0,P;A<=D&&_<=h.length-1;){var O=Math.floor((A+D)/2),C=O-1,j=w(C),k=i6(j,2),$=k[0],B=k[1],U=w(O),H=i6(U,1),G=H[0];if(!$&&!G&&(A=O+1),$&&G&&(D=O-1),!$&&G){P=B;break}_++}return P||x},s6=function(t){var n=ot(t)?[]:t.toString().split(yH);return[{words:n}]},zme=function(t){var n=t.width,r=t.scaleToFit,o=t.children,s=t.style,c=t.breakAll,u=t.maxLines;if((n||r)&&!au.isSsr){var f,m,g=xH({breakAll:c,children:o,style:s});if(g){var h=g.wordsWithComputedWidth,y=g.spaceWidth;f=h,m=y}else return s6(o);return Bme({breakAll:c,children:o,maxLines:u,style:s},f,m,n,r)}return s6(o)},l6="#808080",Fc=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,s=o===void 0?0:o,c=t.lineHeight,u=c===void 0?"1em":c,f=t.capHeight,m=f===void 0?"0.71em":f,g=t.scaleToFit,h=g===void 0?!1:g,y=t.textAnchor,x=y===void 0?"start":y,S=t.verticalAnchor,N=S===void 0?"end":S,w=t.fill,A=w===void 0?l6:w,D=a6(t,Pme),_=R.useMemo(function(){return zme({breakAll:D.breakAll,children:D.children,maxLines:D.maxLines,scaleToFit:h,style:D.style,width:D.width})},[D.breakAll,D.children,D.maxLines,h,D.style,D.width]),P=D.dx,O=D.dy,C=D.angle,j=D.className,k=D.breakAll,$=a6(D,Mme);if(!$n(r)||!$n(s))return null;var B=r+(Oe(P)?P:0),U=s+(Oe(O)?O:0),H;switch(N){case"start":H=UO("calc(".concat(m,")"));break;case"middle":H=UO("calc(".concat((_.length-1)/2," * -").concat(u," + (").concat(m," / 2))"));break;default:H=UO("calc(".concat(_.length-1," * -").concat(u,")"));break}var G=[];if(h){var Y=_[0].width,J=D.width;G.push("scale(".concat((Oe(J)?J/Y:1)/Y,")"))}return C&&G.push("rotate(".concat(C,", ").concat(B,", ").concat(U,")")),G.length&&($.transform=G.join(" ")),F.createElement("text",WT({},Fe($,!0),{x:B,y:U,className:it("recharts-text",j),textAnchor:x,fill:A.includes("url")?l6:A}),_.map(function(q,z){var K=q.words.join(k?"":" ");return F.createElement("tspan",{x:B,dy:z===0?H:u,key:"".concat(K,"-").concat(z)},K)}))};function ml(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ume(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gR(e){let t,n,r;e.length!==2?(t=ml,n=(u,f)=>ml(e(u),f),r=(u,f)=>e(u)-f):(t=e===ml||e===Ume?e:qme,n=e,r=e);function o(u,f,m=0,g=u.length){if(m<g){if(t(f,f)!==0)return g;do{const h=m+g>>>1;n(u[h],f)<0?m=h+1:g=h}while(m<g)}return m}function s(u,f,m=0,g=u.length){if(m<g){if(t(f,f)!==0)return g;do{const h=m+g>>>1;n(u[h],f)<=0?m=h+1:g=h}while(m<g)}return m}function c(u,f,m=0,g=u.length){const h=o(u,f,m,g-1);return h>m&&r(u[h-1],f)>-r(u[h],f)?h-1:h}return{left:o,center:c,right:s}}function qme(){return 0}function NH(e){return e===null?NaN:+e}function*Hme(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Fme=gR(ml),Fp=Fme.right;gR(NH).center;class c6 extends Map{constructor(t,n=Yme){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(u6(this,t))}has(t){return super.has(u6(this,t))}set(t,n){return super.set(Kme(this,t),n)}delete(t){return super.delete(Gme(this,t))}}function u6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Kme({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Gme({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Yme(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Qme(e=ml){if(e===ml)return wH;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function wH(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Xme=Math.sqrt(50),Wme=Math.sqrt(10),Zme=Math.sqrt(2);function wy(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),s=r/Math.pow(10,o),c=s>=Xme?10:s>=Wme?5:s>=Zme?2:1;let u,f,m;return o<0?(m=Math.pow(10,-o)/c,u=Math.round(e*m),f=Math.round(t*m),u/m<e&&++u,f/m>t&&--f,m=-m):(m=Math.pow(10,o)*c,u=Math.round(e/m),f=Math.round(t/m),u*m<e&&++u,f*m>t&&--f),f<u&&.5<=n&&n<2?wy(e,t,n*2):[u,f,m]}function ZT(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,s,c]=r?wy(t,e,n):wy(e,t,n);if(!(s>=o))return[];const u=s-o+1,f=new Array(u);if(r)if(c<0)for(let m=0;m<u;++m)f[m]=(s-m)/-c;else for(let m=0;m<u;++m)f[m]=(s-m)*c;else if(c<0)for(let m=0;m<u;++m)f[m]=(o+m)/-c;else for(let m=0;m<u;++m)f[m]=(o+m)*c;return f}function JT(e,t,n){return t=+t,e=+e,n=+n,wy(e,t,n)[2]}function eC(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?JT(t,e,n):JT(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function d6(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function f6(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function EH(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?wH:Qme(o);r>n;){if(r-n>600){const f=r-n+1,m=t-n+1,g=Math.log(f),h=.5*Math.exp(2*g/3),y=.5*Math.sqrt(g*h*(f-h)/f)*(m-f/2<0?-1:1),x=Math.max(n,Math.floor(t-m*h/f+y)),S=Math.min(r,Math.floor(t+(f-m)*h/f+y));EH(e,t,x,S,o)}const s=e[t];let c=n,u=r;for(lh(e,n,t),o(e[r],s)>0&&lh(e,n,r);c<u;){for(lh(e,c,u),++c,--u;o(e[c],s)<0;)++c;for(;o(e[u],s)>0;)--u}o(e[n],s)===0?lh(e,n,u):(++u,lh(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function lh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Jme(e,t,n){if(e=Float64Array.from(Hme(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return f6(e);if(t>=1)return d6(e);var r,o=(r-1)*t,s=Math.floor(o),c=d6(EH(e,s).subarray(0,s+1)),u=f6(e.subarray(s+1));return c+(u-c)*(o-s)}}function ehe(e,t,n=NH){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,s=Math.floor(o),c=+n(e[s],s,e),u=+n(e[s+1],s+1,e);return c+(u-c)*(o-s)}}function the(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,s=new Array(o);++r<o;)s[r]=e+r*n;return s}function Ha(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function hs(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 tC=Symbol("implicit");function vR(){var e=new c6,t=[],n=[],r=tC;function o(s){let c=e.get(s);if(c===void 0){if(r!==tC)return r;e.set(s,c=t.push(s)-1)}return n[c%n.length]}return o.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new c6;for(const c of s)e.has(c)||e.set(c,t.push(c)-1);return o},o.range=function(s){return arguments.length?(n=Array.from(s),o):n.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.copy=function(){return vR(t,n).unknown(r)},Ha.apply(o,arguments),o}function tp(){var e=vR().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,s,c,u=!1,f=0,m=0,g=.5;delete e.unknown;function h(){var y=t().length,x=o<r,S=x?o:r,N=x?r:o;s=(N-S)/Math.max(1,y-f+m*2),u&&(s=Math.floor(s)),S+=(N-S-s*(y-f))*g,c=s*(1-f),u&&(S=Math.round(S),c=Math.round(c));var w=the(y).map(function(A){return S+s*A});return n(x?w.reverse():w)}return e.domain=function(y){return arguments.length?(t(y),h()):t()},e.range=function(y){return arguments.length?([r,o]=y,r=+r,o=+o,h()):[r,o]},e.rangeRound=function(y){return[r,o]=y,r=+r,o=+o,u=!0,h()},e.bandwidth=function(){return c},e.step=function(){return s},e.round=function(y){return arguments.length?(u=!!y,h()):u},e.padding=function(y){return arguments.length?(f=Math.min(1,m=+y),h()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),h()):f},e.paddingOuter=function(y){return arguments.length?(m=+y,h()):m},e.align=function(y){return arguments.length?(g=Math.max(0,Math.min(1,y)),h()):g},e.copy=function(){return tp(t(),[r,o]).round(u).paddingInner(f).paddingOuter(m).align(g)},Ha.apply(h(),arguments)}function SH(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return SH(t())},e}function Ch(){return SH(tp.apply(null,arguments).paddingInner(1))}function bR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function AH(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kp(){}var np=.7,Ey=1/np,Cd="\\s*([+-]?\\d+)\\s*",rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nhe=/^#([0-9a-f]{3,8})$/,rhe=new RegExp(`^rgb\\(${Cd},${Cd},${Cd}\\)$`),ahe=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),ihe=new RegExp(`^rgba\\(${Cd},${Cd},${Cd},${rp}\\)$`),ohe=new RegExp(`^rgba\\(${io},${io},${io},${rp}\\)$`),she=new RegExp(`^hsl\\(${rp},${io},${io}\\)$`),lhe=new RegExp(`^hsla\\(${rp},${io},${io},${rp}\\)$`),m6={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};bR(Kp,ap,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:h6,formatHex:h6,formatHex8:che,formatHsl:uhe,formatRgb:p6,toString:p6});function h6(){return this.rgb().formatHex()}function che(){return this.rgb().formatHex8()}function uhe(){return OH(this).formatHsl()}function p6(){return this.rgb().formatRgb()}function ap(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=nhe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?g6(t):n===3?new Kr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Rb(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Rb(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=rhe.exec(e))?new Kr(t[1],t[2],t[3],1):(t=ahe.exec(e))?new Kr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ihe.exec(e))?Rb(t[1],t[2],t[3],t[4]):(t=ohe.exec(e))?Rb(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=she.exec(e))?y6(t[1],t[2]/100,t[3]/100,1):(t=lhe.exec(e))?y6(t[1],t[2]/100,t[3]/100,t[4]):m6.hasOwnProperty(e)?g6(m6[e]):e==="transparent"?new Kr(NaN,NaN,NaN,0):null}function g6(e){return new Kr(e>>16&255,e>>8&255,e&255,1)}function Rb(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kr(e,t,n,r)}function dhe(e){return e instanceof Kp||(e=ap(e)),e?(e=e.rgb(),new Kr(e.r,e.g,e.b,e.opacity)):new Kr}function nC(e,t,n,r){return arguments.length===1?dhe(e):new Kr(e,t,n,r??1)}function Kr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bR(Kr,nC,AH(Kp,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new Kr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?np:Math.pow(np,e),new Kr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kr(Tc(this.r),Tc(this.g),Tc(this.b),Sy(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:v6,formatHex:v6,formatHex8:fhe,formatRgb:b6,toString:b6}));function v6(){return`#${Ec(this.r)}${Ec(this.g)}${Ec(this.b)}`}function fhe(){return`#${Ec(this.r)}${Ec(this.g)}${Ec(this.b)}${Ec((isNaN(this.opacity)?1:this.opacity)*255)}`}function b6(){const e=Sy(this.opacity);return`${e===1?"rgb(":"rgba("}${Tc(this.r)}, ${Tc(this.g)}, ${Tc(this.b)}${e===1?")":`, ${e})`}`}function Sy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Tc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ec(e){return e=Tc(e),(e<16?"0":"")+e.toString(16)}function y6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,n,r)}function OH(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof Kp||(e=ap(e)),!e)return new ci;if(e instanceof ci)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),s=Math.max(t,n,r),c=NaN,u=s-o,f=(s+o)/2;return u?(t===s?c=(n-r)/u+(n<r)*6:n===s?c=(r-t)/u+2:c=(t-n)/u+4,u/=f<.5?s+o:2-s-o,c*=60):u=f>0&&f<1?0:c,new ci(c,u,f,e.opacity)}function mhe(e,t,n,r){return arguments.length===1?OH(e):new ci(e,t,n,r??1)}function ci(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bR(ci,mhe,AH(Kp,{brighter(e){return e=e==null?Ey:Math.pow(Ey,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?np:Math.pow(np,e),new ci(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Kr(qO(e>=240?e-240:e+120,o,r),qO(e,o,r),qO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ci(x6(this.h),jb(this.s),jb(this.l),Sy(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=Sy(this.opacity);return`${e===1?"hsl(":"hsla("}${x6(this.h)}, ${jb(this.s)*100}%, ${jb(this.l)*100}%${e===1?")":`, ${e})`}`}}));function x6(e){return e=(e||0)%360,e<0?e+360:e}function jb(e){return Math.max(0,Math.min(1,e||0))}function qO(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const yR=e=>()=>e;function hhe(e,t){return function(n){return e+n*t}}function phe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function ghe(e){return(e=+e)==1?DH:function(t,n){return n-t?phe(t,n,e):yR(isNaN(t)?n:t)}}function DH(e,t){var n=t-e;return n?hhe(e,n):yR(isNaN(e)?t:e)}const N6=(function e(t){var n=ghe(t);function r(o,s){var c=n((o=nC(o)).r,(s=nC(s)).r),u=n(o.g,s.g),f=n(o.b,s.b),m=DH(o.opacity,s.opacity);return function(g){return o.r=c(g),o.g=u(g),o.b=f(g),o.opacity=m(g),o+""}}return r.gamma=e,r})(1);function vhe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(s){for(o=0;o<n;++o)r[o]=e[o]*(1-s)+t[o]*s;return r}}function bhe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function yhe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),s=new Array(n),c;for(c=0;c<r;++c)o[c]=Nf(e[c],t[c]);for(;c<n;++c)s[c]=t[c];return function(u){for(c=0;c<r;++c)s[c]=o[c](u);return s}}function xhe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ay(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Nhe(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=Nf(e[o],t[o]):r[o]=t[o];return function(s){for(o in n)r[o]=n[o](s);return r}}var rC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,HO=new RegExp(rC.source,"g");function whe(e){return function(){return e}}function Ehe(e){return function(t){return e(t)+""}}function She(e,t){var n=rC.lastIndex=HO.lastIndex=0,r,o,s,c=-1,u=[],f=[];for(e=e+"",t=t+"";(r=rC.exec(e))&&(o=HO.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),u[c]?u[c]+=s:u[++c]=s),(r=r[0])===(o=o[0])?u[c]?u[c]+=o:u[++c]=o:(u[++c]=null,f.push({i:c,x:Ay(r,o)})),n=HO.lastIndex;return n<t.length&&(s=t.slice(n),u[c]?u[c]+=s:u[++c]=s),u.length<2?f[0]?Ehe(f[0].x):whe(t):(t=f.length,function(m){for(var g=0,h;g<t;++g)u[(h=f[g]).i]=h.x(m);return u.join("")})}function Nf(e,t){var n=typeof t,r;return t==null||n==="boolean"?yR(t):(n==="number"?Ay:n==="string"?(r=ap(t))?(t=r,N6):She:t instanceof ap?N6:t instanceof Date?xhe:bhe(t)?vhe:Array.isArray(t)?yhe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Nhe:Ay)(e,t)}function xR(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ahe(e,t){t===void 0&&(t=e,e=Nf);for(var n=0,r=t.length-1,o=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(o,o=t[++n]);return function(c){var u=Math.max(0,Math.min(r-1,Math.floor(c*=r)));return s[u](c-u)}}function Ohe(e){return function(){return e}}function Oy(e){return+e}var w6=[0,1];function jr(e){return e}function aC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ohe(isNaN(t)?NaN:.5)}function Dhe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function The(e,t,n){var r=e[0],o=e[1],s=t[0],c=t[1];return o<r?(r=aC(o,r),s=n(c,s)):(r=aC(r,o),s=n(s,c)),function(u){return s(r(u))}}function Che(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),s=new Array(r),c=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++c<r;)o[c]=aC(e[c],e[c+1]),s[c]=n(t[c],t[c+1]);return function(u){var f=Fp(e,u,1,r)-1;return s[f](o[f](u))}}function Gp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yx(){var e=w6,t=w6,n=Nf,r,o,s,c=jr,u,f,m;function g(){var y=Math.min(e.length,t.length);return c!==jr&&(c=Dhe(e[0],e[y-1])),u=y>2?Che:The,f=m=null,h}function h(y){return y==null||isNaN(y=+y)?s:(f||(f=u(e.map(r),t,n)))(r(c(y)))}return h.invert=function(y){return c(o((m||(m=u(t,e.map(r),Ay)))(y)))},h.domain=function(y){return arguments.length?(e=Array.from(y,Oy),g()):e.slice()},h.range=function(y){return arguments.length?(t=Array.from(y),g()):t.slice()},h.rangeRound=function(y){return t=Array.from(y),n=xR,g()},h.clamp=function(y){return arguments.length?(c=y?!0:jr,g()):c!==jr},h.interpolate=function(y){return arguments.length?(n=y,g()):n},h.unknown=function(y){return arguments.length?(s=y,h):s},function(y,x){return r=y,o=x,g()}}function NR(){return Yx()(jr,jr)}function _he(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Dy(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Bd(e){return e=Dy(Math.abs(e)),e?e[1]:NaN}function Rhe(e,t){return function(n,r){for(var o=n.length,s=[],c=0,u=e[0],f=0;o>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),s.push(n.substring(o-=u,o+u)),!((f+=u+1)>r));)u=e[c=(c+1)%e.length];return s.reverse().join(t)}}function jhe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Phe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ip(e){if(!(t=Phe.exec(e)))throw new Error("invalid format: "+e);var t;return new wR({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]})}ip.prototype=wR.prototype;function wR(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+""}wR.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 Mhe(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var TH;function khe(e,t){var n=Dy(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(TH=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=r.length;return s===c?r:s>c?r+new Array(s-c+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Dy(e,Math.max(0,t+s-1))[0]}function E6(e,t){var n=Dy(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const S6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:_he,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)=>E6(e*100,t),r:E6,s:khe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function A6(e){return e}var O6=Array.prototype.map,D6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lhe(e){var t=e.grouping===void 0||e.thousands===void 0?A6:Rhe(O6.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?A6:jhe(O6.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function m(h){h=ip(h);var y=h.fill,x=h.align,S=h.sign,N=h.symbol,w=h.zero,A=h.width,D=h.comma,_=h.precision,P=h.trim,O=h.type;O==="n"?(D=!0,O="g"):S6[O]||(_===void 0&&(_=12),P=!0,O="g"),(w||y==="0"&&x==="=")&&(w=!0,y="0",x="=");var C=N==="$"?n:N==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",j=N==="$"?r:/[%p]/.test(O)?c:"",k=S6[O],$=/[defgprs%]/.test(O);_=_===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function B(U){var H=C,G=j,Y,J,q;if(O==="c")G=k(U)+G,U="";else{U=+U;var z=U<0||1/U<0;if(U=isNaN(U)?f:k(Math.abs(U),_),P&&(U=Mhe(U)),z&&+U==0&&S!=="+"&&(z=!1),H=(z?S==="("?S:u:S==="-"||S==="("?"":S)+H,G=(O==="s"?D6[8+TH/3]:"")+G+(z&&S==="("?")":""),$){for(Y=-1,J=U.length;++Y<J;)if(q=U.charCodeAt(Y),48>q||q>57){G=(q===46?o+U.slice(Y+1):U.slice(Y))+G,U=U.slice(0,Y);break}}}D&&!w&&(U=t(U,1/0));var K=H.length+U.length+G.length,te=K<A?new Array(A-K+1).join(y):"";switch(D&&w&&(U=t(te+U,te.length?A-G.length:1/0),te=""),x){case"<":U=H+U+G+te;break;case"=":U=H+te+U+G;break;case"^":U=te.slice(0,K=te.length>>1)+H+U+G+te.slice(K);break;default:U=te+H+U+G;break}return s(U)}return B.toString=function(){return h+""},B}function g(h,y){var x=m((h=ip(h),h.type="f",h)),S=Math.max(-8,Math.min(8,Math.floor(Bd(y)/3)))*3,N=Math.pow(10,-S),w=D6[8+S/3];return function(A){return x(N*A)+w}}return{format:m,formatPrefix:g}}var Pb,ER,CH;Ihe({thousands:",",grouping:[3],currency:["$",""]});function Ihe(e){return Pb=Lhe(e),ER=Pb.format,CH=Pb.formatPrefix,Pb}function Vhe(e){return Math.max(0,-Bd(Math.abs(e)))}function $he(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Bd(t)/3)))*3-Bd(Math.abs(e)))}function Bhe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Bd(t)-Bd(e))+1}function _H(e,t,n,r){var o=eC(e,t,n),s;switch(r=ip(r??",f"),r.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=$he(o,c))&&(r.precision=s),CH(r,c)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Bhe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Vhe(o))&&(r.precision=s-(r.type==="%")*2);break}}return ER(r)}function Nl(e){var t=e.domain;return e.ticks=function(n){var r=t();return ZT(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return _H(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,s=r.length-1,c=r[o],u=r[s],f,m,g=10;for(u<c&&(m=c,c=u,u=m,m=o,o=s,s=m);g-- >0;){if(m=JT(c,u,n),m===f)return r[o]=c,r[s]=u,t(r);if(m>0)c=Math.floor(c/m)*m,u=Math.ceil(u/m)*m;else if(m<0)c=Math.ceil(c*m)/m,u=Math.floor(u*m)/m;else break;f=m}return e},e}function Ty(){var e=NR();return e.copy=function(){return Gp(e,Ty())},Ha.apply(e,arguments),Nl(e)}function RH(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Oy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return RH(e).unknown(t)},e=arguments.length?Array.from(e,Oy):[0,1],Nl(n)}function jH(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],s=e[r],c;return s<o&&(c=n,n=r,r=c,c=o,o=s,s=c),e[n]=t.floor(o),e[r]=t.ceil(s),e}function T6(e){return Math.log(e)}function C6(e){return Math.exp(e)}function zhe(e){return-Math.log(-e)}function Uhe(e){return-Math.exp(-e)}function qhe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Hhe(e){return e===10?qhe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Fhe(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 _6(e){return(t,n)=>-e(-t,n)}function SR(e){const t=e(T6,C6),n=t.domain;let r=10,o,s;function c(){return o=Fhe(r),s=Hhe(r),n()[0]<0?(o=_6(o),s=_6(s),e(zhe,Uhe)):e(T6,C6),t}return t.base=function(u){return arguments.length?(r=+u,c()):r},t.domain=function(u){return arguments.length?(n(u),c()):n()},t.ticks=u=>{const f=n();let m=f[0],g=f[f.length-1];const h=g<m;h&&([m,g]=[g,m]);let y=o(m),x=o(g),S,N;const w=u==null?10:+u;let A=[];if(!(r%1)&&x-y<w){if(y=Math.floor(y),x=Math.ceil(x),m>0){for(;y<=x;++y)for(S=1;S<r;++S)if(N=y<0?S/s(-y):S*s(y),!(N<m)){if(N>g)break;A.push(N)}}else for(;y<=x;++y)for(S=r-1;S>=1;--S)if(N=y>0?S/s(-y):S*s(y),!(N<m)){if(N>g)break;A.push(N)}A.length*2<w&&(A=ZT(m,g,w))}else A=ZT(y,x,Math.min(x-y,w)).map(s);return h?A.reverse():A},t.tickFormat=(u,f)=>{if(u==null&&(u=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=ip(f)).precision==null&&(f.trim=!0),f=ER(f)),u===1/0)return f;const m=Math.max(1,r*u/t.ticks().length);return g=>{let h=g/s(Math.round(o(g)));return h*r<r-.5&&(h*=r),h<=m?f(g):""}},t.nice=()=>n(jH(n(),{floor:u=>s(Math.floor(o(u))),ceil:u=>s(Math.ceil(o(u)))})),t}function PH(){const e=SR(Yx()).domain([1,10]);return e.copy=()=>Gp(e,PH()).base(e.base()),Ha.apply(e,arguments),e}function R6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function j6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function AR(e){var t=1,n=e(R6(t),j6(t));return n.constant=function(r){return arguments.length?e(R6(t=+r),j6(t)):t},Nl(n)}function MH(){var e=AR(Yx());return e.copy=function(){return Gp(e,MH()).constant(e.constant())},Ha.apply(e,arguments)}function P6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Khe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ghe(e){return e<0?-e*e:e*e}function OR(e){var t=e(jr,jr),n=1;function r(){return n===1?e(jr,jr):n===.5?e(Khe,Ghe):e(P6(n),P6(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Nl(t)}function DR(){var e=OR(Yx());return e.copy=function(){return Gp(e,DR()).exponent(e.exponent())},Ha.apply(e,arguments),e}function Yhe(){return DR.apply(null,arguments).exponent(.5)}function M6(e){return Math.sign(e)*e*e}function Qhe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function kH(){var e=NR(),t=[0,1],n=!1,r;function o(s){var c=Qhe(e(s));return isNaN(c)?r:n?Math.round(c):c}return o.invert=function(s){return e.invert(M6(s))},o.domain=function(s){return arguments.length?(e.domain(s),o):e.domain()},o.range=function(s){return arguments.length?(e.range((t=Array.from(s,Oy)).map(M6)),o):t.slice()},o.rangeRound=function(s){return o.range(s).round(!0)},o.round=function(s){return arguments.length?(n=!!s,o):n},o.clamp=function(s){return arguments.length?(e.clamp(s),o):e.clamp()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.copy=function(){return kH(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ha.apply(o,arguments),Nl(o)}function LH(){var e=[],t=[],n=[],r;function o(){var c=0,u=Math.max(1,t.length);for(n=new Array(u-1);++c<u;)n[c-1]=ehe(e,c/u);return s}function s(c){return c==null||isNaN(c=+c)?r:t[Fp(n,c)]}return s.invertExtent=function(c){var u=t.indexOf(c);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},s.domain=function(c){if(!arguments.length)return e.slice();e=[];for(let u of c)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ml),o()},s.range=function(c){return arguments.length?(t=Array.from(c),o()):t.slice()},s.unknown=function(c){return arguments.length?(r=c,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return LH().domain(e).range(t).unknown(r)},Ha.apply(s,arguments)}function IH(){var e=0,t=1,n=1,r=[.5],o=[0,1],s;function c(f){return f!=null&&f<=f?o[Fp(r,f,0,n)]:s}function u(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return c}return c.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,u()):[e,t]},c.range=function(f){return arguments.length?(n=(o=Array.from(f)).length-1,u()):o.slice()},c.invertExtent=function(f){var m=o.indexOf(f);return m<0?[NaN,NaN]:m<1?[e,r[0]]:m>=n?[r[n-1],t]:[r[m-1],r[m]]},c.unknown=function(f){return arguments.length&&(s=f),c},c.thresholds=function(){return r.slice()},c.copy=function(){return IH().domain([e,t]).range(o).unknown(s)},Ha.apply(Nl(c),arguments)}function VH(){var e=[.5],t=[0,1],n,r=1;function o(s){return s!=null&&s<=s?t[Fp(e,s,0,r)]:n}return o.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(s){var c=t.indexOf(s);return[e[c-1],e[c]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return VH().domain(e).range(t).unknown(n)},Ha.apply(o,arguments)}const FO=new Date,KO=new Date;function Bn(e,t,n,r){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const c=o(s),u=o.ceil(s);return s-c<u-s?c:u},o.offset=(s,c)=>(t(s=new Date(+s),c==null?1:Math.floor(c)),s),o.range=(s,c,u)=>{const f=[];if(s=o.ceil(s),u=u==null?1:Math.floor(u),!(s<c)||!(u>0))return f;let m;do f.push(m=new Date(+s)),t(s,u),e(s);while(m<s&&s<c);return f},o.filter=s=>Bn(c=>{if(c>=c)for(;e(c),!s(c);)c.setTime(c-1)},(c,u)=>{if(c>=c)if(u<0)for(;++u<=0;)for(;t(c,-1),!s(c););else for(;--u>=0;)for(;t(c,1),!s(c););}),n&&(o.count=(s,c)=>(FO.setTime(+s),KO.setTime(+c),e(FO),e(KO),Math.floor(n(FO,KO))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(r?c=>r(c)%s===0:c=>o.count(0,c)%s===0):o)),o}const Cy=Bn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Cy.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Bn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Cy);Cy.range;const Jo=1e3,$a=Jo*60,es=$a*60,ss=es*24,TR=ss*7,k6=ss*30,GO=ss*365,Sc=Bn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jo)},(e,t)=>(t-e)/Jo,e=>e.getUTCSeconds());Sc.range;const CR=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jo)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getMinutes());CR.range;const _R=Bn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCMinutes());_R.range;const RR=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jo-e.getMinutes()*$a)},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getHours());RR.range;const jR=Bn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getUTCHours());jR.range;const Yp=Bn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$a)/ss,e=>e.getDate()-1);Yp.range;const Qx=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ss,e=>e.getUTCDate()-1);Qx.range;const $H=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ss,e=>Math.floor(e/ss));$H.range;function iu(e){return Bn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*$a)/TR)}const Xx=iu(0),_y=iu(1),Xhe=iu(2),Whe=iu(3),zd=iu(4),Zhe=iu(5),Jhe=iu(6);Xx.range;_y.range;Xhe.range;Whe.range;zd.range;Zhe.range;Jhe.range;function ou(e){return Bn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/TR)}const Wx=ou(0),Ry=ou(1),epe=ou(2),tpe=ou(3),Ud=ou(4),npe=ou(5),rpe=ou(6);Wx.range;Ry.range;epe.range;tpe.range;Ud.range;npe.range;rpe.range;const PR=Bn(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());PR.range;const MR=Bn(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());MR.range;const ls=Bn(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());ls.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ls.range;const cs=Bn(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());cs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});cs.range;function BH(e,t,n,r,o,s){const c=[[Sc,1,Jo],[Sc,5,5*Jo],[Sc,15,15*Jo],[Sc,30,30*Jo],[s,1,$a],[s,5,5*$a],[s,15,15*$a],[s,30,30*$a],[o,1,es],[o,3,3*es],[o,6,6*es],[o,12,12*es],[r,1,ss],[r,2,2*ss],[n,1,TR],[t,1,k6],[t,3,3*k6],[e,1,GO]];function u(m,g,h){const y=g<m;y&&([m,g]=[g,m]);const x=h&&typeof h.range=="function"?h:f(m,g,h),S=x?x.range(m,+g+1):[];return y?S.reverse():S}function f(m,g,h){const y=Math.abs(g-m)/h,x=gR(([,,w])=>w).right(c,y);if(x===c.length)return e.every(eC(m/GO,g/GO,h));if(x===0)return Cy.every(Math.max(eC(m,g,h),1));const[S,N]=c[y/c[x-1][2]<c[x][2]/y?x-1:x];return S.every(N)}return[u,f]}const[ape,ipe]=BH(cs,MR,Wx,$H,jR,_R),[ope,spe]=BH(ls,PR,Xx,Yp,RR,CR);function YO(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 QO(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 ch(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function lpe(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,s=e.days,c=e.shortDays,u=e.months,f=e.shortMonths,m=uh(o),g=dh(o),h=uh(s),y=dh(s),x=uh(c),S=dh(c),N=uh(u),w=dh(u),A=uh(f),D=dh(f),_={a:z,A:K,b:te,B:ne,c:null,d:z6,e:z6,f:Rpe,g:zpe,G:qpe,H:Tpe,I:Cpe,j:_pe,L:zH,m:jpe,M:Ppe,p:L,q:Q,Q:H6,s:F6,S:Mpe,u:kpe,U:Lpe,V:Ipe,w:Vpe,W:$pe,x:null,X:null,y:Bpe,Y:Upe,Z:Hpe,"%":q6},P={a:W,A:ae,b:ge,B:we,c:null,d:U6,e:U6,f:Ype,g:age,G:oge,H:Fpe,I:Kpe,j:Gpe,L:qH,m:Qpe,M:Xpe,p:ue,q:xe,Q:H6,s:F6,S:Wpe,u:Zpe,U:Jpe,V:ege,w:tge,W:nge,x:null,X:null,y:rge,Y:ige,Z:sge,"%":q6},O={a:B,A:U,b:H,B:G,c:Y,d:$6,e:$6,f:Spe,g:V6,G:I6,H:B6,I:B6,j:xpe,L:Epe,m:ype,M:Npe,p:$,q:bpe,Q:Ope,s:Dpe,S:wpe,u:mpe,U:hpe,V:ppe,w:fpe,W:gpe,x:J,X:q,y:V6,Y:I6,Z:vpe,"%":Ape};_.x=C(n,_),_.X=C(r,_),_.c=C(t,_),P.x=C(n,P),P.X=C(r,P),P.c=C(t,P);function C(me,ye){return function(de){var ie=[],ze=-1,Ne=0,ut=me.length,Ve,tt,zn;for(de instanceof Date||(de=new Date(+de));++ze<ut;)me.charCodeAt(ze)===37&&(ie.push(me.slice(Ne,ze)),(tt=L6[Ve=me.charAt(++ze)])!=null?Ve=me.charAt(++ze):tt=Ve==="e"?" ":"0",(zn=ye[Ve])&&(Ve=zn(de,tt)),ie.push(Ve),Ne=ze+1);return ie.push(me.slice(Ne,ze)),ie.join("")}}function j(me,ye){return function(de){var ie=ch(1900,void 0,1),ze=k(ie,me,de+="",0),Ne,ut;if(ze!=de.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(ye&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Ne=QO(ch(ie.y,0,1)),ut=Ne.getUTCDay(),Ne=ut>4||ut===0?Ry.ceil(Ne):Ry(Ne),Ne=Qx.offset(Ne,(ie.V-1)*7),ie.y=Ne.getUTCFullYear(),ie.m=Ne.getUTCMonth(),ie.d=Ne.getUTCDate()+(ie.w+6)%7):(Ne=YO(ch(ie.y,0,1)),ut=Ne.getDay(),Ne=ut>4||ut===0?_y.ceil(Ne):_y(Ne),Ne=Yp.offset(Ne,(ie.V-1)*7),ie.y=Ne.getFullYear(),ie.m=Ne.getMonth(),ie.d=Ne.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),ut="Z"in ie?QO(ch(ie.y,0,1)).getUTCDay():YO(ch(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(ut+5)%7:ie.w+ie.U*7-(ut+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,QO(ie)):YO(ie)}}function k(me,ye,de,ie){for(var ze=0,Ne=ye.length,ut=de.length,Ve,tt;ze<Ne;){if(ie>=ut)return-1;if(Ve=ye.charCodeAt(ze++),Ve===37){if(Ve=ye.charAt(ze++),tt=O[Ve in L6?ye.charAt(ze++):Ve],!tt||(ie=tt(me,de,ie))<0)return-1}else if(Ve!=de.charCodeAt(ie++))return-1}return ie}function $(me,ye,de){var ie=m.exec(ye.slice(de));return ie?(me.p=g.get(ie[0].toLowerCase()),de+ie[0].length):-1}function B(me,ye,de){var ie=x.exec(ye.slice(de));return ie?(me.w=S.get(ie[0].toLowerCase()),de+ie[0].length):-1}function U(me,ye,de){var ie=h.exec(ye.slice(de));return ie?(me.w=y.get(ie[0].toLowerCase()),de+ie[0].length):-1}function H(me,ye,de){var ie=A.exec(ye.slice(de));return ie?(me.m=D.get(ie[0].toLowerCase()),de+ie[0].length):-1}function G(me,ye,de){var ie=N.exec(ye.slice(de));return ie?(me.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function Y(me,ye,de){return k(me,t,ye,de)}function J(me,ye,de){return k(me,n,ye,de)}function q(me,ye,de){return k(me,r,ye,de)}function z(me){return c[me.getDay()]}function K(me){return s[me.getDay()]}function te(me){return f[me.getMonth()]}function ne(me){return u[me.getMonth()]}function L(me){return o[+(me.getHours()>=12)]}function Q(me){return 1+~~(me.getMonth()/3)}function W(me){return c[me.getUTCDay()]}function ae(me){return s[me.getUTCDay()]}function ge(me){return f[me.getUTCMonth()]}function we(me){return u[me.getUTCMonth()]}function ue(me){return o[+(me.getUTCHours()>=12)]}function xe(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var ye=C(me+="",_);return ye.toString=function(){return me},ye},parse:function(me){var ye=j(me+="",!1);return ye.toString=function(){return me},ye},utcFormat:function(me){var ye=C(me+="",P);return ye.toString=function(){return me},ye},utcParse:function(me){var ye=j(me+="",!0);return ye.toString=function(){return me},ye}}}var L6={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,cpe=/^%/,upe=/[\\^$*+?|[\]().{}]/g;function Rt(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",s=o.length;return r+(s<n?new Array(n-s+1).join(t)+o:o)}function dpe(e){return e.replace(upe,"\\$&")}function uh(e){return new RegExp("^(?:"+e.map(dpe).join("|")+")","i")}function dh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function fpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function hpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ppe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function gpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function I6(e,t,n){var r=Wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function V6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function vpe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function ype(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xpe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function B6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Npe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function wpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Epe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Spe(e,t,n){var r=Wn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ape(e,t,n){var r=cpe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ope(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Dpe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function z6(e,t){return Rt(e.getDate(),t,2)}function Tpe(e,t){return Rt(e.getHours(),t,2)}function Cpe(e,t){return Rt(e.getHours()%12||12,t,2)}function _pe(e,t){return Rt(1+Yp.count(ls(e),e),t,3)}function zH(e,t){return Rt(e.getMilliseconds(),t,3)}function Rpe(e,t){return zH(e,t)+"000"}function jpe(e,t){return Rt(e.getMonth()+1,t,2)}function Ppe(e,t){return Rt(e.getMinutes(),t,2)}function Mpe(e,t){return Rt(e.getSeconds(),t,2)}function kpe(e){var t=e.getDay();return t===0?7:t}function Lpe(e,t){return Rt(Xx.count(ls(e)-1,e),t,2)}function UH(e){var t=e.getDay();return t>=4||t===0?zd(e):zd.ceil(e)}function Ipe(e,t){return e=UH(e),Rt(zd.count(ls(e),e)+(ls(e).getDay()===4),t,2)}function Vpe(e){return e.getDay()}function $pe(e,t){return Rt(_y.count(ls(e)-1,e),t,2)}function Bpe(e,t){return Rt(e.getFullYear()%100,t,2)}function zpe(e,t){return e=UH(e),Rt(e.getFullYear()%100,t,2)}function Upe(e,t){return Rt(e.getFullYear()%1e4,t,4)}function qpe(e,t){var n=e.getDay();return e=n>=4||n===0?zd(e):zd.ceil(e),Rt(e.getFullYear()%1e4,t,4)}function Hpe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rt(t/60|0,"0",2)+Rt(t%60,"0",2)}function U6(e,t){return Rt(e.getUTCDate(),t,2)}function Fpe(e,t){return Rt(e.getUTCHours(),t,2)}function Kpe(e,t){return Rt(e.getUTCHours()%12||12,t,2)}function Gpe(e,t){return Rt(1+Qx.count(cs(e),e),t,3)}function qH(e,t){return Rt(e.getUTCMilliseconds(),t,3)}function Ype(e,t){return qH(e,t)+"000"}function Qpe(e,t){return Rt(e.getUTCMonth()+1,t,2)}function Xpe(e,t){return Rt(e.getUTCMinutes(),t,2)}function Wpe(e,t){return Rt(e.getUTCSeconds(),t,2)}function Zpe(e){var t=e.getUTCDay();return t===0?7:t}function Jpe(e,t){return Rt(Wx.count(cs(e)-1,e),t,2)}function HH(e){var t=e.getUTCDay();return t>=4||t===0?Ud(e):Ud.ceil(e)}function ege(e,t){return e=HH(e),Rt(Ud.count(cs(e),e)+(cs(e).getUTCDay()===4),t,2)}function tge(e){return e.getUTCDay()}function nge(e,t){return Rt(Ry.count(cs(e)-1,e),t,2)}function rge(e,t){return Rt(e.getUTCFullYear()%100,t,2)}function age(e,t){return e=HH(e),Rt(e.getUTCFullYear()%100,t,2)}function ige(e,t){return Rt(e.getUTCFullYear()%1e4,t,4)}function oge(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ud(e):Ud.ceil(e),Rt(e.getUTCFullYear()%1e4,t,4)}function sge(){return"+0000"}function q6(){return"%"}function H6(e){return+e}function F6(e){return Math.floor(+e/1e3)}var vd,FH,KH;lge({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 lge(e){return vd=lpe(e),FH=vd.format,vd.parse,KH=vd.utcFormat,vd.utcParse,vd}function cge(e){return new Date(e)}function uge(e){return e instanceof Date?+e:+new Date(+e)}function kR(e,t,n,r,o,s,c,u,f,m){var g=NR(),h=g.invert,y=g.domain,x=m(".%L"),S=m(":%S"),N=m("%I:%M"),w=m("%I %p"),A=m("%a %d"),D=m("%b %d"),_=m("%B"),P=m("%Y");function O(C){return(f(C)<C?x:u(C)<C?S:c(C)<C?N:s(C)<C?w:r(C)<C?o(C)<C?A:D:n(C)<C?_:P)(C)}return g.invert=function(C){return new Date(h(C))},g.domain=function(C){return arguments.length?y(Array.from(C,uge)):y().map(cge)},g.ticks=function(C){var j=y();return e(j[0],j[j.length-1],C??10)},g.tickFormat=function(C,j){return j==null?O:m(j)},g.nice=function(C){var j=y();return(!C||typeof C.range!="function")&&(C=t(j[0],j[j.length-1],C??10)),C?y(jH(j,C)):g},g.copy=function(){return Gp(g,kR(e,t,n,r,o,s,c,u,f,m))},g}function dge(){return Ha.apply(kR(ope,spe,ls,PR,Xx,Yp,RR,CR,Sc,FH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fge(){return Ha.apply(kR(ape,ipe,cs,MR,Wx,Qx,jR,_R,Sc,KH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zx(){var e=0,t=1,n,r,o,s,c=jr,u=!1,f;function m(h){return h==null||isNaN(h=+h)?f:c(o===0?.5:(h=(s(h)-n)*o,u?Math.max(0,Math.min(1,h)):h))}m.domain=function(h){return arguments.length?([e,t]=h,n=s(e=+e),r=s(t=+t),o=n===r?0:1/(r-n),m):[e,t]},m.clamp=function(h){return arguments.length?(u=!!h,m):u},m.interpolator=function(h){return arguments.length?(c=h,m):c};function g(h){return function(y){var x,S;return arguments.length?([x,S]=y,c=h(x,S),m):[c(0),c(1)]}}return m.range=g(Nf),m.rangeRound=g(xR),m.unknown=function(h){return arguments.length?(f=h,m):f},function(h){return s=h,n=h(e),r=h(t),o=n===r?0:1/(r-n),m}}function wl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function GH(){var e=Nl(Zx()(jr));return e.copy=function(){return wl(e,GH())},hs.apply(e,arguments)}function YH(){var e=SR(Zx()).domain([1,10]);return e.copy=function(){return wl(e,YH()).base(e.base())},hs.apply(e,arguments)}function QH(){var e=AR(Zx());return e.copy=function(){return wl(e,QH()).constant(e.constant())},hs.apply(e,arguments)}function LR(){var e=OR(Zx());return e.copy=function(){return wl(e,LR()).exponent(e.exponent())},hs.apply(e,arguments)}function mge(){return LR.apply(null,arguments).exponent(.5)}function XH(){var e=[],t=jr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Fp(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(ml),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,s)=>Jme(e,s/r))},n.copy=function(){return XH(t).domain(e)},hs.apply(n,arguments)}function Jx(){var e=0,t=.5,n=1,r=1,o,s,c,u,f,m=jr,g,h=!1,y;function x(N){return isNaN(N=+N)?y:(N=.5+((N=+g(N))-s)*(r*N<r*s?u:f),m(h?Math.max(0,Math.min(1,N)):N))}x.domain=function(N){return arguments.length?([e,t,n]=N,o=g(e=+e),s=g(t=+t),c=g(n=+n),u=o===s?0:.5/(s-o),f=s===c?0:.5/(c-s),r=s<o?-1:1,x):[e,t,n]},x.clamp=function(N){return arguments.length?(h=!!N,x):h},x.interpolator=function(N){return arguments.length?(m=N,x):m};function S(N){return function(w){var A,D,_;return arguments.length?([A,D,_]=w,m=Ahe(N,[A,D,_]),x):[m(0),m(.5),m(1)]}}return x.range=S(Nf),x.rangeRound=S(xR),x.unknown=function(N){return arguments.length?(y=N,x):y},function(N){return g=N,o=N(e),s=N(t),c=N(n),u=o===s?0:.5/(s-o),f=s===c?0:.5/(c-s),r=s<o?-1:1,x}}function WH(){var e=Nl(Jx()(jr));return e.copy=function(){return wl(e,WH())},hs.apply(e,arguments)}function ZH(){var e=SR(Jx()).domain([.1,1,10]);return e.copy=function(){return wl(e,ZH()).base(e.base())},hs.apply(e,arguments)}function JH(){var e=AR(Jx());return e.copy=function(){return wl(e,JH()).constant(e.constant())},hs.apply(e,arguments)}function IR(){var e=OR(Jx());return e.copy=function(){return wl(e,IR()).exponent(e.exponent())},hs.apply(e,arguments)}function hge(){return IR.apply(null,arguments).exponent(.5)}const K6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:tp,scaleDiverging:WH,scaleDivergingLog:ZH,scaleDivergingPow:IR,scaleDivergingSqrt:hge,scaleDivergingSymlog:JH,scaleIdentity:RH,scaleImplicit:tC,scaleLinear:Ty,scaleLog:PH,scaleOrdinal:vR,scalePoint:Ch,scalePow:DR,scaleQuantile:LH,scaleQuantize:IH,scaleRadial:kH,scaleSequential:GH,scaleSequentialLog:YH,scaleSequentialPow:LR,scaleSequentialQuantile:XH,scaleSequentialSqrt:mge,scaleSequentialSymlog:QH,scaleSqrt:Yhe,scaleSymlog:MH,scaleThreshold:VH,scaleTime:dge,scaleUtc:fge,tickFormat:_H},Symbol.toStringTag,{value:"Module"}));var XO,G6;function e0(){if(G6)return XO;G6=1;var e=gf();function t(n,r,o){for(var s=-1,c=n.length;++s<c;){var u=n[s],f=r(u);if(f!=null&&(m===void 0?f===f&&!e(f):o(f,m)))var m=f,g=u}return g}return XO=t,XO}var WO,Y6;function eF(){if(Y6)return WO;Y6=1;function e(t,n){return t>n}return WO=e,WO}var ZO,Q6;function pge(){if(Q6)return ZO;Q6=1;var e=e0(),t=eF(),n=xf();function r(o){return o&&o.length?e(o,n,t):void 0}return ZO=r,ZO}var gge=pge();const ul=Bt(gge);var JO,X6;function tF(){if(X6)return JO;X6=1;function e(t,n){return t<n}return JO=e,JO}var eD,W6;function vge(){if(W6)return eD;W6=1;var e=e0(),t=tF(),n=xf();function r(o){return o&&o.length?e(o,n,t):void 0}return eD=r,eD}var bge=vge();const t0=Bt(bge);var tD,Z6;function yge(){if(Z6)return tD;Z6=1;var e=J_(),t=vo(),n=cH(),r=Gr();function o(s,c){var u=r(s)?e:n;return u(s,t(c,3))}return tD=o,tD}var nD,J6;function xge(){if(J6)return nD;J6=1;var e=sH(),t=yge();function n(r,o){return e(t(r,o),1)}return nD=n,nD}var Nge=xge();const wge=Bt(Nge);var rD,eB;function Ege(){if(eB)return rD;eB=1;var e=fR();function t(n,r){return e(n,r)}return rD=t,rD}var Sge=Ege();const qd=Bt(Sge);var wf=1e9,Age={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},$R,ln=!0,qa="[DecimalError] ",Cc=qa+"Invalid argument: ",VR=qa+"Exponent out of range: ",Ef=Math.floor,bc=Math.pow,Oge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ma,Yn=1e7,rn=7,nF=9007199254740991,jy=Ef(nF/rn),Pe={};Pe.absoluteValue=Pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Pe.comparedTo=Pe.cmp=function(e){var t,n,r,o,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===o?0:r>o^s.s<0?1:-1};Pe.decimalPlaces=Pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Pe.dividedBy=Pe.div=function(e){return rs(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return Yt(rs(t,new n(e),0,1),n.precision)};Pe.equals=Pe.eq=function(e){return!this.cmp(e)};Pe.exponent=function(){return _n(this)};Pe.greaterThan=Pe.gt=function(e){return this.cmp(e)>0};Pe.greaterThanOrEqualTo=Pe.gte=function(e){return this.cmp(e)>=0};Pe.isInteger=Pe.isint=function(){return this.e>this.d.length-2};Pe.isNegative=Pe.isneg=function(){return this.s<0};Pe.isPositive=Pe.ispos=function(){return this.s>0};Pe.isZero=function(){return this.s===0};Pe.lessThan=Pe.lt=function(e){return this.cmp(e)<0};Pe.lessThanOrEqualTo=Pe.lte=function(e){return this.cmp(e)<1};Pe.logarithm=Pe.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ma))throw Error(qa+"NaN");if(n.s<1)throw Error(qa+(n.s?"NaN":"-Infinity"));return n.eq(ma)?new r(0):(ln=!1,t=rs(op(n,s),op(e,s),s),ln=!0,Yt(t,o))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?iF(t,e):rF(t,(e.s=-e.s,e))};Pe.modulo=Pe.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(qa+"NaN");return n.s?(ln=!1,t=rs(n,e,0,1).times(e),ln=!0,n.minus(t)):Yt(new r(n),o)};Pe.naturalExponential=Pe.exp=function(){return aF(this)};Pe.naturalLogarithm=Pe.ln=function(){return op(this)};Pe.negated=Pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Pe.plus=Pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rF(t,e):iF(t,(e.s=-e.s,e))};Pe.precision=Pe.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Cc+e);if(t=_n(o)+1,r=o.d.length-1,n=r*rn+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Pe.squareRoot=Pe.sqrt=function(){var e,t,n,r,o,s,c,u=this,f=u.constructor;if(u.s<1){if(!u.s)return new f(0);throw Error(qa+"NaN")}for(e=_n(u),ln=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=to(u.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Ef((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(o.toString()),n=f.precision,o=c=n+3;;)if(s=r,r=s.plus(rs(u,s,c+2)).times(.5),to(s.d).slice(0,c)===(t=to(r.d)).slice(0,c)){if(t=t.slice(c-3,c+1),o==c&&t=="4999"){if(Yt(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!="9999")break;c+=4}return ln=!0,Yt(r,n)};Pe.times=Pe.mul=function(e){var t,n,r,o,s,c,u,f,m,g=this,h=g.constructor,y=g.d,x=(e=new h(e)).d;if(!g.s||!e.s)return new h(0);for(e.s*=g.s,n=g.e+e.e,f=y.length,m=x.length,f<m&&(s=y,y=x,x=s,c=f,f=m,m=c),s=[],c=f+m,r=c;r--;)s.push(0);for(r=m;--r>=0;){for(t=0,o=f+r;o>r;)u=s[o]+x[r]*y[o-r-1]+t,s[o--]=u%Yn|0,t=u/Yn|0;s[o]=(s[o]+t)%Yn|0}for(;!s[--c];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,ln?Yt(e,h.precision):e};Pe.toDecimalPlaces=Pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(uo(e,0,wf),t===void 0?t=r.rounding:uo(t,0,8),Yt(n,e+_n(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Kc(r,!0):(uo(e,0,wf),t===void 0?t=o.rounding:uo(t,0,8),r=Yt(new o(r),e+1,t),n=Kc(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?Kc(o):(uo(e,0,wf),t===void 0?t=s.rounding:uo(t,0,8),r=Yt(new s(o),e+_n(o)+1,t),n=Kc(r.abs(),!1,e+_n(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Pe.toInteger=Pe.toint=function(){var e=this,t=e.constructor;return Yt(new t(e),_n(e)+1,t.rounding)};Pe.toNumber=function(){return+this};Pe.toPower=Pe.pow=function(e){var t,n,r,o,s,c,u=this,f=u.constructor,m=12,g=+(e=new f(e));if(!e.s)return new f(ma);if(u=new f(u),!u.s){if(e.s<1)throw Error(qa+"Infinity");return u}if(u.eq(ma))return u;if(r=f.precision,e.eq(ma))return Yt(u,r);if(t=e.e,n=e.d.length-1,c=t>=n,s=u.s,c){if((n=g<0?-g:g)<=nF){for(o=new f(ma),t=Math.ceil(r/rn+4),ln=!1;n%2&&(o=o.times(u),nB(o.d,t)),n=Ef(n/2),n!==0;)u=u.times(u),nB(u.d,t);return ln=!0,e.s<0?new f(ma).div(o):Yt(o,r)}}else if(s<0)throw Error(qa+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,ln=!1,o=e.times(op(u,r+m)),ln=!0,o=aF(o),o.s=s,o};Pe.toPrecision=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?(n=_n(o),r=Kc(o,n<=s.toExpNeg||n>=s.toExpPos)):(uo(e,1,wf),t===void 0?t=s.rounding:uo(t,0,8),o=Yt(new s(o),e,t),n=_n(o),r=Kc(o,e<=n||n<=s.toExpNeg,e)),r};Pe.toSignificantDigits=Pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(uo(e,1,wf),t===void 0?t=r.rounding:uo(t,0,8)),Yt(new r(n),e,t)};Pe.toString=Pe.valueOf=Pe.val=Pe.toJSON=Pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=_n(e),n=e.constructor;return Kc(e,t<=n.toExpNeg||t>=n.toExpPos)};function rF(e,t){var n,r,o,s,c,u,f,m,g=e.constructor,h=g.precision;if(!e.s||!t.s)return t.s||(t=new g(e)),ln?Yt(t,h):t;if(f=e.d,m=t.d,c=e.e,o=t.e,f=f.slice(),s=c-o,s){for(s<0?(r=f,s=-s,u=m.length):(r=m,o=c,u=f.length),c=Math.ceil(h/rn),u=c>u?c+1:u+1,s>u&&(s=u,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(u=f.length,s=m.length,u-s<0&&(s=u,r=m,m=f,f=r),n=0;s;)n=(f[--s]=f[s]+m[s]+n)/Yn|0,f[s]%=Yn;for(n&&(f.unshift(n),++o),u=f.length;f[--u]==0;)f.pop();return t.d=f,t.e=o,ln?Yt(t,h):t}function uo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Cc+e)}function to(e){var t,n,r,o=e.length-1,s="",c=e[0];if(o>0){for(s+=c,t=1;t<o;t++)r=e[t]+"",n=rn-r.length,n&&(s+=sl(n)),s+=r;c=e[t],r=c+"",n=rn-r.length,n&&(s+=sl(n))}else if(c===0)return"0";for(;c%10===0;)c/=10;return s+c}var rs=(function(){function e(r,o){var s,c=0,u=r.length;for(r=r.slice();u--;)s=r[u]*o+c,r[u]=s%Yn|0,c=s/Yn|0;return c&&r.unshift(c),r}function t(r,o,s,c){var u,f;if(s!=c)f=s>c?1:-1;else for(u=f=0;u<s;u++)if(r[u]!=o[u]){f=r[u]>o[u]?1:-1;break}return f}function n(r,o,s){for(var c=0;s--;)r[s]-=c,c=r[s]<o[s]?1:0,r[s]=c*Yn+r[s]-o[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,s,c){var u,f,m,g,h,y,x,S,N,w,A,D,_,P,O,C,j,k,$=r.constructor,B=r.s==o.s?1:-1,U=r.d,H=o.d;if(!r.s)return new $(r);if(!o.s)throw Error(qa+"Division by zero");for(f=r.e-o.e,j=H.length,O=U.length,x=new $(B),S=x.d=[],m=0;H[m]==(U[m]||0);)++m;if(H[m]>(U[m]||0)&&--f,s==null?D=s=$.precision:c?D=s+(_n(r)-_n(o))+1:D=s,D<0)return new $(0);if(D=D/rn+2|0,m=0,j==1)for(g=0,H=H[0],D++;(m<O||g)&&D--;m++)_=g*Yn+(U[m]||0),S[m]=_/H|0,g=_%H|0;else{for(g=Yn/(H[0]+1)|0,g>1&&(H=e(H,g),U=e(U,g),j=H.length,O=U.length),P=j,N=U.slice(0,j),w=N.length;w<j;)N[w++]=0;k=H.slice(),k.unshift(0),C=H[0],H[1]>=Yn/2&&++C;do g=0,u=t(H,N,j,w),u<0?(A=N[0],j!=w&&(A=A*Yn+(N[1]||0)),g=A/C|0,g>1?(g>=Yn&&(g=Yn-1),h=e(H,g),y=h.length,w=N.length,u=t(h,N,y,w),u==1&&(g--,n(h,j<y?k:H,y))):(g==0&&(u=g=1),h=H.slice()),y=h.length,y<w&&h.unshift(0),n(N,h,w),u==-1&&(w=N.length,u=t(H,N,j,w),u<1&&(g++,n(N,j<w?k:H,w))),w=N.length):u===0&&(g++,N=[0]),S[m++]=g,u&&N[0]?N[w++]=U[P]||0:(N=[U[P]],w=1);while((P++<O||N[0]!==void 0)&&D--)}return S[0]||S.shift(),x.e=f,Yt(x,c?s+_n(x)+1:s)}})();function aF(e,t){var n,r,o,s,c,u,f=0,m=0,g=e.constructor,h=g.precision;if(_n(e)>16)throw Error(VR+_n(e));if(!e.s)return new g(ma);for(ln=!1,u=h,c=new g(.03125);e.abs().gte(.1);)e=e.times(c),m+=5;for(r=Math.log(bc(2,m))/Math.LN10*2+5|0,u+=r,n=o=s=new g(ma),g.precision=u;;){if(o=Yt(o.times(e),u),n=n.times(++f),c=s.plus(rs(o,n,u)),to(c.d).slice(0,u)===to(s.d).slice(0,u)){for(;m--;)s=Yt(s.times(s),u);return g.precision=h,t==null?(ln=!0,Yt(s,h)):s}s=c}}function _n(e){for(var t=e.e*rn,n=e.d[0];n>=10;n/=10)t++;return t}function aD(e,t,n){if(t>e.LN10.sd())throw ln=!0,n&&(e.precision=n),Error(qa+"LN10 precision limit exceeded");return Yt(new e(e.LN10),t)}function sl(e){for(var t="";e--;)t+="0";return t}function op(e,t){var n,r,o,s,c,u,f,m,g,h=1,y=10,x=e,S=x.d,N=x.constructor,w=N.precision;if(x.s<1)throw Error(qa+(x.s?"NaN":"-Infinity"));if(x.eq(ma))return new N(0);if(t==null?(ln=!1,m=w):m=t,x.eq(10))return t==null&&(ln=!0),aD(N,m);if(m+=y,N.precision=m,n=to(S),r=n.charAt(0),s=_n(x),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=to(x.d),r=n.charAt(0),h++;s=_n(x),r>1?(x=new N("0."+n),s++):x=new N(r+"."+n.slice(1))}else return f=aD(N,m+2,w).times(s+""),x=op(new N(r+"."+n.slice(1)),m-y).plus(f),N.precision=w,t==null?(ln=!0,Yt(x,w)):x;for(u=c=x=rs(x.minus(ma),x.plus(ma),m),g=Yt(x.times(x),m),o=3;;){if(c=Yt(c.times(g),m),f=u.plus(rs(c,new N(o),m)),to(f.d).slice(0,m)===to(u.d).slice(0,m))return u=u.times(2),s!==0&&(u=u.plus(aD(N,m+2,w).times(s+""))),u=rs(u,new N(h),m),N.precision=w,t==null?(ln=!0,Yt(u,w)):u;u=f,o+=2}}function tB(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=Ef(n/rn),e.d=[],r=(n+1)%rn,n<0&&(r+=rn),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=rn;r<o;)e.d.push(+t.slice(r,r+=rn));t=t.slice(r),r=rn-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ln&&(e.e>jy||e.e<-jy))throw Error(VR+n)}else e.s=0,e.e=0,e.d=[0];return e}function Yt(e,t,n){var r,o,s,c,u,f,m,g,h=e.d;for(c=1,s=h[0];s>=10;s/=10)c++;if(r=t-c,r<0)r+=rn,o=t,m=h[g=0];else{if(g=Math.ceil((r+1)/rn),s=h.length,g>=s)return e;for(m=s=h[g],c=1;s>=10;s/=10)c++;r%=rn,o=r-rn+c}if(n!==void 0&&(s=bc(10,c-o-1),u=m/s%10|0,f=t<0||h[g+1]!==void 0||m%s,f=n<4?(u||f)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||f||n==6&&(r>0?o>0?m/bc(10,c-o):0:h[g-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return f?(s=_n(e),h.length=1,t=t-s-1,h[0]=bc(10,(rn-t%rn)%rn),e.e=Ef(-t/rn)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=g,s=1,g--):(h.length=g+1,s=bc(10,rn-r),h[g]=o>0?(m/bc(10,c-o)%bc(10,o)|0)*s:0),f)for(;;)if(g==0){(h[0]+=s)==Yn&&(h[0]=1,++e.e);break}else{if(h[g]+=s,h[g]!=Yn)break;h[g--]=0,s=1}for(r=h.length;h[--r]===0;)h.pop();if(ln&&(e.e>jy||e.e<-jy))throw Error(VR+_n(e));return e}function iF(e,t){var n,r,o,s,c,u,f,m,g,h,y=e.constructor,x=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),ln?Yt(t,x):t;if(f=e.d,h=t.d,r=t.e,m=e.e,f=f.slice(),c=m-r,c){for(g=c<0,g?(n=f,c=-c,u=h.length):(n=h,r=m,u=f.length),o=Math.max(Math.ceil(x/rn),u)+2,c>o&&(c=o,n.length=1),n.reverse(),o=c;o--;)n.push(0);n.reverse()}else{for(o=f.length,u=h.length,g=o<u,g&&(u=o),o=0;o<u;o++)if(f[o]!=h[o]){g=f[o]<h[o];break}c=0}for(g&&(n=f,f=h,h=n,t.s=-t.s),u=f.length,o=h.length-u;o>0;--o)f[u++]=0;for(o=h.length;o>c;){if(f[--o]<h[o]){for(s=o;s&&f[--s]===0;)f[s]=Yn-1;--f[s],f[o]+=Yn}f[o]-=h[o]}for(;f[--u]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,ln?Yt(t,x):t):new y(0)}function Kc(e,t,n){var r,o=_n(e),s=to(e.d),c=s.length;return t?(n&&(r=n-c)>0?s=s.charAt(0)+"."+s.slice(1)+sl(r):c>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(o<0?"e":"e+")+o):o<0?(s="0."+sl(-o-1)+s,n&&(r=n-c)>0&&(s+=sl(r))):o>=c?(s+=sl(o+1-c),n&&(r=n-o-1)>0&&(s=s+"."+sl(r))):((r=o+1)<c&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-c)>0&&(o+1===c&&(s+="."),s+=sl(r))),e.s<0?"-"+s:s}function nB(e,t){if(e.length>t)return e.length=t,!0}function oF(e){var t,n,r;function o(s){var c=this;if(!(c instanceof o))return new o(s);if(c.constructor=o,s instanceof o){c.s=s.s,c.e=s.e,c.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Cc+s);if(s>0)c.s=1;else if(s<0)s=-s,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(s===~~s&&s<1e7){c.e=0,c.d=[s];return}return tB(c,s.toString())}else if(typeof s!="string")throw Error(Cc+s);if(s.charCodeAt(0)===45?(s=s.slice(1),c.s=-1):c.s=1,Oge.test(s))tB(c,s);else throw Error(Cc+s)}if(o.prototype=Pe,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=oF,o.config=o.set=Dge,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Dge(e){if(!e||typeof e!="object")throw Error(qa+"Object expected");var t,n,r,o=["precision",1,wf,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(Ef(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(Cc+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Cc+n+": "+r);return this}var $R=oF(Age);ma=new $R(1);const Ft=$R;function Tge(e){return jge(e)||Rge(e)||_ge(e)||Cge()}function Cge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ge(e,t){if(e){if(typeof e=="string")return iC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iC(e,t)}}function Rge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function jge(e){if(Array.isArray(e))return iC(e)}function iC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pge=function(t){return t},sF={},lF=function(t){return t===sF},rB=function(t){return function n(){return arguments.length===0||arguments.length===1&&lF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Mge=function e(t,n){return t===1?n:rB(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var c=o.filter(function(u){return u!==sF}).length;return c>=t?n.apply(void 0,o):e(t-c,rB(function(){for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];var g=o.map(function(h){return lF(h)?f.shift():h});return n.apply(void 0,Tge(g).concat(f))}))})},n0=function(t){return Mge(t.length,t)},oC=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},kge=n0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Lge=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Pge;var o=n.reverse(),s=o[0],c=o.slice(1);return function(){return c.reduce(function(u,f){return f(u)},s.apply(void 0,arguments))}},sC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cF=function(t){var n=null,r=null;return function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return n&&s.every(function(u,f){return u===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function Ige(e){var t;return e===0?t=1:t=Math.floor(new Ft(e).abs().log(10).toNumber())+1,t}function Vge(e,t,n){for(var r=new Ft(e),o=0,s=[];r.lt(t)&&o<1e5;)s.push(r.toNumber()),r=r.add(n),o++;return s}var $ge=n0(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),Bge=n0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),zge=n0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const r0={rangeStep:Vge,getDigitCount:Ige,interpolateNumber:$ge,uninterpolateNumber:Bge,uninterpolateTruncation:zge};function lC(e){return Hge(e)||qge(e)||uF(e)||Uge()}function Uge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Hge(e){if(Array.isArray(e))return cC(e)}function sp(e,t){return Gge(e)||Kge(e,t)||uF(e,t)||Fge()}function Fge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uF(e,t){if(e){if(typeof e=="string")return cC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cC(e,t)}}function cC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Kge(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,s=void 0;try{for(var c=e[Symbol.iterator](),u;!(r=(u=c.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(f){o=!0,s=f}finally{try{!r&&c.return!=null&&c.return()}finally{if(o)throw s}}return n}}function Gge(e){if(Array.isArray(e))return e}function dF(e){var t=sp(e,2),n=t[0],r=t[1],o=n,s=r;return n>r&&(o=r,s=n),[o,s]}function fF(e,t,n){if(e.lte(0))return new Ft(0);var r=r0.getDigitCount(e.toNumber()),o=new Ft(10).pow(r),s=e.div(o),c=r!==1?.05:.1,u=new Ft(Math.ceil(s.div(c).toNumber())).add(n).mul(c),f=u.mul(o);return t?f:new Ft(Math.ceil(f))}function Yge(e,t,n){var r=1,o=new Ft(e);if(!o.isint()&&n){var s=Math.abs(e);s<1?(r=new Ft(10).pow(r0.getDigitCount(e)-1),o=new Ft(Math.floor(o.div(r).toNumber())).mul(r)):s>1&&(o=new Ft(Math.floor(e)))}else e===0?o=new Ft(Math.floor((t-1)/2)):n||(o=new Ft(Math.floor(e)));var c=Math.floor((t-1)/2),u=Lge(kge(function(f){return o.add(new Ft(f-c).mul(r)).toNumber()}),oC);return u(0,t)}function mF(e,t,n,r){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ft(0),tickMin:new Ft(0),tickMax:new Ft(0)};var s=fF(new Ft(t).sub(e).div(n-1),r,o),c;e<=0&&t>=0?c=new Ft(0):(c=new Ft(e).add(t).div(2),c=c.sub(new Ft(c).mod(s)));var u=Math.ceil(c.sub(e).div(s).toNumber()),f=Math.ceil(new Ft(t).sub(c).div(s).toNumber()),m=u+f+1;return m>n?mF(e,t,n,r,o+1):(m<n&&(f=t>0?f+(n-m):f,u=t>0?u:u+(n-m)),{step:s,tickMin:c.sub(new Ft(u).mul(s)),tickMax:c.add(new Ft(f).mul(s))})}function Qge(e){var t=sp(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=Math.max(o,2),u=dF([n,r]),f=sp(u,2),m=f[0],g=f[1];if(m===-1/0||g===1/0){var h=g===1/0?[m].concat(lC(oC(0,o-1).map(function(){return 1/0}))):[].concat(lC(oC(0,o-1).map(function(){return-1/0})),[g]);return n>r?sC(h):h}if(m===g)return Yge(m,o,s);var y=mF(m,g,c,s),x=y.step,S=y.tickMin,N=y.tickMax,w=r0.rangeStep(S,N.add(new Ft(.1).mul(x)),x);return n>r?sC(w):w}function Xge(e,t){var n=sp(e,2),r=n[0],o=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=dF([r,o]),u=sp(c,2),f=u[0],m=u[1];if(f===-1/0||m===1/0)return[r,o];if(f===m)return[f];var g=Math.max(t,2),h=fF(new Ft(m).sub(f).div(g-1),s,0),y=[].concat(lC(r0.rangeStep(new Ft(f),new Ft(m).sub(new Ft(.99).mul(h)),h)),[m]);return r>o?sC(y):y}var Wge=cF(Qge),Zge=cF(Xge),aB="Invariant failed";function Gc(e,t){var n=typeof t=="function"?t():t,r=n?"".concat(aB,": ").concat(n):aB;throw new Error(r)}var Jge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Hd(e){"@babel/helpers - typeof";return Hd=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},Hd(e)}function Py(){return Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(this,arguments)}function eve(e,t){return ave(e)||rve(e,t)||nve(e,t)||tve()}function tve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nve(e,t){if(e){if(typeof e=="string")return iB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iB(e,t)}}function iB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function ave(e){if(Array.isArray(e))return e}function ive(e,t){if(e==null)return{};var n=ove(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ove(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function sve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gF(r.key),r)}}function cve(e,t,n){return t&&lve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uve(e,t,n){return t=My(t),dve(e,hF()?Reflect.construct(t,n||[],My(e).constructor):t.apply(e,n))}function dve(e,t){if(t&&(Hd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fve(e)}function fve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hF=function(){return!!e})()}function My(e){return My=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},My(e)}function mve(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&&uC(e,t)}function uC(e,t){return uC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},uC(e,t)}function pF(e,t,n){return t=gF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gF(e){var t=hve(e,"string");return Hd(t)=="symbol"?t:t+""}function hve(e,t){if(Hd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var a0=(function(e){function t(){return sve(this,t),uve(this,t,arguments)}return mve(t,e),cve(t,[{key:"render",value:function(){var r=this.props,o=r.offset,s=r.layout,c=r.width,u=r.dataKey,f=r.data,m=r.dataPointFormatter,g=r.xAxis,h=r.yAxis,y=ive(r,Jge),x=Fe(y,!1);this.props.direction==="x"&&g.type!=="number"&&Gc(!1,'ErrorBar requires Axis type property to be "number".');var S=f.map(function(N){var w=m(N,u),A=w.x,D=w.y,_=w.value,P=w.errorVal;if(!P)return null;var O=[],C,j;if(Array.isArray(P)){var k=eve(P,2);C=k[0],j=k[1]}else C=j=P;if(s==="vertical"){var $=g.scale,B=D+o,U=B+c,H=B-c,G=$(_-C),Y=$(_+j);O.push({x1:Y,y1:U,x2:Y,y2:H}),O.push({x1:G,y1:B,x2:Y,y2:B}),O.push({x1:G,y1:U,x2:G,y2:H})}else if(s==="horizontal"){var J=h.scale,q=A+o,z=q-c,K=q+c,te=J(_-C),ne=J(_+j);O.push({x1:z,y1:ne,x2:K,y2:ne}),O.push({x1:q,y1:te,x2:q,y2:ne}),O.push({x1:z,y1:te,x2:K,y2:te})}return F.createElement(Dt,Py({className:"recharts-errorBar",key:"bar-".concat(O.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},x),O.map(function(L){return F.createElement("line",Py({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return F.createElement(Dt,{className:"recharts-errorBars"},S)}}])})(F.Component);pF(a0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});pF(a0,"displayName","ErrorBar");function lp(e){"@babel/helpers - typeof";return lp=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},lp(e)}function oB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oB(Object(n),!0).forEach(function(r){pve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pve(e,t,n){return t=gve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gve(e){var t=vve(e,"string");return lp(t)=="symbol"?t:t+""}function vve(e,t){if(lp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vF=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,s=t.legendContent,c=da(n,Dc);if(!c)return null;var u=Dc.defaultProps,f=u!==void 0?mc(mc({},u),c.props):{},m;return c.props&&c.props.payload?m=c.props&&c.props.payload:s==="children"?m=(r||[]).reduce(function(g,h){var y=h.item,x=h.props,S=x.sectors||x.data||[];return g.concat(S.map(function(N){return{type:c.props.iconType||y.props.legendType,value:N.name,color:N.fill,payload:N}}))},[]):m=(r||[]).map(function(g){var h=g.item,y=h.type.defaultProps,x=y!==void 0?mc(mc({},y),h.props):{},S=x.dataKey,N=x.name,w=x.legendType,A=x.hide;return{inactive:A,dataKey:S,type:f.iconType||w||"square",color:BR(h),value:N||S,payload:x}}),mc(mc(mc({},f),Dc.getWithHeight(c,o)),{},{payload:m,item:c})};function cp(e){"@babel/helpers - typeof";return cp=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},cp(e)}function sB(e){return Nve(e)||xve(e)||yve(e)||bve()}function bve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yve(e,t){if(e){if(typeof e=="string")return dC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dC(e,t)}}function xve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nve(e){if(Array.isArray(e))return dC(e)}function dC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lB(Object(n),!0).forEach(function(r){_d(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _d(e,t,n){return t=wve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wve(e){var t=Eve(e,"string");return cp(t)=="symbol"?t:t+""}function Eve(e,t){if(cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vn(e,t,n){return ot(e)||ot(t)?n:$n(t)?va(e,t,n):Xe(t)?t(e):n}function _h(e,t,n,r){var o=wge(e,function(u){return Vn(u,t)});if(n==="number"){var s=o.filter(function(u){return Oe(u)||parseFloat(u)});return s.length?[t0(s),ul(s)]:[1/0,-1/0]}var c=r?o.filter(function(u){return!ot(u)}):o;return c.map(function(u){return $n(u)||u instanceof Date?u:""})}var Sve=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,c=-1,u=(n=r?.length)!==null&&n!==void 0?n:0;if(u<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,m=0;m<u;m++){var g=m>0?o[m-1].coordinate:o[u-1].coordinate,h=o[m].coordinate,y=m>=u-1?o[0].coordinate:o[m+1].coordinate,x=void 0;if(_r(h-g)!==_r(y-h)){var S=[];if(_r(y-h)===_r(f[1]-f[0])){x=y;var N=h+f[1]-f[0];S[0]=Math.min(N,(N+g)/2),S[1]=Math.max(N,(N+g)/2)}else{x=g;var w=y+f[1]-f[0];S[0]=Math.min(h,(w+h)/2),S[1]=Math.max(h,(w+h)/2)}var A=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(t>A[0]&&t<=A[1]||t>=S[0]&&t<=S[1]){c=o[m].index;break}}else{var D=Math.min(g,y),_=Math.max(g,y);if(t>(D+h)/2&&t<=(_+h)/2){c=o[m].index;break}}}else for(var P=0;P<u;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<u-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===u-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){c=r[P].index;break}return c},BR=function(t){var n,r=t,o=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?hn(hn({},t.type.defaultProps),t.props):t.props,c=s.stroke,u=s.fill,f;switch(o){case"Line":f=c;break;case"Area":case"Radar":f=c&&c!=="none"?c:u;break;default:f=u;break}return f},Ave=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,s=o===void 0?{}:o;if(!s)return{};for(var c={},u=Object.keys(s),f=0,m=u.length;f<m;f++)for(var g=s[u[f]].stackGroups,h=Object.keys(g),y=0,x=h.length;y<x;y++){var S=g[h[y]],N=S.items,w=S.cateAxisId,A=N.filter(function(j){return ns(j.type).indexOf("Bar")>=0});if(A&&A.length){var D=A[0].type.defaultProps,_=D!==void 0?hn(hn({},D),A[0].props):A[0].props,P=_.barSize,O=_[w];c[O]||(c[O]=[]);var C=ot(P)?n:P;c[O].push({item:A[0],stackList:A.slice(1),barSize:ot(C)?void 0:Rr(C,r,0)})}}return c},Ove=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,s=t.sizeList,c=s===void 0?[]:s,u=t.maxBarSize,f=c.length;if(f<1)return null;var m=Rr(n,o,0,!0),g,h=[];if(c[0].barSize===+c[0].barSize){var y=!1,x=o/f,S=c.reduce(function(P,O){return P+O.barSize||0},0);S+=(f-1)*m,S>=o&&(S-=(f-1)*m,m=0),S>=o&&x>0&&(y=!0,x*=.9,S=f*x);var N=(o-S)/2>>0,w={offset:N-m,size:0};g=c.reduce(function(P,O){var C={item:O.item,position:{offset:w.offset+w.size+m,size:y?x:O.barSize}},j=[].concat(sB(P),[C]);return w=j[j.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){j.push({item:k,position:w})}),j},h)}else{var A=Rr(r,o,0,!0);o-2*A-(f-1)*m<=0&&(m=0);var D=(o-2*A-(f-1)*m)/f;D>1&&(D>>=0);var _=u===+u?Math.min(D,u):D;g=c.reduce(function(P,O,C){var j=[].concat(sB(P),[{item:O.item,position:{offset:A+(D+m)*C+(D-_)/2,size:_}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(k){j.push({item:k,position:j[j.length-1].position})}),j},h)}return g},Dve=function(t,n,r,o){var s=r.children,c=r.width,u=r.margin,f=c-(u.left||0)-(u.right||0),m=vF({children:s,legendWidth:f});if(m){var g=o||{},h=g.width,y=g.height,x=m.align,S=m.verticalAlign,N=m.layout;if((N==="vertical"||N==="horizontal"&&S==="middle")&&x!=="center"&&Oe(t[x]))return hn(hn({},t),{},_d({},x,t[x]+(h||0)));if((N==="horizontal"||N==="vertical"&&x==="center")&&S!=="middle"&&Oe(t[S]))return hn(hn({},t),{},_d({},S,t[S]+(y||0)))}return t},Tve=function(t,n,r){return ot(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},bF=function(t,n,r,o,s){var c=n.props.children,u=Ua(c,a0).filter(function(m){return Tve(o,s,m.props.direction)});if(u&&u.length){var f=u.map(function(m){return m.props.dataKey});return t.reduce(function(m,g){var h=Vn(g,r);if(ot(h))return m;var y=Array.isArray(h)?[t0(h),ul(h)]:[h,h],x=f.reduce(function(S,N){var w=Vn(g,N,0),A=y[0]-Math.abs(Array.isArray(w)?w[0]:w),D=y[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(A,S[0]),Math.max(D,S[1])]},[1/0,-1/0]);return[Math.min(x[0],m[0]),Math.max(x[1],m[1])]},[1/0,-1/0])}return null},Cve=function(t,n,r,o,s){var c=n.map(function(u){return bF(t,u,r,s,o)}).filter(function(u){return!ot(u)});return c&&c.length?c.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]):null},yF=function(t,n,r,o,s){var c=n.map(function(f){var m=f.props.dataKey;return r==="number"&&m&&bF(t,f,m,o)||_h(t,m,r,s)});if(r==="number")return c.reduce(function(f,m){return[Math.min(f[0],m[0]),Math.max(f[1],m[1])]},[1/0,-1/0]);var u={};return c.reduce(function(f,m){for(var g=0,h=m.length;g<h;g++)u[m[g]]||(u[m[g]]=!0,f.push(m[g]));return f},[])},xF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},NF=function(t,n,r,o){if(o)return t.map(function(f){return f.coordinate});var s,c,u=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(c=!0),f.coordinate});return s||u.push(n),c||u.push(r),u},ts=function(t,n,r){if(!t)return null;var o=t.scale,s=t.duplicateDomain,c=t.type,u=t.range,f=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,m=(n||r)&&c==="category"&&o.bandwidth?o.bandwidth()/f:0;if(m=t.axisType==="angleAxis"&&u?.length>=2?_r(u[0]-u[1])*2*m:m,n&&(t.ticks||t.niceTicks)){var g=(t.ticks||t.niceTicks).map(function(h){var y=s?s.indexOf(h):h;return{coordinate:o(y)+m,value:h,offset:m}});return g.filter(function(h){return!bf(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,y){return{coordinate:o(h)+m,value:h,index:y,offset:m}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(h){return{coordinate:o(h)+m,value:h,offset:m}}):o.domain().map(function(h,y){return{coordinate:o(h)+m,value:s?s[h]:h,index:y,offset:m}})},iD=new WeakMap,Mb=function(t,n){if(typeof n!="function")return t;iD.has(t)||iD.set(t,new WeakMap);var r=iD.get(t);if(r.has(n))return r.get(n);var o=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,o),o},wF=function(t,n,r){var o=t.scale,s=t.type,c=t.layout,u=t.axisType;if(o==="auto")return c==="radial"&&u==="radiusAxis"?{scale:tp(),realScaleType:"band"}:c==="radial"&&u==="angleAxis"?{scale:Ty(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Ch(),realScaleType:"point"}:s==="category"?{scale:tp(),realScaleType:"band"}:{scale:Ty(),realScaleType:"linear"};if(qc(o)){var f="scale".concat(Bx(o));return{scale:(K6[f]||Ch)(),realScaleType:K6[f]?f:"point"}}return Xe(o)?{scale:o}:{scale:Ch(),realScaleType:"point"}},cB=1e-4,EF=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),s=Math.min(o[0],o[1])-cB,c=Math.max(o[0],o[1])+cB,u=t(n[0]),f=t(n[r-1]);(u<s||u>c||f<s||f>c)&&t.domain([n[0],n[r-1]])}},_ve=function(t,n){if(!t)return null;for(var r=0,o=t.length;r<o;r++)if(t[r].item===n)return t[r].position;return null},Rve=function(t,n){if(!n||n.length!==2||!Oe(n[0])||!Oe(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!Oe(t[0])||t[0]<r)&&(s[0]=r),(!Oe(t[1])||t[1]>o)&&(s[1]=o),s[0]>o&&(s[0]=o),s[1]<r&&(s[1]=r),s},jve=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var s=0,c=0,u=0;u<n;++u){var f=bf(t[u][r][1])?t[u][r][0]:t[u][r][1];f>=0?(t[u][r][0]=s,t[u][r][1]=s+f,s=t[u][r][1]):(t[u][r][0]=c,t[u][r][1]=c+f,c=t[u][r][1])}},Pve=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var s=0,c=0;c<n;++c){var u=bf(t[c][r][1])?t[c][r][0]:t[c][r][1];u>=0?(t[c][r][0]=s,t[c][r][1]=s+u,s=t[c][r][1]):(t[c][r][0]=0,t[c][r][1]=0)}},Mve={sign:jve,expand:wue,none:kd,silhouette:Eue,wiggle:Sue,positive:Pve},kve=function(t,n,r){var o=n.map(function(u){return u.props.dataKey}),s=Mve[r],c=Nue().keys(o).value(function(u,f){return+Vn(u,f,0)}).order(zT).offset(s);return c(t)},Lve=function(t,n,r,o,s,c){if(!t)return null;var u=c?n.reverse():n,f={},m=u.reduce(function(h,y){var x,S=(x=y.type)!==null&&x!==void 0&&x.defaultProps?hn(hn({},y.type.defaultProps),y.props):y.props,N=S.stackId,w=S.hide;if(w)return h;var A=S[r],D=h[A]||{hasStack:!1,stackGroups:{}};if($n(N)){var _=D.stackGroups[N]||{numericAxisId:r,cateAxisId:o,items:[]};_.items.push(y),D.hasStack=!0,D.stackGroups[N]=_}else D.stackGroups[yf("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[y]};return hn(hn({},h),{},_d({},A,D))},f),g={};return Object.keys(m).reduce(function(h,y){var x=m[y];if(x.hasStack){var S={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(N,w){var A=x.stackGroups[w];return hn(hn({},N),{},_d({},w,{numericAxisId:r,cateAxisId:o,items:A.items,stackedData:kve(t,A.items,s)}))},S)}return hn(hn({},h),{},_d({},y,x))},g)},SF=function(t,n){var r=n.realScaleType,o=n.type,s=n.tickCount,c=n.originalDomain,u=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&o==="number"&&c&&(c[0]==="auto"||c[1]==="auto")){var m=t.domain();if(!m.length)return null;var g=Wge(m,s,u);return t.domain([t0(g),ul(g)]),{niceTicks:g}}if(s&&o==="number"){var h=t.domain(),y=Zge(h,s,u);return{niceTicks:y}}return null};function uB(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,s=e.index,c=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ot(o[t.dataKey])){var u=uy(n,"value",o[t.dataKey]);if(u)return u.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=Vn(o,ot(c)?t.dataKey:c);return ot(f)?null:t.scale(f)}var dB=function(t){var n=t.axis,r=t.ticks,o=t.offset,s=t.bandSize,c=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+o:null;var f=Vn(c,n.dataKey,n.domain[u]);return ot(f)?null:n.scale(f)-s/2+o},Ive=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return o<=0&&s>=0?0:s<0?s:o}return r[0]},Vve=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?hn(hn({},t.type.defaultProps),t.props):t.props,s=o.stackId;if($n(s)){var c=n[s];if(c){var u=c.items.indexOf(t);return u>=0?c.stackedData[u]:null}}return null},$ve=function(t){return t.reduce(function(n,r){return[t0(r.concat([n[0]]).filter(Oe)),ul(r.concat([n[1]]).filter(Oe))]},[1/0,-1/0])},AF=function(t,n,r){return Object.keys(t).reduce(function(o,s){var c=t[s],u=c.stackedData,f=u.reduce(function(m,g){var h=$ve(g.slice(n,r+1));return[Math.min(m[0],h[0]),Math.max(m[1],h[1])]},[1/0,-1/0]);return[Math.min(f[0],o[0]),Math.max(f[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},fB=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mB=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fC=function(t,n,r){if(Xe(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(Oe(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(fB.test(t[0])){var s=+fB.exec(t[0])[1];o[0]=n[0]-s}else Xe(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(Oe(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(mB.test(t[1])){var c=+mB.exec(t[1])[1];o[1]=n[1]+c}else Xe(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},ky=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var o=t.scale.bandwidth();if(!r||o>0)return o}if(t&&n&&n.length>=2){for(var s=hR(n,function(h){return h.coordinate}),c=1/0,u=1,f=s.length;u<f;u++){var m=s[u],g=s[u-1];c=Math.min((m.coordinate||0)-(g.coordinate||0),c)}return c===1/0?0:c}return r?void 0:0},hB=function(t,n,r){return!t||!t.length||qd(t,va(r,"type.defaultProps.domain"))?n:t},OF=function(t,n){var r=t.type.defaultProps?hn(hn({},t.type.defaultProps),t.props):t.props,o=r.dataKey,s=r.name,c=r.unit,u=r.formatter,f=r.tooltipType,m=r.chartType,g=r.hide;return hn(hn({},Fe(t,!1)),{},{dataKey:o,unit:c,formatter:u,name:s||o,color:BR(t),value:Vn(n,o),type:f,payload:n,chartType:m,hide:g})};function up(e){"@babel/helpers - typeof";return up=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},up(e)}function pB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pB(Object(n),!0).forEach(function(r){DF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DF(e,t,n){return t=Bve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bve(e){var t=zve(e,"string");return up(t)=="symbol"?t:t+""}function zve(e,t){if(up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uve(e,t){return Kve(e)||Fve(e,t)||Hve(e,t)||qve()}function qve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hve(e,t){if(e){if(typeof e=="string")return gB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gB(e,t)}}function gB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Kve(e){if(Array.isArray(e))return e}var Ly=Math.PI/180,Gve=function(t){return t*180/Math.PI},en=function(t,n,r,o){return{x:t+Math.cos(-Ly*o)*r,y:n+Math.sin(-Ly*o)*r}},TF=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Yve=function(t,n,r,o,s){var c=t.width,u=t.height,f=t.startAngle,m=t.endAngle,g=Rr(t.cx,c,c/2),h=Rr(t.cy,u,u/2),y=TF(c,u,r),x=Rr(t.innerRadius,y,0),S=Rr(t.outerRadius,y,y*.8),N=Object.keys(n);return N.reduce(function(w,A){var D=n[A],_=D.domain,P=D.reversed,O;if(ot(D.range))o==="angleAxis"?O=[f,m]:o==="radiusAxis"&&(O=[x,S]),P&&(O=[O[1],O[0]]);else{O=D.range;var C=O,j=Uve(C,2);f=j[0],m=j[1]}var k=wF(D,s),$=k.realScaleType,B=k.scale;B.domain(_).range(O),EF(B);var U=SF(B,Wo(Wo({},D),{},{realScaleType:$})),H=Wo(Wo(Wo({},D),U),{},{range:O,radius:S,realScaleType:$,scale:B,cx:g,cy:h,innerRadius:x,outerRadius:S,startAngle:f,endAngle:m});return Wo(Wo({},w),{},DF({},A,H))},{})},Qve=function(t,n){var r=t.x,o=t.y,s=n.x,c=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(o-c,2))},Xve=function(t,n){var r=t.x,o=t.y,s=n.cx,c=n.cy,u=Qve({x:r,y:o},{x:s,y:c});if(u<=0)return{radius:u};var f=(r-s)/u,m=Math.acos(f);return o>c&&(m=2*Math.PI-m),{radius:u,angle:Gve(m),angleInRadian:m}},Wve=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),s=Math.floor(r/360),c=Math.min(o,s);return{startAngle:n-c*360,endAngle:r-c*360}},Zve=function(t,n){var r=n.startAngle,o=n.endAngle,s=Math.floor(r/360),c=Math.floor(o/360),u=Math.min(s,c);return t+u*360},vB=function(t,n){var r=t.x,o=t.y,s=Xve({x:r,y:o},n),c=s.radius,u=s.angle,f=n.innerRadius,m=n.outerRadius;if(c<f||c>m)return!1;if(c===0)return!0;var g=Wve(n),h=g.startAngle,y=g.endAngle,x=u,S;if(h<=y){for(;x>y;)x-=360;for(;x<h;)x+=360;S=x>=h&&x<=y}else{for(;x>h;)x-=360;for(;x<y;)x+=360;S=x>=y&&x<=h}return S?Wo(Wo({},n),{},{radius:c,angle:Zve(x,n)}):null},CF=function(t){return!R.isValidElement(t)&&!Xe(t)&&typeof t!="boolean"?t.className:""};function dp(e){"@babel/helpers - typeof";return dp=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},dp(e)}var Jve=["offset"];function ebe(e){return abe(e)||rbe(e)||nbe(e)||tbe()}function tbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nbe(e,t){if(e){if(typeof e=="string")return mC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mC(e,t)}}function rbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function abe(e){if(Array.isArray(e))return mC(e)}function mC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ibe(e,t){if(e==null)return{};var n=obe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function obe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bB(Object(n),!0).forEach(function(r){sbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sbe(e,t,n){return t=lbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lbe(e){var t=cbe(e,"string");return dp(t)=="symbol"?t:t+""}function cbe(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fp(){return fp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fp.apply(this,arguments)}var ube=function(t){var n=t.value,r=t.formatter,o=ot(t.children)?n:t.children;return Xe(r)?r(o):o},dbe=function(t,n){var r=_r(n-t),o=Math.min(Math.abs(n-t),360);return r*o},fbe=function(t,n,r){var o=t.position,s=t.viewBox,c=t.offset,u=t.className,f=s,m=f.cx,g=f.cy,h=f.innerRadius,y=f.outerRadius,x=f.startAngle,S=f.endAngle,N=f.clockWise,w=(h+y)/2,A=dbe(x,S),D=A>=0?1:-1,_,P;o==="insideStart"?(_=x+D*c,P=N):o==="insideEnd"?(_=S-D*c,P=!N):o==="end"&&(_=S+D*c,P=N),P=A<=0?P:!P;var O=en(m,g,w,_),C=en(m,g,w,_+(P?1:-1)*359),j="M".concat(O.x,",").concat(O.y,`
A`).concat(w,",").concat(w,",0,1,").concat(P?0:1,`,
`).concat(C.x,",").concat(C.y),k=ot(t.id)?yf("recharts-radial-line-"):t.id;return F.createElement("text",fp({},r,{dominantBaseline:"central",className:it("recharts-radial-bar-label",u)}),F.createElement("defs",null,F.createElement("path",{id:k,d:j})),F.createElement("textPath",{xlinkHref:"#".concat(k)},n))},mbe=function(t){var n=t.viewBox,r=t.offset,o=t.position,s=n,c=s.cx,u=s.cy,f=s.innerRadius,m=s.outerRadius,g=s.startAngle,h=s.endAngle,y=(g+h)/2;if(o==="outside"){var x=en(c,u,m+r,y),S=x.x,N=x.y;return{x:S,y:N,textAnchor:S>=c?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:c,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:c,y:u,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:c,y:u,textAnchor:"middle",verticalAnchor:"end"};var w=(f+m)/2,A=en(c,u,w,y),D=A.x,_=A.y;return{x:D,y:_,textAnchor:"middle",verticalAnchor:"middle"}},hbe=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,s=t.position,c=n,u=c.x,f=c.y,m=c.width,g=c.height,h=g>=0?1:-1,y=h*o,x=h>0?"end":"start",S=h>0?"start":"end",N=m>=0?1:-1,w=N*o,A=N>0?"end":"start",D=N>0?"start":"end";if(s==="top"){var _={x:u+m/2,y:f-h*o,textAnchor:"middle",verticalAnchor:x};return In(In({},_),r?{height:Math.max(f-r.y,0),width:m}:{})}if(s==="bottom"){var P={x:u+m/2,y:f+g+y,textAnchor:"middle",verticalAnchor:S};return In(In({},P),r?{height:Math.max(r.y+r.height-(f+g),0),width:m}:{})}if(s==="left"){var O={x:u-w,y:f+g/2,textAnchor:A,verticalAnchor:"middle"};return In(In({},O),r?{width:Math.max(O.x-r.x,0),height:g}:{})}if(s==="right"){var C={x:u+m+w,y:f+g/2,textAnchor:D,verticalAnchor:"middle"};return In(In({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:g}:{})}var j=r?{width:m,height:g}:{};return s==="insideLeft"?In({x:u+w,y:f+g/2,textAnchor:D,verticalAnchor:"middle"},j):s==="insideRight"?In({x:u+m-w,y:f+g/2,textAnchor:A,verticalAnchor:"middle"},j):s==="insideTop"?In({x:u+m/2,y:f+y,textAnchor:"middle",verticalAnchor:S},j):s==="insideBottom"?In({x:u+m/2,y:f+g-y,textAnchor:"middle",verticalAnchor:x},j):s==="insideTopLeft"?In({x:u+w,y:f+y,textAnchor:D,verticalAnchor:S},j):s==="insideTopRight"?In({x:u+m-w,y:f+y,textAnchor:A,verticalAnchor:S},j):s==="insideBottomLeft"?In({x:u+w,y:f+g-y,textAnchor:D,verticalAnchor:x},j):s==="insideBottomRight"?In({x:u+m-w,y:f+g-y,textAnchor:A,verticalAnchor:x},j):vf(s)&&(Oe(s.x)||wc(s.x))&&(Oe(s.y)||wc(s.y))?In({x:u+Rr(s.x,m),y:f+Rr(s.y,g),textAnchor:"end",verticalAnchor:"end"},j):In({x:u+m/2,y:f+g/2,textAnchor:"middle",verticalAnchor:"middle"},j)},pbe=function(t){return"cx"in t&&Oe(t.cx)};function Xn(e){var t=e.offset,n=t===void 0?5:t,r=ibe(e,Jve),o=In({offset:n},r),s=o.viewBox,c=o.position,u=o.value,f=o.children,m=o.content,g=o.className,h=g===void 0?"":g,y=o.textBreakAll;if(!s||ot(u)&&ot(f)&&!R.isValidElement(m)&&!Xe(m))return null;if(R.isValidElement(m))return R.cloneElement(m,o);var x;if(Xe(m)){if(x=R.createElement(m,o),R.isValidElement(x))return x}else x=ube(o);var S=pbe(s),N=Fe(o,!0);if(S&&(c==="insideStart"||c==="insideEnd"||c==="end"))return fbe(o,x,N);var w=S?mbe(o):hbe(o);return F.createElement(Fc,fp({className:it("recharts-label",h)},N,w,{breakAll:y}),x)}Xn.displayName="Label";var _F=function(t){var n=t.cx,r=t.cy,o=t.angle,s=t.startAngle,c=t.endAngle,u=t.r,f=t.radius,m=t.innerRadius,g=t.outerRadius,h=t.x,y=t.y,x=t.top,S=t.left,N=t.width,w=t.height,A=t.clockWise,D=t.labelViewBox;if(D)return D;if(Oe(N)&&Oe(w)){if(Oe(h)&&Oe(y))return{x:h,y,width:N,height:w};if(Oe(x)&&Oe(S))return{x,y:S,width:N,height:w}}return Oe(h)&&Oe(y)?{x:h,y,width:0,height:0}:Oe(n)&&Oe(r)?{cx:n,cy:r,startAngle:s||o||0,endAngle:c||o||0,innerRadius:m||0,outerRadius:g||f||u||0,clockWise:A}:t.viewBox?t.viewBox:{}},gbe=function(t,n){return t?t===!0?F.createElement(Xn,{key:"label-implicit",viewBox:n}):$n(t)?F.createElement(Xn,{key:"label-implicit",viewBox:n,value:t}):R.isValidElement(t)?t.type===Xn?R.cloneElement(t,{key:"label-implicit",viewBox:n}):F.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Xe(t)?F.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):vf(t)?F.createElement(Xn,fp({viewBox:n},t,{key:"label-implicit"})):null:null},vbe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var o=t.children,s=_F(t),c=Ua(o,Xn).map(function(f,m){return R.cloneElement(f,{viewBox:n||s,key:"label-".concat(m)})});if(!r)return c;var u=gbe(t.label,n||s);return[u].concat(ebe(c))};Xn.parseViewBox=_F;Xn.renderCallByParent=vbe;var oD,yB;function bbe(){if(yB)return oD;yB=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return oD=e,oD}var ybe=bbe();const xbe=Bt(ybe);function mp(e){"@babel/helpers - typeof";return mp=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},mp(e)}var Nbe=["valueAccessor"],wbe=["data","dataKey","clockWise","id","textBreakAll"];function Ebe(e){return Dbe(e)||Obe(e)||Abe(e)||Sbe()}function Sbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Abe(e,t){if(e){if(typeof e=="string")return hC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hC(e,t)}}function Obe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dbe(e){if(Array.isArray(e))return hC(e)}function hC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iy.apply(this,arguments)}function xB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function NB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xB(Object(n),!0).forEach(function(r){Tbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tbe(e,t,n){return t=Cbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cbe(e){var t=_be(e,"string");return mp(t)=="symbol"?t:t+""}function _be(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wB(e,t){if(e==null)return{};var n=Rbe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var jbe=function(t){return Array.isArray(t.value)?xbe(t.value):t.value};function as(e){var t=e.valueAccessor,n=t===void 0?jbe:t,r=wB(e,Nbe),o=r.data,s=r.dataKey,c=r.clockWise,u=r.id,f=r.textBreakAll,m=wB(r,wbe);return!o||!o.length?null:F.createElement(Dt,{className:"recharts-label-list"},o.map(function(g,h){var y=ot(s)?n(g,h):Vn(g&&g.payload,s),x=ot(u)?{}:{id:"".concat(u,"-").concat(h)};return F.createElement(Xn,Iy({},Fe(g,!0),m,x,{parentViewBox:g.parentViewBox,value:y,textBreakAll:f,viewBox:Xn.parseViewBox(ot(c)?g:NB(NB({},g),{},{clockWise:c})),key:"label-".concat(h),index:h}))}))}as.displayName="LabelList";function Pbe(e,t){return e?e===!0?F.createElement(as,{key:"labelList-implicit",data:t}):F.isValidElement(e)||Xe(e)?F.createElement(as,{key:"labelList-implicit",data:t,content:e}):vf(e)?F.createElement(as,Iy({data:t},e,{key:"labelList-implicit"})):null:null}function Mbe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Ua(r,as).map(function(c,u){return R.cloneElement(c,{data:t,key:"labelList-".concat(u)})});if(!n)return o;var s=Pbe(e.label,t);return[s].concat(Ebe(o))}as.renderCallByParent=Mbe;function hp(e){"@babel/helpers - typeof";return hp=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},hp(e)}function pC(){return pC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pC.apply(this,arguments)}function EB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function SB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EB(Object(n),!0).forEach(function(r){kbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kbe(e,t,n){return t=Lbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lbe(e){var t=Ibe(e,"string");return hp(t)=="symbol"?t:t+""}function Ibe(e,t){if(hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vbe=function(t,n){var r=_r(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},kb=function(t){var n=t.cx,r=t.cy,o=t.radius,s=t.angle,c=t.sign,u=t.isExternal,f=t.cornerRadius,m=t.cornerIsExternal,g=f*(u?1:-1)+o,h=Math.asin(f/g)/Ly,y=m?s:s+c*h,x=en(n,r,g,y),S=en(n,r,o,y),N=m?s-c*h:s,w=en(n,r,g*Math.cos(h*Ly),N);return{center:x,circleTangency:S,lineTangency:w,theta:h}},RF=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,c=t.startAngle,u=t.endAngle,f=Vbe(c,u),m=c+f,g=en(n,r,s,c),h=en(n,r,s,m),y="M ".concat(g.x,",").concat(g.y,`
A `).concat(s,",").concat(s,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(c>m),`,
`).concat(h.x,",").concat(h.y,`
`);if(o>0){var x=en(n,r,o,c),S=en(n,r,o,m);y+="L ".concat(S.x,",").concat(S.y,`
A `).concat(o,",").concat(o,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(c<=m),`,
`).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},$be=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,c=t.cornerRadius,u=t.forceCornerRadius,f=t.cornerIsExternal,m=t.startAngle,g=t.endAngle,h=_r(g-m),y=kb({cx:n,cy:r,radius:s,angle:m,sign:h,cornerRadius:c,cornerIsExternal:f}),x=y.circleTangency,S=y.lineTangency,N=y.theta,w=kb({cx:n,cy:r,radius:s,angle:g,sign:-h,cornerRadius:c,cornerIsExternal:f}),A=w.circleTangency,D=w.lineTangency,_=w.theta,P=f?Math.abs(m-g):Math.abs(m-g)-N-_;if(P<0)return u?"M ".concat(S.x,",").concat(S.y,`
a`).concat(c,",").concat(c,",0,0,1,").concat(c*2,`,0
a`).concat(c,",").concat(c,",0,0,1,").concat(-c*2,`,0
`):RF({cx:n,cy:r,innerRadius:o,outerRadius:s,startAngle:m,endAngle:g});var O="M ".concat(S.x,",").concat(S.y,`
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
A`).concat(s,",").concat(s,",0,").concat(+(P>180),",").concat(+(h<0),",").concat(A.x,",").concat(A.y,`
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(D.x,",").concat(D.y,`
`);if(o>0){var C=kb({cx:n,cy:r,radius:o,angle:m,sign:h,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),j=C.circleTangency,k=C.lineTangency,$=C.theta,B=kb({cx:n,cy:r,radius:o,angle:g,sign:-h,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),U=B.circleTangency,H=B.lineTangency,G=B.theta,Y=f?Math.abs(m-g):Math.abs(m-g)-$-G;if(Y<0&&c===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(H.x,",").concat(H.y,`
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(U.x,",").concat(U.y,`
A`).concat(o,",").concat(o,",0,").concat(+(Y>180),",").concat(+(h>0),",").concat(j.x,",").concat(j.y,`
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(k.x,",").concat(k.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},Bbe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},jF=function(t){var n=SB(SB({},Bbe),t),r=n.cx,o=n.cy,s=n.innerRadius,c=n.outerRadius,u=n.cornerRadius,f=n.forceCornerRadius,m=n.cornerIsExternal,g=n.startAngle,h=n.endAngle,y=n.className;if(c<s||g===h)return null;var x=it("recharts-sector",y),S=c-s,N=Rr(u,S,0,!0),w;return N>0&&Math.abs(g-h)<360?w=$be({cx:r,cy:o,innerRadius:s,outerRadius:c,cornerRadius:Math.min(N,S/2),forceCornerRadius:f,cornerIsExternal:m,startAngle:g,endAngle:h}):w=RF({cx:r,cy:o,innerRadius:s,outerRadius:c,startAngle:g,endAngle:h}),F.createElement("path",pC({},Fe(n,!0),{className:x,d:w,role:"img"}))};function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}function gC(){return gC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gC.apply(this,arguments)}function AB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AB(Object(n),!0).forEach(function(r){zbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zbe(e,t,n){return t=Ube(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ube(e){var t=qbe(e,"string");return pp(t)=="symbol"?t:t+""}function qbe(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var DB={curveBasisClosed:uue,curveBasisOpen:due,curveBasis:cue,curveBumpX:Qce,curveBumpY:Xce,curveLinearClosed:fue,curveLinear:Ux,curveMonotoneX:mue,curveMonotoneY:hue,curveNatural:pue,curveStep:gue,curveStepAfter:bue,curveStepBefore:vue},Lb=function(t){return t.x===+t.x&&t.y===+t.y},fh=function(t){return t.x},mh=function(t){return t.y},Hbe=function(t,n){if(Xe(t))return t;var r="curve".concat(Bx(t));return(r==="curveMonotone"||r==="curveBump")&&n?DB["".concat(r).concat(n==="vertical"?"Y":"X")]:DB[r]||Ux},Fbe=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,s=o===void 0?[]:o,c=t.baseLine,u=t.layout,f=t.connectNulls,m=f===void 0?!1:f,g=Hbe(r,u),h=m?s.filter(function(N){return Lb(N)}):s,y;if(Array.isArray(c)){var x=m?c.filter(function(N){return Lb(N)}):c,S=h.map(function(N,w){return OB(OB({},N),{},{base:x[w]})});return u==="vertical"?y=Db().y(mh).x1(fh).x0(function(N){return N.base.x}):y=Db().x(fh).y1(mh).y0(function(N){return N.base.y}),y.defined(Lb).curve(g),y(S)}return u==="vertical"&&Oe(c)?y=Db().y(mh).x1(fh).x0(c):Oe(c)?y=Db().x(fh).y1(mh).y0(c):y=_q().x(fh).y(mh),y.defined(Lb).curve(g),y(h)},Rd=function(t){var n=t.className,r=t.points,o=t.path,s=t.pathRef;if((!r||!r.length)&&!o)return null;var c=r&&r.length?Fbe(t):o;return R.createElement("path",gC({},Fe(t,!1),dy(t),{className:it("recharts-curve",n),d:c,ref:s}))},sD={exports:{}},lD={exports:{}},Vt={},TB;function Kbe(){if(TB)return Vt;TB=1;/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,c=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,A=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function _(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===m||ie===s||ie===o||ie===h||ie===y||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===x||ie.$$typeof===c||ie.$$typeof===u||ie.$$typeof===g||ie.$$typeof===w||ie.$$typeof===A||ie.$$typeof===D||ie.$$typeof===N)}function P(ie){if(typeof ie=="object"&&ie!==null){var ze=ie.$$typeof;switch(ze){case t:var Ne=ie.type;switch(Ne){case f:case m:case r:case s:case o:case h:return Ne;default:var ut=Ne&&Ne.$$typeof;switch(ut){case u:case g:case S:case x:case c:return ut;default:return ze}}case n:return ze}}}var O=f,C=m,j=u,k=c,$=t,B=g,U=r,H=S,G=x,Y=n,J=s,q=o,z=h,K=!1;function te(ie){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ne(ie)||P(ie)===f}function ne(ie){return P(ie)===m}function L(ie){return P(ie)===u}function Q(ie){return P(ie)===c}function W(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ae(ie){return P(ie)===g}function ge(ie){return P(ie)===r}function we(ie){return P(ie)===S}function ue(ie){return P(ie)===x}function xe(ie){return P(ie)===n}function me(ie){return P(ie)===s}function ye(ie){return P(ie)===o}function de(ie){return P(ie)===h}Vt.AsyncMode=O,Vt.ConcurrentMode=C,Vt.ContextConsumer=j,Vt.ContextProvider=k,Vt.Element=$,Vt.ForwardRef=B,Vt.Fragment=U,Vt.Lazy=H,Vt.Memo=G,Vt.Portal=Y,Vt.Profiler=J,Vt.StrictMode=q,Vt.Suspense=z,Vt.isAsyncMode=te,Vt.isConcurrentMode=ne,Vt.isContextConsumer=L,Vt.isContextProvider=Q,Vt.isElement=W,Vt.isForwardRef=ae,Vt.isFragment=ge,Vt.isLazy=we,Vt.isMemo=ue,Vt.isPortal=xe,Vt.isProfiler=me,Vt.isStrictMode=ye,Vt.isSuspense=de,Vt.isValidElementType=_,Vt.typeOf=P})(),Vt}var CB;function PF(){return CB||(CB=1,lD.exports=Kbe()),lD.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var cD,_B;function Gbe(){if(_B)return cD;_B=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var c={},u=0;u<10;u++)c["_"+String.fromCharCode(u)]=u;var f=Object.getOwnPropertyNames(c).map(function(g){return c[g]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(g){m[g]=g}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cD=o()?Object.assign:function(s,c){for(var u,f=r(s),m,g=1;g<arguments.length;g++){u=Object(arguments[g]);for(var h in u)t.call(u,h)&&(f[h]=u[h]);if(e){m=e(u);for(var y=0;y<m.length;y++)n.call(u,m[y])&&(f[m[y]]=u[m[y]])}}return f},cD}var uD,RB;function MF(){if(RB)return uD;RB=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return uD=e,uD}var dD,jB;function kF(){return jB||(jB=1,dD=Function.call.bind(Object.prototype.hasOwnProperty)),dD}var fD,PB;function Ybe(){if(PB)return fD;PB=1;var e=function(){};{var t=MF(),n={},r=kF();e=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(s,c,u,f,m){for(var g in s)if(r(s,g)){var h;try{if(typeof s[g]!="function"){var y=Error((f||"React class")+": "+u+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=s[g](c,g,f,u,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+u+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var x=m?m():"";e("Failed "+u+" type: "+h.message+(x??""))}}}return o.resetWarningCache=function(){n={}},fD=o,fD}var mD,MB;function Qbe(){if(MB)return mD;MB=1;var e=PF(),t=Gbe(),n=MF(),r=kF(),o=Ybe(),s=function(){};s=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};function c(){return null}return mD=function(u,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function h(ne){var L=ne&&(m&&ne[m]||ne[g]);if(typeof L=="function")return L}var y="<<anonymous>>",x={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:D(),arrayOf:_,element:P(),elementType:O(),instanceOf:C,node:B(),objectOf:k,oneOf:j,oneOfType:$,shape:H,exact:G};function S(ne,L){return ne===L?ne!==0||1/ne===1/L:ne!==ne&&L!==L}function N(ne,L){this.message=ne,this.data=L&&typeof L=="object"?L:{},this.stack=""}N.prototype=Error.prototype;function w(ne){var L={},Q=0;function W(ge,we,ue,xe,me,ye,de){if(xe=xe||y,ye=ye||ue,de!==n){if(f){var ie=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 ie.name="Invariant Violation",ie}else if(typeof console<"u"){var ze=xe+":"+ue;!L[ze]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+xe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),L[ze]=!0,Q++)}}return we[ue]==null?ge?we[ue]===null?new N("The "+me+" `"+ye+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new N("The "+me+" `"+ye+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:ne(we,ue,xe,me,ye)}var ae=W.bind(null,!1);return ae.isRequired=W.bind(null,!0),ae}function A(ne){function L(Q,W,ae,ge,we,ue){var xe=Q[W],me=q(xe);if(me!==ne){var ye=z(xe);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+ye+"` supplied to `"+ae+"`, expected ")+("`"+ne+"`."),{expectedType:ne})}return null}return w(L)}function D(){return w(c)}function _(ne){function L(Q,W,ae,ge,we){if(typeof ne!="function")return new N("Property `"+we+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var ue=Q[W];if(!Array.isArray(ue)){var xe=q(ue);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an array."))}for(var me=0;me<ue.length;me++){var ye=ne(ue,me,ae,ge,we+"["+me+"]",n);if(ye instanceof Error)return ye}return null}return w(L)}function P(){function ne(L,Q,W,ae,ge){var we=L[Q];if(!u(we)){var ue=q(we);return new N("Invalid "+ae+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return w(ne)}function O(){function ne(L,Q,W,ae,ge){var we=L[Q];if(!e.isValidElementType(we)){var ue=q(we);return new N("Invalid "+ae+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return w(ne)}function C(ne){function L(Q,W,ae,ge,we){if(!(Q[W]instanceof ne)){var ue=ne.name||y,xe=te(Q[W]);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("instance of `"+ue+"`."))}return null}return w(L)}function j(ne){if(!Array.isArray(ne))return arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array."),c;function L(Q,W,ae,ge,we){for(var ue=Q[W],xe=0;xe<ne.length;xe++)if(S(ue,ne[xe]))return null;var me=JSON.stringify(ne,function(de,ie){var ze=z(ie);return ze==="symbol"?String(ie):ie});return new N("Invalid "+ge+" `"+we+"` of value `"+String(ue)+"` "+("supplied to `"+ae+"`, expected one of "+me+"."))}return w(L)}function k(ne){function L(Q,W,ae,ge,we){if(typeof ne!="function")return new N("Property `"+we+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var ue=Q[W],xe=q(ue);if(xe!=="object")return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an object."));for(var me in ue)if(r(ue,me)){var ye=ne(ue,me,ae,ge,we+"."+me,n);if(ye instanceof Error)return ye}return null}return w(L)}function $(ne){if(!Array.isArray(ne))return s("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var L=0;L<ne.length;L++){var Q=ne[L];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(Q)+" at index "+L+"."),c}function W(ae,ge,we,ue,xe){for(var me=[],ye=0;ye<ne.length;ye++){var de=ne[ye],ie=de(ae,ge,we,ue,xe,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&me.push(ie.data.expectedType)}var ze=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new N("Invalid "+ue+" `"+xe+"` supplied to "+("`"+we+"`"+ze+"."))}return w(W)}function B(){function ne(L,Q,W,ae,ge){return Y(L[Q])?null:new N("Invalid "+ae+" `"+ge+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return w(ne)}function U(ne,L,Q,W,ae){return new N((ne||"React class")+": "+L+" type `"+Q+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function H(ne){function L(Q,W,ae,ge,we){var ue=Q[W],xe=q(ue);if(xe!=="object")return new N("Invalid "+ge+" `"+we+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));for(var me in ne){var ye=ne[me];if(typeof ye!="function")return U(ae,ge,we,me,z(ye));var de=ye(ue,me,ae,ge,we+"."+me,n);if(de)return de}return null}return w(L)}function G(ne){function L(Q,W,ae,ge,we){var ue=Q[W],xe=q(ue);if(xe!=="object")return new N("Invalid "+ge+" `"+we+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));var me=t({},Q[W],ne);for(var ye in me){var de=ne[ye];if(r(ne,ye)&&typeof de!="function")return U(ae,ge,we,ye,z(de));if(!de)return new N("Invalid "+ge+" `"+we+"` key `"+ye+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(Q[W],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(ne),null," "));var ie=de(ue,ye,ae,ge,we+"."+ye,n);if(ie)return ie}return null}return w(L)}function Y(ne){switch(typeof ne){case"number":case"string":case"undefined":return!0;case"boolean":return!ne;case"object":if(Array.isArray(ne))return ne.every(Y);if(ne===null||u(ne))return!0;var L=h(ne);if(L){var Q=L.call(ne),W;if(L!==ne.entries){for(;!(W=Q.next()).done;)if(!Y(W.value))return!1}else for(;!(W=Q.next()).done;){var ae=W.value;if(ae&&!Y(ae[1]))return!1}}else return!1;return!0;default:return!1}}function J(ne,L){return ne==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function q(ne){var L=typeof ne;return Array.isArray(ne)?"array":ne instanceof RegExp?"object":J(L,ne)?"symbol":L}function z(ne){if(typeof ne>"u"||ne===null)return""+ne;var L=q(ne);if(L==="object"){if(ne instanceof Date)return"date";if(ne instanceof RegExp)return"regexp"}return L}function K(ne){var L=z(ne);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function te(ne){return!ne.constructor||!ne.constructor.name?y:ne.constructor.name}return x.checkPropTypes=o,x.resetWarningCache=o.resetWarningCache,x.PropTypes=x,x},mD}var kB;function Xbe(){if(kB)return sD.exports;kB=1;{var e=PF(),t=!0;sD.exports=Qbe()(e.isElement,t)}return sD.exports}var Wbe=Xbe();const $t=Bt(Wbe);var Zbe=Object.getOwnPropertyNames,Jbe=Object.getOwnPropertySymbols,eye=Object.prototype.hasOwnProperty;function LB(e,t){return function(r,o,s){return e(r,o,s)&&t(r,o,s)}}function Ib(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var s=o.cache,c=s.get(n),u=s.get(r);if(c&&u)return c===r&&u===n;s.set(n,r),s.set(r,n);var f=e(n,r,o);return s.delete(n),s.delete(r),f}}function tye(e){return e?.[Symbol.toStringTag]}function IB(e){return Zbe(e).concat(Jbe(e))}var nye=Object.hasOwn||(function(e,t){return eye.call(e,t)});function su(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var rye="__v",aye="__o",iye="_owner",VB=Object.getOwnPropertyDescriptor,$B=Object.keys;function oye(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function sye(e,t){return su(e.getTime(),t.getTime())}function lye(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function cye(e,t){return e===t}function BB(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),s=e.entries(),c,u,f=0;(c=s.next())&&!c.done;){for(var m=t.entries(),g=!1,h=0;(u=m.next())&&!u.done;){if(o[h]){h++;continue}var y=c.value,x=u.value;if(n.equals(y[0],x[0],f,h,e,t,n)&&n.equals(y[1],x[1],y[0],x[0],e,t,n)){g=o[h]=!0;break}h++}if(!g)return!1;f++}return!0}var uye=su;function dye(e,t,n){var r=$B(e),o=r.length;if($B(t).length!==o)return!1;for(;o-- >0;)if(!LF(e,t,n,r[o]))return!1;return!0}function hh(e,t,n){var r=IB(e),o=r.length;if(IB(t).length!==o)return!1;for(var s,c,u;o-- >0;)if(s=r[o],!LF(e,t,n,s)||(c=VB(e,s),u=VB(t,s),(c||u)&&(!c||!u||c.configurable!==u.configurable||c.enumerable!==u.enumerable||c.writable!==u.writable)))return!1;return!0}function fye(e,t){return su(e.valueOf(),t.valueOf())}function mye(e,t){return e.source===t.source&&e.flags===t.flags}function zB(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var o=new Array(r),s=e.values(),c,u;(c=s.next())&&!c.done;){for(var f=t.values(),m=!1,g=0;(u=f.next())&&!u.done;){if(!o[g]&&n.equals(c.value,u.value,c.value,u.value,e,t,n)){m=o[g]=!0;break}g++}if(!m)return!1}return!0}function hye(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function pye(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function LF(e,t,n,r){return(r===iye||r===aye||r===rye)&&(e.$$typeof||t.$$typeof)?!0:nye(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var gye="[object Arguments]",vye="[object Boolean]",bye="[object Date]",yye="[object Error]",xye="[object Map]",Nye="[object Number]",wye="[object Object]",Eye="[object RegExp]",Sye="[object Set]",Aye="[object String]",Oye="[object URL]",Dye=Array.isArray,UB=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,qB=Object.assign,Tye=Object.prototype.toString.call.bind(Object.prototype.toString);function Cye(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,s=e.areMapsEqual,c=e.areNumbersEqual,u=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,m=e.areRegExpsEqual,g=e.areSetsEqual,h=e.areTypedArraysEqual,y=e.areUrlsEqual,x=e.unknownTagComparators;return function(N,w,A){if(N===w)return!0;if(N==null||w==null)return!1;var D=typeof N;if(D!==typeof w)return!1;if(D!=="object")return D==="number"?c(N,w,A):D==="function"?o(N,w,A):!1;var _=N.constructor;if(_!==w.constructor)return!1;if(_===Object)return u(N,w,A);if(Dye(N))return t(N,w,A);if(UB!=null&&UB(N))return h(N,w,A);if(_===Date)return n(N,w,A);if(_===RegExp)return m(N,w,A);if(_===Map)return s(N,w,A);if(_===Set)return g(N,w,A);var P=Tye(N);if(P===bye)return n(N,w,A);if(P===Eye)return m(N,w,A);if(P===xye)return s(N,w,A);if(P===Sye)return g(N,w,A);if(P===wye)return typeof N.then!="function"&&typeof w.then!="function"&&u(N,w,A);if(P===Oye)return y(N,w,A);if(P===yye)return r(N,w,A);if(P===gye)return u(N,w,A);if(P===vye||P===Nye||P===Aye)return f(N,w,A);if(x){var O=x[P];if(!O){var C=tye(N);C&&(O=x[C])}if(O)return O(N,w,A)}return!1}}function _ye(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?hh:oye,areDatesEqual:sye,areErrorsEqual:lye,areFunctionsEqual:cye,areMapsEqual:r?LB(BB,hh):BB,areNumbersEqual:uye,areObjectsEqual:r?hh:dye,arePrimitiveWrappersEqual:fye,areRegExpsEqual:mye,areSetsEqual:r?LB(zB,hh):zB,areTypedArraysEqual:r?hh:hye,areUrlsEqual:pye,unknownTagComparators:void 0};if(n&&(o=qB({},o,n(o))),t){var s=Ib(o.areArraysEqual),c=Ib(o.areMapsEqual),u=Ib(o.areObjectsEqual),f=Ib(o.areSetsEqual);o=qB({},o,{areArraysEqual:s,areMapsEqual:c,areObjectsEqual:u,areSetsEqual:f})}return o}function Rye(e){return function(t,n,r,o,s,c,u){return e(t,n,u)}}function jye(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,s=e.strict;if(r)return function(f,m){var g=r(),h=g.cache,y=h===void 0?t?new WeakMap:void 0:h,x=g.meta;return n(f,m,{cache:y,equals:o,meta:x,strict:s})};if(t)return function(f,m){return n(f,m,{cache:new WeakMap,equals:o,meta:void 0,strict:s})};var c={cache:void 0,equals:o,meta:void 0,strict:s};return function(f,m){return n(f,m,c)}}var Pye=El();El({strict:!0});El({circular:!0});El({circular:!0,strict:!0});El({createInternalComparator:function(){return su}});El({strict:!0,createInternalComparator:function(){return su}});El({circular:!0,createInternalComparator:function(){return su}});El({circular:!0,createInternalComparator:function(){return su},strict:!0});function El(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,s=e.strict,c=s===void 0?!1:s,u=_ye(e),f=Cye(u),m=r?r(f):Rye(f);return jye({circular:n,comparator:f,createState:o,equals:m,strict:c})}function Mye(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function HB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(s){n<0&&(n=s),s-n>t?(e(s),n=-1):Mye(o)};requestAnimationFrame(r)}function vC(e){"@babel/helpers - typeof";return vC=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},vC(e)}function kye(e){return $ye(e)||Vye(e)||Iye(e)||Lye()}function Lye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iye(e,t){if(e){if(typeof e=="string")return FB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FB(e,t)}}function FB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ye(e){if(Array.isArray(e))return e}function Bye(){var e={},t=function(){return null},n=!1,r=function o(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var c=s,u=kye(c),f=u[0],m=u.slice(1);if(typeof f=="number"){HB(o.bind(null,m),f);return}o(f),HB(o.bind(null,m));return}vC(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function gp(e){"@babel/helpers - typeof";return gp=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},gp(e)}function KB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KB(Object(n),!0).forEach(function(r){IF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IF(e,t,n){return t=zye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zye(e){var t=Uye(e,"string");return gp(t)==="symbol"?t:String(t)}function Uye(e,t){if(gp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qye=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(s){return o.includes(s)})})},Hye=function(t){return t},Fye=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Rh=function(t,n){return Object.keys(n).reduce(function(r,o){return GB(GB({},r),{},IF({},o,t(o,n[o])))},{})},YB=function(t,n,r){return t.map(function(o){return"".concat(Fye(o)," ").concat(n,"ms ").concat(r)}).join(",")},Vy=function(t,n,r,o,s,c,u,f){if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var m=[r,o,s,c,u,f],g=0;console.warn(n.replace(/%s/g,function(){return m[g++]}))}};function Kye(e,t){return Qye(e)||Yye(e,t)||VF(e,t)||Gye()}function Gye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Qye(e){if(Array.isArray(e))return e}function Xye(e){return Jye(e)||Zye(e)||VF(e)||Wye()}function Wye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VF(e,t){if(e){if(typeof e=="string")return bC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bC(e,t)}}function Zye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jye(e){if(Array.isArray(e))return bC(e)}function bC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $y=1e-4,$F=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},BF=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},QB=function(t,n){return function(r){var o=$F(t,n);return BF(o,r)}},exe=function(t,n){return function(r){var o=$F(t,n),s=[].concat(Xye(o.map(function(c,u){return c*u}).slice(1)),[0]);return BF(s,r)}},XB=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],s=n[1],c=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,s=0,c=1,u=1;break;case"ease":o=.25,s=.1,c=.25,u=1;break;case"ease-in":o=.42,s=0,c=1,u=1;break;case"ease-out":o=.42,s=0,c=.58,u=1;break;case"ease-in-out":o=0,s=0,c=.58,u=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var m=f[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),g=Kye(m,4);o=g[0],s=g[1],c=g[2],u=g[3]}else Vy(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}}Vy([o,c,s,u].every(function(w){return typeof w=="number"&&w>=0&&w<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var h=QB(o,c),y=QB(s,u),x=exe(o,c),S=function(A){return A>1?1:A<0?0:A},N=function(A){for(var D=A>1?1:A,_=D,P=0;P<8;++P){var O=h(_)-D,C=x(_);if(Math.abs(O-D)<$y||C<$y)return y(_);_=S(_-O/C)}return y(_)};return N.isStepper=!1,N},txe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,s=o===void 0?8:o,c=t.dt,u=c===void 0?17:c,f=function(g,h,y){var x=-(g-h)*r,S=y*s,N=y+(x-S)*u/1e3,w=y*u/1e3+g;return Math.abs(w-h)<$y&&Math.abs(N)<$y?[h,0]:[w,N]};return f.isStepper=!0,f.dt=u,f},nxe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0];if(typeof o=="string")switch(o){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return XB(o);case"spring":return txe();default:if(o.split("(")[0]==="cubic-bezier")return XB(o);Vy(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",n)}return typeof o=="function"?o:(Vy(!1,"[configEasing]: first argument type should be function or string, instead received %s",n),null)};function vp(e){"@babel/helpers - typeof";return vp=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},vp(e)}function WB(e){return ixe(e)||axe(e)||zF(e)||rxe()}function rxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function axe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ixe(e){if(Array.isArray(e))return xC(e)}function ZB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZB(Object(n),!0).forEach(function(r){yC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yC(e,t,n){return t=oxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oxe(e){var t=sxe(e,"string");return vp(t)==="symbol"?t:String(t)}function sxe(e,t){if(vp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lxe(e,t){return dxe(e)||uxe(e,t)||zF(e,t)||cxe()}function cxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zF(e,t){if(e){if(typeof e=="string")return xC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xC(e,t)}}function xC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function dxe(e){if(Array.isArray(e))return e}var By=function(t,n,r){return t+(n-t)*r},NC=function(t){var n=t.from,r=t.to;return n!==r},fxe=function e(t,n,r){var o=Rh(function(s,c){if(NC(c)){var u=t(c.from,c.to,c.velocity),f=lxe(u,2),m=f[0],g=f[1];return rr(rr({},c),{},{from:m,velocity:g})}return c},n);return r<1?Rh(function(s,c){return NC(c)?rr(rr({},c),{},{velocity:By(c.velocity,o[s].velocity,r),from:By(c.from,o[s].from,r)}):c},n):e(t,o,r-1)};const mxe=(function(e,t,n,r,o){var s=qye(e,t),c=s.reduce(function(w,A){return rr(rr({},w),{},yC({},A,[e[A],t[A]]))},{}),u=s.reduce(function(w,A){return rr(rr({},w),{},yC({},A,{from:e[A],velocity:0,to:t[A]}))},{}),f=-1,m,g,h=function(){return null},y=function(){return Rh(function(A,D){return D.from},u)},x=function(){return!Object.values(u).filter(NC).length},S=function(A){m||(m=A);var D=A-m,_=D/n.dt;u=fxe(n,u,_),o(rr(rr(rr({},e),t),y())),m=A,x()||(f=requestAnimationFrame(h))},N=function(A){g||(g=A);var D=(A-g)/r,_=Rh(function(O,C){return By.apply(void 0,WB(C).concat([n(D)]))},c);if(o(rr(rr(rr({},e),t),_)),D<1)f=requestAnimationFrame(h);else{var P=Rh(function(O,C){return By.apply(void 0,WB(C).concat([n(1)]))},c);o(rr(rr(rr({},e),t),P))}};return h=n.isStepper?S:N,function(){return requestAnimationFrame(h),function(){cancelAnimationFrame(f)}}});function Fd(e){"@babel/helpers - typeof";return Fd=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},Fd(e)}var hxe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function pxe(e,t){if(e==null)return{};var n=gxe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gxe(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hD(e){return xxe(e)||yxe(e)||bxe(e)||vxe()}function vxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bxe(e,t){if(e){if(typeof e=="string")return wC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wC(e,t)}}function yxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xxe(e){if(Array.isArray(e))return wC(e)}function wC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ri(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JB(Object(n),!0).forEach(function(r){Nh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nh(e,t,n){return t=UF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wxe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,UF(r.key),r)}}function Exe(e,t,n){return t&&wxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UF(e){var t=Sxe(e,"string");return Fd(t)==="symbol"?t:String(t)}function Sxe(e,t){if(Fd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Axe(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&&EC(e,t)}function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},EC(e,t)}function Oxe(e){var t=Dxe();return function(){var r=zy(e),o;if(t){var s=zy(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return SC(this,o)}}function SC(e,t){if(t&&(Fd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AC(e)}function AC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dxe(){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 zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zy(e)}var fo=(function(e){Axe(n,e);var t=Oxe(n);function n(r,o){var s;Nxe(this,n),s=t.call(this,r,o);var c=s.props,u=c.isActive,f=c.attributeName,m=c.from,g=c.to,h=c.steps,y=c.children,x=c.duration;if(s.handleStyleChange=s.handleStyleChange.bind(AC(s)),s.changeStyle=s.changeStyle.bind(AC(s)),!u||x<=0)return s.state={style:{}},typeof y=="function"&&(s.state={style:g}),SC(s);if(h&&h.length)s.state={style:h[0].style};else if(m){if(typeof y=="function")return s.state={style:m},SC(s);s.state={style:f?Nh({},f,m):m}}else s.state={style:{}};return s}return Exe(n,[{key:"componentDidMount",value:function(){var o=this.props,s=o.isActive,c=o.canBegin;this.mounted=!0,!(!s||!c)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var s=this.props,c=s.isActive,u=s.canBegin,f=s.attributeName,m=s.shouldReAnimate,g=s.to,h=s.from,y=this.state.style;if(u){if(!c){var x={style:f?Nh({},f,g):g};this.state&&y&&(f&&y[f]!==g||!f&&y!==g)&&this.setState(x);return}if(!(Pye(o.to,g)&&o.canBegin&&o.isActive)){var S=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var N=S||m?h:o.to;if(this.state&&y){var w={style:f?Nh({},f,N):N};(f&&y[f]!==N||!f&&y!==N)&&this.setState(w)}this.runAnimation(ri(ri({},this.props),{},{from:N,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var o=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),o&&o()}},{key:"handleStyleChange",value:function(o){this.changeStyle(o)}},{key:"changeStyle",value:function(o){this.mounted&&this.setState({style:o})}},{key:"runJSAnimation",value:function(o){var s=this,c=o.from,u=o.to,f=o.duration,m=o.easing,g=o.begin,h=o.onAnimationEnd,y=o.onAnimationStart,x=mxe(c,u,nxe(m),f,this.changeStyle),S=function(){s.stopJSAnimation=x()};this.manager.start([y,g,S,f,h])}},{key:"runStepAnimation",value:function(o){var s=this,c=o.steps,u=o.begin,f=o.onAnimationStart,m=c[0],g=m.style,h=m.duration,y=h===void 0?0:h,x=function(N,w,A){if(A===0)return N;var D=w.duration,_=w.easing,P=_===void 0?"ease":_,O=w.style,C=w.properties,j=w.onAnimationEnd,k=A>0?c[A-1]:w,$=C||Object.keys(O);if(typeof P=="function"||P==="spring")return[].concat(hD(N),[s.runJSAnimation.bind(s,{from:k.style,to:O,duration:D,easing:P}),D]);var B=YB($,D,P),U=ri(ri(ri({},k.style),O),{},{transition:B});return[].concat(hD(N),[U,D,j]).filter(Hye)};return this.manager.start([f].concat(hD(c.reduce(x,[g,Math.max(y,u)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=Bye());var s=o.begin,c=o.duration,u=o.attributeName,f=o.to,m=o.easing,g=o.onAnimationStart,h=o.onAnimationEnd,y=o.steps,x=o.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof m=="function"||typeof x=="function"||m==="spring"){this.runJSAnimation(o);return}if(y.length>1){this.runStepAnimation(o);return}var N=u?Nh({},u,f):f,w=YB(Object.keys(N),c,m);S.start([g,s,ri(ri({},N),{},{transition:w}),c,h])}},{key:"render",value:function(){var o=this.props,s=o.children;o.begin;var c=o.duration;o.attributeName,o.easing;var u=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var f=pxe(o,hxe),m=R.Children.count(s),g=this.state.style;if(typeof s=="function")return s(g);if(!u||m===0||c<=0)return s;var h=function(x){var S=x.props,N=S.style,w=N===void 0?{}:N,A=S.className,D=R.cloneElement(x,ri(ri({},f),{},{style:ri(ri({},w),g),className:A}));return D};return m===1?h(R.Children.only(s)):F.createElement("div",null,R.Children.map(s,function(y){return h(y)}))}}]),n})(R.PureComponent);fo.displayName="Animate";fo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};fo.propTypes={from:$t.oneOfType([$t.object,$t.string]),to:$t.oneOfType([$t.object,$t.string]),attributeName:$t.string,duration:$t.number,begin:$t.number,easing:$t.oneOfType([$t.string,$t.func]),steps:$t.arrayOf($t.shape({duration:$t.number.isRequired,style:$t.object.isRequired,easing:$t.oneOfType([$t.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$t.func]),properties:$t.arrayOf("string"),onAnimationEnd:$t.func})),children:$t.oneOfType([$t.node,$t.func]),isActive:$t.bool,canBegin:$t.bool,onAnimationEnd:$t.func,shouldReAnimate:$t.bool,onAnimationStart:$t.func,onAnimationReStart:$t.func};function bp(e){"@babel/helpers - typeof";return bp=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},bp(e)}function Uy(){return Uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uy.apply(this,arguments)}function Txe(e,t){return jxe(e)||Rxe(e,t)||_xe(e,t)||Cxe()}function Cxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _xe(e,t){if(e){if(typeof e=="string")return e7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e7(e,t)}}function e7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function jxe(e){if(Array.isArray(e))return e}function t7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function n7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t7(Object(n),!0).forEach(function(r){Pxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pxe(e,t,n){return t=Mxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mxe(e){var t=kxe(e,"string");return bp(t)=="symbol"?t:t+""}function kxe(e,t){if(bp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r7=function(t,n,r,o,s){var c=Math.min(Math.abs(r)/2,Math.abs(o)/2),u=o>=0?1:-1,f=r>=0?1:-1,m=o>=0&&r>=0||o<0&&r<0?1:0,g;if(c>0&&s instanceof Array){for(var h=[0,0,0,0],y=0,x=4;y<x;y++)h[y]=s[y]>c?c:s[y];g="M".concat(t,",").concat(n+u*h[0]),h[0]>0&&(g+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(m,",").concat(t+f*h[0],",").concat(n)),g+="L ".concat(t+r-f*h[1],",").concat(n),h[1]>0&&(g+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(m,`,
`).concat(t+r,",").concat(n+u*h[1])),g+="L ".concat(t+r,",").concat(n+o-u*h[2]),h[2]>0&&(g+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(m,`,
`).concat(t+r-f*h[2],",").concat(n+o)),g+="L ".concat(t+f*h[3],",").concat(n+o),h[3]>0&&(g+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(m,`,
`).concat(t,",").concat(n+o-u*h[3])),g+="Z"}else if(c>0&&s===+s&&s>0){var S=Math.min(c,s);g="M ".concat(t,",").concat(n+u*S,`
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t+f*S,",").concat(n,`
L `).concat(t+r-f*S,",").concat(n,`
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t+r,",").concat(n+u*S,`
L `).concat(t+r,",").concat(n+o-u*S,`
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t+r-f*S,",").concat(n+o,`
L `).concat(t+f*S,",").concat(n+o,`
A `).concat(S,",").concat(S,",0,0,").concat(m,",").concat(t,",").concat(n+o-u*S," Z")}else g="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return g},Lxe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,s=n.x,c=n.y,u=n.width,f=n.height;if(Math.abs(u)>0&&Math.abs(f)>0){var m=Math.min(s,s+u),g=Math.max(s,s+u),h=Math.min(c,c+f),y=Math.max(c,c+f);return r>=m&&r<=g&&o>=h&&o<=y}return!1},Ixe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zR=function(t){var n=n7(n7({},Ixe),t),r=R.useRef(),o=R.useState(-1),s=Txe(o,2),c=s[0],u=s[1];R.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&u(P)}catch{}},[]);var f=n.x,m=n.y,g=n.width,h=n.height,y=n.radius,x=n.className,S=n.animationEasing,N=n.animationDuration,w=n.animationBegin,A=n.isAnimationActive,D=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||h!==+h||g===0||h===0)return null;var _=it("recharts-rectangle",x);return D?F.createElement(fo,{canBegin:c>0,from:{width:g,height:h,x:f,y:m},to:{width:g,height:h,x:f,y:m},duration:N,animationEasing:S,isActive:D},function(P){var O=P.width,C=P.height,j=P.x,k=P.y;return F.createElement(fo,{canBegin:c>0,from:"0px ".concat(c===-1?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:N,isActive:A,easing:S},F.createElement("path",Uy({},Fe(n,!0),{className:_,d:r7(j,k,O,C,y),ref:r})))}):F.createElement("path",Uy({},Fe(n,!0),{className:_,d:r7(f,m,g,h,y)}))},Vxe=["points","className","baseLinePoints","connectNulls"];function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wd.apply(this,arguments)}function $xe(e,t){if(e==null)return{};var n=Bxe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function a7(e){return Hxe(e)||qxe(e)||Uxe(e)||zxe()}function zxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uxe(e,t){if(e){if(typeof e=="string")return OC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OC(e,t)}}function qxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hxe(e){if(Array.isArray(e))return OC(e)}function OC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i7=function(t){return t&&t.x===+t.x&&t.y===+t.y},Fxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){i7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),i7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},jh=function(t,n){var r=Fxe(t);n&&(r=[r.reduce(function(s,c){return[].concat(a7(s),a7(c))},[])]);var o=r.map(function(s){return s.reduce(function(c,u,f){return"".concat(c).concat(f===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},Kxe=function(t,n,r){var o=jh(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(jh(n.reverse(),r).slice(1))},Gxe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,s=t.connectNulls,c=$xe(t,Vxe);if(!n||!n.length)return null;var u=it("recharts-polygon",r);if(o&&o.length){var f=c.stroke&&c.stroke!=="none",m=Kxe(n,o,s);return F.createElement("g",{className:u},F.createElement("path",wd({},Fe(c,!0),{fill:m.slice(-1)==="Z"?c.fill:"none",stroke:"none",d:m})),f?F.createElement("path",wd({},Fe(c,!0),{fill:"none",d:jh(n,s)})):null,f?F.createElement("path",wd({},Fe(c,!0),{fill:"none",d:jh(o,s)})):null)}var g=jh(n,s);return F.createElement("path",wd({},Fe(c,!0),{fill:g.slice(-1)==="Z"?c.fill:"none",className:u,d:g}))};function DC(){return DC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DC.apply(this,arguments)}var i0=function(t){var n=t.cx,r=t.cy,o=t.r,s=t.className,c=it("recharts-dot",s);return n===+n&&r===+r&&o===+o?R.createElement("circle",DC({},Fe(t,!1),dy(t),{className:c,cx:n,cy:r,r:o})):null};function yp(e){"@babel/helpers - typeof";return yp=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},yp(e)}var Yxe=["x","y","top","left","width","height","className"];function TC(){return TC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TC.apply(this,arguments)}function o7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qxe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(r){Xxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xxe(e,t,n){return t=Wxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wxe(e){var t=Zxe(e,"string");return yp(t)=="symbol"?t:t+""}function Zxe(e,t){if(yp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jxe(e,t){if(e==null)return{};var n=e0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function e0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var t0e=function(t,n,r,o,s,c){return"M".concat(t,",").concat(s,"v").concat(o,"M").concat(c,",").concat(n,"h").concat(r)},n0e=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,s=o===void 0?0:o,c=t.top,u=c===void 0?0:c,f=t.left,m=f===void 0?0:f,g=t.width,h=g===void 0?0:g,y=t.height,x=y===void 0?0:y,S=t.className,N=Jxe(t,Yxe),w=Qxe({x:r,y:s,top:u,left:m,width:h,height:x},N);return!Oe(r)||!Oe(s)||!Oe(h)||!Oe(x)||!Oe(u)||!Oe(m)?null:F.createElement("path",TC({},Fe(w,!0),{className:it("recharts-cross",S),d:t0e(r,s,h,x,u,m)}))},pD,s7;function r0e(){if(s7)return pD;s7=1;var e=e0(),t=eF(),n=vo();function r(o,s){return o&&o.length?e(o,n(s,2),t):void 0}return pD=r,pD}var a0e=r0e();const i0e=Bt(a0e);var gD,l7;function o0e(){if(l7)return gD;l7=1;var e=e0(),t=vo(),n=tF();function r(o,s){return o&&o.length?e(o,t(s,2),n):void 0}return gD=r,gD}var s0e=o0e();const l0e=Bt(s0e);var c0e=["cx","cy","angle","ticks","axisLine"],u0e=["ticks","tick","angle","tickFormatter","stroke"];function Kd(e){"@babel/helpers - typeof";return Kd=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},Kd(e)}function Ph(){return Ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ph.apply(this,arguments)}function c7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c7(Object(n),!0).forEach(function(r){o0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u7(e,t){if(e==null)return{};var n=d0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function d0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function f0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HF(r.key),r)}}function m0e(e,t,n){return t&&d7(e.prototype,t),n&&d7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h0e(e,t,n){return t=qy(t),p0e(e,qF()?Reflect.construct(t,n||[],qy(e).constructor):t.apply(e,n))}function p0e(e,t){if(t&&(Kd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g0e(e)}function g0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qF=function(){return!!e})()}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qy(e)}function v0e(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&&CC(e,t)}function CC(e,t){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},CC(e,t)}function o0(e,t,n){return t=HF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HF(e){var t=b0e(e,"string");return Kd(t)=="symbol"?t:t+""}function b0e(e,t){if(Kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var s0=(function(e){function t(){return f0e(this,t),h0e(this,t,arguments)}return v0e(t,e),m0e(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,s=this.props,c=s.angle,u=s.cx,f=s.cy;return en(u,f,o,c)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,o;switch(r){case"left":o="end";break;case"right":o="start";break;default:o="middle";break}return o}},{key:"getViewBox",value:function(){var r=this.props,o=r.cx,s=r.cy,c=r.angle,u=r.ticks,f=i0e(u,function(g){return g.coordinate||0}),m=l0e(u,function(g){return g.coordinate||0});return{cx:o,cy:s,startAngle:c,endAngle:c,innerRadius:m.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,s=r.cy,c=r.angle,u=r.ticks,f=r.axisLine,m=u7(r,c0e),g=u.reduce(function(S,N){return[Math.min(S[0],N.coordinate),Math.max(S[1],N.coordinate)]},[1/0,-1/0]),h=en(o,s,g[0],c),y=en(o,s,g[1],c),x=hc(hc(hc({},Fe(m,!1)),{},{fill:"none"},Fe(f,!1)),{},{x1:h.x,y1:h.y,x2:y.x,y2:y.y});return F.createElement("line",Ph({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,o=this.props,s=o.ticks,c=o.tick,u=o.angle,f=o.tickFormatter,m=o.stroke,g=u7(o,u0e),h=this.getTickTextAnchor(),y=Fe(g,!1),x=Fe(c,!1),S=s.map(function(N,w){var A=r.getTickValueCoord(N),D=hc(hc(hc(hc({textAnchor:h,transform:"rotate(".concat(90-u,", ").concat(A.x,", ").concat(A.y,")")},y),{},{stroke:"none",fill:m},x),{},{index:w},A),{},{payload:N});return F.createElement(Dt,Ph({className:it("recharts-polar-radius-axis-tick",CF(c)),key:"tick-".concat(N.coordinate)},Hc(r.props,N,w)),t.renderTickItem(c,D,f?f(N.value,w):N.value))});return F.createElement(Dt,{className:"recharts-polar-radius-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,o=r.ticks,s=r.axisLine,c=r.tick;return!o||!o.length?null:F.createElement(Dt,{className:it("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),c&&this.renderTicks(),Xn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,s){var c;return F.isValidElement(r)?c=F.cloneElement(r,o):Xe(r)?c=r(o):c=F.createElement(Fc,Ph({},o,{className:"recharts-polar-radius-axis-tick-value"}),s),c}}])})(R.PureComponent);o0(s0,"displayName","PolarRadiusAxis");o0(s0,"axisType","radiusAxis");o0(s0,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Gd(e){"@babel/helpers - typeof";return Gd=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},Gd(e)}function xc(){return xc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xc.apply(this,arguments)}function f7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f7(Object(n),!0).forEach(function(r){l0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function y0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KF(r.key),r)}}function x0e(e,t,n){return t&&m7(e.prototype,t),n&&m7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N0e(e,t,n){return t=Hy(t),w0e(e,FF()?Reflect.construct(t,n||[],Hy(e).constructor):t.apply(e,n))}function w0e(e,t){if(t&&(Gd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E0e(e)}function E0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FF=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hy(e)}function S0e(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&&_C(e,t)}function _C(e,t){return _C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_C(e,t)}function l0(e,t,n){return t=KF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KF(e){var t=A0e(e,"string");return Gd(t)=="symbol"?t:t+""}function A0e(e,t){if(Gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var O0e=Math.PI/180,h7=1e-5,c0=(function(e){function t(){return y0e(this,t),N0e(this,t,arguments)}return S0e(t,e),x0e(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,s=o.cx,c=o.cy,u=o.radius,f=o.orientation,m=o.tickSize,g=m||8,h=en(s,c,u,r.coordinate),y=en(s,c,u+(f==="inner"?-1:1)*g,r.coordinate);return{x1:h.x,y1:h.y,x2:y.x,y2:y.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,s=Math.cos(-r.coordinate*O0e),c;return s>h7?c=o==="outer"?"start":"end":s<-h7?c=o==="outer"?"end":"start":c="middle",c}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,s=r.cy,c=r.radius,u=r.axisLine,f=r.axisLineType,m=pc(pc({},Fe(this.props,!1)),{},{fill:"none"},Fe(u,!1));if(f==="circle")return F.createElement(i0,xc({className:"recharts-polar-angle-axis-line"},m,{cx:o,cy:s,r:c}));var g=this.props.ticks,h=g.map(function(y){return en(o,s,c,y.coordinate)});return F.createElement(Gxe,xc({className:"recharts-polar-angle-axis-line"},m,{points:h}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,s=o.ticks,c=o.tick,u=o.tickLine,f=o.tickFormatter,m=o.stroke,g=Fe(this.props,!1),h=Fe(c,!1),y=pc(pc({},g),{},{fill:"none"},Fe(u,!1)),x=s.map(function(S,N){var w=r.getTickLineCoord(S),A=r.getTickTextAnchor(S),D=pc(pc(pc({textAnchor:A},g),{},{stroke:"none",fill:m},h),{},{index:N,payload:S,x:w.x2,y:w.y2});return F.createElement(Dt,xc({className:it("recharts-polar-angle-axis-tick",CF(c)),key:"tick-".concat(S.coordinate)},Hc(r.props,S,N)),u&&F.createElement("line",xc({className:"recharts-polar-angle-axis-tick-line"},y,w)),c&&t.renderTickItem(c,D,f?f(S.value,N):S.value))});return F.createElement(Dt,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,o=r.ticks,s=r.radius,c=r.axisLine;return s<=0||!o||!o.length?null:F.createElement(Dt,{className:it("recharts-polar-angle-axis",this.props.className)},c&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,s){var c;return F.isValidElement(r)?c=F.cloneElement(r,o):Xe(r)?c=r(o):c=F.createElement(Fc,xc({},o,{className:"recharts-polar-angle-axis-tick-value"}),s),c}}])})(R.PureComponent);l0(c0,"displayName","PolarAngleAxis");l0(c0,"axisType","angleAxis");l0(c0,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var vD,p7;function D0e(){if(p7)return vD;p7=1;var e=Jq(),t=e(Object.getPrototypeOf,Object);return vD=t,vD}var bD,g7;function T0e(){if(g7)return bD;g7=1;var e=fs(),t=D0e(),n=ms(),r="[object Object]",o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,f=c.call(Object);function m(g){if(!n(g)||e(g)!=r)return!1;var h=t(g);if(h===null)return!0;var y=u.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&c.call(y)==f}return bD=m,bD}var C0e=T0e();const _0e=Bt(C0e);var yD,v7;function R0e(){if(v7)return yD;v7=1;var e=fs(),t=ms(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return yD=r,yD}var j0e=R0e();const P0e=Bt(j0e);function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function Fy(){return Fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fy.apply(this,arguments)}function M0e(e,t){return V0e(e)||I0e(e,t)||L0e(e,t)||k0e()}function k0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L0e(e,t){if(e){if(typeof e=="string")return b7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b7(e,t)}}function b7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function V0e(e){if(Array.isArray(e))return e}function y7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function x7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y7(Object(n),!0).forEach(function(r){$0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $0e(e,t,n){return t=B0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B0e(e){var t=z0e(e,"string");return xp(t)=="symbol"?t:t+""}function z0e(e,t){if(xp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N7=function(t,n,r,o,s){var c=r-o,u;return u="M ".concat(t,",").concat(n),u+="L ".concat(t+r,",").concat(n),u+="L ".concat(t+r-c/2,",").concat(n+s),u+="L ".concat(t+r-c/2-o,",").concat(n+s),u+="L ".concat(t,",").concat(n," Z"),u},U0e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},q0e=function(t){var n=x7(x7({},U0e),t),r=R.useRef(),o=R.useState(-1),s=M0e(o,2),c=s[0],u=s[1];R.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var _=r.current.getTotalLength();_&&u(_)}catch{}},[]);var f=n.x,m=n.y,g=n.upperWidth,h=n.lowerWidth,y=n.height,x=n.className,S=n.animationEasing,N=n.animationDuration,w=n.animationBegin,A=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||h!==+h||y!==+y||g===0&&h===0||y===0)return null;var D=it("recharts-trapezoid",x);return A?F.createElement(fo,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:m},to:{upperWidth:g,lowerWidth:h,height:y,x:f,y:m},duration:N,animationEasing:S,isActive:A},function(_){var P=_.upperWidth,O=_.lowerWidth,C=_.height,j=_.x,k=_.y;return F.createElement(fo,{canBegin:c>0,from:"0px ".concat(c===-1?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:N,easing:S},F.createElement("path",Fy({},Fe(n,!0),{className:D,d:N7(j,k,P,O,C),ref:r})))}):F.createElement("g",null,F.createElement("path",Fy({},Fe(n,!0),{className:D,d:N7(f,m,g,h,y)})))},H0e=["option","shapeType","propTransformer","activeClassName","isActive"];function Np(e){"@babel/helpers - typeof";return Np=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},Np(e)}function F0e(e,t){if(e==null)return{};var n=K0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function w7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ky(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w7(Object(n),!0).forEach(function(r){G0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G0e(e,t,n){return t=Y0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y0e(e){var t=Q0e(e,"string");return Np(t)=="symbol"?t:t+""}function Q0e(e,t){if(Np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X0e(e,t){return Ky(Ky({},t),e)}function W0e(e,t){return e==="symbols"}function E7(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return F.createElement(zR,n);case"trapezoid":return F.createElement(q0e,n);case"sector":return F.createElement(jF,n);case"symbols":if(W0e(t))return F.createElement(oR,n);break;default:return null}}function Z0e(e){return R.isValidElement(e)?e.props:e}function GF(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?X0e:r,s=e.activeClassName,c=s===void 0?"recharts-active-shape":s,u=e.isActive,f=F0e(e,H0e),m;if(R.isValidElement(t))m=R.cloneElement(t,Ky(Ky({},f),Z0e(t)));else if(Xe(t))m=t(f);else if(_0e(t)&&!P0e(t)){var g=o(t,f);m=F.createElement(E7,{shapeType:n,elementProps:g})}else{var h=f;m=F.createElement(E7,{shapeType:n,elementProps:h})}return u?F.createElement(Dt,{className:c},m):m}function u0(e,t){return t!=null&&"trapezoids"in e.props}function d0(e,t){return t!=null&&"sectors"in e.props}function wp(e,t){return t!=null&&"points"in e.props}function J0e(e,t){var n,r,o=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&s}function e1e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function t1e(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function n1e(e,t){var n;return u0(e,t)?n=J0e:d0(e,t)?n=e1e:wp(e,t)&&(n=t1e),n}function r1e(e,t){var n;return u0(e,t)?n="trapezoids":d0(e,t)?n="sectors":wp(e,t)&&(n="points"),n}function a1e(e,t){if(u0(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}if(d0(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}return wp(e,t)?t.payload:{}}function i1e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=r1e(n,t),s=a1e(n,t),c=r.filter(function(f,m){var g=qd(s,f),h=n.props[o].filter(function(S){var N=n1e(n,t);return N(S,t)}),y=n.props[o].indexOf(h[h.length-1]),x=m===y;return g&&x}),u=r.indexOf(c[c.length-1]);return u}var Yb;function Yd(e){"@babel/helpers - typeof";return Yd=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},Yd(e)}function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function S7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S7(Object(n),!0).forEach(function(r){Va(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function o1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,QF(r.key),r)}}function s1e(e,t,n){return t&&A7(e.prototype,t),n&&A7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l1e(e,t,n){return t=Gy(t),c1e(e,YF()?Reflect.construct(t,n||[],Gy(e).constructor):t.apply(e,n))}function c1e(e,t){if(t&&(Yd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u1e(e)}function u1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YF=function(){return!!e})()}function Gy(e){return Gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gy(e)}function d1e(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&&RC(e,t)}function RC(e,t){return RC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},RC(e,t)}function Va(e,t,n){return t=QF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QF(e){var t=f1e(e,"string");return Yd(t)=="symbol"?t:t+""}function f1e(e,t){if(Yd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ps=(function(e){function t(n){var r;return o1e(this,t),r=l1e(this,t,[n]),Va(r,"pieRef",null),Va(r,"sectorRefs",[]),Va(r,"id",yf("recharts-pie-")),Va(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Xe(o)&&o()}),Va(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Xe(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return d1e(t,e),s1e(t,[{key:"isActiveIndex",value:function(r){var o=this.props.activeIndex;return Array.isArray(o)?o.indexOf(r)!==-1:r===o}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.label,u=s.labelLine,f=s.dataKey,m=s.valueKey,g=Fe(this.props,!1),h=Fe(c,!1),y=Fe(u,!1),x=c&&c.offsetRadius||20,S=r.map(function(N,w){var A=(N.startAngle+N.endAngle)/2,D=en(N.cx,N.cy,N.outerRadius+x,A),_=Zt(Zt(Zt(Zt({},g),N),{},{stroke:"none"},h),{},{index:w,textAnchor:t.getTextAnchor(D.x,N.cx)},D),P=Zt(Zt(Zt(Zt({},g),N),{},{fill:"none",stroke:N.fill},y),{},{index:w,points:[en(N.cx,N.cy,N.outerRadius,A),D]}),O=f;return ot(f)&&ot(m)?O="value":ot(f)&&(O=m),F.createElement(Dt,{key:"label-".concat(N.startAngle,"-").concat(N.endAngle,"-").concat(N.midAngle,"-").concat(w)},u&&t.renderLabelLineItem(u,P,"line"),t.renderLabelItem(c,_,Vn(N,O)))});return F.createElement(Dt,{className:"recharts-pie-labels"},S)}},{key:"renderSectorsStatically",value:function(r){var o=this,s=this.props,c=s.activeShape,u=s.blendStroke,f=s.inactiveShape;return r.map(function(m,g){if(m?.startAngle===0&&m?.endAngle===0&&r.length!==1)return null;var h=o.isActiveIndex(g),y=f&&o.hasActiveIndex()?f:null,x=h?c:y,S=Zt(Zt({},m),{},{stroke:u?m.fill:m.stroke,tabIndex:-1});return F.createElement(Dt,Ed({ref:function(w){w&&!o.sectorRefs.includes(w)&&o.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},Hc(o.props,m,g),{key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(g)}),F.createElement(GF,Ed({option:x,isActive:h,shapeType:"sector"},S)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,s=o.sectors,c=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,m=o.animationEasing,g=o.animationId,h=this.state,y=h.prevSectors,x=h.prevIsAnimationActive;return F.createElement(fo,{begin:u,duration:f,isActive:c,easing:m,from:{t:0},to:{t:1},key:"pie-".concat(g,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(S){var N=S.t,w=[],A=s&&s[0],D=A.startAngle;return s.forEach(function(_,P){var O=y&&y[P],C=P>0?va(_,"paddingAngle",0):0;if(O){var j=Hr(O.endAngle-O.startAngle,_.endAngle-_.startAngle),k=Zt(Zt({},_),{},{startAngle:D+C,endAngle:D+j(N)+C});w.push(k),D=k.endAngle}else{var $=_.endAngle,B=_.startAngle,U=Hr(0,$-B),H=U(N),G=Zt(Zt({},_),{},{startAngle:D+C,endAngle:D+H+C});w.push(G),D=G.endAngle}}),F.createElement(Dt,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var c=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[c].focus(),o.setState({sectorToFocus:c});break}case"ArrowRight":{var u=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[u].focus(),o.setState({sectorToFocus:u});break}case"Escape":{o.sectorRefs[o.state.sectorToFocus].blur(),o.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,o=r.sectors,s=r.isAnimationActive,c=this.state.prevSectors;return s&&o&&o.length&&(!c||!qd(c,o))?this.renderSectorsWithAnimation():this.renderSectorsStatically(o)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,o=this.props,s=o.hide,c=o.sectors,u=o.className,f=o.label,m=o.cx,g=o.cy,h=o.innerRadius,y=o.outerRadius,x=o.isAnimationActive,S=this.state.isAnimationFinished;if(s||!c||!c.length||!Oe(m)||!Oe(g)||!Oe(h)||!Oe(y))return null;var N=it("recharts-pie",u);return F.createElement(Dt,{tabIndex:this.props.rootTabIndex,className:N,ref:function(A){r.pieRef=A}},this.renderSectors(),f&&this.renderLabels(c),Xn.renderCallByParent(this.props,null,!1),(!x||S)&&as.renderCallByParent(this.props,c,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return o.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:o.curSectors,isAnimationFinished:!0}:r.sectors!==o.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,o){return r>o?"start":r<o?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,o,s){if(F.isValidElement(r))return F.cloneElement(r,o);if(Xe(r))return r(o);var c=it("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return F.createElement(Rd,Ed({},o,{key:s,type:"linear",className:c}))}},{key:"renderLabelItem",value:function(r,o,s){if(F.isValidElement(r))return F.cloneElement(r,o);var c=s;if(Xe(r)&&(c=r(o),F.isValidElement(c)))return c;var u=it("recharts-pie-label-text",typeof r!="boolean"&&!Xe(r)?r.className:"");return F.createElement(Fc,Ed({},o,{alignmentBaseline:"middle",className:u}),c)}}])})(R.PureComponent);Yb=ps;Va(ps,"displayName","Pie");Va(ps,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!au.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Va(ps,"parseDeltaAngle",function(e,t){var n=_r(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Va(ps,"getRealPieData",function(e){var t=e.data,n=e.children,r=Fe(e,!1),o=Ua(n,Gx);return t&&t.length?t.map(function(s,c){return Zt(Zt(Zt({payload:s},r),s),o&&o[c]&&o[c].props)}):o&&o.length?o.map(function(s){return Zt(Zt({},r),s.props)}):[]});Va(ps,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,s=t.height,c=TF(o,s),u=r+Rr(e.cx,o,o/2),f=n+Rr(e.cy,s,s/2),m=Rr(e.innerRadius,c,0),g=Rr(e.outerRadius,c,c*.8),h=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:u,cy:f,innerRadius:m,outerRadius:g,maxRadius:h}});Va(ps,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Zt(Zt({},t.type.defaultProps),t.props):t.props,o=Yb.getRealPieData(r);if(!o||!o.length)return null;var s=r.cornerRadius,c=r.startAngle,u=r.endAngle,f=r.paddingAngle,m=r.dataKey,g=r.nameKey,h=r.valueKey,y=r.tooltipType,x=Math.abs(r.minAngle),S=Yb.parseCoordinateOfPie(r,n),N=Yb.parseDeltaAngle(c,u),w=Math.abs(N),A=m;ot(m)&&ot(h)?(ui(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A="value"):ot(m)&&(ui(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A=h);var D=o.filter(function(k){return Vn(k,A,0)!==0}).length,_=(w>=360?D:D-1)*f,P=w-D*x-_,O=o.reduce(function(k,$){var B=Vn($,A,0);return k+(Oe(B)?B:0)},0),C;if(O>0){var j;C=o.map(function(k,$){var B=Vn(k,A,0),U=Vn(k,g,$),H=(Oe(B)?B:0)/O,G;$?G=j.endAngle+_r(N)*f*(B!==0?1:0):G=c;var Y=G+_r(N)*((B!==0?x:0)+H*P),J=(G+Y)/2,q=(S.innerRadius+S.outerRadius)/2,z=[{name:U,value:B,payload:k,dataKey:A,type:y}],K=en(S.cx,S.cy,q,J);return j=Zt(Zt(Zt({percent:H,cornerRadius:s,name:U,tooltipPayload:z,midAngle:J,middleRadius:q,tooltipPosition:K},k),S),{},{value:Vn(k,A),startAngle:G,endAngle:Y,payload:k,paddingAngle:_r(N)*f}),j})}return Zt(Zt({},S),{},{sectors:C,data:o})});var xD,O7;function m1e(){if(O7)return xD;O7=1;var e=Math.ceil,t=Math.max;function n(r,o,s,c){for(var u=-1,f=t(e((o-r)/(s||1)),0),m=Array(f);f--;)m[c?f:++u]=r,r+=s;return m}return xD=n,xD}var ND,D7;function XF(){if(D7)return ND;D7=1;var e=pH(),t=1/0,n=17976931348623157e292;function r(o){if(!o)return o===0?o:0;if(o=e(o),o===t||o===-t){var s=o<0?-1:1;return s*n}return o===o?o:0}return ND=r,ND}var wD,T7;function h1e(){if(T7)return wD;T7=1;var e=m1e(),t=Kx(),n=XF();function r(o){return function(s,c,u){return u&&typeof u!="number"&&t(s,c,u)&&(c=u=void 0),s=n(s),c===void 0?(c=s,s=0):c=n(c),u=u===void 0?s<c?1:-1:n(u),e(s,c,u,o)}}return wD=r,wD}var ED,C7;function p1e(){if(C7)return ED;C7=1;var e=h1e(),t=e();return ED=t,ED}var g1e=p1e();const Yy=Bt(g1e);function Ep(e){"@babel/helpers - typeof";return Ep=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},Ep(e)}function _7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function R7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_7(Object(n),!0).forEach(function(r){WF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WF(e,t,n){return t=v1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v1e(e){var t=b1e(e,"string");return Ep(t)=="symbol"?t:t+""}function b1e(e,t){if(Ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var y1e=["Webkit","Moz","O","ms"],x1e=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),o=y1e.reduce(function(s,c){return R7(R7({},s),{},WF({},c+r,n))},{});return o[t]=n,o};function Qd(e){"@babel/helpers - typeof";return Qd=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},Qd(e)}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qy.apply(this,arguments)}function j7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function SD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j7(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JF(r.key),r)}}function w1e(e,t,n){return t&&P7(e.prototype,t),n&&P7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E1e(e,t,n){return t=Xy(t),S1e(e,ZF()?Reflect.construct(t,n||[],Xy(e).constructor):t.apply(e,n))}function S1e(e,t){if(t&&(Qd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A1e(e)}function A1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZF=function(){return!!e})()}function Xy(e){return Xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xy(e)}function O1e(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&&jC(e,t)}function jC(e,t){return jC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jC(e,t)}function ua(e,t,n){return t=JF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JF(e){var t=D1e(e,"string");return Qd(t)=="symbol"?t:t+""}function D1e(e,t){if(Qd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T1e=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,s=t.x,c=t.width,u=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,m=Ch().domain(Yy(0,f)).range([s,s+c-u]),g=m.domain().map(function(h){return m(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:m(r),endX:m(o),scale:m,scaleValues:g}},M7=function(t){return t.changedTouches&&!!t.changedTouches.length},Xd=(function(e){function t(n){var r;return N1e(this,t),r=E1e(this,t,[n]),ua(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),ua(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),ua(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,s=o.endIndex,c=o.onDragEnd,u=o.startIndex;c?.({endIndex:s,startIndex:u})}),r.detachDragEndListener()}),ua(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),ua(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),ua(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),ua(r,"handleSlideDragStart",function(o){var s=M7(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return O1e(t,e),w1e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,s=r.endX,c=this.state.scaleValues,u=this.props,f=u.gap,m=u.data,g=m.length-1,h=Math.min(o,s),y=Math.max(o,s),x=t.getIndexInRange(c,h),S=t.getIndexInRange(c,y);return{startIndex:x-x%f,endIndex:S===g?g:S-S%f}}},{key:"getTextOfTick",value:function(r){var o=this.props,s=o.data,c=o.tickFormatter,u=o.dataKey,f=Vn(s[r],u,r);return Xe(c)?c(f,r):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(r){var o=this.state,s=o.slideMoveStartX,c=o.startX,u=o.endX,f=this.props,m=f.x,g=f.width,h=f.travellerWidth,y=f.startIndex,x=f.endIndex,S=f.onChange,N=r.pageX-s;N>0?N=Math.min(N,m+g-h-u,m+g-h-c):N<0&&(N=Math.max(N,m-c,m-u));var w=this.getIndex({startX:c+N,endX:u+N});(w.startIndex!==y||w.endIndex!==x)&&S&&S(w),this.setState({startX:c+N,endX:u+N,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var s=M7(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,s=o.brushMoveStartX,c=o.movingTravellerId,u=o.endX,f=o.startX,m=this.state[c],g=this.props,h=g.x,y=g.width,x=g.travellerWidth,S=g.onChange,N=g.gap,w=g.data,A={startX:this.state.startX,endX:this.state.endX},D=r.pageX-s;D>0?D=Math.min(D,h+y-x-m):D<0&&(D=Math.max(D,h-m)),A[c]=m+D;var _=this.getIndex(A),P=_.startIndex,O=_.endIndex,C=function(){var k=w.length-1;return c==="startX"&&(u>f?P%N===0:O%N===0)||u<f&&O===k||c==="endX"&&(u>f?O%N===0:P%N===0)||u>f&&O===k};this.setState(ua(ua({},c,m+D),"brushMoveStartX",r.pageX),function(){S&&C()&&S(_)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var s=this,c=this.state,u=c.scaleValues,f=c.startX,m=c.endX,g=this.state[o],h=u.indexOf(g);if(h!==-1){var y=h+r;if(!(y===-1||y>=u.length)){var x=u[y];o==="startX"&&x>=m||o==="endX"&&x<=f||this.setState(ua({},o,x),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,s=r.y,c=r.width,u=r.height,f=r.fill,m=r.stroke;return F.createElement("rect",{stroke:m,fill:f,x:o,y:s,width:c,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,s=r.y,c=r.width,u=r.height,f=r.data,m=r.children,g=r.padding,h=R.Children.only(m);return h?F.cloneElement(h,{x:o,y:s,width:c,height:u,margin:g,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,o){var s,c,u=this,f=this.props,m=f.y,g=f.travellerWidth,h=f.height,y=f.traveller,x=f.ariaLabel,S=f.data,N=f.startIndex,w=f.endIndex,A=Math.max(r,this.props.x),D=SD(SD({},Fe(this.props,!1)),{},{x:A,y:m,width:g,height:h}),_=x||"Min value: ".concat((s=S[N])===null||s===void 0?void 0:s.name,", Max value: ").concat((c=S[w])===null||c===void 0?void 0:c.name);return F.createElement(Dt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),u.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,o))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,D))}},{key:"renderSlide",value:function(r,o){var s=this.props,c=s.y,u=s.height,f=s.stroke,m=s.travellerWidth,g=Math.min(r,o)+m,h=Math.max(Math.abs(o-r)-m,0);return F.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:g,y:c,width:h,height:u})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,s=r.endIndex,c=r.y,u=r.height,f=r.travellerWidth,m=r.stroke,g=this.state,h=g.startX,y=g.endX,x=5,S={pointerEvents:"none",fill:m};return F.createElement(Dt,{className:"recharts-brush-texts"},F.createElement(Fc,Qy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,y)-x,y:c+u/2},S),this.getTextOfTick(o)),F.createElement(Fc,Qy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,y)+f+x,y:c+u/2},S),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,o=r.data,s=r.className,c=r.children,u=r.x,f=r.y,m=r.width,g=r.height,h=r.alwaysShowText,y=this.state,x=y.startX,S=y.endX,N=y.isTextActive,w=y.isSlideMoving,A=y.isTravellerMoving,D=y.isTravellerFocused;if(!o||!o.length||!Oe(u)||!Oe(f)||!Oe(m)||!Oe(g)||m<=0||g<=0)return null;var _=it("recharts-brush",s),P=F.Children.count(c)===1,O=x1e("userSelect","none");return F.createElement(Dt,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(x,S),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(S,"endX"),(N||w||A||D||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,s=r.y,c=r.width,u=r.height,f=r.stroke,m=Math.floor(s+u/2)-1;return F.createElement(F.Fragment,null,F.createElement("rect",{x:o,y:s,width:c,height:u,fill:f,stroke:"none"}),F.createElement("line",{x1:o+1,y1:m,x2:o+c-1,y2:m,fill:"none",stroke:"#fff"}),F.createElement("line",{x1:o+1,y1:m+2,x2:o+c-1,y2:m+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var s;return F.isValidElement(r)?s=F.cloneElement(r,o):Xe(r)?s=r(o):s=t.renderDefaultTraveller(o),s}},{key:"getDerivedStateFromProps",value:function(r,o){var s=r.data,c=r.width,u=r.x,f=r.travellerWidth,m=r.updateId,g=r.startIndex,h=r.endIndex;if(s!==o.prevData||m!==o.prevUpdateId)return SD({prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:u,prevWidth:c},s&&s.length?T1e({data:s,width:c,x:u,travellerWidth:f,startIndex:g,endIndex:h}):{scale:null,scaleValues:null});if(o.scale&&(c!==o.prevWidth||u!==o.prevX||f!==o.prevTravellerWidth)){o.scale.range([u,u+c-f]);var y=o.scale.domain().map(function(x){return o.scale(x)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:u,prevWidth:c,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,o){for(var s=r.length,c=0,u=s-1;u-c>1;){var f=Math.floor((c+u)/2);r[f]>o?u=f:c=f}return o>=r[u]?u:c}}])})(R.PureComponent);ua(Xd,"displayName","Brush");ua(Xd,"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 AD,k7;function C1e(){if(k7)return AD;k7=1;var e=mR();function t(n,r){var o;return e(n,function(s,c,u){return o=r(s,c,u),!o}),!!o}return AD=t,AD}var OD,L7;function _1e(){if(L7)return OD;L7=1;var e=Kq(),t=vo(),n=C1e(),r=Gr(),o=Kx();function s(c,u,f){var m=r(c)?e:n;return f&&o(c,u,f)&&(u=void 0),m(c,t(u,3))}return OD=s,OD}var R1e=_1e();const j1e=Bt(R1e);var oo=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},DD,I7;function P1e(){if(I7)return DD;I7=1;var e=uH();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return DD=t,DD}var TD,V7;function M1e(){if(V7)return TD;V7=1;var e=P1e(),t=lH(),n=vo();function r(o,s){var c={};return s=n(s,3),t(o,function(u,f,m){e(c,f,s(u,f,m))}),c}return TD=r,TD}var k1e=M1e();const L1e=Bt(k1e);var CD,$7;function I1e(){if($7)return CD;$7=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(!n(t[r],r,t))return!1;return!0}return CD=e,CD}var _D,B7;function V1e(){if(B7)return _D;B7=1;var e=mR();function t(n,r){var o=!0;return e(n,function(s,c,u){return o=!!r(s,c,u),o}),o}return _D=t,_D}var RD,z7;function $1e(){if(z7)return RD;z7=1;var e=I1e(),t=V1e(),n=vo(),r=Gr(),o=Kx();function s(c,u,f){var m=r(c)?e:t;return f&&o(c,u,f)&&(u=void 0),m(c,n(u,3))}return RD=s,RD}var B1e=$1e();const eK=Bt(B1e);var z1e=["x","y"];function Wd(e){"@babel/helpers - typeof";return Wd=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},Wd(e)}function PC(){return PC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PC.apply(this,arguments)}function U7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U7(Object(n),!0).forEach(function(r){U1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U1e(e,t,n){return t=q1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q1e(e){var t=H1e(e,"string");return Wd(t)=="symbol"?t:t+""}function H1e(e,t){if(Wd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F1e(e,t){if(e==null)return{};var n=K1e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G1e(e,t){var n=e.x,r=e.y,o=F1e(e,z1e),s="".concat(n),c=parseInt(s,10),u="".concat(r),f=parseInt(u,10),m="".concat(t.height||o.height),g=parseInt(m,10),h="".concat(t.width||o.width),y=parseInt(h,10);return ph(ph(ph(ph(ph({},t),o),c?{x:c}:{}),f?{y:f}:{}),{},{height:g,width:y,name:t.name,radius:t.radius})}function q7(e){return F.createElement(GF,PC({shapeType:"rectangle",propTransformer:G1e,activeClassName:"recharts-active-bar"},e))}var Y1e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,o){if(typeof t=="number")return t;var s=Oe(r)||gce(r);return s?t(r,o):(s||Gc(!1,"minPointSize callback function received a value with type of ".concat(Wd(r),". Currently only numbers or null/undefined are supported.")),n)}},Q1e=["value","background"],tK;function Zd(e){"@babel/helpers - typeof";return Zd=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},Zd(e)}function X1e(e,t){if(e==null)return{};var n=W1e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wy.apply(this,arguments)}function H7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H7(Object(n),!0).forEach(function(r){dl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rK(r.key),r)}}function J1e(e,t,n){return t&&F7(e.prototype,t),n&&F7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eNe(e,t,n){return t=Zy(t),tNe(e,nK()?Reflect.construct(t,n||[],Zy(e).constructor):t.apply(e,n))}function tNe(e,t){if(t&&(Zd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nNe(e)}function nNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nK=function(){return!!e})()}function Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zy(e)}function rNe(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&&MC(e,t)}function MC(e,t){return MC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},MC(e,t)}function dl(e,t,n){return t=rK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rK(e){var t=aNe(e,"string");return Zd(t)=="symbol"?t:t+""}function aNe(e,t){if(Zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qp=(function(e){function t(){var n;Z1e(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=eNe(this,t,[].concat(o)),dl(n,"state",{isAnimationFinished:!1}),dl(n,"id",yf("recharts-bar-")),dl(n,"handleAnimationEnd",function(){var c=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),c&&c()}),dl(n,"handleAnimationStart",function(){var c=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),c&&c()}),n}return rNe(t,e),J1e(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,s=this.props,c=s.shape,u=s.dataKey,f=s.activeIndex,m=s.activeBar,g=Fe(this.props,!1);return r&&r.map(function(h,y){var x=y===f,S=x?m:c,N=Cn(Cn(Cn({},g),h),{},{isActive:x,option:S,index:y,dataKey:u,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return F.createElement(Dt,Wy({className:"recharts-bar-rectangle"},Hc(o.props,h,y),{key:"rectangle-".concat(h?.x,"-").concat(h?.y,"-").concat(h?.value,"-").concat(y)}),F.createElement(q7,N))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,s=o.data,c=o.layout,u=o.isAnimationActive,f=o.animationBegin,m=o.animationDuration,g=o.animationEasing,h=o.animationId,y=this.state.prevData;return F.createElement(fo,{begin:f,duration:m,isActive:u,easing:g,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var S=x.t,N=s.map(function(w,A){var D=y&&y[A];if(D){var _=Hr(D.x,w.x),P=Hr(D.y,w.y),O=Hr(D.width,w.width),C=Hr(D.height,w.height);return Cn(Cn({},w),{},{x:_(S),y:P(S),width:O(S),height:C(S)})}if(c==="horizontal"){var j=Hr(0,w.height),k=j(S);return Cn(Cn({},w),{},{y:w.y+w.height-k,height:k})}var $=Hr(0,w.width),B=$(S);return Cn(Cn({},w),{},{width:B})});return F.createElement(Dt,null,r.renderRectanglesStatically(N))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,s=r.isAnimationActive,c=this.state.prevData;return s&&o&&o.length&&(!c||!qd(c,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,s=o.data,c=o.dataKey,u=o.activeIndex,f=Fe(this.props.background,!1);return s.map(function(m,g){m.value;var h=m.background,y=X1e(m,Q1e);if(!h)return null;var x=Cn(Cn(Cn(Cn(Cn({},y),{},{fill:"#eee"},h),f),Hc(r.props,m,g)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:c,index:g,className:"recharts-bar-background-rectangle"});return F.createElement(q7,Wy({key:"background-bar-".concat(g),option:r.props.background,isActive:g===u},x))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.data,u=s.xAxis,f=s.yAxis,m=s.layout,g=s.children,h=Ua(g,a0);if(!h)return null;var y=m==="vertical"?c[0].height/2:c[0].width/2,x=function(w,A){var D=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:D,errorVal:Vn(w,A)}},S={clipPath:r?"url(#clipPath-".concat(o,")"):null};return F.createElement(Dt,S,h.map(function(N){return F.cloneElement(N,{key:"error-bar-".concat(o,"-").concat(N.props.dataKey),data:c,xAxis:u,yAxis:f,layout:m,offset:y,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,s=r.data,c=r.className,u=r.xAxis,f=r.yAxis,m=r.left,g=r.top,h=r.width,y=r.height,x=r.isAnimationActive,S=r.background,N=r.id;if(o||!s||!s.length)return null;var w=this.state.isAnimationFinished,A=it("recharts-bar",c),D=u&&u.allowDataOverflow,_=f&&f.allowDataOverflow,P=D||_,O=ot(N)?this.id:N;return F.createElement(Dt,{className:A},D||_?F.createElement("defs",null,F.createElement("clipPath",{id:"clipPath-".concat(O)},F.createElement("rect",{x:D?m:m-h/2,y:_?g:g-y/2,width:D?h:h*2,height:_?y:y*2}))):null,F.createElement(Dt,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(O,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,O),(!x||w)&&as.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:o.curData}:r.data!==o.curData?{curData:r.data}:null}}])})(R.PureComponent);tK=Qp;dl(Qp,"displayName","Bar");dl(Qp,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!au.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});dl(Qp,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,s=e.xAxis,c=e.yAxis,u=e.xAxisTicks,f=e.yAxisTicks,m=e.stackedData,g=e.dataStartIndex,h=e.displayedData,y=e.offset,x=_ve(r,n);if(!x)return null;var S=t.layout,N=n.type.defaultProps,w=N!==void 0?Cn(Cn({},N),n.props):n.props,A=w.dataKey,D=w.children,_=w.minPointSize,P=S==="horizontal"?c:s,O=m?P.scale.domain():null,C=Ive({numericAxis:P}),j=Ua(D,Gx),k=h.map(function($,B){var U,H,G,Y,J,q;m?U=Rve(m[g+B],O):(U=Vn($,A),Array.isArray(U)||(U=[C,U]));var z=Y1e(_,tK.defaultProps.minPointSize)(U[1],B);if(S==="horizontal"){var K,te=[c.scale(U[0]),c.scale(U[1])],ne=te[0],L=te[1];H=dB({axis:s,ticks:u,bandSize:o,offset:x.offset,entry:$,index:B}),G=(K=L??ne)!==null&&K!==void 0?K:void 0,Y=x.size;var Q=ne-L;if(J=Number.isNaN(Q)?0:Q,q={x:H,y:c.y,width:Y,height:c.height},Math.abs(z)>0&&Math.abs(J)<Math.abs(z)){var W=_r(J||z)*(Math.abs(z)-Math.abs(J));G-=W,J+=W}}else{var ae=[s.scale(U[0]),s.scale(U[1])],ge=ae[0],we=ae[1];if(H=ge,G=dB({axis:c,ticks:f,bandSize:o,offset:x.offset,entry:$,index:B}),Y=we-ge,J=x.size,q={x:s.x,y:G,width:s.width,height:J},Math.abs(z)>0&&Math.abs(Y)<Math.abs(z)){var ue=_r(Y||z)*(Math.abs(z)-Math.abs(Y));Y+=ue}}return Cn(Cn(Cn({},$),{},{x:H,y:G,width:Y,height:J,value:m?U:U[1],payload:$,background:q},j&&j[B]&&j[B].props),{},{tooltipPayload:[OF(n,$)],tooltipPosition:{x:H+Y/2,y:G+J/2}})});return Cn({data:k,layout:S},y)});function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function iNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aK(r.key),r)}}function oNe(e,t,n){return t&&K7(e.prototype,t),n&&K7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G7(Object(n),!0).forEach(function(r){f0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f0(e,t,n){return t=aK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aK(e){var t=sNe(e,"string");return Sp(t)=="symbol"?t:t+""}function sNe(e,t){if(Sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lNe=function(t,n,r,o,s){var c=t.width,u=t.height,f=t.layout,m=t.children,g=Object.keys(n),h={left:r.left,leftMirror:r.left,right:c-r.right,rightMirror:c-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},y=!!da(m,Qp);return g.reduce(function(x,S){var N=n[S],w=N.orientation,A=N.domain,D=N.padding,_=D===void 0?{}:D,P=N.mirror,O=N.reversed,C="".concat(w).concat(P?"Mirror":""),j,k,$,B,U;if(N.type==="number"&&(N.padding==="gap"||N.padding==="no-gap")){var H=A[1]-A[0],G=1/0,Y=N.categoricalDomain.sort(yce);if(Y.forEach(function(ae,ge){ge>0&&(G=Math.min((ae||0)-(Y[ge-1]||0),G))}),Number.isFinite(G)){var J=G/H,q=N.layout==="vertical"?r.height:r.width;if(N.padding==="gap"&&(j=J*q/2),N.padding==="no-gap"){var z=Rr(t.barCategoryGap,J*q),K=J*q/2;j=K-z-(K-z)/q*z}}}o==="xAxis"?k=[r.left+(_.left||0)+(j||0),r.left+r.width-(_.right||0)-(j||0)]:o==="yAxis"?k=f==="horizontal"?[r.top+r.height-(_.bottom||0),r.top+(_.top||0)]:[r.top+(_.top||0)+(j||0),r.top+r.height-(_.bottom||0)-(j||0)]:k=N.range,O&&(k=[k[1],k[0]]);var te=wF(N,s,y),ne=te.scale,L=te.realScaleType;ne.domain(A).range(k),EF(ne);var Q=SF(ne,li(li({},N),{},{realScaleType:L}));o==="xAxis"?(U=w==="top"&&!P||w==="bottom"&&P,$=r.left,B=h[C]-U*N.height):o==="yAxis"&&(U=w==="left"&&!P||w==="right"&&P,$=h[C]-U*N.width,B=r.top);var W=li(li(li({},N),Q),{},{realScaleType:L,x:$,y:B,scale:ne,width:o==="xAxis"?r.width:N.width,height:o==="yAxis"?r.height:N.height});return W.bandSize=ky(W,Q),!N.hide&&o==="xAxis"?h[C]+=(U?-1:1)*W.height:N.hide||(h[C]+=(U?-1:1)*W.width),li(li({},x),{},f0({},S,W))},{})},iK=function(t,n){var r=t.x,o=t.y,s=n.x,c=n.y;return{x:Math.min(r,s),y:Math.min(o,c),width:Math.abs(s-r),height:Math.abs(c-o)}},cNe=function(t){var n=t.x1,r=t.y1,o=t.x2,s=t.y2;return iK({x:n,y:r},{x:o,y:s})},oK=(function(){function e(t){iNe(this,e),this.scale=t}return oNe(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.bandAware,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}default:return this.scale(n)}if(o){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],s=r[r.length-1];return o<=s?n>=o&&n<=s:n>=s&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])})();f0(oK,"EPS",1e-4);var UR=function(t){var n=Object.keys(t).reduce(function(r,o){return li(li({},r),{},f0({},o,oK.create(t[o])))},{});return li(li({},n),{},{apply:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.bandAware,u=s.position;return L1e(o,function(f,m){return n[m].apply(f,{bandAware:c,position:u})})},isInRange:function(o){return eK(o,function(s,c){return n[c].isInRange(s)})}})};function uNe(e){return(e%180+180)%180}var dNe=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=uNe(o),c=s*Math.PI/180,u=Math.atan(r/n),f=c>u&&c<Math.PI-u?r/Math.sin(c):n/Math.cos(c);return Math.abs(f)},jD,Y7;function fNe(){if(Y7)return jD;Y7=1;var e=vo(),t=Hp(),n=Hx();function r(o){return function(s,c,u){var f=Object(s);if(!t(s)){var m=e(c,3);s=n(s),c=function(h){return m(f[h],h,f)}}var g=o(s,c,u);return g>-1?f[m?s[g]:g]:void 0}}return jD=r,jD}var PD,Q7;function mNe(){if(Q7)return PD;Q7=1;var e=XF();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return PD=t,PD}var MD,X7;function hNe(){if(X7)return MD;X7=1;var e=rH(),t=vo(),n=mNe(),r=Math.max;function o(s,c,u){var f=s==null?0:s.length;if(!f)return-1;var m=u==null?0:n(u);return m<0&&(m=r(f+m,0)),e(s,t(c,3),m)}return MD=o,MD}var kD,W7;function pNe(){if(W7)return kD;W7=1;var e=fNe(),t=hNe(),n=e(t);return kD=n,kD}var gNe=pNe();const vNe=Bt(gNe);var bNe=yq();const yNe=Bt(bNe);var xNe=yNe(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("")});function Jy(e){"@babel/helpers - typeof";return Jy=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},Jy(e)}var qR=R.createContext(void 0),HR=R.createContext(void 0),sK=R.createContext(void 0),lK=R.createContext({}),cK=R.createContext(void 0),uK=R.createContext(0),dK=R.createContext(0),Z7=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,s=n.offset,c=t.clipPathId,u=t.children,f=t.width,m=t.height,g=xNe(s);return F.createElement(qR.Provider,{value:r},F.createElement(HR.Provider,{value:o},F.createElement(lK.Provider,{value:s},F.createElement(sK.Provider,{value:g},F.createElement(cK.Provider,{value:c},F.createElement(uK.Provider,{value:m},F.createElement(dK.Provider,{value:f},u)))))))},NNe=function(){return R.useContext(cK)};function fK(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var mK=function(t){var n=R.useContext(qR);n==null&&Gc(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&Gc(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Jy(t),"]. ").concat(fK(n))),r},wNe=function(){var t=R.useContext(qR);return ll(t)},ENe=function(){var t=R.useContext(HR),n=vNe(t,function(r){return eK(r.domain,Number.isFinite)});return n||ll(t)},hK=function(t){var n=R.useContext(HR);n==null&&Gc(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&Gc(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Jy(t),"]. ").concat(fK(n))),r},SNe=function(){var t=R.useContext(sK);return t},ANe=function(){return R.useContext(lK)},FR=function(){return R.useContext(dK)},KR=function(){return R.useContext(uK)};function Jd(e){"@babel/helpers - typeof";return Jd=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},Jd(e)}function ONe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gK(r.key),r)}}function TNe(e,t,n){return t&&DNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CNe(e,t,n){return t=ex(t),_Ne(e,pK()?Reflect.construct(t,n||[],ex(e).constructor):t.apply(e,n))}function _Ne(e,t){if(t&&(Jd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RNe(e)}function RNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pK=function(){return!!e})()}function ex(e){return ex=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ex(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&&kC(e,t)}function kC(e,t){return kC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},kC(e,t)}function J7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function e8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J7(Object(n),!0).forEach(function(r){GR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GR(e,t,n){return t=gK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gK(e){var t=PNe(e,"string");return Jd(t)=="symbol"?t:t+""}function PNe(e,t){if(Jd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function MNe(e,t){return VNe(e)||INe(e,t)||LNe(e,t)||kNe()}function kNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LNe(e,t){if(e){if(typeof e=="string")return t8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t8(e,t)}}function t8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function INe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function VNe(e){if(Array.isArray(e))return e}function LC(){return LC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LC.apply(this,arguments)}var $Ne=function(t,n){var r;return F.isValidElement(t)?r=F.cloneElement(t,n):Xe(t)?r=t(n):r=F.createElement("line",LC({},n,{className:"recharts-reference-line-line"})),r},BNe=function(t,n,r,o,s,c,u,f,m){var g=s.x,h=s.y,y=s.width,x=s.height;if(r){var S=m.y,N=t.y.apply(S,{position:c});if(oo(m,"discard")&&!t.y.isInRange(N))return null;var w=[{x:g+y,y:N},{x:g,y:N}];return f==="left"?w.reverse():w}if(n){var A=m.x,D=t.x.apply(A,{position:c});if(oo(m,"discard")&&!t.x.isInRange(D))return null;var _=[{x:D,y:h+x},{x:D,y:h}];return u==="top"?_.reverse():_}if(o){var P=m.segment,O=P.map(function(C){return t.apply(C,{position:c})});return oo(m,"discard")&&j1e(O,function(C){return!t.isInRange(C)})?null:O}return null};function zNe(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,s=e.yAxisId,c=e.shape,u=e.className,f=e.alwaysShow,m=NNe(),g=mK(o),h=hK(s),y=SNe();if(!m||!y)return null;ui(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=UR({x:g.scale,y:h.scale}),S=$n(t),N=$n(n),w=r&&r.length===2,A=BNe(x,S,N,w,y,e.position,g.orientation,h.orientation,e);if(!A)return null;var D=MNe(A,2),_=D[0],P=_.x,O=_.y,C=D[1],j=C.x,k=C.y,$=oo(e,"hidden")?"url(#".concat(m,")"):void 0,B=e8(e8({clipPath:$},Fe(e,!0)),{},{x1:P,y1:O,x2:j,y2:k});return F.createElement(Dt,{className:it("recharts-reference-line",u)},$Ne(c,B),Xn.renderCallByParent(e,cNe({x1:P,y1:O,x2:j,y2:k})))}var YR=(function(e){function t(){return ONe(this,t),CNe(this,t,arguments)}return jNe(t,e),TNe(t,[{key:"render",value:function(){return F.createElement(zNe,this.props)}}])})(F.Component);GR(YR,"displayName","ReferenceLine");GR(YR,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IC.apply(this,arguments)}function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function r8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n8(Object(n),!0).forEach(function(r){m0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bK(r.key),r)}}function HNe(e,t,n){return t&&qNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FNe(e,t,n){return t=tx(t),KNe(e,vK()?Reflect.construct(t,n||[],tx(e).constructor):t.apply(e,n))}function KNe(e,t){if(t&&(ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GNe(e)}function GNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vK=function(){return!!e})()}function tx(e){return tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tx(e)}function YNe(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&&VC(e,t)}function VC(e,t){return VC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},VC(e,t)}function m0(e,t,n){return t=bK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bK(e){var t=QNe(e,"string");return ef(t)=="symbol"?t:t+""}function QNe(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var XNe=function(t){var n=t.x,r=t.y,o=t.xAxis,s=t.yAxis,c=UR({x:o.scale,y:s.scale}),u=c.apply({x:n,y:r},{bandAware:!0});return oo(t,"discard")&&!c.isInRange(u)?null:u},h0=(function(e){function t(){return UNe(this,t),FNe(this,t,arguments)}return YNe(t,e),HNe(t,[{key:"render",value:function(){var r=this.props,o=r.x,s=r.y,c=r.r,u=r.alwaysShow,f=r.clipPathId,m=$n(o),g=$n(s);if(ui(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!m||!g)return null;var h=XNe(this.props);if(!h)return null;var y=h.x,x=h.y,S=this.props,N=S.shape,w=S.className,A=oo(this.props,"hidden")?"url(#".concat(f,")"):void 0,D=r8(r8({clipPath:A},Fe(this.props,!0)),{},{cx:y,cy:x});return F.createElement(Dt,{className:it("recharts-reference-dot",w)},t.renderDot(N,D),Xn.renderCallByParent(this.props,{x:y-c,y:x-c,width:2*c,height:2*c}))}}])})(F.Component);m0(h0,"displayName","ReferenceDot");m0(h0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});m0(h0,"renderDot",function(e,t){var n;return F.isValidElement(e)?n=F.cloneElement(e,t):Xe(e)?n=e(t):n=F.createElement(i0,IC({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function $C(){return $C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$C.apply(this,arguments)}function tf(e){"@babel/helpers - typeof";return tf=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},tf(e)}function a8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function i8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(n),!0).forEach(function(r){p0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xK(r.key),r)}}function JNe(e,t,n){return t&&ZNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ewe(e,t,n){return t=nx(t),twe(e,yK()?Reflect.construct(t,n||[],nx(e).constructor):t.apply(e,n))}function twe(e,t){if(t&&(tf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nwe(e)}function nwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yK=function(){return!!e})()}function nx(e){return nx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nx(e)}function rwe(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&&BC(e,t)}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},BC(e,t)}function p0(e,t,n){return t=xK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xK(e){var t=awe(e,"string");return tf(t)=="symbol"?t:t+""}function awe(e,t){if(tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var iwe=function(t,n,r,o,s){var c=s.x1,u=s.x2,f=s.y1,m=s.y2,g=s.xAxis,h=s.yAxis;if(!g||!h)return null;var y=UR({x:g.scale,y:h.scale}),x={x:t?y.x.apply(c,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},S={x:n?y.x.apply(u,{position:"end"}):y.x.rangeMax,y:o?y.y.apply(m,{position:"end"}):y.y.rangeMax};return oo(s,"discard")&&(!y.isInRange(x)||!y.isInRange(S))?null:iK(x,S)},g0=(function(e){function t(){return WNe(this,t),ewe(this,t,arguments)}return rwe(t,e),JNe(t,[{key:"render",value:function(){var r=this.props,o=r.x1,s=r.x2,c=r.y1,u=r.y2,f=r.className,m=r.alwaysShow,g=r.clipPathId;ui(m===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=$n(o),y=$n(s),x=$n(c),S=$n(u),N=this.props.shape;if(!h&&!y&&!x&&!S&&!N)return null;var w=iwe(h,y,x,S,this.props);if(!w&&!N)return null;var A=oo(this.props,"hidden")?"url(#".concat(g,")"):void 0;return F.createElement(Dt,{className:it("recharts-reference-area",f)},t.renderRect(N,i8(i8({clipPath:A},Fe(this.props,!0)),w)),Xn.renderCallByParent(this.props,w))}}])})(F.Component);p0(g0,"displayName","ReferenceArea");p0(g0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});p0(g0,"renderRect",function(e,t){var n;return F.isValidElement(e)?n=F.cloneElement(e,t):Xe(e)?n=e(t):n=F.createElement(zR,$C({},t,{className:"recharts-reference-area-rect"})),n});function NK(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],o=0;o<e.length;o+=t)r.push(e[o]);return r}function owe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return dNe(r,n)}function swe(e,t,n){var r=n==="width",o=e.x,s=e.y,c=e.width,u=e.height;return t===1?{start:r?o:s,end:r?o+c:s+u}:{start:r?o+c:s+u,end:r?o:s}}function rx(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-o)<=0}function lwe(e,t){return NK(e,t+1)}function cwe(e,t,n,r,o){for(var s=(r||[]).slice(),c=t.start,u=t.end,f=0,m=1,g=c,h=function(){var S=r?.[f];if(S===void 0)return{v:NK(r,m)};var N=f,w,A=function(){return w===void 0&&(w=n(S,N)),w},D=S.coordinate,_=f===0||rx(e,D,A,g,u);_||(f=0,g=c,m+=1),_&&(g=D+e*(A()/2+o),f+=m)},y;m<=s.length;)if(y=h(),y)return y.v;return[]}function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}function o8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o8(Object(n),!0).forEach(function(r){uwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uwe(e,t,n){return t=dwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dwe(e){var t=fwe(e,"string");return Ap(t)=="symbol"?t:t+""}function fwe(e,t){if(Ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mwe(e,t,n,r,o){for(var s=(r||[]).slice(),c=s.length,u=t.start,f=t.end,m=function(y){var x=s[y],S,N=function(){return S===void 0&&(S=n(x,y)),S};if(y===c-1){var w=e*(x.coordinate+e*N()/2-f);s[y]=x=ur(ur({},x),{},{tickCoord:w>0?x.coordinate-w*e:x.coordinate})}else s[y]=x=ur(ur({},x),{},{tickCoord:x.coordinate});var A=rx(e,x.tickCoord,N,u,f);A&&(f=x.tickCoord-e*(N()/2+o),s[y]=ur(ur({},x),{},{isShow:!0}))},g=c-1;g>=0;g--)m(g);return s}function hwe(e,t,n,r,o,s){var c=(r||[]).slice(),u=c.length,f=t.start,m=t.end;if(s){var g=r[u-1],h=n(g,u-1),y=e*(g.coordinate+e*h/2-m);c[u-1]=g=ur(ur({},g),{},{tickCoord:y>0?g.coordinate-y*e:g.coordinate});var x=rx(e,g.tickCoord,function(){return h},f,m);x&&(m=g.tickCoord-e*(h/2+o),c[u-1]=ur(ur({},g),{},{isShow:!0}))}for(var S=s?u-1:u,N=function(D){var _=c[D],P,O=function(){return P===void 0&&(P=n(_,D)),P};if(D===0){var C=e*(_.coordinate-e*O()/2-f);c[D]=_=ur(ur({},_),{},{tickCoord:C<0?_.coordinate-C*e:_.coordinate})}else c[D]=_=ur(ur({},_),{},{tickCoord:_.coordinate});var j=rx(e,_.tickCoord,O,f,m);j&&(f=_.tickCoord+e*(O()/2+o),c[D]=ur(ur({},_),{},{isShow:!0}))},w=0;w<S;w++)N(w);return c}function QR(e,t,n){var r=e.tick,o=e.ticks,s=e.viewBox,c=e.minTickGap,u=e.orientation,f=e.interval,m=e.tickFormatter,g=e.unit,h=e.angle;if(!o||!o.length||!r)return[];if(Oe(f)||au.isSsr)return lwe(o,typeof f=="number"&&Oe(f)?f:0);var y=[],x=u==="top"||u==="bottom"?"width":"height",S=g&&x==="width"?Th(g,{fontSize:t,letterSpacing:n}):{width:0,height:0},N=function(_,P){var O=Xe(m)?m(_.value,P):_.value;return x==="width"?owe(Th(O,{fontSize:t,letterSpacing:n}),S,h):Th(O,{fontSize:t,letterSpacing:n})[x]},w=o.length>=2?_r(o[1].coordinate-o[0].coordinate):1,A=swe(s,w,x);return f==="equidistantPreserveStart"?cwe(w,A,N,o,c):(f==="preserveStart"||f==="preserveStartEnd"?y=hwe(w,A,N,o,c,f==="preserveStartEnd"):y=mwe(w,A,N,o,c),y.filter(function(D){return D.isShow}))}var pwe=["viewBox"],gwe=["viewBox"],vwe=["ticks"];function nf(e){"@babel/helpers - typeof";return nf=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},nf(e)}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}function s8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(n),!0).forEach(function(r){XR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LD(e,t){if(e==null)return{};var n=bwe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ywe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EK(r.key),r)}}function xwe(e,t,n){return t&&l8(e.prototype,t),n&&l8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nwe(e,t,n){return t=ax(t),wwe(e,wK()?Reflect.construct(t,n||[],ax(e).constructor):t.apply(e,n))}function wwe(e,t){if(t&&(nf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ewe(e)}function Ewe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wK=function(){return!!e})()}function ax(e){return ax=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ax(e)}function Swe(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&&zC(e,t)}function zC(e,t){return zC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zC(e,t)}function XR(e,t,n){return t=EK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EK(e){var t=Awe(e,"string");return nf(t)=="symbol"?t:t+""}function Awe(e,t){if(nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sf=(function(e){function t(n){var r;return ywe(this,t),r=Nwe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Swe(t,e),xwe(t,[{key:"shouldComponentUpdate",value:function(r,o){var s=r.viewBox,c=LD(r,pwe),u=this.props,f=u.viewBox,m=LD(u,gwe);return!Td(s,f)||!Td(c,m)||!Td(o,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var o=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];o&&this.setState({fontSize:window.getComputedStyle(o).fontSize,letterSpacing:window.getComputedStyle(o).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var o=this.props,s=o.x,c=o.y,u=o.width,f=o.height,m=o.orientation,g=o.tickSize,h=o.mirror,y=o.tickMargin,x,S,N,w,A,D,_=h?-1:1,P=r.tickSize||g,O=Oe(r.tickCoord)?r.tickCoord:r.coordinate;switch(m){case"top":x=S=r.coordinate,w=c+ +!h*f,N=w-_*P,D=N-_*y,A=O;break;case"left":N=w=r.coordinate,S=s+ +!h*u,x=S-_*P,A=x-_*y,D=O;break;case"right":N=w=r.coordinate,S=s+ +h*u,x=S+_*P,A=x+_*y,D=O;break;default:x=S=r.coordinate,w=c+ +h*f,N=w+_*P,D=N+_*y,A=O;break}return{line:{x1:x,y1:N,x2:S,y2:w},tick:{x:A,y:D}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,s=r.mirror,c;switch(o){case"left":c=s?"start":"end";break;case"right":c=s?"end":"start";break;default:c="middle";break}return c}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,s=r.mirror,c="end";switch(o){case"left":case"right":c="middle";break;case"top":c=s?"start":"end";break;default:c=s?"end":"start";break}return c}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,s=r.y,c=r.width,u=r.height,f=r.orientation,m=r.mirror,g=r.axisLine,h=Ln(Ln(Ln({},Fe(this.props,!1)),Fe(g,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!m||f==="bottom"&&m);h=Ln(Ln({},h),{},{x1:o,y1:s+y*u,x2:o+c,y2:s+y*u})}else{var x=+(f==="left"&&!m||f==="right"&&m);h=Ln(Ln({},h),{},{x1:o+x*c,y1:s,x2:o+x*c,y2:s+u})}return F.createElement("line",Sd({},h,{className:it("recharts-cartesian-axis-line",va(g,"className"))}))}},{key:"renderTicks",value:function(r,o,s){var c=this,u=this.props,f=u.tickLine,m=u.stroke,g=u.tick,h=u.tickFormatter,y=u.unit,x=QR(Ln(Ln({},this.props),{},{ticks:r}),o,s),S=this.getTickTextAnchor(),N=this.getTickVerticalAnchor(),w=Fe(this.props,!1),A=Fe(g,!1),D=Ln(Ln({},w),{},{fill:"none"},Fe(f,!1)),_=x.map(function(P,O){var C=c.getTickLineCoord(P),j=C.line,k=C.tick,$=Ln(Ln(Ln(Ln({textAnchor:S,verticalAnchor:N},w),{},{stroke:"none",fill:m},A),k),{},{index:O,payload:P,visibleTicksCount:x.length,tickFormatter:h});return F.createElement(Dt,Sd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},Hc(c.props,P,O)),f&&F.createElement("line",Sd({},D,j,{className:it("recharts-cartesian-axis-tick-line",va(f,"className"))})),g&&t.renderTickItem(g,$,"".concat(Xe(h)?h(P.value,O):P.value).concat(y||"")))});return F.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var r=this,o=this.props,s=o.axisLine,c=o.width,u=o.height,f=o.ticksGenerator,m=o.className,g=o.hide;if(g)return null;var h=this.props,y=h.ticks,x=LD(h,vwe),S=y;return Xe(f)&&(S=y&&y.length>0?f(this.props):f(x)),c<=0||u<=0||!S||!S.length?null:F.createElement(Dt,{className:it("recharts-cartesian-axis",m),ref:function(w){r.layerReference=w}},s&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Xn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,s){var c,u=it(o.className,"recharts-cartesian-axis-tick-value");return F.isValidElement(r)?c=F.cloneElement(r,Ln(Ln({},o),{},{className:u})):Xe(r)?c=r(Ln(Ln({},o),{},{className:u})):c=F.createElement(Fc,Sd({},o,{className:"recharts-cartesian-axis-tick-value"}),s),c}}])})(R.Component);XR(Sf,"displayName","CartesianAxis");XR(Sf,"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 Owe=["x1","y1","x2","y2","key"],Dwe=["offset"];function Yc(e){"@babel/helpers - typeof";return Yc=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},Yc(e)}function c8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c8(Object(n),!0).forEach(function(r){Twe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Twe(e,t,n){return t=Cwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cwe(e){var t=_we(e,"string");return Yc(t)=="symbol"?t:t+""}function _we(e,t){if(Yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}function u8(e,t){if(e==null)return{};var n=Rwe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var jwe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,s=t.y,c=t.width,u=t.height,f=t.ry;return F.createElement("rect",{x:o,y:s,ry:f,width:c,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function SK(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if(Xe(e))n=e(t);else{var r=t.x1,o=t.y1,s=t.x2,c=t.y2,u=t.key,f=u8(t,Owe),m=Fe(f,!1);m.offset;var g=u8(m,Dwe);n=F.createElement("line",Ac({},g,{x1:r,y1:o,x2:s,y2:c,fill:"none",key:u}))}return n}function Pwe(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,s=e.horizontalPoints;if(!o||!s||!s.length)return null;var c=s.map(function(u,f){var m=fr(fr({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(f),index:f});return SK(o,m)});return F.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function Mwe(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,s=e.verticalPoints;if(!o||!s||!s.length)return null;var c=s.map(function(u,f){var m=fr(fr({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(f),index:f});return SK(o,m)});return F.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function kwe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,s=e.width,c=e.height,u=e.horizontalPoints,f=e.horizontal,m=f===void 0?!0:f;if(!m||!t||!t.length)return null;var g=u.map(function(y){return Math.round(y+o-o)}).sort(function(y,x){return y-x});o!==g[0]&&g.unshift(0);var h=g.map(function(y,x){var S=!g[x+1],N=S?o+c-y:g[x+1]-y;if(N<=0)return null;var w=x%t.length;return F.createElement("rect",{key:"react-".concat(x),y,x:r,height:N,width:s,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return F.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Lwe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,s=e.x,c=e.y,u=e.width,f=e.height,m=e.verticalPoints;if(!n||!r||!r.length)return null;var g=m.map(function(y){return Math.round(y+s-s)}).sort(function(y,x){return y-x});s!==g[0]&&g.unshift(0);var h=g.map(function(y,x){var S=!g[x+1],N=S?s+u-y:g[x+1]-y;if(N<=0)return null;var w=x%r.length;return F.createElement("rect",{key:"react-".concat(x),x:y,y:c,width:N,height:f,stroke:"none",fill:r[w],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return F.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Iwe=function(t,n){var r=t.xAxis,o=t.width,s=t.height,c=t.offset;return NF(QR(fr(fr(fr({},Sf.defaultProps),r),{},{ticks:ts(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),c.left,c.left+c.width,n)},Vwe=function(t,n){var r=t.yAxis,o=t.width,s=t.height,c=t.offset;return NF(QR(fr(fr(fr({},Sf.defaultProps),r),{},{ticks:ts(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),c.top,c.top+c.height,n)},bd={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function AK(e){var t,n,r,o,s,c,u=FR(),f=KR(),m=ANe(),g=fr(fr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:bd.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:bd.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:bd.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:bd.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:bd.vertical,verticalFill:(c=e.verticalFill)!==null&&c!==void 0?c:bd.verticalFill,x:Oe(e.x)?e.x:m.left,y:Oe(e.y)?e.y:m.top,width:Oe(e.width)?e.width:m.width,height:Oe(e.height)?e.height:m.height}),h=g.x,y=g.y,x=g.width,S=g.height,N=g.syncWithTicks,w=g.horizontalValues,A=g.verticalValues,D=wNe(),_=ENe();if(!Oe(x)||x<=0||!Oe(S)||S<=0||!Oe(h)||h!==+h||!Oe(y)||y!==+y)return null;var P=g.verticalCoordinatesGenerator||Iwe,O=g.horizontalCoordinatesGenerator||Vwe,C=g.horizontalPoints,j=g.verticalPoints;if((!C||!C.length)&&Xe(O)){var k=w&&w.length,$=O({yAxis:_?fr(fr({},_),{},{ticks:k?w:_.ticks}):void 0,width:u,height:f,offset:m},k?!0:N);ui(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Yc($),"]")),Array.isArray($)&&(C=$)}if((!j||!j.length)&&Xe(P)){var B=A&&A.length,U=P({xAxis:D?fr(fr({},D),{},{ticks:B?A:D.ticks}):void 0,width:u,height:f,offset:m},B?!0:N);ui(Array.isArray(U),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yc(U),"]")),Array.isArray(U)&&(j=U)}return F.createElement("g",{className:"recharts-cartesian-grid"},F.createElement(jwe,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),F.createElement(Pwe,Ac({},g,{offset:m,horizontalPoints:C,xAxis:D,yAxis:_})),F.createElement(Mwe,Ac({},g,{offset:m,verticalPoints:j,xAxis:D,yAxis:_})),F.createElement(kwe,Ac({},g,{horizontalPoints:C})),F.createElement(Lwe,Ac({},g,{verticalPoints:j})))}AK.displayName="CartesianGrid";var $we=["layout","type","stroke","connectNulls","isRange","ref"],Bwe=["key"],OK;function rf(e){"@babel/helpers - typeof";return rf=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},rf(e)}function DK(e,t){if(e==null)return{};var n=zwe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oc(){return Oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oc.apply(this,arguments)}function d8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ol(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d8(Object(n),!0).forEach(function(r){no(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CK(r.key),r)}}function qwe(e,t,n){return t&&f8(e.prototype,t),n&&f8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hwe(e,t,n){return t=ix(t),Fwe(e,TK()?Reflect.construct(t,n||[],ix(e).constructor):t.apply(e,n))}function Fwe(e,t){if(t&&(rf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kwe(e)}function Kwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TK=function(){return!!e})()}function ix(e){return ix=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ix(e)}function Gwe(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&&UC(e,t)}function UC(e,t){return UC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},UC(e,t)}function no(e,t,n){return t=CK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CK(e){var t=Ywe(e,"string");return rf(t)=="symbol"?t:t+""}function Ywe(e,t){if(rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var so=(function(e){function t(){var n;Uwe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Hwe(this,t,[].concat(o)),no(n,"state",{isAnimationFinished:!0}),no(n,"id",yf("recharts-area-")),no(n,"handleAnimationEnd",function(){var c=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Xe(c)&&c()}),no(n,"handleAnimationStart",function(){var c=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Xe(c)&&c()}),n}return Gwe(t,e),qwe(t,[{key:"renderDots",value:function(r,o,s){var c=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(c&&!u)return null;var f=this.props,m=f.dot,g=f.points,h=f.dataKey,y=Fe(this.props,!1),x=Fe(m,!0),S=g.map(function(w,A){var D=ol(ol(ol({key:"dot-".concat(A),r:3},y),x),{},{index:A,cx:w.x,cy:w.y,dataKey:h,value:w.value,payload:w.payload,points:g});return t.renderDotItem(m,D)}),N={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(s,")"):null};return F.createElement(Dt,Oc({className:"recharts-area-dots"},N),S)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,s=o.baseLine,c=o.points,u=o.strokeWidth,f=c[0].x,m=c[c.length-1].x,g=r*Math.abs(f-m),h=ul(c.map(function(y){return y.y||0}));return Oe(s)&&typeof s=="number"?h=Math.max(s,h):s&&Array.isArray(s)&&s.length&&(h=Math.max(ul(s.map(function(y){return y.y||0})),h)),Oe(h)?F.createElement("rect",{x:f<m?f:f-g,y:0,width:g,height:Math.floor(h+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,s=o.baseLine,c=o.points,u=o.strokeWidth,f=c[0].y,m=c[c.length-1].y,g=r*Math.abs(f-m),h=ul(c.map(function(y){return y.x||0}));return Oe(s)&&typeof s=="number"?h=Math.max(s,h):s&&Array.isArray(s)&&s.length&&(h=Math.max(ul(s.map(function(y){return y.x||0})),h)),Oe(h)?F.createElement("rect",{x:0,y:f<m?f:f-g,width:h+(u?parseInt("".concat(u),10):1),height:Math.floor(g)}):null}},{key:"renderClipRect",value:function(r){var o=this.props.layout;return o==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,o,s,c){var u=this.props,f=u.layout,m=u.type,g=u.stroke,h=u.connectNulls,y=u.isRange;u.ref;var x=DK(u,$we);return F.createElement(Dt,{clipPath:s?"url(#clipPath-".concat(c,")"):null},F.createElement(Rd,Oc({},Fe(x,!0),{points:r,connectNulls:h,type:m,baseLine:o,layout:f,stroke:"none",className:"recharts-area-area"})),g!=="none"&&F.createElement(Rd,Oc({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:h,fill:"none",points:r})),g!=="none"&&y&&F.createElement(Rd,Oc({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:h,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var s=this,c=this.props,u=c.points,f=c.baseLine,m=c.isAnimationActive,g=c.animationBegin,h=c.animationDuration,y=c.animationEasing,x=c.animationId,S=this.state,N=S.prevPoints,w=S.prevBaseLine;return F.createElement(fo,{begin:g,duration:h,isActive:m,easing:y,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var D=A.t;if(N){var _=N.length/u.length,P=u.map(function(k,$){var B=Math.floor($*_);if(N[B]){var U=N[B],H=Hr(U.x,k.x),G=Hr(U.y,k.y);return ol(ol({},k),{},{x:H(D),y:G(D)})}return k}),O;if(Oe(f)&&typeof f=="number"){var C=Hr(w,f);O=C(D)}else if(ot(f)||bf(f)){var j=Hr(w,0);O=j(D)}else O=f.map(function(k,$){var B=Math.floor($*_);if(w[B]){var U=w[B],H=Hr(U.x,k.x),G=Hr(U.y,k.y);return ol(ol({},k),{},{x:H(D),y:G(D)})}return k});return s.renderAreaStatically(P,O,r,o)}return F.createElement(Dt,null,F.createElement("defs",null,F.createElement("clipPath",{id:"animationClipPath-".concat(o)},s.renderClipRect(D))),F.createElement(Dt,{clipPath:"url(#animationClipPath-".concat(o,")")},s.renderAreaStatically(u,f,r,o)))})}},{key:"renderArea",value:function(r,o){var s=this.props,c=s.points,u=s.baseLine,f=s.isAnimationActive,m=this.state,g=m.prevPoints,h=m.prevBaseLine,y=m.totalLength;return f&&c&&c.length&&(!g&&y>0||!qd(g,c)||!qd(h,u))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(c,u,r,o)}},{key:"render",value:function(){var r,o=this.props,s=o.hide,c=o.dot,u=o.points,f=o.className,m=o.top,g=o.left,h=o.xAxis,y=o.yAxis,x=o.width,S=o.height,N=o.isAnimationActive,w=o.id;if(s||!u||!u.length)return null;var A=this.state.isAnimationFinished,D=u.length===1,_=it("recharts-area",f),P=h&&h.allowDataOverflow,O=y&&y.allowDataOverflow,C=P||O,j=ot(w)?this.id:w,k=(r=Fe(c,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=k.r,B=$===void 0?3:$,U=k.strokeWidth,H=U===void 0?2:U,G=Tce(c)?c:{},Y=G.clipDot,J=Y===void 0?!0:Y,q=B*2+H;return F.createElement(Dt,{className:_},P||O?F.createElement("defs",null,F.createElement("clipPath",{id:"clipPath-".concat(j)},F.createElement("rect",{x:P?g:g-x/2,y:O?m:m-S/2,width:P?x:x*2,height:O?S:S*2})),!J&&F.createElement("clipPath",{id:"clipPath-dots-".concat(j)},F.createElement("rect",{x:g-q/2,y:m-q/2,width:x+q,height:S+q}))):null,D?null:this.renderArea(C,j),(c||D)&&this.renderDots(C,J,j),(!N||A)&&as.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:o.curPoints,prevBaseLine:o.curBaseLine}:r.points!==o.curPoints||r.baseLine!==o.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(R.PureComponent);OK=so;no(so,"displayName","Area");no(so,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!au.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});no(so,"getBaseValue",function(e,t,n,r){var o=e.layout,s=e.baseValue,c=t.props.baseValue,u=c??s;if(Oe(u)&&typeof u=="number")return u;var f=o==="horizontal"?r:n,m=f.scale.domain();if(f.type==="number"){var g=Math.max(m[0],m[1]),h=Math.min(m[0],m[1]);return u==="dataMin"?h:u==="dataMax"||g<0?g:Math.max(Math.min(m[0],m[1]),0)}return u==="dataMin"?m[0]:u==="dataMax"?m[1]:m[0]});no(so,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.bandSize,f=e.dataKey,m=e.stackedData,g=e.dataStartIndex,h=e.displayedData,y=e.offset,x=t.layout,S=m&&m.length,N=OK.getBaseValue(t,n,r,o),w=x==="horizontal",A=!1,D=h.map(function(P,O){var C;S?C=m[g+O]:(C=Vn(P,f),Array.isArray(C)?A=!0:C=[N,C]);var j=C[1]==null||S&&Vn(P,f)==null;return w?{x:uB({axis:r,ticks:s,bandSize:u,entry:P,index:O}),y:j?null:o.scale(C[1]),value:C,payload:P}:{x:j?null:r.scale(C[1]),y:uB({axis:o,ticks:c,bandSize:u,entry:P,index:O}),value:C,payload:P}}),_;return S||A?_=D.map(function(P){var O=Array.isArray(P.value)?P.value[0]:null;return w?{x:P.x,y:O!=null&&P.y!=null?o.scale(O):null}:{x:O!=null?r.scale(O):null,y:P.y}}):_=w?o.scale(N):r.scale(N),ol({points:D,baseLine:_,layout:x,isRange:A},y)});no(so,"renderDotItem",function(e,t){var n;if(F.isValidElement(e))n=F.cloneElement(e,t);else if(Xe(e))n=e(t);else{var r=it("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,s=DK(t,Bwe);n=F.createElement(i0,Oc({},s,{key:o,className:r}))}return n});function af(e){"@babel/helpers - typeof";return af=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},af(e)}function Qwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jK(r.key),r)}}function Wwe(e,t,n){return t&&Xwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zwe(e,t,n){return t=ox(t),Jwe(e,_K()?Reflect.construct(t,n||[],ox(e).constructor):t.apply(e,n))}function Jwe(e,t){if(t&&(af(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eEe(e)}function eEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_K=function(){return!!e})()}function ox(e){return ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ox(e)}function tEe(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&&qC(e,t)}function qC(e,t){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},qC(e,t)}function RK(e,t,n){return t=jK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jK(e){var t=nEe(e,"string");return af(t)=="symbol"?t:t+""}function nEe(e,t){if(af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function HC(){return HC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HC.apply(this,arguments)}function rEe(e){var t=e.xAxisId,n=FR(),r=KR(),o=mK(t);return o==null?null:R.createElement(Sf,HC({},o,{className:it("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(c){return ts(c,!0)}}))}var v0=(function(e){function t(){return Qwe(this,t),Zwe(this,t,arguments)}return tEe(t,e),Wwe(t,[{key:"render",value:function(){return R.createElement(rEe,this.props)}}])})(R.Component);RK(v0,"displayName","XAxis");RK(v0,"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 of(e){"@babel/helpers - typeof";return of=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},of(e)}function aEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kK(r.key),r)}}function oEe(e,t,n){return t&&iEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sEe(e,t,n){return t=sx(t),lEe(e,PK()?Reflect.construct(t,n||[],sx(e).constructor):t.apply(e,n))}function lEe(e,t){if(t&&(of(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cEe(e)}function cEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PK=function(){return!!e})()}function sx(e){return sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sx(e)}function uEe(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&&FC(e,t)}function FC(e,t){return FC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},FC(e,t)}function MK(e,t,n){return t=kK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kK(e){var t=dEe(e,"string");return of(t)=="symbol"?t:t+""}function dEe(e,t){if(of(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(of(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KC.apply(this,arguments)}var fEe=function(t){var n=t.yAxisId,r=FR(),o=KR(),s=hK(n);return s==null?null:R.createElement(Sf,KC({},s,{className:it("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(u){return ts(u,!0)}}))},b0=(function(e){function t(){return aEe(this,t),sEe(this,t,arguments)}return uEe(t,e),oEe(t,[{key:"render",value:function(){return R.createElement(fEe,this.props)}}])})(R.Component);MK(b0,"displayName","YAxis");MK(b0,"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 m8(e){return gEe(e)||pEe(e)||hEe(e)||mEe()}function mEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hEe(e,t){if(e){if(typeof e=="string")return GC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GC(e,t)}}function pEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gEe(e){if(Array.isArray(e))return GC(e)}function GC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var YC=function(t,n,r,o,s){var c=Ua(t,YR),u=Ua(t,h0),f=[].concat(m8(c),m8(u)),m=Ua(t,g0),g="".concat(o,"Id"),h=o[0],y=n;if(f.length&&(y=f.reduce(function(N,w){if(w.props[g]===r&&oo(w.props,"extendDomain")&&Oe(w.props[h])){var A=w.props[h];return[Math.min(N[0],A),Math.max(N[1],A)]}return N},y)),m.length){var x="".concat(h,"1"),S="".concat(h,"2");y=m.reduce(function(N,w){if(w.props[g]===r&&oo(w.props,"extendDomain")&&Oe(w.props[x])&&Oe(w.props[S])){var A=w.props[x],D=w.props[S];return[Math.min(N[0],A,D),Math.max(N[1],A,D)]}return N},y)}return s&&s.length&&(y=s.reduce(function(N,w){return Oe(w)?[Math.min(N[0],w),Math.max(N[1],w)]:N},y)),y},ID={exports:{}},h8;function vEe(){return h8||(h8=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(f,m,g){this.fn=f,this.context=m,this.once=g||!1}function s(f,m,g,h,y){if(typeof g!="function")throw new TypeError("The listener must be a function");var x=new o(g,h||f,y),S=n?n+m:m;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],x]:f._events[S].push(x):(f._events[S]=x,f._eventsCount++),f}function c(f,m){--f._eventsCount===0?f._events=new r:delete f._events[m]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var m=[],g,h;if(this._eventsCount===0)return m;for(h in g=this._events)t.call(g,h)&&m.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(g)):m},u.prototype.listeners=function(m){var g=n?n+m:m,h=this._events[g];if(!h)return[];if(h.fn)return[h.fn];for(var y=0,x=h.length,S=new Array(x);y<x;y++)S[y]=h[y].fn;return S},u.prototype.listenerCount=function(m){var g=n?n+m:m,h=this._events[g];return h?h.fn?1:h.length:0},u.prototype.emit=function(m,g,h,y,x,S){var N=n?n+m:m;if(!this._events[N])return!1;var w=this._events[N],A=arguments.length,D,_;if(w.fn){switch(w.once&&this.removeListener(m,w.fn,void 0,!0),A){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,g),!0;case 3:return w.fn.call(w.context,g,h),!0;case 4:return w.fn.call(w.context,g,h,y),!0;case 5:return w.fn.call(w.context,g,h,y,x),!0;case 6:return w.fn.call(w.context,g,h,y,x,S),!0}for(_=1,D=new Array(A-1);_<A;_++)D[_-1]=arguments[_];w.fn.apply(w.context,D)}else{var P=w.length,O;for(_=0;_<P;_++)switch(w[_].once&&this.removeListener(m,w[_].fn,void 0,!0),A){case 1:w[_].fn.call(w[_].context);break;case 2:w[_].fn.call(w[_].context,g);break;case 3:w[_].fn.call(w[_].context,g,h);break;case 4:w[_].fn.call(w[_].context,g,h,y);break;default:if(!D)for(O=1,D=new Array(A-1);O<A;O++)D[O-1]=arguments[O];w[_].fn.apply(w[_].context,D)}}return!0},u.prototype.on=function(m,g,h){return s(this,m,g,h,!1)},u.prototype.once=function(m,g,h){return s(this,m,g,h,!0)},u.prototype.removeListener=function(m,g,h,y){var x=n?n+m:m;if(!this._events[x])return this;if(!g)return c(this,x),this;var S=this._events[x];if(S.fn)S.fn===g&&(!y||S.once)&&(!h||S.context===h)&&c(this,x);else{for(var N=0,w=[],A=S.length;N<A;N++)(S[N].fn!==g||y&&!S[N].once||h&&S[N].context!==h)&&w.push(S[N]);w.length?this._events[x]=w.length===1?w[0]:w:c(this,x)}return this},u.prototype.removeAllListeners=function(m){var g;return m?(g=n?n+m:m,this._events[g]&&c(this,g)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(ID)),ID.exports}var bEe=vEe();const yEe=Bt(bEe);var VD=new yEe,$D="recharts.syncMouseEvents";function Op(e){"@babel/helpers - typeof";return Op=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},Op(e)}function xEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LK(r.key),r)}}function wEe(e,t,n){return t&&NEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BD(e,t,n){return t=LK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LK(e){var t=EEe(e,"string");return Op(t)=="symbol"?t:t+""}function EEe(e,t){if(Op(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Op(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var SEe=(function(){function e(){xEe(this,e),BD(this,"activeIndex",0),BD(this,"coordinateList",[]),BD(this,"layout","horizontal")}return wEe(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,s=o===void 0?null:o,c=n.container,u=c===void 0?null:c,f=n.layout,m=f===void 0?null:f,g=n.offset,h=g===void 0?null:g,y=n.mouseHandlerCallback,x=y===void 0?null:y;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=m??this.layout,this.offset=h??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var o=this.container.getBoundingClientRect(),s=o.x,c=o.y,u=o.height,f=this.coordinateList[this.activeIndex].coordinate,m=((n=window)===null||n===void 0?void 0:n.scrollX)||0,g=((r=window)===null||r===void 0?void 0:r.scrollY)||0,h=s+f+m,y=c+this.offset.top+u/2+g;this.mouseHandlerCallback({pageX:h,pageY:y})}}}])})();function AEe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],o=e?.[1];if(r&&o&&Oe(r)&&Oe(o))return!0}return!1}function OEe(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function IK(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,s=e.endAngle,c=en(t,n,r,o),u=en(t,n,r,s);return{points:[c,u],cx:t,cy:n,radius:r,startAngle:o,endAngle:s}}function DEe(e,t,n){var r,o,s,c;if(e==="horizontal")r=t.x,s=r,o=n.top,c=n.top+n.height;else if(e==="vertical")o=t.y,c=o,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,f=t.cy,m=t.innerRadius,g=t.outerRadius,h=t.angle,y=en(u,f,m,h),x=en(u,f,g,h);r=y.x,o=y.y,s=x.x,c=x.y}else return IK(t);return[{x:r,y:o},{x:s,y:c}]}function Dp(e){"@babel/helpers - typeof";return Dp=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},Dp(e)}function p8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p8(Object(n),!0).forEach(function(r){TEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TEe(e,t,n){return t=CEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CEe(e){var t=_Ee(e,"string");return Dp(t)=="symbol"?t:t+""}function _Ee(e,t){if(Dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function REe(e){var t,n,r=e.element,o=e.tooltipEventType,s=e.isActive,c=e.activeCoordinate,u=e.activePayload,f=e.offset,m=e.activeTooltipIndex,g=e.tooltipAxisBandSize,h=e.layout,y=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!s||!c||y!=="ScatterChart"&&o!=="axis")return null;var S,N=Rd;if(y==="ScatterChart")S=c,N=n0e;else if(y==="BarChart")S=OEe(h,c,f,g),N=zR;else if(h==="radial"){var w=IK(c),A=w.cx,D=w.cy,_=w.radius,P=w.startAngle,O=w.endAngle;S={cx:A,cy:D,startAngle:P,endAngle:O,innerRadius:_,outerRadius:_},N=jF}else S={points:DEe(h,c,f)},N=Rd;var C=Vb(Vb(Vb(Vb({stroke:"#ccc",pointerEvents:"none"},f),S),Fe(x,!1)),{},{payload:u,payloadIndex:m,className:it("recharts-tooltip-cursor",x.className)});return R.isValidElement(x)?R.cloneElement(x,C):R.createElement(N,C)}var jEe=["item"],PEe=["children","className","width","height","style","compact","title","desc"];function sf(e){"@babel/helpers - typeof";return sf=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},sf(e)}function Ad(){return Ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ad.apply(this,arguments)}function g8(e,t){return LEe(e)||kEe(e,t)||$K(e,t)||MEe()}function MEe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function LEe(e){if(Array.isArray(e))return e}function v8(e,t){if(e==null)return{};var n=IEe(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function VEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BK(r.key),r)}}function BEe(e,t,n){return t&&$Ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zEe(e,t,n){return t=lx(t),UEe(e,VK()?Reflect.construct(t,n||[],lx(e).constructor):t.apply(e,n))}function UEe(e,t){if(t&&(sf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qEe(e)}function qEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VK=function(){return!!e})()}function lx(e){return lx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lx(e)}function HEe(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&&QC(e,t)}function QC(e,t){return QC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},QC(e,t)}function lf(e){return GEe(e)||KEe(e)||$K(e)||FEe()}function FEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $K(e,t){if(e){if(typeof e=="string")return XC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XC(e,t)}}function KEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GEe(e){if(Array.isArray(e))return XC(e)}function XC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b8(Object(n),!0).forEach(function(r){Qe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qe(e,t,n){return t=BK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BK(e){var t=YEe(e,"string");return sf(t)=="symbol"?t:t+""}function YEe(e,t){if(sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QEe={xAxis:["bottom","top"],yAxis:["left","right"]},XEe={width:"100%",height:"100%"},zK={x:0,y:0};function $b(e){return e}var WEe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},ZEe=function(t,n,r,o){var s=n.find(function(g){return g&&g.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:s.coordinate};if(t==="centric"){var c=s.coordinate,u=o.radius;return be(be(be({},o),en(o.cx,o.cy,u,c)),{},{angle:c,radius:u})}var f=s.coordinate,m=o.angle;return be(be(be({},o),en(o.cx,o.cy,f,m)),{},{angle:m,radius:f})}return zK},y0=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,s=n.dataEndIndex,c=(r??[]).reduce(function(u,f){var m=f.props.data;return m&&m.length?[].concat(lf(u),lf(m)):u},[]);return c.length>0?c:t&&t.length&&Oe(o)&&Oe(s)?t.slice(o,s+1):[]};function UK(e){return e==="number"?[0,"auto"]:void 0}var WC=function(t,n,r,o){var s=t.graphicalItems,c=t.tooltipAxis,u=y0(n,t);return r<0||!s||!s.length||r>=u.length?null:s.reduce(function(f,m){var g,h=(g=m.props.data)!==null&&g!==void 0?g:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(c.dataKey&&!c.allowDuplicatedCategory){var x=h===void 0?u:h;y=uy(x,c.dataKey,o)}else y=h&&h[r]||u[r];return y?[].concat(lf(f),[OF(m,y)]):f},[])},y8=function(t,n,r,o){var s=o||{x:t.chartX,y:t.chartY},c=WEe(s,r),u=t.orderedTooltipTicks,f=t.tooltipAxis,m=t.tooltipTicks,g=Sve(c,u,m,f);if(g>=0&&m){var h=m[g]&&m[g].value,y=WC(t,n,g,h),x=ZEe(r,u,g,s);return{activeTooltipIndex:g,activeLabel:h,activePayload:y,activeCoordinate:x}}return null},JEe=function(t,n){var r=n.axes,o=n.graphicalItems,s=n.axisType,c=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.layout,h=t.children,y=t.stackOffset,x=xF(g,s);return r.reduce(function(S,N){var w,A=N.type.defaultProps!==void 0?be(be({},N.type.defaultProps),N.props):N.props,D=A.type,_=A.dataKey,P=A.allowDataOverflow,O=A.allowDuplicatedCategory,C=A.scale,j=A.ticks,k=A.includeHidden,$=A[c];if(S[$])return S;var B=y0(t.data,{graphicalItems:o.filter(function(Q){var W,ae=c in Q.props?Q.props[c]:(W=Q.type.defaultProps)===null||W===void 0?void 0:W[c];return ae===$}),dataStartIndex:f,dataEndIndex:m}),U=B.length,H,G,Y;AEe(A.domain,P,D)&&(H=fC(A.domain,null,P),x&&(D==="number"||C!=="auto")&&(Y=_h(B,_,"category")));var J=UK(D);if(!H||H.length===0){var q,z=(q=A.domain)!==null&&q!==void 0?q:J;if(_){if(H=_h(B,_,D),D==="category"&&x){var K=bce(H);O&&K?(G=H,H=Yy(0,U)):O||(H=hB(z,H,N).reduce(function(Q,W){return Q.indexOf(W)>=0?Q:[].concat(lf(Q),[W])},[]))}else if(D==="category")O?H=H.filter(function(Q){return Q!==""&&!ot(Q)}):H=hB(z,H,N).reduce(function(Q,W){return Q.indexOf(W)>=0||W===""||ot(W)?Q:[].concat(lf(Q),[W])},[]);else if(D==="number"){var te=Cve(B,o.filter(function(Q){var W,ae,ge=c in Q.props?Q.props[c]:(W=Q.type.defaultProps)===null||W===void 0?void 0:W[c],we="hide"in Q.props?Q.props.hide:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return ge===$&&(k||!we)}),_,s,g);te&&(H=te)}x&&(D==="number"||C!=="auto")&&(Y=_h(B,_,"category"))}else x?H=Yy(0,U):u&&u[$]&&u[$].hasStack&&D==="number"?H=y==="expand"?[0,1]:AF(u[$].stackGroups,f,m):H=yF(B,o.filter(function(Q){var W=c in Q.props?Q.props[c]:Q.type.defaultProps[c],ae="hide"in Q.props?Q.props.hide:Q.type.defaultProps.hide;return W===$&&(k||!ae)}),D,g,!0);if(D==="number")H=YC(h,H,$,s,j),z&&(H=fC(z,H,P));else if(D==="category"&&z){var ne=z,L=H.every(function(Q){return ne.indexOf(Q)>=0});L&&(H=ne)}}return be(be({},S),{},Qe({},$,be(be({},A),{},{axisType:s,domain:H,categoricalDomain:Y,duplicateDomain:G,originalDomain:(w=A.domain)!==null&&w!==void 0?w:J,isCategorical:x,layout:g})))},{})},eSe=function(t,n){var r=n.graphicalItems,o=n.Axis,s=n.axisType,c=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.layout,h=t.children,y=y0(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:m}),x=y.length,S=xF(g,s),N=-1;return r.reduce(function(w,A){var D=A.type.defaultProps!==void 0?be(be({},A.type.defaultProps),A.props):A.props,_=D[c],P=UK("number");if(!w[_]){N++;var O;return S?O=Yy(0,x):u&&u[_]&&u[_].hasStack?(O=AF(u[_].stackGroups,f,m),O=YC(h,O,_,s)):(O=fC(P,yF(y,r.filter(function(C){var j,k,$=c in C.props?C.props[c]:(j=C.type.defaultProps)===null||j===void 0?void 0:j[c],B="hide"in C.props?C.props.hide:(k=C.type.defaultProps)===null||k===void 0?void 0:k.hide;return $===_&&!B}),"number",g),o.defaultProps.allowDataOverflow),O=YC(h,O,_,s)),be(be({},w),{},Qe({},_,be(be({axisType:s},o.defaultProps),{},{hide:!0,orientation:va(QEe,"".concat(s,".").concat(N%2),null),domain:O,originalDomain:P,isCategorical:S,layout:g})))}return w},{})},tSe=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,s=n.AxisComp,c=n.graphicalItems,u=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.children,h="".concat(o,"Id"),y=Ua(g,s),x={};return y&&y.length?x=JEe(t,{axes:y,graphicalItems:c,axisType:o,axisIdKey:h,stackGroups:u,dataStartIndex:f,dataEndIndex:m}):c&&c.length&&(x=eSe(t,{Axis:s,graphicalItems:c,axisType:o,axisIdKey:h,stackGroups:u,dataStartIndex:f,dataEndIndex:m})),x},nSe=function(t){var n=ll(t),r=ts(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:hR(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:ky(n,r)}},x8=function(t){var n=t.children,r=t.defaultShowTooltip,o=da(n,Xd),s=0,c=0;return t.data&&t.data.length!==0&&(c=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(s=o.props.startIndex),o.props.endIndex>=0&&(c=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:c,activeTooltipIndex:-1,isTooltipActive:!!r}},rSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=ns(n&&n.type);return r&&r.indexOf("Bar")>=0})},N8=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"}},aSe=function(t,n){var r=t.props,o=t.graphicalItems,s=t.xAxisMap,c=s===void 0?{}:s,u=t.yAxisMap,f=u===void 0?{}:u,m=r.width,g=r.height,h=r.children,y=r.margin||{},x=da(h,Xd),S=da(h,Dc),N=Object.keys(f).reduce(function(O,C){var j=f[C],k=j.orientation;return!j.mirror&&!j.hide?be(be({},O),{},Qe({},k,O[k]+j.width)):O},{left:y.left||0,right:y.right||0}),w=Object.keys(c).reduce(function(O,C){var j=c[C],k=j.orientation;return!j.mirror&&!j.hide?be(be({},O),{},Qe({},k,va(O,"".concat(k))+j.height)):O},{top:y.top||0,bottom:y.bottom||0}),A=be(be({},w),N),D=A.bottom;x&&(A.bottom+=x.props.height||Xd.defaultProps.height),S&&n&&(A=Dve(A,o,r,n));var _=m-A.left-A.right,P=g-A.top-A.bottom;return be(be({brushBottom:D},A),{},{width:Math.max(_,0),height:Math.max(P,0)})},iSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},qK=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,s=o===void 0?"axis":o,c=t.validateTooltipEventTypes,u=c===void 0?["axis"]:c,f=t.axisComponents,m=t.legendContent,g=t.formatAxisMap,h=t.defaultProps,y=function(A,D){var _=D.graphicalItems,P=D.stackGroups,O=D.offset,C=D.updateId,j=D.dataStartIndex,k=D.dataEndIndex,$=A.barSize,B=A.layout,U=A.barGap,H=A.barCategoryGap,G=A.maxBarSize,Y=N8(B),J=Y.numericAxisName,q=Y.cateAxisName,z=rSe(_),K=[];return _.forEach(function(te,ne){var L=y0(A.data,{graphicalItems:[te],dataStartIndex:j,dataEndIndex:k}),Q=te.type.defaultProps!==void 0?be(be({},te.type.defaultProps),te.props):te.props,W=Q.dataKey,ae=Q.maxBarSize,ge=Q["".concat(J,"Id")],we=Q["".concat(q,"Id")],ue={},xe=f.reduce(function(ir,St){var Un,Mr,vi=D["".concat(St.axisType,"Map")],Yr=Q["".concat(St.axisType,"Id")];vi&&vi[Yr]||St.axisType==="zAxis"||Gc(!1,"Specifying a(n) ".concat(St.axisType,"Id requires a corresponding ").concat(St.axisType,"Id on the targeted graphical component ").concat((Un=te==null||(Mr=te.type)===null||Mr===void 0?void 0:Mr.displayName)!==null&&Un!==void 0?Un:""));var bi=vi[Yr];return be(be({},ir),{},Qe(Qe({},St.axisType,bi),"".concat(St.axisType,"Ticks"),ts(bi)))},ue),me=xe[q],ye=xe["".concat(q,"Ticks")],de=P&&P[ge]&&P[ge].hasStack&&Vve(te,P[ge].stackGroups),ie=ns(te.type).indexOf("Bar")>=0,ze=ky(me,ye),Ne=[],ut=z&&Ave({barSize:$,stackGroups:P,totalSize:iSe(xe,q)});if(ie){var Ve,tt,zn=ot(ae)?G:ae,xn=(Ve=(tt=ky(me,ye,!0))!==null&&tt!==void 0?tt:zn)!==null&&Ve!==void 0?Ve:0;Ne=Ove({barGap:U,barCategoryGap:H,bandSize:xn!==ze?xn:ze,sizeList:ut[we],maxBarSize:zn}),xn!==ze&&(Ne=Ne.map(function(ir){return be(be({},ir),{},{position:be(be({},ir.position),{},{offset:ir.position.offset-xn/2})})}))}var je=te&&te.type&&te.type.getComposedData;je&&K.push({props:be(be({},je(be(be({},xe),{},{displayedData:L,props:A,dataKey:W,item:te,bandSize:ze,barPosition:Ne,offset:O,stackedData:de,layout:B,dataStartIndex:j,dataEndIndex:k}))),{},Qe(Qe(Qe({key:te.key||"item-".concat(ne)},J,xe[J]),q,xe[q]),"animationId",C)),childIndex:Rce(te,A.children),item:te})}),K},x=function(A,D){var _=A.props,P=A.dataStartIndex,O=A.dataEndIndex,C=A.updateId;if(!O2({props:_}))return null;var j=_.children,k=_.layout,$=_.stackOffset,B=_.data,U=_.reverseStackOrder,H=N8(k),G=H.numericAxisName,Y=H.cateAxisName,J=Ua(j,r),q=Lve(B,J,"".concat(G,"Id"),"".concat(Y,"Id"),$,U),z=f.reduce(function(Q,W){var ae="".concat(W.axisType,"Map");return be(be({},Q),{},Qe({},ae,tSe(_,be(be({},W),{},{graphicalItems:J,stackGroups:W.axisType===G&&q,dataStartIndex:P,dataEndIndex:O}))))},{}),K=aSe(be(be({},z),{},{props:_,graphicalItems:J}),D?.legendBBox);Object.keys(z).forEach(function(Q){z[Q]=g(_,z[Q],K,Q.replace("Map",""),n)});var te=z["".concat(Y,"Map")],ne=nSe(te),L=y(_,be(be({},z),{},{dataStartIndex:P,dataEndIndex:O,updateId:C,graphicalItems:J,stackGroups:q,offset:K}));return be(be({formattedGraphicalItems:L,graphicalItems:J,offset:K,stackGroups:q},ne),z)},S=(function(w){function A(D){var _,P,O;return VEe(this,A),O=zEe(this,A,[D]),Qe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Qe(O,"accessibilityManager",new SEe),Qe(O,"handleLegendBBoxUpdate",function(C){if(C){var j=O.state,k=j.dataStartIndex,$=j.dataEndIndex,B=j.updateId;O.setState(be({legendBBox:C},x({props:O.props,dataStartIndex:k,dataEndIndex:$,updateId:B},be(be({},O.state),{},{legendBBox:C}))))}}),Qe(O,"handleReceiveSyncEvent",function(C,j,k){if(O.props.syncId===C){if(k===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(j)}}),Qe(O,"handleBrushChange",function(C){var j=C.startIndex,k=C.endIndex;if(j!==O.state.dataStartIndex||k!==O.state.dataEndIndex){var $=O.state.updateId;O.setState(function(){return be({dataStartIndex:j,dataEndIndex:k},x({props:O.props,dataStartIndex:j,dataEndIndex:k,updateId:$},O.state))}),O.triggerSyncEvent({dataStartIndex:j,dataEndIndex:k})}}),Qe(O,"handleMouseEnter",function(C){var j=O.getMouseInfo(C);if(j){var k=be(be({},j),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var $=O.props.onMouseEnter;Xe($)&&$(k,C)}}),Qe(O,"triggeredAfterMouseMove",function(C){var j=O.getMouseInfo(C),k=j?be(be({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(k),O.triggerSyncEvent(k);var $=O.props.onMouseMove;Xe($)&&$(k,C)}),Qe(O,"handleItemMouseEnter",function(C){O.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),Qe(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Qe(O,"handleMouseMove",function(C){C.persist(),O.throttleTriggeredAfterMouseMove(C)}),Qe(O,"handleMouseLeave",function(C){O.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};O.setState(j),O.triggerSyncEvent(j);var k=O.props.onMouseLeave;Xe(k)&&k(j,C)}),Qe(O,"handleOuterEvent",function(C){var j=_ce(C),k=va(O.props,"".concat(j));if(j&&Xe(k)){var $,B;/.*touch.*/i.test(j)?B=O.getMouseInfo(C.changedTouches[0]):B=O.getMouseInfo(C),k(($=B)!==null&&$!==void 0?$:{},C)}}),Qe(O,"handleClick",function(C){var j=O.getMouseInfo(C);if(j){var k=be(be({},j),{},{isTooltipActive:!0});O.setState(k),O.triggerSyncEvent(k);var $=O.props.onClick;Xe($)&&$(k,C)}}),Qe(O,"handleMouseDown",function(C){var j=O.props.onMouseDown;if(Xe(j)){var k=O.getMouseInfo(C);j(k,C)}}),Qe(O,"handleMouseUp",function(C){var j=O.props.onMouseUp;if(Xe(j)){var k=O.getMouseInfo(C);j(k,C)}}),Qe(O,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),Qe(O,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseDown(C.changedTouches[0])}),Qe(O,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&O.handleMouseUp(C.changedTouches[0])}),Qe(O,"handleDoubleClick",function(C){var j=O.props.onDoubleClick;if(Xe(j)){var k=O.getMouseInfo(C);j(k,C)}}),Qe(O,"handleContextMenu",function(C){var j=O.props.onContextMenu;if(Xe(j)){var k=O.getMouseInfo(C);j(k,C)}}),Qe(O,"triggerSyncEvent",function(C){O.props.syncId!==void 0&&VD.emit($D,O.props.syncId,C,O.eventEmitterSymbol)}),Qe(O,"applySyncEvent",function(C){var j=O.props,k=j.layout,$=j.syncMethod,B=O.state.updateId,U=C.dataStartIndex,H=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)O.setState(be({dataStartIndex:U,dataEndIndex:H},x({props:O.props,dataStartIndex:U,dataEndIndex:H,updateId:B},O.state)));else if(C.activeTooltipIndex!==void 0){var G=C.chartX,Y=C.chartY,J=C.activeTooltipIndex,q=O.state,z=q.offset,K=q.tooltipTicks;if(!z)return;if(typeof $=="function")J=$(K,C);else if($==="value"){J=-1;for(var te=0;te<K.length;te++)if(K[te].value===C.activeLabel){J=te;break}}var ne=be(be({},z),{},{x:z.left,y:z.top}),L=Math.min(G,ne.x+ne.width),Q=Math.min(Y,ne.y+ne.height),W=K[J]&&K[J].value,ae=WC(O.state,O.props.data,J),ge=K[J]?{x:k==="horizontal"?K[J].coordinate:L,y:k==="horizontal"?Q:K[J].coordinate}:zK;O.setState(be(be({},C),{},{activeLabel:W,activeCoordinate:ge,activePayload:ae,activeTooltipIndex:J}))}else O.setState(C)}),Qe(O,"renderCursor",function(C){var j,k=O.state,$=k.isTooltipActive,B=k.activeCoordinate,U=k.activePayload,H=k.offset,G=k.activeTooltipIndex,Y=k.tooltipAxisBandSize,J=O.getTooltipEventType(),q=(j=C.props.active)!==null&&j!==void 0?j:$,z=O.props.layout,K=C.key||"_recharts-cursor";return F.createElement(REe,{key:K,activeCoordinate:B,activePayload:U,activeTooltipIndex:G,chartName:n,element:C,isActive:q,layout:z,offset:H,tooltipAxisBandSize:Y,tooltipEventType:J})}),Qe(O,"renderPolarAxis",function(C,j,k){var $=va(C,"type.axisType"),B=va(O.state,"".concat($,"Map")),U=C.type.defaultProps,H=U!==void 0?be(be({},U),C.props):C.props,G=B&&B[H["".concat($,"Id")]];return R.cloneElement(C,be(be({},G),{},{className:it($,G.className),key:C.key||"".concat(j,"-").concat(k),ticks:ts(G,!0)}))}),Qe(O,"renderPolarGrid",function(C){var j=C.props,k=j.radialLines,$=j.polarAngles,B=j.polarRadius,U=O.state,H=U.radiusAxisMap,G=U.angleAxisMap,Y=ll(H),J=ll(G),q=J.cx,z=J.cy,K=J.innerRadius,te=J.outerRadius;return R.cloneElement(C,{polarAngles:Array.isArray($)?$:ts(J,!0).map(function(ne){return ne.coordinate}),polarRadius:Array.isArray(B)?B:ts(Y,!0).map(function(ne){return ne.coordinate}),cx:q,cy:z,innerRadius:K,outerRadius:te,key:C.key||"polar-grid",radialLines:k})}),Qe(O,"renderLegend",function(){var C=O.state.formattedGraphicalItems,j=O.props,k=j.children,$=j.width,B=j.height,U=O.props.margin||{},H=$-(U.left||0)-(U.right||0),G=vF({children:k,formattedGraphicalItems:C,legendWidth:H,legendContent:m});if(!G)return null;var Y=G.item,J=v8(G,jEe);return R.cloneElement(Y,be(be({},J),{},{chartWidth:$,chartHeight:B,margin:U,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Qe(O,"renderTooltip",function(){var C,j=O.props,k=j.children,$=j.accessibilityLayer,B=da(k,si);if(!B)return null;var U=O.state,H=U.isTooltipActive,G=U.activeCoordinate,Y=U.activePayload,J=U.activeLabel,q=U.offset,z=(C=B.props.active)!==null&&C!==void 0?C:H;return R.cloneElement(B,{viewBox:be(be({},q),{},{x:q.left,y:q.top}),active:z,label:J,payload:z?Y:[],coordinate:G,accessibilityLayer:$})}),Qe(O,"renderBrush",function(C){var j=O.props,k=j.margin,$=j.data,B=O.state,U=B.offset,H=B.dataStartIndex,G=B.dataEndIndex,Y=B.updateId;return R.cloneElement(C,{key:C.key||"_recharts-brush",onChange:Mb(O.handleBrushChange,C.props.onChange),data:$,x:Oe(C.props.x)?C.props.x:U.left,y:Oe(C.props.y)?C.props.y:U.top+U.height+U.brushBottom-(k.bottom||0),width:Oe(C.props.width)?C.props.width:U.width,startIndex:H,endIndex:G,updateId:"brush-".concat(Y)})}),Qe(O,"renderReferenceElement",function(C,j,k){if(!C)return null;var $=O,B=$.clipPathId,U=O.state,H=U.xAxisMap,G=U.yAxisMap,Y=U.offset,J=C.type.defaultProps||{},q=C.props,z=q.xAxisId,K=z===void 0?J.xAxisId:z,te=q.yAxisId,ne=te===void 0?J.yAxisId:te;return R.cloneElement(C,{key:C.key||"".concat(j,"-").concat(k),xAxis:H[K],yAxis:G[ne],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:B})}),Qe(O,"renderActivePoints",function(C){var j=C.item,k=C.activePoint,$=C.basePoint,B=C.childIndex,U=C.isRange,H=[],G=j.props.key,Y=j.item.type.defaultProps!==void 0?be(be({},j.item.type.defaultProps),j.item.props):j.item.props,J=Y.activeDot,q=Y.dataKey,z=be(be({index:B,dataKey:q,cx:k.x,cy:k.y,r:4,fill:BR(j.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},Fe(J,!1)),dy(J));return H.push(A.renderActiveDot(J,z,"".concat(G,"-activePoint-").concat(B))),$?H.push(A.renderActiveDot(J,be(be({},z),{},{cx:$.x,cy:$.y}),"".concat(G,"-basePoint-").concat(B))):U&&H.push(null),H}),Qe(O,"renderGraphicChild",function(C,j,k){var $=O.filterFormatItem(C,j,k);if(!$)return null;var B=O.getTooltipEventType(),U=O.state,H=U.isTooltipActive,G=U.tooltipAxis,Y=U.activeTooltipIndex,J=U.activeLabel,q=O.props.children,z=da(q,si),K=$.props,te=K.points,ne=K.isRange,L=K.baseLine,Q=$.item.type.defaultProps!==void 0?be(be({},$.item.type.defaultProps),$.item.props):$.item.props,W=Q.activeDot,ae=Q.hide,ge=Q.activeBar,we=Q.activeShape,ue=!!(!ae&&H&&z&&(W||ge||we)),xe={};B!=="axis"&&z&&z.props.trigger==="click"?xe={onClick:Mb(O.handleItemMouseEnter,C.props.onClick)}:B!=="axis"&&(xe={onMouseLeave:Mb(O.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:Mb(O.handleItemMouseEnter,C.props.onMouseEnter)});var me=R.cloneElement(C,be(be({},$.props),xe));function ye(St){return typeof G.dataKey=="function"?G.dataKey(St.payload):null}if(ue)if(Y>=0){var de,ie;if(G.dataKey&&!G.allowDuplicatedCategory){var ze=typeof G.dataKey=="function"?ye:"payload.".concat(G.dataKey.toString());de=uy(te,ze,J),ie=ne&&L&&uy(L,ze,J)}else de=te?.[Y],ie=ne&&L&&L[Y];if(we||ge){var Ne=C.props.activeIndex!==void 0?C.props.activeIndex:Y;return[R.cloneElement(C,be(be(be({},$.props),xe),{},{activeIndex:Ne})),null,null]}if(!ot(de))return[me].concat(lf(O.renderActivePoints({item:$,activePoint:de,basePoint:ie,childIndex:Y,isRange:ne})))}else{var ut,Ve=(ut=O.getItemByXY(O.state.activeCoordinate))!==null&&ut!==void 0?ut:{graphicalItem:me},tt=Ve.graphicalItem,zn=tt.item,xn=zn===void 0?C:zn,je=tt.childIndex,ir=be(be(be({},$.props),xe),{},{activeIndex:je});return[R.cloneElement(xn,ir),null,null]}return ne?[me,null,null]:[me,null]}),Qe(O,"renderCustomized",function(C,j,k){return R.cloneElement(C,be(be({key:"recharts-customized-".concat(k)},O.props),O.state))}),Qe(O,"renderMap",{CartesianGrid:{handler:$b,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:$b},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:$b},YAxis:{handler:$b},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((_=D.id)!==null&&_!==void 0?_:yf("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=gH(O.triggeredAfterMouseMove,(P=D.throttleDelay)!==null&&P!==void 0?P:1e3/60),O.state={},O}return HEe(A,w),BEe(A,[{key:"componentDidMount",value:function(){var _,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(P=this.props.margin.top)!==null&&P!==void 0?P:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var _=this.props,P=_.children,O=_.data,C=_.height,j=_.layout,k=da(P,si);if(k){var $=k.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,U=WC(this.state,O,$,B),H=this.state.tooltipTicks[$].coordinate,G=(this.state.offset.top+C)/2,Y=j==="horizontal",J=Y?{x:H,y:G}:{y:H,x:G},q=this.state.formattedGraphicalItems.find(function(K){var te=K.item;return te.type.name==="Scatter"});q&&(J=be(be({},J),q.props.points[$].tooltipPosition),U=q.props.points[$].tooltipPayload);var z={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:B,activePayload:U,activeCoordinate:J};this.setState(z),this.renderCursor(k),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(_,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==_.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==_.margin){var O,C;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(_){MT([da(_.children,si)],[da(this.props.children,si)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var _=da(this.props.children,si);if(_&&typeof _.props.shared=="boolean"){var P=_.props.shared?"axis":"item";return u.indexOf(P)>=0?P:s}return s}},{key:"getMouseInfo",value:function(_){if(!this.container)return null;var P=this.container,O=P.getBoundingClientRect(),C=vme(O),j={chartX:Math.round(_.pageX-C.left),chartY:Math.round(_.pageY-C.top)},k=O.width/P.offsetWidth||1,$=this.inRange(j.chartX,j.chartY,k);if(!$)return null;var B=this.state,U=B.xAxisMap,H=B.yAxisMap,G=this.getTooltipEventType(),Y=y8(this.state,this.props.data,this.props.layout,$);if(G!=="axis"&&U&&H){var J=ll(U).scale,q=ll(H).scale,z=J&&J.invert?J.invert(j.chartX):null,K=q&&q.invert?q.invert(j.chartY):null;return be(be({},j),{},{xValue:z,yValue:K},Y)}return Y?be(be({},j),Y):null}},{key:"inRange",value:function(_,P){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,C=this.props.layout,j=_/O,k=P/O;if(C==="horizontal"||C==="vertical"){var $=this.state.offset,B=j>=$.left&&j<=$.left+$.width&&k>=$.top&&k<=$.top+$.height;return B?{x:j,y:k}:null}var U=this.state,H=U.angleAxisMap,G=U.radiusAxisMap;if(H&&G){var Y=ll(H);return vB({x:j,y:k},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var _=this.props.children,P=this.getTooltipEventType(),O=da(_,si),C={};O&&P==="axis"&&(O.props.trigger==="click"?C={onClick:this.handleClick}:C={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 j=dy(this.props,this.handleOuterEvent);return be(be({},j),C)}},{key:"addListener",value:function(){VD.on($D,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){VD.removeListener($D,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(_,P,O){for(var C=this.state.formattedGraphicalItems,j=0,k=C.length;j<k;j++){var $=C[j];if($.item===_||$.props.key===_.key||P===ns($.item.type)&&O===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var _=this.clipPathId,P=this.state.offset,O=P.left,C=P.top,j=P.height,k=P.width;return F.createElement("defs",null,F.createElement("clipPath",{id:_},F.createElement("rect",{x:O,y:C,height:j,width:k})))}},{key:"getXScales",value:function(){var _=this.state.xAxisMap;return _?Object.entries(_).reduce(function(P,O){var C=g8(O,2),j=C[0],k=C[1];return be(be({},P),{},Qe({},j,k.scale))},{}):null}},{key:"getYScales",value:function(){var _=this.state.yAxisMap;return _?Object.entries(_).reduce(function(P,O){var C=g8(O,2),j=C[0],k=C[1];return be(be({},P),{},Qe({},j,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(_){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[_])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(_){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[_])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(_){var P=this.state,O=P.formattedGraphicalItems,C=P.activeItem;if(O&&O.length)for(var j=0,k=O.length;j<k;j++){var $=O[j],B=$.props,U=$.item,H=U.type.defaultProps!==void 0?be(be({},U.type.defaultProps),U.props):U.props,G=ns(U.type);if(G==="Bar"){var Y=(B.data||[]).find(function(K){return Lxe(_,K)});if(Y)return{graphicalItem:$,payload:Y}}else if(G==="RadialBar"){var J=(B.data||[]).find(function(K){return vB(_,K)});if(J)return{graphicalItem:$,payload:J}}else if(u0($,C)||d0($,C)||wp($,C)){var q=i1e({graphicalItem:$,activeTooltipItem:C,itemData:H.data}),z=H.activeIndex===void 0?q:H.activeIndex;return{graphicalItem:be(be({},$),{},{childIndex:z}),payload:wp($,C)?H.data[q]:$.props.data[q]}}}return null}},{key:"render",value:function(){var _=this;if(!O2(this))return null;var P=this.props,O=P.children,C=P.className,j=P.width,k=P.height,$=P.style,B=P.compact,U=P.title,H=P.desc,G=v8(P,PEe),Y=Fe(G,!1);if(B)return F.createElement(Z7,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement(LT,Ad({},Y,{width:j,height:k,title:U,desc:H}),this.renderClipPath(),T2(O,this.renderMap)));if(this.props.accessibilityLayer){var J,q;Y.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,Y.role=(q=this.props.role)!==null&&q!==void 0?q:"application",Y.onKeyDown=function(K){_.accessibilityManager.keyboardEvent(K)},Y.onFocus=function(){_.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return F.createElement(Z7,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement("div",Ad({className:it("recharts-wrapper",C),style:be({position:"relative",cursor:"default",width:j,height:k},$)},z,{ref:function(te){_.container=te}}),F.createElement(LT,Ad({},Y,{width:j,height:k,title:U,desc:H,style:XEe}),this.renderClipPath(),T2(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(R.Component);Qe(S,"displayName",n),Qe(S,"defaultProps",be({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Qe(S,"getDerivedStateFromProps",function(w,A){var D=w.dataKey,_=w.data,P=w.children,O=w.width,C=w.height,j=w.layout,k=w.stackOffset,$=w.margin,B=A.dataStartIndex,U=A.dataEndIndex;if(A.updateId===void 0){var H=x8(w);return be(be(be({},H),{},{updateId:0},x(be(be({props:w},H),{},{updateId:0}),A)),{},{prevDataKey:D,prevData:_,prevWidth:O,prevHeight:C,prevLayout:j,prevStackOffset:k,prevMargin:$,prevChildren:P})}if(D!==A.prevDataKey||_!==A.prevData||O!==A.prevWidth||C!==A.prevHeight||j!==A.prevLayout||k!==A.prevStackOffset||!Td($,A.prevMargin)){var G=x8(w),Y={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},J=be(be({},y8(A,_,j)),{},{updateId:A.updateId+1}),q=be(be(be({},G),Y),J);return be(be(be({},q),x(be({props:w},q),A)),{},{prevDataKey:D,prevData:_,prevWidth:O,prevHeight:C,prevLayout:j,prevStackOffset:k,prevMargin:$,prevChildren:P})}if(!MT(P,A.prevChildren)){var z,K,te,ne,L=da(P,Xd),Q=L&&(z=(K=L.props)===null||K===void 0?void 0:K.startIndex)!==null&&z!==void 0?z:B,W=L&&(te=(ne=L.props)===null||ne===void 0?void 0:ne.endIndex)!==null&&te!==void 0?te:U,ae=Q!==B||W!==U,ge=!ot(_),we=ge&&!ae?A.updateId:A.updateId+1;return be(be({updateId:we},x(be(be({props:w},A),{},{updateId:we,dataStartIndex:Q,dataEndIndex:W}),A)),{},{prevChildren:P,dataStartIndex:Q,dataEndIndex:W})}return null}),Qe(S,"renderActiveDot",function(w,A,D){var _;return R.isValidElement(w)?_=R.cloneElement(w,A):Xe(w)?_=w(A):_=F.createElement(i0,A),F.createElement(Dt,{className:"recharts-active-dot",key:D},_)});var N=R.forwardRef(function(A,D){return F.createElement(S,Ad({},A,{ref:D}))});return N.displayName=S.displayName,N},oSe=qK({chartName:"PieChart",GraphicalChild:ps,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:c0},{axisType:"radiusAxis",AxisComp:s0}],formatAxisMap:Yve,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),sSe=qK({chartName:"AreaChart",GraphicalChild:so,axisComponents:[{axisType:"xAxis",AxisComp:v0},{axisType:"yAxis",AxisComp:b0}],formatAxisMap:lNe});const lSe={CN:"#3b82f6",HK:"#10b981",US:"#f59e0b",EU:"#8b5cf6",SG:"#ec4899",AE:"#f97316",ALL:"#6b7280"},cSe=Array.from({length:7},(e,t)=>({day:`${t+1}日`,approved:Math.floor(Math.random()*20+5),rejected:Math.floor(Math.random()*5+1),pending:Math.floor(Math.random()*10+2)}));function al({title:e,value:t,icon:n,sub:r,color:o="primary",trend:s}){const c={primary:"text-primary",emerald:"text-emerald-400",amber:"text-amber-400",red:"text-red-400",purple:"text-purple-400"};return b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:33",className:"border-border/50 hover:border-primary/30 transition-colors",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"p-5",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:35",className:"flex items-start justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:36",className:"flex-1",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:37",className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:37,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:38",className:`text-3xl font-bold mt-1 ${c[o]||c.primary}`,children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:38,columnNumber:13},this),r&&b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:39",className:"text-xs text-muted-foreground mt-1",children:r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:39,columnNumber:21},this),s&&b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"text-xs text-emerald-400 mt-1 flex items-center gap-1",children:[b.jsxDEV(Yz,{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:40,columnNumber:137},this),s]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:40,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:36,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:42",className:`p-2.5 rounded-xl bg-card border border-border/50 ${c[o]||c.primary}`,children:b.jsxDEV(n,{"data-loc":"client/src/pages/Dashboard.tsx:43",className:"w-5 h-5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:43,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:35,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:34,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:33,columnNumber:5},this)}function uSe(){const{data:e,isLoading:t}=at.dashboard.stats.useQuery(),{data:n}=at.dashboard.recentActivity.useQuery();if(t)return b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:57",className:"p-6 space-y-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:58",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((s,c)=>b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:60",className:"border-border/50 animate-pulse",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:61",className:"p-5 h-24"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:61,columnNumber:15},this)},c,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:60,columnNumber:13},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:58,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:57,columnNumber:7},this);const r=e,o=(r?.jurisdictionCoverage||[]).map(s=>({name:s._id,value:s.count,fill:lSe[s._id]||"#6b7280"}));return b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:75",className:"p-6 space-y-6",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:77",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:78",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/Dashboard.tsx:79",className:"text-2xl font-bold nac-gradient-text",children:"全局态势感知"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:79,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:80",className:"text-sm text-muted-foreground mt-0.5",children:"NAC 知识引擎实时监控中心"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:80,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:78,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:82",className:"flex items-center gap-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",className:"flex items-center gap-1.5 text-xs text-emerald-400",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:84",className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:84,columnNumber:13},this),"系统运行正常"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:83,columnNumber:11},this),b.jsxDEV(za,{"data-loc":"client/src/pages/Dashboard.tsx:87",variant:"outline",className:"text-xs border-border/50",children:[b.jsxDEV(Vp,{"data-loc":"client/src/pages/Dashboard.tsx:88",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:88,columnNumber:13},this),new Date().toLocaleString("zh-CN")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:87,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:82,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:77,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:95",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:96",title:"合规规则总数",value:r?.knowledgeBase?.totalRules??0,icon:T_,sub:"知识库规则条目",color:"primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:96,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:97",title:"活跃协议",value:r?.knowledgeBase?.activeProtocols??0,icon:Dh,sub:`共 ${r?.knowledgeBase?.totalProtocols??0} 个协议`,color:"emerald"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:97,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:98",title:"采集器运行",value:r?.crawlers?.active??0,icon:oy,sub:`共 ${r?.crawlers?.total??0} 个采集器`,color:"amber"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:98,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:99",title:"审批通过率",value:`${r?.approvals?.approvalRate??0}%`,icon:mi,sub:`共 ${r?.approvals?.total??0} 个案例`,color:"emerald"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:99,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:100",title:"待人工审核",value:r?.approvals?.pending??0,icon:Ic,sub:"中风险案例",color:"amber"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:100,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:101",title:"系统用户",value:r?.users?.total??0,icon:rie,sub:"NAC 注册用户",color:"purple"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:101,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:102",title:"审计日志",value:r?.audit?.total??0,icon:bl,sub:"不可篡改记录",color:"primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:102,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:103",title:"司法辖区覆盖",value:o.length,icon:Lc,sub:"已覆盖辖区数量",color:"emerald"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:103,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:95,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:107",className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:109",className:"lg:col-span-2 border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:110",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:111",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Yz,{"data-loc":"client/src/pages/Dashboard.tsx:112",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:112,columnNumber:15},this),"审批趋势近7天"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:111,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:110,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:116",children:b.jsxDEV(X$,{"data-loc":"client/src/pages/Dashboard.tsx:117",width:"100%",height:200,children:b.jsxDEV(sSe,{"data-loc":"client/src/pages/Dashboard.tsx:118",data:cSe,children:[b.jsxDEV("defs",{"data-loc":"client/src/pages/Dashboard.tsx:119",children:b.jsxDEV("linearGradient",{"data-loc":"client/src/pages/Dashboard.tsx:120",id:"colorApproved",x1:"0",y1:"0",x2:"0",y2:"1",children:[b.jsxDEV("stop",{"data-loc":"client/src/pages/Dashboard.tsx:121",offset:"5%",stopColor:"oklch(0.65 0.18 200)",stopOpacity:.3},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:121,columnNumber:21},this),b.jsxDEV("stop",{"data-loc":"client/src/pages/Dashboard.tsx:122",offset:"95%",stopColor:"oklch(0.65 0.18 200)",stopOpacity:0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:122,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:120,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:119,columnNumber:17},this),b.jsxDEV(AK,{"data-loc":"client/src/pages/Dashboard.tsx:125",strokeDasharray:"3 3",stroke:"oklch(0.22 0.020 250)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:125,columnNumber:17},this),b.jsxDEV(v0,{"data-loc":"client/src/pages/Dashboard.tsx:126",dataKey:"day",tick:{fontSize:11,fill:"oklch(0.60 0.015 250)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:126,columnNumber:17},this),b.jsxDEV(b0,{"data-loc":"client/src/pages/Dashboard.tsx:127",tick:{fontSize:11,fill:"oklch(0.60 0.015 250)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:127,columnNumber:17},this),b.jsxDEV(si,{"data-loc":"client/src/pages/Dashboard.tsx:128",contentStyle:{background:"oklch(0.14 0.018 250)",border:"1px solid oklch(0.22 0.020 250)",borderRadius:"8px",fontSize:"12px"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:128,columnNumber:17},this),b.jsxDEV(so,{"data-loc":"client/src/pages/Dashboard.tsx:129",type:"monotone",dataKey:"approved",stroke:"oklch(0.65 0.18 200)",fill:"url(#colorApproved)",strokeWidth:2,name:"通过"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:129,columnNumber:17},this),b.jsxDEV(so,{"data-loc":"client/src/pages/Dashboard.tsx:130",type:"monotone",dataKey:"rejected",stroke:"oklch(0.60 0.22 25)",fill:"none",strokeWidth:2,strokeDasharray:"4 2",name:"拒绝"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:130,columnNumber:17},this),b.jsxDEV(so,{"data-loc":"client/src/pages/Dashboard.tsx:131",type:"monotone",dataKey:"pending",stroke:"oklch(0.65 0.20 50)",fill:"none",strokeWidth:2,strokeDasharray:"4 2",name:"待审"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:131,columnNumber:17},this),b.jsxDEV(Dc,{"data-loc":"client/src/pages/Dashboard.tsx:132",wrapperStyle:{fontSize:"11px"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:132,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:118,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:117,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:116,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:109,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:140",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:141",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Lc,{"data-loc":"client/src/pages/Dashboard.tsx:142",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:142,columnNumber:15},this),"司法辖区覆盖"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:141,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:140,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:146",children:o.length>0?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(X$,{"data-loc":"client/src/pages/Dashboard.tsx:149",width:"100%",height:140,children:b.jsxDEV(oSe,{"data-loc":"client/src/pages/Dashboard.tsx:150",children:[b.jsxDEV(ps,{"data-loc":"client/src/pages/Dashboard.tsx:151",data:o,cx:"50%",cy:"50%",innerRadius:40,outerRadius:65,paddingAngle:3,dataKey:"value",children:o.map((s,c)=>b.jsxDEV(Gx,{"data-loc":"client/src/pages/Dashboard.tsx:153",fill:s.fill},c,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:153,columnNumber:25},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:151,columnNumber:21},this),b.jsxDEV(si,{"data-loc":"client/src/pages/Dashboard.tsx:156",contentStyle:{background:"oklch(0.14 0.018 250)",border:"1px solid oklch(0.22 0.020 250)",borderRadius:"8px",fontSize:"11px"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:156,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:150,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:149,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:159",className:"grid grid-cols-2 gap-1 mt-2",children:o.map(s=>b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"flex items-center gap-1.5 text-xs",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:162",className:"w-2 h-2 rounded-full shrink-0",style:{background:s.fill}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:162,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"text-muted-foreground",children:s.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:163,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Dashboard.tsx:164",className:"font-medium ml-auto",children:s.value},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:164,columnNumber:23},this)]},s.name,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:161,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:159,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:148,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:170",className:"h-[180px] flex items-center justify-center text-muted-foreground text-sm",children:"暂无数据"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:170,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:146,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:107,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:179",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:180",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(tie,{"data-loc":"client/src/pages/Dashboard.tsx:182",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:182,columnNumber:15},this),"系统服务状态"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:181,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:180,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:186",className:"space-y-2",children:[{name:"MongoDB 知识引擎",status:r?.systemStatus?.mongodb==="connected"?"active":"error",desc:"nac_knowledge_engine"},{name:"MySQL 认证数据库",status:r?.systemStatus?.mysql==="connected"?"active":"error",desc:"nac_id"},{name:"Charter 编译服务",status:"active",desc:"charter.newassetchain.io"},{name:"CNNL 宪政服务",status:"active",desc:"cnnl.newassetchain.io"},{name:"ACC-20 审批引擎",status:"active",desc:"acc20.newassetchain.io"},{name:"GNACS 分类服务",status:"active",desc:"gnacs.newassetchain.io"}].map(s=>b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:195",className:"flex items-center justify-between py-1.5 border-b border-border/20 last:border-0",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:196",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:197",className:"text-sm font-medium",children:s.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:197,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:198",className:"text-xs text-muted-foreground",children:s.desc},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:198,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:196,columnNumber:17},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Dashboard.tsx:200",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${s.status}`,children:s.status==="active"?"运行中":"异常"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:200,columnNumber:17},this)]},s.name,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:195,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:179,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:210",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:211",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(oy,{"data-loc":"client/src/pages/Dashboard.tsx:212",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:212,columnNumber:15},this),"最近操作记录"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:211,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:210,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:216",children:n&&n.length>0?b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:218",className:"space-y-2 max-h-[280px] overflow-y-auto",children:n.slice(0,10).map((s,c)=>b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"flex items-start gap-2 py-1.5 border-b border-border/20 last:border-0",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:221",className:"w-1.5 h-1.5 rounded-full bg-primary mt-1.5 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:221,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:222",className:"flex-1 min-w-0",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:223",className:"text-xs font-medium truncate",children:s.action},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:223,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:224",className:"text-xs text-muted-foreground truncate",children:s.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:224,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:222,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:226",className:"text-xs text-muted-foreground shrink-0",children:new Date(s.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:226,columnNumber:21},this)]},c,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:220,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:218,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:233",className:"h-[280px] flex items-center justify-center text-muted-foreground text-sm",children:"暂无操作记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:233,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:216,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:209,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:177,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:75,columnNumber:5},this)}function w8(e,[t,n]){return Math.min(n,Math.max(t,e))}function HK(e){const t=R.useRef({value:e,previous:e});return R.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var dSe=[" ","Enter","ArrowUp","ArrowDown"],fSe=[" ","Enter"],Qc="Select",[x0,N0,mSe]=$_(Qc),[Af]=ds(Qc,[mSe,mf]),w0=mf(),[hSe,Sl]=Af(Qc),[pSe,gSe]=Af(Qc),FK=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:c,defaultValue:u,onValueChange:f,dir:m,name:g,autoComplete:h,disabled:y,required:x,form:S}=e,N=w0(t),[w,A]=R.useState(null),[D,_]=R.useState(null),[P,O]=R.useState(!1),C=B_(m),[j,k]=kc({prop:r,defaultProp:o??!1,onChange:s,caller:Qc}),[$,B]=kc({prop:c,defaultProp:u,onChange:f,caller:Qc}),U=R.useRef(null),H=w?S||!!w.closest("form"):!0,[G,Y]=R.useState(new Set),J=Array.from(G).map(q=>q.props.value).join(";");return le.jsx(b_,{...N,children:le.jsxs(hSe,{required:x,scope:t,trigger:w,onTriggerChange:A,valueNode:D,onValueNodeChange:_,valueNodeHasChildren:P,onValueNodeHasChildrenChange:O,contentId:ro(),value:$,onValueChange:B,open:j,onOpenChange:k,dir:C,triggerPointerDownPosRef:U,disabled:y,children:[le.jsx(x0.Provider,{scope:t,children:le.jsx(pSe,{scope:e.__scopeSelect,onNativeOptionAdd:R.useCallback(q=>{Y(z=>new Set(z).add(q))},[]),onNativeOptionRemove:R.useCallback(q=>{Y(z=>{const K=new Set(z);return K.delete(q),K})},[]),children:n})}),H?le.jsxs(mG,{"aria-hidden":!0,required:x,tabIndex:-1,name:g,autoComplete:h,value:$,onChange:q=>B(q.target.value),disabled:y,form:S,children:[$===void 0?le.jsx("option",{value:""}):null,Array.from(G)]},J):null]})})};FK.displayName=Qc;var KK="SelectTrigger",GK=R.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=w0(n),c=Sl(KK,n),u=c.disabled||r,f=Mt(t,c.onTriggerChange),m=N0(n),g=R.useRef("touch"),[h,y,x]=pG(N=>{const w=m().filter(_=>!_.disabled),A=w.find(_=>_.value===c.value),D=gG(w,N,A);D!==void 0&&c.onValueChange(D.value)}),S=N=>{u||(c.onOpenChange(!0),x()),N&&(c.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return le.jsx(y_,{asChild:!0,...s,children:le.jsx(gt.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":hG(c.value)?"":void 0,...o,ref:f,onClick:Ie(o.onClick,N=>{N.currentTarget.focus(),g.current!=="mouse"&&S(N)}),onPointerDown:Ie(o.onPointerDown,N=>{g.current=N.pointerType;const w=N.target;w.hasPointerCapture(N.pointerId)&&w.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(S(N),N.preventDefault())}),onKeyDown:Ie(o.onKeyDown,N=>{const w=h.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&y(N.key),!(w&&N.key===" ")&&dSe.includes(N.key)&&(S(),N.preventDefault())})})})});GK.displayName=KK;var YK="SelectValue",QK=R.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:c="",...u}=e,f=Sl(YK,n),{onValueNodeHasChildrenChange:m}=f,g=s!==void 0,h=Mt(t,f.onValueNodeChange);return vr(()=>{m(g)},[m,g]),le.jsx(gt.span,{...u,ref:h,style:{pointerEvents:"none"},children:hG(f.value)?le.jsx(le.Fragment,{children:c}):s})});QK.displayName=YK;var vSe="SelectIcon",XK=R.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return le.jsx(gt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});XK.displayName=vSe;var bSe="SelectPortal",WK=e=>le.jsx(Lp,{asChild:!0,...e});WK.displayName=bSe;var Xc="SelectContent",ZK=R.forwardRef((e,t)=>{const n=Sl(Xc,e.__scopeSelect),[r,o]=R.useState();if(vr(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Pp.createPortal(le.jsx(JK,{scope:e.__scopeSelect,children:le.jsx(x0.Slot,{scope:e.__scopeSelect,children:le.jsx("div",{children:e.children})})}),s):null}return le.jsx(eG,{...e,ref:t})});ZK.displayName=Xc;var oi=10,[JK,Al]=Af(Xc),ySe="SelectContentImpl",xSe=Pc("SelectContent.RemoveScroll"),eG=R.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:f,align:m,alignOffset:g,arrowPadding:h,collisionBoundary:y,collisionPadding:x,sticky:S,hideWhenDetached:N,avoidCollisions:w,...A}=e,D=Sl(Xc,n),[_,P]=R.useState(null),[O,C]=R.useState(null),j=Mt(t,ue=>P(ue)),[k,$]=R.useState(null),[B,U]=R.useState(null),H=N0(n),[G,Y]=R.useState(!1),J=R.useRef(!1);R.useEffect(()=>{if(_)return M_(_)},[_]),P_();const q=R.useCallback(ue=>{const[xe,...me]=H().map(ie=>ie.ref.current),[ye]=me.slice(-1),de=document.activeElement;for(const ie of ue)if(ie===de||(ie?.scrollIntoView({block:"nearest"}),ie===xe&&O&&(O.scrollTop=0),ie===ye&&O&&(O.scrollTop=O.scrollHeight),ie?.focus(),document.activeElement!==de))return},[H,O]),z=R.useCallback(()=>q([k,_]),[q,k,_]);R.useEffect(()=>{G&&z()},[G,z]);const{onOpenChange:K,triggerPointerDownPosRef:te}=D;R.useEffect(()=>{if(_){let ue={x:0,y:0};const xe=ye=>{ue={x:Math.abs(Math.round(ye.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(ye.pageY)-(te.current?.y??0))}},me=ye=>{ue.x<=10&&ue.y<=10?ye.preventDefault():_.contains(ye.target)||K(!1),document.removeEventListener("pointermove",xe),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",me,{capture:!0})}}},[_,K,te]),R.useEffect(()=>{const ue=()=>K(!1);return window.addEventListener("blur",ue),window.addEventListener("resize",ue),()=>{window.removeEventListener("blur",ue),window.removeEventListener("resize",ue)}},[K]);const[ne,L]=pG(ue=>{const xe=H().filter(de=>!de.disabled),me=xe.find(de=>de.ref.current===document.activeElement),ye=gG(xe,ue,me);ye&&setTimeout(()=>ye.ref.current.focus())}),Q=R.useCallback((ue,xe,me)=>{const ye=!J.current&&!me;(D.value!==void 0&&D.value===xe||ye)&&($(ue),ye&&(J.current=!0))},[D.value]),W=R.useCallback(()=>_?.focus(),[_]),ae=R.useCallback((ue,xe,me)=>{const ye=!J.current&&!me;(D.value!==void 0&&D.value===xe||ye)&&U(ue)},[D.value]),ge=r==="popper"?ZC:tG,we=ge===ZC?{side:u,sideOffset:f,align:m,alignOffset:g,arrowPadding:h,collisionBoundary:y,collisionPadding:x,sticky:S,hideWhenDetached:N,avoidCollisions:w}:{};return le.jsx(JK,{scope:n,content:_,viewport:O,onViewportChange:C,itemRefCallback:Q,selectedItem:k,onItemLeave:W,itemTextRefCallback:ae,focusSelectedItem:z,selectedItemText:B,position:r,isPositioned:G,searchRef:ne,children:le.jsx(_x,{as:xSe,allowPinchZoom:!0,children:le.jsx(Tx,{asChild:!0,trapped:D.open,onMountAutoFocus:ue=>{ue.preventDefault()},onUnmountAutoFocus:Ie(o,ue=>{D.trigger?.focus({preventScroll:!0}),ue.preventDefault()}),children:le.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:ue=>ue.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:le.jsx(ge,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:ue=>ue.preventDefault(),...A,...we,onPlaced:()=>Y(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Ie(A.onKeyDown,ue=>{const xe=ue.ctrlKey||ue.altKey||ue.metaKey;if(ue.key==="Tab"&&ue.preventDefault(),!xe&&ue.key.length===1&&L(ue.key),["ArrowUp","ArrowDown","Home","End"].includes(ue.key)){let ye=H().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(ue.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ue.key)){const de=ue.target,ie=ye.indexOf(de);ye=ye.slice(ie+1)}setTimeout(()=>q(ye)),ue.preventDefault()}})})})})})})});eG.displayName=ySe;var NSe="SelectItemAlignedPosition",tG=R.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Sl(Xc,n),c=Al(Xc,n),[u,f]=R.useState(null),[m,g]=R.useState(null),h=Mt(t,j=>g(j)),y=N0(n),x=R.useRef(!1),S=R.useRef(!0),{viewport:N,selectedItem:w,selectedItemText:A,focusSelectedItem:D}=c,_=R.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&m&&N&&w&&A){const j=s.trigger.getBoundingClientRect(),k=m.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),B=A.getBoundingClientRect();if(s.dir!=="rtl"){const de=B.left-k.left,ie=$.left-de,ze=j.left-ie,Ne=j.width+ze,ut=Math.max(Ne,k.width),Ve=window.innerWidth-oi,tt=w8(ie,[oi,Math.max(oi,Ve-ut)]);u.style.minWidth=Ne+"px",u.style.left=tt+"px"}else{const de=k.right-B.right,ie=window.innerWidth-$.right-de,ze=window.innerWidth-j.right-ie,Ne=j.width+ze,ut=Math.max(Ne,k.width),Ve=window.innerWidth-oi,tt=w8(ie,[oi,Math.max(oi,Ve-ut)]);u.style.minWidth=Ne+"px",u.style.right=tt+"px"}const U=y(),H=window.innerHeight-oi*2,G=N.scrollHeight,Y=window.getComputedStyle(m),J=parseInt(Y.borderTopWidth,10),q=parseInt(Y.paddingTop,10),z=parseInt(Y.borderBottomWidth,10),K=parseInt(Y.paddingBottom,10),te=J+q+G+K+z,ne=Math.min(w.offsetHeight*5,te),L=window.getComputedStyle(N),Q=parseInt(L.paddingTop,10),W=parseInt(L.paddingBottom,10),ae=j.top+j.height/2-oi,ge=H-ae,we=w.offsetHeight/2,ue=w.offsetTop+we,xe=J+q+ue,me=te-xe;if(xe<=ae){const de=U.length>0&&w===U[U.length-1].ref.current;u.style.bottom="0px";const ie=m.clientHeight-N.offsetTop-N.offsetHeight,ze=Math.max(ge,we+(de?W:0)+ie+z),Ne=xe+ze;u.style.height=Ne+"px"}else{const de=U.length>0&&w===U[0].ref.current;u.style.top="0px";const ze=Math.max(ae,J+N.offsetTop+(de?Q:0)+we)+me;u.style.height=ze+"px",N.scrollTop=xe-ae+N.offsetTop}u.style.margin=`${oi}px 0`,u.style.minHeight=ne+"px",u.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>x.current=!0)}},[y,s.trigger,s.valueNode,u,m,N,w,A,s.dir,r]);vr(()=>_(),[_]);const[P,O]=R.useState();vr(()=>{m&&O(window.getComputedStyle(m).zIndex)},[m]);const C=R.useCallback(j=>{j&&S.current===!0&&(_(),D?.(),S.current=!1)},[_,D]);return le.jsx(ESe,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:x,onScrollButtonChange:C,children:le.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:le.jsx(gt.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});tG.displayName=NSe;var wSe="SelectPopperPosition",ZC=R.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=oi,...s}=e,c=w0(n);return le.jsx(x_,{...c,...s,ref:t,align:r,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)"}})});ZC.displayName=wSe;var[ESe,WR]=Af(Xc,{}),JC="SelectViewport",nG=R.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Al(JC,n),c=WR(JC,n),u=Mt(t,s.onViewportChange),f=R.useRef(0);return le.jsxs(le.Fragment,{children:[le.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:r}),le.jsx(x0.Slot,{scope:n,children:le.jsx(gt.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ie(o.onScroll,m=>{const g=m.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:y}=c;if(y?.current&&h){const x=Math.abs(f.current-g.scrollTop);if(x>0){const S=window.innerHeight-oi*2,N=parseFloat(h.style.minHeight),w=parseFloat(h.style.height),A=Math.max(N,w);if(A<S){const D=A+x,_=Math.min(S,D),P=D-_;h.style.height=_+"px",h.style.bottom==="0px"&&(g.scrollTop=P>0?P:0,h.style.justifyContent="flex-end")}}}f.current=g.scrollTop})})})]})});nG.displayName=JC;var rG="SelectGroup",[SSe,ASe]=Af(rG),OSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ro();return le.jsx(SSe,{scope:n,id:o,children:le.jsx(gt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});OSe.displayName=rG;var aG="SelectLabel",DSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ASe(aG,n);return le.jsx(gt.div,{id:o.id,...r,ref:t})});DSe.displayName=aG;var cx="SelectItem",[TSe,iG]=Af(cx),oG=R.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...c}=e,u=Sl(cx,n),f=Al(cx,n),m=u.value===r,[g,h]=R.useState(s??""),[y,x]=R.useState(!1),S=Mt(t,D=>f.itemRefCallback?.(D,r,o)),N=ro(),w=R.useRef("touch"),A=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return le.jsx(TSe,{scope:n,value:r,disabled:o,textId:N,isSelected:m,onItemTextChange:R.useCallback(D=>{h(_=>_||(D?.textContent??"").trim())},[]),children:le.jsx(x0.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:le.jsx(gt.div,{role:"option","aria-labelledby":N,"data-highlighted":y?"":void 0,"aria-selected":m&&y,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:S,onFocus:Ie(c.onFocus,()=>x(!0)),onBlur:Ie(c.onBlur,()=>x(!1)),onClick:Ie(c.onClick,()=>{w.current!=="mouse"&&A()}),onPointerUp:Ie(c.onPointerUp,()=>{w.current==="mouse"&&A()}),onPointerDown:Ie(c.onPointerDown,D=>{w.current=D.pointerType}),onPointerMove:Ie(c.onPointerMove,D=>{w.current=D.pointerType,o?f.onItemLeave?.():w.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(c.onPointerLeave,D=>{D.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Ie(c.onKeyDown,D=>{f.searchRef?.current!==""&&D.key===" "||(fSe.includes(D.key)&&A(),D.key===" "&&D.preventDefault())})})})})});oG.displayName=cx;var wh="SelectItemText",sG=R.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,c=Sl(wh,n),u=Al(wh,n),f=iG(wh,n),m=gSe(wh,n),[g,h]=R.useState(null),y=Mt(t,A=>h(A),f.onItemTextChange,A=>u.itemTextRefCallback?.(A,f.value,f.disabled)),x=g?.textContent,S=R.useMemo(()=>le.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:N,onNativeOptionRemove:w}=m;return vr(()=>(N(S),()=>w(S)),[N,w,S]),le.jsxs(le.Fragment,{children:[le.jsx(gt.span,{id:f.textId,...s,ref:y}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Pp.createPortal(s.children,c.valueNode):null]})});sG.displayName=wh;var lG="SelectItemIndicator",cG=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return iG(lG,n).isSelected?le.jsx(gt.span,{"aria-hidden":!0,...r,ref:t}):null});cG.displayName=lG;var e_="SelectScrollUpButton",uG=R.forwardRef((e,t)=>{const n=Al(e_,e.__scopeSelect),r=WR(e_,e.__scopeSelect),[o,s]=R.useState(!1),c=Mt(t,r.onScrollButtonChange);return vr(()=>{if(n.viewport&&n.isPositioned){let u=function(){const m=f.scrollTop>0;s(m)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?le.jsx(fG,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});uG.displayName=e_;var t_="SelectScrollDownButton",dG=R.forwardRef((e,t)=>{const n=Al(t_,e.__scopeSelect),r=WR(t_,e.__scopeSelect),[o,s]=R.useState(!1),c=Mt(t,r.onScrollButtonChange);return vr(()=>{if(n.viewport&&n.isPositioned){let u=function(){const m=f.scrollHeight-f.clientHeight,g=Math.ceil(f.scrollTop)<m;s(g)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?le.jsx(fG,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});dG.displayName=t_;var fG=R.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Al("SelectScrollButton",n),c=R.useRef(null),u=N0(n),f=R.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return R.useEffect(()=>()=>f(),[f]),vr(()=>{u().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),le.jsx(gt.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Ie(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Ie(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Ie(o.onPointerLeave,()=>{f()})})}),CSe="SelectSeparator",_Se=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return le.jsx(gt.div,{"aria-hidden":!0,...r,ref:t})});_Se.displayName=CSe;var n_="SelectArrow",RSe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=w0(n),s=Sl(n_,n),c=Al(n_,n);return s.open&&c.position==="popper"?le.jsx(N_,{...o,...r,ref:t}):null});RSe.displayName=n_;var jSe="SelectBubbleInput",mG=R.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=R.useRef(null),s=Mt(r,o),c=HK(t);return R.useEffect(()=>{const u=o.current;if(!u)return;const f=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&g){const h=new Event("change",{bubbles:!0});g.call(u,t),u.dispatchEvent(h)}},[c,t]),le.jsx(gt.select,{...n,style:{...gz,...n.style},ref:s,defaultValue:t})});mG.displayName=jSe;function hG(e){return e===""||e===void 0}function pG(e){const t=lo(e),n=R.useRef(""),r=R.useRef(0),o=R.useCallback(c=>{const u=n.current+c;t(u),(function f(m){n.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(u)},[t]),s=R.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return R.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function gG(e,t,n){const o=t.length>1&&Array.from(t).every(m=>m===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=PSe(e,Math.max(s,0));o.length===1&&(c=c.filter(m=>m!==n));const f=c.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function PSe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var MSe=FK,kSe=GK,LSe=QK,ISe=XK,VSe=WK,$Se=ZK,BSe=nG,zSe=oG,USe=sG,qSe=cG,HSe=uG,FSe=dG;function mr({...e}){return b.jsxDEV(MSe,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:10,columnNumber:10},this)}function hr({...e}){return b.jsxDEV(LSe,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:22,columnNumber:10},this)}function pr({className:e,size:t="default",children:n,...r}){return b.jsxDEV(kSe,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:wt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,b.jsxDEV(ISe,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:b.jsxDEV(D_,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:45,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:44,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:34,columnNumber:5},this)}function gr({className:e,children:t,position:n="popper",align:r="center",...o}){return b.jsxDEV(VSe,{"data-loc":"client/src/components/ui/select.tsx:59",children:b.jsxDEV($Se,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:wt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...o,children:[b.jsxDEV(KSe,{"data-loc":"client/src/components/ui/select.tsx:72"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:72,columnNumber:9},this),b.jsxDEV(BSe,{"data-loc":"client/src/components/ui/select.tsx:73",className:wt("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:73,columnNumber:9},this),b.jsxDEV(GSe,{"data-loc":"client/src/components/ui/select.tsx:82"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:82,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:60,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:59,columnNumber:5},this)}function _t({className:e,children:t,...n}){return b.jsxDEV(zSe,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:wt("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[b.jsxDEV("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:b.jsxDEV(qSe,{"data-loc":"client/src/components/ui/select.tsx:116",children:b.jsxDEV(zae,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:117,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:116,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:115,columnNumber:7},this),b.jsxDEV(USe,{"data-loc":"client/src/components/ui/select.tsx:120",children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:120,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:107,columnNumber:5},this)}function KSe({className:e,...t}){return b.jsxDEV(HSe,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:wt("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsxDEV(Uz,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:151,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:143,columnNumber:5},this)}function GSe({className:e,...t}){return b.jsxDEV(FSe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:wt("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsxDEV(D_,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:169,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:161,columnNumber:5},this)}function cf({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...o}){const s=V_(),{onCompositionStart:c,onCompositionEnd:u,onKeyDown:f}=CU({onKeyDown:m=>{const g=m.nativeEvent.isComposing||s.justEndedComposing();m.key==="Enter"&&!m.shiftKey&&g||t?.(m)},onCompositionStart:m=>{s.setComposing(!0),n?.(m)},onCompositionEnd:m=>{s.markCompositionEnd(),setTimeout(()=>{s.setComposing(!1)},100),r?.(m)}});return b.jsxDEV("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:wt("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:c,onCompositionEnd:u,onKeyDown:f,...o},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/textarea.tsx",lineNumber:53,columnNumber:5},this)}var E0="Switch",[YSe]=ds(E0),[QSe,XSe]=YSe(E0),vG=R.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:c,disabled:u,value:f="on",onCheckedChange:m,form:g,...h}=e,[y,x]=R.useState(null),S=Mt(t,_=>x(_)),N=R.useRef(!1),w=y?g||!!y.closest("form"):!0,[A,D]=kc({prop:o,defaultProp:s??!1,onChange:m,caller:E0});return le.jsxs(QSe,{scope:n,checked:A,disabled:u,children:[le.jsx(gt.button,{type:"button",role:"switch","aria-checked":A,"aria-required":c,"data-state":NG(A),"data-disabled":u?"":void 0,disabled:u,value:f,...h,ref:S,onClick:Ie(e.onClick,_=>{D(P=>!P),w&&(N.current=_.isPropagationStopped(),N.current||_.stopPropagation())})}),w&&le.jsx(xG,{control:y,bubbles:!N.current,name:r,value:f,checked:A,required:c,disabled:u,form:g,style:{transform:"translateX(-100%)"}})]})});vG.displayName=E0;var bG="SwitchThumb",yG=R.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=XSe(bG,n);return le.jsx(gt.span,{"data-state":NG(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});yG.displayName=bG;var WSe="SwitchBubbleInput",xG=R.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const c=R.useRef(null),u=Mt(c,s),f=HK(n),m=oz(t);return R.useEffect(()=>{const g=c.current;if(!g)return;const h=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(h,"checked").set;if(f!==n&&x){const S=new Event("click",{bubbles:r});x.call(g,n),g.dispatchEvent(S)}},[f,n,r]),le.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...o.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xG.displayName=WSe;function NG(e){return e?"checked":"unchecked"}var ZSe=vG,JSe=yG;function E8({className:e,...t}){return b.jsxDEV(ZSe,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:wt("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:b.jsxDEV(JSe,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:wt("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/switch.tsx",lineNumber:19,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/switch.tsx",lineNumber:11,columnNumber:5},this)}const S8=["CN","HK","US","EU","SG","AE","ALL"],A8=["RealEstate","Securities","DigitalToken","Commodity","IntellectualProperty","Equipment","ALL"],zD={zh:"🇨🇳",en:"🇺🇸",ar:"🇸🇦",ja:"🇯🇵",ko:"🇰🇷",fr:"🇫🇷",ru:"🇷🇺"},UD={zh:"中文",en:"English",ar:"العربية",ja:"日本語",ko:"한국어",fr:"Français",ru:"Русский"};function eAe(){const{t:e,i18n:t}=jp(),n=t.language.split("-")[0],r=["zh","en","ar","ja","ko","fr","ru"].includes(n)?n:"zh",[o,s]=R.useState(""),[c,u]=R.useState(""),[f,m]=R.useState(""),[g,h]=R.useState(1),[y,x]=R.useState(!1),[S,N]=R.useState(null),[w,A]=R.useState(null),[D,_]=R.useState({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0}),P=at.useUtils(),{data:O,isLoading:C,refetch:j}=at.knowledgeBase.list.useQuery({jurisdiction:o||void 0,assetType:c||void 0,status:f||void 0,page:g,pageSize:15,lang:r}),k=at.knowledgeBase.create.useMutation({onSuccess:()=>{Nt.success(e("knowledgeBase.ruleCreated","规则创建成功AI翻译已自动生成")),x(!1),P.knowledgeBase.list.invalidate(),_({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0})},onError:z=>Nt.error(z.message)}),$=at.knowledgeBase.toggleStatus.useMutation({onSuccess:()=>{Nt.success(e("common.statusUpdated","状态已更新")),P.knowledgeBase.list.invalidate()},onError:z=>Nt.error(z.message)}),B=at.knowledgeBase.delete.useMutation({onSuccess:()=>{Nt.success(e("common.deleted","规则已删除")),P.knowledgeBase.list.invalidate()},onError:z=>Nt.error(z.message)}),U=at.knowledgeBase.translateRule.useMutation({onSuccess:z=>{Nt.success(e("knowledgeBase.translateSuccess","AI翻译完成已更新七种语言")),P.knowledgeBase.list.invalidate(),A(null)},onError:z=>{Nt.error(z.message),A(null)}}),H=at.knowledgeBase.migrateAllToMultiLang.useMutation({onSuccess:z=>{Nt.success(`批量翻译完成,已迁移 ${z.migratedCount} 条规则`),P.knowledgeBase.list.invalidate()},onError:z=>Nt.error(z.message)}),G=O?.items||[],Y=O?.total||0,J=Math.ceil(Y/15),q=z=>{A(z),U.mutate({id:z})};return b.jsxDEV(A_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:100",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:101",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:102",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:103",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/KnowledgeBase.tsx:104",className:"text-2xl font-bold nac-gradient-text",children:e("nav.knowledgeBase","知识库管理")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:104,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:105",className:"text-sm text-muted-foreground mt-0.5",children:e("knowledgeBase.subtitle","管理合规规则、法规条文与交易细则 — 支持七种语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:105,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:103,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:107",className:"flex items-center gap-2",children:[b.jsxDEV(AE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:108",children:[b.jsxDEV(OE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:109",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:110",variant:"outline",size:"sm",onClick:()=>H.mutate(),disabled:H.isPending,className:"border-border/50",children:[H.isPending?b.jsxDEV(Fr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:48},this):b.jsxDEV(Lc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:152},this),e("knowledgeBase.batchTranslate","批量AI翻译")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:110,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:109,columnNumber:15},this),b.jsxDEV(DE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:120",children:"为所有缺少多语言翻译的规则自动生成七语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:120,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:108,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:122",variant:"outline",size:"sm",onClick:()=>j(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:123",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:123,columnNumber:15},this),e("common.refresh","刷新")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:122,columnNumber:13},this),b.jsxDEV($c,{"data-loc":"client/src/pages/KnowledgeBase.tsx:125",open:y,onOpenChange:x,children:[b.jsxDEV(Fh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:126",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:127",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV(Ox,{"data-loc":"client/src/pages/KnowledgeBase.tsx:128",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:128,columnNumber:19},this),e("knowledgeBase.addRule","新增规则")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:127,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:126,columnNumber:15},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:131",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:132",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:133",children:e("knowledgeBase.createRule","新增合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:133,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:132,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:135",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:136",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:137",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:138",className:"text-xs",children:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:138,columnNumber:23},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:139",value:D.jurisdiction,onValueChange:z=>_(K=>({...K,jurisdiction:z})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:25},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:141",className:"bg-card border-border/50",children:S8.map(z=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:142",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:142,columnNumber:51},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:141,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:139,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:137,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:146",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:147",className:"text-xs",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:147,columnNumber:23},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:148",value:D.assetType,onValueChange:z=>_(K=>({...K,assetType:z})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:25},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:150",className:"bg-card border-border/50",children:A8.map(z=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:151",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:151,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:150,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:148,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:146,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:136,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:156",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:157",className:"text-xs",children:e("knowledgeBase.sourceLang","输入语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:157,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:158",value:D.sourceLang,onValueChange:z=>_(K=>({...K,sourceLang:z})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:159,columnNumber:130},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:159,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:160",className:"bg-card border-border/50",children:Object.entries(UD).map(([z,K])=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:162",value:z,children:[zD[z]," ",K]},z,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:162,columnNumber:27},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:160,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:158,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:156,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:167",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:168",className:"text-xs",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:168,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:169",value:D.ruleName,onChange:z=>_(K=>({...K,ruleName:z.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:不动产登记证要求"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:169,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:167,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:171",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:172",className:"text-xs",children:e("knowledgeBase.description","规则描述")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:172,columnNumber:21},this),b.jsxDEV(cf,{"data-loc":"client/src/pages/KnowledgeBase.tsx:173",value:D.description,onChange:z=>_(K=>({...K,description:z.target.value})),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"详细描述合规要求..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:173,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:171,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:175",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:176",className:"text-xs",children:e("knowledgeBase.tags","标签(逗号分隔)")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:176,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:177",value:D.tags,onChange:z=>_(K=>({...K,tags:z.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, Document"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:177,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:175,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:179",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:180",className:"flex items-center gap-2",children:[b.jsxDEV(E8,{"data-loc":"client/src/pages/KnowledgeBase.tsx:181",checked:D.required,onCheckedChange:z=>_(K=>({...K,required:z}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:181,columnNumber:23},this),b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:182",className:"text-xs",children:e("knowledgeBase.required","强制要求")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:182,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:180,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:184",className:"flex items-center gap-2",children:[b.jsxDEV(E8,{"data-loc":"client/src/pages/KnowledgeBase.tsx:185",checked:D.autoTranslate,onCheckedChange:z=>_(K=>({...K,autoTranslate:z}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:185,columnNumber:23},this),b.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:186",className:"text-xs flex items-center gap-1",children:[b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:187",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:187,columnNumber:25},this),e("knowledgeBase.autoTranslate","AI自动翻译七语言")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:186,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:184,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:179,columnNumber:19},this),D.autoTranslate&&b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:192",className:"text-xs text-muted-foreground bg-accent/30 rounded p-2",children:"🤖 创建后将自动调用AI生成中文、英文、阿拉伯文、日文、韩文、法文、俄文七种语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:192,columnNumber:21},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:196",className:"w-full nac-gradient text-white",onClick:()=>k.mutate({...D,tags:D.tags.split(",").map(z=>z.trim()).filter(Boolean),sourceLang:D.sourceLang,autoTranslate:D.autoTranslate}),disabled:k.isPending||!D.jurisdiction||!D.assetType||!D.ruleName,children:k.isPending?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Fr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:207",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:207,columnNumber:25},this),"AI翻译生成中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:207,columnNumber:23},this):e("knowledgeBase.createRule","创建规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:196,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:135,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:131,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:125,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:102,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:217",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:218",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:218,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:219",children:["当前显示语言:",zD[r]," ",UD[r]," — 切换界面语言可同步切换规则显示语言"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:217,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/KnowledgeBase.tsx:223",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:224",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:225",className:"flex flex-wrap items-center gap-3",children:[b.jsxDEV(Fae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:226",className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:226,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:227",value:o,onValueChange:z=>{s(z==="ALL_FILTER"?"":z),h(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:228",className:"w-36 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:228",placeholder:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:228,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:228,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:229",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:230",value:"ALL_FILTER",children:e("common.all","全部辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:230,columnNumber:19},this),S8.map(z=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:231",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:231,columnNumber:43},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:229,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:227,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:234",value:c,onValueChange:z=>{u(z==="ALL_FILTER"?"":z),h(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",className:"w-40 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",placeholder:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:236",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:237",value:"ALL_FILTER",children:e("common.all","全部类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:237,columnNumber:19},this),A8.map(z=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:238",value:z,children:z},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:238,columnNumber:41},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:236,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:234,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:241",value:f,onValueChange:z=>{m(z==="ALL_FILTER"?"":z),h(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",className:"w-28 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",placeholder:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:243",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:244",value:"ALL_FILTER",children:e("common.all","全部状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:244,columnNumber:19},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:245",value:"active",children:e("common.active","已激活")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:245,columnNumber:19},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:246",value:"disabled",children:e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:246,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:243,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:241,columnNumber:15},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:249",className:"text-xs text-muted-foreground ml-auto",children:["共 ",Y," 条规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:249,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:225,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:224,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:223,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/KnowledgeBase.tsx:255",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:256",className:"p-0",children:C?b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:258",className:"p-8 text-center text-muted-foreground text-sm",children:[b.jsxDEV(Fr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:259",className:"w-6 h-6 animate-spin mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:259,columnNumber:17},this),"加载中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:258,columnNumber:15},this):G.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:262",className:"p-8 text-center",children:[b.jsxDEV(T_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:263",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:263,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:264",className:"text-muted-foreground text-sm",children:e("knowledgeBase.noRules","暂无合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:264,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:262,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:267",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/KnowledgeBase.tsx:268",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/KnowledgeBase.tsx:269",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:270",className:"border-b border-border/30",children:[b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:271",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:271,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:272",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.jurisdiction","辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:272,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:273,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:274",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.i18nStatus","多语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:274,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:275",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:275,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:276",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:e("common.actions","操作")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:276,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:270,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:269,columnNumber:19},this),b.jsxDEV("tbody",{"data-loc":"client/src/pages/KnowledgeBase.tsx:279",children:G.map(z=>{const K=z._id?.toString(),te=S===K,ne=z.ruleNameI18n&&Object.keys(z.ruleNameI18n).length>=3,L=z.ruleNameI18n?Object.keys(z.ruleNameI18n).length:0;return b.jsxDEV(b.Fragment,{children:[b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:288",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:289",className:"p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:290",className:"font-medium",children:z.displayName||z.ruleName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:290,columnNumber:31},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:291",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:z.displayDescription||z.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:291,columnNumber:31},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:289,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:293",className:"p-3",children:b.jsxDEV(za,{"data-loc":"client/src/pages/KnowledgeBase.tsx:294",variant:"outline",className:"text-xs border-primary/30 text-primary",children:z.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:294,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:293,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:296",className:"p-3 text-xs text-muted-foreground",children:z.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:296,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:297",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:298",className:"flex items-center gap-1",children:ne?b.jsxDEV(AE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:300",children:[b.jsxDEV(OE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:301",asChild:!0,children:b.jsxDEV("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:302",className:"flex items-center gap-1 text-xs text-emerald-400 hover:text-emerald-300",onClick:()=>N(te?null:K),children:[b.jsxDEV(Lc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:306",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:306,columnNumber:41},this),L,"/7",te?b.jsxDEV(Uz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:55},this):b.jsxDEV(D_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:141},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:302,columnNumber:39},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:301,columnNumber:37},this),b.jsxDEV(DE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:311",children:"点击展开查看所有语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:311,columnNumber:37},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:300,columnNumber:35},this):b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:314",className:"text-xs text-amber-400/70",children:["仅",L,"种"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:314,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:298,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:297,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:318",className:"p-3",children:b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:319",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${z.status}`,children:z.status==="active"?e("common.active","已激活"):e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:319,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:318,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:323",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:324",className:"flex items-center justify-end gap-1",children:[b.jsxDEV(AE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:325",children:[b.jsxDEV(OE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:326",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:327",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-blue-400 hover:text-blue-300",onClick:()=>q(K),disabled:w===K,children:w===K?b.jsxDEV(Fr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:334",className:"w-3.5 h-3.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:334,columnNumber:41},this):b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:336",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:336,columnNumber:41},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:327,columnNumber:37},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:326,columnNumber:35},this),b.jsxDEV(DE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:340",children:"AI生成/补全七语言翻译"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:340,columnNumber:35},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:325,columnNumber:33},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:342",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>$.mutate({id:K,status:z.status==="active"?"disabled":"active"}),children:[b.jsxDEV(Gz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:347",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:347,columnNumber:35},this),z.status==="active"?e("common.disable","禁用"):e("common.enable","激活")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:342,columnNumber:33},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:350",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-destructive hover:text-destructive",onClick:()=>{confirm(e("common.confirmDelete","确认删除此规则?"))&&B.mutate({id:K})},children:b.jsxDEV(nie,{"data-loc":"client/src/pages/KnowledgeBase.tsx:355",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:355,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:350,columnNumber:33},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:324,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:323,columnNumber:29},this)]},K,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:288,columnNumber:27},this),te&&z.ruleNameI18n&&b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:362",className:"border-b border-border/20 bg-accent/10",children:b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:363",colSpan:6,className:"px-4 py-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:364",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-2",children:Object.entries(z.ruleNameI18n).map(([Q,W])=>b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:366",className:"bg-card/50 rounded p-2 border border-border/30",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:367",className:"flex items-center gap-1 mb-1",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:368",className:"text-sm",children:zD[Q]||"🌐"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:368,columnNumber:41},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:369",className:"text-xs font-medium text-muted-foreground",children:UD[Q]||Q},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:369,columnNumber:41},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:367,columnNumber:39},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:371",className:"text-xs font-medium",children:W},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:371,columnNumber:39},this),z.descriptionI18n?.[Q]&&b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:373",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:z.descriptionI18n[Q]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:373,columnNumber:41},this)]},Q,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:366,columnNumber:37},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:364,columnNumber:33},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:363,columnNumber:31},this)},`${K}-i18n`,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:362,columnNumber:29},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:287,columnNumber:25},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:279,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:268,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:267,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:256,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:255,columnNumber:9},this),J>1&&b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:393",className:"flex items-center justify-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:394",variant:"outline",size:"sm",onClick:()=>h(z=>Math.max(1,z-1)),disabled:g===1,className:"border-border/50 h-8",children:e("common.prevPage","上一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:394,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:395",className:"text-xs text-muted-foreground",children:[g," / ",J]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:395,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:396",variant:"outline",size:"sm",onClick:()=>h(z=>Math.min(J,z+1)),disabled:g===J,className:"border-border/50 h-8",children:e("common.nextPage","下一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:396,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:393,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:101,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:100,columnNumber:5},this)}const tAe=["CN","HK","US","EU","SG","AE","ALL"],nAe=["regulation","trade_rule","credit","asset_document","court_judgment","tax_rule"],rAe=["realtime","hourly","daily","weekly","monthly"];function aAe(){const[e,t]=R.useState(!1),[n,r]=R.useState({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"}),[o,s]=R.useState(null),c=at.useUtils(),{data:u,isLoading:f,refetch:m}=at.crawler.list.useQuery(),{data:g}=at.crawler.logs.useQuery({crawlerId:o||void 0,limit:30}),h=at.crawler.trigger.useMutation({onSuccess:N=>{Nt.success(N.message),c.crawler.list.invalidate(),c.crawler.logs.invalidate()},onError:N=>Nt.error(N.message)}),y=at.crawler.create.useMutation({onSuccess:()=>{Nt.success("采集器创建成功"),t(!1),c.crawler.list.invalidate(),r({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"})},onError:N=>Nt.error(N.message)}),x=u||[],S=g||[];return b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:40",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:41",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:42",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/Crawlers.tsx:43",className:"text-2xl font-bold nac-gradient-text",children:"采集器监控"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:43,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:44",className:"text-sm text-muted-foreground mt-0.5",children:"管理内部/外部数据采集通道"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:44,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:42,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:46",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/Crawlers.tsx:47",variant:"outline",size:"sm",onClick:()=>m(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/Crawlers.tsx:48",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:48,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:47,columnNumber:11},this),b.jsxDEV($c,{"data-loc":"client/src/pages/Crawlers.tsx:50",open:e,onOpenChange:t,children:[b.jsxDEV(Fh,{"data-loc":"client/src/pages/Crawlers.tsx:51",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/Crawlers.tsx:52",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV(Ox,{"data-loc":"client/src/pages/Crawlers.tsx:52",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:52,columnNumber:113},this),"新增采集器"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:52,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:51,columnNumber:13},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/Crawlers.tsx:54",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:"新增采集器"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:55,columnNumber:73},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:55,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:56",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:57",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Crawlers.tsx:58",className:"text-xs",children:"采集器名称"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:58,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/Crawlers.tsx:59",value:n.name,onChange:N=>r(w=>({...w,name:N.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例JP-FSA法规采集器"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:59,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:57,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:61",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:62",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Crawlers.tsx:63",className:"text-xs",children:"司法辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:63,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:64",value:n.jurisdiction,onValueChange:N=>r(w=>({...w,jurisdiction:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:65",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:65",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:65,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:65,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:66",className:"bg-card border-border/50",children:tAe.map(N=>b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:67",value:N,children:N},N,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:67,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:66,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:64,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:62,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:71",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Crawlers.tsx:72",className:"text-xs",children:"采集类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:72,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:73",value:n.type,onValueChange:N=>r(w=>({...w,type:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:74",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:74"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:74,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:74,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:75",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:76",value:"external",children:"外部采集"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:76,columnNumber:25},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:77",value:"internal",children:"内部监听"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:77,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:75,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:73,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:71,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:61,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:82",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Crawlers.tsx:83",className:"text-xs",children:"数据源 URL"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:83,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/Crawlers.tsx:84",value:n.source,onChange:N=>r(w=>({...w,source:N.target.value})),className:"bg-input border-border/50 h-9",placeholder:"https://www.fsa.go.jp"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:84,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:82,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:86",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:87",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Crawlers.tsx:88",className:"text-xs",children:"数据分类"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:88,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:89",value:n.category,onValueChange:N=>r(w=>({...w,category:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:90",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:90",placeholder:"选择分类"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:90,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:90,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:91",className:"bg-card border-border/50",children:nAe.map(N=>b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:92",value:N,children:N},N,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:92,columnNumber:46},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:91,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:89,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:87,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:96",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/Crawlers.tsx:97",className:"text-xs",children:"采集频率"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:97,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:98",value:n.frequency,onValueChange:N=>r(w=>({...w,frequency:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:99",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/Crawlers.tsx:99"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:99,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:99,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:100",className:"bg-card border-border/50",children:rAe.map(N=>b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:101",value:N,children:N},N,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:101,columnNumber:47},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:100,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:98,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:96,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:86,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/Crawlers.tsx:106",className:"w-full nac-gradient text-white",onClick:()=>y.mutate(n),disabled:y.isPending||!n.name||!n.jurisdiction||!n.source||!n.category,children:y.isPending?"创建中...":"创建采集器"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:106,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:56,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:54,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:46,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:41,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:115",className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:117",className:"lg:col-span-2 space-y-3",children:f?b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:119",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:119,columnNumber:13},this):x.map(N=>b.jsxDEV(At,{"data-loc":"client/src/pages/Crawlers.tsx:121",className:`border-border/50 cursor-pointer transition-all hover:border-primary/30 ${o===N._id?.toString()?"border-primary/50 bg-primary/5":""}`,onClick:()=>s(N._id?.toString()),children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:126",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:127",className:"flex items-start justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:128",className:"flex-1 min-w-0",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:129",className:"flex items-center gap-2 mb-1",children:[N.type==="internal"?b.jsxDEV(aie,{"data-loc":"client/src/pages/Crawlers.tsx:130",className:"w-3.5 h-3.5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:130,columnNumber:54},this):b.jsxDEV(oy,{"data-loc":"client/src/pages/Crawlers.tsx:130",className:"w-3.5 h-3.5 text-amber-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:130,columnNumber:147},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:131",className:"font-medium text-sm truncate",children:N.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:131,columnNumber:23},this),b.jsxDEV(za,{"data-loc":"client/src/pages/Crawlers.tsx:132",variant:"outline",className:"text-xs border-border/50 shrink-0",children:N.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:132,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:129,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:134",className:"text-xs text-muted-foreground truncate",children:N.source},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:134,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:135",className:"flex items-center gap-3 mt-2 text-xs text-muted-foreground",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"flex items-center gap-1",children:[b.jsxDEV(Vp,{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:136,columnNumber:110},this),N.frequency]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:136,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"flex items-center gap-1",children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"w-3 h-3 text-emerald-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:137,columnNumber:110},this),N.successRate,"%"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:137,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:138",children:["采集 ",N.totalCollected," 条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:138,columnNumber:23},this),N.lastRun&&b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:139",children:["最后运行: ",new Date(N.lastRun).toLocaleDateString("zh-CN")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:139,columnNumber:43},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:135,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:128,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:142",className:"flex items-center gap-2 ml-3 shrink-0",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:143",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${N.status}`,children:N.status==="active"?"运行中":"已停止"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:143,columnNumber:21},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/Crawlers.tsx:146",size:"sm",variant:"outline",className:"h-7 px-2 border-border/50 hover:border-primary/50",onClick:w=>{w.stopPropagation(),h.mutate({crawlerId:N._id.toString()})},disabled:h.isPending,children:[b.jsxDEV(AT,{"data-loc":"client/src/pages/Crawlers.tsx:152",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:152,columnNumber:23},this),"触发"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:146,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:142,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:127,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:126,columnNumber:15},this)},N._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:121,columnNumber:13},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:117,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/Crawlers.tsx:162",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Crawlers.tsx:163",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Crawlers.tsx:164",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(oy,{"data-loc":"client/src/pages/Crawlers.tsx:165",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:165,columnNumber:15},this),o?"采集日志":"选择采集器查看日志"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:164,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:163,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:169",children:S.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:171",className:"h-60 flex items-center justify-center text-muted-foreground text-sm",children:o?"暂无日志记录":"点击左侧采集器查看日志"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:171,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:175",className:"space-y-2 max-h-[500px] overflow-y-auto",children:S.map((N,w)=>b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:177",className:"border-b border-border/20 pb-2 last:border-0",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:178",className:"flex items-center gap-1.5 mb-0.5",children:[N.status==="triggered"?b.jsxDEV(AT,{"data-loc":"client/src/pages/Crawlers.tsx:179",className:"w-3 h-3 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:179,columnNumber:53},this):N.status==="success"?b.jsxDEV(mi,{"data-loc":"client/src/pages/Crawlers.tsx:180",className:"w-3 h-3 text-emerald-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:180,columnNumber:52},this):b.jsxDEV(Hh,{"data-loc":"client/src/pages/Crawlers.tsx:181",className:"w-3 h-3 text-red-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:181,columnNumber:27},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:182",className:"text-xs font-medium",children:N.action},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:182,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:178,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:184",className:"text-xs text-muted-foreground",children:N.message},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:184,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:185",className:"text-xs text-muted-foreground/50 mt-0.5",children:new Date(N.timestamp).toLocaleString("zh-CN")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:185,columnNumber:21},this)]},w,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:177,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:175,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:169,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:162,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:115,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:40,columnNumber:5},this)}function iAe(){const[e,t]=R.useState(""),[n,r]=R.useState(""),[o,s]=R.useState(1),[c,u]=R.useState(!1),[f,m]=R.useState(null),[g,h]=R.useState(""),y=at.useUtils(),{data:x,isLoading:S,refetch:N}=at.approvalCase.list.useQuery({riskLevel:e||void 0,status:n||void 0,page:o,pageSize:15}),w=at.approvalCase.review.useMutation({onSuccess:()=>{Nt.success("审核意见已提交"),u(!1),h(""),m(null),y.approvalCase.list.invalidate()},onError:C=>Nt.error(C.message)}),A=x?.items||[],D=x?.total||0,_=Math.ceil(D/15),P=C=>{const k={low:{label:"低风险",cls:"risk-low"},medium:{label:"中风险",cls:"risk-medium"},high:{label:"高风险",cls:"risk-high"}}[C]||{label:C,cls:"status-inactive"};return b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:50",className:`text-xs px-2 py-0.5 rounded-full font-medium ${k.cls}`,children:k.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:50,columnNumber:12},this)},O=C=>{const k={approved:{label:"已通过",cls:"status-active"},rejected:{label:"已拒绝",cls:"status-error"},pending_human:{label:"待人工审核",cls:"status-pending"},auto_approved:{label:"自动通过",cls:"status-active"}}[C]||{label:C,cls:"status-inactive"};return b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:61",className:`text-xs px-2 py-0.5 rounded-full font-medium ${k.cls}`,children:k.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:61,columnNumber:12},this)};return b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:65",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:66",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:67",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/ApprovalCases.tsx:68",className:"text-2xl font-bold nac-gradient-text",children:"AI 审批案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:68,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:69",className:"text-sm text-muted-foreground mt-0.5",children:"审查AI自动审批结果对中风险案例进行人工复核"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:69,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:67,columnNumber:9},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:71",variant:"outline",size:"sm",onClick:()=>N(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/ApprovalCases.tsx:72",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:72,columnNumber:11},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:71,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:66,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:77",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[{label:"待人工审核",value:x?.pendingCount??0,icon:Vp,color:"text-amber-400"},{label:"今日通过",value:x?.todayApproved??0,icon:mi,color:"text-emerald-400"},{label:"今日拒绝",value:x?.todayRejected??0,icon:Hh,color:"text-red-400"},{label:"高风险案例",value:x?.highRiskCount??0,icon:Ic,color:"text-red-400"}].map(C=>b.jsxDEV(At,{"data-loc":"client/src/pages/ApprovalCases.tsx:84",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:85",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(C.icon,{"data-loc":"client/src/pages/ApprovalCases.tsx:86",className:`w-8 h-8 ${C.color} shrink-0`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:86,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:87",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:88",className:`text-2xl font-bold ${C.color}`,children:C.value},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:88,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:89",className:"text-xs text-muted-foreground",children:C.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:89,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:87,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:85,columnNumber:13},this)},C.label,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:84,columnNumber:11},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:77,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ApprovalCases.tsx:97",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:98",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:99",className:"flex flex-wrap items-center gap-3",children:[b.jsxDEV(mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:100",value:e,onValueChange:C=>{t(C==="ALL_FILTER"?"":C),s(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",className:"w-32 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",placeholder:"风险等级"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:101,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:101,columnNumber:15},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/ApprovalCases.tsx:102",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:103",value:"ALL_FILTER",children:"全部风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:103,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:104",value:"low",children:"低风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:104,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:105",value:"medium",children:"中风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:105,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:106",value:"high",children:"高风险"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:106,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:102,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:100,columnNumber:13},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:109",value:n,onValueChange:C=>{r(C==="ALL_FILTER"?"":C),s(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",className:"w-36 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",placeholder:"审批状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:110,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:110,columnNumber:15},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/ApprovalCases.tsx:111",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:112",value:"ALL_FILTER",children:"全部状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:112,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:113",value:"pending_human",children:"待人工审核"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:113,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:114",value:"approved",children:"已通过"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:114,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:115",value:"rejected",children:"已拒绝"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:115,columnNumber:17},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/ApprovalCases.tsx:116",value:"auto_approved",children:"自动通过"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:116,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:111,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:109,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:119",className:"text-xs text-muted-foreground ml-auto",children:["共 ",D," 个案例"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:119,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:99,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:98,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:97,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ApprovalCases.tsx:125",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:126",className:"p-0",children:S?b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:128",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:128,columnNumber:13},this):A.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:130",className:"p-8 text-center",children:[b.jsxDEV(qz,{"data-loc":"client/src/pages/ApprovalCases.tsx:131",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:131,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:132",className:"text-muted-foreground text-sm",children:"暂无审批案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:132,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:130,columnNumber:13},this):b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:135",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/ApprovalCases.tsx:136",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/ApprovalCases.tsx:137",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:138",className:"border-b border-border/30",children:[b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:139",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"资产信息"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:139,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:140",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"辖区/类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:140,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:141",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"风险等级"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:141,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:142",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"AI 评分"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:142,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:143",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:143,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:144",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:144,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:145",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:"操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:145,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:138,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:137,columnNumber:17},this),b.jsxDEV("tbody",{"data-loc":"client/src/pages/ApprovalCases.tsx:148",children:A.map(C=>b.jsxDEV("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:150",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:151",className:"p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:152",className:"font-medium text-sm",children:C.assetName||C.assetId},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:152,columnNumber:25},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:153",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:C.aiDecision?.summary||"AI分析中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:153,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:151,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:155",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:156",className:"flex flex-col gap-1",children:[b.jsxDEV(za,{"data-loc":"client/src/pages/ApprovalCases.tsx:157",variant:"outline",className:"text-xs border-primary/30 text-primary w-fit",children:C.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:157,columnNumber:27},this),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:158",className:"text-xs text-muted-foreground",children:C.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:158,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:156,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:155,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:161",className:"p-3",children:P(C.riskLevel)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:161,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:162",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:163",className:"flex items-center gap-1.5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:164",className:"w-16 h-1.5 rounded-full bg-muted overflow-hidden",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:165",className:"h-full rounded-full bg-primary",style:{width:`${C.aiScore||0}%`}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:165,columnNumber:29},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:164,columnNumber:27},this),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:167",className:"text-xs font-medium",children:C.aiScore||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:167,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:163,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:162,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:170",className:"p-3",children:O(C.status)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:170,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:171",className:"p-3 text-xs text-muted-foreground",children:C.createdAt?new Date(C.createdAt).toLocaleDateString("zh-CN"):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:171,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:174",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:175",className:"flex items-center justify-end gap-1",children:b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:176",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{m(C),u(!0)},children:[b.jsxDEV(qae,{"data-loc":"client/src/pages/ApprovalCases.tsx:181",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:181,columnNumber:29},this),"审查"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:176,columnNumber:27},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:175,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:174,columnNumber:23},this)]},C._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:150,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:148,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:136,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:135,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:126,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:125,columnNumber:7},this),_>1&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:196",className:"flex items-center justify-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:197",variant:"outline",size:"sm",onClick:()=>s(C=>Math.max(1,C-1)),disabled:o===1,className:"border-border/50 h-8",children:"上一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:197,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:198",className:"text-xs text-muted-foreground",children:[o," / ",_]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:198,columnNumber:11},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:199",variant:"outline",size:"sm",onClick:()=>s(C=>Math.min(_,C+1)),disabled:o===_,className:"border-border/50 h-8",children:"下一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:199,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:196,columnNumber:9},this),b.jsxDEV($c,{"data-loc":"client/src/pages/ApprovalCases.tsx:204",open:c,onOpenChange:u,children:b.jsxDEV(Bc,{"data-loc":"client/src/pages/ApprovalCases.tsx:205",className:"bg-card border-border/50 max-w-2xl",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/ApprovalCases.tsx:206",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/ApprovalCases.tsx:207",className:"flex items-center gap-2",children:[b.jsxDEV(bl,{"data-loc":"client/src/pages/ApprovalCases.tsx:208",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:208,columnNumber:15},this),"人工审核 — ",f?.assetName||f?.assetId]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:207,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:206,columnNumber:11},this),f&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:213",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:214",className:"grid grid-cols-2 gap-3 text-sm",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:215",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:216",className:"text-xs text-muted-foreground",children:"资产信息"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:216,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:217",className:"font-medium",children:f.assetName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:217,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:218",className:"text-xs text-muted-foreground",children:[f.jurisdiction," · ",f.assetType]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:218,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:215,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:220",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:221",className:"text-xs text-muted-foreground",children:"AI 评估"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:221,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:222",className:"flex items-center gap-2",children:[P(f.riskLevel),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:224",className:"text-sm font-medium",children:["评分: ",f.aiScore]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:224,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:222,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:226",className:"text-xs text-muted-foreground",children:O(f.status)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:226,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:220,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:214,columnNumber:15},this),f.aiDecision&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:230",className:"bg-muted/20 rounded-lg p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:231",className:"text-xs font-medium text-muted-foreground mb-1.5",children:"AI 分析摘要"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:231,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:232",className:"text-sm",children:f.aiDecision.summary},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:232,columnNumber:19},this),f.aiDecision.issues?.length>0&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:234",className:"mt-2",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:235",className:"text-xs font-medium text-amber-400 mb-1",children:"发现问题:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:235,columnNumber:23},this),f.aiDecision.issues.map((C,j)=>b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:237",className:"text-xs text-muted-foreground",children:["• ",C]},j,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:237,columnNumber:25},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:234,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:230,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:243",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ApprovalCases.tsx:244",className:"text-xs",children:"审核意见"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:244,columnNumber:17},this),b.jsxDEV(cf,{"data-loc":"client/src/pages/ApprovalCases.tsx:245",value:g,onChange:C=>h(C.target.value),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"请填写人工审核意见..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:245,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:243,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:253",className:"flex gap-3",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:254",className:"flex-1 bg-emerald-600 hover:bg-emerald-700 text-white",onClick:()=>w.mutate({id:f._id.toString(),decision:"approved",comment:g}),disabled:w.isPending,children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/ApprovalCases.tsx:259",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:259,columnNumber:19},this),"确认通过"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:254,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:261",className:"flex-1 bg-red-600 hover:bg-red-700 text-white",onClick:()=>w.mutate({id:f._id.toString(),decision:"rejected",comment:g}),disabled:w.isPending,children:[b.jsxDEV(Hh,{"data-loc":"client/src/pages/ApprovalCases.tsx:266",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:266,columnNumber:19},this),"否决拒绝"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:261,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:253,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:213,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:205,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:204,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:65,columnNumber:5},this)}const qD=["jurisdiction","asset_type","compliance_requirement","risk_indicator"],HD={jurisdiction:"司法辖区",asset_type:"资产类型",compliance_requirement:"合规要求",risk_indicator:"风险指标"};function oAe(){const[e,t]=R.useState(!1),[n,r]=R.useState(!1),[o,s]=R.useState({keyword:"",tags:"",dimension:"",description:""}),[c,u]=R.useState({documentId:"",originalTags:"",correctedTags:"",reason:""}),f=at.useUtils(),{data:m,isLoading:g,refetch:h}=at.tagEngine.listRules.useQuery(),y=at.tagEngine.createRule.useMutation({onSuccess:()=>{Nt.success("标签规则创建成功"),t(!1),f.tagEngine.listRules.invalidate(),s({keyword:"",tags:"",dimension:"",description:""})},onError:D=>Nt.error(D.message)}),x=at.tagEngine.correctTag.useMutation({onSuccess:()=>{Nt.success("标签修正已提交,将作为训练数据"),r(!1),f.tagEngine.listRules.invalidate(),u({documentId:"",originalTags:"",correctedTags:"",reason:""})},onError:D=>Nt.error(D.message)}),S=m||[],N=S.filter(D=>D.type==="rule"),w=S.filter(D=>D.type==="correction"),A={};return qD.forEach(D=>{A[D]=N.filter(_=>_.dimension===D).length}),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:58",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:59",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:60",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/TagEngine.tsx:61",className:"text-2xl font-bold nac-gradient-text",children:"标签引擎治理"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:61,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:62",className:"text-sm text-muted-foreground mt-0.5",children:"管理自动化标签序列生成规则优化AI打标模型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:62,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:60,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:64",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:65",variant:"outline",size:"sm",onClick:()=>h(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/TagEngine.tsx:66",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:66,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:65,columnNumber:11},this),b.jsxDEV($c,{"data-loc":"client/src/pages/TagEngine.tsx:69",open:n,onOpenChange:r,children:[b.jsxDEV(Fh,{"data-loc":"client/src/pages/TagEngine.tsx:70",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:71",variant:"outline",size:"sm",className:"border-amber-500/30 text-amber-400 hover:bg-amber-500/10",children:[b.jsxDEV(Hz,{"data-loc":"client/src/pages/TagEngine.tsx:72",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:72,columnNumber:17},this),"提交修正"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:71,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:70,columnNumber:13},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/TagEngine.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:"AI打标修正"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:76,columnNumber:74},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:76,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:77",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:78",className:"bg-amber-500/10 border border-amber-500/20 rounded-lg p-3 text-xs text-amber-400",children:"修正后的标签将作为高质量训练数据用于持续优化AI打标模型的准确率。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:78,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:81",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:82",className:"text-xs",children:"文档/资产 ID"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:82,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:83",value:c.documentId,onChange:D=>u(_=>({..._,documentId:D.target.value})),className:"bg-input border-border/50 h-9",placeholder:"文档或资产的唯一标识符"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:83,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:81,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:85",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:86",className:"text-xs",children:"AI原始标签逗号分隔"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:86,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:87",value:c.originalTags,onChange:D=>u(_=>({..._,originalTags:D.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, ..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:87,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:85,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:89",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:90",className:"text-xs",children:"修正后标签(逗号分隔)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:90,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:91",value:c.correctedTags,onChange:D=>u(_=>({..._,correctedTags:D.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN.Shanghai, RealEstate.Commercial, ..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:91,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:89,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:93",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:94",className:"text-xs",children:"修正原因"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:94,columnNumber:19},this),b.jsxDEV(cf,{"data-loc":"client/src/pages/TagEngine.tsx:95",value:c.reason,onChange:D=>u(_=>({..._,reason:D.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"说明为什么AI打标有误..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:95,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:93,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:97",className:"w-full bg-amber-600 hover:bg-amber-700 text-white",onClick:()=>x.mutate({documentId:c.documentId,originalTags:c.originalTags.split(",").map(D=>D.trim()).filter(Boolean),correctedTags:c.correctedTags.split(",").map(D=>D.trim()).filter(Boolean),reason:c.reason}),disabled:x.isPending||!c.documentId||!c.correctedTags,children:x.isPending?"提交中...":"提交修正"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:97,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:75,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:69,columnNumber:11},this),b.jsxDEV($c,{"data-loc":"client/src/pages/TagEngine.tsx:113",open:e,onOpenChange:t,children:[b.jsxDEV(Fh,{"data-loc":"client/src/pages/TagEngine.tsx:114",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:115",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV(Ox,{"data-loc":"client/src/pages/TagEngine.tsx:115",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:115,columnNumber:115},this),"新增规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:115,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:114,columnNumber:13},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/TagEngine.tsx:117",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:"新增标签匹配规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:118,columnNumber:75},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:118,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:119",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:120",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:121",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:122",className:"text-xs",children:"关键词"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:122,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:123",value:o.keyword,onChange:D=>s(_=>({..._,keyword:D.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:上海市"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:123,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:121,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:125",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:126",className:"text-xs",children:"标签维度"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:126,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/TagEngine.tsx:127",value:o.dimension,onValueChange:D=>s(_=>({..._,dimension:D})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/TagEngine.tsx:128",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/TagEngine.tsx:128",placeholder:"选择维度"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:128,columnNumber:126},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:128,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/TagEngine.tsx:129",className:"bg-card border-border/50",children:qD.map(D=>b.jsxDEV(_t,{"data-loc":"client/src/pages/TagEngine.tsx:130",value:D,children:HD[D]},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:130,columnNumber:46},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:129,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:127,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:125,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:120,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:135",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:136",className:"text-xs",children:"匹配后打标(逗号分隔)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:136,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/TagEngine.tsx:137",value:o.tags,onChange:D=>s(_=>({..._,tags:D.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, CN.Shanghai"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:137,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:135,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:139",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:140",className:"text-xs",children:"规则描述"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:140,columnNumber:19},this),b.jsxDEV(cf,{"data-loc":"client/src/pages/TagEngine.tsx:141",value:o.description,onChange:D=>s(_=>({..._,description:D.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"规则用途说明..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:141,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:139,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:143",className:"w-full nac-gradient text-white",onClick:()=>y.mutate({keyword:o.keyword,tags:o.tags.split(",").map(D=>D.trim()).filter(Boolean),dimension:o.dimension,description:o.description}),disabled:y.isPending||!o.keyword||!o.dimension||!o.tags,children:y.isPending?"创建中...":"创建规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:143,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:119,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:64,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:59,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:162",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:qD.map(D=>b.jsxDEV(At,{"data-loc":"client/src/pages/TagEngine.tsx:164",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:165",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Gae,{"data-loc":"client/src/pages/TagEngine.tsx:166",className:"w-7 h-7 text-primary shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:166,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:167",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:168",className:"text-xl font-bold text-primary",children:A[D]??0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:168,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:169",className:"text-xs text-muted-foreground",children:HD[D]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:169,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:167,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:165,columnNumber:13},this)},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:164,columnNumber:11},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:162,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/TagEngine.tsx:179",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/TagEngine.tsx:180",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/TagEngine.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Kz,{"data-loc":"client/src/pages/TagEngine.tsx:182",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:182,columnNumber:15},this),"标签匹配规则 (",N.length,")"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:181,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:180,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:186",children:g?b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:188",className:"p-4 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:188,columnNumber:15},this):N.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:190",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:190,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:192",className:"space-y-2 max-h-[400px] overflow-y-auto",children:N.map(D=>b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:194",className:"border border-border/30 rounded-lg p-3 hover:border-primary/30 transition-colors",children:b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:195",className:"flex items-start justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:196",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-sm font-medium",children:["关键词: ",b.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-primary",children:D.keyword},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:197,columnNumber:111},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:197,columnNumber:25},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:198",className:"flex flex-wrap gap-1 mt-1",children:(D.tags||[]).map(_=>b.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:200",className:"text-xs px-1.5 py-0.5 rounded bg-primary/15 text-primary",children:_},_,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:200,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:198,columnNumber:25},this),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:203",className:"text-xs text-muted-foreground mt-1",children:HD[D.dimension]||D.dimension},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:203,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:196,columnNumber:23},this),b.jsxDEV(za,{"data-loc":"client/src/pages/TagEngine.tsx:205",variant:"outline",className:"text-xs border-emerald-500/30 text-emerald-400 shrink-0",children:"活跃"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:205,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:195,columnNumber:21},this)},D._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:194,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:192,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:179,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/TagEngine.tsx:215",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/TagEngine.tsx:216",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/TagEngine.tsx:217",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV($ae,{"data-loc":"client/src/pages/TagEngine.tsx:218",className:"w-4 h-4 text-amber-400"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:218,columnNumber:15},this),"AI打标修正记录 (",w.length,")"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:217,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:216,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:222",children:w.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:224",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无修正记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:224,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:226",className:"space-y-2 max-h-[400px] overflow-y-auto",children:w.map(D=>b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:228",className:"border border-amber-500/20 rounded-lg p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:229",className:"text-xs font-medium text-muted-foreground mb-1",children:["文档: ",D.documentId]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:229,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:230",className:"flex items-center gap-2 text-xs",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:231",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:232",className:"text-muted-foreground mb-0.5",children:"原始:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:232,columnNumber:25},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:233",className:"flex flex-wrap gap-1",children:(D.originalTags||[]).map(_=>b.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:235",className:"px-1.5 py-0.5 rounded bg-red-500/15 text-red-400",children:_},_,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:235,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:233,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:231,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:239",className:"text-muted-foreground",children:"→"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:239,columnNumber:23},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:240",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:241",className:"text-muted-foreground mb-0.5",children:"修正:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:241,columnNumber:25},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:242",className:"flex flex-wrap gap-1",children:(D.correctedTags||[]).map(_=>b.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:244",className:"px-1.5 py-0.5 rounded bg-emerald-500/15 text-emerald-400",children:_},_,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:244,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:242,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:240,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:230,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:249",className:"text-xs text-muted-foreground mt-1.5",children:["修正者: ",D.correctedBy]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:249,columnNumber:21},this)]},D._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:228,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:226,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:222,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:215,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:177,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:58,columnNumber:5},this)}const sAe=["compliance","asset","identity","governance","settlement","oracle"];function lAe(){const[e,t]=R.useState(!1),[n,r]=R.useState(!1),[o,s]=R.useState(null),[c,u]=R.useState({name:"",type:"",version:"",endpoint:"",trigger:"",description:""}),[f,m]=R.useState({version:"",trigger:""}),g=at.useUtils(),{data:h,isLoading:y,refetch:x}=at.protocolRegistry.list.useQuery(),S=at.protocolRegistry.register.useMutation({onSuccess:()=>{Nt.success("协议注册成功"),t(!1),g.protocolRegistry.list.invalidate(),u({name:"",type:"",version:"",endpoint:"",trigger:"",description:""})},onError:O=>Nt.error(O.message)}),N=at.protocolRegistry.toggleStatus.useMutation({onSuccess:()=>{Nt.success("协议状态已更新"),g.protocolRegistry.list.invalidate()},onError:O=>Nt.error(O.message)}),w=at.protocolRegistry.updateVersion.useMutation({onSuccess:()=>{Nt.success("协议版本已更新"),r(!1),g.protocolRegistry.list.invalidate()},onError:O=>Nt.error(O.message)}),A=h||[],D=A.filter(O=>O.status==="active").length,_=A.filter(O=>O.status==="deprecated").length,P=O=>{const C={active:"status-active",disabled:"status-inactive",deprecated:"status-deprecated"},j={active:"运行中",disabled:"已停用",deprecated:"已废弃"};return b.jsxDEV("span",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:57",className:`text-xs px-2 py-0.5 rounded-full font-medium ${C[O]||"status-inactive"}`,children:j[O]||O},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:57,columnNumber:12},this)};return b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:61",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:62",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:63",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:64",className:"text-2xl font-bold nac-gradient-text",children:"协议族注册表"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:64,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:65",className:"text-sm text-muted-foreground mt-0.5",children:"管理接入AI审批系统的所有NAC原生协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:63,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:67",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:68",variant:"outline",size:"sm",onClick:()=>x(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:69",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:69,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:68,columnNumber:11},this),b.jsxDEV($c,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:71",open:e,onOpenChange:t,children:[b.jsxDEV(Fh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:72",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV(Ox,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:73,columnNumber:121},this),"注册协议"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:73,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:72,columnNumber:13},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:"注册新协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:76,columnNumber:81},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:76,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:77",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:78",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:79",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:80",className:"text-xs",children:"协议名称"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:80,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:81",value:c.name,onChange:O=>u(C=>({...C,name:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例ACC-21"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:81,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:79,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:83",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:84",className:"text-xs",children:"协议类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:84,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:85",value:c.type,onValueChange:O=>u(C=>({...C,type:O})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:86,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:86,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:87",className:"bg-card border-border/50",children:sAe.map(O=>b.jsxDEV(_t,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:88",value:O,children:O},O,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:88,columnNumber:50},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:87,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:85,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:83,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:78,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:93",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:94",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:95",className:"text-xs",children:"版本号"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:95,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:96",value:c.version,onChange:O=>u(C=>({...C,version:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"1.0.0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:96,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:94,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:98",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:99",className:"text-xs",children:"服务端点"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:99,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:100",value:c.endpoint,onChange:O=>u(C=>({...C,endpoint:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"https://acc21.newassetchain.io"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:100,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:93,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:103",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:104",className:"text-xs",children:"触发条件"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:104,columnNumber:19},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:105",value:c.trigger,onChange:O=>u(C=>({...C,trigger:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例asset.type == 'DigitalToken'"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:105,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:103,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:107",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:108",className:"text-xs",children:"协议描述"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:108,columnNumber:19},this),b.jsxDEV(cf,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:109",value:c.description,onChange:O=>u(C=>({...C,description:O.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"协议功能说明..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:109,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:107,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:111",className:"w-full nac-gradient text-white",onClick:()=>S.mutate(c),disabled:S.isPending||!c.name||!c.type||!c.version||!c.endpoint||!c.trigger,children:S.isPending?"注册中...":"注册协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:111,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:77,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:75,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:71,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:67,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:62,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:125",className:"grid grid-cols-3 gap-3",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:126",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:127",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Dh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:128",className:"w-7 h-7 text-primary shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:128,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-2xl font-bold text-primary",children:A.length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:71},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-xs text-muted-foreground",children:"总协议数"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:196},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:127,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:126,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:132",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:133",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Lc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:134",className:"w-7 h-7 text-emerald-400 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:134,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-2xl font-bold text-emerald-400",children:D},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:71},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-xs text-muted-foreground",children:"运行中"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:192},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:133,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:132,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:138",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:139",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Ic,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:140",className:"w-7 h-7 text-orange-400 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:140,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-2xl font-bold text-orange-400",children:_},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:71},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-xs text-muted-foreground",children:"已废弃"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:195},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:139,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:138,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:125,columnNumber:7},this),y?b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:148",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:148,columnNumber:9},this):A.length===0?b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:150",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:151",className:"p-8 text-center",children:[b.jsxDEV(Dh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:152",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:152,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:153",className:"text-muted-foreground text-sm",children:"暂无注册协议"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:153,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:151,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:150,columnNumber:9},this):b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:157",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:A.map(O=>b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:159",className:"border-border/50 hover:border-primary/30 transition-colors",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:160",className:"p-4",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:161",className:"flex items-start justify-between mb-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:162",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:163",className:"flex items-center gap-2",children:[b.jsxDEV(Dh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:164",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:164,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:165",className:"font-semibold",children:O.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:165,columnNumber:23},this),b.jsxDEV(za,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:166",variant:"outline",className:"text-xs border-border/50",children:["v",O.version]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:166,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:163,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:168",className:"text-xs text-muted-foreground mt-0.5",children:O.type},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:168,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:162,columnNumber:19},this),P(O.status)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:161,columnNumber:17},this),O.description&&b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:174",className:"text-xs text-muted-foreground mb-2",children:O.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:174,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:177",className:"bg-muted/20 rounded p-2 mb-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:178",className:"text-xs text-muted-foreground mb-0.5",children:"服务端点"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:178,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:179",className:"text-xs font-mono text-primary truncate",children:O.endpoint},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:179,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:177,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:182",className:"bg-muted/20 rounded p-2 mb-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:183",className:"text-xs text-muted-foreground mb-0.5",children:"触发条件"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:183,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:184",className:"text-xs font-mono",children:O.trigger},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:184,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:182,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:187",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:188",variant:"outline",size:"sm",className:"h-7 px-2 text-xs border-border/50 flex-1",onClick:()=>{s(O),m({version:O.version,trigger:O.trigger}),r(!0)},children:[b.jsxDEV(Hz,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:197",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:197,columnNumber:21},this),"更新版本"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:188,columnNumber:19},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:199",variant:"outline",size:"sm",className:"h-7 px-2 text-xs border-border/50 flex-1",onClick:()=>{const C=O.status==="active"?"disabled":O.status==="disabled"?"deprecated":"active";N.mutate({id:O._id.toString(),status:C})},disabled:N.isPending,children:[b.jsxDEV(Gz,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:208",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:208,columnNumber:21},this),O.status==="active"?"停用":O.status==="disabled"?"废弃":"激活"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:199,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:187,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:160,columnNumber:15},this)},O._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:159,columnNumber:13},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:157,columnNumber:9},this),b.jsxDEV($c,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:219",open:n,onOpenChange:r,children:b.jsxDEV(Bc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:220",className:"bg-card border-border/50 max-w-md",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:["更新协议版本 — ",o?.name]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:221,columnNumber:78},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:221,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:222",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:223",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:224",className:"text-xs",children:"新版本号"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:224,columnNumber:15},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:225",value:f.version,onChange:O=>m(C=>({...C,version:O.target.value})),className:"bg-input border-border/50 h-9"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:225,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:223,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:227",className:"space-y-1.5",children:[b.jsxDEV(Tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:228",className:"text-xs",children:"新触发条件(可选)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:228,columnNumber:15},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:229",value:f.trigger,onChange:O=>m(C=>({...C,trigger:O.target.value})),className:"bg-input border-border/50 h-9"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:229,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:227,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:231",className:"w-full nac-gradient text-white",onClick:()=>o&&w.mutate({id:o._id.toString(),version:f.version,trigger:f.trigger||void 0}),disabled:w.isPending||!f.version,children:w.isPending?"更新中...":"确认更新"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:231,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:222,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:220,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:219,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:61,columnNumber:5},this)}const FD={LOGIN:"用户登录",LOGOUT:"用户登出",CREATE_RULE:"创建规则",UPDATE_RULE:"更新规则",DELETE_RULE:"删除规则",REVIEW_CASE:"审核案例",CORRECT_TAG:"修正标签",CREATE_TAG_RULE:"创建标签规则",REGISTER_PROTOCOL:"注册协议",TOGGLE_PROTOCOL:"切换协议状态",UPDATE_PROTOCOL_VERSION:"更新协议版本",TRIGGER_CRAWLER:"触发采集器",UPDATE_CRAWLER_CONFIG:"更新采集器配置",MANAGE_USER:"管理用户"};function cAe(){const[e,t]=R.useState(""),[n,r]=R.useState(""),[o,s]=R.useState(1),{data:c,isLoading:u,refetch:f}=at.rbac.auditLogs.useQuery({action:e||void 0,page:o,pageSize:20}),{data:m,isLoading:g}=at.rbac.listUsers.useQuery({page:1,pageSize:100}),h=c?.items||[],y=c?.total||0,x=Math.ceil(y/20),S=m?.users||[],N=w=>FD[w]||w;return b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:38",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:39",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:40",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/AuditLog.tsx:41",className:"text-2xl font-bold nac-gradient-text",children:"权限与审计"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:41,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:42",className:"text-sm text-muted-foreground mt-0.5",children:"基于角色的访问控制与不可篡改的操作审计日志"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:42,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:40,columnNumber:9},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AuditLog.tsx:44",variant:"outline",size:"sm",onClick:()=>f(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/AuditLog.tsx:45",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:45,columnNumber:11},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:44,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:39,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:49",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/AuditLog.tsx:51",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/AuditLog.tsx:52",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/AuditLog.tsx:53",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(DT,{"data-loc":"client/src/pages/AuditLog.tsx:54",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:54,columnNumber:15},this),"用户角色管理"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:53,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:52,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:57",children:g?b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:59",className:"p-4 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:59,columnNumber:15},this):S.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:61",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无用户"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:61,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:63",className:"space-y-2 max-h-[400px] overflow-y-auto",children:S.map(w=>b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:65",className:"flex items-center justify-between p-3 border border-border/30 rounded-lg hover:border-primary/30 transition-colors",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:66",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:67",className:"text-sm font-medium",children:w.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:67,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:68",className:"text-xs text-muted-foreground",children:w.name||"未设置姓名"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:68,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:66,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/AuditLog.tsx:70",value:w.role,onValueChange:A=>{},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/AuditLog.tsx:74",className:"w-28 bg-input border-border/50 h-7 text-xs",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/AuditLog.tsx:75"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:75,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:74,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/AuditLog.tsx:77",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:78",value:"admin",children:"管理员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:78,columnNumber:25},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:79",value:"reviewer",children:"审核员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:79,columnNumber:25},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:80",value:"legal",children:"法务"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:80,columnNumber:25},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:81",value:"viewer",children:"只读"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:81,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:77,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:70,columnNumber:21},this)]},w._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:65,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:63,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:57,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:51,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/AuditLog.tsx:92",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/AuditLog.tsx:93",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/AuditLog.tsx:94",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(bl,{"data-loc":"client/src/pages/AuditLog.tsx:95",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:95,columnNumber:15},this),"审计统计"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:94,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:93,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:98",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:99",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:100",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:101",className:"text-2xl font-bold text-primary",children:y},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:101,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:102",className:"text-xs text-muted-foreground",children:"总操作记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:102,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:100,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:104",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:105",className:"text-2xl font-bold text-emerald-400",children:S.length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:105,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:106",className:"text-xs text-muted-foreground",children:"系统用户"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:106,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:104,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:108",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:109",className:"text-2xl font-bold text-amber-400",children:S.filter(w=>w.role==="admin").length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:109,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:110",className:"text-xs text-muted-foreground",children:"管理员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:110,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:108,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:112",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:113",className:"text-2xl font-bold text-blue-400",children:S.filter(w=>w.role==="reviewer").length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:113,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:114",className:"text-xs text-muted-foreground",children:"审核员"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:114,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:112,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:99,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:117",className:"mt-3 bg-amber-500/10 border border-amber-500/20 rounded-lg p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:118",className:"text-xs text-amber-400 font-medium flex items-center gap-1.5",children:[b.jsxDEV(bl,{"data-loc":"client/src/pages/AuditLog.tsx:119",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:119,columnNumber:17},this),"审计日志不可篡改"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:118,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:121",className:"text-xs text-muted-foreground mt-1",children:"所有关键操作均被记录,包含操作者、时间、详情,无法删除或修改。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:121,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:98,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:92,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:49,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/AuditLog.tsx:128",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/AuditLog.tsx:129",className:"pb-2",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:130",className:"flex items-center justify-between",children:[b.jsxDEV(pa,{"data-loc":"client/src/pages/AuditLog.tsx:131",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(qz,{"data-loc":"client/src/pages/AuditLog.tsx:132",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:132,columnNumber:15},this),"操作审计日志"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:131,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:134",className:"flex items-center gap-2",children:[b.jsxDEV(mr,{"data-loc":"client/src/pages/AuditLog.tsx:135",value:e,onValueChange:w=>{t(w==="ALL_FILTER"?"":w),s(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/AuditLog.tsx:136",className:"w-36 bg-input border-border/50 h-7 text-xs",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/AuditLog.tsx:136",placeholder:"全部操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:136,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:136,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/AuditLog.tsx:137",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:138",value:"ALL_FILTER",children:"全部操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:138,columnNumber:19},this),Object.keys(FD).map(w=>b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:139",value:w,children:FD[w]},w,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:139,columnNumber:56},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:137,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:135,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:142",className:"relative",children:[b.jsxDEV(eie,{"data-loc":"client/src/pages/AuditLog.tsx:143",className:"w-3.5 h-3.5 absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:143,columnNumber:17},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/AuditLog.tsx:144",value:n,onChange:w=>{r(w.target.value),s(1)},className:"bg-input border-border/50 h-7 text-xs pl-7 w-40",placeholder:"搜索用户邮箱..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:144,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:142,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:134,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:130,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:129,columnNumber:9},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:154",className:"p-0",children:[u?b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:156",className:"p-6 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:156,columnNumber:13},this):h.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:158",className:"p-6 text-center text-muted-foreground text-sm",children:"暂无审计记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:158,columnNumber:13},this):b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:160",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/AuditLog.tsx:161",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/AuditLog.tsx:162",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/AuditLog.tsx:163",className:"border-b border-border/30",children:[b.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:164",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"操作类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:164,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:165",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"操作者"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:165,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:166",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"详情"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:166,columnNumber:21},this),b.jsxDEV("th",{"data-loc":"client/src/pages/AuditLog.tsx:167",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:167,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:163,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:162,columnNumber:17},this),b.jsxDEV("tbody",{"data-loc":"client/src/pages/AuditLog.tsx:170",children:h.map(w=>b.jsxDEV("tr",{"data-loc":"client/src/pages/AuditLog.tsx:172",className:"border-b border-border/20 hover:bg-accent/20 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:173",className:"p-3",children:b.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:174",className:"text-xs px-2 py-0.5 rounded-full bg-primary/15 text-primary font-medium",children:N(w.action)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:174,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:173,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:178",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:179",className:"flex items-center gap-1.5",children:[b.jsxDEV(DT,{"data-loc":"client/src/pages/AuditLog.tsx:180",className:"w-3 h-3 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:180,columnNumber:27},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:181",className:"text-xs",children:w.userEmail},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:181,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:179,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:178,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:184",className:"p-3",children:b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:185",className:"text-xs text-muted-foreground line-clamp-1",children:w.details?JSON.stringify(w.details):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:185,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:184,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:189",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:190",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[b.jsxDEV(Vp,{"data-loc":"client/src/pages/AuditLog.tsx:191",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:191,columnNumber:27},this),w.createdAt?new Date(w.createdAt).toLocaleString("zh-CN"):"-"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:190,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:189,columnNumber:23},this)]},w._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:172,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:170,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:161,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:160,columnNumber:13},this),x>1&&b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:202",className:"flex items-center justify-center gap-2 p-3 border-t border-border/20",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/AuditLog.tsx:203",variant:"outline",size:"sm",onClick:()=>s(w=>Math.max(1,w-1)),disabled:o===1,className:"border-border/50 h-7 text-xs",children:"上一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:203,columnNumber:15},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:204",className:"text-xs text-muted-foreground",children:[o," / ",x]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:204,columnNumber:15},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AuditLog.tsx:205",variant:"outline",size:"sm",onClick:()=>s(w=>Math.min(x,w+1)),disabled:o===x,className:"border-border/50 h-7 text-xs",children:"下一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:205,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:202,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:154,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:128,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:38,columnNumber:5},this)}const KD={BookOpen:Vae,Shield:bl,Languages:Fb,ClipboardCheck:Uae};function uAe({confidence:e}){const t=Math.round(e*100),n=t>=80?"text-green-600":t>=60?"text-yellow-600":"text-red-500";return b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:51",className:`text-xs ${n} flex items-center gap-1`,children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/AIAgents.tsx:52",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:52,columnNumber:7},this),"置信度 ",t,"%"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:51,columnNumber:5},this)}function dAe({msg:e}){const t=e.role==="user";return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:62",className:`flex gap-3 ${t?"flex-row-reverse":"flex-row"}`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:63",className:`w-8 h-8 rounded-full flex items-center justify-center shrink-0 ${t?"bg-primary text-primary-foreground":"bg-muted"}`,children:t?b.jsxDEV(DT,{"data-loc":"client/src/pages/AIAgents.tsx:64",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:64,columnNumber:19},this):b.jsxDEV(vh,{"data-loc":"client/src/pages/AIAgents.tsx:64",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:64,columnNumber:94},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:63,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:66",className:`max-w-[75%] space-y-1 ${t?"items-end":"items-start"} flex flex-col`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:67",className:`rounded-2xl px-4 py-3 text-sm leading-relaxed whitespace-pre-wrap break-words ${t?"bg-primary text-primary-foreground rounded-tr-sm":"bg-muted text-foreground rounded-tl-sm"}`,dir:e.isRTL?"rtl":"ltr",children:e.content},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:67,columnNumber:9},this),!t&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:78",className:"flex flex-wrap gap-2 px-1",children:[e.confidence!==void 0&&b.jsxDEV(uAe,{"data-loc":"client/src/pages/AIAgents.tsx:79",confidence:e.confidence},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:79,columnNumber:46},this),e.sources&&e.sources.length>0&&b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:81",className:"text-xs text-muted-foreground flex items-center gap-1",children:[b.jsxDEV(C_,{"data-loc":"client/src/pages/AIAgents.tsx:82",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:82,columnNumber:17},this),"引用:",e.sources.slice(0,2).join("、"),e.sources.length>2&&` 等${e.sources.length}条`]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:81,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:78,columnNumber:11},this),!t&&e.suggestions&&e.suggestions.length>0&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:90",className:"flex flex-wrap gap-1 px-1",children:e.suggestions.map((n,r)=>b.jsxDEV(za,{"data-loc":"client/src/pages/AIAgents.tsx:92",variant:"outline",className:"text-xs cursor-default",children:n},r,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:92,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:90,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:66,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:62,columnNumber:5},this)}function fAe(){const{t:e}=jp(),[t,n]=R.useState(null),[r,o]=R.useState([]),[s,c]=R.useState(""),u=R.useRef(null),{data:f,isLoading:m}=at.aiAgent.list.useQuery(),{data:g}=at.aiAgent.status.useQuery(),h=at.aiAgent.chat.useMutation({onSuccess:A=>{o(D=>[...D,{role:"assistant",content:A.message,confidence:A.confidence,sources:A.sources,suggestions:A.suggestions,isRTL:A.metadata?.isRTL}])},onError:A=>{Nt.error(`Agent响应失败: ${A.message}`)}});R.useEffect(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[r]);const y=A=>{n(A),o([]),c("")},x=()=>{const A=s.trim();if(!A||h.isPending)return;const D={role:"user",content:A};o(P=>[...P,D]),c("");const _=r.slice(-6).map(P=>({role:P.role,content:P.content}));h.mutate({agentType:t,userMessage:A,conversationHistory:_})},S=A=>{c(A)},N=A=>{A.key==="Enter"&&!A.shiftKey&&(A.preventDefault(),x())},w=f?.agents.find(A=>A.type===t);return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:180",className:"flex h-full gap-0 overflow-hidden",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:182",className:"w-72 shrink-0 border-r flex flex-col bg-muted/20",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:183",className:"p-4 border-b",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:184",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(OT,{"data-loc":"client/src/pages/AIAgents.tsx:185",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:185,columnNumber:13},this),b.jsxDEV("h2",{"data-loc":"client/src/pages/AIAgents.tsx:186",className:"font-semibold text-sm",children:"AI智能体"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:186,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:184,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:188",className:"text-xs text-muted-foreground",children:"选择智能体开始对话"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:188,columnNumber:11},this),g&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:191",className:`mt-2 flex items-center gap-1.5 text-xs px-2 py-1 rounded-md ${g.configured?"bg-green-500/10 text-green-600":"bg-yellow-500/10 text-yellow-600"}`,children:g.configured?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/AIAgents.tsx:193",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:193,columnNumber:21},this),"AI服务已就绪 · ",g.model]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:193,columnNumber:19},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(ST,{"data-loc":"client/src/pages/AIAgents.tsx:194",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:194,columnNumber:21},this),"AI服务未配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:194,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:191,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:183,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:200",className:"flex-1 overflow-y-auto p-2 space-y-1",children:m?b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:202",className:"flex items-center justify-center py-8",children:b.jsxDEV(Fr,{"data-loc":"client/src/pages/AIAgents.tsx:203",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:203,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:202,columnNumber:13},this):f?.agents.map(A=>{const D=KD[A.icon]||vh,_=t===A.type;return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:210",onClick:()=>y(A.type),className:`w-full text-left rounded-lg p-3 transition-all ${_?"bg-primary text-primary-foreground":"hover:bg-muted"}`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:219",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(D,{"data-loc":"client/src/pages/AIAgents.tsx:220",className:"w-4 h-4 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:220,columnNumber:21},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:221",className:"text-sm font-medium truncate",children:A.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:221,columnNumber:21},this),_&&b.jsxDEV(zz,{"data-loc":"client/src/pages/AIAgents.tsx:222",className:"w-3 h-3 ml-auto shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:222,columnNumber:34},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:219,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:224",className:`text-xs leading-snug line-clamp-2 ${_?"text-primary-foreground/80":"text-muted-foreground"}`,children:A.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:224,columnNumber:19},this)]},A.type,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:210,columnNumber:17},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:200,columnNumber:9},this),f&&!f.configured&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:235",className:"p-3 border-t",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:236",className:"bg-yellow-500/10 text-yellow-700 text-xs rounded-lg p-2.5 leading-relaxed",children:[b.jsxDEV(ST,{"data-loc":"client/src/pages/AIAgents.tsx:237",className:"w-3 h-3 inline mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:237,columnNumber:15},this),f.configHint]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:236,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:235,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:182,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:245",className:"flex-1 flex flex-col overflow-hidden",children:t?b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:278",className:"border-b px-4 py-3 flex items-center gap-3 bg-background",children:[w&&(()=>{const A=KD[w.icon]||vh;return b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:283",className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:b.jsxDEV(A,{"data-loc":"client/src/pages/AIAgents.tsx:284",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:284,columnNumber:23},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:283,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:286",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:287",className:"text-sm font-semibold",children:w.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:287,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:288",className:"text-xs text-muted-foreground",children:w.capabilities.slice(0,3).join(" · ")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:288,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:286,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:282,columnNumber:19},this)})(),b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:293",variant:"ghost",size:"sm",className:"ml-auto text-xs text-muted-foreground",onClick:()=>o([]),children:"清空对话"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:293,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:278,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:304",className:"flex-1 overflow-y-auto p-4 space-y-4",children:[r.length===0&&w&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:306",className:"text-center py-8",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:307",className:"text-sm text-muted-foreground mb-4",children:"建议提问:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:307,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:308",className:"flex flex-wrap gap-2 justify-center",children:w.suggestedQuestions.map((A,D)=>b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:310",onClick:()=>S(A),className:"text-xs border rounded-full px-3 py-1.5 hover:bg-muted transition-colors text-left",children:A},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:310,columnNumber:23},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:308,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:306,columnNumber:17},this),r.map((A,D)=>b.jsxDEV(dAe,{"data-loc":"client/src/pages/AIAgents.tsx:323",msg:A},D,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:323,columnNumber:17},this)),h.isPending&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:327",className:"flex gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:328",className:"w-8 h-8 rounded-full bg-muted flex items-center justify-center shrink-0",children:b.jsxDEV(vh,{"data-loc":"client/src/pages/AIAgents.tsx:329",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:329,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:328,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:331",className:"bg-muted rounded-2xl rounded-tl-sm px-4 py-3",children:b.jsxDEV(Fr,{"data-loc":"client/src/pages/AIAgents.tsx:332",className:"w-4 h-4 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:332,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:331,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:327,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:337",ref:u},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:337,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:304,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:341",className:"border-t p-4 bg-background",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:342",className:"flex gap-2 items-end",children:[b.jsxDEV(cf,{"data-loc":"client/src/pages/AIAgents.tsx:343",value:s,onChange:A=>c(A.target.value),onKeyDown:N,placeholder:`向${w?.name||"AI助手"}提问... (Enter发送Shift+Enter换行)`,className:"flex-1 min-h-[60px] max-h-[120px] resize-none text-sm",disabled:h.isPending},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:343,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:351",onClick:x,disabled:!s.trim()||h.isPending,size:"icon",className:"h-10 w-10 shrink-0",children:h.isPending?b.jsxDEV(Fr,{"data-loc":"client/src/pages/AIAgents.tsx:358",className:"w-4 h-4 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:358,columnNumber:23},this):b.jsxDEV(Fz,{"data-loc":"client/src/pages/AIAgents.tsx:359",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:359,columnNumber:23},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:351,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:342,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:363",className:"text-xs text-muted-foreground mt-1.5",children:"AI回答仅供参考重要合规决策请咨询专业法律顾问"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:363,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:341,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:276,columnNumber:11},this):b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:248",className:"flex-1 flex items-center justify-center p-8",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:249",className:"text-center max-w-md",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:250",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:b.jsxDEV(OT,{"data-loc":"client/src/pages/AIAgents.tsx:251",className:"w-8 h-8 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:251,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:250,columnNumber:15},this),b.jsxDEV("h3",{"data-loc":"client/src/pages/AIAgents.tsx:253",className:"text-lg font-semibold mb-2",children:"NAC AI智能体系统"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:253,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:254",className:"text-sm text-muted-foreground mb-6",children:"选择左侧的智能体开始对话。每个智能体专注于不同的业务场景,可以帮助您处理合规查询、风险分析、多语言翻译和审批辅助。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:254,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:257",className:"grid grid-cols-2 gap-3",children:f?.agents.map(A=>{const D=KD[A.icon]||vh;return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:261",onClick:()=>y(A.type),className:"border rounded-xl p-3 text-left hover:border-primary hover:bg-primary/5 transition-all",children:[b.jsxDEV(D,{"data-loc":"client/src/pages/AIAgents.tsx:266",className:"w-5 h-5 text-primary mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:266,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:267",className:"text-sm font-medium",children:A.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:267,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:268",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:A.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:268,columnNumber:23},this)]},A.type,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:261,columnNumber:21},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:257,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:249,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:248,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:245,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:180,columnNumber:5},this)}function mAe({name:e,envKey:t,configured:n,description:r,docUrl:o,onTest:s,isTesting:c}){return b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:25",className:`border ${n?"border-green-500/30 bg-green-500/5":"border-border"}`,children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/NotificationSettings.tsx:26",className:"pb-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:27",className:"flex items-center justify-between",children:[b.jsxDEV(pa,{"data-loc":"client/src/pages/NotificationSettings.tsx:28",className:"text-sm font-semibold",children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:28,columnNumber:11},this),b.jsxDEV(za,{"data-loc":"client/src/pages/NotificationSettings.tsx:29",variant:n?"default":"secondary",className:"text-xs",children:n?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/NotificationSettings.tsx:30",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:29},this),"已配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:27},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Hh,{"data-loc":"client/src/pages/NotificationSettings.tsx:30",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:137},this),"未配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:29,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:27,columnNumber:9},this),b.jsxDEV(Vz,{"data-loc":"client/src/pages/NotificationSettings.tsx:33",className:"text-xs",children:r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:26,columnNumber:7},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:35",className:"space-y-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:36",className:"bg-muted rounded-md p-2.5",children:b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:37",className:"text-xs font-mono text-muted-foreground",children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:37,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:36,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:39",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/NotificationSettings.tsx:40",variant:"outline",size:"sm",className:"text-xs",onClick:s,disabled:!n||c,children:[c?b.jsxDEV(Fr,{"data-loc":"client/src/pages/NotificationSettings.tsx:47",className:"w-3 h-3 mr-1 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:47,columnNumber:26},this):b.jsxDEV(Fz,{"data-loc":"client/src/pages/NotificationSettings.tsx:47",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:47,columnNumber:134},this),"发送测试通知"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:40,columnNumber:11},this),b.jsxDEV("a",{"data-loc":"client/src/pages/NotificationSettings.tsx:50",href:o,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:"配置文档 →"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:39,columnNumber:9},this),!n&&b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:60",className:"text-xs text-muted-foreground bg-muted/50 rounded p-2",children:["在生产服务器 ",b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:61",className:"font-mono",children:"/opt/nac/nac-admin/.env"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:61,columnNumber:20},this)," 中添加:",b.jsxDEV("br",{"data-loc":"client/src/pages/NotificationSettings.tsx:61"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:61,columnNumber:139},this),b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:62",className:"font-mono text-primary",children:[t,"=https://..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:62,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:60,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:35,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:25,columnNumber:5},this)}function hAe(){const[e,t]=R.useState(null),{data:n,isLoading:r,refetch:o}=at.notification.webhookStatus.useQuery(),s=at.notification.test.useMutation({onSuccess:(g,h)=>{g.success?Nt.success(`${h.channel} 测试通知发送成功`):Nt.error(`${h.channel} 测试通知发送失败`),t(null)},onError:g=>{Nt.error(`发送失败: ${g.message}`),t(null)}}),c=at.notification.testCrawlerAlert.useMutation({onSuccess:()=>{Nt.success("采集器告警测试已发送到所有已配置的渠道")},onError:g=>{Nt.error(`发送失败: ${g.message}`)}}),u=g=>{t(g),s.mutate({channel:g})},f=[{name:"企业微信WeCom",key:"NAC_NOTIFY_WECOM_URL",configured:n?.wecom||!1,description:"通过企业微信机器人发送Markdown格式告警消息支持@全体成员critical级别",docUrl:"https://developer.work.weixin.qq.com/document/path/91770",channel:"wecom"},{name:"钉钉DingTalk",key:"NAC_NOTIFY_DINGTALK_URL",configured:n?.dingtalk||!1,description:"通过钉钉自定义机器人发送Markdown消息critical级别自动@所有人",docUrl:"https://open.dingtalk.com/document/robots/custom-robot-access",channel:"dingtalk"},{name:"飞书Feishu/Lark",key:"NAC_NOTIFY_FEISHU_URL",configured:n?.feishu||!1,description:"通过飞书自定义机器人发送卡片消息,支持彩色标题(绿/黄/红)",docUrl:"https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot",channel:"feishu"},{name:"通用Webhook",key:"NAC_NOTIFY_WEBHOOK_URL",configured:n?.generic||!1,description:"发送JSON格式通知到任意Webhook端点适用于自定义告警系统",docUrl:"#",channel:"generic"}],m=f.filter(g=>g.configured).length;return b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:146",className:"p-6 space-y-6 max-w-4xl",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:148",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:149",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(Bz,{"data-loc":"client/src/pages/NotificationSettings.tsx:150",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:150,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/NotificationSettings.tsx:151",className:"text-xl font-bold",children:"告警通知配置"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:151,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:149,columnNumber:9},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:153",className:"text-sm text-muted-foreground",children:"配置企业微信、钉钉、飞书等国内Webhook渠道接收采集器异常、备份失败等系统告警"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:148,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:159",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:160",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:161",className:"flex items-center gap-4",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:162",className:`w-10 h-10 rounded-full flex items-center justify-center ${m>0?"bg-green-500/10":"bg-yellow-500/10"}`,children:m>0?b.jsxDEV(mi,{"data-loc":"client/src/pages/NotificationSettings.tsx:164",className:"w-5 h-5 text-green-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:164,columnNumber:19},this):b.jsxDEV(Ic,{"data-loc":"client/src/pages/NotificationSettings.tsx:165",className:"w-5 h-5 text-yellow-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:165,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:162,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:168",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:169",className:"text-sm font-medium",children:m>0?`已配置 ${m} 个通知渠道`:"尚未配置任何通知渠道"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:169,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:175",className:"text-xs text-muted-foreground",children:m>0?"所有已配置的渠道都会收到告警通知(不是只发一个)":"配置至少一个渠道以接收系统告警"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:168,columnNumber:13},this),m>0&&b.jsxDEV(rt,{"data-loc":"client/src/pages/NotificationSettings.tsx:183",variant:"outline",size:"sm",className:"ml-auto text-xs",onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?b.jsxDEV(Fr,{"data-loc":"client/src/pages/NotificationSettings.tsx:191",className:"w-3 h-3 mr-1 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:191,columnNumber:21},this):b.jsxDEV(Ic,{"data-loc":"client/src/pages/NotificationSettings.tsx:192",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:192,columnNumber:21},this),"模拟采集器告警"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:183,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:161,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:160,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:159,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:202",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/NotificationSettings.tsx:203",className:"pb-3",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/NotificationSettings.tsx:204",className:"text-sm flex items-center gap-2",children:[b.jsxDEV(C_,{"data-loc":"client/src/pages/NotificationSettings.tsx:205",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:205,columnNumber:13},this),"告警触发场景"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:204,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:203,columnNumber:9},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:209",children:b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:210",className:"grid grid-cols-2 gap-3 text-xs",children:[{level:"error",label:"采集器异常",desc:"任意采集器连接失败或抓取错误"},{level:"critical",label:"MongoDB备份失败",desc:"每日凌晨3点备份任务失败"},{level:"warning",label:"审批案例告警",desc:"高风险案例或超期未处理"},{level:"info",label:"归档任务完成",desc:"每月1日案例库归档完成通知"}].map(g=>b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:217",className:"flex items-start gap-2 p-2 bg-muted/50 rounded-lg",children:[b.jsxDEV(za,{"data-loc":"client/src/pages/NotificationSettings.tsx:218",variant:"outline",className:`text-xs shrink-0 ${g.level==="critical"?"border-red-500 text-red-500":g.level==="error"?"border-orange-500 text-orange-500":g.level==="warning"?"border-yellow-500 text-yellow-500":"border-green-500 text-green-500"}`,children:g.level},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:218,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:229",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:230",className:"font-medium",children:g.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:230,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:231",className:"text-muted-foreground",children:g.desc},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:231,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:229,columnNumber:17},this)]},g.label,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:217,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:209,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:202,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:240",children:[b.jsxDEV("h2",{"data-loc":"client/src/pages/NotificationSettings.tsx:241",className:"text-sm font-semibold mb-3",children:"通知渠道配置"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:241,columnNumber:9},this),r?b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:243",className:"flex items-center justify-center py-8",children:b.jsxDEV(Fr,{"data-loc":"client/src/pages/NotificationSettings.tsx:244",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:244,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:243,columnNumber:11},this):b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:247",className:"grid grid-cols-2 gap-4",children:f.map(g=>b.jsxDEV(mAe,{"data-loc":"client/src/pages/NotificationSettings.tsx:249",name:g.name,envKey:g.key,configured:g.configured,description:g.description,docUrl:g.docUrl,onTest:()=>u(g.channel),isTesting:e===g.channel},g.key,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:249,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:247,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:240,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:265",className:"border-dashed",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:266",className:"pt-4",children:b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:267",className:"text-xs text-muted-foreground leading-relaxed",children:[b.jsxDEV("strong",{"data-loc":"client/src/pages/NotificationSettings.tsx:268",children:"配置方式:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:268,columnNumber:13},this),"在生产服务器上编辑 ",b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:268",className:"font-mono bg-muted px-1 rounded",children:"/opt/nac/nac-admin/.env"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:268,columnNumber:102},this)," 添加对应的Webhook URL后重启服务",b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:269",className:"font-mono bg-muted px-1 rounded",children:"systemctl restart nac-admin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:269,columnNumber:35},this),")。 所有已配置的渠道都会同时收到通知,无需选择。"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:267,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:266,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:265,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:146,columnNumber:5},this)}function O8({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/table.tsx:7","data-slot":"table-container",className:"relative w-full overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/components/ui/table.tsx:11","data-slot":"table",className:wt("w-full caption-bottom text-sm",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:11,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:7,columnNumber:5},this)}function D8({className:e,...t}){return b.jsxDEV("thead",{"data-loc":"client/src/components/ui/table.tsx:22","data-slot":"table-header",className:wt("[&_tr]:border-b",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:22,columnNumber:5},this)}function T8({className:e,...t}){return b.jsxDEV("tbody",{"data-loc":"client/src/components/ui/table.tsx:32","data-slot":"table-body",className:wt("[&_tr:last-child]:border-0",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:32,columnNumber:5},this)}function Bb({className:e,...t}){return b.jsxDEV("tr",{"data-loc":"client/src/components/ui/table.tsx:55","data-slot":"table-row",className:wt("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:55,columnNumber:5},this)}function ai({className:e,...t}){return b.jsxDEV("th",{"data-loc":"client/src/components/ui/table.tsx:68","data-slot":"table-head",className:wt("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:68,columnNumber:5},this)}function ii({className:e,...t}){return b.jsxDEV("td",{"data-loc":"client/src/components/ui/table.tsx:81","data-slot":"table-cell",className:wt("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:81,columnNumber:5},this)}function pAe(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function C8(e){return e?new Date(e).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai"}):"-"}function gAe(){const[e,t]=R.useState("overview"),{data:n,isLoading:r,refetch:o}=at.archive.dryRun.useQuery(),{data:s,isLoading:c,refetch:u}=at.archive.logs.useQuery({limit:20}),{data:f,isLoading:m}=at.archive.listArchived.useQuery({page:1,pageSize:20}),g=at.archive.run.useMutation({onSuccess:y=>{y.success?Nt.success(`归档完成:共归档 ${y.archivedCount} 个案例`):Nt.warning(`归档部分失败:成功 ${y.archivedCount},失败 ${y.failedCount}`),o(),u()},onError:y=>{Nt.error(`归档失败: ${y.message}`)}}),h=()=>{confirm(`确认执行归档将把超过1年的已完结案例共 ${n?.totalEligible||0} 个)迁移到归档集合。此操作不可撤销。`)&&g.mutate()};return b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:62",className:"p-6 space-y-6 max-w-5xl",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:64",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:65",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:66",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:66,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/ArchiveManagement.tsx:67",className:"text-xl font-bold",children:"案例库归档管理"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:65,columnNumber:9},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:69",className:"text-sm text-muted-foreground",children:"将超过1年的已完结审批案例迁移到归档集合防止主集合数据量持续增长影响查询性能"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:69,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:64,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:75",className:"grid grid-cols-3 gap-4",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:76",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:77",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:78",className:"flex items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:79",className:"w-10 h-10 rounded-lg bg-yellow-500/10 flex items-center justify-center",children:b.jsxDEV(Ic,{"data-loc":"client/src/pages/ArchiveManagement.tsx:80",className:"w-5 h-5 text-yellow-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:80,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:79,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:82",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:83",className:"text-2xl font-bold",children:r?"...":n?.totalEligible||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:83,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:84",className:"text-xs text-muted-foreground",children:"待归档案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:84,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:82,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:78,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:77,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:76,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:90",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:91",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:92",className:"flex items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:93",className:"w-10 h-10 rounded-lg bg-blue-500/10 flex items-center justify-center",children:b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:94",className:"w-5 h-5 text-blue-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:94,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:93,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:96",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:97",className:"text-2xl font-bold",children:m?"...":f?.total||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:97,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:98",className:"text-xs text-muted-foreground",children:"已归档案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:98,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:96,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:92,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:91,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:90,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:104",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:105",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:106",className:"flex items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:107",className:"w-10 h-10 rounded-lg bg-green-500/10 flex items-center justify-center",children:b.jsxDEV(Bae,{"data-loc":"client/src/pages/ArchiveManagement.tsx:108",className:"w-5 h-5 text-green-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:108,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:107,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:110",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:111",className:"text-2xl font-bold",children:c?"...":s?.length||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:111,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:112",className:"text-xs text-muted-foreground",children:"历史归档次数"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:112,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:110,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:106,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:105,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:75,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:120",className:"border-blue-500/20 bg-blue-500/5",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:121",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:122",className:"flex gap-3",children:[b.jsxDEV(C_,{"data-loc":"client/src/pages/ArchiveManagement.tsx:123",className:"w-4 h-4 text-blue-600 shrink-0 mt-0.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:123,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:124",className:"text-xs text-blue-700 space-y-1",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:125",className:"font-medium",children:"归档策略"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:125,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",children:["• 归档条件:状态为 ",b.jsxDEV("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",className:"bg-blue-100 px-1 rounded",children:"approved"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:126,columnNumber:83},this)," 或 ",b.jsxDEV("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",className:"bg-blue-100 px-1 rounded",children:"rejected"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:126,columnNumber:198},this),",且最后更新时间超过 365 天"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:126,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:127",children:"• 自动执行:每月 1 日凌晨 2:00 由 cron 任务自动触发"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:127,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:128",children:["• 法律保留:归档集合(",b.jsxDEV("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:128",className:"bg-blue-100 px-1 rounded",children:"approval_cases_archive"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:128,columnNumber:84},this),")永久保留,不自动删除"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:128,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:129",children:"• 告警通知:归档完成后自动推送到已配置的 Webhook 渠道"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:129,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:124,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:122,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:120,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:136",className:"flex items-center gap-3",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ArchiveManagement.tsx:137",onClick:h,disabled:g.isPending||n?.totalEligible===0,className:"gap-2",children:[g.isPending?b.jsxDEV(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:143",className:"w-4 h-4 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:143,columnNumber:15},this):b.jsxDEV(AT,{"data-loc":"client/src/pages/ArchiveManagement.tsx:144",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:144,columnNumber:15},this),g.isPending?"归档中...":`立即执行归档(${n?.totalEligible||0} 个案例)`]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:137,columnNumber:9},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ArchiveManagement.tsx:148",variant:"outline",size:"sm",onClick:()=>{o(),u()},className:"gap-1",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/ArchiveManagement.tsx:154",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:154,columnNumber:11},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:148,columnNumber:9},this),n?.totalEligible===0&&b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:158",className:"text-xs text-muted-foreground flex items-center gap-1",children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/ArchiveManagement.tsx:159",className:"w-3 h-3 text-green-500"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:159,columnNumber:13},this),"当前无需归档的案例"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:158,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:136,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:166",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:167",className:"flex gap-1 border-b mb-4",children:[{key:"logs",label:"归档历史",icon:Vp},{key:"archived",label:"归档案例",icon:yd}].map(y=>{const x=y.icon;return b.jsxDEV("button",{"data-loc":"client/src/pages/ArchiveManagement.tsx:174",onClick:()=>t(y.key),className:`flex items-center gap-1.5 px-4 py-2 text-sm border-b-2 transition-colors ${e===y.key?"border-primary text-primary font-medium":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[b.jsxDEV(x,{"data-loc":"client/src/pages/ArchiveManagement.tsx:183",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:183,columnNumber:17},this),y.label]},y.key,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:174,columnNumber:15},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:167,columnNumber:9},this),e==="logs"&&b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:192",children:c?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:194",className:"flex items-center justify-center py-8",children:b.jsxDEV(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:195",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:195,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:194,columnNumber:15},this):!s||s.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:198",className:"text-center py-12 text-muted-foreground",children:[b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:199",className:"w-8 h-8 mx-auto mb-2 opacity-30"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:199,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:200",className:"text-sm",children:"暂无归档历史记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:200,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:198,columnNumber:15},this):b.jsxDEV(O8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:203",children:[b.jsxDEV(D8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:204",children:b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:205",children:[b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:206",children:"执行时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:206,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:207",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:207,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:208",children:"符合条件"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:208,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:209",children:"已归档"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:209,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:210",children:"失败"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:210,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:211",children:"耗时"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:211,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:205,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:204,columnNumber:17},this),b.jsxDEV(T8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:214",children:s.map((y,x)=>b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:216",children:[b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:217",className:"text-xs",children:C8(y.executedAt)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:217,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:218",children:b.jsxDEV(za,{"data-loc":"client/src/pages/ArchiveManagement.tsx:219",variant:y.success?"default":"destructive",className:"text-xs",children:y.success?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/ArchiveManagement.tsx:220",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:44},this),"成功"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:42},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Hh,{"data-loc":"client/src/pages/ArchiveManagement.tsx:220",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:149},this),"失败"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:147},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:219,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:218,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:223",className:"text-sm",children:y.totalEligible},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:223,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:224",className:"text-sm text-green-600 font-medium",children:y.archivedCount},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:224,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:225",className:"text-sm text-red-500",children:y.failedCount||"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:225,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:226",className:"text-xs text-muted-foreground",children:pAe(y.durationMs)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:226,columnNumber:23},this)]},x,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:216,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:214,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:203,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:192,columnNumber:11},this),e==="archived"&&b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:237",children:m?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:239",className:"flex items-center justify-center py-8",children:b.jsxDEV(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:240",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:240,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:239,columnNumber:15},this):!f||f.total===0?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:243",className:"text-center py-12 text-muted-foreground",children:[b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:244",className:"w-8 h-8 mx-auto mb-2 opacity-30"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:244,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:245",className:"text-sm",children:"归档集合为空"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:245,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:243,columnNumber:15},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:249",className:"text-xs text-muted-foreground mb-3",children:["共 ",f.total," 个归档案例显示最新20条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:249,columnNumber:17},this),b.jsxDEV(O8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:250",children:[b.jsxDEV(D8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:251",children:b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:252",children:[b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:253",children:"案例编号"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:253,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:254",children:"司法管辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:254,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:255",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:255,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:256",children:"归档时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:256,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:257",children:"归档原因"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:257,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:252,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:251,columnNumber:19},this),b.jsxDEV(T8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:260",children:f.items.map((y,x)=>b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:262",children:[b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:263",className:"text-xs font-mono",children:y.caseNumber||y._id?.toString().slice(-8)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:263,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:264",children:b.jsxDEV(za,{"data-loc":"client/src/pages/ArchiveManagement.tsx:265",variant:"outline",className:"text-xs",children:y.jurisdiction||"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:265,columnNumber:27},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:264,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:267",children:b.jsxDEV(za,{"data-loc":"client/src/pages/ArchiveManagement.tsx:268",variant:y.status==="approved"?"default":"secondary",className:"text-xs",children:y.status==="approved"?"已批准":"已拒绝"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:268,columnNumber:27},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:267,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:275",className:"text-xs",children:y.archivedAt?C8(new Date(y.archivedAt).toISOString()):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:275,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:276",className:"text-xs text-muted-foreground",children:y.archiveReason||"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:276,columnNumber:25},this)]},x,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:262,columnNumber:23},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:260,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:250,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:248,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:237,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:166,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:62,columnNumber:5},this)}function Xi({children:e}){const[t,n]=j_(),{t:r}=jp(),o=[{path:"/",icon:Yae,label:r("nav.dashboard"),desc:r("dashboard.subtitle").slice(0,8)+"..."},{path:"/knowledge",icon:T_,label:r("nav.knowledgeBase"),desc:r("knowledgeBase.subtitle").slice(0,6)+"..."},{path:"/crawlers",icon:Zae,label:r("nav.crawlers"),desc:r("crawlers.subtitle").slice(0,6)+"..."},{path:"/approvals",icon:Hae,label:r("nav.approvalCases"),desc:r("approvals.subtitle").slice(0,6)+"..."},{path:"/tags",icon:Kz,label:r("nav.tagEngine"),desc:r("tagEngine.subtitle").slice(0,6)+"..."},{path:"/protocols",icon:Dh,label:r("nav.protocolRegistry"),desc:r("protocols.subtitle").slice(0,6)+"..."},{path:"/audit",icon:bl,label:r("nav.auditLog"),desc:r("audit.subtitle").slice(0,6)+"..."},{path:"/ai-agents",icon:OT,label:"AI智能体",desc:"合规问答·分析"},{path:"/notifications",icon:Bz,label:"告警通知",desc:"企微·钉钉·飞书"},{path:"/archive",icon:yd,label:"案例归档",desc:"历史案例管理"}],{data:s,isLoading:c}=at.nacAuth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),u=at.nacAuth.logout.useMutation({onSuccess:()=>{n("/login"),Nt.success(r("auth.logoutSuccess"))}});if(R.useEffect(()=>{!c&&!s&&n("/login")},[c,s,n]),c)return b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:55",className:"min-h-screen bg-background flex items-center justify-center",children:b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:56",className:"flex flex-col items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:57",className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:57,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:58",className:"text-sm text-muted-foreground",children:r("auth.verifying")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:58,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:56,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:55,columnNumber:7},this);if(!s)return null;const f=s;return b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:69",className:"min-h-screen bg-background flex",children:[b.jsxDEV("aside",{"data-loc":"client/src/components/AdminLayout.tsx:71",className:"w-60 shrink-0 bg-card border-r border-border/50 flex flex-col",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:73",className:"h-14 flex items-center px-4 border-b border-border/50 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:74",className:"w-8 h-8 rounded-lg nac-gradient flex items-center justify-center shrink-0",children:b.jsxDEV(Lc,{"data-loc":"client/src/components/AdminLayout.tsx:75",className:"w-4 h-4 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:75,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:74,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:77",className:"overflow-hidden",children:[b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:78",className:"text-sm font-bold nac-gradient-text leading-tight",children:r("nav.systemTitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:78,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:79",className:"text-xs text-muted-foreground",children:r("nav.systemSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:79,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:77,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:73,columnNumber:9},this),b.jsxDEV("nav",{"data-loc":"client/src/components/AdminLayout.tsx:84",className:"flex-1 p-2 space-y-0.5 overflow-y-auto",children:o.map(m=>{const g=t===m.path;return b.jsxDEV(Aie,{"data-loc":"client/src/components/AdminLayout.tsx:88",href:m.path,children:b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:89",className:`flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-all
${g?"bg-primary/15 text-primary border border-primary/20":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:[b.jsxDEV(m.icon,{"data-loc":"client/src/components/AdminLayout.tsx:95",className:`w-4 h-4 shrink-0 ${g?"text-primary":""}`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:95,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:96",className:"flex-1 overflow-hidden",children:b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:97",className:"text-sm font-medium leading-tight truncate",children:m.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:97,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:96,columnNumber:19},this),g&&b.jsxDEV(zz,{"data-loc":"client/src/components/AdminLayout.tsx:99",className:"w-3.5 h-3.5 text-primary shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:99,columnNumber:32},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:89,columnNumber:17},this)},m.path,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:88,columnNumber:15},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:84,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:107",className:"p-3 border-t border-border/50",children:b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:108",className:"flex items-center gap-2",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:109",className:"w-7 h-7 rounded-full nac-gradient flex items-center justify-center shrink-0",children:b.jsxDEV("span",{"data-loc":"client/src/components/AdminLayout.tsx:110",className:"text-xs font-bold text-white",children:(f.email||"U")[0].toUpperCase()},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:110,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:109,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:114",className:"flex-1 overflow-hidden",children:[b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:115",className:"text-xs font-medium truncate",children:f.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:115,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:116",className:"text-xs text-muted-foreground capitalize",children:f.role||"admin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:116,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:114,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/components/AdminLayout.tsx:118",variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-muted-foreground hover:text-destructive shrink-0",onClick:()=>u.mutate(),title:r("auth.logout"),children:b.jsxDEV(Xae,{"data-loc":"client/src/components/AdminLayout.tsx:124",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:124,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:118,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:108,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:107,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:71,columnNumber:7},this),b.jsxDEV("main",{"data-loc":"client/src/components/AdminLayout.tsx:131",className:"flex-1 overflow-auto min-w-0",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:133",className:"h-14 border-b border-border/50 flex items-center px-6 gap-3 bg-card/50 backdrop-blur-sm sticky top-0 z-10",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:134",className:"flex-1",children:o.find(m=>m.path===t)&&b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:136",className:"text-sm font-semibold",children:o.find(m=>m.path===t)?.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:136,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:134,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:141",className:"flex items-center gap-3",children:[b.jsxDEV(gq,{"data-loc":"client/src/components/AdminLayout.tsx:143",variant:"icon"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:143,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:144",className:"w-px h-4 bg-border/50"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:144,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:145",className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:145,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/components/AdminLayout.tsx:146",className:"text-xs text-muted-foreground",children:r("dashboard.allSystemsNormal")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:146,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:141,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:133,columnNumber:9},this),e]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:69,columnNumber:5},this)}function vAe(){return b.jsxDEV(Oie,{"data-loc":"client/src/App.tsx:22",children:[b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:23",path:"/login",component:Tle},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:23,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:24",path:"/",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:24",children:b.jsxDEV(uSe,{"data-loc":"client/src/App.tsx:24"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:119},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:73},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:25",path:"/knowledge",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:25",children:b.jsxDEV(eAe,{"data-loc":"client/src/App.tsx:25"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:26",path:"/crawlers",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:26",children:b.jsxDEV(aAe,{"data-loc":"client/src/App.tsx:26"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:127},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:81},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:27",path:"/approvals",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:27",children:b.jsxDEV(iAe,{"data-loc":"client/src/App.tsx:27"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:28",path:"/tags",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:28",children:b.jsxDEV(oAe,{"data-loc":"client/src/App.tsx:28"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:123},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:77},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:29",path:"/protocols",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:29",children:b.jsxDEV(lAe,{"data-loc":"client/src/App.tsx:29"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:30",path:"/audit",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:30",children:b.jsxDEV(cAe,{"data-loc":"client/src/App.tsx:30"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:30,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:30,columnNumber:78},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:30,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:31",path:"/ai-agents",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:31",children:b.jsxDEV(fAe,{"data-loc":"client/src/App.tsx:31"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:31,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:31,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:31,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:32",path:"/notifications",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:32",children:b.jsxDEV(hAe,{"data-loc":"client/src/App.tsx:32"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:32,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:32,columnNumber:86},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:32,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:33",path:"/archive",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:33",children:b.jsxDEV(gAe,{"data-loc":"client/src/App.tsx:33"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:33,columnNumber:126},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:33,columnNumber:80},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:33,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:34",path:"/404",component:oV},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:34,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:35",component:oV},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:35,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:22,columnNumber:5},this)}function bAe(){return b.jsxDEV(Die,{"data-loc":"client/src/App.tsx:42",children:b.jsxDEV(Cie,{"data-loc":"client/src/App.tsx:43",defaultTheme:"dark",children:b.jsxDEV(A_,{"data-loc":"client/src/App.tsx:44",children:[b.jsxDEV(zte,{"data-loc":"client/src/App.tsx:45"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:45,columnNumber:11},this),b.jsxDEV(vAe,{"data-loc":"client/src/App.tsx:46"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:46,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:44,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:43,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:42,columnNumber:5},this)}const yAe=()=>"/login",ux=new jW,wG=e=>{!(e instanceof Lh)||typeof window>"u"||!(e.message===See)||window.location.pathname!=="/login"&&(window.location.href=yAe())};ux.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;wG(t),console.error("[API Query Error]",t)}});ux.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;wG(t),console.error("[API Mutation Error]",t)}});const xAe=at.createClient({links:[zZ({url:"/api/trpc",transformer:us,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});_ee.createRoot(document.getElementById("root")).render(b.jsxDEV(at.Provider,{"data-loc":"client/src/main.tsx:59",client:xAe,queryClient:ux,children:b.jsxDEV(kW,{"data-loc":"client/src/main.tsx:60",client:ux,children:b.jsxDEV(bAe,{"data-loc":"client/src/main.tsx:61"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:61,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:60,columnNumber:5},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:59,columnNumber:3},void 0));