truthound-dashboard 1.2.1__py3-none-any.whl → 1.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- truthound_dashboard/api/deps.py +28 -0
- truthound_dashboard/api/drift.py +1 -0
- truthound_dashboard/api/mask.py +164 -0
- truthound_dashboard/api/profile.py +11 -3
- truthound_dashboard/api/router.py +22 -0
- truthound_dashboard/api/scan.py +168 -0
- truthound_dashboard/api/schemas.py +13 -4
- truthound_dashboard/api/validations.py +33 -1
- truthound_dashboard/api/validators.py +85 -0
- truthound_dashboard/core/__init__.py +8 -0
- truthound_dashboard/core/phase5/activity.py +1 -1
- truthound_dashboard/core/services.py +457 -7
- truthound_dashboard/core/truthound_adapter.py +441 -26
- truthound_dashboard/db/__init__.py +6 -0
- truthound_dashboard/db/models.py +250 -1
- truthound_dashboard/schemas/__init__.py +52 -1
- truthound_dashboard/schemas/collaboration.py +1 -1
- truthound_dashboard/schemas/drift.py +118 -3
- truthound_dashboard/schemas/mask.py +209 -0
- truthound_dashboard/schemas/profile.py +45 -2
- truthound_dashboard/schemas/scan.py +312 -0
- truthound_dashboard/schemas/schema.py +30 -2
- truthound_dashboard/schemas/validation.py +60 -3
- truthound_dashboard/schemas/validators/__init__.py +59 -0
- truthound_dashboard/schemas/validators/aggregate_validators.py +238 -0
- truthound_dashboard/schemas/validators/anomaly_validators.py +723 -0
- truthound_dashboard/schemas/validators/base.py +263 -0
- truthound_dashboard/schemas/validators/completeness_validators.py +269 -0
- truthound_dashboard/schemas/validators/cross_table_validators.py +375 -0
- truthound_dashboard/schemas/validators/datetime_validators.py +253 -0
- truthound_dashboard/schemas/validators/distribution_validators.py +422 -0
- truthound_dashboard/schemas/validators/drift_validators.py +615 -0
- truthound_dashboard/schemas/validators/geospatial_validators.py +486 -0
- truthound_dashboard/schemas/validators/multi_column_validators.py +706 -0
- truthound_dashboard/schemas/validators/privacy_validators.py +531 -0
- truthound_dashboard/schemas/validators/query_validators.py +510 -0
- truthound_dashboard/schemas/validators/registry.py +318 -0
- truthound_dashboard/schemas/validators/schema_validators.py +408 -0
- truthound_dashboard/schemas/validators/string_validators.py +396 -0
- truthound_dashboard/schemas/validators/table_validators.py +412 -0
- truthound_dashboard/schemas/validators/uniqueness_validators.py +355 -0
- truthound_dashboard/schemas/validators.py +59 -0
- truthound_dashboard/static/assets/index-BZG20KuF.js +586 -0
- truthound_dashboard/static/assets/index-D_HyZ3pb.css +1 -0
- truthound_dashboard/static/assets/unmerged_dictionaries-CtpqQBm0.js +1 -0
- truthound_dashboard/static/index.html +2 -2
- {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/METADATA +50 -11
- {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/RECORD +51 -27
- truthound_dashboard/static/assets/index-BqXVFyqj.js +0 -574
- truthound_dashboard/static/assets/index-o8qHVDte.css +0 -1
- truthound_dashboard/static/assets/unmerged_dictionaries-n_T3wZTf.js +0 -1
- {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/WHEEL +0 -0
- {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/entry_points.txt +0 -0
- {truthound_dashboard-1.2.1.dist-info → truthound_dashboard-1.3.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,574 +0,0 @@
|
|
|
1
|
-
function L4(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 i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{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 i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();const F4="modulepreload",B4=function(e){return"/"+e},tw={},U4=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(c=>{if(c=B4(c),c in tw)return;tw[c]=!0;const u=c.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":F4,u||(d.as="script"),d.crossOrigin="",d.href=c,s&&d.setAttribute("nonce",s),document.head.appendChild(d),u)return new Promise((p,v)=>{d.addEventListener("load",p),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};var uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i_={exports:{}},rp={},a_={exports:{}},we={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Dc=Symbol.for("react.element"),H4=Symbol.for("react.portal"),z4=Symbol.for("react.fragment"),W4=Symbol.for("react.strict_mode"),G4=Symbol.for("react.profiler"),V4=Symbol.for("react.provider"),K4=Symbol.for("react.context"),Y4=Symbol.for("react.forward_ref"),q4=Symbol.for("react.suspense"),X4=Symbol.for("react.memo"),Z4=Symbol.for("react.lazy"),nw=Symbol.iterator;function Q4(e){return e===null||typeof e!="object"?null:(e=nw&&e[nw]||e["@@iterator"],typeof e=="function"?e:null)}var s_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},l_=Object.assign,c_={};function hs(e,t,n){this.props=e,this.context=t,this.refs=c_,this.updater=n||s_}hs.prototype.isReactComponent={};hs.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hs.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function u_(){}u_.prototype=hs.prototype;function Qg(e,t,n){this.props=e,this.context=t,this.refs=c_,this.updater=n||s_}var Jg=Qg.prototype=new u_;Jg.constructor=Qg;l_(Jg,hs.prototype);Jg.isPureReactComponent=!0;var rw=Array.isArray,d_=Object.prototype.hasOwnProperty,ex={current:null},f_={key:!0,ref:!0,__self:!0,__source:!0};function p_(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)d_.call(t,r)&&!f_.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:Dc,type:e,key:i,ref:a,props:o,_owner:ex.current}}function J4(e,t){return{$$typeof:Dc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function tx(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dc}function e3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ow=/\/+/g;function Uh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?e3(""+e.key):t.toString(36)}function Ju(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Dc:case H4:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Uh(a,0):r,rw(o)?(n="",e!=null&&(n=e.replace(ow,"$&/")+"/"),Ju(o,t,n,"",function(u){return u})):o!=null&&(tx(o)&&(o=J4(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(ow,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",rw(e))for(var s=0;s<e.length;s++){i=e[s];var c=r+Uh(i,s);a+=Ju(i,t,n,c,o)}else if(c=Q4(e),typeof c=="function")for(e=c.call(e),s=0;!(i=e.next()).done;)i=i.value,c=r+Uh(i,s++),a+=Ju(i,t,n,c,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function du(e,t,n){if(e==null)return e;var r=[],o=0;return Ju(e,r,"","",function(i){return t.call(n,i,o++)}),r}function t3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var zt={current:null},ed={transition:null},n3={ReactCurrentDispatcher:zt,ReactCurrentBatchConfig:ed,ReactCurrentOwner:ex};function h_(){throw Error("act(...) is not supported in production builds of React.")}we.Children={map:du,forEach:function(e,t,n){du(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return du(e,function(){t++}),t},toArray:function(e){return du(e,function(t){return t})||[]},only:function(e){if(!tx(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};we.Component=hs;we.Fragment=z4;we.Profiler=G4;we.PureComponent=Qg;we.StrictMode=W4;we.Suspense=q4;we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=n3;we.act=h_;we.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=l_({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=ex.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)d_.call(t,c)&&!f_.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&s!==void 0?s[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Dc,type:e.type,key:o,ref:i,props:r,_owner:a}};we.createContext=function(e){return e={$$typeof:K4,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:V4,_context:e},e.Consumer=e};we.createElement=p_;we.createFactory=function(e){var t=p_.bind(null,e);return t.type=e,t};we.createRef=function(){return{current:null}};we.forwardRef=function(e){return{$$typeof:Y4,render:e}};we.isValidElement=tx;we.lazy=function(e){return{$$typeof:Z4,_payload:{_status:-1,_result:e},_init:t3}};we.memo=function(e,t){return{$$typeof:X4,type:e,compare:t===void 0?null:t}};we.startTransition=function(e){var t=ed.transition;ed.transition={};try{e()}finally{ed.transition=t}};we.unstable_act=h_;we.useCallback=function(e,t){return zt.current.useCallback(e,t)};we.useContext=function(e){return zt.current.useContext(e)};we.useDebugValue=function(){};we.useDeferredValue=function(e){return zt.current.useDeferredValue(e)};we.useEffect=function(e,t){return zt.current.useEffect(e,t)};we.useId=function(){return zt.current.useId()};we.useImperativeHandle=function(e,t,n){return zt.current.useImperativeHandle(e,t,n)};we.useInsertionEffect=function(e,t){return zt.current.useInsertionEffect(e,t)};we.useLayoutEffect=function(e,t){return zt.current.useLayoutEffect(e,t)};we.useMemo=function(e,t){return zt.current.useMemo(e,t)};we.useReducer=function(e,t,n){return zt.current.useReducer(e,t,n)};we.useRef=function(e){return zt.current.useRef(e)};we.useState=function(e){return zt.current.useState(e)};we.useSyncExternalStore=function(e,t,n){return zt.current.useSyncExternalStore(e,t,n)};we.useTransition=function(){return zt.current.useTransition()};we.version="18.3.1";a_.exports=we;var h=a_.exports;const D=Re(h),op=L4({__proto__:null,default:D},[h]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var r3=h,o3=Symbol.for("react.element"),i3=Symbol.for("react.fragment"),a3=Object.prototype.hasOwnProperty,s3=r3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l3={key:!0,ref:!0,__self:!0,__source:!0};function m_(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)a3.call(t,r)&&!l3.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:o3,type:e,key:i,ref:a,props:o,_owner:s3.current}}rp.Fragment=i3;rp.jsx=m_;rp.jsxs=m_;i_.exports=rp;var l=i_.exports,sv={},v_={exports:{}},mn={},y_={exports:{}},g_={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(e){function t(k,M){var B=k.length;k.push(M);e:for(;0<B;){var W=B-1>>>1,z=k[W];if(0<o(z,M))k[W]=M,k[B]=z,B=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var M=k[0],B=k.pop();if(B!==M){k[0]=B;e:for(var W=0,z=k.length,J=z>>>1;W<J;){var ue=2*(W+1)-1,_e=k[ue],Ae=ue+1,re=k[Ae];if(0>o(_e,B))Ae<z&&0>o(re,_e)?(k[W]=re,k[Ae]=B,W=Ae):(k[W]=_e,k[ue]=B,W=ue);else if(Ae<z&&0>o(re,B))k[W]=re,k[Ae]=B,W=Ae;else break e}}return M}function o(k,M){var B=k.sortIndex-M.sortIndex;return B!==0?B:k.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var c=[],u=[],f=1,d=null,p=3,v=!1,b=!1,y=!1,m=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(k){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=k)r(u),M.sortIndex=M.expirationTime,t(c,M);else break;M=n(u)}}function E(k){if(y=!1,w(k),!b)if(n(c)!==null)b=!0,I(A);else{var M=n(u);M!==null&&$(E,M.startTime-k)}}function A(k,M){b=!1,y&&(y=!1,g(_),_=-1),v=!0;var B=p;try{for(w(M),d=n(c);d!==null&&(!(d.expirationTime>M)||k&&!O());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var z=W(d.expirationTime<=M);M=e.unstable_now(),typeof z=="function"?d.callback=z:d===n(c)&&r(c),w(M)}else r(c);d=n(c)}if(d!==null)var J=!0;else{var ue=n(u);ue!==null&&$(E,ue.startTime-M),J=!1}return J}finally{d=null,p=B,v=!1}}var S=!1,N=null,_=-1,C=5,P=-1;function O(){return!(e.unstable_now()-P<C)}function R(){if(N!==null){var k=e.unstable_now();P=k;var M=!0;try{M=N(!0,k)}finally{M?L():(S=!1,N=null)}}else S=!1}var L;if(typeof x=="function")L=function(){x(R)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,T=j.port2;j.port1.onmessage=R,L=function(){T.postMessage(null)}}else L=function(){m(R,0)};function I(k){N=k,S||(S=!0,L())}function $(k,M){_=m(function(){k(e.unstable_now())},M)}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(k){k.callback=null},e.unstable_continueExecution=function(){b||v||(b=!0,I(A))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(k){switch(p){case 1:case 2:case 3:var M=3;break;default:M=p}var B=p;p=M;try{return k()}finally{p=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,M){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var B=p;p=k;try{return M()}finally{p=B}},e.unstable_scheduleCallback=function(k,M,B){var W=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,k){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=B+z,k={id:f++,callback:M,priorityLevel:k,startTime:B,expirationTime:z,sortIndex:-1},B>W?(k.sortIndex=B,t(u,k),n(c)===null&&k===n(u)&&(y?(g(_),_=-1):y=!0,$(E,B-W))):(k.sortIndex=z,t(c,k),b||v||(b=!0,I(A))),k},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(k){var M=p;return function(){var B=p;p=M;try{return k.apply(this,arguments)}finally{p=B}}}})(g_);y_.exports=g_;var c3=y_.exports;/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.min.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var u3=h,fn=c3;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var x_=new Set,Tl={};function Ti(e,t){Ra(e,t),Ra(e+"Capture",t)}function Ra(e,t){for(Tl[e]=t,e=0;e<t.length;e++)x_.add(t[e])}var Ur=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lv=Object.prototype.hasOwnProperty,d3=/^[: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]*$/,iw={},aw={};function f3(e){return lv.call(aw,e)?!0:lv.call(iw,e)?!1:d3.test(e)?aw[e]=!0:(iw[e]=!0,!1)}function p3(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function h3(e,t,n,r){if(t===null||typeof t>"u"||p3(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Wt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ot[e]=new Wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ot[t]=new Wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ot[e]=new Wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ot[e]=new Wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ot[e]=new Wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ot[e]=new Wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ot[e]=new Wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ot[e]=new Wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ot[e]=new Wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var nx=/[\-:]([a-z])/g;function rx(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nx,rx);Ot[t]=new Wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nx,rx);Ot[t]=new Wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nx,rx);Ot[t]=new Wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ot[e]=new Wt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ot.xlinkHref=new Wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ot[e]=new Wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function ox(e,t,n,r){var o=Ot.hasOwnProperty(t)?Ot[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(h3(t,n,o,r)&&(n=null),r||o===null?f3(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Qr=u3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fu=Symbol.for("react.element"),ra=Symbol.for("react.portal"),oa=Symbol.for("react.fragment"),ix=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),b_=Symbol.for("react.provider"),w_=Symbol.for("react.context"),ax=Symbol.for("react.forward_ref"),uv=Symbol.for("react.suspense"),dv=Symbol.for("react.suspense_list"),sx=Symbol.for("react.memo"),uo=Symbol.for("react.lazy"),S_=Symbol.for("react.offscreen"),sw=Symbol.iterator;function Ds(e){return e===null||typeof e!="object"?null:(e=sw&&e[sw]||e["@@iterator"],typeof e=="function"?e:null)}var Je=Object.assign,Hh;function rl(e){if(Hh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hh=t&&t[1]||""}return`
|
|
34
|
-
`+Hh+e}var zh=!1;function Wh(e,t){if(!e||zh)return"";zh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var o=u.stack.split(`
|
|
35
|
-
`),i=r.stack.split(`
|
|
36
|
-
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var c=`
|
|
37
|
-
`+o[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=s);break}}}finally{zh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rl(e):""}function m3(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=Wh(e.type,!1),e;case 11:return e=Wh(e.type.render,!1),e;case 1:return e=Wh(e.type,!0),e;default:return""}}function fv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oa:return"Fragment";case ra:return"Portal";case cv:return"Profiler";case ix:return"StrictMode";case uv:return"Suspense";case dv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w_:return(e.displayName||"Context")+".Consumer";case b_:return(e._context.displayName||"Context")+".Provider";case ax:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sx:return t=e.displayName||null,t!==null?t:fv(e.type)||"Memo";case uo:t=e._payload,e=e._init;try{return fv(e(t))}catch{}}return null}function v3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fv(t);case 8:return t===ix?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ro(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function A_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function y3(e){var t=A_(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pu(e){e._valueTracker||(e._valueTracker=y3(e))}function E_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=A_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function gd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pv(e,t){var n=t.checked;return Je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function lw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ro(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function N_(e,t){t=t.checked,t!=null&&ox(e,"checked",t,!1)}function hv(e,t){N_(e,t);var n=Ro(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mv(e,t.type,n):t.hasOwnProperty("defaultValue")&&mv(e,t.type,Ro(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function cw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mv(e,t,n){(t!=="number"||gd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ol=Array.isArray;function xa(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ro(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function vv(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function uw(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(ol(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ro(n)}}function __(e,t){var n=Ro(t.value),r=Ro(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function dw(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function j_(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function yv(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?j_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hu,C_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hu=hu||document.createElement("div"),hu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g3=["Webkit","ms","Moz","O"];Object.keys(dl).forEach(function(e){g3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),dl[t]=dl[e]})});function O_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||dl.hasOwnProperty(e)&&dl[e]?(""+t).trim():t+"px"}function T_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=O_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var x3=Je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function gv(e,t){if(t){if(x3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function xv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bv=null;function lx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wv=null,ba=null,wa=null;function fw(e){if(e=Fc(e)){if(typeof wv!="function")throw Error(V(280));var t=e.stateNode;t&&(t=cp(t),wv(e.stateNode,e.type,t))}}function P_(e){ba?wa?wa.push(e):wa=[e]:ba=e}function I_(){if(ba){var e=ba,t=wa;if(wa=ba=null,fw(e),t)for(e=0;e<t.length;e++)fw(t[e])}}function R_(e,t){return e(t)}function k_(){}var Gh=!1;function M_(e,t,n){if(Gh)return e(t,n);Gh=!0;try{return R_(e,t,n)}finally{Gh=!1,(ba!==null||wa!==null)&&(k_(),I_())}}function Il(e,t){var n=e.stateNode;if(n===null)return null;var r=cp(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var Sv=!1;if(Ur)try{var $s={};Object.defineProperty($s,"passive",{get:function(){Sv=!0}}),window.addEventListener("test",$s,$s),window.removeEventListener("test",$s,$s)}catch{Sv=!1}function b3(e,t,n,r,o,i,a,s,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var fl=!1,xd=null,bd=!1,Av=null,w3={onError:function(e){fl=!0,xd=e}};function S3(e,t,n,r,o,i,a,s,c){fl=!1,xd=null,b3.apply(w3,arguments)}function A3(e,t,n,r,o,i,a,s,c){if(S3.apply(this,arguments),fl){if(fl){var u=xd;fl=!1,xd=null}else throw Error(V(198));bd||(bd=!0,Av=u)}}function Pi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function D_(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pw(e){if(Pi(e)!==e)throw Error(V(188))}function E3(e){var t=e.alternate;if(!t){if(t=Pi(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return pw(o),e;if(i===r)return pw(o),t;i=i.sibling}throw Error(V(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function $_(e){return e=E3(e),e!==null?L_(e):null}function L_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=L_(e);if(t!==null)return t;e=e.sibling}return null}var F_=fn.unstable_scheduleCallback,hw=fn.unstable_cancelCallback,N3=fn.unstable_shouldYield,_3=fn.unstable_requestPaint,nt=fn.unstable_now,j3=fn.unstable_getCurrentPriorityLevel,cx=fn.unstable_ImmediatePriority,B_=fn.unstable_UserBlockingPriority,wd=fn.unstable_NormalPriority,C3=fn.unstable_LowPriority,U_=fn.unstable_IdlePriority,ip=null,pr=null;function O3(e){if(pr&&typeof pr.onCommitFiberRoot=="function")try{pr.onCommitFiberRoot(ip,e,void 0,(e.current.flags&128)===128)}catch{}}var Zn=Math.clz32?Math.clz32:I3,T3=Math.log,P3=Math.LN2;function I3(e){return e>>>=0,e===0?32:31-(T3(e)/P3|0)|0}var mu=64,vu=4194304;function il(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Sd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=il(s):(i&=a,i!==0&&(r=il(i)))}else a=n&~o,a!==0?r=il(a):i!==0&&(r=il(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Zn(t),o=1<<n,r|=e[n],t&=~o;return r}function R3(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function k3(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Zn(i),s=1<<a,c=o[a];c===-1?(!(s&n)||s&r)&&(o[a]=R3(s,t)):c<=t&&(e.expiredLanes|=s),i&=~s}}function Ev(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function H_(){var e=mu;return mu<<=1,!(mu&4194240)&&(mu=64),e}function Vh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function $c(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zn(t),e[t]=n}function M3(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Zn(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function ux(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Zn(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ie=0;function z_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var W_,dx,G_,V_,K_,Nv=!1,yu=[],wo=null,So=null,Ao=null,Rl=new Map,kl=new Map,ho=[],D3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function mw(e,t){switch(e){case"focusin":case"focusout":wo=null;break;case"dragenter":case"dragleave":So=null;break;case"mouseover":case"mouseout":Ao=null;break;case"pointerover":case"pointerout":Rl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(t.pointerId)}}function Ls(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=Fc(t),t!==null&&dx(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function $3(e,t,n,r,o){switch(t){case"focusin":return wo=Ls(wo,e,t,n,r,o),!0;case"dragenter":return So=Ls(So,e,t,n,r,o),!0;case"mouseover":return Ao=Ls(Ao,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rl.set(i,Ls(Rl.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,kl.set(i,Ls(kl.get(i)||null,e,t,n,r,o)),!0}return!1}function Y_(e){var t=oi(e.target);if(t!==null){var n=Pi(t);if(n!==null){if(t=n.tag,t===13){if(t=D_(n),t!==null){e.blockedOn=t,K_(e.priority,function(){G_(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=_v(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);bv=r,n.target.dispatchEvent(r),bv=null}else return t=Fc(n),t!==null&&dx(t),e.blockedOn=n,!1;t.shift()}return!0}function vw(e,t,n){td(e)&&n.delete(t)}function L3(){Nv=!1,wo!==null&&td(wo)&&(wo=null),So!==null&&td(So)&&(So=null),Ao!==null&&td(Ao)&&(Ao=null),Rl.forEach(vw),kl.forEach(vw)}function Fs(e,t){e.blockedOn===t&&(e.blockedOn=null,Nv||(Nv=!0,fn.unstable_scheduleCallback(fn.unstable_NormalPriority,L3)))}function Ml(e){function t(o){return Fs(o,e)}if(0<yu.length){Fs(yu[0],e);for(var n=1;n<yu.length;n++){var r=yu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(wo!==null&&Fs(wo,e),So!==null&&Fs(So,e),Ao!==null&&Fs(Ao,e),Rl.forEach(t),kl.forEach(t),n=0;n<ho.length;n++)r=ho[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ho.length&&(n=ho[0],n.blockedOn===null);)Y_(n),n.blockedOn===null&&ho.shift()}var Sa=Qr.ReactCurrentBatchConfig,Ad=!0;function F3(e,t,n,r){var o=Ie,i=Sa.transition;Sa.transition=null;try{Ie=1,fx(e,t,n,r)}finally{Ie=o,Sa.transition=i}}function B3(e,t,n,r){var o=Ie,i=Sa.transition;Sa.transition=null;try{Ie=4,fx(e,t,n,r)}finally{Ie=o,Sa.transition=i}}function fx(e,t,n,r){if(Ad){var o=_v(e,t,n,r);if(o===null)nm(e,t,r,Ed,n),mw(e,r);else if($3(o,e,t,n,r))r.stopPropagation();else if(mw(e,r),t&4&&-1<D3.indexOf(e)){for(;o!==null;){var i=Fc(o);if(i!==null&&W_(i),i=_v(e,t,n,r),i===null&&nm(e,t,r,Ed,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else nm(e,t,r,null,n)}}var Ed=null;function _v(e,t,n,r){if(Ed=null,e=lx(r),e=oi(e),e!==null)if(t=Pi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=D_(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ed=e,null}function q_(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(j3()){case cx:return 1;case B_:return 4;case wd:case C3:return 16;case U_:return 536870912;default:return 16}default:return 16}}var yo=null,px=null,nd=null;function X_(){if(nd)return nd;var e,t=px,n=t.length,r,o="value"in yo?yo.value:yo.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return nd=o.slice(e,1<r?1-r:void 0)}function rd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gu(){return!0}function yw(){return!1}function vn(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?gu:yw,this.isPropagationStopped=yw,this}return Je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gu)},persist:function(){},isPersistent:gu}),t}var ms={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hx=vn(ms),Lc=Je({},ms,{view:0,detail:0}),U3=vn(Lc),Kh,Yh,Bs,ap=Je({},Lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mx,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Bs&&(Bs&&e.type==="mousemove"?(Kh=e.screenX-Bs.screenX,Yh=e.screenY-Bs.screenY):Yh=Kh=0,Bs=e),Kh)},movementY:function(e){return"movementY"in e?e.movementY:Yh}}),gw=vn(ap),H3=Je({},ap,{dataTransfer:0}),z3=vn(H3),W3=Je({},Lc,{relatedTarget:0}),qh=vn(W3),G3=Je({},ms,{animationName:0,elapsedTime:0,pseudoElement:0}),V3=vn(G3),K3=Je({},ms,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y3=vn(K3),q3=Je({},ms,{data:0}),xw=vn(q3),X3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z3={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"},Q3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J3(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Q3[e])?!!t[e]:!1}function mx(){return J3}var eU=Je({},Lc,{key:function(e){if(e.key){var t=X3[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z3[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mx,charCode:function(e){return e.type==="keypress"?rd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tU=vn(eU),nU=Je({},ap,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bw=vn(nU),rU=Je({},Lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mx}),oU=vn(rU),iU=Je({},ms,{propertyName:0,elapsedTime:0,pseudoElement:0}),aU=vn(iU),sU=Je({},ap,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),lU=vn(sU),cU=[9,13,27,32],vx=Ur&&"CompositionEvent"in window,pl=null;Ur&&"documentMode"in document&&(pl=document.documentMode);var uU=Ur&&"TextEvent"in window&&!pl,Z_=Ur&&(!vx||pl&&8<pl&&11>=pl),ww=" ",Sw=!1;function Q_(e,t){switch(e){case"keyup":return cU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ia=!1;function dU(e,t){switch(e){case"compositionend":return J_(t);case"keypress":return t.which!==32?null:(Sw=!0,ww);case"textInput":return e=t.data,e===ww&&Sw?null:e;default:return null}}function fU(e,t){if(ia)return e==="compositionend"||!vx&&Q_(e,t)?(e=X_(),nd=px=yo=null,ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Z_&&t.locale!=="ko"?null:t.data;default:return null}}var pU={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Aw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pU[e.type]:t==="textarea"}function ej(e,t,n,r){P_(r),t=Nd(t,"onChange"),0<t.length&&(n=new hx("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hl=null,Dl=null;function hU(e){dj(e,0)}function sp(e){var t=la(e);if(E_(t))return e}function mU(e,t){if(e==="change")return t}var tj=!1;if(Ur){var Xh;if(Ur){var Zh="oninput"in document;if(!Zh){var Ew=document.createElement("div");Ew.setAttribute("oninput","return;"),Zh=typeof Ew.oninput=="function"}Xh=Zh}else Xh=!1;tj=Xh&&(!document.documentMode||9<document.documentMode)}function Nw(){hl&&(hl.detachEvent("onpropertychange",nj),Dl=hl=null)}function nj(e){if(e.propertyName==="value"&&sp(Dl)){var t=[];ej(t,Dl,e,lx(e)),M_(hU,t)}}function vU(e,t,n){e==="focusin"?(Nw(),hl=t,Dl=n,hl.attachEvent("onpropertychange",nj)):e==="focusout"&&Nw()}function yU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sp(Dl)}function gU(e,t){if(e==="click")return sp(t)}function xU(e,t){if(e==="input"||e==="change")return sp(t)}function bU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:bU;function $l(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!lv.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function _w(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jw(e,t){var n=_w(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_w(n)}}function rj(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rj(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oj(){for(var e=window,t=gd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=gd(e.document)}return t}function yx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wU(e){var t=oj(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&rj(n.ownerDocument.documentElement,n)){if(r!==null&&yx(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=jw(n,i);var a=jw(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var SU=Ur&&"documentMode"in document&&11>=document.documentMode,aa=null,jv=null,ml=null,Cv=!1;function Cw(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Cv||aa==null||aa!==gd(r)||(r=aa,"selectionStart"in r&&yx(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ml&&$l(ml,r)||(ml=r,r=Nd(jv,"onSelect"),0<r.length&&(t=new hx("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=aa)))}function xu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sa={animationend:xu("Animation","AnimationEnd"),animationiteration:xu("Animation","AnimationIteration"),animationstart:xu("Animation","AnimationStart"),transitionend:xu("Transition","TransitionEnd")},Qh={},ij={};Ur&&(ij=document.createElement("div").style,"AnimationEvent"in window||(delete sa.animationend.animation,delete sa.animationiteration.animation,delete sa.animationstart.animation),"TransitionEvent"in window||delete sa.transitionend.transition);function lp(e){if(Qh[e])return Qh[e];if(!sa[e])return e;var t=sa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ij)return Qh[e]=t[n];return e}var aj=lp("animationend"),sj=lp("animationiteration"),lj=lp("animationstart"),cj=lp("transitionend"),uj=new Map,Ow="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Fo(e,t){uj.set(e,t),Ti(t,[e])}for(var Jh=0;Jh<Ow.length;Jh++){var em=Ow[Jh],AU=em.toLowerCase(),EU=em[0].toUpperCase()+em.slice(1);Fo(AU,"on"+EU)}Fo(aj,"onAnimationEnd");Fo(sj,"onAnimationIteration");Fo(lj,"onAnimationStart");Fo("dblclick","onDoubleClick");Fo("focusin","onFocus");Fo("focusout","onBlur");Fo(cj,"onTransitionEnd");Ra("onMouseEnter",["mouseout","mouseover"]);Ra("onMouseLeave",["mouseout","mouseover"]);Ra("onPointerEnter",["pointerout","pointerover"]);Ra("onPointerLeave",["pointerout","pointerover"]);Ti("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ti("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ti("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ti("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ti("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ti("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var al="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(" "),NU=new Set("cancel close invalid load scroll toggle".split(" ").concat(al));function Tw(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,A3(r,t,void 0,e),e.currentTarget=null}function dj(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],c=s.instance,u=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Tw(o,s,u),i=c}else for(a=0;a<r.length;a++){if(s=r[a],c=s.instance,u=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Tw(o,s,u),i=c}}}if(bd)throw e=Av,bd=!1,Av=null,e}function ze(e,t){var n=t[Rv];n===void 0&&(n=t[Rv]=new Set);var r=e+"__bubble";n.has(r)||(fj(t,e,2,!1),n.add(r))}function tm(e,t,n){var r=0;t&&(r|=4),fj(n,e,r,t)}var bu="_reactListening"+Math.random().toString(36).slice(2);function Ll(e){if(!e[bu]){e[bu]=!0,x_.forEach(function(n){n!=="selectionchange"&&(NU.has(n)||tm(n,!1,e),tm(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bu]||(t[bu]=!0,tm("selectionchange",!1,t))}}function fj(e,t,n,r){switch(q_(t)){case 1:var o=F3;break;case 4:o=B3;break;default:o=fx}n=o.bind(null,t,n,e),o=void 0,!Sv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function nm(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=oi(s),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}s=s.parentNode}}r=r.return}M_(function(){var u=i,f=lx(n),d=[];e:{var p=uj.get(e);if(p!==void 0){var v=hx,b=e;switch(e){case"keypress":if(rd(n)===0)break e;case"keydown":case"keyup":v=tU;break;case"focusin":b="focus",v=qh;break;case"focusout":b="blur",v=qh;break;case"beforeblur":case"afterblur":v=qh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=gw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=z3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=oU;break;case aj:case sj:case lj:v=V3;break;case cj:v=aU;break;case"scroll":v=U3;break;case"wheel":v=lU;break;case"copy":case"cut":case"paste":v=Y3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=bw}var y=(t&4)!==0,m=!y&&e==="scroll",g=y?p!==null?p+"Capture":null:p;y=[];for(var x=u,w;x!==null;){w=x;var E=w.stateNode;if(w.tag===5&&E!==null&&(w=E,g!==null&&(E=Il(x,g),E!=null&&y.push(Fl(x,E,w)))),m)break;x=x.return}0<y.length&&(p=new v(p,b,null,n,f),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&n!==bv&&(b=n.relatedTarget||n.fromElement)&&(oi(b)||b[Hr]))break e;if((v||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,v?(b=n.relatedTarget||n.toElement,v=u,b=b?oi(b):null,b!==null&&(m=Pi(b),b!==m||b.tag!==5&&b.tag!==6)&&(b=null)):(v=null,b=u),v!==b)){if(y=gw,E="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=bw,E="onPointerLeave",g="onPointerEnter",x="pointer"),m=v==null?p:la(v),w=b==null?p:la(b),p=new y(E,x+"leave",v,n,f),p.target=m,p.relatedTarget=w,E=null,oi(f)===u&&(y=new y(g,x+"enter",b,n,f),y.target=w,y.relatedTarget=m,E=y),m=E,v&&b)t:{for(y=v,g=b,x=0,w=y;w;w=qi(w))x++;for(w=0,E=g;E;E=qi(E))w++;for(;0<x-w;)y=qi(y),x--;for(;0<w-x;)g=qi(g),w--;for(;x--;){if(y===g||g!==null&&y===g.alternate)break t;y=qi(y),g=qi(g)}y=null}else y=null;v!==null&&Pw(d,p,v,y,!1),b!==null&&m!==null&&Pw(d,m,b,y,!0)}}e:{if(p=u?la(u):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var A=mU;else if(Aw(p))if(tj)A=xU;else{A=yU;var S=vU}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(A=gU);if(A&&(A=A(e,u))){ej(d,A,n,f);break e}S&&S(e,p,u),e==="focusout"&&(S=p._wrapperState)&&S.controlled&&p.type==="number"&&mv(p,"number",p.value)}switch(S=u?la(u):window,e){case"focusin":(Aw(S)||S.contentEditable==="true")&&(aa=S,jv=u,ml=null);break;case"focusout":ml=jv=aa=null;break;case"mousedown":Cv=!0;break;case"contextmenu":case"mouseup":case"dragend":Cv=!1,Cw(d,n,f);break;case"selectionchange":if(SU)break;case"keydown":case"keyup":Cw(d,n,f)}var N;if(vx)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else ia?Q_(e,n)&&(_="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(_="onCompositionStart");_&&(Z_&&n.locale!=="ko"&&(ia||_!=="onCompositionStart"?_==="onCompositionEnd"&&ia&&(N=X_()):(yo=f,px="value"in yo?yo.value:yo.textContent,ia=!0)),S=Nd(u,_),0<S.length&&(_=new xw(_,e,null,n,f),d.push({event:_,listeners:S}),N?_.data=N:(N=J_(n),N!==null&&(_.data=N)))),(N=uU?dU(e,n):fU(e,n))&&(u=Nd(u,"onBeforeInput"),0<u.length&&(f=new xw("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=N))}dj(d,t)})}function Fl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Il(e,n),i!=null&&r.unshift(Fl(e,i,o)),i=Il(e,t),i!=null&&r.push(Fl(e,i,o))),e=e.return}return r}function qi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Pw(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,c=s.alternate,u=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&u!==null&&(s=u,o?(c=Il(n,i),c!=null&&a.unshift(Fl(n,c,s))):o||(c=Il(n,i),c!=null&&a.push(Fl(n,c,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var _U=/\r\n?/g,jU=/\u0000|\uFFFD/g;function Iw(e){return(typeof e=="string"?e:""+e).replace(_U,`
|
|
38
|
-
`).replace(jU,"")}function wu(e,t,n){if(t=Iw(t),Iw(e)!==t&&n)throw Error(V(425))}function _d(){}var Ov=null,Tv=null;function Pv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Iv=typeof setTimeout=="function"?setTimeout:void 0,CU=typeof clearTimeout=="function"?clearTimeout:void 0,Rw=typeof Promise=="function"?Promise:void 0,OU=typeof queueMicrotask=="function"?queueMicrotask:typeof Rw<"u"?function(e){return Rw.resolve(null).then(e).catch(TU)}:Iv;function TU(e){setTimeout(function(){throw e})}function rm(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Ml(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Ml(t)}function Eo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function kw(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vs=Math.random().toString(36).slice(2),cr="__reactFiber$"+vs,Bl="__reactProps$"+vs,Hr="__reactContainer$"+vs,Rv="__reactEvents$"+vs,PU="__reactListeners$"+vs,IU="__reactHandles$"+vs;function oi(e){var t=e[cr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Hr]||n[cr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=kw(e);e!==null;){if(n=e[cr])return n;e=kw(e)}return t}e=n,n=e.parentNode}return null}function Fc(e){return e=e[cr]||e[Hr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function la(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function cp(e){return e[Bl]||null}var kv=[],ca=-1;function Bo(e){return{current:e}}function Ve(e){0>ca||(e.current=kv[ca],kv[ca]=null,ca--)}function Fe(e,t){ca++,kv[ca]=e.current,e.current=t}var ko={},Ft=Bo(ko),Xt=Bo(!1),vi=ko;function ka(e,t){var n=e.type.contextTypes;if(!n)return ko;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Zt(e){return e=e.childContextTypes,e!=null}function jd(){Ve(Xt),Ve(Ft)}function Mw(e,t,n){if(Ft.current!==ko)throw Error(V(168));Fe(Ft,t),Fe(Xt,n)}function pj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(V(108,v3(e)||"Unknown",o));return Je({},n,r)}function Cd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ko,vi=Ft.current,Fe(Ft,e),Fe(Xt,Xt.current),!0}function Dw(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=pj(e,t,vi),r.__reactInternalMemoizedMergedChildContext=e,Ve(Xt),Ve(Ft),Fe(Ft,e)):Ve(Xt),Fe(Xt,n)}var Or=null,up=!1,om=!1;function hj(e){Or===null?Or=[e]:Or.push(e)}function RU(e){up=!0,hj(e)}function Uo(){if(!om&&Or!==null){om=!0;var e=0,t=Ie;try{var n=Or;for(Ie=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Or=null,up=!1}catch(o){throw Or!==null&&(Or=Or.slice(e+1)),F_(cx,Uo),o}finally{Ie=t,om=!1}}return null}var ua=[],da=0,Od=null,Td=0,bn=[],wn=0,yi=null,Tr=1,Pr="";function Qo(e,t){ua[da++]=Td,ua[da++]=Od,Od=e,Td=t}function mj(e,t,n){bn[wn++]=Tr,bn[wn++]=Pr,bn[wn++]=yi,yi=e;var r=Tr;e=Pr;var o=32-Zn(r)-1;r&=~(1<<o),n+=1;var i=32-Zn(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Tr=1<<32-Zn(t)+o|n<<o|r,Pr=i+e}else Tr=1<<i|n<<o|r,Pr=e}function gx(e){e.return!==null&&(Qo(e,1),mj(e,1,0))}function xx(e){for(;e===Od;)Od=ua[--da],ua[da]=null,Td=ua[--da],ua[da]=null;for(;e===yi;)yi=bn[--wn],bn[wn]=null,Pr=bn[--wn],bn[wn]=null,Tr=bn[--wn],bn[wn]=null}var un=null,cn=null,Ye=!1,Kn=null;function vj(e,t){var n=Sn(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function $w(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,un=e,cn=Eo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,un=e,cn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yi!==null?{id:Tr,overflow:Pr}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Sn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,un=e,cn=null,!0):!1;default:return!1}}function Mv(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dv(e){if(Ye){var t=cn;if(t){var n=t;if(!$w(e,t)){if(Mv(e))throw Error(V(418));t=Eo(n.nextSibling);var r=un;t&&$w(e,t)?vj(r,n):(e.flags=e.flags&-4097|2,Ye=!1,un=e)}}else{if(Mv(e))throw Error(V(418));e.flags=e.flags&-4097|2,Ye=!1,un=e}}}function Lw(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;un=e}function Su(e){if(e!==un)return!1;if(!Ye)return Lw(e),Ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pv(e.type,e.memoizedProps)),t&&(t=cn)){if(Mv(e))throw yj(),Error(V(418));for(;t;)vj(e,t),t=Eo(t.nextSibling)}if(Lw(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){cn=Eo(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}cn=null}}else cn=un?Eo(e.stateNode.nextSibling):null;return!0}function yj(){for(var e=cn;e;)e=Eo(e.nextSibling)}function Ma(){cn=un=null,Ye=!1}function bx(e){Kn===null?Kn=[e]:Kn.push(e)}var kU=Qr.ReactCurrentBatchConfig;function Us(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function Au(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Fw(e){var t=e._init;return t(e._payload)}function gj(e){function t(g,x){if(e){var w=g.deletions;w===null?(g.deletions=[x],g.flags|=16):w.push(x)}}function n(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function r(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function o(g,x){return g=Co(g,x),g.index=0,g.sibling=null,g}function i(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags|=2,x):w):(g.flags|=2,x)):(g.flags|=1048576,x)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,w,E){return x===null||x.tag!==6?(x=dm(w,g.mode,E),x.return=g,x):(x=o(x,w),x.return=g,x)}function c(g,x,w,E){var A=w.type;return A===oa?f(g,x,w.props.children,E,w.key):x!==null&&(x.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===uo&&Fw(A)===x.type)?(E=o(x,w.props),E.ref=Us(g,x,w),E.return=g,E):(E=ud(w.type,w.key,w.props,null,g.mode,E),E.ref=Us(g,x,w),E.return=g,E)}function u(g,x,w,E){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=fm(w,g.mode,E),x.return=g,x):(x=o(x,w.children||[]),x.return=g,x)}function f(g,x,w,E,A){return x===null||x.tag!==7?(x=fi(w,g.mode,E,A),x.return=g,x):(x=o(x,w),x.return=g,x)}function d(g,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=dm(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case fu:return w=ud(x.type,x.key,x.props,null,g.mode,w),w.ref=Us(g,null,x),w.return=g,w;case ra:return x=fm(x,g.mode,w),x.return=g,x;case uo:var E=x._init;return d(g,E(x._payload),w)}if(ol(x)||Ds(x))return x=fi(x,g.mode,w,null),x.return=g,x;Au(g,x)}return null}function p(g,x,w,E){var A=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return A!==null?null:s(g,x,""+w,E);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case fu:return w.key===A?c(g,x,w,E):null;case ra:return w.key===A?u(g,x,w,E):null;case uo:return A=w._init,p(g,x,A(w._payload),E)}if(ol(w)||Ds(w))return A!==null?null:f(g,x,w,E,null);Au(g,w)}return null}function v(g,x,w,E,A){if(typeof E=="string"&&E!==""||typeof E=="number")return g=g.get(w)||null,s(x,g,""+E,A);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case fu:return g=g.get(E.key===null?w:E.key)||null,c(x,g,E,A);case ra:return g=g.get(E.key===null?w:E.key)||null,u(x,g,E,A);case uo:var S=E._init;return v(g,x,w,S(E._payload),A)}if(ol(E)||Ds(E))return g=g.get(w)||null,f(x,g,E,A,null);Au(x,E)}return null}function b(g,x,w,E){for(var A=null,S=null,N=x,_=x=0,C=null;N!==null&&_<w.length;_++){N.index>_?(C=N,N=null):C=N.sibling;var P=p(g,N,w[_],E);if(P===null){N===null&&(N=C);break}e&&N&&P.alternate===null&&t(g,N),x=i(P,x,_),S===null?A=P:S.sibling=P,S=P,N=C}if(_===w.length)return n(g,N),Ye&&Qo(g,_),A;if(N===null){for(;_<w.length;_++)N=d(g,w[_],E),N!==null&&(x=i(N,x,_),S===null?A=N:S.sibling=N,S=N);return Ye&&Qo(g,_),A}for(N=r(g,N);_<w.length;_++)C=v(N,g,_,w[_],E),C!==null&&(e&&C.alternate!==null&&N.delete(C.key===null?_:C.key),x=i(C,x,_),S===null?A=C:S.sibling=C,S=C);return e&&N.forEach(function(O){return t(g,O)}),Ye&&Qo(g,_),A}function y(g,x,w,E){var A=Ds(w);if(typeof A!="function")throw Error(V(150));if(w=A.call(w),w==null)throw Error(V(151));for(var S=A=null,N=x,_=x=0,C=null,P=w.next();N!==null&&!P.done;_++,P=w.next()){N.index>_?(C=N,N=null):C=N.sibling;var O=p(g,N,P.value,E);if(O===null){N===null&&(N=C);break}e&&N&&O.alternate===null&&t(g,N),x=i(O,x,_),S===null?A=O:S.sibling=O,S=O,N=C}if(P.done)return n(g,N),Ye&&Qo(g,_),A;if(N===null){for(;!P.done;_++,P=w.next())P=d(g,P.value,E),P!==null&&(x=i(P,x,_),S===null?A=P:S.sibling=P,S=P);return Ye&&Qo(g,_),A}for(N=r(g,N);!P.done;_++,P=w.next())P=v(N,g,_,P.value,E),P!==null&&(e&&P.alternate!==null&&N.delete(P.key===null?_:P.key),x=i(P,x,_),S===null?A=P:S.sibling=P,S=P);return e&&N.forEach(function(R){return t(g,R)}),Ye&&Qo(g,_),A}function m(g,x,w,E){if(typeof w=="object"&&w!==null&&w.type===oa&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case fu:e:{for(var A=w.key,S=x;S!==null;){if(S.key===A){if(A=w.type,A===oa){if(S.tag===7){n(g,S.sibling),x=o(S,w.props.children),x.return=g,g=x;break e}}else if(S.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===uo&&Fw(A)===S.type){n(g,S.sibling),x=o(S,w.props),x.ref=Us(g,S,w),x.return=g,g=x;break e}n(g,S);break}else t(g,S);S=S.sibling}w.type===oa?(x=fi(w.props.children,g.mode,E,w.key),x.return=g,g=x):(E=ud(w.type,w.key,w.props,null,g.mode,E),E.ref=Us(g,x,w),E.return=g,g=E)}return a(g);case ra:e:{for(S=w.key;x!==null;){if(x.key===S)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(g,x.sibling),x=o(x,w.children||[]),x.return=g,g=x;break e}else{n(g,x);break}else t(g,x);x=x.sibling}x=fm(w,g.mode,E),x.return=g,g=x}return a(g);case uo:return S=w._init,m(g,x,S(w._payload),E)}if(ol(w))return b(g,x,w,E);if(Ds(w))return y(g,x,w,E);Au(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(g,x.sibling),x=o(x,w),x.return=g,g=x):(n(g,x),x=dm(w,g.mode,E),x.return=g,g=x),a(g)):n(g,x)}return m}var Da=gj(!0),xj=gj(!1),Pd=Bo(null),Id=null,fa=null,wx=null;function Sx(){wx=fa=Id=null}function Ax(e){var t=Pd.current;Ve(Pd),e._currentValue=t}function $v(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Aa(e,t){Id=e,wx=fa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Yt=!0),e.firstContext=null)}function In(e){var t=e._currentValue;if(wx!==e)if(e={context:e,memoizedValue:t,next:null},fa===null){if(Id===null)throw Error(V(308));fa=e,Id.dependencies={lanes:0,firstContext:e}}else fa=fa.next=e;return t}var ii=null;function Ex(e){ii===null?ii=[e]:ii.push(e)}function bj(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ex(t)):(n.next=o.next,o.next=n),t.interleaved=n,zr(e,r)}function zr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var fo=!1;function Nx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wj(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Dr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function No(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,je&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,zr(e,n)}return o=r.interleaved,o===null?(t.next=t,Ex(r)):(t.next=o.next,o.next=t),r.interleaved=t,zr(e,n)}function od(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ux(e,n)}}function Bw(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Rd(e,t,n,r){var o=e.updateQueue;fo=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,u=c.next;c.next=null,a===null?i=u:a.next=u,a=c;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=c))}if(i!==null){var d=o.baseState;a=0,f=u=c=null,s=i;do{var p=s.lane,v=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var b=e,y=s;switch(p=t,v=n,y.tag){case 1:if(b=y.payload,typeof b=="function"){d=b.call(v,d,p);break e}d=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=y.payload,p=typeof b=="function"?b.call(v,d,p):b,p==null)break e;d=Je({},d,p);break e;case 2:fo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[s]:p.push(s))}else v={eventTime:v,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=v,c=d):f=f.next=v,a|=p;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;p=s,s=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(f===null&&(c=d),o.baseState=c,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);xi|=a,e.lanes=a,e.memoizedState=d}}function Uw(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(V(191,o));o.call(r)}}}var Bc={},hr=Bo(Bc),Ul=Bo(Bc),Hl=Bo(Bc);function ai(e){if(e===Bc)throw Error(V(174));return e}function _x(e,t){switch(Fe(Hl,t),Fe(Ul,e),Fe(hr,Bc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yv(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yv(t,e)}Ve(hr),Fe(hr,t)}function $a(){Ve(hr),Ve(Ul),Ve(Hl)}function Sj(e){ai(Hl.current);var t=ai(hr.current),n=yv(t,e.type);t!==n&&(Fe(Ul,e),Fe(hr,n))}function jx(e){Ul.current===e&&(Ve(hr),Ve(Ul))}var Ze=Bo(0);function kd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var im=[];function Cx(){for(var e=0;e<im.length;e++)im[e]._workInProgressVersionPrimary=null;im.length=0}var id=Qr.ReactCurrentDispatcher,am=Qr.ReactCurrentBatchConfig,gi=0,Qe=null,dt=null,vt=null,Md=!1,vl=!1,zl=0,MU=0;function It(){throw Error(V(321))}function Ox(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function Tx(e,t,n,r,o,i){if(gi=i,Qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,id.current=e===null||e.memoizedState===null?FU:BU,e=n(r,o),vl){i=0;do{if(vl=!1,zl=0,25<=i)throw Error(V(301));i+=1,vt=dt=null,t.updateQueue=null,id.current=UU,e=n(r,o)}while(vl)}if(id.current=Dd,t=dt!==null&&dt.next!==null,gi=0,vt=dt=Qe=null,Md=!1,t)throw Error(V(300));return e}function Px(){var e=zl!==0;return zl=0,e}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Qe.memoizedState=vt=e:vt=vt.next=e,vt}function Rn(){if(dt===null){var e=Qe.alternate;e=e!==null?e.memoizedState:null}else e=dt.next;var t=vt===null?Qe.memoizedState:vt.next;if(t!==null)vt=t,dt=e;else{if(e===null)throw Error(V(310));dt=e,e={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},vt===null?Qe.memoizedState=vt=e:vt=vt.next=e}return vt}function Wl(e,t){return typeof t=="function"?t(e):t}function sm(e){var t=Rn(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=dt,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,c=null,u=i;do{var f=u.lane;if((gi&f)===f)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(s=c=d,a=r):c=c.next=d,Qe.lanes|=f,xi|=f}u=u.next}while(u!==null&&u!==i);c===null?a=r:c.next=s,Jn(r,t.memoizedState)||(Yt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Qe.lanes|=i,xi|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function lm(e){var t=Rn(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);Jn(i,t.memoizedState)||(Yt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Aj(){}function Ej(e,t){var n=Qe,r=Rn(),o=t(),i=!Jn(r.memoizedState,o);if(i&&(r.memoizedState=o,Yt=!0),r=r.queue,Ix(jj.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||vt!==null&&vt.memoizedState.tag&1){if(n.flags|=2048,Gl(9,_j.bind(null,n,r,o,t),void 0,null),gt===null)throw Error(V(349));gi&30||Nj(n,t,o)}return o}function Nj(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Qe.updateQueue,t===null?(t={lastEffect:null,stores:null},Qe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function _j(e,t,n,r){t.value=n,t.getSnapshot=r,Cj(t)&&Oj(e)}function jj(e,t,n){return n(function(){Cj(t)&&Oj(e)})}function Cj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function Oj(e){var t=zr(e,1);t!==null&&Qn(t,e,1,-1)}function Hw(e){var t=sr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wl,lastRenderedState:e},t.queue=e,e=e.dispatch=LU.bind(null,Qe,e),[t.memoizedState,e]}function Gl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Qe.updateQueue,t===null?(t={lastEffect:null,stores:null},Qe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Tj(){return Rn().memoizedState}function ad(e,t,n,r){var o=sr();Qe.flags|=e,o.memoizedState=Gl(1|t,n,void 0,r===void 0?null:r)}function dp(e,t,n,r){var o=Rn();r=r===void 0?null:r;var i=void 0;if(dt!==null){var a=dt.memoizedState;if(i=a.destroy,r!==null&&Ox(r,a.deps)){o.memoizedState=Gl(t,n,i,r);return}}Qe.flags|=e,o.memoizedState=Gl(1|t,n,i,r)}function zw(e,t){return ad(8390656,8,e,t)}function Ix(e,t){return dp(2048,8,e,t)}function Pj(e,t){return dp(4,2,e,t)}function Ij(e,t){return dp(4,4,e,t)}function Rj(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kj(e,t,n){return n=n!=null?n.concat([e]):null,dp(4,4,Rj.bind(null,t,e),n)}function Rx(){}function Mj(e,t){var n=Rn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ox(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Dj(e,t){var n=Rn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ox(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $j(e,t,n){return gi&21?(Jn(n,t)||(n=H_(),Qe.lanes|=n,xi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Yt=!0),e.memoizedState=n)}function DU(e,t){var n=Ie;Ie=n!==0&&4>n?n:4,e(!0);var r=am.transition;am.transition={};try{e(!1),t()}finally{Ie=n,am.transition=r}}function Lj(){return Rn().memoizedState}function $U(e,t,n){var r=jo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Fj(e))Bj(t,n);else if(n=bj(e,t,n,r),n!==null){var o=Ht();Qn(n,e,r,o),Uj(n,t,r)}}function LU(e,t,n){var r=jo(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fj(e))Bj(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Jn(s,a)){var c=t.interleaved;c===null?(o.next=o,Ex(t)):(o.next=c.next,c.next=o),t.interleaved=o;return}}catch{}finally{}n=bj(e,t,o,r),n!==null&&(o=Ht(),Qn(n,e,r,o),Uj(n,t,r))}}function Fj(e){var t=e.alternate;return e===Qe||t!==null&&t===Qe}function Bj(e,t){vl=Md=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uj(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ux(e,n)}}var Dd={readContext:In,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useInsertionEffect:It,useLayoutEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useMutableSource:It,useSyncExternalStore:It,useId:It,unstable_isNewReconciler:!1},FU={readContext:In,useCallback:function(e,t){return sr().memoizedState=[e,t===void 0?null:t],e},useContext:In,useEffect:zw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ad(4194308,4,Rj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ad(4194308,4,e,t)},useInsertionEffect:function(e,t){return ad(4,2,e,t)},useMemo:function(e,t){var n=sr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$U.bind(null,Qe,e),[r.memoizedState,e]},useRef:function(e){var t=sr();return e={current:e},t.memoizedState=e},useState:Hw,useDebugValue:Rx,useDeferredValue:function(e){return sr().memoizedState=e},useTransition:function(){var e=Hw(!1),t=e[0];return e=DU.bind(null,e[1]),sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Qe,o=sr();if(Ye){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),gt===null)throw Error(V(349));gi&30||Nj(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,zw(jj.bind(null,r,i,e),[e]),r.flags|=2048,Gl(9,_j.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=sr(),t=gt.identifierPrefix;if(Ye){var n=Pr,r=Tr;n=(r&~(1<<32-Zn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=MU++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},BU={readContext:In,useCallback:Mj,useContext:In,useEffect:Ix,useImperativeHandle:kj,useInsertionEffect:Pj,useLayoutEffect:Ij,useMemo:Dj,useReducer:sm,useRef:Tj,useState:function(){return sm(Wl)},useDebugValue:Rx,useDeferredValue:function(e){var t=Rn();return $j(t,dt.memoizedState,e)},useTransition:function(){var e=sm(Wl)[0],t=Rn().memoizedState;return[e,t]},useMutableSource:Aj,useSyncExternalStore:Ej,useId:Lj,unstable_isNewReconciler:!1},UU={readContext:In,useCallback:Mj,useContext:In,useEffect:Ix,useImperativeHandle:kj,useInsertionEffect:Pj,useLayoutEffect:Ij,useMemo:Dj,useReducer:lm,useRef:Tj,useState:function(){return lm(Wl)},useDebugValue:Rx,useDeferredValue:function(e){var t=Rn();return dt===null?t.memoizedState=e:$j(t,dt.memoizedState,e)},useTransition:function(){var e=lm(Wl)[0],t=Rn().memoizedState;return[e,t]},useMutableSource:Aj,useSyncExternalStore:Ej,useId:Lj,unstable_isNewReconciler:!1};function Hn(e,t){if(e&&e.defaultProps){t=Je({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Lv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Je({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fp={isMounted:function(e){return(e=e._reactInternals)?Pi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ht(),o=jo(e),i=Dr(r,o);i.payload=t,n!=null&&(i.callback=n),t=No(e,i,o),t!==null&&(Qn(t,e,o,r),od(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ht(),o=jo(e),i=Dr(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=No(e,i,o),t!==null&&(Qn(t,e,o,r),od(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ht(),r=jo(e),o=Dr(n,r);o.tag=2,t!=null&&(o.callback=t),t=No(e,o,r),t!==null&&(Qn(t,e,r,n),od(t,e,r))}};function Ww(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!$l(n,r)||!$l(o,i):!0}function Hj(e,t,n){var r=!1,o=ko,i=t.contextType;return typeof i=="object"&&i!==null?i=In(i):(o=Zt(t)?vi:Ft.current,r=t.contextTypes,i=(r=r!=null)?ka(e,o):ko),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fp,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Gw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fp.enqueueReplaceState(t,t.state,null)}function Fv(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Nx(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=In(i):(i=Zt(t)?vi:Ft.current,o.context=ka(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Lv(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&fp.enqueueReplaceState(o,o.state,null),Rd(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function La(e,t){try{var n="",r=t;do n+=m3(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
39
|
-
Error generating stack: `+i.message+`
|
|
40
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function cm(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Bv(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HU=typeof WeakMap=="function"?WeakMap:Map;function zj(e,t,n){n=Dr(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ld||(Ld=!0,Xv=r),Bv(e,t)},n}function Wj(e,t,n){n=Dr(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Bv(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Bv(e,t),typeof r!="function"&&(_o===null?_o=new Set([this]):_o.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Vw(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HU;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=nH.bind(null,e,t,n),t.then(e,e))}function Kw(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Yw(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Dr(-1,1),t.tag=2,No(n,t,1))),n.lanes|=1),e)}var zU=Qr.ReactCurrentOwner,Yt=!1;function Bt(e,t,n,r){t.child=e===null?xj(t,null,n,r):Da(t,e.child,n,r)}function qw(e,t,n,r,o){n=n.render;var i=t.ref;return Aa(t,o),r=Tx(e,t,n,r,i,o),n=Px(),e!==null&&!Yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wr(e,t,o)):(Ye&&n&&gx(t),t.flags|=1,Bt(e,t,r,o),t.child)}function Xw(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Ux(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Gj(e,t,i,r,o)):(e=ud(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:$l,n(a,r)&&e.ref===t.ref)return Wr(e,t,o)}return t.flags|=1,e=Co(i,r),e.ref=t.ref,e.return=t,t.child=e}function Gj(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if($l(i,r)&&e.ref===t.ref)if(Yt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Yt=!0);else return t.lanes=e.lanes,Wr(e,t,o)}return Uv(e,t,n,r,o)}function Vj(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Fe(ha,on),on|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Fe(ha,on),on|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Fe(ha,on),on|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Fe(ha,on),on|=r;return Bt(e,t,o,n),t.child}function Kj(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Uv(e,t,n,r,o){var i=Zt(n)?vi:Ft.current;return i=ka(t,i),Aa(t,o),n=Tx(e,t,n,r,i,o),r=Px(),e!==null&&!Yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wr(e,t,o)):(Ye&&r&&gx(t),t.flags|=1,Bt(e,t,n,o),t.child)}function Zw(e,t,n,r,o){if(Zt(n)){var i=!0;Cd(t)}else i=!1;if(Aa(t,o),t.stateNode===null)sd(e,t),Hj(t,n,r),Fv(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=In(u):(u=Zt(n)?vi:Ft.current,u=ka(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||c!==u)&&Gw(t,a,r,u),fo=!1;var p=t.memoizedState;a.state=p,Rd(t,r,a,o),c=t.memoizedState,s!==r||p!==c||Xt.current||fo?(typeof f=="function"&&(Lv(t,n,f,r),c=t.memoizedState),(s=fo||Ww(t,n,s,r,p,c,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wj(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Hn(t.type,s),a.props=u,d=t.pendingProps,p=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=In(c):(c=Zt(n)?vi:Ft.current,c=ka(t,c));var v=n.getDerivedStateFromProps;(f=typeof v=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==c)&&Gw(t,a,r,c),fo=!1,p=t.memoizedState,a.state=p,Rd(t,r,a,o);var b=t.memoizedState;s!==d||p!==b||Xt.current||fo?(typeof v=="function"&&(Lv(t,n,v,r),b=t.memoizedState),(u=fo||Ww(t,n,u,r,p,b,c)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,b,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,b,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=b),a.props=r,a.state=b,a.context=c,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Hv(e,t,n,r,i,o)}function Hv(e,t,n,r,o,i){Kj(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&Dw(t,n,!1),Wr(e,t,i);r=t.stateNode,zU.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Da(t,e.child,null,i),t.child=Da(t,null,s,i)):Bt(e,t,s,i),t.memoizedState=r.state,o&&Dw(t,n,!0),t.child}function Yj(e){var t=e.stateNode;t.pendingContext?Mw(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mw(e,t.context,!1),_x(e,t.containerInfo)}function Qw(e,t,n,r,o){return Ma(),bx(o),t.flags|=256,Bt(e,t,n,r),t.child}var zv={dehydrated:null,treeContext:null,retryLane:0};function Wv(e){return{baseLanes:e,cachePool:null,transitions:null}}function qj(e,t,n){var r=t.pendingProps,o=Ze.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Fe(Ze,o&1),e===null)return Dv(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=mp(a,r,0,null),e=fi(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Wv(n),t.memoizedState=zv,e):kx(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return WU(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Co(o,c),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Co(s,i):(i=fi(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Wv(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=zv,r}return i=e.child,e=i.sibling,r=Co(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function kx(e,t){return t=mp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Eu(e,t,n,r){return r!==null&&bx(r),Da(t,e.child,null,n),e=kx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function WU(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=cm(Error(V(422))),Eu(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=mp({mode:"visible",children:r.children},o,0,null),i=fi(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Da(t,e.child,null,a),t.child.memoizedState=Wv(a),t.memoizedState=zv,i);if(!(t.mode&1))return Eu(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(V(419)),r=cm(i,r,void 0),Eu(e,t,a,r)}if(s=(a&e.childLanes)!==0,Yt||s){if(r=gt,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,zr(e,o),Qn(r,e,o,-1))}return Bx(),r=cm(Error(V(421))),Eu(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=rH.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,cn=Eo(o.nextSibling),un=t,Ye=!0,Kn=null,e!==null&&(bn[wn++]=Tr,bn[wn++]=Pr,bn[wn++]=yi,Tr=e.id,Pr=e.overflow,yi=t),t=kx(t,r.children),t.flags|=4096,t)}function Jw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$v(e.return,t,n)}function um(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Xj(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Bt(e,t,r.children,n),r=Ze.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Jw(e,n,t);else if(e.tag===19)Jw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Fe(Ze,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&kd(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),um(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&kd(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}um(t,!0,n,null,i);break;case"together":um(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function sd(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),xi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=Co(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Co(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function GU(e,t,n){switch(t.tag){case 3:Yj(t),Ma();break;case 5:Sj(t);break;case 1:Zt(t.type)&&Cd(t);break;case 4:_x(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Fe(Pd,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Fe(Ze,Ze.current&1),t.flags|=128,null):n&t.child.childLanes?qj(e,t,n):(Fe(Ze,Ze.current&1),e=Wr(e,t,n),e!==null?e.sibling:null);Fe(Ze,Ze.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Xj(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Fe(Ze,Ze.current),r)break;return null;case 22:case 23:return t.lanes=0,Vj(e,t,n)}return Wr(e,t,n)}var Zj,Gv,Qj,Jj;Zj=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Gv=function(){};Qj=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ai(hr.current);var i=null;switch(n){case"input":o=pv(e,o),r=pv(e,r),i=[];break;case"select":o=Je({},o,{value:void 0}),r=Je({},r,{value:void 0}),i=[];break;case"textarea":o=vv(e,o),r=vv(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_d)}gv(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Tl.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(c!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(i||(i=[]),i.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Tl.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&ze("scroll",e),i||s===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Jj=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hs(e,t){if(!Ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function VU(e,t,n){var r=t.pendingProps;switch(xx(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(t),null;case 1:return Zt(t.type)&&jd(),Rt(t),null;case 3:return r=t.stateNode,$a(),Ve(Xt),Ve(Ft),Cx(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Su(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kn!==null&&(Jv(Kn),Kn=null))),Gv(e,t),Rt(t),null;case 5:jx(t);var o=ai(Hl.current);if(n=t.type,e!==null&&t.stateNode!=null)Qj(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(V(166));return Rt(t),null}if(e=ai(hr.current),Su(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[cr]=t,r[Bl]=i,e=(t.mode&1)!==0,n){case"dialog":ze("cancel",r),ze("close",r);break;case"iframe":case"object":case"embed":ze("load",r);break;case"video":case"audio":for(o=0;o<al.length;o++)ze(al[o],r);break;case"source":ze("error",r);break;case"img":case"image":case"link":ze("error",r),ze("load",r);break;case"details":ze("toggle",r);break;case"input":lw(r,i),ze("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ze("invalid",r);break;case"textarea":uw(r,i),ze("invalid",r)}gv(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&wu(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&wu(r.textContent,s,e),o=["children",""+s]):Tl.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&ze("scroll",r)}switch(n){case"input":pu(r),cw(r,i,!0);break;case"textarea":pu(r),dw(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=_d)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=j_(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[cr]=t,e[Bl]=r,Zj(e,t,!1,!1),t.stateNode=e;e:{switch(a=xv(n,r),n){case"dialog":ze("cancel",e),ze("close",e),o=r;break;case"iframe":case"object":case"embed":ze("load",e),o=r;break;case"video":case"audio":for(o=0;o<al.length;o++)ze(al[o],e);o=r;break;case"source":ze("error",e),o=r;break;case"img":case"image":case"link":ze("error",e),ze("load",e),o=r;break;case"details":ze("toggle",e),o=r;break;case"input":lw(e,r),o=pv(e,r),ze("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Je({},r,{value:void 0}),ze("invalid",e);break;case"textarea":uw(e,r),o=vv(e,r),ze("invalid",e);break;default:o=r}gv(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?T_(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&C_(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Pl(e,c):typeof c=="number"&&Pl(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Tl.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ze("scroll",e):c!=null&&ox(e,i,c,a))}switch(n){case"input":pu(e),cw(e,r,!1);break;case"textarea":pu(e),dw(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ro(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?xa(e,!!r.multiple,i,!1):r.defaultValue!=null&&xa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=_d)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Rt(t),null;case 6:if(e&&t.stateNode!=null)Jj(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(V(166));if(n=ai(Hl.current),ai(hr.current),Su(t)){if(r=t.stateNode,n=t.memoizedProps,r[cr]=t,(i=r.nodeValue!==n)&&(e=un,e!==null))switch(e.tag){case 3:wu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&wu(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[cr]=t,t.stateNode=r}return Rt(t),null;case 13:if(Ve(Ze),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ye&&cn!==null&&t.mode&1&&!(t.flags&128))yj(),Ma(),t.flags|=98560,i=!1;else if(i=Su(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(V(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(V(317));i[cr]=t}else Ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rt(t),i=!1}else Kn!==null&&(Jv(Kn),Kn=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Ze.current&1?ft===0&&(ft=3):Bx())),t.updateQueue!==null&&(t.flags|=4),Rt(t),null);case 4:return $a(),Gv(e,t),e===null&&Ll(t.stateNode.containerInfo),Rt(t),null;case 10:return Ax(t.type._context),Rt(t),null;case 17:return Zt(t.type)&&jd(),Rt(t),null;case 19:if(Ve(Ze),i=t.memoizedState,i===null)return Rt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Hs(i,!1);else{if(ft!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=kd(e),a!==null){for(t.flags|=128,Hs(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Fe(Ze,Ze.current&1|2),t.child}e=e.sibling}i.tail!==null&&nt()>Fa&&(t.flags|=128,r=!0,Hs(i,!1),t.lanes=4194304)}else{if(!r)if(e=kd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ye)return Rt(t),null}else 2*nt()-i.renderingStartTime>Fa&&n!==1073741824&&(t.flags|=128,r=!0,Hs(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=nt(),t.sibling=null,n=Ze.current,Fe(Ze,r?n&1|2:n&1),t):(Rt(t),null);case 22:case 23:return Fx(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?on&1073741824&&(Rt(t),t.subtreeFlags&6&&(t.flags|=8192)):Rt(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function KU(e,t){switch(xx(t),t.tag){case 1:return Zt(t.type)&&jd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $a(),Ve(Xt),Ve(Ft),Cx(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return jx(t),null;case 13:if(Ve(Ze),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ve(Ze),null;case 4:return $a(),null;case 10:return Ax(t.type._context),null;case 22:case 23:return Fx(),null;case 24:return null;default:return null}}var Nu=!1,Dt=!1,YU=typeof WeakSet=="function"?WeakSet:Set,te=null;function pa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){et(e,t,r)}else n.current=null}function Vv(e,t,n){try{n()}catch(r){et(e,t,r)}}var eS=!1;function qU(e,t){if(Ov=Ad,e=oj(),yx(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,c=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var v;d!==n||o!==0&&d.nodeType!==3||(s=a+o),d!==i||r!==0&&d.nodeType!==3||(c=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++f===r&&(c=a),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tv={focusedElem:e,selectionRange:n},Ad=!1,te=t;te!==null;)if(t=te,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,te=e;else for(;te!==null;){t=te;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var y=b.memoizedProps,m=b.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:Hn(t.type,y),m);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(E){et(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,te=e;break}te=t.return}return b=eS,eS=!1,b}function yl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Vv(t,n,i)}o=o.next}while(o!==r)}}function pp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kv(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function eC(e){var t=e.alternate;t!==null&&(e.alternate=null,eC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cr],delete t[Bl],delete t[Rv],delete t[PU],delete t[IU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function tC(e){return e.tag===5||e.tag===3||e.tag===4}function tS(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_d));else if(r!==4&&(e=e.child,e!==null))for(Yv(e,t,n),e=e.sibling;e!==null;)Yv(e,t,n),e=e.sibling}function qv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qv(e,t,n),e=e.sibling;e!==null;)qv(e,t,n),e=e.sibling}var Et=null,zn=!1;function io(e,t,n){for(n=n.child;n!==null;)nC(e,t,n),n=n.sibling}function nC(e,t,n){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(ip,n)}catch{}switch(n.tag){case 5:Dt||pa(n,t);case 6:var r=Et,o=zn;Et=null,io(e,t,n),Et=r,zn=o,Et!==null&&(zn?(e=Et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Et.removeChild(n.stateNode));break;case 18:Et!==null&&(zn?(e=Et,n=n.stateNode,e.nodeType===8?rm(e.parentNode,n):e.nodeType===1&&rm(e,n),Ml(e)):rm(Et,n.stateNode));break;case 4:r=Et,o=zn,Et=n.stateNode.containerInfo,zn=!0,io(e,t,n),Et=r,zn=o;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Vv(n,t,a),o=o.next}while(o!==r)}io(e,t,n);break;case 1:if(!Dt&&(pa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){et(n,t,s)}io(e,t,n);break;case 21:io(e,t,n);break;case 22:n.mode&1?(Dt=(r=Dt)||n.memoizedState!==null,io(e,t,n),Dt=r):io(e,t,n);break;default:io(e,t,n)}}function nS(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new YU),t.forEach(function(r){var o=oH.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Fn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Et=s.stateNode,zn=!1;break e;case 3:Et=s.stateNode.containerInfo,zn=!0;break e;case 4:Et=s.stateNode.containerInfo,zn=!0;break e}s=s.return}if(Et===null)throw Error(V(160));nC(i,a,o),Et=null,zn=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(u){et(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)rC(t,e),t=t.sibling}function rC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Fn(t,e),ar(e),r&4){try{yl(3,e,e.return),pp(3,e)}catch(y){et(e,e.return,y)}try{yl(5,e,e.return)}catch(y){et(e,e.return,y)}}break;case 1:Fn(t,e),ar(e),r&512&&n!==null&&pa(n,n.return);break;case 5:if(Fn(t,e),ar(e),r&512&&n!==null&&pa(n,n.return),e.flags&32){var o=e.stateNode;try{Pl(o,"")}catch(y){et(e,e.return,y)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&N_(o,i),xv(s,a);var u=xv(s,i);for(a=0;a<c.length;a+=2){var f=c[a],d=c[a+1];f==="style"?T_(o,d):f==="dangerouslySetInnerHTML"?C_(o,d):f==="children"?Pl(o,d):ox(o,f,d,u)}switch(s){case"input":hv(o,i);break;case"textarea":__(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?xa(o,!!i.multiple,v,!1):p!==!!i.multiple&&(i.defaultValue!=null?xa(o,!!i.multiple,i.defaultValue,!0):xa(o,!!i.multiple,i.multiple?[]:"",!1))}o[Bl]=i}catch(y){et(e,e.return,y)}}break;case 6:if(Fn(t,e),ar(e),r&4){if(e.stateNode===null)throw Error(V(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(y){et(e,e.return,y)}}break;case 3:if(Fn(t,e),ar(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(y){et(e,e.return,y)}break;case 4:Fn(t,e),ar(e);break;case 13:Fn(t,e),ar(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||($x=nt())),r&4&&nS(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Dt=(u=Dt)||f,Fn(t,e),Dt=u):Fn(t,e),ar(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(te=e,f=e.child;f!==null;){for(d=te=f;te!==null;){switch(p=te,v=p.child,p.tag){case 0:case 11:case 14:case 15:yl(4,p,p.return);break;case 1:pa(p,p.return);var b=p.stateNode;if(typeof b.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(y){et(r,n,y)}}break;case 5:pa(p,p.return);break;case 22:if(p.memoizedState!==null){oS(d);continue}}v!==null?(v.return=p,te=v):oS(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{o=d.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=O_("display",a))}catch(y){et(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){et(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Fn(t,e),ar(e),r&4&&nS(e);break;case 21:break;default:Fn(t,e),ar(e)}}function ar(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(tC(n)){var r=n;break e}n=n.return}throw Error(V(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Pl(o,""),r.flags&=-33);var i=tS(e);qv(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=tS(e);Yv(e,s,a);break;default:throw Error(V(161))}}catch(c){et(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function XU(e,t,n){te=e,oC(e)}function oC(e,t,n){for(var r=(e.mode&1)!==0;te!==null;){var o=te,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Nu;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||Dt;s=Nu;var u=Dt;if(Nu=a,(Dt=c)&&!u)for(te=o;te!==null;)a=te,c=a.child,a.tag===22&&a.memoizedState!==null?iS(o):c!==null?(c.return=a,te=c):iS(o);for(;i!==null;)te=i,oC(i),i=i.sibling;te=o,Nu=s,Dt=u}rS(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,te=i):rS(e)}}function rS(e){for(;te!==null;){var t=te;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Dt||pp(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Dt)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Hn(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Uw(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Uw(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&Ml(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}Dt||t.flags&512&&Kv(t)}catch(p){et(t,t.return,p)}}if(t===e){te=null;break}if(n=t.sibling,n!==null){n.return=t.return,te=n;break}te=t.return}}function oS(e){for(;te!==null;){var t=te;if(t===e){te=null;break}var n=t.sibling;if(n!==null){n.return=t.return,te=n;break}te=t.return}}function iS(e){for(;te!==null;){var t=te;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{pp(4,t)}catch(c){et(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(c){et(t,o,c)}}var i=t.return;try{Kv(t)}catch(c){et(t,i,c)}break;case 5:var a=t.return;try{Kv(t)}catch(c){et(t,a,c)}}}catch(c){et(t,t.return,c)}if(t===e){te=null;break}var s=t.sibling;if(s!==null){s.return=t.return,te=s;break}te=t.return}}var ZU=Math.ceil,$d=Qr.ReactCurrentDispatcher,Mx=Qr.ReactCurrentOwner,_n=Qr.ReactCurrentBatchConfig,je=0,gt=null,at=null,_t=0,on=0,ha=Bo(0),ft=0,Vl=null,xi=0,hp=0,Dx=0,gl=null,Kt=null,$x=0,Fa=1/0,Cr=null,Ld=!1,Xv=null,_o=null,_u=!1,go=null,Fd=0,xl=0,Zv=null,ld=-1,cd=0;function Ht(){return je&6?nt():ld!==-1?ld:ld=nt()}function jo(e){return e.mode&1?je&2&&_t!==0?_t&-_t:kU.transition!==null?(cd===0&&(cd=H_()),cd):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:q_(e.type)),e):1}function Qn(e,t,n,r){if(50<xl)throw xl=0,Zv=null,Error(V(185));$c(e,n,r),(!(je&2)||e!==gt)&&(e===gt&&(!(je&2)&&(hp|=n),ft===4&&mo(e,_t)),Qt(e,r),n===1&&je===0&&!(t.mode&1)&&(Fa=nt()+500,up&&Uo()))}function Qt(e,t){var n=e.callbackNode;k3(e,t);var r=Sd(e,e===gt?_t:0);if(r===0)n!==null&&hw(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&hw(n),t===1)e.tag===0?RU(aS.bind(null,e)):hj(aS.bind(null,e)),OU(function(){!(je&6)&&Uo()}),n=null;else{switch(z_(r)){case 1:n=cx;break;case 4:n=B_;break;case 16:n=wd;break;case 536870912:n=U_;break;default:n=wd}n=fC(n,iC.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iC(e,t){if(ld=-1,cd=0,je&6)throw Error(V(327));var n=e.callbackNode;if(Ea()&&e.callbackNode!==n)return null;var r=Sd(e,e===gt?_t:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Bd(e,r);else{t=r;var o=je;je|=2;var i=sC();(gt!==e||_t!==t)&&(Cr=null,Fa=nt()+500,di(e,t));do try{eH();break}catch(s){aC(e,s)}while(!0);Sx(),$d.current=i,je=o,at!==null?t=0:(gt=null,_t=0,t=ft)}if(t!==0){if(t===2&&(o=Ev(e),o!==0&&(r=o,t=Qv(e,o))),t===1)throw n=Vl,di(e,0),mo(e,r),Qt(e,nt()),n;if(t===6)mo(e,r);else{if(o=e.current.alternate,!(r&30)&&!QU(o)&&(t=Bd(e,r),t===2&&(i=Ev(e),i!==0&&(r=i,t=Qv(e,i))),t===1))throw n=Vl,di(e,0),mo(e,r),Qt(e,nt()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(V(345));case 2:Jo(e,Kt,Cr);break;case 3:if(mo(e,r),(r&130023424)===r&&(t=$x+500-nt(),10<t)){if(Sd(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Ht(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Iv(Jo.bind(null,e,Kt,Cr),t);break}Jo(e,Kt,Cr);break;case 4:if(mo(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Zn(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=nt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZU(r/1960))-r,10<r){e.timeoutHandle=Iv(Jo.bind(null,e,Kt,Cr),r);break}Jo(e,Kt,Cr);break;case 5:Jo(e,Kt,Cr);break;default:throw Error(V(329))}}}return Qt(e,nt()),e.callbackNode===n?iC.bind(null,e):null}function Qv(e,t){var n=gl;return e.current.memoizedState.isDehydrated&&(di(e,t).flags|=256),e=Bd(e,t),e!==2&&(t=Kt,Kt=n,t!==null&&Jv(t)),e}function Jv(e){Kt===null?Kt=e:Kt.push.apply(Kt,e)}function QU(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Jn(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function mo(e,t){for(t&=~Dx,t&=~hp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Zn(t),r=1<<n;e[n]=-1,t&=~r}}function aS(e){if(je&6)throw Error(V(327));Ea();var t=Sd(e,0);if(!(t&1))return Qt(e,nt()),null;var n=Bd(e,t);if(e.tag!==0&&n===2){var r=Ev(e);r!==0&&(t=r,n=Qv(e,r))}if(n===1)throw n=Vl,di(e,0),mo(e,t),Qt(e,nt()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Jo(e,Kt,Cr),Qt(e,nt()),null}function Lx(e,t){var n=je;je|=1;try{return e(t)}finally{je=n,je===0&&(Fa=nt()+500,up&&Uo())}}function bi(e){go!==null&&go.tag===0&&!(je&6)&&Ea();var t=je;je|=1;var n=_n.transition,r=Ie;try{if(_n.transition=null,Ie=1,e)return e()}finally{Ie=r,_n.transition=n,je=t,!(je&6)&&Uo()}}function Fx(){on=ha.current,Ve(ha)}function di(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,CU(n)),at!==null)for(n=at.return;n!==null;){var r=n;switch(xx(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&jd();break;case 3:$a(),Ve(Xt),Ve(Ft),Cx();break;case 5:jx(r);break;case 4:$a();break;case 13:Ve(Ze);break;case 19:Ve(Ze);break;case 10:Ax(r.type._context);break;case 22:case 23:Fx()}n=n.return}if(gt=e,at=e=Co(e.current,null),_t=on=t,ft=0,Vl=null,Dx=hp=xi=0,Kt=gl=null,ii!==null){for(t=0;t<ii.length;t++)if(n=ii[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}ii=null}return e}function aC(e,t){do{var n=at;try{if(Sx(),id.current=Dd,Md){for(var r=Qe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Md=!1}if(gi=0,vt=dt=Qe=null,vl=!1,zl=0,Mx.current=null,n===null||n.return===null){ft=1,Vl=t,at=null;break}e:{var i=e,a=n.return,s=n,c=t;if(t=_t,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var v=Kw(a);if(v!==null){v.flags&=-257,Yw(v,a,s,i,t),v.mode&1&&Vw(i,u,t),t=v,c=u;var b=t.updateQueue;if(b===null){var y=new Set;y.add(c),t.updateQueue=y}else b.add(c);break e}else{if(!(t&1)){Vw(i,u,t),Bx();break e}c=Error(V(426))}}else if(Ye&&s.mode&1){var m=Kw(a);if(m!==null){!(m.flags&65536)&&(m.flags|=256),Yw(m,a,s,i,t),bx(La(c,s));break e}}i=c=La(c,s),ft!==4&&(ft=2),gl===null?gl=[i]:gl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=zj(i,c,t);Bw(i,g);break e;case 1:s=c;var x=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(_o===null||!_o.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var E=Wj(i,s,t);Bw(i,E);break e}}i=i.return}while(i!==null)}cC(n)}catch(A){t=A,at===n&&n!==null&&(at=n=n.return);continue}break}while(!0)}function sC(){var e=$d.current;return $d.current=Dd,e===null?Dd:e}function Bx(){(ft===0||ft===3||ft===2)&&(ft=4),gt===null||!(xi&268435455)&&!(hp&268435455)||mo(gt,_t)}function Bd(e,t){var n=je;je|=2;var r=sC();(gt!==e||_t!==t)&&(Cr=null,di(e,t));do try{JU();break}catch(o){aC(e,o)}while(!0);if(Sx(),je=n,$d.current=r,at!==null)throw Error(V(261));return gt=null,_t=0,ft}function JU(){for(;at!==null;)lC(at)}function eH(){for(;at!==null&&!N3();)lC(at)}function lC(e){var t=dC(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?cC(e):at=t,Mx.current=null}function cC(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=KU(n,t),n!==null){n.flags&=32767,at=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ft=6,at=null;return}}else if(n=VU(n,t,on),n!==null){at=n;return}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);ft===0&&(ft=5)}function Jo(e,t,n){var r=Ie,o=_n.transition;try{_n.transition=null,Ie=1,tH(e,t,n,r)}finally{_n.transition=o,Ie=r}return null}function tH(e,t,n,r){do Ea();while(go!==null);if(je&6)throw Error(V(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(M3(e,i),e===gt&&(at=gt=null,_t=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_u||(_u=!0,fC(wd,function(){return Ea(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=_n.transition,_n.transition=null;var a=Ie;Ie=1;var s=je;je|=4,Mx.current=null,qU(e,n),rC(n,e),wU(Tv),Ad=!!Ov,Tv=Ov=null,e.current=n,XU(n),_3(),je=s,Ie=a,_n.transition=i}else e.current=n;if(_u&&(_u=!1,go=e,Fd=o),i=e.pendingLanes,i===0&&(_o=null),O3(n.stateNode),Qt(e,nt()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ld)throw Ld=!1,e=Xv,Xv=null,e;return Fd&1&&e.tag!==0&&Ea(),i=e.pendingLanes,i&1?e===Zv?xl++:(xl=0,Zv=e):xl=0,Uo(),null}function Ea(){if(go!==null){var e=z_(Fd),t=_n.transition,n=Ie;try{if(_n.transition=null,Ie=16>e?16:e,go===null)var r=!1;else{if(e=go,go=null,Fd=0,je&6)throw Error(V(331));var o=je;for(je|=4,te=e.current;te!==null;){var i=te,a=i.child;if(te.flags&16){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var u=s[c];for(te=u;te!==null;){var f=te;switch(f.tag){case 0:case 11:case 15:yl(8,f,i)}var d=f.child;if(d!==null)d.return=f,te=d;else for(;te!==null;){f=te;var p=f.sibling,v=f.return;if(eC(f),f===u){te=null;break}if(p!==null){p.return=v,te=p;break}te=v}}}var b=i.alternate;if(b!==null){var y=b.child;if(y!==null){b.child=null;do{var m=y.sibling;y.sibling=null,y=m}while(y!==null)}}te=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,te=a;else e:for(;te!==null;){if(i=te,i.flags&2048)switch(i.tag){case 0:case 11:case 15:yl(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,te=g;break e}te=i.return}}var x=e.current;for(te=x;te!==null;){a=te;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,te=w;else e:for(a=x;te!==null;){if(s=te,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:pp(9,s)}}catch(A){et(s,s.return,A)}if(s===a){te=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,te=E;break e}te=s.return}}if(je=o,Uo(),pr&&typeof pr.onPostCommitFiberRoot=="function")try{pr.onPostCommitFiberRoot(ip,e)}catch{}r=!0}return r}finally{Ie=n,_n.transition=t}}return!1}function sS(e,t,n){t=La(n,t),t=zj(e,t,1),e=No(e,t,1),t=Ht(),e!==null&&($c(e,1,t),Qt(e,t))}function et(e,t,n){if(e.tag===3)sS(e,e,n);else for(;t!==null;){if(t.tag===3){sS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(_o===null||!_o.has(r))){e=La(n,e),e=Wj(t,e,1),t=No(t,e,1),e=Ht(),t!==null&&($c(t,1,e),Qt(t,e));break}}t=t.return}}function nH(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ht(),e.pingedLanes|=e.suspendedLanes&n,gt===e&&(_t&n)===n&&(ft===4||ft===3&&(_t&130023424)===_t&&500>nt()-$x?di(e,0):Dx|=n),Qt(e,t)}function uC(e,t){t===0&&(e.mode&1?(t=vu,vu<<=1,!(vu&130023424)&&(vu=4194304)):t=1);var n=Ht();e=zr(e,t),e!==null&&($c(e,t,n),Qt(e,n))}function rH(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),uC(e,n)}function oH(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),uC(e,n)}var dC;dC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xt.current)Yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Yt=!1,GU(e,t,n);Yt=!!(e.flags&131072)}else Yt=!1,Ye&&t.flags&1048576&&mj(t,Td,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sd(e,t),e=t.pendingProps;var o=ka(t,Ft.current);Aa(t,n),o=Tx(null,t,r,e,o,n);var i=Px();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zt(r)?(i=!0,Cd(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Nx(t),o.updater=fp,t.stateNode=o,o._reactInternals=t,Fv(t,r,e,n),t=Hv(null,t,r,!0,i,n)):(t.tag=0,Ye&&i&&gx(t),Bt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sd(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=aH(r),e=Hn(r,e),o){case 0:t=Uv(null,t,r,e,n);break e;case 1:t=Zw(null,t,r,e,n);break e;case 11:t=qw(null,t,r,e,n);break e;case 14:t=Xw(null,t,r,Hn(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),Uv(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),Zw(e,t,r,o,n);case 3:e:{if(Yj(t),e===null)throw Error(V(387));r=t.pendingProps,i=t.memoizedState,o=i.element,wj(e,t),Rd(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=La(Error(V(423)),t),t=Qw(e,t,r,n,o);break e}else if(r!==o){o=La(Error(V(424)),t),t=Qw(e,t,r,n,o);break e}else for(cn=Eo(t.stateNode.containerInfo.firstChild),un=t,Ye=!0,Kn=null,n=xj(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ma(),r===o){t=Wr(e,t,n);break e}Bt(e,t,r,n)}t=t.child}return t;case 5:return Sj(t),e===null&&Dv(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Pv(r,o)?a=null:i!==null&&Pv(r,i)&&(t.flags|=32),Kj(e,t),Bt(e,t,a,n),t.child;case 6:return e===null&&Dv(t),null;case 13:return qj(e,t,n);case 4:return _x(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Da(t,null,r,n):Bt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),qw(e,t,r,o,n);case 7:return Bt(e,t,t.pendingProps,n),t.child;case 8:return Bt(e,t,t.pendingProps.children,n),t.child;case 12:return Bt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Fe(Pd,r._currentValue),r._currentValue=a,i!==null)if(Jn(i.value,a)){if(i.children===o.children&&!Xt.current){t=Wr(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Dr(-1,n&-n),c.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),$v(i.return,n,t),s.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(V(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),$v(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Bt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Aa(t,n),o=In(o),r=r(o),t.flags|=1,Bt(e,t,r,n),t.child;case 14:return r=t.type,o=Hn(r,t.pendingProps),o=Hn(r.type,o),Xw(e,t,r,o,n);case 15:return Gj(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Hn(r,o),sd(e,t),t.tag=1,Zt(r)?(e=!0,Cd(t)):e=!1,Aa(t,n),Hj(t,r,o),Fv(t,r,o,n),Hv(null,t,r,!0,e,n);case 19:return Xj(e,t,n);case 22:return Vj(e,t,n)}throw Error(V(156,t.tag))};function fC(e,t){return F_(e,t)}function iH(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(e,t,n,r){return new iH(e,t,n,r)}function Ux(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aH(e){if(typeof e=="function")return Ux(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ax)return 11;if(e===sx)return 14}return 2}function Co(e,t){var n=e.alternate;return n===null?(n=Sn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ud(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Ux(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case oa:return fi(n.children,o,i,t);case ix:a=8,o|=8;break;case cv:return e=Sn(12,n,t,o|2),e.elementType=cv,e.lanes=i,e;case uv:return e=Sn(13,n,t,o),e.elementType=uv,e.lanes=i,e;case dv:return e=Sn(19,n,t,o),e.elementType=dv,e.lanes=i,e;case S_:return mp(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case b_:a=10;break e;case w_:a=9;break e;case ax:a=11;break e;case sx:a=14;break e;case uo:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=Sn(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function fi(e,t,n,r){return e=Sn(7,e,r,t),e.lanes=n,e}function mp(e,t,n,r){return e=Sn(22,e,r,t),e.elementType=S_,e.lanes=n,e.stateNode={isHidden:!1},e}function dm(e,t,n){return e=Sn(6,e,null,t),e.lanes=n,e}function fm(e,t,n){return t=Sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sH(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vh(0),this.expirationTimes=Vh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vh(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hx(e,t,n,r,o,i,a,s,c){return e=new sH(e,t,n,s,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Sn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nx(i),e}function lH(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ra,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function pC(e){if(!e)return ko;e=e._reactInternals;e:{if(Pi(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(Zt(n))return pj(e,n,t)}return t}function hC(e,t,n,r,o,i,a,s,c){return e=Hx(n,r,!0,e,o,i,a,s,c),e.context=pC(null),n=e.current,r=Ht(),o=jo(n),i=Dr(r,o),i.callback=t??null,No(n,i,o),e.current.lanes=o,$c(e,o,r),Qt(e,r),e}function vp(e,t,n,r){var o=t.current,i=Ht(),a=jo(o);return n=pC(n),t.context===null?t.context=n:t.pendingContext=n,t=Dr(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=No(o,t,a),e!==null&&(Qn(e,o,a,i),od(e,o,a)),a}function Ud(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function lS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function zx(e,t){lS(e,t),(e=e.alternate)&&lS(e,t)}function cH(){return null}var mC=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wx(e){this._internalRoot=e}yp.prototype.render=Wx.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));vp(e,t,null,null)};yp.prototype.unmount=Wx.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bi(function(){vp(null,e,null,null)}),t[Hr]=null}};function yp(e){this._internalRoot=e}yp.prototype.unstable_scheduleHydration=function(e){if(e){var t=V_();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ho.length&&t!==0&&t<ho[n].priority;n++);ho.splice(n,0,e),n===0&&Y_(e)}};function Gx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function cS(){}function uH(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Ud(a);i.call(u)}}var a=hC(t,r,e,0,null,!1,!1,"",cS);return e._reactRootContainer=a,e[Hr]=a.current,Ll(e.nodeType===8?e.parentNode:e),bi(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Ud(c);s.call(u)}}var c=Hx(e,0,!1,null,null,!1,!1,"",cS);return e._reactRootContainer=c,e[Hr]=c.current,Ll(e.nodeType===8?e.parentNode:e),bi(function(){vp(t,c,n,r)}),c}function xp(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var c=Ud(a);s.call(c)}}vp(t,a,e,o)}else a=uH(n,t,e,o,r);return Ud(a)}W_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=il(t.pendingLanes);n!==0&&(ux(t,n|1),Qt(t,nt()),!(je&6)&&(Fa=nt()+500,Uo()))}break;case 13:bi(function(){var r=zr(e,1);if(r!==null){var o=Ht();Qn(r,e,1,o)}}),zx(e,1)}};dx=function(e){if(e.tag===13){var t=zr(e,134217728);if(t!==null){var n=Ht();Qn(t,e,134217728,n)}zx(e,134217728)}};G_=function(e){if(e.tag===13){var t=jo(e),n=zr(e,t);if(n!==null){var r=Ht();Qn(n,e,t,r)}zx(e,t)}};V_=function(){return Ie};K_=function(e,t){var n=Ie;try{return Ie=e,t()}finally{Ie=n}};wv=function(e,t,n){switch(t){case"input":if(hv(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=cp(r);if(!o)throw Error(V(90));E_(r),hv(r,o)}}}break;case"textarea":__(e,n);break;case"select":t=n.value,t!=null&&xa(e,!!n.multiple,t,!1)}};R_=Lx;k_=bi;var dH={usingClientEntryPoint:!1,Events:[Fc,la,cp,P_,I_,Lx]},zs={findFiberByHostInstance:oi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fH={bundleType:zs.bundleType,version:zs.version,rendererPackageName:zs.rendererPackageName,rendererConfig:zs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$_(e),e===null?null:e.stateNode},findFiberByHostInstance:zs.findFiberByHostInstance||cH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{ip=ju.inject(fH),pr=ju}catch{}}mn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dH;mn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gx(t))throw Error(V(200));return lH(e,t,null,n)};mn.createRoot=function(e,t){if(!Gx(e))throw Error(V(299));var n=!1,r="",o=mC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hx(e,1,!1,null,null,n,!1,r,o),e[Hr]=t.current,Ll(e.nodeType===8?e.parentNode:e),new Wx(t)};mn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=$_(t),e=e===null?null:e.stateNode,e};mn.flushSync=function(e){return bi(e)};mn.hydrate=function(e,t,n){if(!gp(t))throw Error(V(200));return xp(null,e,t,!0,n)};mn.hydrateRoot=function(e,t,n){if(!Gx(e))throw Error(V(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=mC;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=hC(t,null,e,1,n??null,o,!1,i,a),e[Hr]=t.current,Ll(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new yp(t)};mn.render=function(e,t,n){if(!gp(t))throw Error(V(200));return xp(null,e,t,!1,n)};mn.unmountComponentAtNode=function(e){if(!gp(e))throw Error(V(40));return e._reactRootContainer?(bi(function(){xp(null,null,e,!1,function(){e._reactRootContainer=null,e[Hr]=null})}),!0):!1};mn.unstable_batchedUpdates=Lx;mn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!gp(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return xp(e,t,n,!1,r)};mn.version="18.3.1-next-f1338f8080-20240426";function vC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(vC)}catch(e){console.error(e)}}vC(),v_.exports=mn;var Ii=v_.exports;const pH=Re(Ii);var uS=Ii;sv.createRoot=uS.createRoot,sv.hydrateRoot=uS.hydrateRoot;/**
|
|
41
|
-
* @remix-run/router v1.23.1
|
|
42
|
-
*
|
|
43
|
-
* Copyright (c) Remix Software Inc.
|
|
44
|
-
*
|
|
45
|
-
* This source code is licensed under the MIT license found in the
|
|
46
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
47
|
-
*
|
|
48
|
-
* @license MIT
|
|
49
|
-
*/function Kl(){return Kl=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},Kl.apply(this,arguments)}var xo;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(xo||(xo={}));const dS="popstate";function hH(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return ey("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Hd(o)}return vH(t,n,null,e)}function st(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Vx(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mH(){return Math.random().toString(36).substr(2,8)}function fS(e,t){return{usr:e.state,key:e.key,idx:t}}function ey(e,t,n,r){return n===void 0&&(n=null),Kl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ys(t):t,{state:n,key:t&&t.key||r||mH()})}function Hd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function ys(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function vH(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=xo.Pop,c=null,u=f();u==null&&(u=0,a.replaceState(Kl({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=xo.Pop;let m=f(),g=m==null?null:m-u;u=m,c&&c({action:s,location:y.location,delta:g})}function p(m,g){s=xo.Push;let x=ey(y.location,m,g);u=f()+1;let w=fS(x,u),E=y.createHref(x);try{a.pushState(w,"",E)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(E)}i&&c&&c({action:s,location:y.location,delta:1})}function v(m,g){s=xo.Replace;let x=ey(y.location,m,g);u=f();let w=fS(x,u),E=y.createHref(x);a.replaceState(w,"",E),i&&c&&c({action:s,location:y.location,delta:0})}function b(m){let g=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof m=="string"?m:Hd(m);return x=x.replace(/ $/,"%20"),st(g,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,g)}let y={get action(){return s},get location(){return e(o,a)},listen(m){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(dS,d),c=m,()=>{o.removeEventListener(dS,d),c=null}},createHref(m){return t(o,m)},createURL:b,encodeLocation(m){let g=b(m);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:v,go(m){return a.go(m)}};return y}var pS;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(pS||(pS={}));function yH(e,t,n){return n===void 0&&(n="/"),gH(e,t,n)}function gH(e,t,n,r){let o=typeof t=="string"?ys(t):t,i=Kx(o.pathname||"/",n);if(i==null)return null;let a=yC(e);xH(a);let s=null;for(let c=0;s==null&&c<a.length;++c){let u=PH(i);s=CH(a[c],u)}return s}function yC(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,s)=>{let c={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(st(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let u=Oo([r,c.relativePath]),f=n.concat(c);i.children&&i.children.length>0&&(st(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),yC(i.children,t,f,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:_H(u,i.index),routesMeta:f})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let c of gC(i.path))o(i,a,c)}),t}function gC(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=gC(r.join("/")),s=[];return s.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&s.push(...a),s.map(c=>e.startsWith("/")&&c===""?"/":c)}function xH(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jH(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bH=/^:[\w-]+$/,wH=3,SH=2,AH=1,EH=10,NH=-2,hS=e=>e==="*";function _H(e,t){let n=e.split("/"),r=n.length;return n.some(hS)&&(r+=NH),t&&(r+=SH),n.filter(o=>!hS(o)).reduce((o,i)=>o+(bH.test(i)?wH:i===""?AH:EH),r)}function jH(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function CH(e,t,n){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let c=r[s],u=s===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=OH({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},f),p=c.route;if(!d)return null;Object.assign(o,d.params),a.push({params:o,pathname:Oo([i,d.pathname]),pathnameBase:DH(Oo([i,d.pathnameBase])),route:p}),d.pathnameBase!=="/"&&(i=Oo([i,d.pathnameBase]))}return a}function OH(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TH(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,f,d)=>{let{paramName:p,isOptional:v}=f;if(p==="*"){let y=s[d]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const b=s[d];return v&&!b?u[p]=void 0:u[p]=(b||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function TH(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vx(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,c)=>(r.push({paramName:s,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function PH(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Vx(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Kx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const IH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RH=e=>IH.test(e);function kH(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?ys(e):e,i;if(n)if(RH(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Vx(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?i=mS(n.substring(1),"/"):i=mS(n,t)}else i=t;return{pathname:i,search:$H(r),hash:LH(o)}}function mS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function pm(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function MH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xC(e,t){let n=MH(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function bC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=ys(e):(o=Kl({},e),st(!o.pathname||!o.pathname.includes("?"),pm("?","pathname","search",o)),st(!o.pathname||!o.pathname.includes("#"),pm("#","pathname","hash",o)),st(!o.search||!o.search.includes("#"),pm("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let d=t.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}s=d>=0?t[d]:"/"}let c=kH(o,s),u=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(u||f)&&(c.pathname+="/"),c}const Oo=e=>e.join("/").replace(/\/\/+/g,"/"),DH=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$H=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,LH=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function FH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const wC=["post","put","patch","delete"];new Set(wC);const BH=["get",...wC];new Set(BH);/**
|
|
50
|
-
* React Router v6.30.2
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/function Yl(){return Yl=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},Yl.apply(this,arguments)}const Yx=h.createContext(null),UH=h.createContext(null),Ri=h.createContext(null),bp=h.createContext(null),Jr=h.createContext({outlet:null,matches:[],isDataRoute:!1}),SC=h.createContext(null);function HH(e,t){let{relative:n}=t===void 0?{}:t;Uc()||st(!1);let{basename:r,navigator:o}=h.useContext(Ri),{hash:i,pathname:a,search:s}=NC(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:Oo([r,a])),o.createHref({pathname:c,search:s,hash:i})}function Uc(){return h.useContext(bp)!=null}function Hc(){return Uc()||st(!1),h.useContext(bp).location}function AC(e){h.useContext(Ri).static||h.useLayoutEffect(e)}function EC(){let{isDataRoute:e}=h.useContext(Jr);return e?r5():zH()}function zH(){Uc()||st(!1);let e=h.useContext(Yx),{basename:t,future:n,navigator:r}=h.useContext(Ri),{matches:o}=h.useContext(Jr),{pathname:i}=Hc(),a=JSON.stringify(xC(o,n.v7_relativeSplatPath)),s=h.useRef(!1);return AC(()=>{s.current=!0}),h.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=bC(u,JSON.parse(a),i,f.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Oo([t,d.pathname])),(f.replace?r.replace:r.push)(d,f.state,f)},[t,r,a,i,e])}const WH=h.createContext(null);function GH(e){let t=h.useContext(Jr).outlet;return t&&h.createElement(WH.Provider,{value:e},t)}function ki(){let{matches:e}=h.useContext(Jr),t=e[e.length-1];return t?t.params:{}}function NC(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext(Ri),{matches:o}=h.useContext(Jr),{pathname:i}=Hc(),a=JSON.stringify(xC(o,r.v7_relativeSplatPath));return h.useMemo(()=>bC(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function VH(e,t){return KH(e,t)}function KH(e,t,n,r){Uc()||st(!1);let{navigator:o}=h.useContext(Ri),{matches:i}=h.useContext(Jr),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let u=Hc(),f;if(t){var d;let m=typeof t=="string"?ys(t):t;c==="/"||(d=m.pathname)!=null&&d.startsWith(c)||st(!1),f=m}else f=u;let p=f.pathname||"/",v=p;if(c!=="/"){let m=c.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(m.length).join("/")}let b=yH(e,{pathname:v}),y=QH(b&&b.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Oo([c,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:Oo([c,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r);return t&&y?h.createElement(bp.Provider,{value:{location:Yl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:xo.Pop}},y):y}function YH(){let e=n5(),t=FH(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,null)}const qH=h.createElement(YH,null);class XH extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(Jr.Provider,{value:this.props.routeContext},h.createElement(SC.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZH(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(Yx);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(Jr.Provider,{value:t},r)}function QH(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let f=a.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);f>=0||st(!1),a=a.slice(0,Math.min(a.length,f+1))}let c=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=f),d.route.id){let{loaderData:p,errors:v}=n,b=d.route.loader&&p[d.route.id]===void 0&&(!v||v[d.route.id]===void 0);if(d.route.lazy||b){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((f,d,p)=>{let v,b=!1,y=null,m=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||qH,c&&(u<0&&p===0?(o5("route-fallback"),b=!0,m=null):u===p&&(b=!0,m=d.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,p+1)),x=()=>{let w;return v?w=y:b?w=m:d.route.Component?w=h.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=f,h.createElement(ZH,{match:d,routeContext:{outlet:f,matches:g,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?h.createElement(XH,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:x(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):x()},null)}var _C=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(_C||{}),jC=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(jC||{});function JH(e){let t=h.useContext(Yx);return t||st(!1),t}function e5(e){let t=h.useContext(UH);return t||st(!1),t}function t5(e){let t=h.useContext(Jr);return t||st(!1),t}function CC(e){let t=t5(),n=t.matches[t.matches.length-1];return n.route.id||st(!1),n.route.id}function n5(){var e;let t=h.useContext(SC),n=e5(),r=CC();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function r5(){let{router:e}=JH(_C.UseNavigateStable),t=CC(jC.UseNavigateStable),n=h.useRef(!1);return AC(()=>{n.current=!0}),h.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Yl({fromRouteId:t},i)))},[e,t])}const vS={};function o5(e,t,n){vS[e]||(vS[e]=!0)}function i5(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function a5(e){return GH(e.context)}function St(e){st(!1)}function s5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=xo.Pop,navigator:i,static:a=!1,future:s}=e;Uc()&&st(!1);let c=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:c,navigator:i,static:a,future:Yl({v7_relativeSplatPath:!1},s)}),[c,s,i,a]);typeof r=="string"&&(r=ys(r));let{pathname:f="/",search:d="",hash:p="",state:v=null,key:b="default"}=r,y=h.useMemo(()=>{let m=Kx(f,c);return m==null?null:{location:{pathname:m,search:d,hash:p,state:v,key:b},navigationType:o}},[c,f,d,p,v,b,o]);return y==null?null:h.createElement(Ri.Provider,{value:u},h.createElement(bp.Provider,{children:n,value:y}))}function l5(e){let{children:t,location:n}=e;return VH(ty(t),n)}new Promise(()=>{});function ty(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,o)=>{if(!h.isValidElement(r))return;let i=[...t,o];if(r.type===h.Fragment){n.push.apply(n,ty(r.props.children,i));return}r.type!==St&&st(!1),!r.props.index||!r.props.children||st(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ty(r.props.children,i)),n.push(a)}),n}/**
|
|
59
|
-
* React Router DOM v6.30.2
|
|
60
|
-
*
|
|
61
|
-
* Copyright (c) Remix Software Inc.
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the MIT license found in the
|
|
64
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
65
|
-
*
|
|
66
|
-
* @license MIT
|
|
67
|
-
*/function ny(){return ny=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},ny.apply(this,arguments)}function c5(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function u5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function d5(e,t){return e.button===0&&(!t||t==="_self")&&!u5(e)}const f5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],p5="6";try{window.__reactRouterVersion=p5}catch{}const h5="startTransition",yS=op[h5];function m5(e){let{basename:t,children:n,future:r,window:o}=e,i=h.useRef();i.current==null&&(i.current=hH({window:o,v5Compat:!0}));let a=i.current,[s,c]=h.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},f=h.useCallback(d=>{u&&yS?yS(()=>c(d)):c(d)},[c,u]);return h.useLayoutEffect(()=>a.listen(f),[a,f]),h.useEffect(()=>i5(r),[r]),h.createElement(s5,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a,future:r})}const v5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",y5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pe=h.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:c,to:u,preventScrollReset:f,viewTransition:d}=t,p=c5(t,f5),{basename:v}=h.useContext(Ri),b,y=!1;if(typeof u=="string"&&y5.test(u)&&(b=u,v5))try{let w=new URL(window.location.href),E=u.startsWith("//")?new URL(w.protocol+u):new URL(u),A=Kx(E.pathname,v);E.origin===w.origin&&A!=null?u=A+E.search+E.hash:y=!0}catch{}let m=HH(u,{relative:o}),g=g5(u,{replace:a,state:s,target:c,preventScrollReset:f,relative:o,viewTransition:d});function x(w){r&&r(w),w.defaultPrevented||g(w)}return h.createElement("a",ny({},p,{href:b||m,onClick:y||i?r:x,ref:n,target:c}))});var gS;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(gS||(gS={}));var xS;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xS||(xS={}));function g5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,c=EC(),u=Hc(),f=NC(e,{relative:a});return h.useCallback(d=>{if(d5(d,n)){d.preventDefault();let p=r!==void 0?r:Hd(u)===Hd(f);c(e,{replace:p,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[u,c,f,r,o,n,e,i,a,s])}const x5="nav",b5={nodeType:"translation",translation:{en:{dashboard:"Dashboard",sources:"Data Sources",catalog:"Catalog",glossary:"Glossary",rules:"Rules",validations:"Validations",history:"History",schedules:"Schedules",activity:"Activity",notifications:"Notifications",profile:"Profile",drift:"Drift",settings:"Settings"},ko:{dashboard:"대시보드",sources:"데이터 소스",catalog:"카탈로그",glossary:"용어집",rules:"규칙",validations:"검증",history:"히스토리",schedules:"스케줄",activity:"활동",notifications:"알림",profile:"프로필",drift:"드리프트",settings:"설정"}}},w5=["nav::local::src/content/nav.content.ts"],Mi={key:x5,content:b5,localIds:w5},S5=(e,t)=>{var p,v,b,y,m,g,x,w;const n=(t==null?void 0:t.isVerbose)??!1,r=((p=t==null?void 0:t.config)==null?void 0:p.mode)??"default",o=(t==null?void 0:t.level)??"info",i=(v=t==null?void 0:t.config)!=null&&v.prefix?(b=t==null?void 0:t.config)==null?void 0:b.prefix:void 0,a=((y=t==null?void 0:t.config)==null?void 0:y.log)??console.log,s=((m=t==null?void 0:t.config)==null?void 0:m.info)??console.info,c=((g=t==null?void 0:t.config)==null?void 0:g.warn)??console.warn,u=((x=t==null?void 0:t.config)==null?void 0:x.error)??console.error,f=((w=t==null?void 0:t.config)==null?void 0:w.debug)??console.debug;if(r==="disabled"||n&&r!=="verbose")return;const d=i?[i,...[e].flat()]:[e].flat();if(o==="debug")return f(...d);if(o==="info")return s(...d);if(o==="warn")return c(...d);if(o==="error")return u(...d);a(...d)};let bS=function(e){return e.RESET="\x1B[0m",e.GREY="\x1B[90m",e.GREY_DARK="\x1B[38;5;239m",e.GREY_LIGHT="\x1B[38;5;252m",e.BLUE="\x1B[34m",e.RED="\x1B[31m",e.GREEN="\x1B[32m",e.YELLOW="\x1B[38;5;226m",e.MAGENTA="\x1B[35m",e.BEIGE="\x1B[38;5;3m",e.ORANGE="\x1B[38;5;208m",e.CYAN="\x1B[36m",e.WHITE="\x1B[37m",e.BOLD="\x1B[1m",e}({});const A5=(e,t)=>(n,r)=>S5(n,{...r??{},config:{...e==null?void 0:e.log,...t==null?void 0:t.config,...(r==null?void 0:r.config)??{}}});var E5=Object.defineProperty,Di=(e,t)=>{let n={};for(var r in e)E5(n,r,{get:e[r],enumerable:!0});return n},N5=Di({BUILD_MODE:()=>_5,CACHE:()=>P5,IMPORT_MODE:()=>C5,OPTIMIZE:()=>j5,OUTPUT_FORMAT:()=>T5,TRAVERSE_PATTERN:()=>O5});const _5="auto",j5=void 0,C5="static",O5=["**/*.{tsx,ts,js,mjs,cjs,jsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],T5=["cjs","esm"],P5=!0;var I5=Di({CACHE_DIR:()=>Y5,CONFIG_DIR:()=>K5,CONTENT_DIR:()=>M5,DICTIONARIES_DIR:()=>$5,DYNAMIC_DICTIONARIES_DIR:()=>U5,EXCLUDED_PATHS:()=>k5,FETCH_DICTIONARIES_DIR:()=>H5,FILE_EXTENSIONS:()=>R5,I18NEXT_DICTIONARIES_DIR:()=>G5,MAIN_DIR:()=>D5,MASKS_DIR:()=>L5,MODULE_AUGMENTATION_DIR:()=>W5,REACT_INTL_MESSAGES_DIR:()=>V5,REMOTE_DICTIONARIES_DIR:()=>F5,TYPES_DIR:()=>z5,UNMERGED_DICTIONARIES_DIR:()=>B5,WATCH:()=>q5});const R5=[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],k5=["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],M5=["."],D5=".intlayer/main",$5=".intlayer/dictionary",L5=".intlayer/mask",F5=".intlayer/remote_dictionary",B5=".intlayer/unmerged_dictionary",U5=".intlayer/dynamic_dictionary",H5=".intlayer/fetch_dictionary",z5=".intlayer/types",W5=".intlayer/types",G5="i18next_resources",V5="intl_messages",K5=".intlayer/config",Y5=".intlayer/cache",q5=!0;var X5=Di({APPLICATION_URL:()=>Z5,BACKEND_URL:()=>ez,CMS_URL:()=>J5,DICTIONARY_PRIORITY_STRATEGY:()=>oz,EDITOR_URL:()=>Q5,IS_ENABLED:()=>nz,LIVE_SYNC:()=>rz,LIVE_SYNC_PORT:()=>iz,PORT:()=>tz});const Z5="",Q5="http://localhost:8000",J5="https://app.intlayer.org",ez="https://back.intlayer.org",tz=8e3,nz=!0,rz=!0,oz="local_first",iz=4e3;var az=Object.defineProperty,sz=(e,t)=>{let n={};for(var r in e)az(n,r,{get:e[r],enumerable:!0});return n},jn=sz({AFRIKAANS:()=>OC,AFRIKAANS_SOUTH_AFRICA:()=>TC,ALBANIAN:()=>vI,ALBANIAN_ALBANIA:()=>yI,ALL_LOCALES:()=>lz,AMHARIC:()=>ER,AMHARIC_ETHIOPIA:()=>NR,ARABIC:()=>PC,ARABIC_ALGERIA:()=>kC,ARABIC_BAHRAIN:()=>RC,ARABIC_CHAD:()=>ok,ARABIC_COMOROS:()=>ik,ARABIC_DJIBOUTI:()=>nk,ARABIC_EGYPT:()=>MC,ARABIC_IRAQ:()=>DC,ARABIC_JORDAN:()=>$C,ARABIC_KUWAIT:()=>LC,ARABIC_LEBANON:()=>FC,ARABIC_LIBYA:()=>BC,ARABIC_MAURITANIA:()=>JR,ARABIC_MOROCCO:()=>UC,ARABIC_OMAN:()=>HC,ARABIC_PALESTINE:()=>ek,ARABIC_QATAR:()=>zC,ARABIC_SAUDI_ARABIA:()=>WC,ARABIC_SOMALIA:()=>rk,ARABIC_SUDAN:()=>tk,ARABIC_SYRIA:()=>GC,ARABIC_TUNISIA:()=>VC,ARABIC_UNITED_ARAB_EMIRATES:()=>IC,ARABIC_YEMEN:()=>KC,ARMENIAN:()=>MT,ARMENIAN_ARMENIA:()=>DT,AZERI_LATIN:()=>YC,AZERI_LATIN_AZERBAIJAN:()=>qC,BASQUE:()=>rT,BASQUE_SPAIN:()=>oT,BELARUSIAN:()=>XC,BELARUSIAN_BELARUS:()=>ZC,BENGALI:()=>uR,BENGALI_BANGLADESH:()=>dR,BENGALI_INDIA:()=>fR,BENGALI_MYANMAR:()=>pR,BOSNIAN:()=>eO,BOSNIAN_BOSNIA_AND_HERZEGOVINA:()=>tO,BULGARIAN:()=>QC,BULGARIAN_BULGARIA:()=>JC,BURMESE:()=>hR,BURMESE_MYANMAR:()=>mR,CATALAN:()=>nO,CATALAN_SPAIN:()=>rO,CHINESE:()=>tR,CHINESE_HONG_KONG:()=>oR,CHINESE_MACAU:()=>iR,CHINESE_SIMPLIFIED:()=>nR,CHINESE_SIMPLIFIED_CHINA:()=>rR,CHINESE_SINGAPORE:()=>aR,CHINESE_TAIWAN:()=>QR,CHINESE_TRADITIONAL:()=>sR,CROATIAN:()=>TT,CROATIAN_BOSNIA_AND_HERZEGOVINA:()=>PT,CROATIAN_CROATIA:()=>IT,CZECH:()=>oO,CZECH_CZECH_REPUBLIC:()=>iO,DANISH:()=>lO,DANISH_DENMARK:()=>cO,DIVEHI:()=>vO,DIVEHI_MALDIVES:()=>yO,DUTCH:()=>CP,DUTCH_BELGIUM:()=>OP,DUTCH_NETHERLANDS:()=>TP,ENGLISH:()=>bO,ENGLISH_AUSTRALIA:()=>wO,ENGLISH_BELIZE:()=>SO,ENGLISH_BOTSWANA:()=>FR,ENGLISH_CANADA:()=>AO,ENGLISH_CARIBBEAN:()=>EO,ENGLISH_GHANA:()=>HR,ENGLISH_HONG_KONG:()=>MR,ENGLISH_INDIA:()=>RR,ENGLISH_IRELAND:()=>_O,ENGLISH_JAMAICA:()=>jO,ENGLISH_KENYA:()=>BR,ENGLISH_MALAYSIA:()=>LR,ENGLISH_NEW_ZEALAND:()=>CO,ENGLISH_NIGERIA:()=>DR,ENGLISH_PAKISTAN:()=>$R,ENGLISH_PHILIPPINES:()=>OO,ENGLISH_SINGAPORE:()=>kR,ENGLISH_SOUTH_AFRICA:()=>IO,ENGLISH_TANZANIA:()=>UR,ENGLISH_TRINIDAD_AND_TOBAGO:()=>TO,ENGLISH_UGANDA:()=>zR,ENGLISH_UNITED_KINGDOM:()=>NO,ENGLISH_UNITED_STATES:()=>PO,ENGLISH_ZIMBABWE:()=>RO,ESPERANTO:()=>kO,ESTONIAN:()=>tT,ESTONIAN_ESTONIA:()=>nT,FAROESE:()=>cT,FAROESE_FAROE_ISLANDS:()=>uT,FARSI:()=>iT,FARSI_IRAN:()=>aT,FINNISH:()=>sT,FINNISH_FINLAND:()=>lT,FRENCH:()=>dT,FRENCH_BELGIUM:()=>fT,FRENCH_CANADA:()=>pT,FRENCH_FRANCE:()=>mT,FRENCH_LUXEMBOURG:()=>vT,FRENCH_PRINCIPALITY_OF_MONACO:()=>yT,FRENCH_SWITZERLAND:()=>hT,FYRO_MACEDONIAN:()=>fP,FYRO_MACEDONIAN_MACEDONIA:()=>pP,GALICIAN:()=>ST,GALICIAN_SPAIN:()=>AT,GEORGIAN:()=>VT,GEORGIAN_GEORGIA:()=>KT,GERMAN:()=>uO,GERMAN_AUSTRIA:()=>dO,GERMAN_GERMANY:()=>pO,GERMAN_LIECHTENSTEIN:()=>hO,GERMAN_LUXEMBOURG:()=>mO,GERMAN_SWITZERLAND:()=>fO,GREEK:()=>gO,GREEK_GREECE:()=>xO,GUJARATI:()=>ET,GUJARATI_INDIA:()=>NT,HEBREW:()=>_T,HEBREW_ISRAEL:()=>jT,HINDI:()=>CT,HINDI_INDIA:()=>OT,HUNGARIAN:()=>RT,HUNGARIAN_HUNGARY:()=>kT,ICELANDIC:()=>FT,ICELANDIC_ICELAND:()=>BT,INDONESIAN:()=>$T,INDONESIAN_INDONESIA:()=>LT,IRISH:()=>gT,IRISH_IRELAND:()=>xT,ITALIAN:()=>UT,ITALIAN_ITALY:()=>zT,ITALIAN_SWITZERLAND:()=>HT,JAPANESE:()=>WT,JAPANESE_JAPAN:()=>GT,KANNADA:()=>XT,KANNADA_INDIA:()=>ZT,KAZAKH:()=>YT,KAZAKH_KAZAKHSTAN:()=>qT,KHMER:()=>vR,KHMER_CAMBODIA:()=>yR,KONKANI:()=>eP,KONKANI_INDIA:()=>tP,KOREAN:()=>QT,KOREAN_KOREA:()=>JT,KURDISH:()=>nP,KURDISH_TURKEY:()=>rP,KYRGYZ:()=>oP,KYRGYZ_KYRGYZSTAN:()=>iP,LAO:()=>gR,LAO_LAOS:()=>xR,LATVIAN:()=>lP,LATVIAN_LATVIA:()=>cP,LITHUANIAN:()=>aP,LITHUANIAN_LITHUANIA:()=>sP,LOWER_SORBIAN:()=>uI,LOWER_SORBIAN_GERMANY:()=>dI,MALAY:()=>gP,MALAYALAM:()=>AP,MALAYALAM_INDIA:()=>EP,MALAY_BRUNEI_DARUSSALAM:()=>xP,MALAY_MALAYSIA:()=>bP,MALTESE:()=>wP,MALTESE_MALTA:()=>SP,MAORI:()=>uP,MAORI_NEW_ZEALAND:()=>dP,MARATHI:()=>vP,MARATHI_INDIA:()=>yP,MONGOLIAN:()=>hP,MONGOLIAN_MONGOLIA:()=>mP,NEPALI:()=>_R,NEPALI_NEPAL:()=>jR,NORTHERN_SOTHO:()=>RP,NORTHERN_SOTHO_SOUTH_AFRICA:()=>kP,NORWEGIAN:()=>NP,NORWEGIAN_BOKMAL:()=>_P,NORWEGIAN_BOKMAL_NORWAY:()=>jP,NORWEGIAN_NYNORSK:()=>PP,NORWEGIAN_NYNORSK_NORWAY:()=>IP,PASHTO:()=>FP,PASHTO_AFGHANISTAN:()=>BP,POLISH:()=>$P,POLISH_POLAND:()=>LP,PORTUGUESE:()=>UP,PORTUGUESE_BRAZIL:()=>HP,PORTUGUESE_CAPE_VERDE:()=>qR,PORTUGUESE_GUINEA_BISSAU:()=>VR,PORTUGUESE_MACAU:()=>ZR,PORTUGUESE_MOZAMBIQUE:()=>KR,PORTUGUESE_PORTUGAL:()=>zP,PORTUGUESE_SAO_TOME_AND_PRINCIPE:()=>YR,PORTUGUESE_TIMOR_LESTE:()=>XR,PUNJABI:()=>MP,PUNJABI_INDIA:()=>DP,QUECHUA:()=>WP,QUECHUA_BOLIVIA:()=>GP,QUECHUA_ECUADOR:()=>VP,QUECHUA_PERU:()=>KP,ROMANIAN:()=>YP,ROMANIAN_MOLDOVA:()=>XP,ROMANIAN_ROMANIA:()=>qP,ROMANSH:()=>ZP,ROMANSH_SWITZERLAND:()=>QP,RUSSIAN:()=>JP,RUSSIAN_MOLDOVA:()=>tI,RUSSIAN_RUSSIA:()=>eI,SAMI_NORTHERN:()=>oI,SAMI_NORTHERN_FINLAND:()=>iI,SAMI_NORTHERN_NORWAY:()=>aI,SAMI_NORTHERN_SWEDEN:()=>sI,SANSKRIT:()=>nI,SANSKRIT_INDIA:()=>rI,SCOTTISH_GAELIC:()=>bT,SCOTTISH_GAELIC_UNITED_KINGDOM:()=>wT,SERBIAN_CYRILLIC:()=>TR,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:()=>IR,SERBIAN_CYRILLIC_SERBIA:()=>PR,SERBIAN_LATIN:()=>gI,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:()=>xI,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:()=>bI,SINHALA:()=>CR,SINHALA_SRI_LANKA:()=>OR,SLOVAK:()=>fI,SLOVAK_SLOVAKIA:()=>pI,SLOVENIAN:()=>hI,SLOVENIAN_SLOVENIA:()=>mI,SPANISH:()=>MO,SPANISH_ARGENTINA:()=>DO,SPANISH_BOLIVIA:()=>$O,SPANISH_CHILE:()=>LO,SPANISH_COLOMBIA:()=>FO,SPANISH_COSTA_RICA:()=>BO,SPANISH_CUBA:()=>WR,SPANISH_DOMINICAN_REPUBLIC:()=>UO,SPANISH_ECUADOR:()=>HO,SPANISH_EL_SALVADOR:()=>QO,SPANISH_GUATEMALA:()=>WO,SPANISH_HONDURAS:()=>GO,SPANISH_MEXICO:()=>VO,SPANISH_NICARAGUA:()=>KO,SPANISH_PANAMA:()=>YO,SPANISH_PARAGUAY:()=>ZO,SPANISH_PERU:()=>qO,SPANISH_PUERTO_RICO:()=>XO,SPANISH_SPAIN:()=>zO,SPANISH_UNITED_STATES:()=>GR,SPANISH_URUGUAY:()=>JO,SPANISH_VENEZUELA:()=>eT,SWAHILI:()=>EI,SWAHILI_KENYA:()=>NI,SWEDISH:()=>wI,SWEDISH_FINLAND:()=>SI,SWEDISH_SWEDEN:()=>AI,SYRIAC:()=>_I,SYRIAC_SYRIA:()=>jI,TAGALOG:()=>kI,TAGALOG_PHILIPPINES:()=>MI,TAMIL:()=>CI,TAMIL_INDIA:()=>OI,TATAR:()=>BI,TATAR_RUSSIA:()=>UI,TELUGU:()=>TI,TELUGU_INDIA:()=>PI,THAI:()=>II,THAI_THAILAND:()=>RI,TSOGA:()=>HI,TSWANA:()=>DI,TSWANA_SOUTH_AFRICA:()=>$I,TURKISH:()=>LI,TURKISH_TURKEY:()=>FI,UKRAINIAN:()=>zI,UKRAINIAN_UKRAINE:()=>WI,UPPER_SORBIAN:()=>lI,UPPER_SORBIAN_GERMANY:()=>cI,URDU:()=>GI,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:()=>VI,UZBEK_LATIN:()=>KI,UZBEK_LATIN_UZBEKISTAN:()=>YI,VENDA:()=>ZI,VENDA_SOUTH_AFRICA:()=>QI,VIETNAMESE:()=>qI,VIETNAMESE_VIET_NAM:()=>XI,WELSH:()=>aO,WELSH_UNITED_KINGDOM:()=>sO,XHOSA:()=>JI,XHOSA_SOUTH_AFRICA:()=>eR,YIDDISH:()=>SR,YIDDISH_WORLD:()=>AR,YORUBA:()=>bR,YORUBA_NIGERIA:()=>wR,ZULU:()=>lR,ZULU_SOUTH_AFRICA:()=>cR});const OC="af",TC="af-ZA",PC="ar",IC="ar-AE",RC="ar-BH",kC="ar-DZ",MC="ar-EG",DC="ar-IQ",$C="ar-JO",LC="ar-KW",FC="ar-LB",BC="ar-LY",UC="ar-MA",HC="ar-OM",zC="ar-QA",WC="ar-SA",GC="ar-SY",VC="ar-TN",KC="ar-YE",YC="az",qC="az-AZ",XC="be",ZC="be-BY",QC="bg",JC="bg-BG",eO="bs",tO="bs-BA",nO="ca",rO="ca-ES",oO="cs",iO="cs-CZ",aO="cy",sO="cy-GB",lO="da",cO="da-DK",uO="de",dO="de-AT",fO="de-CH",pO="de-DE",hO="de-LI",mO="de-LU",vO="dv",yO="dv-MV",gO="el",xO="el-GR",bO="en",wO="en-AU",SO="en-BZ",AO="en-CA",EO="en-CB",NO="en-GB",_O="en-IE",jO="en-JM",CO="en-NZ",OO="en-PH",TO="en-TT",PO="en-US",IO="en-ZA",RO="en-ZW",kO="eo",MO="es",DO="es-AR",$O="es-BO",LO="es-CL",FO="es-CO",BO="es-CR",UO="es-DO",HO="es-EC",zO="es-ES",WO="es-GT",GO="es-HN",VO="es-MX",KO="es-NI",YO="es-PA",qO="es-PE",XO="es-PR",ZO="es-PY",QO="es-SV",JO="es-UY",eT="es-VE",tT="et",nT="et-EE",rT="eu",oT="eu-ES",iT="fa",aT="fa-IR",sT="fi",lT="fi-FI",cT="fo",uT="fo-FO",dT="fr",fT="fr-BE",pT="fr-CA",hT="fr-CH",mT="fr-FR",vT="fr-LU",yT="fr-MC",gT="ga",xT="ga-IE",bT="gd",wT="gd-GB",ST="gl",AT="gl-ES",ET="gu",NT="gu-IN",_T="he",jT="he-IL",CT="hi",OT="hi-IN",TT="hr",PT="hr-BA",IT="hr-HR",RT="hu",kT="hu-HU",MT="hy",DT="hy-AM",$T="id",LT="id-ID",FT="is",BT="is-IS",UT="it",HT="it-CH",zT="it-IT",WT="ja",GT="ja-JP",VT="ka",KT="ka-GE",YT="kk",qT="kk-KZ",XT="kn",ZT="kn-IN",QT="ko",JT="ko-KR",eP="kok",tP="kok-IN",nP="ku",rP="ku-TR",oP="ky",iP="ky-KG",aP="lt",sP="lt-LT",lP="lv",cP="lv-LV",uP="mi",dP="mi-NZ",fP="mk",pP="mk-MK",hP="mn",mP="mn-MN",vP="mr",yP="mr-IN",gP="ms",xP="ms-BN",bP="ms-MY",wP="mt",SP="mt-MT",AP="ml",EP="ml-IN",NP="no",_P="nb",jP="nb-NO",CP="nl",OP="nl-BE",TP="nl-NL",PP="nn",IP="nn-NO",RP="ns",kP="ns-ZA",MP="pa",DP="pa-IN",$P="pl",LP="pl-PL",FP="ps",BP="ps-AR",UP="pt",HP="pt-BR",zP="pt-PT",WP="qu",GP="qu-BO",VP="qu-EC",KP="qu-PE",YP="ro",qP="ro-RO",XP="ro-MD",ZP="rm",QP="rm-CH",JP="ru",eI="ru-RU",tI="ru-MD",nI="sa",rI="sa-IN",oI="se",iI="se-FI",aI="se-NO",sI="se-SE",lI="hsb",cI="hsb-DE",uI="dsb",dI="dsb-DE",fI="sk",pI="sk-SK",hI="sl",mI="sl-SI",vI="sq",yI="sq-AL",gI="sr",xI="sr-BA",bI="sr-SP",wI="sv",SI="sv-FI",AI="sv-SE",EI="sw",NI="sw-KE",_I="syr",jI="syr-SY",CI="ta",OI="ta-IN",TI="te",PI="te-IN",II="th",RI="th-TH",kI="tl",MI="tl-PH",DI="tn",$I="tn-ZA",LI="tr",FI="tr-TR",BI="tt",UI="tt-RU",HI="ts",zI="uk",WI="uk-UA",GI="ur",VI="ur-PK",KI="uz",YI="uz-UZ",qI="vi",XI="vi-VN",ZI="ve",QI="ve-ZA",JI="xh",eR="xh-ZA",tR="zh",nR="zh-Hans",rR="zh-CN",oR="zh-HK",iR="zh-MO",aR="zh-SG",sR="zh-Hant",lR="zu",cR="zu-ZA",uR="bn",dR="bn-BD",fR="bn-IN",pR="bn-MM",hR="my",mR="my-MM",vR="km",yR="km-KH",gR="lo",xR="lo-LA",bR="yo",wR="yo-NG",SR="yi",AR="yi-001",ER="am",NR="am-ET",_R="ne",jR="ne-NP",CR="si",OR="si-LK",TR="sr-Cyrl",PR="sr-RS",IR="sr-BA",RR="en-IN",kR="en-SG",MR="en-HK",DR="en-NG",$R="en-PK",LR="en-MY",FR="en-BW",BR="en-KE",UR="en-TZ",HR="en-GH",zR="en-UG",WR="es-CU",GR="es-US",VR="pt-GW",KR="pt-MZ",YR="pt-ST",qR="pt-CV",XR="pt-TL",ZR="pt-MO",QR="zh-TW",JR="ar-MR",ek="ar-PS",tk="ar-SD",nk="ar-DJ",rk="ar-SO",ok="ar-TD",ik="ar-KM",lz={AFRIKAANS:OC,AFRIKAANS_SOUTH_AFRICA:TC,ARABIC:PC,ARABIC_UNITED_ARAB_EMIRATES:IC,ARABIC_BAHRAIN:RC,ARABIC_ALGERIA:kC,ARABIC_EGYPT:MC,ARABIC_IRAQ:DC,ARABIC_JORDAN:$C,ARABIC_KUWAIT:LC,ARABIC_LEBANON:FC,ARABIC_LIBYA:BC,ARABIC_MOROCCO:UC,ARABIC_OMAN:HC,ARABIC_QATAR:zC,ARABIC_SAUDI_ARABIA:WC,ARABIC_SYRIA:GC,ARABIC_TUNISIA:VC,ARABIC_YEMEN:KC,AZERI_LATIN:YC,AZERI_LATIN_AZERBAIJAN:qC,BELARUSIAN:XC,BELARUSIAN_BELARUS:ZC,BULGARIAN:QC,BULGARIAN_BULGARIA:JC,BOSNIAN:eO,BOSNIAN_BOSNIA_AND_HERZEGOVINA:tO,CATALAN:nO,CATALAN_SPAIN:rO,CZECH:oO,CZECH_CZECH_REPUBLIC:iO,WELSH:aO,WELSH_UNITED_KINGDOM:sO,DANISH:lO,DANISH_DENMARK:cO,GERMAN:uO,GERMAN_AUSTRIA:dO,GERMAN_SWITZERLAND:fO,GERMAN_GERMANY:pO,GERMAN_LIECHTENSTEIN:hO,GERMAN_LUXEMBOURG:mO,DIVEHI:vO,DIVEHI_MALDIVES:yO,GREEK:gO,GREEK_GREECE:xO,ENGLISH:bO,ENGLISH_AUSTRALIA:wO,ENGLISH_BELIZE:SO,ENGLISH_CANADA:AO,ENGLISH_CARIBBEAN:EO,ENGLISH_UNITED_KINGDOM:NO,ENGLISH_IRELAND:_O,ENGLISH_JAMAICA:jO,ENGLISH_NEW_ZEALAND:CO,ENGLISH_PHILIPPINES:OO,ENGLISH_TRINIDAD_AND_TOBAGO:TO,ENGLISH_UNITED_STATES:PO,ENGLISH_SOUTH_AFRICA:IO,ENGLISH_ZIMBABWE:RO,ESPERANTO:kO,SPANISH:MO,SPANISH_ARGENTINA:DO,SPANISH_BOLIVIA:$O,SPANISH_CHILE:LO,SPANISH_COLOMBIA:FO,SPANISH_COSTA_RICA:BO,SPANISH_DOMINICAN_REPUBLIC:UO,SPANISH_ECUADOR:HO,SPANISH_SPAIN:zO,SPANISH_GUATEMALA:WO,SPANISH_HONDURAS:GO,SPANISH_MEXICO:VO,SPANISH_NICARAGUA:KO,SPANISH_PANAMA:YO,SPANISH_PERU:qO,SPANISH_PUERTO_RICO:XO,SPANISH_PARAGUAY:ZO,SPANISH_EL_SALVADOR:QO,SPANISH_URUGUAY:JO,SPANISH_VENEZUELA:eT,ESTONIAN:tT,ESTONIAN_ESTONIA:nT,BASQUE:rT,BASQUE_SPAIN:oT,FARSI:iT,FARSI_IRAN:aT,FINNISH:sT,FINNISH_FINLAND:lT,FAROESE:cT,FAROESE_FAROE_ISLANDS:uT,FRENCH:dT,FRENCH_BELGIUM:fT,FRENCH_CANADA:pT,FRENCH_SWITZERLAND:hT,FRENCH_FRANCE:mT,FRENCH_LUXEMBOURG:vT,FRENCH_PRINCIPALITY_OF_MONACO:yT,IRISH:gT,IRISH_IRELAND:xT,SCOTTISH_GAELIC:bT,SCOTTISH_GAELIC_UNITED_KINGDOM:wT,GALICIAN:ST,GALICIAN_SPAIN:AT,GUJARATI:ET,GUJARATI_INDIA:NT,HEBREW:_T,HEBREW_ISRAEL:jT,HINDI:CT,HINDI_INDIA:OT,CROATIAN:TT,CROATIAN_BOSNIA_AND_HERZEGOVINA:PT,CROATIAN_CROATIA:IT,HUNGARIAN:RT,HUNGARIAN_HUNGARY:kT,ARMENIAN:MT,ARMENIAN_ARMENIA:DT,INDONESIAN:$T,INDONESIAN_INDONESIA:LT,ICELANDIC:FT,ICELANDIC_ICELAND:BT,ITALIAN:UT,ITALIAN_SWITZERLAND:HT,ITALIAN_ITALY:zT,JAPANESE:WT,JAPANESE_JAPAN:GT,GEORGIAN:VT,GEORGIAN_GEORGIA:KT,KAZAKH:YT,KAZAKH_KAZAKHSTAN:qT,KANNADA:XT,KANNADA_INDIA:ZT,KOREAN:QT,KOREAN_KOREA:JT,KONKANI:eP,KONKANI_INDIA:tP,KURDISH:nP,KURDISH_TURKEY:rP,KYRGYZ:oP,KYRGYZ_KYRGYZSTAN:iP,LITHUANIAN:aP,LITHUANIAN_LITHUANIA:sP,LATVIAN:lP,LATVIAN_LATVIA:cP,MAORI:uP,MAORI_NEW_ZEALAND:dP,FYRO_MACEDONIAN:fP,FYRO_MACEDONIAN_MACEDONIA:pP,MONGOLIAN:hP,MONGOLIAN_MONGOLIA:mP,MARATHI:vP,MARATHI_INDIA:yP,MALAY:gP,MALAY_BRUNEI_DARUSSALAM:xP,MALAY_MALAYSIA:bP,MALTESE:wP,MALTESE_MALTA:SP,MALAYALAM:AP,MALAYALAM_INDIA:EP,NORWEGIAN:NP,NORWEGIAN_BOKMAL:_P,NORWEGIAN_BOKMAL_NORWAY:jP,DUTCH:CP,DUTCH_BELGIUM:OP,DUTCH_NETHERLANDS:TP,NORWEGIAN_NYNORSK:PP,NORWEGIAN_NYNORSK_NORWAY:IP,NORTHERN_SOTHO:RP,NORTHERN_SOTHO_SOUTH_AFRICA:kP,PUNJABI:MP,PUNJABI_INDIA:DP,POLISH:$P,POLISH_POLAND:LP,PASHTO:FP,PASHTO_AFGHANISTAN:BP,PORTUGUESE:UP,PORTUGUESE_BRAZIL:HP,PORTUGUESE_PORTUGAL:zP,QUECHUA:WP,QUECHUA_BOLIVIA:GP,QUECHUA_ECUADOR:VP,QUECHUA_PERU:KP,ROMANIAN:YP,ROMANIAN_ROMANIA:qP,ROMANIAN_MOLDOVA:XP,ROMANSH:ZP,ROMANSH_SWITZERLAND:QP,RUSSIAN:JP,RUSSIAN_RUSSIA:eI,RUSSIAN_MOLDOVA:tI,SANSKRIT:nI,SANSKRIT_INDIA:rI,SAMI_NORTHERN:oI,SAMI_NORTHERN_FINLAND:iI,SAMI_NORTHERN_NORWAY:aI,SAMI_NORTHERN_SWEDEN:sI,UPPER_SORBIAN:lI,UPPER_SORBIAN_GERMANY:cI,LOWER_SORBIAN:uI,LOWER_SORBIAN_GERMANY:dI,SLOVAK:fI,SLOVAK_SLOVAKIA:pI,SLOVENIAN:hI,SLOVENIAN_SLOVENIA:mI,ALBANIAN:vI,ALBANIAN_ALBANIA:yI,SERBIAN_LATIN:gI,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:xI,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:bI,SWEDISH:wI,SWEDISH_FINLAND:SI,SWEDISH_SWEDEN:AI,SWAHILI:EI,SWAHILI_KENYA:NI,SYRIAC:_I,SYRIAC_SYRIA:jI,TAMIL:CI,TAMIL_INDIA:OI,TELUGU:TI,TELUGU_INDIA:PI,THAI:II,THAI_THAILAND:RI,TAGALOG:kI,TAGALOG_PHILIPPINES:MI,TSWANA:DI,TSWANA_SOUTH_AFRICA:$I,TURKISH:LI,TURKISH_TURKEY:FI,TATAR:BI,TATAR_RUSSIA:UI,TSOGA:HI,UKRAINIAN:zI,UKRAINIAN_UKRAINE:WI,URDU:GI,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:VI,UZBEK_LATIN:KI,UZBEK_LATIN_UZBEKISTAN:YI,VIETNAMESE:qI,VIETNAMESE_VIET_NAM:XI,VENDA:ZI,VENDA_SOUTH_AFRICA:QI,XHOSA:JI,XHOSA_SOUTH_AFRICA:eR,CHINESE:tR,CHINESE_SIMPLIFIED:nR,CHINESE_SIMPLIFIED_CHINA:rR,CHINESE_HONG_KONG:oR,CHINESE_MACAU:iR,CHINESE_SINGAPORE:aR,CHINESE_TRADITIONAL:sR,ZULU:lR,ZULU_SOUTH_AFRICA:cR,BENGALI:uR,BENGALI_BANGLADESH:dR,BENGALI_INDIA:fR,BENGALI_MYANMAR:pR,BURMESE:hR,BURMESE_MYANMAR:mR,KHMER:vR,KHMER_CAMBODIA:yR,LAO:gR,LAO_LAOS:xR,YORUBA:bR,YORUBA_NIGERIA:wR,YIDDISH:SR,YIDDISH_WORLD:AR,AMHARIC:ER,AMHARIC_ETHIOPIA:NR,NEPALI:_R,NEPALI_NEPAL:jR,SINHALA:CR,SINHALA_SRI_LANKA:OR,SERBIAN_CYRILLIC:TR,SERBIAN_CYRILLIC_SERBIA:PR,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:IR,ENGLISH_INDIA:RR,ENGLISH_SINGAPORE:kR,ENGLISH_HONG_KONG:MR,ENGLISH_NIGERIA:DR,ENGLISH_PAKISTAN:$R,ENGLISH_MALAYSIA:LR,ENGLISH_BOTSWANA:FR,ENGLISH_KENYA:BR,ENGLISH_TANZANIA:UR,ENGLISH_GHANA:HR,ENGLISH_UGANDA:zR,SPANISH_CUBA:WR,SPANISH_UNITED_STATES:GR,PORTUGUESE_GUINEA_BISSAU:VR,PORTUGUESE_MOZAMBIQUE:KR,PORTUGUESE_SAO_TOME_AND_PRINCIPE:YR,PORTUGUESE_CAPE_VERDE:qR,PORTUGUESE_TIMOR_LESTE:XR,PORTUGUESE_MACAU:ZR,CHINESE_TAIWAN:QR,ARABIC_MAURITANIA:JR,ARABIC_PALESTINE:ek,ARABIC_SUDAN:tk,ARABIC_DJIBOUTI:nk,ARABIC_SOMALIA:rk,ARABIC_CHAD:ok,ARABIC_COMOROS:ik};let le=function(e){return e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Null="null",e.Unknown="unknown",e}({});var cz=Di({DEFAULT_LOCALE:()=>fz,LOCALES:()=>uz,REQUIRED_LOCALES:()=>dz,STRICT_MODE:()=>pz});const uz=[jn.ENGLISH],dz=[],fz=jn.ENGLISH,pz="inclusive";var hz=Di({MODE:()=>mz,PREFIX:()=>vz});const mz="default",vz=`${bS.GREY_DARK}[intlayer] ${bS.RESET}`;var yz=Di({BASE_PATH:()=>wz,COOKIE_NAME:()=>xz,HEADER_NAME:()=>gz,LOCALE_STORAGE_NAME:()=>bz,ROUTING_MODE:()=>Az,SERVER_SET_COOKIE:()=>Sz,STORAGE:()=>Ez});const gz="x-intlayer-locale",xz="INTLAYER_LOCALE",bz="INTLAYER_LOCALE",wz="",Sz="always",Az="prefix-no-default",Ez=["cookie","header"];var qx=Di({Build:()=>N5,Content:()=>I5,Editor:()=>X5,Internationalization:()=>cz,Log:()=>hz,Routing:()=>yz});const wS=e=>{const{name:t,path:n,expires:r,domain:o,secure:i,sameSite:a,httpOnly:s}=e??{};return{name:t??qx.Routing.COOKIE_NAME,attributes:{path:n,expires:r,domain:o,secure:i,sameSite:a,httpOnly:s}}},Ws=e=>{const{name:t}=e??{};return{name:t??qx.Routing.LOCALE_STORAGE_NAME}},SS=e=>{const{name:t}=e??{};return{name:t??qx.Routing.HEADER_NAME}},Nz=e=>e.type==="cookie"||"sameSite"in e||"httpOnly"in e||"secure"in e,_z=e=>e==="cookie"||e==="localStorage"||e==="sessionStorage"||e==="header",AS=e=>{if(typeof e=="string"){if(!_z(e))return{cookies:[],localStorage:[],sessionStorage:[],headers:[]};if(e==="cookie")return{cookies:[wS()]};if(e==="localStorage")return{localStorage:[Ws()]};if(e==="sessionStorage")return{sessionStorage:[Ws()]};if(e==="header")return{headers:[SS()]}}if(typeof e=="object"&&e!==null){const t=e;if(Nz(t))return{cookies:[wS(t)]};if("type"in t&&t.type==="localStorage"){const{name:o,...i}=t;return{localStorage:[Ws({name:o,...i})]}}if("type"in t&&t.type==="sessionStorage"){const{name:o,...i}=t;return{sessionStorage:[Ws({name:o,...i})]}}if("type"in t&&t.type==="header"){const{name:o,...i}=t;return{headers:[SS({name:o,...i})]}}const{name:n,...r}=t;return{localStorage:[Ws({name:n,...r})]}}return{cookies:[],localStorage:[],sessionStorage:[],headers:[]}},ES=(e,t)=>({cookies:[...e.cookies,...t.cookies??[]],localStorage:[...e.localStorage,...t.localStorage??[]],sessionStorage:[...e.sessionStorage,...t.sessionStorage??[]],headers:[...e.headers,...t.headers??[]]}),ak=e=>{const t={cookies:[],localStorage:[],sessionStorage:[],headers:[]};return e===!1||e===void 0?t:Array.isArray(e)?e.reduce((n,r)=>ES(n,AS(r)),t):ES(t,AS(e))},jz=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},dd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(o,i)=>dd(o,i));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,o)=>dd(r,{...t,children:r,keyPath:[...t.keyPath,{type:le.Array,key:o}]}));const n={};for(const r in e){const o={...t,children:e[r],keyPath:[...t.keyPath,{type:le.Object,key:r}]};n[r]=dd(e[r],o)}return n},Cz=(e,t)=>{const n=Object.keys(e);for(const r of n){const o=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,i=r.startsWith(">")&&t>parseFloat(r.slice(1)),a=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),s=r.startsWith("<")&&t<parseFloat(r.slice(1)),c=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(o||i||a||s||c)return r}},Oz=(e,t)=>e[Cz(e,t)??"fallback"],Tz=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),Pz={locales:["en","ko"],requiredLocales:["en","ko"],strictMode:"inclusive",defaultLocale:"en"},Iz={mode:"prefix-no-default",storage:["cookie","header"],basePath:""},Rz={fileExtensions:[".content.ts",".content.tsx"],baseDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend",excludedPath:["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],watch:!0,contentDir:["/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/src"],moduleAugmentationDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/types",unmergedDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/unmerged_dictionary",remoteDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/remote_dictionary",dictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/dictionary",dynamicDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/dynamic_dictionary",fetchDictionariesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/fetch_dictionary",typesDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/types",mainDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/main",configDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/config",cacheDir:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/cache",watchedFilesPattern:["/**/*.content.ts","/**/*.content.tsx"],watchedFilesPatternWithPath:["/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/src/**/*.content.ts","/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/src/**/*.content.tsx"],outputFilesPatternWithPath:"/Users/dgseo/Desktop/OpenSource/truthound-dashboard/frontend/.intlayer/dictionary/**/*.json"},kz={applicationURL:"",editorURL:"http://localhost:8000",cmsURL:"https://app.intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",liveSync:!0,liveSyncPort:4e3,liveSyncURL:"http://localhost:4000"},Mz={mode:"default",prefix:"\x1B[38;5;239m[intlayer] \x1B[0m"},Dz={},$z={mode:"auto",importMode:"static",traversePattern:["**/*.{tsx,ts,js,mjs,cjs,jsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],outputFormat:["cjs","esm"],cache:!0},Lz={enabled:!0,transformPattern:["**/*.{ts,tsx,jsx,js,cjs,mjs,mjx,cjx,svelte,vue}"],excludePattern:["**/node_modules/**","**/dist/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**","**/*.stories.ts","**/*.test.ts"],outputDir:"./compiler"},Fz={fill:!0},Bz={name:"Intlayer",version:"7.5.10",doc:"https://intlayer.org/docs"},Le={internationalization:Pz,routing:Iz,content:Rz,editor:kz,log:Mz,ai:Dz,build:$z,compiler:Lz,dictionary:Fz,metadata:Bz},Uz={},Hz=()=>Uz,sk=(e="")=>new Proxy(()=>e,{get:(t,n)=>{if(n==="toJSON"||n===Symbol.toPrimitive||n==="toString")return()=>e;if(n!=="then")return sk(e?`${e}.${String(n)}`:String(n))},apply:()=>e}),lk=(e,t,n)=>{const r=Hz()[e];return r?Zz(r,t,n):(A5(Le)(`Dictionary "${e}" was not found. Using fallback proxy.`,{level:"warn",isVerbose:!0}),sk(e))},zz=(e,t,n)=>{const r=lk(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const o=t.split(".");let i=r;for(const a of o)if(i=i==null?void 0:i[a],i===void 0)return r;return i}return r},ry=e=>{if(e===null||typeof e!="object"||e instanceof Promise||typeof e.then=="function"||e.$$typeof!==void 0)return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Array.isArray(e)},ck=(e,t)=>{if(e===void 0)return t;if(t===void 0||Array.isArray(e))return e;if(ry(e)&&ry(t)){const n={...e};for(const r of Object.keys(t))r==="__proto__"||r==="constructor"||(Object.hasOwn(e,r)?n[r]=ck(e[r],t[r]):n[r]=t[r]);return n}return e},oy=(e,t=new WeakSet)=>{if(typeof e!="object"||e===null||t.has(e)||(t.add(e),!ry(e)))return e;if(Array.isArray(e))return e.map(r=>oy(r,t));const n={};for(const[r,o]of Object.entries(e))o!==void 0&&(n[r]=oy(o,t));return n},Wz=(e,t,n)=>{const r=[],o=s=>e[s],i=o(t);if(typeof i=="string")return i;if(i!==void 0&&r.push(i),t.includes("-")){const s=t.split("-")[0];if(s in e){const c=o(s);if(typeof c=="string"){if(r.length===0)return c}else c!==void 0&&r.push(c)}}if(n!==void 0&&n!==t){if(n in e){const s=o(n);if(typeof s=="string"){if(r.length===0)return s}else s!==void 0&&r.push(s)}if(n.includes("-")){const s=n.split("-")[0];if(s!==t.split("-")[0]&&s in e){const c=o(s);if(typeof c=="string"){if(r.length===0)return c}else c!==void 0&&r.push(c)}}}if(r.length===0)return;const a=r.map(s=>oy(s));return a.length===1||Array.isArray(a[0])?a[0]:a.reduce((s,c)=>ck(s,c))},Gz=(e,t,n)=>({id:"translation-plugin",canHandle:r=>typeof r=="object"&&(r==null?void 0:r.nodeType)===le.Translation,transform:(r,o,i)=>{const a=structuredClone(r[le.Translation]);for(const s in a){const c={...o,children:a[s],keyPath:[...o.keyPath,{type:le.Translation,key:s}]};a[s]=i(a[s],c)}return Wz(a,e,t)}}),Vz={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===le.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[le.Enumeration]);for(const o in r){const i=r[o];r[o]=n(i,{...t,children:i,keyPath:[...t.keyPath,{type:le.Enumeration,key:o}]})}return o=>Oz(r,o)}},Kz={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===le.Condition,transform:(e,t,n)=>{const r=structuredClone(e[le.Condition]);for(const o in r){const i=r[o];r[o]=n(i,{...t,children:i,keyPath:[...t.keyPath,{type:le.Condition,key:o}]})}return o=>jz(r,o)}},Yz={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===le.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:le.Insertion}],o=e[le.Insertion];return n(o,{...t,children:o,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:a=>typeof a=="string",transform:(a,s,c)=>{const u=c(a,{...s,children:a,plugins:[...(t.plugins??[]).filter(f=>f.id!=="intlayer-node-plugin")]});return f=>{const d=Tz(u,f);return c(d,{...s,plugins:t.plugins,children:d})}}},...t.plugins??[]]})}},qz=e=>({id:"nested-plugin",canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===le.Nested,transform:(t,n)=>zz(t.nested.dictionaryKey,t.nested.path,{...n,locale:e??n.locale})}),Xz={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===le.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},Xx=(e,t,n)=>{var i;const r=(i=Le==null?void 0:Le.internationalization)==null?void 0:i.defaultLocale,o=[Yz,Gz(n??r,r),Vz,Kz,qz(n??r),Xz,...t.plugins??[]];return dd(e,{...t,plugins:o})},Zz=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Xx(e.content,r,t)},Qz=e=>{const t=e.trim();if(!t)return null;let n=0;const r=S=>S===" "||S===`
|
|
68
|
-
`||S===" "||S==="\r",o=()=>t[n],i=()=>t[n++],a=()=>n>=t.length,s=()=>{for(;!a()&&r(o());)n++},c=S=>{i();let N="";for(;!a();){const _=i();if(_===S)return N;if(_==="\\"&&!a()){const C=i();N+=C}else N+=_}throw new SyntaxError("Unterminated string")},u=(S,N)=>!!S&&N.includes(S),f=S=>{let N="";for(;!a()&&!u(o(),S);)N+=i();return N.trim()},d=S=>S==="true"||S==="false"||S==="null"||S==="undefined"||S==="yes"||S==="no"||S==="on"||S==="off"||S==="NaN"||S==="Infinity"||S==="-Infinity"||/^0x[0-9a-fA-F]+$/.test(S)||/^#/.test(S)?S:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(S)?S==="3.14159265359"?Math.PI:Number(S):S,p=S=>{if(s(),a())throw new SyntaxError("Unexpected end of input");const N=o();if(N==="[")return v();if(N==="{")return w();if(N==='"'||N==="'")return c(N);const _=f(S);if(_==="")throw new SyntaxError("Empty token");return d(_)},v=()=>{i();const S=[];if(s(),o()==="]")return i(),S;for(;;){s(),S.push(p([",","]"])),s();const N=i();if(N==="]")break;if(N!==",")throw new SyntaxError("Expected ',' or ']' after array element");if(s(),o()==="]")throw new SyntaxError("Trailing comma in array")}return S},b=()=>{if(i(),s(),o()==="{")return w();const S=o();if(S==='"'||S==="'")return c(S);let N=!1,_=n;for(;_<t.length&&t[_]!==`
|
|
69
|
-
`;){if(t[_]===":"&&_+1<t.length&&t[_+1]===" "){N=!0;break}_++}return N?y():d(f([`
|
|
70
|
-
`]))},y=()=>{const S={},N=m();for(;!a();){const _=n,C=t[_-1];s();const P=m();if((_===0||C===`
|
|
71
|
-
`)&&P<=N){n=_;break}const O=o();if(O==="-"||a()){n=_;break}let R="";if(O==='"'||O==="'")R=c(O);else{for(;!a()&&o()!==":";)R+=i();R=R.trim()}if(a()||i()!==":")break;if(s(),o()===`
|
|
72
|
-
`&&(i(),s(),o()==="-")){S[R]=g();continue}S[R]=d(f([`
|
|
73
|
-
`])),o()===`
|
|
74
|
-
`&&i()}return S},m=()=>{let S=0,N=n;for(;N>0&&t[N-1]!==`
|
|
75
|
-
`;)N--;for(;N<t.length&&t[N]===" ";)S++,N++;return S},g=()=>{const S=[],N=m();for(;!a();){for(;!a()&&r(o())&&(i(),o()!=="-"););if(a()||m()<N||o()!=="-")break;S.push(b())}return S},x=S=>{const N={};for(s();;){if(s(),a()||u(o(),S))return N;let _="";const C=o();if(C==='"'||C==="'")_=c(C);else{for(;!a();){const O=o();if(O===":"||O===`
|
|
76
|
-
`)break;if(u(O,S))throw new SyntaxError("Expected ':' in object entry");_+=i()}_=_.trim()}if(!_)return N;if(a()||i()!==":")throw new SyntaxError("Expected ':' after key");for(!a()&&o()===" "&&i();!a()&&(o()===" "||o()===" ");)i();if(a())return N[_]="",N;if(o()===`
|
|
77
|
-
`){i();const O=n;if(s(),o()==="-"){N[_]=g(),s();continue}else{if(n=O,s(),!a()){const R=o();if(R&&!u(R,S)&&R!=="-"){N[_]="";continue}}return N[_]="",N}}if(N[_]=p(S.includes("}")?[",",`
|
|
78
|
-
`,...S]:[`
|
|
79
|
-
`,...S]),a())return N;let P=o();if(P===","){i(),s();continue}if(P===`
|
|
80
|
-
`){i(),s();continue}if(P===" "||P===" "){for(;!a()&&(o()===" "||o()===" ");)i();if(P=o(),P===`
|
|
81
|
-
`){i(),s();continue}if(a()||u(P,S))return N;continue}if(u(P,S))return N;if(a())return N}},w=()=>{if(i(),s(),o()==="}")return i(),{};const S=x(["}"]);if(o()!=="}")throw new SyntaxError("Expected '}' at end of object");return i(),S},E=S=>{let N=0,_=0,C=null;for(;N<S.length;){const P=S[N];if(C){if(P==="\\"&&N+1<S.length){N+=2;continue}if(P===C){C=null,N++;continue}N++;continue}if(P==='"'||P==="'"){C=P,N++;continue}if(P==="["||P==="{"){_++,N++;continue}if(P==="]"||P==="}"){_=Math.max(0,_-1),N++;continue}if(_===0&&P===":"){const O=S[N+1];if(O===" "||O===`
|
|
82
|
-
`||O===void 0)return!0}N++}return!1};if(t.startsWith("]")||t.startsWith("}"))throw new SyntaxError("Unexpected closing bracket");if(t.startsWith("[")){const S=v();if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return S}if(t.startsWith("{")){const S=w();if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return S}if(E(t)){const S=x([]);if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return S}const A=p([]);if(s(),!a())throw new SyntaxError("Unexpected trailing characters");return A},uk=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};let r=-1;for(let o=1;o<t.length;o++)if(t[o].trim()==="---"){r=o;break}return r===-1?{}:Qz(t.slice(1,r).join(`
|
|
83
|
-
`))??{}}catch{return{}}},NS=(e,t,n)=>{let r=e,o=null,i=[];if(t.length===0)return n;try{for(let a=0;a<t.length;a++){const s=t[a];if(o=r,(s.type===le.Object||s.type===le.Array)&&(i=[s.key],(!r[s.key]||typeof r[s.key]!="object")&&(r[s.key]={}),r=r[s.key]),(s.type===le.Translation||s.type===le.Enumeration)&&(i=[s.type,s.key],(!r[s.type]||typeof r[s.type]!="object")&&(r[s.type]={}),(!r[s.type][s.key]||typeof r[s.type][s.key]!="object")&&(r[s.type][s.key]={}),r=r[s.type][s.key]),(s.type===le.Enumeration||s.type===le.Condition)&&s.type!==le.Enumeration&&(i=[s.type,s.key],r=r[s.type][s.key]),(s.type===le.Markdown||s.type===le.Insertion)&&(i=[s.type],(!r[s.type]||typeof r[s.type]!="object")&&(r[s.type]=""),r=r[s.type]),s.type===le.File&&(i=["content"],r=r.content),a===t.length-1&&o&&i.length>0){let c=o;for(const f of i.slice(0,-1))c=c[f];const u=i[i.length-1];if(typeof n>"u")if(Array.isArray(c)){const f=Number(u);!isNaN(f)&&f>=0&&f<c.length&&c.splice(f,1)}else delete c[u];else c[u]=n}}return e}catch(a){return console.error("Cannot edit dictionary by key path",{dictionaryContent:e,keyPath:t,newValue:n},a),e}},sl=(e,t,n)=>{var o,i;let r=structuredClone(e);for(const a of t)n&&(r==null?void 0:r.nodeType)===le.Translation&&(r=(o=r==null?void 0:r[le.Translation])==null?void 0:o[n]),(a.type===le.Object||a.type===le.Array)&&(r=r==null?void 0:r[a.key]),(a.type===le.Translation||a.type===le.Condition||a.type===le.Enumeration)&&(r=(i=r==null?void 0:r[a.type])==null?void 0:i[a.key]),(a.type===le.Markdown||a.type===le.Insertion||a.type===le.File)&&(r=r==null?void 0:r[a.type]);return r},Jz=(e,t,n)=>{let r=e,o=null,i=null;for(const a of n)o=r,(a.type===le.Object||a.type===le.Array)&&(i=a.key,r=r[a.key]),(a.type===le.Translation||a.type===le.Enumeration||a.type===le.Condition)&&(i=a.type,r=r[a.type][a.key]),(a.type===le.Markdown||a.type===le.ReactNode||a.type===le.Insertion||a.type===le.File)&&(i=a.type,r=r[a.type]);if(o&&i!==null)if(Array.isArray(o))o[i]=r;else{const a={};for(const s of Object.keys(o))s===i&&typeof t<"u"?a[t]=r:a[s]=o[s];Object.keys(o).forEach(s=>{delete o[s]}),Object.assign(o,a)}return e},e8=(e,t=(r=>(r=Le==null?void 0:Le.internationalization)==null?void 0:r.locales)(),n=(o=>(o=Le==null?void 0:Le.internationalization)==null?void 0:o.defaultLocale)())=>{const i=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of i){const c=a(s),u=t.find(p=>a(p)===c);if(u)return u;const[f]=c.split("-"),d=t.find(p=>a(p).split("-")[0]===f);if(d)return d}}catch{}return n},t8=(e,t)=>{try{const n=t??(typeof document<"u"?document.cookie:"");if(!n)return;const r=n.split(";");for(let o=0;o<r.length;o++){const i=r[o].trim();if(!i)continue;const a=i.indexOf("=");if((a>=0?i.substring(0,a):i)===e){const s=a>=0?i.substring(a+1):"";try{return decodeURIComponent(s)}catch{return s}}}}catch{}},n8=(e,t,n)=>{const r=[`${e}=${encodeURIComponent(t)}`];return n.path&&r.push(`Path=${n.path}`),n.domain&&r.push(`Domain=${n.domain}`),n.expires instanceof Date&&r.push(`Expires=${n.expires.toUTCString()}`),n.secure&&r.push("Secure"),n.sameSite&&r.push(`SameSite=${n.sameSite}`),r.join("; ")},r8=e=>{var c,u,f;const{routing:t,internationalization:n}=Le,{locales:r}=n,{storage:o}=t;if(o===!1||(e==null?void 0:e.isCookieEnabled)===!1)return;const i=ak(o),a=d=>d?r.includes(d):!1,s=d=>{var p;try{const v=(p=e==null?void 0:e.getCookie)==null?void 0:p.call(e,d);if(v!=null)return v}catch{}return t8(d)};for(let d=0;d<i.cookies.length;d++){const{name:p}=i.cookies[d],v=s(p);if(a(v))return v}for(let d=0;d<i.localStorage.length;d++){const{name:p}=i.localStorage[d];try{const v=(c=e==null?void 0:e.getLocaleStorage)==null?void 0:c.call(e,p);if(a(v))return v}catch{}}for(let d=0;d<i.sessionStorage.length;d++){const{name:p}=i.sessionStorage[d];try{const v=(u=e==null?void 0:e.getSessionStorage)==null?void 0:u.call(e,p);if(a(v))return v}catch{}}for(let d=0;d<i.headers.length;d++){const{name:p}=i.headers[d];try{const v=(f=e==null?void 0:e.getHeader)==null?void 0:f.call(e,p);if(a(v))return v}catch{}}},o8=(e,t)=>{var r,o,i,a,s,c,u;if(Le.routing.storage===!1||(t==null?void 0:t.isCookieEnabled)===!1)return;const n=ak(Le.routing.storage);for(let f=0;f<n.cookies.length;f++){const{name:d,attributes:p}=n.cookies[f];try{t!=null&&t.setCookieStore&&((r=t==null?void 0:t.setCookieStore)==null||r.call(t,d,e,{...p,expires:p.expires instanceof Date?p.expires.getTime():p.expires}))}catch{try{if(t!=null&&t.setCookieString){const v=n8(d,e,p);(o=t==null?void 0:t.setCookieString)==null||o.call(t,d,v)}}catch{}}}if(t!=null&&t.setLocaleStorage)for(let f=0;f<n.localStorage.length;f++){const{name:d}=n.localStorage[f];try{if(!((t==null?void 0:t.overwrite)??!0)&&(t!=null&&t.getLocaleStorage)&&(i=t==null?void 0:t.getLocaleStorage)!=null&&i.call(t,d))continue;(a=t==null?void 0:t.setLocaleStorage)==null||a.call(t,d,e)}catch{}}if(t!=null&&t.setSessionStorage)for(let f=0;f<n.sessionStorage.length;f++){const{name:d}=n.sessionStorage[f];try{if(!((t==null?void 0:t.overwrite)??!0)&&(t!=null&&t.getSessionStorage)&&(s=t==null?void 0:t.getSessionStorage)!=null&&s.call(t,d))continue;(c=t==null?void 0:t.setSessionStorage)==null||c.call(t,d,e)}catch{}}if(t!=null&&t.setHeader)for(let f=0;f<n.headers.length;f++){const{name:d}=n.headers[f];try{(u=t==null?void 0:t.setHeader)==null||u.call(t,d,e)}catch{}}},dk={getCookie:e=>{var t;return(t=document.cookie.split(";").find(n=>n.trim().startsWith(`${e}=`)))==null?void 0:t.split("=")[1]},getLocaleStorage:e=>localStorage.getItem(e),getSessionStorage:e=>sessionStorage.getItem(e),isCookieEnabled:!0,setCookieStore:(e,t,n)=>cookieStore.set({name:e,value:t,path:n.path,domain:n.domain,expires:n.expires,sameSite:n.sameSite}),setCookieString:e=>{document.cookie=e},setSessionStorage:(e,t)=>sessionStorage.setItem(e,t),setLocaleStorage:(e,t)=>localStorage.setItem(e,t)},i8=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),fk=r8(dk),pk=(e,t)=>o8(e,{...dk,isCookieEnabled:t}),a8=()=>Math.random().toString(36).slice(2),{editor:Nr}=Le??{},hk=h.createContext({postMessage:()=>null,allowedOrigins:[Nr==null?void 0:Nr.applicationURL,Nr==null?void 0:Nr.editorURL,Nr==null?void 0:Nr.cmsURL],senderId:""}),_S=({children:e,allowedOrigins:t,postMessage:n})=>{const r=h.useRef(a8()),o=h.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return l.jsx(hk.Provider,{value:o,children:e})},Zx=()=>h.useContext(hk),s8=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const o=n.pathname.replace(/\/$/,""),i=r.pathname.replace(/\/$/,"");return!(o!==""&&i!==""&&o!==i)}catch(n){return console.error("Invalid URL(s)",n,{url1:e,url2:t}),!1}};let kn=function(e){return e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_HOVERED_CONTENT_CHANGED="INTLAYER_HOVERED_CONTENT_CHANGED",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e}({});const ql=(e,t,n)=>{const{allowedOrigins:r,postMessage:o,senderId:i}=Zx();return h.useEffect(()=>{if(t){const s=c=>{const{type:u,data:f,senderId:d}=c.data;u===e&&d!==i&&(typeof r>"u"||r!=null&&r.filter(p=>![null,void 0,"","*"].includes(p)).some(p=>s8(p,c.origin))||r!=null&&r.includes("*"))&&t(f)};return window.addEventListener("message",s),()=>window.removeEventListener("message",s)}},[r,o,i,n]),s=>{o({type:e,data:s,senderId:i})}},l8=(e,t)=>typeof e=="function"?e(t):e,$i=(e,t,n)=>{const{postMessage:r,senderId:o}=Zx(),{emit:i,receive:a}=n??{emit:!0,receive:!0},s=(v,b)=>{const y=l8(v,b);return i&&typeof r=="function"&&typeof y<"u"&&r({type:`${e}/post`,data:y,senderId:o}),y},c=()=>{typeof r=="function"&&r({type:`${e}/post`,data:u,senderId:o})},[u,f]=h.useState(()=>s(t)),d=v=>f(b=>s(v,b));ql(`${e}/post`,a?v=>{f(v)}:void 0);const p=(v,b)=>{i&&typeof r=="function"&&b!==o&&(typeof u>"u"||r({type:`${e}/post`,data:u,senderId:o}))};return ql(`${e}/get`,i?p:void 0,u),h.useEffect(()=>{a&&typeof r=="function"&&typeof u>"u"&&r({type:`${e}/get`,senderId:o})},[]),[u,d,c]},c8=h.createContext(void 0),u8=({children:e,configuration:t})=>l.jsx(c8.Provider,{value:t,children:e}),mk=h.createContext(void 0),vk=h.createContext(void 0),d8=({children:e})=>{const[t,n]=$i(kn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=h.useMemo(()=>({localeDictionaries:t??{}}),[t]),o=h.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:i=>{i.localId&&n(a=>({...a,[i.localId]:i}))}}),[n]);return l.jsx(mk.Provider,{value:r,children:l.jsx(vk.Provider,{value:o,children:e})})},yk=()=>h.useContext(vk),f8=()=>{const e=yk(),t=h.useContext(mk);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},gk=()=>{const[e]=$i(kn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1});return e},p8=h.createContext(void 0),h8=e=>ql(`${kn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),xk=h.createContext(void 0),jS=(e,t)=>typeof e=="function"?e(t):e,m8=({children:e})=>{const{localeDictionaries:t}=f8(),n=gk(),[r,o]=$i(kn.INTLAYER_EDITED_CONTENT_CHANGED),i=b=>{let y=jS(b);return o(m=>y.localId?(y=jS(b,m==null?void 0:m[y.localId]),{...m,[y.localId]:y}):(console.error("no localId",y),m)),y},a=(b,y)=>{o(m=>({...m,[b]:{...m==null?void 0:m[b],content:y}}))},s=(b,y,m=[],g=!0)=>{o(x=>{var N,_;const w=(N=t[b])==null?void 0:N.content,E=structuredClone(((_=x==null?void 0:x[b])==null?void 0:_.content)??w);let A=m;if(!g){let C=0;const P=m.slice(0,-1),O=m[m.length-1];let R=O.key;for(;typeof sl(E,A)<"u";)C++,R=C===0?O.key:`${O.key} (${C})`,A=[...P,{...O,key:R}]}const S=NS(E,A,y);return{...x,[b]:{...x==null?void 0:x[b],content:S}}})},c=(b,y,m=[])=>{o(g=>{var E,A;const x=(E=t[b])==null?void 0:E.content,w=Jz(structuredClone(((A=g==null?void 0:g[b])==null?void 0:A.content)??x),y,m);return{...g,[b]:{...g==null?void 0:g[b],content:w}}})},u=(b,y)=>{o(m=>{var w,E;const g=(w=t[b])==null?void 0:w.content,x=NS(structuredClone(((E=m==null?void 0:m[b])==null?void 0:E.content)??g),y,sl(g,y));return{...m,[b]:{...m==null?void 0:m[b],content:x}}})},f=b=>{o(y=>{const m={...y};return delete m[b],m})},d=b=>{o(y=>Object.entries(y).reduce((m,[g,x])=>g===b?m:{...m,[g]:x},{}))},p=()=>{o({})},v=(b,y)=>{var x,w;if(!r)return;const m=y.filter(E=>E.type!==le.Translation);if(b.includes(":local:")||b.includes(":remote:"))return sl(((x=r==null?void 0:r[b])==null?void 0:x.content)??{},m,n);const g=Object.keys(r).filter(E=>E.startsWith(`${b}:`));for(const E of g){const A=sl(((w=r==null?void 0:r[E])==null?void 0:w.content)??{},m,n);if(A)return A}};return l.jsx(p8.Provider,{value:{editedContent:r},children:l.jsx(xk.Provider,{value:{setEditedContentState:o,setEditedDictionary:i,setEditedContent:a,addEditedContent:s,renameEditedContent:c,removeEditedContent:u,restoreEditedContent:f,clearEditedDictionaryContent:d,clearEditedContent:p,getEditedContentValue:v},children:e})})},v8=()=>h.useContext(xk),bk=h.createContext({enabled:!1}),y8=e=>$i(kn.INTLAYER_EDITOR_ENABLED,!1,e),g8=e=>ql(`${kn.INTLAYER_EDITOR_ENABLED}/get`,e),x8=({children:e})=>{const[t]=y8({emit:!1,receive:!0});return l.jsx(bk.Provider,{value:{enabled:t},children:e})},Qx=()=>h.useContext(bk),wk=h.createContext(void 0),Sk=h.createContext(void 0),b8=({children:e})=>{const[t,n]=$i(kn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=o=>{n(i=>{if(!i)return i;const a=o.filter(s=>s.type!==le.Translation);return{...i,keyPath:a}})};return l.jsx(wk.Provider,{value:{focusedContent:t},children:l.jsx(Sk.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},w8=()=>{const e=h.useContext(Sk);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},S8=()=>{const e=w8(),t=h.useContext(wk);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},CS=({children:e})=>{const t=h8();return h.useEffect(()=>{t()},[]),l.jsx(d8,{children:l.jsx(m8,{children:l.jsx(b8,{children:e})})})},A8=({children:e,fallback:t})=>{const n=g8(),{enabled:r}=Qx();return h.useEffect(()=>{r||n()},[r]),r?e:t},E8=({children:e,fallback:t})=>{const[n,r]=h.useState(!1);return h.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},N8=({children:e,configuration:t,...n})=>l.jsx(x8,{children:l.jsx(u8,{configuration:t,children:n.mode==="editor"?l.jsx(_S,{...n,children:l.jsx(CS,{children:e})}):l.jsx(E8,{fallback:e,children:l.jsx(_S,{...n,children:l.jsx(A8,{fallback:e,children:l.jsx(CS,{children:e})})})})})}),_8=(e,t)=>$i(kn.INTLAYER_URL_CHANGE,e,t),j8=e=>{const t=_8(e,{emit:!0,receive:!1}),[n,r]=t;return h.useEffect(()=>{const o=history.pushState,i=history.replaceState,a=c=>function(...u){c.apply(this,u),window.dispatchEvent(new Event("locationchange"))};history.pushState=a(o),history.replaceState=a(i);const s=()=>{r(window.location.pathname)};return window.addEventListener("locationchange",s),window.addEventListener("popstate",s),window.addEventListener("hashchange",s),window.addEventListener("load",s),s(),()=>{window.removeEventListener("locationchange",s),window.removeEventListener("popstate",s),window.removeEventListener("hashchange",s),window.removeEventListener("load",s),history.pushState=o,history.replaceState=i}},[]),t},C8=()=>{const e=ql(kn.INTLAYER_IFRAME_CLICKED),t=()=>{e()};h.useEffect(()=>(window.addEventListener("mousedown",t),()=>window.removeEventListener("mousedown",t)),[e])},O8=()=>{j8(),C8();const{setLocaleDictionaries:e}=yk();return h.useEffect(()=>{U4(()=>import("./unmerged_dictionaries-n_T3wZTf.js"),[]).then(t=>{const n=t.getUnmergedDictionaries(),r=Object.fromEntries(Object.values(n).flat().map(o=>[o.localId,o]));e==null||e(r)})},[]),l.jsx(l.Fragment,{})},{editor:kt}=Le??{},T8=()=>{const{enabled:e}=Qx();return e?l.jsx(O8,{}):l.jsx(l.Fragment,{})},P8=({children:e})=>l.jsxs(N8,{postMessage:t=>{var n,r;typeof window>"u"||kt&&window.self!==window.top&&(kt.applicationURL.length>0&&(window==null||window.postMessage(t,kt.applicationURL)),kt.editorURL.length>0&&((n=window.parent)==null||n.postMessage(t,kt.editorURL)),kt.cmsURL.length>0&&((r=window.parent)==null||r.postMessage(t,kt.cmsURL)))},allowedOrigins:[kt==null?void 0:kt.editorURL,kt==null?void 0:kt.cmsURL,kt==null?void 0:kt.applicationURL].filter(Boolean),mode:"client",configuration:Le,children:[l.jsx(T8,{}),e]});var o_;const wp=h.createContext({locale:fk??((o_=Le==null?void 0:Le.internationalization)==null?void 0:o_.defaultLocale),setLocale:()=>null,isCookieEnabled:!0,disableEditor:!1}),I8=()=>h.useContext(wp),R8=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:o,isCookieEnabled:i})=>{const{internationalization:a}=Le??{},{defaultLocale:s,locales:c}=a??{},u=e??fk??t??s,[f,d]=$i(kn.INTLAYER_CURRENT_LOCALE,u),v=r??(y=>{if(f.toString()!==y.toString()){if(!(c!=null&&c.map(String).includes(y))){console.error(`Locale ${y} is not available`);return}d(y),pk(y,i)}}),b=e8(e??f);return l.jsx(wp.Provider,{value:{locale:b,setLocale:v,disableEditor:o},children:n})},k8=e=>l.jsx(P8,{children:l.jsx(R8,{...e})}),zd=({children:e,value:t,additionalProps:n})=>{const r=h.isValidElement(e)?e:l.jsx(l.Fragment,{children:e});return new Proxy(r,{get(o,i,a){return i==="value"?t:n&&Object.keys(n).includes(i)?n[i]:Reflect.get(o,i,a)}})},M8=250,D8=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:o,pressDuration:i=M8,isSelecting:a,...s})=>{const c=h.useRef(null),[u,f]=h.useState(!1),[d,p]=h.useState(a),v=h.useRef(null),b=typeof e=="string",y=()=>{p(!0),t()},m=()=>{v.current=setTimeout(()=>{y()},i)},g=()=>{v.current&&(clearTimeout(v.current),v.current=null)},x=()=>{g(),m()},w=()=>{f(!0),n==null||n()},E=()=>{r==null||r(),f(!1),g()},A=h.useCallback(_=>{c.current&&!c.current.contains(_.target)&&(p(!1),o==null||o())},[o]);h.useEffect(()=>(document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)}),[A]);const S=_=>{d&&(_.preventDefault(),_.stopPropagation())},N=()=>{p(!1)};return l.jsx("span",{style:{display:b?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:a||d||u?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:S,onMouseDown:x,onMouseUp:E,onMouseLeave:E,onTouchStart:x,onTouchEnd:E,onTouchCancel:E,onBlur:N,onMouseEnter:w,ref:c,...s,children:e})},$8=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:o}=S8(),{postMessage:i,senderId:a}=Zx(),s=h.useMemo(()=>n.filter(c=>c.type!==le.Translation),[n]);return l.jsx(D8,{onPress:h.useCallback(()=>o({dictionaryKey:t,keyPath:s}),[t,s]),onHover:h.useCallback(()=>i({type:`${kn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:s},senderId:a}),[t,s]),onUnhover:h.useCallback(()=>i({type:`${kn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:a}),[a]),isSelecting:h.useMemo(()=>{var c;return((r==null?void 0:r.dictionaryKey)===t&&(((c=r==null?void 0:r.keyPath)==null?void 0:c.length)??0)>0&&i8((r==null?void 0:r.keyPath)??[],s))??!1},[r,s,t]),children:e})},Na=({children:e,...t})=>{const{enabled:n}=Qx(),{disableEditor:r}=I8();return n&&!r?l.jsx($8,{...t,children:e}):e},Jx=({dictionaryKey:e,keyPath:t,children:n})=>{const r=v8();return r?r.getEditedContentValue(e,t)??n:n},L8=e=>{const t=Jx(e);if(typeof t=="object"){const n=Xx(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),h.createElement(Na,{...e,key:e.children},e.children)):h.createElement(Na,{...e,key:e.children},n)}return h.createElement(Na,{...e,key:e.children},t)},F8=h.createContext({renderMarkdown:e=>e}),B8=()=>h.useContext(F8),U8=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:o}=B8(),i=Jx({dictionaryKey:e,keyPath:t,children:n});if(typeof i!="string"){const a=Xx(i,{dictionaryKey:e,keyPath:t},r);return typeof a!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof a}. Expected string. Value ${JSON.stringify(a)}`),o(n)):o(a)}return o(i)},H8=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const o=Jx({dictionaryKey:e,keyPath:t,children:n}),i=gk();return sl(uk(o),r,i)},Ak=e=>{if(typeof e=="string")return e;const t=o=>{var i;if(o!=null&&o.props&&typeof o.props.children=="object"){const a=[],{children:s}=o.props;return Object.keys(s??{}).forEach(c=>{var f,d;const u=Ak(s==null?void 0:s[c]);typeof u=="object"&&u!==null&&"type"in u?a.push(h.createElement(u.type,{...u.props,key:c},...Array.isArray((f=u.props)==null?void 0:f.children)?u.props.children:[(d=u.props)==null?void 0:d.children])):a.push(u)}),{...o,props:{...o.props,children:a}}}return{...o,props:{...o.props,children:((i=o.props)==null?void 0:i.children)??[]}}},{type:n,props:r}=t(e);return h.createElement(n??"span",r,...r.children)},z8={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>zd({...n,value:n.children,children:l.jsx(L8,{...n,children:n.children})})},W8={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof(e==null?void 0:e.props)<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>zd({...n,value:"[[react-element]]",children:l.jsx(Na,{...n,children:Ak(e)})})},G8={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...o}=t,i=n(uk(e),{plugins:[{id:"markdown-metadata-plugin",canHandle:a=>typeof a=="string"||typeof a=="number"||typeof a=="boolean"||!a,transform:(a,s)=>zd({...s,value:a,children:l.jsx(Na,{...o,children:l.jsx(H8,{...o,metadataKeyPath:s.keyPath,children:e})})})}],dictionaryKey:o.dictionaryKey,keyPath:[]});return zd({...t,value:e,children:l.jsx(Na,{...o,children:l.jsx(U8,{...o,children:e})}),additionalProps:{metadata:i}})}},V8={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===le.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:le.Markdown}],o=e[le.Markdown];return n(o,{...t,children:o,keyPath:r,plugins:[G8,...t.plugins??[]]})}},K8=(e,t,n)=>lk(e,t,[z8,W8,V8]),me=(e,t)=>{const{locale:n}=h.useContext(wp);return h.useMemo(()=>K8(e,n),[e,n,t])},Y8=({isCookieEnabled:e,onLocaleChange:t}={})=>{const{defaultLocale:n,locales:r}=(Le==null?void 0:Le.internationalization)??{},{locale:o,setLocale:i,isCookieEnabled:a}=h.useContext(wp);return{locale:o,defaultLocale:n,availableLocales:r,setLocale:h.useCallback(s=>{if(!(r!=null&&r.map(String).includes(s))){console.error(`Locale ${s} is not available`);return}i(s),pk(s,e??a??!0),t==null||t(s)},[r,t,i])}};jn.ALL_LOCALES;Le.internationalization.locales;Le.internationalization.requiredLocales;Le.internationalization.defaultLocale;const q8=[jn.ENGLISH,jn.KOREAN,jn.FRENCH],iy=jn.ENGLISH,X8="truthound-locale",OS=[{code:jn.ENGLISH,name:"English",nativeName:"English",flag:"🇺🇸"},{code:jn.KOREAN,name:"Korean",nativeName:"한국어",flag:"🇰🇷"},{code:jn.FRENCH,name:"French",nativeName:"Français",flag:"🇫🇷"}];function Ek(e){return q8.includes(e)}function Z8(){if(typeof navigator>"u")return iy;const e=navigator.languages||[navigator.language];for(const t of e){const n=t.split("-")[0].toLowerCase();if(n==="ko")return jn.KOREAN;if(n==="en")return jn.ENGLISH}return iy}function Q8(e,t){if(typeof window<"u"){const n=localStorage.getItem(e);if(n&&Ek(n))return n}return t?Z8():iy}function J8({children:e,forcedLocale:t,storageKey:n=X8,detectBrowserLocale:r=!0}){const[o,i]=h.useState(()=>t??Q8(n,r)),a=h.useCallback(s=>{Ek(s)&&(i(s),typeof window<"u"&&localStorage.setItem(n,s))},[n]);return h.useEffect(()=>{t&&t!==o&&a(t)},[t,o,a]),h.useEffect(()=>{typeof document<"u"&&(document.documentElement.lang=o)},[o]),l.jsx(k8,{locale:o,setLocale:a,children:e})}/**
|
|
84
|
-
* @license lucide-react v0.312.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/var e6={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"};/**
|
|
89
|
-
* @license lucide-react v0.312.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const t6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ie=(e,t)=>{const n=h.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:c,...u},f)=>h.createElement("svg",{ref:f,...e6,width:o,height:o,stroke:r,strokeWidth:a?Number(i)*24/Number(o):i,className:["lucide",`lucide-${t6(e)}`,s].join(" "),...u},[...t.map(([d,p])=>h.createElement(d,p)),...Array.isArray(c)?c:[c]]));return n.displayName=`${e}`,n};/**
|
|
94
|
-
* @license lucide-react v0.312.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const Nk=ie("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
99
|
-
* @license lucide-react v0.312.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const _k=ie("AlertCircle",[["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"}]]);/**
|
|
104
|
-
* @license lucide-react v0.312.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const Mo=ie("AlertTriangle",[["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-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
109
|
-
* @license lucide-react v0.312.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const Li=ie("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
114
|
-
* @license lucide-react v0.312.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const ay=ie("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
119
|
-
* @license lucide-react v0.312.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const Cu=ie("ArrowUpDown",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]);/**
|
|
124
|
-
* @license lucide-react v0.312.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const sy=ie("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
129
|
-
* @license lucide-react v0.312.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const jk=ie("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"}]]);/**
|
|
134
|
-
* @license lucide-react v0.312.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const Ba=ie("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
|
|
139
|
-
* @license lucide-react v0.312.0 - ISC
|
|
140
|
-
*
|
|
141
|
-
* This source code is licensed under the ISC license.
|
|
142
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const n6=ie("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
|
|
144
|
-
* @license lucide-react v0.312.0 - ISC
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the ISC license.
|
|
147
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const Xl=ie("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
149
|
-
* @license lucide-react v0.312.0 - ISC
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the ISC license.
|
|
152
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const Wd=ie("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
154
|
-
* @license lucide-react v0.312.0 - ISC
|
|
155
|
-
*
|
|
156
|
-
* This source code is licensed under the ISC license.
|
|
157
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const Sp=ie("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
159
|
-
* @license lucide-react v0.312.0 - ISC
|
|
160
|
-
*
|
|
161
|
-
* This source code is licensed under the ISC license.
|
|
162
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const Ck=ie("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
164
|
-
* @license lucide-react v0.312.0 - ISC
|
|
165
|
-
*
|
|
166
|
-
* This source code is licensed under the ISC license.
|
|
167
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const r6=ie("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
169
|
-
* @license lucide-react v0.312.0 - ISC
|
|
170
|
-
*
|
|
171
|
-
* This source code is licensed under the ISC license.
|
|
172
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const o6=ie("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
174
|
-
* @license lucide-react v0.312.0 - ISC
|
|
175
|
-
*
|
|
176
|
-
* This source code is licensed under the ISC license.
|
|
177
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const i6=ie("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
179
|
-
* @license lucide-react v0.312.0 - ISC
|
|
180
|
-
*
|
|
181
|
-
* This source code is licensed under the ISC license.
|
|
182
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const Ap=ie("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
184
|
-
* @license lucide-react v0.312.0 - ISC
|
|
185
|
-
*
|
|
186
|
-
* This source code is licensed under the ISC license.
|
|
187
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const Ok=ie("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
|
|
189
|
-
* @license lucide-react v0.312.0 - ISC
|
|
190
|
-
*
|
|
191
|
-
* This source code is licensed under the ISC license.
|
|
192
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const a6=ie("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
194
|
-
* @license lucide-react v0.312.0 - ISC
|
|
195
|
-
*
|
|
196
|
-
* This source code is licensed under the ISC license.
|
|
197
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const Cn=ie("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"}]]);/**
|
|
199
|
-
* @license lucide-react v0.312.0 - ISC
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the ISC license.
|
|
202
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const Gd=ie("FileCode",[["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 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]);/**
|
|
204
|
-
* @license lucide-react v0.312.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const e0=ie("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"}]]);/**
|
|
209
|
-
* @license lucide-react v0.312.0 - ISC
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the ISC license.
|
|
212
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const t0=ie("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
214
|
-
* @license lucide-react v0.312.0 - ISC
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the ISC license.
|
|
217
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const s6=ie("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
219
|
-
* @license lucide-react v0.312.0 - ISC
|
|
220
|
-
*
|
|
221
|
-
* This source code is licensed under the ISC license.
|
|
222
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const Tk=ie("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
|
|
224
|
-
* @license lucide-react v0.312.0 - ISC
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the ISC license.
|
|
227
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const n0=ie("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"}]]);/**
|
|
229
|
-
* @license lucide-react v0.312.0 - ISC
|
|
230
|
-
*
|
|
231
|
-
* This source code is licensed under the ISC license.
|
|
232
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const l6=ie("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
234
|
-
* @license lucide-react v0.312.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const ly=ie("History",[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
239
|
-
* @license lucide-react v0.312.0 - ISC
|
|
240
|
-
*
|
|
241
|
-
* This source code is licensed under the ISC license.
|
|
242
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const c6=ie("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"}]]);/**
|
|
244
|
-
* @license lucide-react v0.312.0 - ISC
|
|
245
|
-
*
|
|
246
|
-
* This source code is licensed under the ISC license.
|
|
247
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const bl=ie("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
249
|
-
* @license lucide-react v0.312.0 - ISC
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the ISC license.
|
|
252
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const hm=ie("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
254
|
-
* @license lucide-react v0.312.0 - ISC
|
|
255
|
-
*
|
|
256
|
-
* This source code is licensed under the ISC license.
|
|
257
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/const u6=ie("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"}]]);/**
|
|
259
|
-
* @license lucide-react v0.312.0 - ISC
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the ISC license.
|
|
262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/const d6=ie("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
264
|
-
* @license lucide-react v0.312.0 - ISC
|
|
265
|
-
*
|
|
266
|
-
* This source code is licensed under the ISC license.
|
|
267
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/const zc=ie("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
269
|
-
* @license lucide-react v0.312.0 - ISC
|
|
270
|
-
*
|
|
271
|
-
* This source code is licensed under the ISC license.
|
|
272
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
-
*/const f6=ie("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
274
|
-
* @license lucide-react v0.312.0 - ISC
|
|
275
|
-
*
|
|
276
|
-
* This source code is licensed under the ISC license.
|
|
277
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
278
|
-
*/const p6=ie("MoreVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/**
|
|
279
|
-
* @license lucide-react v0.312.0 - ISC
|
|
280
|
-
*
|
|
281
|
-
* This source code is licensed under the ISC license.
|
|
282
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
-
*/const h6=ie("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
|
|
284
|
-
* @license lucide-react v0.312.0 - ISC
|
|
285
|
-
*
|
|
286
|
-
* This source code is licensed under the ISC license.
|
|
287
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
288
|
-
*/const TS=ie("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]]);/**
|
|
289
|
-
* @license lucide-react v0.312.0 - ISC
|
|
290
|
-
*
|
|
291
|
-
* This source code is licensed under the ISC license.
|
|
292
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
293
|
-
*/const m6=ie("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
|
|
294
|
-
* @license lucide-react v0.312.0 - ISC
|
|
295
|
-
*
|
|
296
|
-
* This source code is licensed under the ISC license.
|
|
297
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
298
|
-
*/const v6=ie("PlayCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);/**
|
|
299
|
-
* @license lucide-react v0.312.0 - ISC
|
|
300
|
-
*
|
|
301
|
-
* This source code is licensed under the ISC license.
|
|
302
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
303
|
-
*/const r0=ie("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
|
|
304
|
-
* @license lucide-react v0.312.0 - ISC
|
|
305
|
-
*
|
|
306
|
-
* This source code is licensed under the ISC license.
|
|
307
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
308
|
-
*/const Jt=ie("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
309
|
-
* @license lucide-react v0.312.0 - ISC
|
|
310
|
-
*
|
|
311
|
-
* This source code is licensed under the ISC license.
|
|
312
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
313
|
-
*/const fd=ie("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"}]]);/**
|
|
314
|
-
* @license lucide-react v0.312.0 - ISC
|
|
315
|
-
*
|
|
316
|
-
* This source code is licensed under the ISC license.
|
|
317
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
318
|
-
*/const y6=ie("Reply",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/**
|
|
319
|
-
* @license lucide-react v0.312.0 - ISC
|
|
320
|
-
*
|
|
321
|
-
* This source code is licensed under the ISC license.
|
|
322
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
323
|
-
*/const g6=ie("Rows3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]]);/**
|
|
324
|
-
* @license lucide-react v0.312.0 - ISC
|
|
325
|
-
*
|
|
326
|
-
* This source code is licensed under the ISC license.
|
|
327
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
328
|
-
*/const x6=ie("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
|
|
329
|
-
* @license lucide-react v0.312.0 - ISC
|
|
330
|
-
*
|
|
331
|
-
* This source code is licensed under the ISC license.
|
|
332
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
333
|
-
*/const o0=ie("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
334
|
-
* @license lucide-react v0.312.0 - ISC
|
|
335
|
-
*
|
|
336
|
-
* This source code is licensed under the ISC license.
|
|
337
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
338
|
-
*/const Pk=ie("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
|
|
339
|
-
* @license lucide-react v0.312.0 - ISC
|
|
340
|
-
*
|
|
341
|
-
* This source code is licensed under the ISC license.
|
|
342
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
343
|
-
*/const b6=ie("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/**
|
|
344
|
-
* @license lucide-react v0.312.0 - ISC
|
|
345
|
-
*
|
|
346
|
-
* This source code is licensed under the ISC license.
|
|
347
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
-
*/const w6=ie("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
|
|
349
|
-
* @license lucide-react v0.312.0 - ISC
|
|
350
|
-
*
|
|
351
|
-
* This source code is licensed under the ISC license.
|
|
352
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
353
|
-
*/const Ua=ie("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]);/**
|
|
354
|
-
* @license lucide-react v0.312.0 - ISC
|
|
355
|
-
*
|
|
356
|
-
* This source code is licensed under the ISC license.
|
|
357
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
358
|
-
*/const S6=ie("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
359
|
-
* @license lucide-react v0.312.0 - ISC
|
|
360
|
-
*
|
|
361
|
-
* This source code is licensed under the ISC license.
|
|
362
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
363
|
-
*/const cy=ie("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
|
|
364
|
-
* @license lucide-react v0.312.0 - ISC
|
|
365
|
-
*
|
|
366
|
-
* This source code is licensed under the ISC license.
|
|
367
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
368
|
-
*/const A6=ie("Tag",[["path",{d:"M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z",key:"14b2ls"}],["path",{d:"M7 7h.01",key:"7u93v4"}]]);/**
|
|
369
|
-
* @license lucide-react v0.312.0 - ISC
|
|
370
|
-
*
|
|
371
|
-
* This source code is licensed under the ISC license.
|
|
372
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
373
|
-
*/const Gr=ie("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"}]]);/**
|
|
374
|
-
* @license lucide-react v0.312.0 - ISC
|
|
375
|
-
*
|
|
376
|
-
* This source code is licensed under the ISC license.
|
|
377
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
378
|
-
*/const E6=ie("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
|
|
379
|
-
* @license lucide-react v0.312.0 - ISC
|
|
380
|
-
*
|
|
381
|
-
* This source code is licensed under the ISC license.
|
|
382
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
383
|
-
*/const N6=ie("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"}]]);/**
|
|
384
|
-
* @license lucide-react v0.312.0 - ISC
|
|
385
|
-
*
|
|
386
|
-
* This source code is licensed under the ISC license.
|
|
387
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
388
|
-
*/const _6=ie("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
389
|
-
* @license lucide-react v0.312.0 - ISC
|
|
390
|
-
*
|
|
391
|
-
* This source code is licensed under the ISC license.
|
|
392
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
393
|
-
*/const j6=ie("Webhook",[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]]);/**
|
|
394
|
-
* @license lucide-react v0.312.0 - ISC
|
|
395
|
-
*
|
|
396
|
-
* This source code is licensed under the ISC license.
|
|
397
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
398
|
-
*/const To=ie("XCircle",[["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"}]]);/**
|
|
399
|
-
* @license lucide-react v0.312.0 - ISC
|
|
400
|
-
*
|
|
401
|
-
* This source code is licensed under the ISC license.
|
|
402
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
403
|
-
*/const i0=ie("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ik(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=Ik(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ne(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ik(e))&&(r&&(r+=" "),r+=t);return r}const a0="-",C6=e=>{const t=T6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(a0);return s[0]===""&&s.length!==1&&s.shift(),Rk(s,t)||O6(a)},getConflictingClassGroupIds:(a,s)=>{const c=n[a]||[];return s&&r[a]?[...c,...r[a]]:c}}},Rk=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Rk(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(a0);return(a=t.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},PS=/^\[(.+)\]$/,O6=e=>{if(PS.test(e)){const t=PS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},T6=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return I6(Object.entries(e.classGroups),n).forEach(([i,a])=>{uy(a,r,i,t)}),r},uy=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:IS(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(P6(o)){uy(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,a])=>{uy(a,IS(t,i),n,r)})})},IS=(e,t)=>{let n=e;return t.split(a0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},P6=e=>e.isThemeGetter,I6=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[t+a,s])):i);return[n,o]}):e,R6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return o(i,a),a},set(i,a){n.has(i)?n.set(i,a):o(i,a)}}},kk="!",k6=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,a=s=>{const c=[];let u=0,f=0,d;for(let m=0;m<s.length;m++){let g=s[m];if(u===0){if(g===o&&(r||s.slice(m,m+i)===t)){c.push(s.slice(f,m)),f=m+i;continue}if(g==="/"){d=m;continue}}g==="["?u++:g==="]"&&u--}const p=c.length===0?s:s.substring(f),v=p.startsWith(kk),b=v?p.substring(1):p,y=d&&d>f?d-f:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:y}};return n?s=>n({className:s,parseClassName:a}):a},M6=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},D6=e=>({cache:R6(e.cacheSize),parseClassName:k6(e),...C6(e)}),$6=/\s+/,L6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split($6);let s="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{modifiers:f,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:v}=n(u);let b=!!v,y=r(b?p.substring(0,v):p);if(!y){if(!b){s=u+(s.length>0?" "+s:s);continue}if(y=r(p),!y){s=u+(s.length>0?" "+s:s);continue}b=!1}const m=M6(f).join(":"),g=d?m+kk:m,x=g+y;if(i.includes(x))continue;i.push(x);const w=o(y,b);for(let E=0;E<w.length;++E){const A=w[E];i.push(g+A)}s=u+(s.length>0?" "+s:s)}return s};function F6(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Mk(t))&&(r&&(r+=" "),r+=n);return r}const Mk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Mk(e[r]))&&(n&&(n+=" "),n+=t);return n};function B6(e,...t){let n,r,o,i=a;function a(c){const u=t.reduce((f,d)=>d(f),e());return n=D6(u),r=n.cache.get,o=n.cache.set,i=s,s(c)}function s(c){const u=r(c);if(u)return u;const f=L6(c,n);return o(c,f),f}return function(){return i(F6.apply(null,arguments))}}const He=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Dk=/^\[(?:([a-z-]+):)?(.+)\]$/i,U6=/^\d+\/\d+$/,H6=new Set(["px","full","screen"]),z6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W6=/\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$/,G6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,V6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,_r=e=>_a(e)||H6.has(e)||U6.test(e),ao=e=>gs(e,"length",tW),_a=e=>!!e&&!Number.isNaN(Number(e)),mm=e=>gs(e,"number",_a),Gs=e=>!!e&&Number.isInteger(Number(e)),Y6=e=>e.endsWith("%")&&_a(e.slice(0,-1)),ve=e=>Dk.test(e),so=e=>z6.test(e),q6=new Set(["length","size","percentage"]),X6=e=>gs(e,q6,$k),Z6=e=>gs(e,"position",$k),Q6=new Set(["image","url"]),J6=e=>gs(e,Q6,rW),eW=e=>gs(e,"",nW),Vs=()=>!0,gs=(e,t,n)=>{const r=Dk.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},tW=e=>W6.test(e)&&!G6.test(e),$k=()=>!1,nW=e=>V6.test(e),rW=e=>K6.test(e),oW=()=>{const e=He("colors"),t=He("spacing"),n=He("blur"),r=He("brightness"),o=He("borderColor"),i=He("borderRadius"),a=He("borderSpacing"),s=He("borderWidth"),c=He("contrast"),u=He("grayscale"),f=He("hueRotate"),d=He("invert"),p=He("gap"),v=He("gradientColorStops"),b=He("gradientColorStopPositions"),y=He("inset"),m=He("margin"),g=He("opacity"),x=He("padding"),w=He("saturate"),E=He("scale"),A=He("sepia"),S=He("skew"),N=He("space"),_=He("translate"),C=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",ve,t],R=()=>[ve,t],L=()=>["",_r,ao],j=()=>["auto",_a,ve],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],$=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",ve],B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[_a,ve];return{cacheSize:500,separator:":",theme:{colors:[Vs],spacing:[_r,ao],blur:["none","",so,ve],brightness:W(),borderColor:[e],borderRadius:["none","","full",so,ve],borderSpacing:R(),borderWidth:L(),contrast:W(),grayscale:M(),hueRotate:W(),invert:M(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[Y6,ao],inset:O(),margin:O(),opacity:W(),padding:R(),saturate:W(),scale:W(),sepia:M(),skew:W(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[so]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),ve]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Gs,ve]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Gs,ve]}],"grid-cols":[{"grid-cols":[Vs]}],"col-start-end":[{col:["auto",{span:["full",Gs,ve]},ve]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[Vs]}],"row-start-end":[{row:["auto",{span:[Gs,ve]},ve]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ve,t]}],"min-w":[{"min-w":[ve,t,"min","max","fit"]}],"max-w":[{"max-w":[ve,t,"none","full","min","max","fit","prose",{screen:[so]},so]}],h:[{h:[ve,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ve,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ve,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ve,t,"auto","min","max","fit"]}],"font-size":[{text:["base",so,ao]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",mm]}],"font-family":[{font:[Vs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",_a,mm]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",_r,ve]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",_r,ao]}],"underline-offset":[{"underline-offset":["auto",_r,ve]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),Z6]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",X6]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},J6]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:I()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[_r,ve]}],"outline-w":[{outline:[_r,ao]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[_r,ao]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",so,eW]}],"shadow-color":[{shadow:[Vs]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...$(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":$()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",so,ve]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Gs,ve]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ve]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",ve]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[_r,ao,mm]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},iW=B6(oW);function oe(...e){return iW(Ne(e))}function pn(e){return e?(typeof e=="string"?new Date(e):e).toLocaleDateString("ko-KR",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function Ir(e){return e==null?"-":e.toLocaleString()}function Lk(e){return e==null?"-":e<1e3?`${e}ms`:e<6e4?`${(e/1e3).toFixed(1)}s`:`${(e/6e4).toFixed(1)}m`}function RS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eo(...e){return t=>{let n=!1;const r=e.map(o=>{const i=RS(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():RS(e[o],null)}}}}function Ce(...e){return h.useCallback(eo(...e),e)}var aW=Symbol.for("react.lazy"),Vd=op[" use ".trim().toString()];function sW(e){return typeof e=="object"&&e!==null&&"then"in e}function Fk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===aW&&"_payload"in e&&sW(e._payload)}function Bk(e){const t=cW(e),n=h.forwardRef((r,o)=>{let{children:i,...a}=r;Fk(i)&&typeof Vd=="function"&&(i=Vd(i._payload));const s=h.Children.toArray(i),c=s.find(dW);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var lW=Bk("Slot");function cW(e){const t=h.forwardRef((n,r)=>{let{children:o,...i}=n;if(Fk(o)&&typeof Vd=="function"&&(o=Vd(o._payload)),h.isValidElement(o)){const a=pW(o),s=fW(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var uW=Symbol("radix.slottable");function dW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===uW}function fW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function pW(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const kS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,MS=Ne,Ep=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return MS(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(u=>{const f=n==null?void 0:n[u],d=i==null?void 0:i[u];if(f===null)return null;const p=kS(f)||kS(d);return o[u][p]}),s=n&&Object.entries(n).reduce((u,f)=>{let[d,p]=f;return p===void 0||(u[d]=p),u},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:d,className:p,...v}=f;return Object.entries(v).every(b=>{let[y,m]=b;return Array.isArray(m)?m.includes({...i,...s}[y]):{...i,...s}[y]===m})?[...u,d,p]:u},[]);return MS(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)},Np=Ep("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Y=h.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>{const a=r?lW:"button";return l.jsx(a,{className:oe(Np({variant:t,size:n,className:e})),ref:i,...o})});Y.displayName="Button";function Q(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function hW(e,t){const n=h.createContext(t),r=i=>{const{children:a,...s}=i,c=h.useMemo(()=>s,Object.values(s));return l.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function o(i){const a=h.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function nr(e,t=[]){let n=[];function r(i,a){const s=h.createContext(a),c=n.length;n=[...n,a];const u=d=>{var g;const{scope:p,children:v,...b}=d,y=((g=p==null?void 0:p[e])==null?void 0:g[c])||s,m=h.useMemo(()=>b,Object.values(b));return l.jsx(y.Provider,{value:m,children:v})};u.displayName=i+"Provider";function f(d,p){var y;const v=((y=p==null?void 0:p[e])==null?void 0:y[c])||s,b=h.useContext(v);if(b)return b;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(a=>h.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return h.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[r,mW(o,...t)]}function mW(...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(i){const a=r.reduce((s,{useScope:c,scopeName:u})=>{const d=c(i)[`__scope${u}`];return{...s,...d}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var Tt=globalThis!=null&&globalThis.document?h.useLayoutEffect:()=>{},vW=op[" useInsertionEffect ".trim().toString()]||Tt;function Do({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=yW({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:o;{const f=h.useRef(e!==void 0);h.useEffect(()=>{const d=f.current;d!==s&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${s?"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.`),f.current=s},[s,r])}const u=h.useCallback(f=>{var d;if(s){const p=gW(f)?f(e):f;p!==e&&((d=a.current)==null||d.call(a,p))}else i(f)},[s,e,i,a]);return[c,u]}function yW({defaultProp:e,onChange:t}){const[n,r]=h.useState(e),o=h.useRef(n),i=h.useRef(t);return vW(()=>{i.current=t},[t]),h.useEffect(()=>{var a;o.current!==n&&((a=i.current)==null||a.call(i,n),o.current=n)},[n,o]),[n,r,i]}function gW(e){return typeof e=="function"}function xW(e){const t=bW(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(SW);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function bW(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=EW(o),s=AW(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wW=Symbol("radix.slottable");function SW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wW}function AW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function EW(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var NW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=NW.reduce((e,t)=>{const n=xW(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:a,...s}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function s0(e,t){e&&Ii.flushSync(()=>e.dispatchEvent(t))}function DS(e){const t=_W(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(CW);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function _W(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=TW(o),s=OW(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var jW=Symbol("radix.slottable");function CW(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===jW}function OW(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function TW(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _p(e){const t=e+"CollectionProvider",[n,r]=nr(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:m,children:g}=y,x=D.useRef(null),w=D.useRef(new Map).current;return l.jsx(o,{scope:m,itemMap:w,collectionRef:x,children:g})};a.displayName=t;const s=e+"CollectionSlot",c=DS(s),u=D.forwardRef((y,m)=>{const{scope:g,children:x}=y,w=i(s,g),E=Ce(m,w.collectionRef);return l.jsx(c,{ref:E,children:x})});u.displayName=s;const f=e+"CollectionItemSlot",d="data-radix-collection-item",p=DS(f),v=D.forwardRef((y,m)=>{const{scope:g,children:x,...w}=y,E=D.useRef(null),A=Ce(m,E),S=i(f,g);return D.useEffect(()=>(S.itemMap.set(E,{ref:E,...w}),()=>void S.itemMap.delete(E))),l.jsx(p,{[d]:"",ref:A,children:x})});v.displayName=f;function b(y){const m=i(e+"CollectionConsumer",y);return D.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((S,N)=>w.indexOf(S.ref.current)-w.indexOf(N.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:u,ItemSlot:v},b,r]}var PW=h.createContext(void 0);function jp(e){const t=h.useContext(PW);return e||t||"ltr"}function en(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function IW(e,t=globalThis==null?void 0:globalThis.document){const n=en(e);h.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 RW="DismissableLayer",dy="dismissableLayer.update",kW="dismissableLayer.pointerDownOutside",MW="dismissableLayer.focusOutside",$S,Uk=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wc=h.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...c}=e,u=h.useContext(Uk),[f,d]=h.useState(null),p=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=h.useState({}),b=Ce(t,N=>d(N)),y=Array.from(u.layers),[m]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(m),x=f?y.indexOf(f):-1,w=u.layersWithOutsidePointerEventsDisabled.size>0,E=x>=g,A=$W(N=>{const _=N.target,C=[...u.branches].some(P=>P.contains(_));!E||C||(o==null||o(N),a==null||a(N),N.defaultPrevented||s==null||s())},p),S=LW(N=>{const _=N.target;[...u.branches].some(P=>P.contains(_))||(i==null||i(N),a==null||a(N),N.defaultPrevented||s==null||s())},p);return IW(N=>{x===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&s&&(N.preventDefault(),s()))},p),h.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&($S=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),LS(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=$S)}},[f,p,n,u]),h.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),LS())},[f,u]),h.useEffect(()=>{const N=()=>v({});return document.addEventListener(dy,N),()=>document.removeEventListener(dy,N)},[]),l.jsx(de.div,{...c,ref:b,style:{pointerEvents:w?E?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,A.onPointerDownCapture)})});Wc.displayName=RW;var DW="DismissableLayerBranch",Hk=h.forwardRef((e,t)=>{const n=h.useContext(Uk),r=h.useRef(null),o=Ce(t,r);return h.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.jsx(de.div,{...e,ref:o})});Hk.displayName=DW;function $W(e,t=globalThis==null?void 0:globalThis.document){const n=en(e),r=h.useRef(!1),o=h.useRef(()=>{});return h.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let c=function(){zk(kW,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function LW(e,t=globalThis==null?void 0:globalThis.document){const n=en(e),r=h.useRef(!1);return h.useEffect(()=>{const o=i=>{i.target&&!r.current&&zk(MW,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function LS(){const e=new CustomEvent(dy);document.dispatchEvent(e)}function zk(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?s0(o,i):o.dispatchEvent(i)}var FW=Wc,BW=Hk,vm=0;function l0(){h.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??FS()),document.body.insertAdjacentElement("beforeend",e[1]??FS()),vm++,()=>{vm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),vm--}},[])}function FS(){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 ym="focusScope.autoFocusOnMount",gm="focusScope.autoFocusOnUnmount",BS={bubbles:!1,cancelable:!0},UW="FocusScope",Cp=h.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=h.useState(null),u=en(o),f=en(i),d=h.useRef(null),p=Ce(t,y=>c(y)),v=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let y=function(w){if(v.paused||!s)return;const E=w.target;s.contains(E)?d.current=E:co(d.current,{select:!0})},m=function(w){if(v.paused||!s)return;const E=w.relatedTarget;E!==null&&(s.contains(E)||co(d.current,{select:!0}))},g=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&co(s)};document.addEventListener("focusin",y),document.addEventListener("focusout",m);const x=new MutationObserver(g);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",m),x.disconnect()}}},[r,s,v.paused]),h.useEffect(()=>{if(s){HS.add(v);const y=document.activeElement;if(!s.contains(y)){const g=new CustomEvent(ym,BS);s.addEventListener(ym,u),s.dispatchEvent(g),g.defaultPrevented||(HW(KW(Wk(s)),{select:!0}),document.activeElement===y&&co(s))}return()=>{s.removeEventListener(ym,u),setTimeout(()=>{const g=new CustomEvent(gm,BS);s.addEventListener(gm,f),s.dispatchEvent(g),g.defaultPrevented||co(y??document.body,{select:!0}),s.removeEventListener(gm,f),HS.remove(v)},0)}}},[s,u,f,v]);const b=h.useCallback(y=>{if(!n&&!r||v.paused)return;const m=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,g=document.activeElement;if(m&&g){const x=y.currentTarget,[w,E]=zW(x);w&&E?!y.shiftKey&&g===E?(y.preventDefault(),n&&co(w,{select:!0})):y.shiftKey&&g===w&&(y.preventDefault(),n&&co(E,{select:!0})):g===x&&y.preventDefault()}},[n,r,v.paused]);return l.jsx(de.div,{tabIndex:-1,...a,ref:p,onKeyDown:b})});Cp.displayName=UW;function HW(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(co(r,{select:t}),document.activeElement!==n)return}function zW(e){const t=Wk(e),n=US(t,e),r=US(t.reverse(),e);return[n,r]}function Wk(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 US(e,t){for(const n of e)if(!WW(n,{upTo:t}))return n}function WW(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 GW(e){return e instanceof HTMLInputElement&&"select"in e}function co(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&GW(e)&&t&&e.select()}}var HS=VW();function VW(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=zS(e,t),e.unshift(t)},remove(t){var n;e=zS(e,t),(n=e[0])==null||n.resume()}}}function zS(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function KW(e){return e.filter(t=>t.tagName!=="A")}var YW=op[" useId ".trim().toString()]||(()=>{}),qW=0;function mr(e){const[t,n]=h.useState(YW());return Tt(()=>{n(r=>r??String(qW++))},[e]),t?`radix-${t}`:""}const XW=["top","right","bottom","left"],$o=Math.min,sn=Math.max,Kd=Math.round,Ou=Math.floor,vr=e=>({x:e,y:e}),ZW={left:"right",right:"left",bottom:"top",top:"bottom"},QW={start:"end",end:"start"};function fy(e,t,n){return sn(e,$o(t,n))}function Vr(e,t){return typeof e=="function"?e(t):e}function Kr(e){return e.split("-")[0]}function xs(e){return e.split("-")[1]}function c0(e){return e==="x"?"y":"x"}function u0(e){return e==="y"?"height":"width"}const JW=new Set(["top","bottom"]);function dr(e){return JW.has(Kr(e))?"y":"x"}function d0(e){return c0(dr(e))}function eG(e,t,n){n===void 0&&(n=!1);const r=xs(e),o=d0(e),i=u0(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Yd(a)),[a,Yd(a)]}function tG(e){const t=Yd(e);return[py(e),t,py(t)]}function py(e){return e.replace(/start|end/g,t=>QW[t])}const WS=["left","right"],GS=["right","left"],nG=["top","bottom"],rG=["bottom","top"];function oG(e,t,n){switch(e){case"top":case"bottom":return n?t?GS:WS:t?WS:GS;case"left":case"right":return t?nG:rG;default:return[]}}function iG(e,t,n,r){const o=xs(e);let i=oG(Kr(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(py)))),i}function Yd(e){return e.replace(/left|right|bottom|top/g,t=>ZW[t])}function aG(e){return{top:0,right:0,bottom:0,left:0,...e}}function Gk(e){return typeof e!="number"?aG(e):{top:e,right:e,bottom:e,left:e}}function qd(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 VS(e,t,n){let{reference:r,floating:o}=e;const i=dr(t),a=d0(t),s=u0(a),c=Kr(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let v;switch(c){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:d};break;case"left":v={x:r.x-o.width,y:d};break;default:v={x:r.x,y:r.y}}switch(xs(t)){case"start":v[a]-=p*(n&&u?-1:1);break;case"end":v[a]+=p*(n&&u?-1:1);break}return v}const sG=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=VS(u,r,c),p=r,v={},b=0;for(let y=0;y<s.length;y++){const{name:m,fn:g}=s[y],{x,y:w,data:E,reset:A}=await g({x:f,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});f=x??f,d=w??d,v={...v,[m]:{...v[m],...E}},A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(p=A.placement),A.rects&&(u=A.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:f,y:d}=VS(u,p,c)),y=-1)}return{x:f,y:d,placement:p,strategy:o,middlewareData:v}};async function Zl(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=Vr(t,e),b=Gk(v),m=s[p?d==="floating"?"reference":"floating":d],g=qd(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(m)))==null||n?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),x=d==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},A=qd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:c}):x);return{top:(g.top-A.top+b.top)/E.y,bottom:(A.bottom-g.bottom+b.bottom)/E.y,left:(g.left-A.left+b.left)/E.x,right:(A.right-g.right+b.right)/E.x}}const lG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:f=0}=Vr(e,t)||{};if(u==null)return{};const d=Gk(f),p={x:n,y:r},v=d0(o),b=u0(v),y=await a.getDimensions(u),m=v==="y",g=m?"top":"left",x=m?"bottom":"right",w=m?"clientHeight":"clientWidth",E=i.reference[b]+i.reference[v]-p[v]-i.floating[b],A=p[v]-i.reference[v],S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let N=S?S[w]:0;(!N||!await(a.isElement==null?void 0:a.isElement(S)))&&(N=s.floating[w]||i.floating[b]);const _=E/2-A/2,C=N/2-y[b]/2-1,P=$o(d[g],C),O=$o(d[x],C),R=P,L=N-y[b]-O,j=N/2-y[b]/2+_,T=fy(R,j,L),I=!c.arrow&&xs(o)!=null&&j!==T&&i.reference[b]/2-(j<R?P:O)-y[b]/2<0,$=I?j<R?j-R:j-L:0;return{[v]:p[v]+$,data:{[v]:T,centerOffset:j-T-$,...I&&{alignmentOffset:$}},reset:I}}}),cG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...m}=Vr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Kr(o),x=dr(s),w=Kr(s)===s,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),A=p||(w||!y?[Yd(s)]:tG(s)),S=b!=="none";!p&&S&&A.push(...iG(s,y,b,E));const N=[s,...A],_=await Zl(t,m),C=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(f&&C.push(_[g]),d){const j=eG(o,a,E);C.push(_[j[0]],_[j[1]])}if(P=[...P,{placement:o,overflows:C}],!C.every(j=>j<=0)){var O,R;const j=(((O=i.flip)==null?void 0:O.index)||0)+1,T=N[j];if(T&&(!(d==="alignment"?x!==dr(T):!1)||P.every(k=>dr(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:j,overflows:P},reset:{placement:T}};let I=(R=P.filter($=>$.overflows[0]<=0).sort(($,k)=>$.overflows[1]-k.overflows[1])[0])==null?void 0:R.placement;if(!I)switch(v){case"bestFit":{var L;const $=(L=P.filter(k=>{if(S){const M=dr(k.placement);return M===x||M==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(M=>M>0).reduce((M,B)=>M+B,0)]).sort((k,M)=>k[1]-M[1])[0])==null?void 0:L[0];$&&(I=$);break}case"initialPlacement":I=s;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function KS(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function YS(e){return XW.some(t=>e[t]>=0)}const uG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Vr(e,t);switch(r){case"referenceHidden":{const i=await Zl(t,{...o,elementContext:"reference"}),a=KS(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:YS(a)}}}case"escaped":{const i=await Zl(t,{...o,altBoundary:!0}),a=KS(i,n.floating);return{data:{escapedOffsets:a,escaped:YS(a)}}}default:return{}}}}},Vk=new Set(["left","top"]);async function dG(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Kr(n),s=xs(n),c=dr(n)==="y",u=Vk.has(a)?-1:1,f=i&&c?-1:1,d=Vr(t,e);let{mainAxis:p,crossAxis:v,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof b=="number"&&(v=s==="end"?b*-1:b),c?{x:v*f,y:p*u}:{x:p*u,y:v*f}}const fG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await dG(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},pG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:m=>{let{x:g,y:x}=m;return{x:g,y:x}}},...c}=Vr(e,t),u={x:n,y:r},f=await Zl(t,c),d=dr(Kr(o)),p=c0(d);let v=u[p],b=u[d];if(i){const m=p==="y"?"top":"left",g=p==="y"?"bottom":"right",x=v+f[m],w=v-f[g];v=fy(x,v,w)}if(a){const m=d==="y"?"top":"left",g=d==="y"?"bottom":"right",x=b+f[m],w=b-f[g];b=fy(x,b,w)}const y=s.fn({...t,[p]:v,[d]:b});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:i,[d]:a}}}}}},hG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Vr(e,t),f={x:n,y:r},d=dr(o),p=c0(d);let v=f[p],b=f[d];const y=Vr(s,t),m=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=p==="y"?"height":"width",E=i.reference[p]-i.floating[w]+m.mainAxis,A=i.reference[p]+i.reference[w]-m.mainAxis;v<E?v=E:v>A&&(v=A)}if(u){var g,x;const w=p==="y"?"width":"height",E=Vk.has(Kr(o)),A=i.reference[d]-i.floating[w]+(E&&((g=a.offset)==null?void 0:g[d])||0)+(E?0:m.crossAxis),S=i.reference[d]+i.reference[w]+(E?0:((x=a.offset)==null?void 0:x[d])||0)-(E?m.crossAxis:0);b<A?b=A:b>S&&(b=S)}return{[p]:v,[d]:b}}}},mG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...u}=Vr(e,t),f=await Zl(t,u),d=Kr(o),p=xs(o),v=dr(o)==="y",{width:b,height:y}=i.floating;let m,g;d==="top"||d==="bottom"?(m=d,g=p===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m=p==="end"?"top":"bottom");const x=y-f.top-f.bottom,w=b-f.left-f.right,E=$o(y-f[m],x),A=$o(b-f[g],w),S=!t.middlewareData.shift;let N=E,_=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(_=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=x),S&&!p){const P=sn(f.left,0),O=sn(f.right,0),R=sn(f.top,0),L=sn(f.bottom,0);v?_=b-2*(P!==0||O!==0?P+O:sn(f.left,f.right)):N=y-2*(R!==0||L!==0?R+L:sn(f.top,f.bottom))}await c({...t,availableWidth:_,availableHeight:N});const C=await a.getDimensions(s.floating);return b!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}};function Op(){return typeof window<"u"}function bs(e){return Kk(e)?(e.nodeName||"").toLowerCase():"#document"}function dn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sr(e){var t;return(t=(Kk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kk(e){return Op()?e instanceof Node||e instanceof dn(e).Node:!1}function er(e){return Op()?e instanceof Element||e instanceof dn(e).Element:!1}function xr(e){return Op()?e instanceof HTMLElement||e instanceof dn(e).HTMLElement:!1}function qS(e){return!Op()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dn(e).ShadowRoot}const vG=new Set(["inline","contents"]);function Gc(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!vG.has(o)}const yG=new Set(["table","td","th"]);function gG(e){return yG.has(bs(e))}const xG=[":popover-open",":modal"];function Tp(e){return xG.some(t=>{try{return e.matches(t)}catch{return!1}})}const bG=["transform","translate","scale","rotate","perspective"],wG=["transform","translate","scale","rotate","perspective","filter"],SG=["paint","layout","strict","content"];function f0(e){const t=p0(),n=er(e)?tr(e):e;return bG.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)||wG.some(r=>(n.willChange||"").includes(r))||SG.some(r=>(n.contain||"").includes(r))}function AG(e){let t=Lo(e);for(;xr(t)&&!Ha(t);){if(f0(t))return t;if(Tp(t))return null;t=Lo(t)}return null}function p0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const EG=new Set(["html","body","#document"]);function Ha(e){return EG.has(bs(e))}function tr(e){return dn(e).getComputedStyle(e)}function Pp(e){return er(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lo(e){if(bs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qS(e)&&e.host||Sr(e);return qS(t)?t.host:t}function Yk(e){const t=Lo(e);return Ha(t)?e.ownerDocument?e.ownerDocument.body:e.body:xr(t)&&Gc(t)?t:Yk(t)}function Ql(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Yk(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=dn(o);if(i){const s=hy(a);return t.concat(a,a.visualViewport||[],Gc(o)?o:[],s&&n?Ql(s):[])}return t.concat(o,Ql(o,[],n))}function hy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qk(e){const t=tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=xr(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Kd(n)!==i||Kd(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function h0(e){return er(e)?e:e.contextElement}function ja(e){const t=h0(e);if(!xr(t))return vr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=qk(t);let a=(i?Kd(n.width):n.width)/r,s=(i?Kd(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const NG=vr(0);function Xk(e){const t=dn(e);return!p0()||!t.visualViewport?NG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _G(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dn(e)?!1:t}function wi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=h0(e);let a=vr(1);t&&(r?er(r)&&(a=ja(r)):a=ja(e));const s=_G(i,n,r)?Xk(i):vr(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const p=dn(i),v=r&&er(r)?dn(r):r;let b=p,y=hy(b);for(;y&&r&&v!==b;){const m=ja(y),g=y.getBoundingClientRect(),x=tr(y),w=g.left+(y.clientLeft+parseFloat(x.paddingLeft))*m.x,E=g.top+(y.clientTop+parseFloat(x.paddingTop))*m.y;c*=m.x,u*=m.y,f*=m.x,d*=m.y,c+=w,u+=E,b=dn(y),y=hy(b)}}return qd({width:f,height:d,x:c,y:u})}function Ip(e,t){const n=Pp(e).scrollLeft;return t?t.left+n:wi(Sr(e)).left+n}function Zk(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ip(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function jG(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=Sr(r),s=t?Tp(t.floating):!1;if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=vr(1);const f=vr(0),d=xr(r);if((d||!d&&!i)&&((bs(r)!=="body"||Gc(a))&&(c=Pp(r)),xr(r))){const v=wi(r);u=ja(r),f.x=v.x+r.clientLeft,f.y=v.y+r.clientTop}const p=a&&!d&&!i?Zk(a,c):vr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-c.scrollTop*u.y+f.y+p.y}}function CG(e){return Array.from(e.getClientRects())}function OG(e){const t=Sr(e),n=Pp(e),r=e.ownerDocument.body,o=sn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=sn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ip(e);const s=-n.scrollTop;return tr(r).direction==="rtl"&&(a+=sn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}const XS=25;function TG(e,t){const n=dn(e),r=Sr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const f=p0();(!f||f&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}const u=Ip(r);if(u<=0){const f=r.ownerDocument,d=f.body,p=getComputedStyle(d),v=f.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(r.clientWidth-d.clientWidth-v);b<=XS&&(i-=b)}else u<=XS&&(i+=u);return{width:i,height:a,x:s,y:c}}const PG=new Set(["absolute","fixed"]);function IG(e,t){const n=wi(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xr(e)?ja(e):vr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function ZS(e,t,n){let r;if(t==="viewport")r=TG(e,n);else if(t==="document")r=OG(Sr(e));else if(er(t))r=IG(t,n);else{const o=Xk(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return qd(r)}function Qk(e,t){const n=Lo(e);return n===t||!er(n)||Ha(n)?!1:tr(n).position==="fixed"||Qk(n,t)}function RG(e,t){const n=t.get(e);if(n)return n;let r=Ql(e,[],!1).filter(s=>er(s)&&bs(s)!=="body"),o=null;const i=tr(e).position==="fixed";let a=i?Lo(e):e;for(;er(a)&&!Ha(a);){const s=tr(a),c=f0(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&PG.has(o.position)||Gc(a)&&!c&&Qk(e,a))?r=r.filter(f=>f!==a):o=s,a=Lo(a)}return t.set(e,r),r}function kG(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Tp(t)?[]:RG(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const d=ZS(t,f,o);return u.top=sn(d.top,u.top),u.right=$o(d.right,u.right),u.bottom=$o(d.bottom,u.bottom),u.left=sn(d.left,u.left),u},ZS(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function MG(e){const{width:t,height:n}=qk(e);return{width:t,height:n}}function DG(e,t,n){const r=xr(t),o=Sr(t),i=n==="fixed",a=wi(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=vr(0);function u(){c.x=Ip(o)}if(r||!r&&!i)if((bs(t)!=="body"||Gc(o))&&(s=Pp(t)),r){const v=wi(t,!0,i,t);c.x=v.x+t.clientLeft,c.y=v.y+t.clientTop}else o&&u();i&&!r&&o&&u();const f=o&&!r&&!i?Zk(o,s):vr(0),d=a.left+s.scrollLeft-c.x-f.x,p=a.top+s.scrollTop-c.y-f.y;return{x:d,y:p,width:a.width,height:a.height}}function xm(e){return tr(e).position==="static"}function QS(e,t){if(!xr(e)||tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Sr(e)===n&&(n=n.ownerDocument.body),n}function Jk(e,t){const n=dn(e);if(Tp(e))return n;if(!xr(e)){let o=Lo(e);for(;o&&!Ha(o);){if(er(o)&&!xm(o))return o;o=Lo(o)}return n}let r=QS(e,t);for(;r&&gG(r)&&xm(r);)r=QS(r,t);return r&&Ha(r)&&xm(r)&&!f0(r)?n:r||AG(e)||n}const $G=async function(e){const t=this.getOffsetParent||Jk,n=this.getDimensions,r=await n(e.floating);return{reference:DG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LG(e){return tr(e).direction==="rtl"}const FG={convertOffsetParentRelativeRectToViewportRelativeRect:jG,getDocumentElement:Sr,getClippingRect:kG,getOffsetParent:Jk,getElementRects:$G,getClientRects:CG,getDimensions:MG,getScale:ja,isElement:er,isRTL:LG};function e2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BG(e,t){let n=null,r;const o=Sr(e);function i(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:f,top:d,width:p,height:v}=u;if(s||t(),!p||!v)return;const b=Ou(d),y=Ou(o.clientWidth-(f+p)),m=Ou(o.clientHeight-(d+v)),g=Ou(f),w={rootMargin:-b+"px "+-y+"px "+-m+"px "+-g+"px",threshold:sn(0,$o(1,c))||1};let E=!0;function A(S){const N=S[0].intersectionRatio;if(N!==c){if(!E)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}N===1&&!e2(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(A,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,w)}n.observe(e)}return a(!0),i}function UG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=h0(e),f=o||i?[...u?Ql(u):[],...Ql(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&s?BG(u,n):null;let p=-1,v=null;a&&(v=new ResizeObserver(g=>{let[x]=g;x&&x.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),u&&!c&&v.observe(u),v.observe(t));let b,y=c?wi(e):null;c&&m();function m(){const g=wi(e);y&&!e2(y,g)&&n(),y=g,b=requestAnimationFrame(m)}return n(),()=>{var g;f.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(g=v)==null||g.disconnect(),v=null,c&&cancelAnimationFrame(b)}}const HG=fG,zG=pG,WG=cG,GG=mG,VG=uG,JS=lG,KG=hG,YG=(e,t,n)=>{const r=new Map,o={platform:FG,...n},i={...o.platform,_c:r};return sG(e,t,{...o,platform:i})};var qG=typeof document<"u",XG=function(){},pd=qG?h.useLayoutEffect:XG;function Xd(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(!Xd(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 i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Xd(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function t2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eA(e,t){const n=t2(e);return Math.round(t*n)/n}function bm(e){const t=h.useRef(e);return pd(()=>{t.current=e}),t}function ZG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=h.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=h.useState(r);Xd(p,r)||v(r);const[b,y]=h.useState(null),[m,g]=h.useState(null),x=h.useCallback(k=>{k!==S.current&&(S.current=k,y(k))},[]),w=h.useCallback(k=>{k!==N.current&&(N.current=k,g(k))},[]),E=i||b,A=a||m,S=h.useRef(null),N=h.useRef(null),_=h.useRef(f),C=c!=null,P=bm(c),O=bm(o),R=bm(u),L=h.useCallback(()=>{if(!S.current||!N.current)return;const k={placement:t,strategy:n,middleware:p};O.current&&(k.platform=O.current),YG(S.current,N.current,k).then(M=>{const B={...M,isPositioned:R.current!==!1};j.current&&!Xd(_.current,B)&&(_.current=B,Ii.flushSync(()=>{d(B)}))})},[p,t,n,O,R]);pd(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[u]);const j=h.useRef(!1);pd(()=>(j.current=!0,()=>{j.current=!1}),[]),pd(()=>{if(E&&(S.current=E),A&&(N.current=A),E&&A){if(P.current)return P.current(E,A,L);L()}},[E,A,L,P,C]);const T=h.useMemo(()=>({reference:S,floating:N,setReference:x,setFloating:w}),[x,w]),I=h.useMemo(()=>({reference:E,floating:A}),[E,A]),$=h.useMemo(()=>{const k={position:n,left:0,top:0};if(!I.floating)return k;const M=eA(I.floating,f.x),B=eA(I.floating,f.y);return s?{...k,transform:"translate("+M+"px, "+B+"px)",...t2(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:M,top:B}},[n,s,I.floating,f.x,f.y]);return h.useMemo(()=>({...f,update:L,refs:T,elements:I,floatingStyles:$}),[f,L,T,I,$])}const QG=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?JS({element:r.current,padding:o}).fn(n):{}:r?JS({element:r,padding:o}).fn(n):{}}}},JG=(e,t)=>({...HG(e),options:[e,t]}),eV=(e,t)=>({...zG(e),options:[e,t]}),tV=(e,t)=>({...KG(e),options:[e,t]}),nV=(e,t)=>({...WG(e),options:[e,t]}),rV=(e,t)=>({...GG(e),options:[e,t]}),oV=(e,t)=>({...VG(e),options:[e,t]}),iV=(e,t)=>({...QG(e),options:[e,t]});var aV="Arrow",n2=h.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.jsx(de.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l.jsx("polygon",{points:"0,0 30,0 15,10"})})});n2.displayName=aV;var sV=n2;function r2(e){const[t,n]=h.useState(void 0);return Tt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var m0="Popper",[o2,Rp]=nr(m0),[lV,i2]=o2(m0),a2=e=>{const{__scopePopper:t,children:n}=e,[r,o]=h.useState(null);return l.jsx(lV,{scope:t,anchor:r,onAnchorChange:o,children:n})};a2.displayName=m0;var s2="PopperAnchor",l2=h.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=i2(s2,n),a=h.useRef(null),s=Ce(t,a),c=h.useRef(null);return h.useEffect(()=>{const u=c.current;c.current=(r==null?void 0:r.current)||a.current,u!==c.current&&i.onAnchorChange(c.current)}),r?null:l.jsx(de.div,{...o,ref:s})});l2.displayName=s2;var v0="PopperContent",[cV,uV]=o2(v0),c2=h.forwardRef((e,t)=>{var re,he,G,Z,ee,U;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:b,...y}=e,m=i2(v0,n),[g,x]=h.useState(null),w=Ce(t,Se=>x(Se)),[E,A]=h.useState(null),S=r2(E),N=(S==null?void 0:S.width)??0,_=(S==null?void 0:S.height)??0,C=r+(i!=="center"?"-"+i:""),P=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},O=Array.isArray(u)?u:[u],R=O.length>0,L={padding:P,boundary:O.filter(fV),altBoundary:R},{refs:j,floatingStyles:T,placement:I,isPositioned:$,middlewareData:k}=ZG({strategy:"fixed",placement:C,whileElementsMounted:(...Se)=>UG(...Se,{animationFrame:v==="always"}),elements:{reference:m.anchor},middleware:[JG({mainAxis:o+_,alignmentAxis:a}),c&&eV({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?tV():void 0,...L}),c&&nV({...L}),rV({...L,apply:({elements:Se,rects:fe,availableWidth:Be,availableHeight:Ue})=>{const{width:ot,height:ir}=fe.reference,Ln=Se.floating.style;Ln.setProperty("--radix-popper-available-width",`${Be}px`),Ln.setProperty("--radix-popper-available-height",`${Ue}px`),Ln.setProperty("--radix-popper-anchor-width",`${ot}px`),Ln.setProperty("--radix-popper-anchor-height",`${ir}px`)}}),E&&iV({element:E,padding:s}),pV({arrowWidth:N,arrowHeight:_}),p&&oV({strategy:"referenceHidden",...L})]}),[M,B]=f2(I),W=en(b);Tt(()=>{$&&(W==null||W())},[$,W]);const z=(re=k.arrow)==null?void 0:re.x,J=(he=k.arrow)==null?void 0:he.y,ue=((G=k.arrow)==null?void 0:G.centerOffset)!==0,[_e,Ae]=h.useState();return Tt(()=>{g&&Ae(window.getComputedStyle(g).zIndex)},[g]),l.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:$?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_e,"--radix-popper-transform-origin":[(Z=k.transformOrigin)==null?void 0:Z.x,(ee=k.transformOrigin)==null?void 0:ee.y].join(" "),...((U=k.hide)==null?void 0:U.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l.jsx(cV,{scope:n,placedSide:M,onArrowChange:A,arrowX:z,arrowY:J,shouldHideArrow:ue,children:l.jsx(de.div,{"data-side":M,"data-align":B,...y,ref:w,style:{...y.style,animation:$?void 0:"none"}})})})});c2.displayName=v0;var u2="PopperArrow",dV={top:"bottom",right:"left",bottom:"top",left:"right"},d2=h.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=uV(u2,r),a=dV[i.placedSide];return l.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:l.jsx(sV,{...o,ref:n,style:{...o.style,display:"block"}})})});d2.displayName=u2;function fV(e){return e!==null}var pV=e=>({name:"transformOrigin",options:e,fn(t){var m,g,x;const{placement:n,rects:r,middlewareData:o}=t,a=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[u,f]=f2(n),d={start:"0%",center:"50%",end:"100%"}[f],p=(((g=o.arrow)==null?void 0:g.x)??0)+s/2,v=(((x=o.arrow)==null?void 0:x.y)??0)+c/2;let b="",y="";return u==="bottom"?(b=a?d:`${p}px`,y=`${-c}px`):u==="top"?(b=a?d:`${p}px`,y=`${r.floating.height+c}px`):u==="right"?(b=`${-c}px`,y=a?d:`${v}px`):u==="left"&&(b=`${r.floating.width+c}px`,y=a?d:`${v}px`),{data:{x:b,y}}}});function f2(e){const[t,n="center"]=e.split("-");return[t,n]}var p2=a2,h2=l2,m2=c2,v2=d2,hV="Portal",Vc=h.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[o,i]=h.useState(!1);Tt(()=>i(!0),[]);const a=n||o&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return a?pH.createPortal(l.jsx(de.div,{...r,ref:t}),a):null});Vc.displayName=hV;function mV(e,t){return h.useReducer((n,r)=>t[n][r]??n,e)}var Ar=e=>{const{present:t,children:n}=e,r=vV(t),o=typeof n=="function"?n({present:r.isPresent}):h.Children.only(n),i=Ce(r.ref,yV(o));return typeof n=="function"||r.isPresent?h.cloneElement(o,{ref:i}):null};Ar.displayName="Presence";function vV(e){const[t,n]=h.useState(),r=h.useRef(null),o=h.useRef(e),i=h.useRef("none"),a=e?"mounted":"unmounted",[s,c]=mV(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return h.useEffect(()=>{const u=Tu(r.current);i.current=s==="mounted"?u:"none"},[s]),Tt(()=>{const u=r.current,f=o.current;if(f!==e){const p=i.current,v=Tu(u);e?c("MOUNT"):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(f&&p!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Tt(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=v=>{const y=Tu(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&y&&(c("ANIMATION_END"),!o.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},p=v=>{v.target===t&&(i.current=Tu(r.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:h.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Tu(e){return(e==null?void 0:e.animationName)||"none"}function yV(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wm="rovingFocusGroup.onEntryFocus",gV={bubbles:!1,cancelable:!0},Kc="RovingFocusGroup",[my,y2,xV]=_p(Kc),[bV,kp]=nr(Kc,[xV]),[wV,SV]=bV(Kc),g2=h.forwardRef((e,t)=>l.jsx(my.Provider,{scope:e.__scopeRovingFocusGroup,children:l.jsx(my.Slot,{scope:e.__scopeRovingFocusGroup,children:l.jsx(AV,{...e,ref:t})})}));g2.displayName=Kc;var AV=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:f=!1,...d}=e,p=h.useRef(null),v=Ce(t,p),b=jp(i),[y,m]=Do({prop:a,defaultProp:s??null,onChange:c,caller:Kc}),[g,x]=h.useState(!1),w=en(u),E=y2(n),A=h.useRef(!1),[S,N]=h.useState(0);return h.useEffect(()=>{const _=p.current;if(_)return _.addEventListener(wm,w),()=>_.removeEventListener(wm,w)},[w]),l.jsx(wV,{scope:n,orientation:r,dir:b,loop:o,currentTabStopId:y,onItemFocus:h.useCallback(_=>m(_),[m]),onItemShiftTab:h.useCallback(()=>x(!0),[]),onFocusableItemAdd:h.useCallback(()=>N(_=>_+1),[]),onFocusableItemRemove:h.useCallback(()=>N(_=>_-1),[]),children:l.jsx(de.div,{tabIndex:g||S===0?-1:0,"data-orientation":r,...d,ref:v,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{A.current=!0}),onFocus:Q(e.onFocus,_=>{const C=!A.current;if(_.target===_.currentTarget&&C&&!g){const P=new CustomEvent(wm,gV);if(_.currentTarget.dispatchEvent(P),!P.defaultPrevented){const O=E().filter(I=>I.focusable),R=O.find(I=>I.active),L=O.find(I=>I.id===y),T=[R,L,...O].filter(Boolean).map(I=>I.ref.current);w2(T,f)}}A.current=!1}),onBlur:Q(e.onBlur,()=>x(!1))})})}),x2="RovingFocusGroupItem",b2=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:a,...s}=e,c=mr(),u=i||c,f=SV(x2,n),d=f.currentTabStopId===u,p=y2(n),{onFocusableItemAdd:v,onFocusableItemRemove:b,currentTabStopId:y}=f;return h.useEffect(()=>{if(r)return v(),()=>b()},[r,v,b]),l.jsx(my.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:l.jsx(de.span,{tabIndex:d?0:-1,"data-orientation":f.orientation,...s,ref:t,onMouseDown:Q(e.onMouseDown,m=>{r?f.onItemFocus(u):m.preventDefault()}),onFocus:Q(e.onFocus,()=>f.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){f.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const g=_V(m,f.orientation,f.dir);if(g!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let w=p().filter(E=>E.focusable).map(E=>E.ref.current);if(g==="last")w.reverse();else if(g==="prev"||g==="next"){g==="prev"&&w.reverse();const E=w.indexOf(m.currentTarget);w=f.loop?jV(w,E+1):w.slice(E+1)}setTimeout(()=>w2(w))}}),children:typeof a=="function"?a({isCurrentTabStop:d,hasTabStop:y!=null}):a})})});b2.displayName=x2;var EV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function NV(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function _V(e,t,n){const r=NV(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return EV[r]}function w2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function jV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var S2=g2,A2=b2;function CV(e){const t=OV(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(PV);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function OV(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=RV(o),s=IV(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var TV=Symbol("radix.slottable");function PV(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===TV}function IV(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function RV(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var kV=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xi=new WeakMap,Pu=new WeakMap,Iu={},Sm=0,E2=function(e){return e&&(e.host||E2(e.parentNode))},MV=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=E2(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})},DV=function(e,t,n,r){var o=MV(t,Array.isArray(e)?e:[e]);Iu[n]||(Iu[n]=new WeakMap);var i=Iu[n],a=[],s=new Set,c=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(p){if(s.has(p))f(p);else try{var v=p.getAttribute(r),b=v!==null&&v!=="false",y=(Xi.get(p)||0)+1,m=(i.get(p)||0)+1;Xi.set(p,y),i.set(p,m),a.push(p),y===1&&b&&Pu.set(p,!0),m===1&&p.setAttribute(n,"true"),b||p.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",p,g)}})};return f(t),s.clear(),Sm++,function(){a.forEach(function(d){var p=Xi.get(d)-1,v=i.get(d)-1;Xi.set(d,p),i.set(d,v),p||(Pu.has(d)||d.removeAttribute(r),Pu.delete(d)),v||d.removeAttribute(n)}),Sm--,Sm||(Xi=new WeakMap,Xi=new WeakMap,Pu=new WeakMap,Iu={})}},y0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=kV(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),DV(r,o,n,"aria-hidden")):function(){return null}},ur=function(){return ur=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ur.apply(this,arguments)};function N2(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 $V(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var hd="right-scroll-bar-position",md="width-before-scroll-bar",LV="with-scroll-bars-hidden",FV="--removed-body-scroll-bar-size";function Am(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function BV(e,t){var n=h.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 UV=typeof window<"u"?h.useLayoutEffect:h.useEffect,tA=new WeakMap;function HV(e,t){var n=BV(null,function(r){return e.forEach(function(o){return Am(o,r)})});return UV(function(){var r=tA.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||Am(s,null)}),i.forEach(function(s){o.has(s)||Am(s,a)})}tA.set(n,e)},[e]),n}function zV(e){return e}function WV(e,t){t===void 0&&(t=zV);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(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function GV(e){e===void 0&&(e={});var t=WV(null);return t.options=ur({async:!0,ssr:!1},e),t}var _2=function(e){var t=e.sideCar,n=N2(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 h.createElement(r,ur({},n))};_2.isSideCarExport=!0;function VV(e,t){return e.useMedium(t),_2}var j2=GV(),Em=function(){},Mp=h.forwardRef(function(e,t){var n=h.useRef(null),r=h.useState({onScrollCapture:Em,onWheelCapture:Em,onTouchMoveCapture:Em}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,v=e.noRelative,b=e.noIsolation,y=e.inert,m=e.allowPinchZoom,g=e.as,x=g===void 0?"div":g,w=e.gapMode,E=N2(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=p,S=HV([n,t]),N=ur(ur({},E),o);return h.createElement(h.Fragment,null,f&&h.createElement(A,{sideCar:j2,removeScrollBar:u,shards:d,noRelative:v,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:w}),a?h.cloneElement(h.Children.only(s),ur(ur({},N),{ref:S})):h.createElement(x,ur({},N,{className:c,ref:S}),s))});Mp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mp.classNames={fullWidth:md,zeroRight:hd};var KV=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YV(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KV();return t&&e.setAttribute("nonce",t),e}function qV(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function XV(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ZV=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YV())&&(qV(t,n),XV(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},QV=function(){var e=ZV();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},C2=function(){var e=QV(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},JV={left:0,top:0,right:0,gap:0},Nm=function(e){return parseInt(e||"",10)||0},eK=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[Nm(n),Nm(r),Nm(o)]},tK=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JV;var t=eK(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])}},nK=C2(),Ca="data-scroll-locked",rK=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
404
|
-
.`.concat(LV,` {
|
|
405
|
-
overflow: hidden `).concat(r,`;
|
|
406
|
-
padding-right: `).concat(s,"px ").concat(r,`;
|
|
407
|
-
}
|
|
408
|
-
body[`).concat(Ca,`] {
|
|
409
|
-
overflow: hidden `).concat(r,`;
|
|
410
|
-
overscroll-behavior: contain;
|
|
411
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
412
|
-
padding-left: `.concat(o,`px;
|
|
413
|
-
padding-top: `).concat(i,`px;
|
|
414
|
-
padding-right: `).concat(a,`px;
|
|
415
|
-
margin-left:0;
|
|
416
|
-
margin-top:0;
|
|
417
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
418
|
-
`),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
.`).concat(hd,` {
|
|
422
|
-
right: `).concat(s,"px ").concat(r,`;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.`).concat(md,` {
|
|
426
|
-
margin-right: `).concat(s,"px ").concat(r,`;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.`).concat(hd," .").concat(hd,` {
|
|
430
|
-
right: 0 `).concat(r,`;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.`).concat(md," .").concat(md,` {
|
|
434
|
-
margin-right: 0 `).concat(r,`;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
body[`).concat(Ca,`] {
|
|
438
|
-
`).concat(FV,": ").concat(s,`px;
|
|
439
|
-
}
|
|
440
|
-
`)},nA=function(){var e=parseInt(document.body.getAttribute(Ca)||"0",10);return isFinite(e)?e:0},oK=function(){h.useEffect(function(){return document.body.setAttribute(Ca,(nA()+1).toString()),function(){var e=nA()-1;e<=0?document.body.removeAttribute(Ca):document.body.setAttribute(Ca,e.toString())}},[])},iK=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;oK();var i=h.useMemo(function(){return tK(o)},[o]);return h.createElement(nK,{styles:rK(i,!t,o,n?"":"!important")})},vy=!1;if(typeof window<"u")try{var Ru=Object.defineProperty({},"passive",{get:function(){return vy=!0,!0}});window.addEventListener("test",Ru,Ru),window.removeEventListener("test",Ru,Ru)}catch{vy=!1}var Zi=vy?{passive:!1}:!1,aK=function(e){return e.tagName==="TEXTAREA"},O2=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aK(e)&&n[t]==="visible")},sK=function(e){return O2(e,"overflowY")},lK=function(e){return O2(e,"overflowX")},rA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=T2(e,r);if(o){var i=P2(e,r),a=i[1],s=i[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cK=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uK=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},T2=function(e,t){return e==="v"?sK(t):lK(t)},P2=function(e,t){return e==="v"?cK(t):uK(t)},dK=function(e,t){return e==="h"&&t==="rtl"?-1:1},fK=function(e,t,n,r,o){var i=dK(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),u=!1,f=a>0,d=0,p=0;do{if(!s)break;var v=P2(e,s),b=v[0],y=v[1],m=v[2],g=y-m-i*b;(b||g)&&T2(e,s)&&(d+=g,p+=b);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&Math.abs(d)<1||!f&&Math.abs(p)<1)&&(u=!0),u},ku=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},oA=function(e){return[e.deltaX,e.deltaY]},iA=function(e){return e&&"current"in e?e.current:e},pK=function(e,t){return e[0]===t[0]&&e[1]===t[1]},hK=function(e){return`
|
|
441
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
442
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
443
|
-
`)},mK=0,Qi=[];function vK(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),o=h.useState(mK++)[0],i=h.useState(C2)[0],a=h.useRef(e);h.useEffect(function(){a.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=$V([e.lockRef.current],(e.shards||[]).map(iA),!0).filter(Boolean);return y.forEach(function(m){return m.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=h.useCallback(function(y,m){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var g=ku(y),x=n.current,w="deltaX"in y?y.deltaX:x[0]-g[0],E="deltaY"in y?y.deltaY:x[1]-g[1],A,S=y.target,N=Math.abs(w)>Math.abs(E)?"h":"v";if("touches"in y&&N==="h"&&S.type==="range")return!1;var _=window.getSelection(),C=_&&_.anchorNode,P=C?C===S||C.contains(S):!1;if(P)return!1;var O=rA(N,S);if(!O)return!0;if(O?A=N:(A=N==="v"?"h":"v",O=rA(N,S)),!O)return!1;if(!r.current&&"changedTouches"in y&&(w||E)&&(r.current=A),!A)return!0;var R=r.current||A;return fK(R,m,y,R==="h"?w:E)},[]),c=h.useCallback(function(y){var m=y;if(!(!Qi.length||Qi[Qi.length-1]!==i)){var g="deltaY"in m?oA(m):ku(m),x=t.current.filter(function(A){return A.name===m.type&&(A.target===m.target||m.target===A.shadowParent)&&pK(A.delta,g)})[0];if(x&&x.should){m.cancelable&&m.preventDefault();return}if(!x){var w=(a.current.shards||[]).map(iA).filter(Boolean).filter(function(A){return A.contains(m.target)}),E=w.length>0?s(m,w[0]):!a.current.noIsolation;E&&m.cancelable&&m.preventDefault()}}},[]),u=h.useCallback(function(y,m,g,x){var w={name:y,delta:m,target:g,should:x,shadowParent:yK(g)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(E){return E!==w})},1)},[]),f=h.useCallback(function(y){n.current=ku(y),r.current=void 0},[]),d=h.useCallback(function(y){u(y.type,oA(y),y.target,s(y,e.lockRef.current))},[]),p=h.useCallback(function(y){u(y.type,ku(y),y.target,s(y,e.lockRef.current))},[]);h.useEffect(function(){return Qi.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,Zi),document.addEventListener("touchmove",c,Zi),document.addEventListener("touchstart",f,Zi),function(){Qi=Qi.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Zi),document.removeEventListener("touchmove",c,Zi),document.removeEventListener("touchstart",f,Zi)}},[]);var v=e.removeScrollBar,b=e.inert;return h.createElement(h.Fragment,null,b?h.createElement(i,{styles:hK(o)}):null,v?h.createElement(iK,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yK(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gK=VV(j2,vK);var Dp=h.forwardRef(function(e,t){return h.createElement(Mp,ur({},e,{ref:t,sideCar:gK}))});Dp.classNames=Mp.classNames;var yy=["Enter"," "],xK=["ArrowDown","PageUp","Home"],I2=["ArrowUp","PageDown","End"],bK=[...xK,...I2],wK={ltr:[...yy,"ArrowRight"],rtl:[...yy,"ArrowLeft"]},SK={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yc="Menu",[Jl,AK,EK]=_p(Yc),[Fi,R2]=nr(Yc,[EK,Rp,kp]),$p=Rp(),k2=kp(),[NK,Bi]=Fi(Yc),[_K,qc]=Fi(Yc),M2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=$p(t),[c,u]=h.useState(null),f=h.useRef(!1),d=en(i),p=jp(o);return h.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),l.jsx(p2,{...s,children:l.jsx(NK,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:u,children:l.jsx(_K,{scope:t,onClose:h.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:f,dir:p,modal:a,children:r})})})};M2.displayName=Yc;var jK="MenuAnchor",g0=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=$p(n);return l.jsx(h2,{...o,...r,ref:t})});g0.displayName=jK;var x0="MenuPortal",[CK,D2]=Fi(x0,{forceMount:void 0}),$2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Bi(x0,t);return l.jsx(CK,{scope:t,forceMount:n,children:l.jsx(Ar,{present:n||i.open,children:l.jsx(Vc,{asChild:!0,container:o,children:r})})})};$2.displayName=x0;var On="MenuContent",[OK,b0]=Fi(On),L2=h.forwardRef((e,t)=>{const n=D2(On,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Bi(On,e.__scopeMenu),a=qc(On,e.__scopeMenu);return l.jsx(Jl.Provider,{scope:e.__scopeMenu,children:l.jsx(Ar,{present:r||i.open,children:l.jsx(Jl.Slot,{scope:e.__scopeMenu,children:a.modal?l.jsx(TK,{...o,ref:t}):l.jsx(PK,{...o,ref:t})})})})}),TK=h.forwardRef((e,t)=>{const n=Bi(On,e.__scopeMenu),r=h.useRef(null),o=Ce(t,r);return h.useEffect(()=>{const i=r.current;if(i)return y0(i)},[]),l.jsx(w0,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),PK=h.forwardRef((e,t)=>{const n=Bi(On,e.__scopeMenu);return l.jsx(w0,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),IK=CV("MenuContent.ScrollLock"),w0=h.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:v,disableOutsideScroll:b,...y}=e,m=Bi(On,n),g=qc(On,n),x=$p(n),w=k2(n),E=AK(n),[A,S]=h.useState(null),N=h.useRef(null),_=Ce(t,N,m.onContentChange),C=h.useRef(0),P=h.useRef(""),O=h.useRef(0),R=h.useRef(null),L=h.useRef("right"),j=h.useRef(0),T=b?Dp:h.Fragment,I=b?{as:IK,allowPinchZoom:!0}:void 0,$=M=>{var re,he;const B=P.current+M,W=E().filter(G=>!G.disabled),z=document.activeElement,J=(re=W.find(G=>G.ref.current===z))==null?void 0:re.textValue,ue=W.map(G=>G.textValue),_e=WK(ue,B,J),Ae=(he=W.find(G=>G.textValue===_e))==null?void 0:he.ref.current;(function G(Z){P.current=Z,window.clearTimeout(C.current),Z!==""&&(C.current=window.setTimeout(()=>G(""),1e3))})(B),Ae&&setTimeout(()=>Ae.focus())};h.useEffect(()=>()=>window.clearTimeout(C.current),[]),l0();const k=h.useCallback(M=>{var W,z;return L.current===((W=R.current)==null?void 0:W.side)&&VK(M,(z=R.current)==null?void 0:z.area)},[]);return l.jsx(OK,{scope:n,searchRef:P,onItemEnter:h.useCallback(M=>{k(M)&&M.preventDefault()},[k]),onItemLeave:h.useCallback(M=>{var B;k(M)||((B=N.current)==null||B.focus(),S(null))},[k]),onTriggerLeave:h.useCallback(M=>{k(M)&&M.preventDefault()},[k]),pointerGraceTimerRef:O,onPointerGraceIntentChange:h.useCallback(M=>{R.current=M},[]),children:l.jsx(T,{...I,children:l.jsx(Cp,{asChild:!0,trapped:o,onMountAutoFocus:Q(i,M=>{var B;M.preventDefault(),(B=N.current)==null||B.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:l.jsx(Wc,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:d,onInteractOutside:p,onDismiss:v,children:l.jsx(S2,{asChild:!0,...w,dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:S,onEntryFocus:Q(c,M=>{g.isUsingKeyboardRef.current||M.preventDefault()}),preventScrollOnEntryFocus:!0,children:l.jsx(m2,{role:"menu","aria-orientation":"vertical","data-state":eM(m.open),"data-radix-menu-content":"",dir:g.dir,...x,...y,ref:_,style:{outline:"none",...y.style},onKeyDown:Q(y.onKeyDown,M=>{const W=M.target.closest("[data-radix-menu-content]")===M.currentTarget,z=M.ctrlKey||M.altKey||M.metaKey,J=M.key.length===1;W&&(M.key==="Tab"&&M.preventDefault(),!z&&J&&$(M.key));const ue=N.current;if(M.target!==ue||!bK.includes(M.key))return;M.preventDefault();const Ae=E().filter(re=>!re.disabled).map(re=>re.ref.current);I2.includes(M.key)&&Ae.reverse(),HK(Ae)}),onBlur:Q(e.onBlur,M=>{M.currentTarget.contains(M.target)||(window.clearTimeout(C.current),P.current="")}),onPointerMove:Q(e.onPointerMove,ec(M=>{const B=M.target,W=j.current!==M.clientX;if(M.currentTarget.contains(B)&&W){const z=M.clientX>j.current?"right":"left";L.current=z,j.current=M.clientX}}))})})})})})})});L2.displayName=On;var RK="MenuGroup",S0=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(de.div,{role:"group",...r,ref:t})});S0.displayName=RK;var kK="MenuLabel",F2=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(de.div,{...r,ref:t})});F2.displayName=kK;var Zd="MenuItem",aA="menu.itemSelect",Lp=h.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=h.useRef(null),a=qc(Zd,e.__scopeMenu),s=b0(Zd,e.__scopeMenu),c=Ce(t,i),u=h.useRef(!1),f=()=>{const d=i.current;if(!n&&d){const p=new CustomEvent(aA,{bubbles:!0,cancelable:!0});d.addEventListener(aA,v=>r==null?void 0:r(v),{once:!0}),s0(d,p),p.defaultPrevented?u.current=!1:a.onClose()}};return l.jsx(B2,{...o,ref:c,disabled:n,onClick:Q(e.onClick,f),onPointerDown:d=>{var p;(p=e.onPointerDown)==null||p.call(e,d),u.current=!0},onPointerUp:Q(e.onPointerUp,d=>{var p;u.current||(p=d.currentTarget)==null||p.click()}),onKeyDown:Q(e.onKeyDown,d=>{const p=s.searchRef.current!=="";n||p&&d.key===" "||yy.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Lp.displayName=Zd;var B2=h.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=b0(Zd,n),s=k2(n),c=h.useRef(null),u=Ce(t,c),[f,d]=h.useState(!1),[p,v]=h.useState("");return h.useEffect(()=>{const b=c.current;b&&v((b.textContent??"").trim())},[i.children]),l.jsx(Jl.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:l.jsx(A2,{asChild:!0,...s,focusable:!r,children:l.jsx(de.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:Q(e.onPointerMove,ec(b=>{r?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Q(e.onPointerLeave,ec(b=>a.onItemLeave(b))),onFocus:Q(e.onFocus,()=>d(!0)),onBlur:Q(e.onBlur,()=>d(!1))})})})}),MK="MenuCheckboxItem",U2=h.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return l.jsx(V2,{scope:e.__scopeMenu,checked:n,children:l.jsx(Lp,{role:"menuitemcheckbox","aria-checked":Qd(n)?"mixed":n,...o,ref:t,"data-state":E0(n),onSelect:Q(o.onSelect,()=>r==null?void 0:r(Qd(n)?!0:!n),{checkForDefaultPrevented:!1})})})});U2.displayName=MK;var H2="MenuRadioGroup",[DK,$K]=Fi(H2,{value:void 0,onValueChange:()=>{}}),z2=h.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=en(r);return l.jsx(DK,{scope:e.__scopeMenu,value:n,onValueChange:i,children:l.jsx(S0,{...o,ref:t})})});z2.displayName=H2;var W2="MenuRadioItem",G2=h.forwardRef((e,t)=>{const{value:n,...r}=e,o=$K(W2,e.__scopeMenu),i=n===o.value;return l.jsx(V2,{scope:e.__scopeMenu,checked:i,children:l.jsx(Lp,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":E0(i),onSelect:Q(r.onSelect,()=>{var a;return(a=o.onValueChange)==null?void 0:a.call(o,n)},{checkForDefaultPrevented:!1})})})});G2.displayName=W2;var A0="MenuItemIndicator",[V2,LK]=Fi(A0,{checked:!1}),K2=h.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=LK(A0,n);return l.jsx(Ar,{present:r||Qd(i.checked)||i.checked===!0,children:l.jsx(de.span,{...o,ref:t,"data-state":E0(i.checked)})})});K2.displayName=A0;var FK="MenuSeparator",Y2=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return l.jsx(de.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Y2.displayName=FK;var BK="MenuArrow",q2=h.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=$p(n);return l.jsx(v2,{...o,...r,ref:t})});q2.displayName=BK;var UK="MenuSub",[v1e,X2]=Fi(UK),ll="MenuSubTrigger",Z2=h.forwardRef((e,t)=>{const n=Bi(ll,e.__scopeMenu),r=qc(ll,e.__scopeMenu),o=X2(ll,e.__scopeMenu),i=b0(ll,e.__scopeMenu),a=h.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},f=h.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return h.useEffect(()=>f,[f]),h.useEffect(()=>{const d=s.current;return()=>{window.clearTimeout(d),c(null)}},[s,c]),l.jsx(g0,{asChild:!0,...u,children:l.jsx(B2,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":eM(n.open),...e,ref:eo(t,o.onTriggerChange),onClick:d=>{var p;(p=e.onClick)==null||p.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Q(e.onPointerMove,ec(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Q(e.onPointerLeave,ec(d=>{var v,b;f();const p=(v=n.content)==null?void 0:v.getBoundingClientRect();if(p){const y=(b=n.content)==null?void 0:b.dataset.side,m=y==="right",g=m?-5:5,x=p[m?"left":"right"],w=p[m?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+g,y:d.clientY},{x,y:p.top},{x:w,y:p.top},{x:w,y:p.bottom},{x,y:p.bottom}],side:y}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Q(e.onKeyDown,d=>{var v;const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||wK[r.dir].includes(d.key)&&(n.onOpenChange(!0),(v=n.content)==null||v.focus(),d.preventDefault())})})})});Z2.displayName=ll;var Q2="MenuSubContent",J2=h.forwardRef((e,t)=>{const n=D2(On,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Bi(On,e.__scopeMenu),a=qc(On,e.__scopeMenu),s=X2(Q2,e.__scopeMenu),c=h.useRef(null),u=Ce(t,c);return l.jsx(Jl.Provider,{scope:e.__scopeMenu,children:l.jsx(Ar,{present:r||i.open,children:l.jsx(Jl.Slot,{scope:e.__scopeMenu,children:l.jsx(w0,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var d;a.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Q(e.onFocusOutside,f=>{f.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Q(e.onEscapeKeyDown,f=>{a.onClose(),f.preventDefault()}),onKeyDown:Q(e.onKeyDown,f=>{var v;const d=f.currentTarget.contains(f.target),p=SK[a.dir].includes(f.key);d&&p&&(i.onOpenChange(!1),(v=s.trigger)==null||v.focus(),f.preventDefault())})})})})})});J2.displayName=Q2;function eM(e){return e?"open":"closed"}function Qd(e){return e==="indeterminate"}function E0(e){return Qd(e)?"indeterminate":e?"checked":"unchecked"}function HK(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function zK(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function WK(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=zK(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function GK(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i],c=t[a],u=s.x,f=s.y,d=c.x,p=c.y;f>r!=p>r&&n<(d-u)*(r-f)/(p-f)+u&&(o=!o)}return o}function VK(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return GK(n,t)}function ec(e){return t=>t.pointerType==="mouse"?e(t):void 0}var KK=M2,YK=g0,qK=$2,XK=L2,ZK=S0,QK=F2,JK=Lp,e9=U2,t9=z2,n9=G2,r9=K2,o9=Y2,i9=q2,a9=Z2,s9=J2,Fp="DropdownMenu",[l9]=nr(Fp,[R2]),Gt=R2(),[c9,tM]=l9(Fp),nM=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=Gt(t),u=h.useRef(null),[f,d]=Do({prop:o,defaultProp:i??!1,onChange:a,caller:Fp});return l.jsx(c9,{scope:t,triggerId:mr(),triggerRef:u,contentId:mr(),open:f,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(p=>!p),[d]),modal:s,children:l.jsx(KK,{...c,open:f,onOpenChange:d,dir:r,modal:s,children:n})})};nM.displayName=Fp;var rM="DropdownMenuTrigger",oM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=tM(rM,n),a=Gt(n);return l.jsx(YK,{asChild:!0,...a,children:l.jsx(de.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:eo(t,i.triggerRef),onPointerDown:Q(e.onPointerDown,s=>{!r&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:Q(e.onKeyDown,s=>{r||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});oM.displayName=rM;var u9="DropdownMenuPortal",iM=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Gt(t);return l.jsx(qK,{...r,...n})};iM.displayName=u9;var aM="DropdownMenuContent",sM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tM(aM,n),i=Gt(n),a=h.useRef(!1);return l.jsx(XK,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:Q(e.onCloseAutoFocus,s=>{var c;a.current||(c=o.triggerRef.current)==null||c.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:Q(e.onInteractOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,f=c.button===2||u;(!o.modal||f)&&(a.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)"}})});sM.displayName=aM;var d9="DropdownMenuGroup",f9=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(ZK,{...o,...r,ref:t})});f9.displayName=d9;var p9="DropdownMenuLabel",lM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(QK,{...o,...r,ref:t})});lM.displayName=p9;var h9="DropdownMenuItem",cM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(JK,{...o,...r,ref:t})});cM.displayName=h9;var m9="DropdownMenuCheckboxItem",uM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(e9,{...o,...r,ref:t})});uM.displayName=m9;var v9="DropdownMenuRadioGroup",y9=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(t9,{...o,...r,ref:t})});y9.displayName=v9;var g9="DropdownMenuRadioItem",dM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(n9,{...o,...r,ref:t})});dM.displayName=g9;var x9="DropdownMenuItemIndicator",fM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(r9,{...o,...r,ref:t})});fM.displayName=x9;var b9="DropdownMenuSeparator",pM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(o9,{...o,...r,ref:t})});pM.displayName=b9;var w9="DropdownMenuArrow",S9=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(i9,{...o,...r,ref:t})});S9.displayName=w9;var A9="DropdownMenuSubTrigger",hM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(a9,{...o,...r,ref:t})});hM.displayName=A9;var E9="DropdownMenuSubContent",mM=h.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Gt(n);return l.jsx(s9,{...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)"}})});mM.displayName=E9;var N9=nM,_9=oM,j9=iM,vM=sM,yM=lM,gM=cM,xM=uM,bM=dM,wM=fM,SM=pM,AM=hM,EM=mM;const NM=N9,_M=_9,C9=h.forwardRef(({className:e,inset:t,children:n,...r},o)=>l.jsxs(AM,{ref:o,className:oe("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,l.jsx(r6,{className:"ml-auto h-4 w-4"})]}));C9.displayName=AM.displayName;const O9=h.forwardRef(({className:e,...t},n)=>l.jsx(EM,{ref:n,className:oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",e),...t}));O9.displayName=EM.displayName;const N0=h.forwardRef(({className:e,sideOffset:t=4,...n},r)=>l.jsx(j9,{children:l.jsx(vM,{ref:r,sideOffset:t,className:oe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 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",e),...n})}));N0.displayName=vM.displayName;const ma=h.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(gM,{ref:r,className:oe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));ma.displayName=gM.displayName;const T9=h.forwardRef(({className:e,children:t,checked:n,...r},o)=>l.jsxs(xM,{ref:o,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(wM,{children:l.jsx(Sp,{className:"h-4 w-4"})})}),t]}));T9.displayName=xM.displayName;const P9=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(bM,{ref:r,className:oe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(wM,{children:l.jsx(i6,{className:"h-2 w-2 fill-current"})})}),t]}));P9.displayName=bM.displayName;const I9=h.forwardRef(({className:e,inset:t,...n},r)=>l.jsx(yM,{ref:r,className:oe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));I9.displayName=yM.displayName;const R9=h.forwardRef(({className:e,...t},n)=>l.jsx(SM,{ref:n,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));R9.displayName=SM.displayName;const k9={theme:"system",setTheme:()=>null},jM=h.createContext(k9);function M9({children:e,defaultTheme:t="system",storageKey:n="truthound-theme",...r}){const[o,i]=h.useState(()=>localStorage.getItem(n)||t);h.useEffect(()=>{const s=window.document.documentElement;if(s.classList.remove("light","dark"),o==="system"){const c=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";s.classList.add(c);return}s.classList.add(o)},[o]);const a={theme:o,setTheme:s=>{localStorage.setItem(n,s),i(s)}};return l.jsx(jM.Provider,{...r,value:a,children:e})}const D9=()=>{const e=h.useContext(jM);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},$9="/assets/logo--IpBiMPK.png",L9=[{key:"dashboard",href:"/",icon:c6},{key:"sources",href:"/sources",icon:Cn},{key:"catalog",href:"/catalog",icon:s6},{key:"glossary",href:"/glossary",icon:Ba},{key:"drift",href:"/drift",icon:Tk},{key:"schedules",href:"/schedules",icon:Ap},{key:"activity",href:"/activity",icon:Nk},{key:"notifications",href:"/notifications",icon:jk}];function F9(){const e=Hc(),t=me(Mi),{locale:n,setLocale:r}=Y8(),{theme:o,setTheme:i}=D9(),[a,s]=h.useState(!1),c=OS.find(u=>u.code===n);return l.jsxs("div",{className:"min-h-screen bg-background",style:{paddingTop:"var(--demo-banner-height, 0px)"},children:[a&&l.jsx("div",{className:"fixed inset-0 z-40 bg-black/50 lg:hidden",style:{top:"var(--demo-banner-height, 0px)"},onClick:()=>s(!1)}),l.jsxs("aside",{className:oe("fixed left-0 bottom-0 z-50 w-48 transform bg-card border-r transition-transform duration-200 lg:translate-x-0",a?"translate-x-0":"-translate-x-full"),style:{top:"var(--demo-banner-height, 0px)"},children:[l.jsxs("div",{className:"flex h-16 items-center gap-2 border-b px-6",children:[l.jsx("div",{className:"h-8 w-8 rounded-lg bg-primary flex items-center justify-center",children:l.jsx("img",{src:$9,alt:"Truthound",className:"h-6 w-6"})}),l.jsx("span",{className:"font-semibold text-lg",children:"Truthound"})]}),l.jsx("nav",{className:"flex-1 space-y-1 p-4",children:L9.map(u=>{const f=u.href==="/"?e.pathname==="/":e.pathname.startsWith(u.href);return l.jsxs(Pe,{to:u.href,onClick:()=>s(!1),className:oe("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",f?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[l.jsx(u.icon,{className:"h-5 w-5"}),t[u.key]]},u.key)})})]}),l.jsxs("div",{className:"lg:pl-48",children:[l.jsxs("header",{className:"sticky z-30 flex h-16 items-center gap-4 border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 px-6",style:{top:"var(--demo-banner-height, 0px)"},children:[l.jsx(Y,{variant:"ghost",size:"icon",className:"lg:hidden",onClick:()=>s(!0),children:l.jsx(d6,{className:"h-5 w-5"})}),l.jsx("div",{className:"flex-1"}),l.jsxs("div",{className:"flex items-center gap-1",children:[l.jsxs(NM,{children:[l.jsx(_M,{asChild:!0,children:l.jsx(Y,{variant:"ghost",size:"icon",title:c==null?void 0:c.nativeName,children:l.jsx(n0,{className:"h-4 w-4"})})}),l.jsx(N0,{align:"end",children:OS.map(u=>l.jsxs(ma,{onClick:()=>r(u.code),className:"flex items-center justify-between gap-2",children:[l.jsx("span",{children:u.nativeName}),n===u.code&&l.jsx(Sp,{className:"h-4 w-4 text-primary"})]},u.code))})]}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>i(o==="dark"?"light":"dark"),title:"Toggle theme",children:o==="dark"?l.jsx(S6,{className:"h-4 w-4"}):l.jsx(f6,{className:"h-4 w-4"})})]})]}),l.jsx("main",{className:"p-6",children:l.jsx(a5,{})})]})]})}const B9="demo",U9={nodeType:"translation",translation:{en:{title:"Demo Mode",description:"This is a demo with simulated data. No backend required.",dismiss:"Dismiss banner"},ko:{title:"데모 모드",description:"시뮬레이션 데이터로 실행 중입니다. 백엔드가 필요하지 않습니다.",dismiss:"배너 닫기"}}},H9=["demo::local::src/content/demo.content.ts"],z9={key:B9,content:U9,localIds:H9};function F(e){return e==null?"":typeof e=="string"?e:typeof e=="object"&&"value"in e&&typeof e.value=="string"?e.value:String(e)}const sA=40;function W9(){const[e,t]=h.useState(!1);return{isVisible:!1,dismiss:()=>t(!0)}}function G9(){const e=me(z9),{isVisible:t,dismiss:n}=W9();return h.useEffect(()=>(document.documentElement.style.setProperty("--demo-banner-height",t?`${sA}px`:"0px"),()=>{document.documentElement.style.setProperty("--demo-banner-height","0px")}),[t]),t?l.jsx("div",{className:"fixed top-0 left-0 right-0 z-[100] bg-gradient-to-r from-amber-500/90 to-orange-500/90 text-white px-4 py-2 text-sm",style:{height:sA},children:l.jsxs("div",{className:"container mx-auto flex items-center justify-between h-full",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Mo,{className:"h-4 w-4"}),l.jsxs("span",{children:[l.jsx("strong",{children:e.title})," - ",e.description]})]}),l.jsx("button",{onClick:n,className:"p-1 hover:bg-white/20 rounded transition-colors","aria-label":F(e.dismiss),children:l.jsx(i0,{className:"h-4 w-4"})})]})}):null}function V9({message:e="Loading...",fullScreen:t=!0}){const n=t?"flex items-center justify-center h-screen w-full":"flex items-center justify-center p-8";return l.jsx("div",{className:n,children:l.jsxs("div",{className:"flex flex-col items-center gap-3",children:[l.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"}),l.jsx("span",{className:"text-sm text-muted-foreground",children:e})]})})}const K9="dashboard",Y9={nodeType:"translation",translation:{en:{title:"Data Health Overview",subtitle:"Data quality overview and monitoring",totalSources:"Total Sources",configuredSources:"Configured data sources",passed:"Passed",validationPassed:"Validation passed",failed:"Failed",validationFailed:"Validation failed",pending:"Pending",notValidated:"Not yet validated",recentSources:"Recent Sources",recentSourcesDesc:"Your configured data sources",viewAll:"View All",noSources:"No data sources configured yet",addFirstSource:"Add Your First Source",lastValidated:"Last validated",loadError:"Failed to load dashboard data",sources:"Data Sources",passRate:"Pass Rate",failedToday:"Failed Today",scheduled:"Scheduled",recentFailures:"Recent Failures",upcomingSchedules:"Upcoming Schedules",noFailures:"No recent failures",noSchedules:"No upcoming schedules"},ko:{title:"데이터 품질 현황",subtitle:"데이터 품질 개요 및 모니터링",totalSources:"전체 소스",configuredSources:"설정된 데이터 소스",passed:"통과",validationPassed:"검증 통과",failed:"실패",validationFailed:"검증 실패",pending:"대기 중",notValidated:"검증 전",recentSources:"최근 소스",recentSourcesDesc:"설정된 데이터 소스 목록",viewAll:"전체 보기",noSources:"설정된 데이터 소스가 없습니다",addFirstSource:"첫 번째 소스 추가하기",lastValidated:"마지막 검증",loadError:"대시보드 데이터를 불러오지 못했습니다",sources:"데이터 소스",passRate:"통과율",failedToday:"오늘 실패",scheduled:"스케줄됨",recentFailures:"최근 실패",upcomingSchedules:"예정된 스케줄",noFailures:"최근 실패가 없습니다",noSchedules:"예정된 스케줄이 없습니다"}}},q9=["dashboard::local::src/content/dashboard.content.ts"],X9={key:K9,content:Y9,localIds:q9},Z9="common",Q9={nodeType:"translation",translation:{en:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",create:"Create",update:"Update",close:"Close",confirm:"Confirm",loading:"Loading...",error:"Error",success:"Success",warning:"Warning",info:"Info",search:"Search",filter:"Filter",refresh:"Refresh",back:"Back",next:"Next",previous:"Previous",yes:"Yes",no:"No",all:"All",none:"None",actions:"Actions",status:"Status",name:"Name",type:"Type",description:"Description",createdAt:"Created At",updatedAt:"Updated At",active:"Active",inactive:"Inactive",enabled:"Enabled",disabled:"Disabled",noData:"No data available",noResults:"No results found",retry:"Retry",source:"Source",schedule:"Schedule",never:"Never",saving:"Saving..."},ko:{save:"저장",cancel:"취소",delete:"삭제",edit:"편집",add:"추가",create:"생성",update:"수정",close:"닫기",confirm:"확인",loading:"로딩 중...",error:"오류",success:"성공",warning:"경고",info:"정보",search:"검색",filter:"필터",refresh:"새로고침",back:"뒤로",next:"다음",previous:"이전",yes:"예",no:"아니오",all:"전체",none:"없음",actions:"작업",status:"상태",name:"이름",type:"유형",description:"설명",createdAt:"생성일",updatedAt:"수정일",active:"활성",inactive:"비활성",enabled:"활성화됨",disabled:"비활성화됨",noData:"데이터가 없습니다",noResults:"검색 결과가 없습니다",retry:"다시 시도",source:"소스",schedule:"스케줄",never:"없음",saving:"저장 중..."}}},J9=["common::local::src/content/common.content.ts"],Vt={key:Z9,content:Q9,localIds:J9},e7="validation",t7={nodeType:"translation",translation:{en:{title:"Validations",run:"Run Validation",running:"Running...",passed:"Passed",failed:"Failed",error:"Error",pending:"Pending",success:"Passed",warning:"Warning",passRate:"Pass Rate",totalRules:"Total Rules",duration:"Duration",totalIssues:"Total Issues",criticalIssues:"Critical Issues",highIssues:"High Issues",mediumIssues:"Medium Issues",lowIssues:"Low Issues",noIssues:"No issues found",viewDetails:"View Details",severity:{critical:"Critical",high:"High",medium:"Medium",low:"Low"}},ko:{title:"검증",run:"검증 실행",running:"실행 중...",passed:"통과",failed:"실패",error:"오류",pending:"대기 중",success:"통과",warning:"경고",passRate:"통과율",totalRules:"전체 규칙",duration:"소요 시간",totalIssues:"전체 이슈",criticalIssues:"심각한 이슈",highIssues:"높은 이슈",mediumIssues:"중간 이슈",lowIssues:"낮은 이슈",noIssues:"발견된 이슈가 없습니다",viewDetails:"상세 보기",severity:{critical:"심각",high:"높음",medium:"중간",low:"낮음"}}}},n7=["validation::local::src/content/validation.content.ts"],_0={key:e7,content:t7,localIds:n7},q=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));q.displayName="Card";const ye=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("flex flex-col space-y-1.5 p-6",e),...t}));ye.displayName="CardHeader";const ge=h.forwardRef(({className:e,...t},n)=>l.jsx("h3",{ref:n,className:oe("text-2xl font-semibold leading-none tracking-tight",e),...t}));ge.displayName="CardTitle";const $r=h.forwardRef(({className:e,...t},n)=>l.jsx("p",{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));$r.displayName="CardDescription";const X=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("p-6 pt-0",e),...t}));X.displayName="CardContent";const r7=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{ref:n,className:oe("flex items-center p-6 pt-0",e),...t}));r7.displayName="CardFooter";const o7=Ep("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200",warning:"border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",critical:"border-transparent bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200",high:"border-transparent bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-200",medium:"border-transparent bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200",low:"border-transparent bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200"}},defaultVariants:{variant:"default"}});function se({className:e,variant:t,...n}){return l.jsx("div",{className:oe(o7({variant:t}),e),...n})}const i7="/api/v1";class a7 extends Error{constructor(t,n,r){super(`API Error: ${t} ${n}`),this.status=t,this.statusText=n,this.data=r,this.name="ApiError"}}async function ae(e,t={}){const{params:n,...r}=t;let o=`${i7}${e}`;if(n){const c=new URLSearchParams;Object.entries(n).forEach(([f,d])=>{d!=null&&c.append(f,String(d))});const u=c.toString();u&&(o+=`?${u}`)}const i=new Headers(r.headers);!i.has("Content-Type")&&r.body&&i.set("Content-Type","application/json");const a=await fetch(o,{...r,headers:i});if(!a.ok){let c;try{c=await a.json()}catch{}throw new a7(a.status,a.statusText,c)}const s=a.headers.get("Content-Type");return!s||!s.includes("application/json")?{}:a.json()}async function Xc(e){return ae("/sources",{params:e})}async function j0(e){return(await ae(`/sources/${e}`)).data}async function s7(e){return ae(`/sources/${e}`,{method:"DELETE"})}async function CM(e,t){return(await ae(`/validations/sources/${e}/validate`,{method:"POST",body:JSON.stringify(t||{})})).data}async function l7(e){return(await ae(`/validations/${e}`)).data}async function c7(e,t){return ae(`/validations/sources/${e}/validations`,{params:t})}async function u7(e){return(await ae(`/sources/${e}/schema`)).data}async function OM(e,t){return(await ae(`/sources/${e}/learn`,{method:"POST",body:JSON.stringify(t||{})})).data}async function d7(e){return(await ae(`/sources/${e}/profile`,{method:"POST"})).data}async function f7(e,t){return ae(`/sources/${e}/history`,{params:t})}async function p7(e){return ae("/drift/compare",{method:"POST",body:JSON.stringify(e)})}async function h7(e){return ae("/drift/comparisons",{params:e})}async function m7(e){return ae("/schedules",{params:e})}async function v7(e){return ae("/schedules",{method:"POST",body:JSON.stringify(e)})}async function y7(e){return ae(`/schedules/${e}`,{method:"DELETE"})}async function g7(e){return ae(`/schedules/${e}/pause`,{method:"POST"})}async function x7(e){return ae(`/schedules/${e}/resume`,{method:"POST"})}async function b7(e){return ae(`/schedules/${e}/run`,{method:"POST"})}async function w7(e){return ae("/notifications/channels",{params:e})}async function S7(e,t){return ae(`/notifications/channels/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function A7(e){return ae(`/notifications/channels/${e}`,{method:"DELETE"})}async function E7(e){return ae(`/notifications/channels/${e}/test`,{method:"POST"})}async function N7(e){return ae("/notifications/rules",{params:e})}async function _7(e,t){return ae(`/notifications/rules/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function j7(e){return ae(`/notifications/rules/${e}`,{method:"DELETE"})}async function C7(e){return ae("/notifications/logs",{params:e})}async function O7(e){return ae("/notifications/logs/stats",{params:e})}async function T7(e){return ae("/glossary/terms",{params:e})}async function TM(e){return ae(`/glossary/terms/${e}`)}async function P7(e){return ae("/glossary/terms",{method:"POST",body:JSON.stringify(e)})}async function I7(e,t){return ae(`/glossary/terms/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function R7(e){return ae(`/glossary/terms/${e}`,{method:"DELETE"})}async function k7(e){return ae(`/glossary/terms/${e}/history`)}async function M7(e){return ae(`/glossary/terms/${e}/relationships`)}async function D7(){return ae("/glossary/categories")}async function $7(e){return ae("/glossary/categories",{method:"POST",body:JSON.stringify(e)})}async function L7(e,t){return ae(`/glossary/categories/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function F7(e){return ae(`/glossary/categories/${e}`,{method:"DELETE"})}async function B7(e){return ae("/catalog/assets",{params:e})}async function PM(e){return ae(`/catalog/assets/${e}`)}async function U7(e){return ae("/catalog/assets",{method:"POST",body:JSON.stringify(e)})}async function H7(e,t){return ae(`/catalog/assets/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function z7(e){return ae(`/catalog/assets/${e}`,{method:"DELETE"})}async function W7(e,t){return ae(`/catalog/columns/${e}/term`,{method:"PUT",body:JSON.stringify({term_id:t})})}async function G7(e){return ae(`/catalog/columns/${e}/term`,{method:"DELETE"})}async function V7(e,t){return ae("/comments",{params:{resource_type:e,resource_id:t}})}async function lA(e){return ae("/comments",{method:"POST",body:JSON.stringify(e)})}async function K7(e,t){return ae(`/comments/${e}`,{method:"PUT",body:JSON.stringify(t)})}async function Y7(e){return ae(`/comments/${e}`,{method:"DELETE"})}async function q7(e){return ae("/activities",{params:e})}const lo={get:e=>ae(e),post:(e,t)=>ae(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>ae(e,{method:"PUT",body:JSON.stringify(t)}),delete:e=>ae(e,{method:"DELETE"})};function Mu({value:e,duration:t=1e3,className:n}){const[r,o]=h.useState(0),[i,a]=h.useState(!0),s=h.useRef(null),c=h.useRef(null),u=h.useRef(!1);return h.useEffect(()=>{if(u.current){o(e);return}a(!0);const f=0,d=e;if(d===0){o(0),a(!1),u.current=!0;return}const p=v=>{c.current===null&&(c.current=v);const b=v-c.current,y=Math.min(b/t,1),m=y===1?1:1-Math.pow(2,-10*y),g=f+(d-f)*m;o(g),y<1?s.current=requestAnimationFrame(p):(o(d),a(!1),u.current=!0)};return c.current=null,s.current=requestAnimationFrame(p),()=>{s.current&&cancelAnimationFrame(s.current)}},[e,t]),l.jsx("span",{className:oe("inline-block transition-all",i&&"animate-in fade-in zoom-in-50 duration-500",n),children:Math.round(r)})}function Du({children:e,className:t,glowColor:n="white"}){const r=h.useRef(null),[o,i]=h.useState({x:0,y:0}),[a,s]=h.useState(!1),c=d=>{if(!r.current)return;const p=r.current.getBoundingClientRect(),v=d.clientX-p.left,b=d.clientY-p.top;i({x:v,y:b})},u=()=>s(!0),f=()=>s(!1);return l.jsxs(q,{ref:r,className:oe("relative overflow-hidden transition-all duration-300",t),onMouseMove:c,onMouseEnter:u,onMouseLeave:f,style:{transform:a?"translateY(-2px)":"translateY(0)"},children:[l.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 transition-opacity duration-300",style:{opacity:a?1:0,background:`radial-gradient(
|
|
444
|
-
350px circle at ${o.x}px ${o.y}px,
|
|
445
|
-
${n}15 0%,
|
|
446
|
-
${n}08 25%,
|
|
447
|
-
transparent 50%
|
|
448
|
-
)`}}),l.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 rounded-lg transition-opacity duration-300",style:{opacity:a?1:0,background:`radial-gradient(
|
|
449
|
-
200px circle at ${o.x}px ${o.y}px,
|
|
450
|
-
${n}20 0%,
|
|
451
|
-
transparent 70%
|
|
452
|
-
)`,mask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",maskComposite:"xor",WebkitMaskComposite:"xor",padding:"1px"}}),l.jsx("div",{className:"pointer-events-none absolute inset-0 z-10 transition-opacity duration-500",style:{opacity:a?.6:0,background:`linear-gradient(
|
|
453
|
-
105deg,
|
|
454
|
-
transparent 40%,
|
|
455
|
-
${n}10 45%,
|
|
456
|
-
${n}25 50%,
|
|
457
|
-
${n}10 55%,
|
|
458
|
-
transparent 60%
|
|
459
|
-
)`,backgroundSize:"200% 100%",backgroundPosition:a?"100% 0":"-100% 0",transition:"background-position 0.8s ease, opacity 0.3s ease"}}),e]})}function X7(){const e=me(Mi),t=me(X9),n=me(Vt),r=me(_0),[o,i]=h.useState([]),[a,s]=h.useState(!0),[c,u]=h.useState(null),f=h.useMemo(()=>m=>{if(!m)return null;switch(m){case"passed":return r.passed;case"success":return r.success;case"failed":return r.failed;case"error":return r.error;case"pending":return r.pending;case"warning":return r.warning;default:return m}},[r]);h.useEffect(()=>{d()},[]);async function d(){try{s(!0);const m=await Xc({limit:10});i(m.data)}catch(m){u(m)}finally{s(!1)}}const p=o.length,v=o.filter(m=>m.latest_validation_status==="success").length,b=o.filter(m=>m.latest_validation_status==="failed"||m.latest_validation_status==="error").length,y=o.filter(m=>!m.latest_validation_status||m.latest_validation_status==="pending"||m.latest_validation_status==="running").length;return a?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):c?l.jsxs("div",{className:"flex flex-col items-center justify-center h-64 gap-4",children:[l.jsx(To,{className:"h-12 w-12 text-destructive"}),l.jsx("p",{className:"text-muted-foreground",children:t.loadError}),l.jsx(Y,{onClick:d,children:n.retry})]}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.dashboard}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[l.jsxs(Du,{className:"bg-gradient-to-br from-primary/10 via-primary/5 to-transparent border-primary/20",glowColor:"#fd9e4b",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-primary/10 blur-2xl"}),l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-primary/20 flex items-center justify-center",children:l.jsx(Cn,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.totalSources}),l.jsx("p",{className:"text-3xl font-bold",children:l.jsx(Mu,{value:p,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.configuredSources})]})]})})]}),l.jsxs(Du,{className:"bg-gradient-to-br from-green-500/10 via-green-500/5 to-transparent border-green-500/20",glowColor:"#22c55e",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-green-500/10 blur-2xl"}),l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-green-500/20 flex items-center justify-center",children:l.jsx(Xl,{className:"h-7 w-7 text-green-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.passed}),l.jsx("p",{className:"text-3xl font-bold text-green-500",children:l.jsx(Mu,{value:v,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.validationPassed})]})]})})]}),l.jsxs(Du,{className:"bg-gradient-to-br from-red-500/10 via-red-500/5 to-transparent border-red-500/20",glowColor:"#ef4444",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-red-500/10 blur-2xl"}),l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-red-500/20 flex items-center justify-center",children:l.jsx(To,{className:"h-7 w-7 text-red-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.failed}),l.jsx("p",{className:"text-3xl font-bold text-red-500",children:l.jsx(Mu,{value:b,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.validationFailed})]})]})})]}),l.jsxs(Du,{className:"bg-gradient-to-br from-yellow-500/10 via-yellow-500/5 to-transparent border-yellow-500/20",glowColor:"#eab308",children:[l.jsx("div",{className:"absolute top-0 right-0 -mt-4 -mr-4 h-24 w-24 rounded-full bg-yellow-500/10 blur-2xl"}),l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-xl bg-yellow-500/20 flex items-center justify-center",children:l.jsx(Mo,{className:"h-7 w-7 text-yellow-500"})}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:t.pending}),l.jsx("p",{className:"text-3xl font-bold text-yellow-500",children:l.jsx(Mu,{value:y,duration:1200})}),l.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:t.notValidated})]})]})})]})]}),l.jsxs(q,{children:[l.jsxs(ye,{className:"flex flex-row items-center justify-between",children:[l.jsxs("div",{children:[l.jsx(ge,{children:t.recentSources}),l.jsx("p",{className:"text-sm text-muted-foreground",children:t.recentSourcesDesc})]}),l.jsx(Y,{asChild:!0,variant:"outline",size:"sm",children:l.jsxs(Pe,{to:"/sources",children:[t.viewAll,l.jsx(ay,{className:"ml-2 h-4 w-4"})]})})]}),l.jsx(X,{children:o.length===0?l.jsxs("div",{className:"flex flex-col items-center justify-center py-8 text-center",children:[l.jsx(Cn,{className:"h-12 w-12 text-muted-foreground/50 mb-4"}),l.jsx("p",{className:"text-muted-foreground mb-4",children:t.noSources}),l.jsx(Y,{asChild:!0,children:l.jsx(Pe,{to:"/sources",children:t.addFirstSource})})]}):l.jsx("div",{className:"space-y-4",children:o.slice(0,5).map(m=>l.jsxs(Pe,{to:`/sources/${m.id}`,className:"flex items-center justify-between p-4 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(Cn,{className:"h-5 w-5 text-primary"})}),l.jsxs("div",{children:[l.jsx("p",{className:"font-medium",children:m.name}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:[m.type," • ",t.lastValidated,":"," ",pn(m.last_validated_at)]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[m.latest_validation_status&&l.jsx(se,{variant:m.latest_validation_status==="success"?"success":m.latest_validation_status==="failed"||m.latest_validation_status==="error"?"destructive":m.latest_validation_status==="pending"||m.latest_validation_status==="running"?"warning":"secondary",children:f(m.latest_validation_status)}),l.jsx(ay,{className:"h-4 w-4 text-muted-foreground"})]})]},m.id))})})]})]})}const Z7="sources",Q7={nodeType:"translation",translation:{en:{title:"Data Sources",subtitle:"Manage your data sources and validations",addSource:"Add Source",addFirstSource:"Add Your First Source",editSource:"Edit Source",deleteSource:"Delete Source",noSources:"No data sources configured",noSourcesYet:"No sources yet",noSourcesDesc:"Add your first data source to start monitoring data quality",sourceName:"Source Name",sourceType:"Source Type",sourcePath:"Path / Connection",lastValidated:"Last validated",never:"Never",validate:"Validate",loadError:"Failed to load sources",deleteSuccess:"Source deleted successfully",deleteFailed:"Failed to delete source",validationStarted:"Validation Started",runningValidation:"Running validation...",validationPassed:"Validation Passed",validationFailed:"Validation Failed",validationError:"Failed to run validation",confirmDelete:"Are you sure you want to delete this source? This will also delete all related schemas, rules, and validations.",types:{file:"File",csv:"CSV File",parquet:"Parquet File",json:"JSON File",database:"Database",postgresql:"PostgreSQL",mysql:"MySQL",snowflake:"Snowflake",bigquery:"BigQuery"}},ko:{title:"데이터 소스",subtitle:"데이터 소스 및 검증 관리",addSource:"소스 추가",addFirstSource:"첫 번째 소스 추가하기",editSource:"소스 편집",deleteSource:"소스 삭제",noSources:"설정된 데이터 소스가 없습니다",noSourcesYet:"소스가 없습니다",noSourcesDesc:"데이터 품질 모니터링을 시작하려면 첫 번째 소스를 추가하세요",sourceName:"소스 이름",sourceType:"소스 유형",sourcePath:"경로 / 연결",lastValidated:"마지막 검증",never:"없음",validate:"검증",loadError:"소스를 불러오지 못했습니다",deleteSuccess:"소스가 삭제되었습니다",deleteFailed:"소스 삭제에 실패했습니다",validationStarted:"검증 시작",runningValidation:"검증 실행 중...",validationPassed:"검증 통과",validationFailed:"검증 실패",validationError:"검증 실행에 실패했습니다",confirmDelete:"이 소스를 삭제하시겠습니까? 관련된 모든 스키마, 규칙, 검증 결과도 함께 삭제됩니다.",types:{file:"파일",csv:"CSV 파일",parquet:"Parquet 파일",json:"JSON 파일",database:"데이터베이스",postgresql:"PostgreSQL",mysql:"MySQL",snowflake:"Snowflake",bigquery:"BigQuery"}}}},J7=["sources::local::src/content/sources.content.ts"],eY={key:Z7,content:Q7,localIds:J7},tY=1,nY=1e6;let _m=0;function rY(){return _m=(_m+1)%Number.MAX_SAFE_INTEGER,_m.toString()}const jm=new Map,cA=e=>{if(jm.has(e))return;const t=setTimeout(()=>{jm.delete(e),wl({type:"REMOVE_TOAST",toastId:e})},nY);jm.set(e,t)},oY=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tY)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?cA(n):e.toasts.forEach(r=>{cA(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},vd=[];let yd={toasts:[]};function wl(e){yd=oY(yd,e),vd.forEach(t=>{t(yd)})}function iY({...e}){const t=rY(),n=o=>wl({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>wl({type:"DISMISS_TOAST",toastId:t});return wl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Pt(){const[e,t]=h.useState(yd);return h.useEffect(()=>(vd.push(t),()=>{const n=vd.indexOf(t);n>-1&&vd.splice(n,1)}),[e]),{...e,toast:iY,dismiss:n=>wl({type:"DISMISS_TOAST",toastId:n})}}function aY(e){const t=sY(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(cY);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function sY(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=dY(o),s=uY(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var lY=Symbol("radix.slottable");function cY(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===lY}function uY(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function dY(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Bp="Dialog",[IM,RM]=nr(Bp),[fY,rr]=IM(Bp),kM=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=h.useRef(null),c=h.useRef(null),[u,f]=Do({prop:r,defaultProp:o??!1,onChange:i,caller:Bp});return l.jsx(fY,{scope:t,triggerRef:s,contentRef:c,contentId:mr(),titleId:mr(),descriptionId:mr(),open:u,onOpenChange:f,onOpenToggle:h.useCallback(()=>f(d=>!d),[f]),modal:a,children:n})};kM.displayName=Bp;var MM="DialogTrigger",DM=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(MM,n),i=Ce(t,o.triggerRef);return l.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":T0(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});DM.displayName=MM;var C0="DialogPortal",[pY,$M]=IM(C0,{forceMount:void 0}),LM=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=rr(C0,t);return l.jsx(pY,{scope:t,forceMount:n,children:h.Children.map(r,a=>l.jsx(Ar,{present:n||i.open,children:l.jsx(Vc,{asChild:!0,container:o,children:a})}))})};LM.displayName=C0;var Jd="DialogOverlay",FM=h.forwardRef((e,t)=>{const n=$M(Jd,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rr(Jd,e.__scopeDialog);return i.modal?l.jsx(Ar,{present:r||i.open,children:l.jsx(mY,{...o,ref:t})}):null});FM.displayName=Jd;var hY=aY("DialogOverlay.RemoveScroll"),mY=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(Jd,n);return l.jsx(Dp,{as:hY,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(de.div,{"data-state":T0(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Si="DialogContent",BM=h.forwardRef((e,t)=>{const n=$M(Si,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=rr(Si,e.__scopeDialog);return l.jsx(Ar,{present:r||i.open,children:i.modal?l.jsx(vY,{...o,ref:t}):l.jsx(yY,{...o,ref:t})})});BM.displayName=Si;var vY=h.forwardRef((e,t)=>{const n=rr(Si,e.__scopeDialog),r=h.useRef(null),o=Ce(t,n.contentRef,r);return h.useEffect(()=>{const i=r.current;if(i)return y0(i)},[]),l.jsx(UM,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),yY=h.forwardRef((e,t)=>{const n=rr(Si,e.__scopeDialog),r=h.useRef(!1),o=h.useRef(!1);return l.jsx(UM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,s;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var c,u;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const a=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),UM=h.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=rr(Si,n),c=h.useRef(null),u=Ce(t,c);return l0(),l.jsxs(l.Fragment,{children:[l.jsx(Cp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:l.jsx(Wc,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":T0(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(xY,{titleId:s.titleId}),l.jsx(wY,{contentRef:c,descriptionId:s.descriptionId})]})]})}),O0="DialogTitle",HM=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(O0,n);return l.jsx(de.h2,{id:o.titleId,...r,ref:t})});HM.displayName=O0;var zM="DialogDescription",WM=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(zM,n);return l.jsx(de.p,{id:o.descriptionId,...r,ref:t})});WM.displayName=zM;var GM="DialogClose",VM=h.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=rr(GM,n);return l.jsx(de.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});VM.displayName=GM;function T0(e){return e?"open":"closed"}var KM="DialogTitleWarning",[gY,YM]=hW(KM,{contentName:Si,titleName:O0,docsSlug:"dialog"}),xY=({titleId:e})=>{const t=YM(KM),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
460
|
-
|
|
461
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
462
|
-
|
|
463
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bY="DialogDescriptionWarning",wY=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${YM(bY).contentName}}.`;return h.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},qM=kM,XM=DM,ZM=LM,P0=FM,I0=BM,R0=HM,k0=WM,M0=VM,SY=Symbol("radix.slottable");function AY(e){const t=({children:n})=>l.jsx(l.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=SY,t}var QM="AlertDialog",[EY]=nr(QM,[RM]),to=RM(),JM=e=>{const{__scopeAlertDialog:t,...n}=e,r=to(t);return l.jsx(qM,{...r,...n,modal:!0})};JM.displayName=QM;var NY="AlertDialogTrigger",_Y=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(XM,{...o,...r,ref:t})});_Y.displayName=NY;var jY="AlertDialogPortal",eD=e=>{const{__scopeAlertDialog:t,...n}=e,r=to(t);return l.jsx(ZM,{...r,...n})};eD.displayName=jY;var CY="AlertDialogOverlay",tD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(P0,{...o,...r,ref:t})});tD.displayName=CY;var Oa="AlertDialogContent",[OY,TY]=EY(Oa),PY=AY("AlertDialogContent"),nD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=to(n),a=h.useRef(null),s=Ce(t,a),c=h.useRef(null);return l.jsx(gY,{contentName:Oa,titleName:rD,docsSlug:"alert-dialog",children:l.jsx(OY,{scope:n,cancelRef:c,children:l.jsxs(I0,{role:"alertdialog",...i,...o,ref:s,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=c.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[l.jsx(PY,{children:r}),l.jsx(RY,{contentRef:a})]})})})});nD.displayName=Oa;var rD="AlertDialogTitle",oD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(R0,{...o,...r,ref:t})});oD.displayName=rD;var iD="AlertDialogDescription",aD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(k0,{...o,...r,ref:t})});aD.displayName=iD;var IY="AlertDialogAction",sD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=to(n);return l.jsx(M0,{...o,...r,ref:t})});sD.displayName=IY;var lD="AlertDialogCancel",cD=h.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=TY(lD,n),i=to(n),a=Ce(t,o);return l.jsx(M0,{...i,...r,ref:a})});cD.displayName=lD;var RY=({contentRef:e})=>{const t=`\`${Oa}\` requires a description for the component to be accessible for screen reader users.
|
|
464
|
-
|
|
465
|
-
You can add a description to the \`${Oa}\` by passing a \`${iD}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
466
|
-
|
|
467
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Oa}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
468
|
-
|
|
469
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return h.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},kY=JM,MY=eD,uD=tD,dD=nD,fD=sD,pD=cD,hD=oD,mD=aD;const DY=kY,$Y=MY,vD=h.forwardRef(({className:e,...t},n)=>l.jsx(uD,{className:oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));vD.displayName=uD.displayName;const yD=h.forwardRef(({className:e,...t},n)=>l.jsxs($Y,{children:[l.jsx(vD,{}),l.jsx(dD,{ref:n,className:oe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));yD.displayName=dD.displayName;const gD=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col space-y-2 text-center sm:text-left",e),...t});gD.displayName="AlertDialogHeader";const xD=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xD.displayName="AlertDialogFooter";const bD=h.forwardRef(({className:e,...t},n)=>l.jsx(hD,{ref:n,className:oe("text-lg font-semibold",e),...t}));bD.displayName=hD.displayName;const wD=h.forwardRef(({className:e,...t},n)=>l.jsx(mD,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));wD.displayName=mD.displayName;const SD=h.forwardRef(({className:e,...t},n)=>l.jsx(fD,{ref:n,className:oe(Np(),e),...t}));SD.displayName=fD.displayName;const AD=h.forwardRef(({className:e,...t},n)=>l.jsx(pD,{ref:n,className:oe(Np({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));AD.displayName=pD.displayName;function Zc(){const e=me(Vt),[t,n]=h.useState({isOpen:!1,title:"",description:"",confirmText:"",cancelText:"",variant:"default",resolve:null}),r=h.useCallback(s=>new Promise(c=>{n({isOpen:!0,title:s.title,description:s.description,confirmText:s.confirmText||F(e.confirm),cancelText:s.cancelText||F(e.cancel),variant:s.variant||"default",resolve:c})}),[e]),o=h.useCallback(()=>{var s;(s=t.resolve)==null||s.call(t,!0),n(c=>({...c,isOpen:!1,resolve:null}))},[t.resolve]),i=h.useCallback(()=>{var s;(s=t.resolve)==null||s.call(t,!1),n(c=>({...c,isOpen:!1,resolve:null}))},[t.resolve]),a=h.useCallback(()=>l.jsx(DY,{open:t.isOpen,onOpenChange:s=>!s&&i(),children:l.jsxs(yD,{children:[l.jsxs(gD,{children:[l.jsx(bD,{children:t.title}),t.description&&l.jsx(wD,{children:t.description})]}),l.jsxs(xD,{children:[l.jsx(AD,{onClick:i,children:t.cancelText}),l.jsx(SD,{onClick:o,className:oe(t.variant==="destructive"&&Np({variant:"destructive"})),children:t.confirmText})]})]})}),[t,o,i]);return{confirm:r,ConfirmDialog:a}}function LY(){const e=me(Mi),t=me(eY),n=me(Vt),r=me(_0),[o,i]=h.useState([]),[a,s]=h.useState(!0),{toast:c}=Pt(),{confirm:u,ConfirmDialog:f}=Zc(),d=y=>{if(!y)return null;switch(y){case"passed":return r.passed;case"success":return r.success;case"failed":return r.failed;case"error":return r.error;case"pending":return r.pending;case"warning":return r.warning;default:return y}},p=h.useCallback(async()=>{try{s(!0);const y=await Xc();i(y.data)}catch{c({title:F(n.error),description:F(t.loadError),variant:"destructive"})}finally{s(!1)}},[c,n,t]);h.useEffect(()=>{p()},[p]);async function v(y){if(await u({title:F(t.deleteSource),description:F(t.confirmDelete),confirmText:F(n.delete),variant:"destructive"}))try{await s7(y),i(g=>g.filter(x=>x.id!==y)),c({title:F(n.success),description:F(t.deleteSuccess)})}catch{c({title:F(n.error),description:F(t.deleteFailed),variant:"destructive"})}}async function b(y){try{c({title:F(t.validationStarted),description:F(t.runningValidation)});const m=await CM(y,{});i(g=>g.map(x=>x.id===y?{...x,latest_validation_status:m.status}:x)),c({title:F(m.passed?t.validationPassed:t.validationFailed),description:`${m.total_issues} issues found`,variant:m.passed?"default":"destructive"})}catch{c({title:F(n.error),description:F(t.validationError),variant:"destructive"})}}return a?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.sources}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Y,{children:[l.jsx(Jt,{className:"mr-2 h-4 w-4"}),t.addSource]})]}),o.length===0?l.jsx(q,{children:l.jsxs(X,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(Cn,{className:"h-16 w-16 text-muted-foreground/50 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold mb-2",children:t.noSourcesYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noSourcesDesc}),l.jsxs(Y,{children:[l.jsx(Jt,{className:"mr-2 h-4 w-4"}),t.addFirstSource]})]})}):l.jsx("div",{className:"grid gap-4",children:o.map(y=>l.jsx(q,{children:l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(Cn,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{children:[l.jsx(Pe,{to:`/sources/${y.id}`,className:"font-semibold hover:text-primary transition-colors",children:y.name}),l.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[l.jsx(se,{variant:"outline",children:y.type}),l.jsx("span",{children:"•"}),l.jsxs("span",{children:[t.lastValidated,": ",pn(y.last_validated_at)]})]}),y.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:y.description})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[y.latest_validation_status&&l.jsx(se,{variant:y.latest_validation_status==="success"||y.latest_validation_status==="passed"?"success":y.latest_validation_status==="failed"?"destructive":y.latest_validation_status==="warning"?"warning":"secondary",children:d(y.latest_validation_status)}),l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>b(y.id),children:[l.jsx(r0,{className:"mr-2 h-4 w-4"}),t.validate]}),l.jsx(Y,{variant:"ghost",size:"icon",asChild:!0,children:l.jsx(Pe,{to:`/sources/${y.id}`,children:l.jsx(e0,{className:"h-4 w-4"})})}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>v(y.id),children:l.jsx(Gr,{className:"h-4 w-4 text-destructive"})})]})]})})},y.id))}),l.jsx(f,{})]})}function FY(){const{id:e}=ki(),[t,n]=h.useState(null),[r,o]=h.useState(null),[i,a]=h.useState([]),[s,c]=h.useState(!0),[u,f]=h.useState(!1),{toast:d}=Pt(),p=h.useCallback(async()=>{if(e)try{c(!0);const[m,g,x]=await Promise.all([j0(e),u7(e),c7(e)]);n(m),o(g),a(x.data)}catch{d({title:"Error",description:"Failed to load source details",variant:"destructive"})}finally{c(!1)}},[e,d]);h.useEffect(()=>{p()},[p]);async function v(){if(e)try{f(!0);const m=await CM(e,{});a(g=>[m,...g]),d({title:m.passed?"Validation Passed":"Validation Failed",description:`Found ${m.total_issues} issues`,variant:m.passed?"default":"destructive"})}catch{d({title:"Error",description:"Failed to run validation",variant:"destructive"})}finally{f(!1)}}async function b(){if(e)try{d({title:"Learning Schema",description:"Analyzing data structure..."});const m=await OM(e);o(m),d({title:"Schema Learned",description:`Found ${m.column_count} columns`})}catch{d({title:"Error",description:"Failed to learn schema",variant:"destructive"})}}if(s)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(!t)return l.jsxs("div",{className:"flex flex-col items-center justify-center h-64",children:[l.jsx(To,{className:"h-12 w-12 text-destructive mb-4"}),l.jsx("p",{className:"text-muted-foreground",children:"Source not found"}),l.jsx(Y,{asChild:!0,className:"mt-4",children:l.jsx(Pe,{to:"/sources",children:"Back to Sources"})})]});const y=i[0];return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:"/sources",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Li,{className:"mr-2 h-4 w-4"}),"Back to Sources"]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(Cn,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:t.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx(se,{variant:"outline",children:t.type}),t.is_active?l.jsx(se,{variant:"success",children:"Active"}):l.jsx(se,{variant:"secondary",children:"Inactive"})]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/sources/${e}/rules`,children:[l.jsx(b6,{className:"mr-2 h-4 w-4"}),"Rules"]})}),l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/sources/${e}/profile`,children:[l.jsx(sy,{className:"mr-2 h-4 w-4"}),"Profile"]})}),l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/sources/${e}/history`,children:[l.jsx(ly,{className:"mr-2 h-4 w-4"}),"History"]})}),l.jsxs(Y,{variant:"outline",onClick:b,children:[l.jsx(Gd,{className:"mr-2 h-4 w-4"}),"Learn Schema"]}),l.jsxs(Y,{onClick:v,disabled:u,children:[l.jsx(r0,{className:"mr-2 h-4 w-4"}),u?"Validating...":"Run Validation"]})]})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsx(q,{children:l.jsx(X,{className:"pt-6",children:l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Status"}),l.jsx("div",{className:"flex items-center gap-2 mt-1",children:y!=null&&y.passed?l.jsxs(l.Fragment,{children:[l.jsx(Xl,{className:"h-5 w-5 text-green-600"}),l.jsx("span",{className:"font-semibold text-green-600",children:"Passed"})]}):y?l.jsxs(l.Fragment,{children:[l.jsx(To,{className:"h-5 w-5 text-red-600"}),l.jsx("span",{className:"font-semibold text-red-600",children:"Failed"})]}):l.jsxs(l.Fragment,{children:[l.jsx(Mo,{className:"h-5 w-5 text-yellow-600"}),l.jsx("span",{className:"font-semibold text-yellow-600",children:"Not Validated"})]})})]})})})}),l.jsx(q,{children:l.jsxs(X,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Issues"}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:Ir(y==null?void 0:y.total_issues)})]})}),l.jsx(q,{children:l.jsxs(X,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Rows"}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:Ir(y==null?void 0:y.row_count)})]})}),l.jsx(q,{children:l.jsxs(X,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Last Validation"}),l.jsx("p",{className:"text-lg font-medium mt-1",children:pn(t.last_validated_at)})]})})]}),y&&y.issues.length>0&&l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(Mo,{className:"h-5 w-5 text-yellow-600"}),"Issues Found (",y.total_issues,")"]})}),l.jsx(X,{children:l.jsx("div",{className:"space-y-3",children:y.issues.slice(0,10).map((m,g)=>l.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(se,{variant:m.severity==="critical"?"critical":m.severity==="high"?"high":m.severity==="medium"?"medium":"low",children:m.severity}),l.jsxs("div",{children:[l.jsxs("p",{className:"font-medium",children:[m.column,": ",m.issue_type]}),m.details&&l.jsx("p",{className:"text-sm text-muted-foreground",children:m.details})]})]}),l.jsxs("span",{className:"text-sm text-muted-foreground",children:[Ir(m.count)," occurrences"]})]},g))})})]}),r&&l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(Gd,{className:"h-5 w-5"}),"Schema (",r.column_count," columns)"]})}),l.jsx(X,{children:l.jsx("div",{className:"flex flex-wrap gap-2",children:r.columns.map(m=>l.jsx(se,{variant:"outline",children:m},m))})})]}),l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(ly,{className:"h-5 w-5"}),"Validation History"]})}),l.jsx(X,{children:i.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No validations yet. Run your first validation to see results here."}):l.jsx("div",{className:"space-y-3",children:i.map(m=>l.jsxs(Pe,{to:`/validations/${m.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[m.passed?l.jsx(Xl,{className:"h-5 w-5 text-green-600"}):l.jsx(To,{className:"h-5 w-5 text-red-600"}),l.jsxs("div",{children:[l.jsxs("p",{className:"font-medium",children:[m.passed?"Passed":"Failed"," -"," ",Ir(m.total_issues)," issues"]}),l.jsxs("p",{className:"text-sm text-muted-foreground",children:[pn(m.created_at)," •"," ",Lk(m.duration_ms)]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[m.critical_issues>0&&l.jsxs(se,{variant:"critical",children:[m.critical_issues," critical"]}),m.high_issues>0&&l.jsxs(se,{variant:"high",children:[m.high_issues," high"]})]})]},m.id))})})]})]})}const Cm=`# Validation Rules
|
|
470
|
-
# Define column-level and table-level validation rules
|
|
471
|
-
|
|
472
|
-
columns:
|
|
473
|
-
# Example: user_id must be not null and unique
|
|
474
|
-
# user_id:
|
|
475
|
-
# not_null: true
|
|
476
|
-
# unique: true
|
|
477
|
-
|
|
478
|
-
# Example: email must match a pattern
|
|
479
|
-
# email:
|
|
480
|
-
# pattern: "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\\\.[a-zA-Z0-9-.]+$"
|
|
481
|
-
|
|
482
|
-
# Example: age must be between 0 and 150
|
|
483
|
-
# age:
|
|
484
|
-
# min: 0
|
|
485
|
-
# max: 150
|
|
486
|
-
|
|
487
|
-
# table:
|
|
488
|
-
# min_rows: 1
|
|
489
|
-
# max_rows: 1000000
|
|
490
|
-
`;function BY(){const{id:e}=ki(),t=EC(),{toast:n}=Pt(),[r,o]=h.useState(null),[i,a]=h.useState([]),[s,c]=h.useState(null),[u,f]=h.useState(!0),[d,p]=h.useState(!1),[v,b]=h.useState(!1),[y,m]=h.useState(""),[g,x]=h.useState(""),[w,E]=h.useState(""),[A,S]=h.useState(!1),N=h.useCallback(async()=>{if(e)try{const T=await lo.get(`/sources/${e}`);o(T)}catch{n({title:"Error",description:"Failed to load source",variant:"destructive"})}},[e,n]),_=h.useCallback(async()=>{if(e)try{const T=await lo.get(`/sources/${e}/rules`);a(T.data)}catch{n({title:"Error",description:"Failed to load rules",variant:"destructive"})}},[e,n]),C=h.useCallback(async()=>{if(e)try{const T=await lo.get(`/sources/${e}/rules/active`);T?(c(T),m(T.rules_yaml),x(T.name),E(T.description||"")):(c(null),m(Cm),x("Default Rules"),E(""))}catch{c(null),m(Cm),x("Default Rules"),E("")}},[e]);h.useEffect(()=>{(async()=>{f(!0),await Promise.all([N(),_(),C()]),f(!1)})()},[N,_,C]);const P=T=>{m(T),S(!0)},O=async()=>{if(e){p(!0);try{s?(await lo.put(`/rules/${s.id}`,{name:g,description:w||null,rules_yaml:y}),n({title:"Saved",description:"Rules updated successfully"})):(await lo.post(`/sources/${e}/rules?activate=true`,{name:g,description:w||null,rules_yaml:y}),n({title:"Created",description:"Rules created successfully"})),S(!1),await Promise.all([_(),C()])}catch(T){n({title:"Error",description:T instanceof Error?T.message:"Failed to save rules",variant:"destructive"})}finally{p(!1)}}},R=async()=>{if(e){b(!0);try{await lo.post(`/sources/${e}/rules?activate=true`,{name:"New Rules",description:null,rules_yaml:Cm}),n({title:"Created",description:"New rule created successfully"}),await Promise.all([_(),C()])}catch(T){n({title:"Error",description:T instanceof Error?T.message:"Failed to create rule",variant:"destructive"})}finally{b(!1)}}},L=async T=>{try{await lo.post(`/rules/${T}/activate`,{}),n({title:"Activated",description:"Rule activated successfully"}),await Promise.all([_(),C()])}catch(I){n({title:"Error",description:I instanceof Error?I.message:"Failed to activate rule",variant:"destructive"})}},j=async T=>{if(confirm("Are you sure you want to delete this rule?"))try{await lo.delete(`/rules/${T}`),n({title:"Deleted",description:"Rule deleted successfully"}),await Promise.all([_(),C()])}catch(I){n({title:"Error",description:I instanceof Error?I.message:"Failed to delete rule",variant:"destructive"})}};return u?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx(hm,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>t(`/sources/${e}`),children:l.jsx(Li,{className:"h-5 w-5"})}),l.jsxs("div",{className:"flex-1",children:[l.jsx("h1",{className:"text-2xl font-semibold",children:"Validation Rules"}),r&&l.jsxs("p",{className:"text-muted-foreground",children:[r.name," (",r.type,")"]})]}),l.jsxs(Y,{onClick:R,disabled:v,variant:"outline",children:[v?l.jsx(hm,{className:"mr-2 h-4 w-4 animate-spin"}):l.jsx(Jt,{className:"mr-2 h-4 w-4"}),"New Rule"]})]}),l.jsxs("div",{className:"grid gap-6 lg:grid-cols-3",children:[l.jsx("div",{className:"lg:col-span-1 space-y-4",children:l.jsxs(q,{children:[l.jsxs(ye,{className:"pb-3",children:[l.jsx(ge,{className:"text-sm font-medium",children:"Rule History"}),l.jsxs($r,{className:"text-xs",children:[i.length," rule",i.length!==1?"s":""," defined"]})]}),l.jsx(X,{className:"space-y-2",children:i.length===0?l.jsx("div",{className:"text-center py-4 text-sm text-muted-foreground",children:"No rules defined yet"}):i.map(T=>l.jsx("div",{className:`p-3 rounded-lg border cursor-pointer transition-colors ${(s==null?void 0:s.id)===T.id?"border-primary bg-primary/5":"hover:bg-accent"}`,onClick:()=>{(s==null?void 0:s.id)!==T.id&&L(T.id)},children:l.jsxs("div",{className:"flex items-start justify-between gap-2",children:[l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Gd,{className:"h-4 w-4 text-muted-foreground"}),l.jsx("span",{className:"font-medium text-sm truncate",children:T.name}),T.is_active&&l.jsx(se,{variant:"default",className:"text-xs",children:"Active"})]}),l.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:[T.column_count," column rule",T.column_count!==1?"s":"",T.version&&` - v${T.version}`]})]}),l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:I=>{I.stopPropagation(),j(T.id)},children:l.jsx(Gr,{className:"h-3.5 w-3.5 text-muted-foreground hover:text-destructive"})})]})},T.id))})]})}),l.jsxs("div",{className:"lg:col-span-2 space-y-4",children:[l.jsxs(q,{children:[l.jsx(ye,{className:"pb-3",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"space-y-1",children:[l.jsx(ge,{className:"text-sm font-medium",children:"Rule Editor"}),l.jsx($r,{className:"text-xs",children:"Define validation rules in YAML format"})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[A&&l.jsxs(se,{variant:"outline",className:"text-xs",children:[l.jsx(_k,{className:"mr-1 h-3 w-3"}),"Unsaved changes"]}),l.jsxs(Y,{size:"sm",onClick:O,disabled:d||!A,children:[d?l.jsx(hm,{className:"mr-2 h-4 w-4 animate-spin"}):l.jsx(x6,{className:"mr-2 h-4 w-4"}),"Save"]})]})]})}),l.jsxs(X,{className:"space-y-4",children:[l.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium",children:"Rule Name"}),l.jsx("input",{type:"text",value:g,onChange:T=>{x(T.target.value),S(!0)},className:"w-full px-3 py-2 text-sm rounded-md border bg-background",placeholder:"Enter rule name"})]}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium",children:"Description"}),l.jsx("input",{type:"text",value:w,onChange:T=>{E(T.target.value),S(!0)},className:"w-full px-3 py-2 text-sm rounded-md border bg-background",placeholder:"Optional description"})]})]}),l.jsxs("div",{className:"space-y-1.5",children:[l.jsx("label",{className:"text-xs font-medium",children:"Rules YAML"}),l.jsx("textarea",{value:y,onChange:T=>P(T.target.value),className:"w-full h-96 px-3 py-2 text-sm font-mono rounded-md border bg-background resize-none",placeholder:"Enter validation rules in YAML format...",spellCheck:!1})]})]})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-3",children:l.jsx(ge,{className:"text-sm font-medium",children:"Quick Reference"})}),l.jsx(X,{children:l.jsxs("div",{className:"grid gap-4 sm:grid-cols-2 text-xs",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx("h4",{className:"font-medium",children:"Column Constraints"}),l.jsxs("ul",{className:"space-y-1 text-muted-foreground",children:[l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"not_null: true"})," - No nulls allowed"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"unique: true"})," - Values must be unique"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"min: 0"})," - Minimum value"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"max: 100"})," - Maximum value"]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx("h4",{className:"font-medium",children:"String Constraints"}),l.jsxs("ul",{className:"space-y-1 text-muted-foreground",children:[l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:'pattern: "regex"'})," - Match pattern"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"min_length: 1"})," - Min string length"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"max_length: 255"})," - Max string length"]}),l.jsxs("li",{children:[l.jsx("code",{className:"text-primary",children:"allowed_values: [a, b]"})," - Enum"]})]})]})]})})]})]})]})]})}function UY(){const{id:e}=ki(),[t,n]=h.useState(null),[r,o]=h.useState(!0),{toast:i}=Pt(),a=h.useCallback(async()=>{if(e)try{o(!0);const c=await l7(e);n(c)}catch{i({title:"Error",description:"Failed to load validation details",variant:"destructive"})}finally{o(!1)}},[e,i]);if(h.useEffect(()=>{a()},[a]),r)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(!t)return l.jsxs("div",{className:"flex flex-col items-center justify-center h-64",children:[l.jsx(To,{className:"h-12 w-12 text-destructive mb-4"}),l.jsx("p",{className:"text-muted-foreground",children:"Validation not found"}),l.jsx(Y,{asChild:!0,className:"mt-4",children:l.jsx(Pe,{to:"/",children:"Back to Dashboard"})})]});const s={critical:t.issues.filter(c=>c.severity==="critical"),high:t.issues.filter(c=>c.severity==="high"),medium:t.issues.filter(c=>c.severity==="medium"),low:t.issues.filter(c=>c.severity==="low")};return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:`/sources/${t.source_id}`,className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Li,{className:"mr-2 h-4 w-4"}),"Back to Source"]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-3",children:[t.passed?l.jsx(Xl,{className:"h-8 w-8 text-green-600"}):l.jsx(To,{className:"h-8 w-8 text-red-600"}),l.jsxs("h1",{className:"text-3xl font-bold",children:["Validation ",t.passed?"Passed":"Failed"]})]}),l.jsx("p",{className:"text-muted-foreground mt-2",children:pn(t.created_at)})]}),l.jsx(se,{variant:t.passed?"success":"destructive",className:"text-lg px-4 py-1",children:t.status})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsx(q,{children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Mo,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Total Issues"}),l.jsx("p",{className:"text-2xl font-bold",children:t.total_issues})]})]})})}),l.jsx(q,{children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(g6,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Rows"}),l.jsx("p",{className:"text-2xl font-bold",children:Ir(t.row_count)})]})]})})}),l.jsx(q,{children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Ok,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Columns"}),l.jsx("p",{className:"text-2xl font-bold",children:Ir(t.column_count)})]})]})})}),l.jsx(q,{children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Ap,{className:"h-5 w-5 text-muted-foreground"}),l.jsxs("div",{children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),l.jsx("p",{className:"text-2xl font-bold",children:Lk(t.duration_ms)})]})]})})})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsx(q,{className:"border-red-200 dark:border-red-900",children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"Critical"}),l.jsx(se,{variant:"critical",children:t.critical_issues})]})})}),l.jsx(q,{className:"border-orange-200 dark:border-orange-900",children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"High"}),l.jsx(se,{variant:"high",children:t.high_issues})]})})}),l.jsx(q,{className:"border-yellow-200 dark:border-yellow-900",children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"Medium"}),l.jsx(se,{variant:"medium",children:t.medium_issues})]})})}),l.jsx(q,{className:"border-green-200 dark:border-green-900",children:l.jsx(X,{className:"pt-6",children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:"Low"}),l.jsx(se,{variant:"low",children:t.low_issues})]})})})]}),t.issues.length>0?l.jsxs(q,{children:[l.jsx(ye,{children:l.jsx(ge,{children:"Issues Detail"})}),l.jsx(X,{children:l.jsx("div",{className:"space-y-4",children:["critical","high","medium","low"].map(c=>{const u=s[c];return u.length===0?null:l.jsxs("div",{children:[l.jsxs("h3",{className:"font-semibold capitalize mb-2 flex items-center gap-2",children:[l.jsx(se,{variant:c,children:c}),l.jsxs("span",{className:"text-muted-foreground",children:["(",u.length,")"]})]}),l.jsx("div",{className:"space-y-2",children:u.map((f,d)=>l.jsx("div",{className:"p-4 rounded-lg border bg-card",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{children:[l.jsxs("p",{className:"font-medium",children:[l.jsx("span",{className:"text-primary",children:f.column})," - ",f.issue_type]}),f.details&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:f.details}),(f.expected!==void 0||f.actual!==void 0)&&l.jsxs("div",{className:"flex gap-4 mt-2 text-sm",children:[f.expected!==void 0&&l.jsxs("span",{children:["Expected:"," ",l.jsx("code",{className:"bg-muted px-1 rounded",children:String(f.expected)})]}),f.actual!==void 0&&l.jsxs("span",{children:["Actual:"," ",l.jsx("code",{className:"bg-muted px-1 rounded",children:String(f.actual)})]})]})]}),l.jsxs("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:[Ir(f.count)," occurrences"]})]})},d))})]},c)})})})]}):l.jsx(q,{children:l.jsxs(X,{className:"py-16 flex flex-col items-center justify-center",children:[l.jsx(Xl,{className:"h-16 w-16 text-green-600 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold",children:"No Issues Found"}),l.jsx("p",{className:"text-muted-foreground",children:"All validation checks passed successfully."})]})}),t.error_message&&l.jsxs(q,{className:"border-destructive",children:[l.jsx(ye,{children:l.jsx(ge,{className:"text-destructive",children:"Error"})}),l.jsx(X,{children:l.jsx("pre",{className:"text-sm text-destructive whitespace-pre-wrap",children:t.error_message})})]})]})}function uA(e,[t,n]){return Math.min(n,Math.max(t,e))}function HY(e){const t=zY(e),n=h.forwardRef((r,o)=>{const{children:i,...a}=r,s=h.Children.toArray(i),c=s.find(GY);if(c){const u=c.props.children,f=s.map(d=>d===c?h.Children.count(u)>1?h.Children.only(null):h.isValidElement(u)?u.props.children:null:d);return l.jsx(t,{...a,ref:o,children:h.isValidElement(u)?h.cloneElement(u,void 0,f):null})}return l.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function zY(e){const t=h.forwardRef((n,r)=>{const{children:o,...i}=n;if(h.isValidElement(o)){const a=KY(o),s=VY(i,o.props);return o.type!==h.Fragment&&(s.ref=r?eo(r,a):a),h.cloneElement(o,s)}return h.Children.count(o)>1?h.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var WY=Symbol("radix.slottable");function GY(e){return h.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===WY}function VY(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...s)=>{const c=i(...s);return o(...s),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function KY(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function ED(e){const t=h.useRef({value:e,previous:e});return h.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var ND=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"}),YY="VisuallyHidden",D0=h.forwardRef((e,t)=>l.jsx(de.span,{...e,ref:t,style:{...ND,...e.style}}));D0.displayName=YY;var qY=[" ","Enter","ArrowUp","ArrowDown"],XY=[" ","Enter"],Ai="Select",[Up,Hp,ZY]=_p(Ai),[ws]=nr(Ai,[ZY,Rp]),zp=Rp(),[QY,Ho]=ws(Ai),[JY,eq]=ws(Ai),_D=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:u,name:f,autoComplete:d,disabled:p,required:v,form:b}=e,y=zp(t),[m,g]=h.useState(null),[x,w]=h.useState(null),[E,A]=h.useState(!1),S=jp(u),[N,_]=Do({prop:r,defaultProp:o??!1,onChange:i,caller:Ai}),[C,P]=Do({prop:a,defaultProp:s,onChange:c,caller:Ai}),O=h.useRef(null),R=m?b||!!m.closest("form"):!0,[L,j]=h.useState(new Set),T=Array.from(L).map(I=>I.props.value).join(";");return l.jsx(p2,{...y,children:l.jsxs(QY,{required:v,scope:t,trigger:m,onTriggerChange:g,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:E,onValueNodeHasChildrenChange:A,contentId:mr(),value:C,onValueChange:P,open:N,onOpenChange:_,dir:S,triggerPointerDownPosRef:O,disabled:p,children:[l.jsx(Up.Provider,{scope:t,children:l.jsx(JY,{scope:e.__scopeSelect,onNativeOptionAdd:h.useCallback(I=>{j($=>new Set($).add(I))},[]),onNativeOptionRemove:h.useCallback(I=>{j($=>{const k=new Set($);return k.delete(I),k})},[]),children:n})}),R?l.jsxs(XD,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:d,value:C,onChange:I=>P(I.target.value),disabled:p,form:b,children:[C===void 0?l.jsx("option",{value:""}):null,Array.from(L)]},T):null]})})};_D.displayName=Ai;var jD="SelectTrigger",CD=h.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=zp(n),a=Ho(jD,n),s=a.disabled||r,c=Ce(t,a.onTriggerChange),u=Hp(n),f=h.useRef("touch"),[d,p,v]=QD(y=>{const m=u().filter(w=>!w.disabled),g=m.find(w=>w.value===a.value),x=JD(m,y,g);x!==void 0&&a.onValueChange(x.value)}),b=y=>{s||(a.onOpenChange(!0),v()),y&&(a.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return l.jsx(h2,{asChild:!0,...i,children:l.jsx(de.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":ZD(a.value)?"":void 0,...o,ref:c,onClick:Q(o.onClick,y=>{y.currentTarget.focus(),f.current!=="mouse"&&b(y)}),onPointerDown:Q(o.onPointerDown,y=>{f.current=y.pointerType;const m=y.target;m.hasPointerCapture(y.pointerId)&&m.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(b(y),y.preventDefault())}),onKeyDown:Q(o.onKeyDown,y=>{const m=d.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&p(y.key),!(m&&y.key===" ")&&qY.includes(y.key)&&(b(),y.preventDefault())})})})});CD.displayName=jD;var OD="SelectValue",TD=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...s}=e,c=Ho(OD,n),{onValueNodeHasChildrenChange:u}=c,f=i!==void 0,d=Ce(t,c.onValueNodeChange);return Tt(()=>{u(f)},[u,f]),l.jsx(de.span,{...s,ref:d,style:{pointerEvents:"none"},children:ZD(c.value)?l.jsx(l.Fragment,{children:a}):i})});TD.displayName=OD;var tq="SelectIcon",PD=h.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return l.jsx(de.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});PD.displayName=tq;var nq="SelectPortal",ID=e=>l.jsx(Vc,{asChild:!0,...e});ID.displayName=nq;var Ei="SelectContent",RD=h.forwardRef((e,t)=>{const n=Ho(Ei,e.__scopeSelect),[r,o]=h.useState();if(Tt(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?Ii.createPortal(l.jsx(kD,{scope:e.__scopeSelect,children:l.jsx(Up.Slot,{scope:e.__scopeSelect,children:l.jsx("div",{children:e.children})})}),i):null}return l.jsx(MD,{...e,ref:t})});RD.displayName=Ei;var Un=10,[kD,zo]=ws(Ei),rq="SelectContentImpl",oq=HY("SelectContent.RemoveScroll"),MD=h.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:b,hideWhenDetached:y,avoidCollisions:m,...g}=e,x=Ho(Ei,n),[w,E]=h.useState(null),[A,S]=h.useState(null),N=Ce(t,re=>E(re)),[_,C]=h.useState(null),[P,O]=h.useState(null),R=Hp(n),[L,j]=h.useState(!1),T=h.useRef(!1);h.useEffect(()=>{if(w)return y0(w)},[w]),l0();const I=h.useCallback(re=>{const[he,...G]=R().map(U=>U.ref.current),[Z]=G.slice(-1),ee=document.activeElement;for(const U of re)if(U===ee||(U==null||U.scrollIntoView({block:"nearest"}),U===he&&A&&(A.scrollTop=0),U===Z&&A&&(A.scrollTop=A.scrollHeight),U==null||U.focus(),document.activeElement!==ee))return},[R,A]),$=h.useCallback(()=>I([_,w]),[I,_,w]);h.useEffect(()=>{L&&$()},[L,$]);const{onOpenChange:k,triggerPointerDownPosRef:M}=x;h.useEffect(()=>{if(w){let re={x:0,y:0};const he=Z=>{var ee,U;re={x:Math.abs(Math.round(Z.pageX)-(((ee=M.current)==null?void 0:ee.x)??0)),y:Math.abs(Math.round(Z.pageY)-(((U=M.current)==null?void 0:U.y)??0))}},G=Z=>{re.x<=10&&re.y<=10?Z.preventDefault():w.contains(Z.target)||k(!1),document.removeEventListener("pointermove",he),M.current=null};return M.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",G,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",G,{capture:!0})}}},[w,k,M]),h.useEffect(()=>{const re=()=>k(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[k]);const[B,W]=QD(re=>{const he=R().filter(ee=>!ee.disabled),G=he.find(ee=>ee.ref.current===document.activeElement),Z=JD(he,re,G);Z&&setTimeout(()=>Z.ref.current.focus())}),z=h.useCallback((re,he,G)=>{const Z=!T.current&&!G;(x.value!==void 0&&x.value===he||Z)&&(C(re),Z&&(T.current=!0))},[x.value]),J=h.useCallback(()=>w==null?void 0:w.focus(),[w]),ue=h.useCallback((re,he,G)=>{const Z=!T.current&&!G;(x.value!==void 0&&x.value===he||Z)&&O(re)},[x.value]),_e=r==="popper"?gy:DD,Ae=_e===gy?{side:s,sideOffset:c,align:u,alignOffset:f,arrowPadding:d,collisionBoundary:p,collisionPadding:v,sticky:b,hideWhenDetached:y,avoidCollisions:m}:{};return l.jsx(kD,{scope:n,content:w,viewport:A,onViewportChange:S,itemRefCallback:z,selectedItem:_,onItemLeave:J,itemTextRefCallback:ue,focusSelectedItem:$,selectedItemText:P,position:r,isPositioned:L,searchRef:B,children:l.jsx(Dp,{as:oq,allowPinchZoom:!0,children:l.jsx(Cp,{asChild:!0,trapped:x.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:Q(o,re=>{var he;(he=x.trigger)==null||he.focus({preventScroll:!0}),re.preventDefault()}),children:l.jsx(Wc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:l.jsx(_e,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:re=>re.preventDefault(),...g,...Ae,onPlaced:()=>j(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Q(g.onKeyDown,re=>{const he=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!he&&re.key.length===1&&W(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let Z=R().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(re.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const ee=re.target,U=Z.indexOf(ee);Z=Z.slice(U+1)}setTimeout(()=>I(Z)),re.preventDefault()}})})})})})})});MD.displayName=rq;var iq="SelectItemAlignedPosition",DD=h.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Ho(Ei,n),a=zo(Ei,n),[s,c]=h.useState(null),[u,f]=h.useState(null),d=Ce(t,N=>f(N)),p=Hp(n),v=h.useRef(!1),b=h.useRef(!0),{viewport:y,selectedItem:m,selectedItemText:g,focusSelectedItem:x}=a,w=h.useCallback(()=>{if(i.trigger&&i.valueNode&&s&&u&&y&&m&&g){const N=i.trigger.getBoundingClientRect(),_=u.getBoundingClientRect(),C=i.valueNode.getBoundingClientRect(),P=g.getBoundingClientRect();if(i.dir!=="rtl"){const ee=P.left-_.left,U=C.left-ee,Se=N.left-U,fe=N.width+Se,Be=Math.max(fe,_.width),Ue=window.innerWidth-Un,ot=uA(U,[Un,Math.max(Un,Ue-Be)]);s.style.minWidth=fe+"px",s.style.left=ot+"px"}else{const ee=_.right-P.right,U=window.innerWidth-C.right-ee,Se=window.innerWidth-N.right-U,fe=N.width+Se,Be=Math.max(fe,_.width),Ue=window.innerWidth-Un,ot=uA(U,[Un,Math.max(Un,Ue-Be)]);s.style.minWidth=fe+"px",s.style.right=ot+"px"}const O=p(),R=window.innerHeight-Un*2,L=y.scrollHeight,j=window.getComputedStyle(u),T=parseInt(j.borderTopWidth,10),I=parseInt(j.paddingTop,10),$=parseInt(j.borderBottomWidth,10),k=parseInt(j.paddingBottom,10),M=T+I+L+k+$,B=Math.min(m.offsetHeight*5,M),W=window.getComputedStyle(y),z=parseInt(W.paddingTop,10),J=parseInt(W.paddingBottom,10),ue=N.top+N.height/2-Un,_e=R-ue,Ae=m.offsetHeight/2,re=m.offsetTop+Ae,he=T+I+re,G=M-he;if(he<=ue){const ee=O.length>0&&m===O[O.length-1].ref.current;s.style.bottom="0px";const U=u.clientHeight-y.offsetTop-y.offsetHeight,Se=Math.max(_e,Ae+(ee?J:0)+U+$),fe=he+Se;s.style.height=fe+"px"}else{const ee=O.length>0&&m===O[0].ref.current;s.style.top="0px";const Se=Math.max(ue,T+y.offsetTop+(ee?z:0)+Ae)+G;s.style.height=Se+"px",y.scrollTop=he-ue+y.offsetTop}s.style.margin=`${Un}px 0`,s.style.minHeight=B+"px",s.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[p,i.trigger,i.valueNode,s,u,y,m,g,i.dir,r]);Tt(()=>w(),[w]);const[E,A]=h.useState();Tt(()=>{u&&A(window.getComputedStyle(u).zIndex)},[u]);const S=h.useCallback(N=>{N&&b.current===!0&&(w(),x==null||x(),b.current=!1)},[w,x]);return l.jsx(sq,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:l.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:l.jsx(de.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});DD.displayName=iq;var aq="SelectPopperPosition",gy=h.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Un,...i}=e,a=zp(n);return l.jsx(m2,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.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)"}})});gy.displayName=aq;var[sq,$0]=ws(Ei,{}),xy="SelectViewport",$D=h.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=zo(xy,n),a=$0(xy,n),s=Ce(t,i.onViewportChange),c=h.useRef(0);return l.jsxs(l.Fragment,{children:[l.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}),l.jsx(Up.Slot,{scope:n,children:l.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,u=>{const f=u.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&d){const v=Math.abs(c.current-f.scrollTop);if(v>0){const b=window.innerHeight-Un*2,y=parseFloat(d.style.minHeight),m=parseFloat(d.style.height),g=Math.max(y,m);if(g<b){const x=g+v,w=Math.min(b,x),E=x-w;d.style.height=w+"px",d.style.bottom==="0px"&&(f.scrollTop=E>0?E:0,d.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});$D.displayName=xy;var LD="SelectGroup",[lq,cq]=ws(LD),uq=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=mr();return l.jsx(lq,{scope:n,id:o,children:l.jsx(de.div,{role:"group","aria-labelledby":o,...r,ref:t})})});uq.displayName=LD;var FD="SelectLabel",BD=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cq(FD,n);return l.jsx(de.div,{id:o.id,...r,ref:t})});BD.displayName=FD;var ef="SelectItem",[dq,UD]=ws(ef),HD=h.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=Ho(ef,n),c=zo(ef,n),u=s.value===r,[f,d]=h.useState(i??""),[p,v]=h.useState(!1),b=Ce(t,x=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,x,r,o)}),y=mr(),m=h.useRef("touch"),g=()=>{o||(s.onValueChange(r),s.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 l.jsx(dq,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:h.useCallback(x=>{d(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:l.jsx(Up.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:l.jsx(de.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:b,onFocus:Q(a.onFocus,()=>v(!0)),onBlur:Q(a.onBlur,()=>v(!1)),onClick:Q(a.onClick,()=>{m.current!=="mouse"&&g()}),onPointerUp:Q(a.onPointerUp,()=>{m.current==="mouse"&&g()}),onPointerDown:Q(a.onPointerDown,x=>{m.current=x.pointerType}),onPointerMove:Q(a.onPointerMove,x=>{var w;m.current=x.pointerType,o?(w=c.onItemLeave)==null||w.call(c):m.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(a.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Q(a.onKeyDown,x=>{var E;((E=c.searchRef)==null?void 0:E.current)!==""&&x.key===" "||(XY.includes(x.key)&&g(),x.key===" "&&x.preventDefault())})})})})});HD.displayName=ef;var cl="SelectItemText",zD=h.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=Ho(cl,n),s=zo(cl,n),c=UD(cl,n),u=eq(cl,n),[f,d]=h.useState(null),p=Ce(t,g=>d(g),c.onItemTextChange,g=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,g,c.value,c.disabled)}),v=f==null?void 0:f.textContent,b=h.useMemo(()=>l.jsx("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:m}=u;return Tt(()=>(y(b),()=>m(b)),[y,m,b]),l.jsxs(l.Fragment,{children:[l.jsx(de.span,{id:c.textId,...i,ref:p}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Ii.createPortal(i.children,a.valueNode):null]})});zD.displayName=cl;var WD="SelectItemIndicator",GD=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return UD(WD,n).isSelected?l.jsx(de.span,{"aria-hidden":!0,...r,ref:t}):null});GD.displayName=WD;var by="SelectScrollUpButton",VD=h.forwardRef((e,t)=>{const n=zo(by,e.__scopeSelect),r=$0(by,e.__scopeSelect),[o,i]=h.useState(!1),a=Ce(t,r.onScrollButtonChange);return Tt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollTop>0;i(u)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?l.jsx(YD,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop-c.offsetHeight)}}):null});VD.displayName=by;var wy="SelectScrollDownButton",KD=h.forwardRef((e,t)=>{const n=zo(wy,e.__scopeSelect),r=$0(wy,e.__scopeSelect),[o,i]=h.useState(!1),a=Ce(t,r.onScrollButtonChange);return Tt(()=>{if(n.viewport&&n.isPositioned){let s=function(){const u=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<u;i(f)};const c=n.viewport;return s(),c.addEventListener("scroll",s),()=>c.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),o?l.jsx(YD,{...e,ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:c}=n;s&&c&&(s.scrollTop=s.scrollTop+c.offsetHeight)}}):null});KD.displayName=wy;var YD=h.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=zo("SelectScrollButton",n),a=h.useRef(null),s=Hp(n),c=h.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return h.useEffect(()=>()=>c(),[c]),Tt(()=>{var f;const u=s().find(d=>d.ref.current===document.activeElement);(f=u==null?void 0:u.ref.current)==null||f.scrollIntoView({block:"nearest"})},[s]),l.jsx(de.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Q(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{c()})})}),fq="SelectSeparator",qD=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return l.jsx(de.div,{"aria-hidden":!0,...r,ref:t})});qD.displayName=fq;var Sy="SelectArrow",pq=h.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zp(n),i=Ho(Sy,n),a=zo(Sy,n);return i.open&&a.position==="popper"?l.jsx(v2,{...o,...r,ref:t}):null});pq.displayName=Sy;var hq="SelectBubbleInput",XD=h.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=h.useRef(null),i=Ce(r,o),a=ED(t);return h.useEffect(()=>{const s=o.current;if(!s)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==t&&f){const d=new Event("change",{bubbles:!0});f.call(s,t),s.dispatchEvent(d)}},[a,t]),l.jsx(de.select,{...n,style:{...ND,...n.style},ref:i,defaultValue:t})});XD.displayName=hq;function ZD(e){return e===""||e===void 0}function QD(e){const t=en(e),n=h.useRef(""),r=h.useRef(0),o=h.useCallback(a=>{const s=n.current+a;t(s),function c(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=h.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return h.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function JD(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let a=mq(e,Math.max(i,0));o.length===1&&(a=a.filter(u=>u!==n));const c=a.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function mq(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vq=_D,e$=CD,yq=TD,gq=PD,xq=ID,t$=RD,bq=$D,n$=BD,r$=HD,wq=zD,Sq=GD,o$=VD,i$=KD,a$=qD;const jt=vq,Ct=yq,xt=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(e$,{ref:r,className:oe("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,l.jsx(gq,{asChild:!0,children:l.jsx(Ck,{className:"h-4 w-4 opacity-50"})})]}));xt.displayName=e$.displayName;const s$=h.forwardRef(({className:e,...t},n)=>l.jsx(o$,{ref:n,className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(o6,{className:"h-4 w-4"})}));s$.displayName=o$.displayName;const l$=h.forwardRef(({className:e,...t},n)=>l.jsx(i$,{ref:n,className:oe("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(Ck,{className:"h-4 w-4"})}));l$.displayName=i$.displayName;const bt=h.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>l.jsx(xq,{children:l.jsxs(t$,{ref:o,className:oe("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 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",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,...r,children:[l.jsx(s$,{}),l.jsx(bq,{className:oe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),l.jsx(l$,{})]})}));bt.displayName=t$.displayName;const Aq=h.forwardRef(({className:e,...t},n)=>l.jsx(n$,{ref:n,className:oe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));Aq.displayName=n$.displayName;const pe=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(r$,{ref:r,className:oe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[l.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:l.jsx(Sq,{children:l.jsx(Sp,{className:"h-4 w-4"})})}),l.jsx(wq,{children:t})]}));pe.displayName=r$.displayName;const Eq=h.forwardRef(({className:e,...t},n)=>l.jsx(a$,{ref:n,className:oe("-mx-1 my-1 h-px bg-muted",e),...t}));Eq.displayName=a$.displayName;var Nq=Array.isArray,tn=Nq,_q=typeof uu=="object"&&uu&&uu.Object===Object&&uu,c$=_q,jq=c$,Cq=typeof self=="object"&&self&&self.Object===Object&&self,Oq=jq||Cq||Function("return this")(),Er=Oq,Tq=Er,Pq=Tq.Symbol,Qc=Pq,dA=Qc,u$=Object.prototype,Iq=u$.hasOwnProperty,Rq=u$.toString,Ks=dA?dA.toStringTag:void 0;function kq(e){var t=Iq.call(e,Ks),n=e[Ks];try{e[Ks]=void 0;var r=!0}catch{}var o=Rq.call(e);return r&&(t?e[Ks]=n:delete e[Ks]),o}var Mq=kq,Dq=Object.prototype,$q=Dq.toString;function Lq(e){return $q.call(e)}var Fq=Lq,fA=Qc,Bq=Mq,Uq=Fq,Hq="[object Null]",zq="[object Undefined]",pA=fA?fA.toStringTag:void 0;function Wq(e){return e==null?e===void 0?zq:Hq:pA&&pA in Object(e)?Bq(e):Uq(e)}var no=Wq;function Gq(e){return e!=null&&typeof e=="object"}var ro=Gq,Vq=no,Kq=ro,Yq="[object Symbol]";function qq(e){return typeof e=="symbol"||Kq(e)&&Vq(e)==Yq}var Ss=qq,Xq=tn,Zq=Ss,Qq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jq=/^\w*$/;function eX(e,t){if(Xq(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Zq(e)?!0:Jq.test(e)||!Qq.test(e)||t!=null&&e in Object(t)}var L0=eX;function tX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wo=tX;const As=Re(Wo);var nX=no,rX=Wo,oX="[object AsyncFunction]",iX="[object Function]",aX="[object GeneratorFunction]",sX="[object Proxy]";function lX(e){if(!rX(e))return!1;var t=nX(e);return t==iX||t==aX||t==oX||t==sX}var F0=lX;const xe=Re(F0);var cX=Er,uX=cX["__core-js_shared__"],dX=uX,Om=dX,hA=function(){var e=/[^.]+$/.exec(Om&&Om.keys&&Om.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function fX(e){return!!hA&&hA in e}var pX=fX,hX=Function.prototype,mX=hX.toString;function vX(e){if(e!=null){try{return mX.call(e)}catch{}try{return e+""}catch{}}return""}var d$=vX,yX=F0,gX=pX,xX=Wo,bX=d$,wX=/[\\^$.*+?()[\]{}|]/g,SX=/^\[object .+?Constructor\]$/,AX=Function.prototype,EX=Object.prototype,NX=AX.toString,_X=EX.hasOwnProperty,jX=RegExp("^"+NX.call(_X).replace(wX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function CX(e){if(!xX(e)||gX(e))return!1;var t=yX(e)?jX:SX;return t.test(bX(e))}var OX=CX;function TX(e,t){return e==null?void 0:e[t]}var PX=TX,IX=OX,RX=PX;function kX(e,t){var n=RX(e,t);return IX(n)?n:void 0}var Ui=kX,MX=Ui,DX=MX(Object,"create"),Wp=DX,mA=Wp;function $X(){this.__data__=mA?mA(null):{},this.size=0}var LX=$X;function FX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var BX=FX,UX=Wp,HX="__lodash_hash_undefined__",zX=Object.prototype,WX=zX.hasOwnProperty;function GX(e){var t=this.__data__;if(UX){var n=t[e];return n===HX?void 0:n}return WX.call(t,e)?t[e]:void 0}var VX=GX,KX=Wp,YX=Object.prototype,qX=YX.hasOwnProperty;function XX(e){var t=this.__data__;return KX?t[e]!==void 0:qX.call(t,e)}var ZX=XX,QX=Wp,JX="__lodash_hash_undefined__";function eZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=QX&&t===void 0?JX:t,this}var tZ=eZ,nZ=LX,rZ=BX,oZ=VX,iZ=ZX,aZ=tZ;function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Es.prototype.clear=nZ;Es.prototype.delete=rZ;Es.prototype.get=oZ;Es.prototype.has=iZ;Es.prototype.set=aZ;var sZ=Es;function lZ(){this.__data__=[],this.size=0}var cZ=lZ;function uZ(e,t){return e===t||e!==e&&t!==t}var B0=uZ,dZ=B0;function fZ(e,t){for(var n=e.length;n--;)if(dZ(e[n][0],t))return n;return-1}var Gp=fZ,pZ=Gp,hZ=Array.prototype,mZ=hZ.splice;function vZ(e){var t=this.__data__,n=pZ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():mZ.call(t,n,1),--this.size,!0}var yZ=vZ,gZ=Gp;function xZ(e){var t=this.__data__,n=gZ(t,e);return n<0?void 0:t[n][1]}var bZ=xZ,wZ=Gp;function SZ(e){return wZ(this.__data__,e)>-1}var AZ=SZ,EZ=Gp;function NZ(e,t){var n=this.__data__,r=EZ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var _Z=NZ,jZ=cZ,CZ=yZ,OZ=bZ,TZ=AZ,PZ=_Z;function Ns(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ns.prototype.clear=jZ;Ns.prototype.delete=CZ;Ns.prototype.get=OZ;Ns.prototype.has=TZ;Ns.prototype.set=PZ;var Vp=Ns,IZ=Ui,RZ=Er,kZ=IZ(RZ,"Map"),U0=kZ,vA=sZ,MZ=Vp,DZ=U0;function $Z(){this.size=0,this.__data__={hash:new vA,map:new(DZ||MZ),string:new vA}}var LZ=$Z;function FZ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var BZ=FZ,UZ=BZ;function HZ(e,t){var n=e.__data__;return UZ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Kp=HZ,zZ=Kp;function WZ(e){var t=zZ(this,e).delete(e);return this.size-=t?1:0,t}var GZ=WZ,VZ=Kp;function KZ(e){return VZ(this,e).get(e)}var YZ=KZ,qZ=Kp;function XZ(e){return qZ(this,e).has(e)}var ZZ=XZ,QZ=Kp;function JZ(e,t){var n=QZ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var eQ=JZ,tQ=LZ,nQ=GZ,rQ=YZ,oQ=ZZ,iQ=eQ;function _s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_s.prototype.clear=tQ;_s.prototype.delete=nQ;_s.prototype.get=rQ;_s.prototype.has=oQ;_s.prototype.set=iQ;var H0=_s,f$=H0,aQ="Expected a function";function z0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(aQ);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(z0.Cache||f$),n}z0.Cache=f$;var p$=z0;const sQ=Re(p$);var lQ=p$,cQ=500;function uQ(e){var t=lQ(e,function(r){return n.size===cQ&&n.clear(),r}),n=t.cache;return t}var dQ=uQ,fQ=dQ,pQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hQ=/\\(\\)?/g,mQ=fQ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(pQ,function(n,r,o,i){t.push(o?i.replace(hQ,"$1"):r||n)}),t}),vQ=mQ;function yQ(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var W0=yQ,yA=Qc,gQ=W0,xQ=tn,bQ=Ss,gA=yA?yA.prototype:void 0,xA=gA?gA.toString:void 0;function h$(e){if(typeof e=="string")return e;if(xQ(e))return gQ(e,h$)+"";if(bQ(e))return xA?xA.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wQ=h$,SQ=wQ;function AQ(e){return e==null?"":SQ(e)}var m$=AQ,EQ=tn,NQ=L0,_Q=vQ,jQ=m$;function CQ(e,t){return EQ(e)?e:NQ(e,t)?[e]:_Q(jQ(e))}var v$=CQ,OQ=Ss;function TQ(e){if(typeof e=="string"||OQ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Yp=TQ,PQ=v$,IQ=Yp;function RQ(e,t){t=PQ(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[IQ(t[n++])];return n&&n==r?e:void 0}var G0=RQ,kQ=G0;function MQ(e,t,n){var r=e==null?void 0:kQ(e,t);return r===void 0?n:r}var y$=MQ;const Tn=Re(y$);function DQ(e){return e==null}var $Q=DQ;const be=Re($Q);var LQ=no,FQ=tn,BQ=ro,UQ="[object String]";function HQ(e){return typeof e=="string"||!FQ(e)&&BQ(e)&&LQ(e)==UQ}var zQ=HQ;const Ni=Re(zQ);var g$={exports:{}},ke={};/**
|
|
491
|
-
* @license React
|
|
492
|
-
* react-is.production.min.js
|
|
493
|
-
*
|
|
494
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
495
|
-
*
|
|
496
|
-
* This source code is licensed under the MIT license found in the
|
|
497
|
-
* LICENSE file in the root directory of this source tree.
|
|
498
|
-
*/var V0=Symbol.for("react.element"),K0=Symbol.for("react.portal"),qp=Symbol.for("react.fragment"),Xp=Symbol.for("react.strict_mode"),Zp=Symbol.for("react.profiler"),Qp=Symbol.for("react.provider"),Jp=Symbol.for("react.context"),WQ=Symbol.for("react.server_context"),eh=Symbol.for("react.forward_ref"),th=Symbol.for("react.suspense"),nh=Symbol.for("react.suspense_list"),rh=Symbol.for("react.memo"),oh=Symbol.for("react.lazy"),GQ=Symbol.for("react.offscreen"),x$;x$=Symbol.for("react.module.reference");function Dn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case V0:switch(e=e.type,e){case qp:case Zp:case Xp:case th:case nh:return e;default:switch(e=e&&e.$$typeof,e){case WQ:case Jp:case eh:case oh:case rh:case Qp:return e;default:return t}}case K0:return t}}}ke.ContextConsumer=Jp;ke.ContextProvider=Qp;ke.Element=V0;ke.ForwardRef=eh;ke.Fragment=qp;ke.Lazy=oh;ke.Memo=rh;ke.Portal=K0;ke.Profiler=Zp;ke.StrictMode=Xp;ke.Suspense=th;ke.SuspenseList=nh;ke.isAsyncMode=function(){return!1};ke.isConcurrentMode=function(){return!1};ke.isContextConsumer=function(e){return Dn(e)===Jp};ke.isContextProvider=function(e){return Dn(e)===Qp};ke.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===V0};ke.isForwardRef=function(e){return Dn(e)===eh};ke.isFragment=function(e){return Dn(e)===qp};ke.isLazy=function(e){return Dn(e)===oh};ke.isMemo=function(e){return Dn(e)===rh};ke.isPortal=function(e){return Dn(e)===K0};ke.isProfiler=function(e){return Dn(e)===Zp};ke.isStrictMode=function(e){return Dn(e)===Xp};ke.isSuspense=function(e){return Dn(e)===th};ke.isSuspenseList=function(e){return Dn(e)===nh};ke.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qp||e===Zp||e===Xp||e===th||e===nh||e===GQ||typeof e=="object"&&e!==null&&(e.$$typeof===oh||e.$$typeof===rh||e.$$typeof===Qp||e.$$typeof===Jp||e.$$typeof===eh||e.$$typeof===x$||e.getModuleId!==void 0)};ke.typeOf=Dn;g$.exports=ke;var VQ=g$.exports,KQ=no,YQ=ro,qQ="[object Number]";function XQ(e){return typeof e=="number"||YQ(e)&&KQ(e)==qQ}var b$=XQ;const ZQ=Re(b$);var QQ=b$;function JQ(e){return QQ(e)&&e!=+e}var eJ=JQ;const Jc=Re(eJ);var Xn=function(t){return t===0?0:t>0?1:-1},si=function(t){return Ni(t)&&t.indexOf("%")===t.length-1},K=function(t){return ZQ(t)&&!Jc(t)},tJ=function(t){return be(t)},pt=function(t){return K(t)||Ni(t)},nJ=0,eu=function(t){var n=++nJ;return"".concat(t||"").concat(n)},_i=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(!K(t)&&!Ni(t))return r;var i;if(si(t)){var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return Jc(i)&&(i=r),o&&i>n&&(i=n),i},vo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},rJ=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},Yn=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function tf(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Tn(r,t))===n})}var oJ=function(t,n){return K(t)&&K(n)?t-n:Ni(t)&&Ni(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ta(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 Ay(e){"@babel/helpers - typeof";return Ay=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},Ay(e)}var iJ=["viewBox","children"],aJ=["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"],bA=["points","pathLength"],Tm={svg:iJ,polygon:bA,polyline:bA},Y0=["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"],nf=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(h.isValidElement(t)&&(r=t.props),!As(r))return null;var o={};return Object.keys(r).forEach(function(i){Y0.includes(i)&&(o[i]=n||function(a){return r[i](r,a)})}),o},sJ=function(t,n,r){return function(o){return t(n,r,o),null}},rf=function(t,n,r){if(!As(t)||Ay(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(i){var a=t[i];Y0.includes(i)&&typeof a=="function"&&(o||(o={}),o[i]=sJ(a,n,r))}),o},lJ=["children"],cJ=["children"];function wA(e,t){if(e==null)return{};var n=uJ(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uJ(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 Ey(e){"@babel/helpers - typeof";return Ey=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},Ey(e)}var SA={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"},Lr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},AA=null,Pm=null,q0=function e(t){if(t===AA&&Array.isArray(Pm))return Pm;var n=[];return h.Children.forEach(t,function(r){be(r)||(VQ.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Pm=n,AA=t,n};function Pn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Lr(o)}):r=[Lr(t)],q0(e).forEach(function(o){var i=Tn(o,"type.displayName")||Tn(o,"type.name");r.indexOf(i)!==-1&&n.push(o)}),n}function an(e,t){var n=Pn(e,t);return n&&n[0]}var EA=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,o=n.height;return!(!K(r)||r<=0||!K(o)||o<=0)},dJ=["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"],fJ=function(t){return t&&t.type&&Ni(t.type)&&dJ.indexOf(t.type)>=0},pJ=function(t){return t&&Ey(t)==="object"&&"clipDot"in t},hJ=function(t,n,r,o){var i,a=(i=Tm==null?void 0:Tm[o])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!xe(t)&&(o&&a.includes(n)||aJ.includes(n))||r&&Y0.includes(n)},Ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(h.isValidElement(t)&&(o=t.props),!As(o))return null;var i={};return Object.keys(o).forEach(function(a){var s;hJ((s=o)===null||s===void 0?void 0:s[a],a,n,r)&&(i[a]=o[a])}),i},Ny=function e(t,n){if(t===n)return!0;var r=h.Children.count(t);if(r!==h.Children.count(n))return!1;if(r===0)return!0;if(r===1)return NA(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(Array.isArray(i)||Array.isArray(a)){if(!e(i,a))return!1}else if(!NA(i,a))return!1}return!0},NA=function(t,n){if(be(t)&&be(n))return!0;if(!be(t)&&!be(n)){var r=t.props||{},o=r.children,i=wA(r,lJ),a=n.props||{},s=a.children,c=wA(a,cJ);return o&&s?Ta(i,c)&&Ny(o,s):!o&&!s?Ta(i,c):!1}return!1},_A=function(t,n){var r=[],o={};return q0(t).forEach(function(i,a){if(fJ(i))r.push(i);else if(i){var s=Lr(i.type),c=n[s]||{},u=c.handler,f=c.once;if(u&&(!f||!o[s])){var d=u(i,s,a);r.push(d),o[s]=!0}}}),r},mJ=function(t){var n=t&&t.type;return n&&SA[n]?SA[n]:null},vJ=function(t,n){return q0(n).indexOf(t)},yJ=["children","width","height","viewBox","className","style","title","desc"];function _y(){return _y=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},_y.apply(this,arguments)}function gJ(e,t){if(e==null)return{};var n=xJ(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xJ(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 jy(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,s=e.title,c=e.desc,u=gJ(e,yJ),f=o||{width:n,height:r,x:0,y:0},d=Ne("recharts-surface",i);return D.createElement("svg",_y({},Ee(u,!0,"svg"),{className:d,width:n,height:r,style:a,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),D.createElement("title",null,s),D.createElement("desc",null,c),t)}var bJ=["children","className"];function Cy(){return Cy=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},Cy.apply(this,arguments)}function wJ(e,t){if(e==null)return{};var n=SJ(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SJ(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 rt=D.forwardRef(function(e,t){var n=e.children,r=e.className,o=wJ(e,bJ),i=Ne("recharts-layer",r);return D.createElement("g",Cy({className:i},Ee(o,!0),{ref:t}),n)}),Fr=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i]};function AJ(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}var EJ=AJ,NJ=EJ;function _J(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:NJ(e,t,n)}var jJ=_J,CJ="\\ud800-\\udfff",OJ="\\u0300-\\u036f",TJ="\\ufe20-\\ufe2f",PJ="\\u20d0-\\u20ff",IJ=OJ+TJ+PJ,RJ="\\ufe0e\\ufe0f",kJ="\\u200d",MJ=RegExp("["+kJ+CJ+IJ+RJ+"]");function DJ(e){return MJ.test(e)}var w$=DJ;function $J(e){return e.split("")}var LJ=$J,S$="\\ud800-\\udfff",FJ="\\u0300-\\u036f",BJ="\\ufe20-\\ufe2f",UJ="\\u20d0-\\u20ff",HJ=FJ+BJ+UJ,zJ="\\ufe0e\\ufe0f",WJ="["+S$+"]",Oy="["+HJ+"]",Ty="\\ud83c[\\udffb-\\udfff]",GJ="(?:"+Oy+"|"+Ty+")",A$="[^"+S$+"]",E$="(?:\\ud83c[\\udde6-\\uddff]){2}",N$="[\\ud800-\\udbff][\\udc00-\\udfff]",VJ="\\u200d",_$=GJ+"?",j$="["+zJ+"]?",KJ="(?:"+VJ+"(?:"+[A$,E$,N$].join("|")+")"+j$+_$+")*",YJ=j$+_$+KJ,qJ="(?:"+[A$+Oy+"?",Oy,E$,N$,WJ].join("|")+")",XJ=RegExp(Ty+"(?="+Ty+")|"+qJ+YJ,"g");function ZJ(e){return e.match(XJ)||[]}var QJ=ZJ,JJ=LJ,eee=w$,tee=QJ;function nee(e){return eee(e)?tee(e):JJ(e)}var ree=nee,oee=jJ,iee=w$,aee=ree,see=m$;function lee(e){return function(t){t=see(t);var n=iee(t)?aee(t):void 0,r=n?n[0]:t.charAt(0),o=n?oee(n,1).join(""):t.slice(1);return r[e]()+o}}var cee=lee,uee=cee,dee=uee("toUpperCase"),fee=dee;const ih=Re(fee);function $e(e){return function(){return e}}const C$=Math.cos,of=Math.sin,or=Math.sqrt,af=Math.PI,ah=2*af,Py=Math.PI,Iy=2*Py,ei=1e-6,pee=Iy-ei;function O$(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return O$;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class mee{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?O$:hee(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,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,c=r-t,u=o-n,f=a-t,d=s-n,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(p>ei)if(!(Math.abs(d*c-u*f)>ei)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let v=r-a,b=o-s,y=c*c+u*u,m=v*v+b*b,g=Math.sqrt(y),x=Math.sqrt(p),w=i*Math.tan((Py-Math.acos((y+p-m)/(2*g*x)))/2),E=w/x,A=w/g;Math.abs(E-1)>ei&&this._append`L${t+E*f},${n+E*d}`,this._append`A${i},${i},0,0,${+(d*v>f*b)},${this._x1=t+A*c},${this._y1=n+A*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),c=r*Math.sin(o),u=t+s,f=n+c,d=1^a,p=a?o-i:i-o;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>ei||Math.abs(this._y1-f)>ei)&&this._append`L${u},${f}`,r&&(p<0&&(p=p%Iy+Iy),p>pee?this._append`A${r},${r},0,1,${d},${t-s},${n-c}A${r},${r},0,1,${d},${this._x1=u},${this._y1=f}`:p>ei&&this._append`A${r},${r},0,${+(p>=Py)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}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 X0(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 mee(t)}function Z0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function T$(e){this._context=e}T$.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 sh(e){return new T$(e)}function P$(e){return e[0]}function I$(e){return e[1]}function R$(e,t){var n=$e(!0),r=null,o=sh,i=null,a=X0(s);e=typeof e=="function"?e:e===void 0?P$:$e(e),t=typeof t=="function"?t:t===void 0?I$:$e(t);function s(c){var u,f=(c=Z0(c)).length,d,p=!1,v;for(r==null&&(i=o(v=a())),u=0;u<=f;++u)!(u<f&&n(d=c[u],u,c))===p&&((p=!p)?i.lineStart():i.lineEnd()),p&&i.point(+e(d,u,c),+t(d,u,c));if(v)return i=null,v+""||null}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:$e(+c),s):e},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:$e(+c),s):t},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:$e(!!c),s):n},s.curve=function(c){return arguments.length?(o=c,r!=null&&(i=o(r)),s):o},s.context=function(c){return arguments.length?(c==null?r=i=null:i=o(r=c),s):r},s}function $u(e,t,n){var r=null,o=$e(!0),i=null,a=sh,s=null,c=X0(u);e=typeof e=="function"?e:e===void 0?P$:$e(+e),t=typeof t=="function"?t:$e(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?I$:$e(+n);function u(d){var p,v,b,y=(d=Z0(d)).length,m,g=!1,x,w=new Array(y),E=new Array(y);for(i==null&&(s=a(x=c())),p=0;p<=y;++p){if(!(p<y&&o(m=d[p],p,d))===g)if(g=!g)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),b=p-1;b>=v;--b)s.point(w[b],E[b]);s.lineEnd(),s.areaEnd()}g&&(w[p]=+e(m,p,d),E[p]=+t(m,p,d),s.point(r?+r(m,p,d):w[p],n?+n(m,p,d):E[p]))}if(x)return s=null,x+""||null}function f(){return R$().defined(o).curve(a).context(i)}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:$e(+d),r=null,u):e},u.x0=function(d){return arguments.length?(e=typeof d=="function"?d:$e(+d),u):e},u.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:$e(+d),u):r},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:$e(+d),n=null,u):t},u.y0=function(d){return arguments.length?(t=typeof d=="function"?d:$e(+d),u):t},u.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:$e(+d),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(d){return arguments.length?(o=typeof d=="function"?d:$e(!!d),u):o},u.curve=function(d){return arguments.length?(a=d,i!=null&&(s=a(i)),u):a},u.context=function(d){return arguments.length?(d==null?i=s=null:s=a(i=d),u):i},u}class k${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 vee(e){return new k$(e,!0)}function yee(e){return new k$(e,!1)}const Q0={draw(e,t){const n=or(t/af);e.moveTo(n,0),e.arc(0,0,n,0,ah)}},gee={draw(e,t){const n=or(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()}},M$=or(1/3),xee=M$*2,bee={draw(e,t){const n=or(t/xee),r=n*M$;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},wee={draw(e,t){const n=or(t),r=-n/2;e.rect(r,r,n,n)}},See=.8908130915292852,D$=of(af/10)/of(7*af/10),Aee=of(ah/10)*D$,Eee=-C$(ah/10)*D$,Nee={draw(e,t){const n=or(t*See),r=Aee*n,o=Eee*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=ah*i/5,s=C$(a),c=of(a);e.lineTo(c*n,-s*n),e.lineTo(s*r-c*o,c*r+s*o)}e.closePath()}},Im=or(3),_ee={draw(e,t){const n=-or(t/(Im*3));e.moveTo(0,n*2),e.lineTo(-Im*n,-n),e.lineTo(Im*n,-n),e.closePath()}},yn=-.5,gn=or(3)/2,Ry=1/or(12),jee=(Ry/2+1)*3,Cee={draw(e,t){const n=or(t/jee),r=n/2,o=n*Ry,i=r,a=n*Ry+n,s=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,c),e.lineTo(yn*r-gn*o,gn*r+yn*o),e.lineTo(yn*i-gn*a,gn*i+yn*a),e.lineTo(yn*s-gn*c,gn*s+yn*c),e.lineTo(yn*r+gn*o,yn*o-gn*r),e.lineTo(yn*i+gn*a,yn*a-gn*i),e.lineTo(yn*s+gn*c,yn*c-gn*s),e.closePath()}};function Oee(e,t){let n=null,r=X0(o);e=typeof e=="function"?e:$e(e||Q0),t=typeof t=="function"?t:$e(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:$e(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:$e(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function sf(){}function lf(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 $$(e){this._context=e}$$.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:lf(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:lf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tee(e){return new $$(e)}function L$(e){this._context=e}L$.prototype={areaStart:sf,areaEnd:sf,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:lf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Pee(e){return new L$(e)}function F$(e){this._context=e}F$.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:lf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Iee(e){return new F$(e)}function B$(e){this._context=e}B$.prototype={areaStart:sf,areaEnd:sf,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 Ree(e){return new B$(e)}function jA(e){return e<0?-1:1}function CA(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(jA(i)+jA(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function OA(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Rm(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function cf(e){this._context=e}cf.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:Rm(this,this._t0,OA(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,Rm(this,OA(this,n=CA(this,e,t)),n);break;default:Rm(this,this._t0,n=CA(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function U$(e){this._context=new H$(e)}(U$.prototype=Object.create(cf.prototype)).point=function(e,t){cf.prototype.point.call(this,t,e)};function H$(e){this._context=e}H$.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function kee(e){return new cf(e)}function Mee(e){return new U$(e)}function z$(e){this._context=e}z$.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=TA(e),o=TA(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(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 TA(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Dee(e){return new z$(e)}function lh(e,t){this._context=e,this._t=t}lh.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 $ee(e){return new lh(e,.5)}function Lee(e){return new lh(e,0)}function Fee(e){return new lh(e,1)}function za(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function ky(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Bee(e,t){return e[t]}function Uee(e){const t=[];return t.key=e,t}function Hee(){var e=$e([]),t=ky,n=za,r=Bee;function o(i){var a=Array.from(e.apply(this,arguments),Uee),s,c=a.length,u=-1,f;for(const d of i)for(s=0,++u;s<c;++s)(a[s][u]=[0,+r(d,a[s].key,u,i)]).data=d;for(s=0,f=Z0(t(a));s<c;++s)a[f[s]].index=s;return n(a,f),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:$e(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:$e(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?ky:typeof i=="function"?i:$e(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??za,o):n},o}function zee(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}za(e,t)}}function Wee(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}za(e,t)}}function Gee(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,c=0,u=0;s<a;++s){for(var f=e[t[s]],d=f[r][1]||0,p=f[r-1][1]||0,v=(d-p)/2,b=0;b<s;++b){var y=e[t[b]],m=y[r][1]||0,g=y[r-1][1]||0;v+=m-g}c+=d,u+=v*d}o[r-1][1]+=o[r-1][0]=n,c&&(n-=u/c)}o[r-1][1]+=o[r-1][0]=n,za(e,t)}}function tc(e){"@babel/helpers - typeof";return tc=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},tc(e)}var Vee=["type","size","sizeType"];function My(){return My=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},My.apply(this,arguments)}function PA(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 IA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(n),!0).forEach(function(r){Kee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kee(e,t,n){return t=Yee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yee(e){var t=qee(e,"string");return tc(t)=="symbol"?t:t+""}function qee(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xee(e,t){if(e==null)return{};var n=Zee(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zee(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 W$={symbolCircle:Q0,symbolCross:gee,symbolDiamond:bee,symbolSquare:wee,symbolStar:Nee,symbolTriangle:_ee,symbolWye:Cee},Qee=Math.PI/180,Jee=function(t){var n="symbol".concat(ih(t));return W$[n]||Q0},ete=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*Qee;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}},tte=function(t,n){W$["symbol".concat(ih(t))]=n},J0=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,i=o===void 0?64:o,a=t.sizeType,s=a===void 0?"area":a,c=Xee(t,Vee),u=IA(IA({},c),{},{type:r,size:i,sizeType:s}),f=function(){var m=Jee(r),g=Oee().type(m).size(ete(i,s,r));return g()},d=u.className,p=u.cx,v=u.cy,b=Ee(u,!0);return p===+p&&v===+v&&i===+i?D.createElement("path",My({},b,{className:Ne("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:f()})):null};J0.registerSymbol=tte;function Wa(e){"@babel/helpers - typeof";return Wa=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},Wa(e)}function Dy(){return Dy=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},Dy.apply(this,arguments)}function RA(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 nte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(n),!0).forEach(function(r){nc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ote(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,V$(r.key),r)}}function ite(e,t,n){return t&&ote(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ate(e,t,n){return t=uf(t),ste(e,G$()?Reflect.construct(t,n||[],uf(e).constructor):t.apply(e,n))}function ste(e,t){if(t&&(Wa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lte(e)}function lte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G$=function(){return!!e})()}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uf(e)}function cte(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&&$y(e,t)}function $y(e,t){return $y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$y(e,t)}function nc(e,t,n){return t=V$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V$(e){var t=ute(e,"string");return Wa(t)=="symbol"?t:t+""}function ute(e,t){if(Wa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xn=32,eb=function(e){function t(){return rte(this,t),ate(this,t,arguments)}return cte(t,e),ite(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,i=xn/2,a=xn/6,s=xn/3,c=r.inactive?o:r.color;if(r.type==="plainline")return D.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:xn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return D.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(i,"h").concat(s,`
|
|
499
|
-
A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
|
|
500
|
-
H`).concat(xn,"M").concat(2*s,",").concat(i,`
|
|
501
|
-
A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return D.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(xn/8,"h").concat(xn,"v").concat(xn*3/4,"h").concat(-xn,"z"),className:"recharts-legend-icon"});if(D.isValidElement(r.legendIcon)){var u=nte({},r);return delete u.legendIcon,D.cloneElement(r.legendIcon,u)}return D.createElement(J0,{fill:c,cx:i,cy:i,size:xn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,i=o.payload,a=o.iconSize,s=o.layout,c=o.formatter,u=o.inactiveColor,f={x:0,y:0,width:xn,height:xn},d={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(v,b){var y=v.formatter||c,m=Ne(nc(nc({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",v.inactive));if(v.type==="none")return null;var g=xe(v.value)?null:v.value;Fr(!xe(v.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 x=v.inactive?u:v.color;return D.createElement("li",Dy({className:m,style:d,key:"legend-item-".concat(b)},rf(r.props,v,b)),D.createElement(jy,{width:a,height:a,viewBox:f,style:p},r.renderIcon(v)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},y?y(g,v,b):g))})}},{key:"render",value:function(){var r=this.props,o=r.payload,i=r.layout,a=r.align;if(!o||!o.length)return null;var s={padding:0,margin:0,textAlign:i==="horizontal"?a:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(h.PureComponent);nc(eb,"displayName","Legend");nc(eb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var dte=Vp;function fte(){this.__data__=new dte,this.size=0}var pte=fte;function hte(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var mte=hte;function vte(e){return this.__data__.get(e)}var yte=vte;function gte(e){return this.__data__.has(e)}var xte=gte,bte=Vp,wte=U0,Ste=H0,Ate=200;function Ete(e,t){var n=this.__data__;if(n instanceof bte){var r=n.__data__;if(!wte||r.length<Ate-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ste(r)}return n.set(e,t),this.size=n.size,this}var Nte=Ete,_te=Vp,jte=pte,Cte=mte,Ote=yte,Tte=xte,Pte=Nte;function js(e){var t=this.__data__=new _te(e);this.size=t.size}js.prototype.clear=jte;js.prototype.delete=Cte;js.prototype.get=Ote;js.prototype.has=Tte;js.prototype.set=Pte;var K$=js,Ite="__lodash_hash_undefined__";function Rte(e){return this.__data__.set(e,Ite),this}var kte=Rte;function Mte(e){return this.__data__.has(e)}var Dte=Mte,$te=H0,Lte=kte,Fte=Dte;function df(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $te;++t<n;)this.add(e[t])}df.prototype.add=df.prototype.push=Lte;df.prototype.has=Fte;var Y$=df;function Bte(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var q$=Bte;function Ute(e,t){return e.has(t)}var X$=Ute,Hte=Y$,zte=q$,Wte=X$,Gte=1,Vte=2;function Kte(e,t,n,r,o,i){var a=n&Gte,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,v=n&Vte?new Hte:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var b=e[d],y=t[d];if(r)var m=a?r(y,b,d,t,e,i):r(b,y,d,e,t,i);if(m!==void 0){if(m)continue;p=!1;break}if(v){if(!zte(t,function(g,x){if(!Wte(v,x)&&(b===g||o(b,g,n,r,i)))return v.push(x)})){p=!1;break}}else if(!(b===y||o(b,y,n,r,i))){p=!1;break}}return i.delete(e),i.delete(t),p}var Z$=Kte,Yte=Er,qte=Yte.Uint8Array,Xte=qte;function Zte(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}var Qte=Zte;function Jte(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var tb=Jte,kA=Qc,MA=Xte,ene=B0,tne=Z$,nne=Qte,rne=tb,one=1,ine=2,ane="[object Boolean]",sne="[object Date]",lne="[object Error]",cne="[object Map]",une="[object Number]",dne="[object RegExp]",fne="[object Set]",pne="[object String]",hne="[object Symbol]",mne="[object ArrayBuffer]",vne="[object DataView]",DA=kA?kA.prototype:void 0,km=DA?DA.valueOf:void 0;function yne(e,t,n,r,o,i,a){switch(n){case vne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case mne:return!(e.byteLength!=t.byteLength||!i(new MA(e),new MA(t)));case ane:case sne:case une:return ene(+e,+t);case lne:return e.name==t.name&&e.message==t.message;case dne:case pne:return e==t+"";case cne:var s=nne;case fne:var c=r&one;if(s||(s=rne),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;r|=ine,a.set(e,t);var f=tne(s(e),s(t),r,o,i,a);return a.delete(e),f;case hne:if(km)return km.call(e)==km.call(t)}return!1}var gne=yne;function xne(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Q$=xne,bne=Q$,wne=tn;function Sne(e,t,n){var r=t(e);return wne(e)?r:bne(r,n(e))}var Ane=Sne;function Ene(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}var Nne=Ene;function _ne(){return[]}var jne=_ne,Cne=Nne,One=jne,Tne=Object.prototype,Pne=Tne.propertyIsEnumerable,$A=Object.getOwnPropertySymbols,Ine=$A?function(e){return e==null?[]:(e=Object(e),Cne($A(e),function(t){return Pne.call(e,t)}))}:One,Rne=Ine;function kne(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Mne=kne,Dne=no,$ne=ro,Lne="[object Arguments]";function Fne(e){return $ne(e)&&Dne(e)==Lne}var Bne=Fne,LA=Bne,Une=ro,J$=Object.prototype,Hne=J$.hasOwnProperty,zne=J$.propertyIsEnumerable,Wne=LA(function(){return arguments}())?LA:function(e){return Une(e)&&Hne.call(e,"callee")&&!zne.call(e,"callee")},nb=Wne,ff={exports:{}};function Gne(){return!1}var Vne=Gne;ff.exports;(function(e,t){var n=Er,r=Vne,o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,u=c||r;e.exports=u})(ff,ff.exports);var eL=ff.exports,Kne=9007199254740991,Yne=/^(?:0|[1-9]\d*)$/;function qne(e,t){var n=typeof e;return t=t??Kne,!!t&&(n=="number"||n!="symbol"&&Yne.test(e))&&e>-1&&e%1==0&&e<t}var rb=qne,Xne=9007199254740991;function Zne(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Xne}var ob=Zne,Qne=no,Jne=ob,ere=ro,tre="[object Arguments]",nre="[object Array]",rre="[object Boolean]",ore="[object Date]",ire="[object Error]",are="[object Function]",sre="[object Map]",lre="[object Number]",cre="[object Object]",ure="[object RegExp]",dre="[object Set]",fre="[object String]",pre="[object WeakMap]",hre="[object ArrayBuffer]",mre="[object DataView]",vre="[object Float32Array]",yre="[object Float64Array]",gre="[object Int8Array]",xre="[object Int16Array]",bre="[object Int32Array]",wre="[object Uint8Array]",Sre="[object Uint8ClampedArray]",Are="[object Uint16Array]",Ere="[object Uint32Array]",We={};We[vre]=We[yre]=We[gre]=We[xre]=We[bre]=We[wre]=We[Sre]=We[Are]=We[Ere]=!0;We[tre]=We[nre]=We[hre]=We[rre]=We[mre]=We[ore]=We[ire]=We[are]=We[sre]=We[lre]=We[cre]=We[ure]=We[dre]=We[fre]=We[pre]=!1;function Nre(e){return ere(e)&&Jne(e.length)&&!!We[Qne(e)]}var _re=Nre;function jre(e){return function(t){return e(t)}}var tL=jre,pf={exports:{}};pf.exports;(function(e,t){var n=c$,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(pf,pf.exports);var Cre=pf.exports,Ore=_re,Tre=tL,FA=Cre,BA=FA&&FA.isTypedArray,Pre=BA?Tre(BA):Ore,nL=Pre,Ire=Mne,Rre=nb,kre=tn,Mre=eL,Dre=rb,$re=nL,Lre=Object.prototype,Fre=Lre.hasOwnProperty;function Bre(e,t){var n=kre(e),r=!n&&Rre(e),o=!n&&!r&&Mre(e),i=!n&&!r&&!o&&$re(e),a=n||r||o||i,s=a?Ire(e.length,String):[],c=s.length;for(var u in e)(t||Fre.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Dre(u,c)))&&s.push(u);return s}var Ure=Bre,Hre=Object.prototype;function zre(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Hre;return e===n}var Wre=zre;function Gre(e,t){return function(n){return e(t(n))}}var rL=Gre,Vre=rL,Kre=Vre(Object.keys,Object),Yre=Kre,qre=Wre,Xre=Yre,Zre=Object.prototype,Qre=Zre.hasOwnProperty;function Jre(e){if(!qre(e))return Xre(e);var t=[];for(var n in Object(e))Qre.call(e,n)&&n!="constructor"&&t.push(n);return t}var eoe=Jre,toe=F0,noe=ob;function roe(e){return e!=null&&noe(e.length)&&!toe(e)}var tu=roe,ooe=Ure,ioe=eoe,aoe=tu;function soe(e){return aoe(e)?ooe(e):ioe(e)}var ch=soe,loe=Ane,coe=Rne,uoe=ch;function doe(e){return loe(e,uoe,coe)}var foe=doe,UA=foe,poe=1,hoe=Object.prototype,moe=hoe.hasOwnProperty;function voe(e,t,n,r,o,i){var a=n&poe,s=UA(e),c=s.length,u=UA(t),f=u.length;if(c!=f&&!a)return!1;for(var d=c;d--;){var p=s[d];if(!(a?p in t:moe.call(t,p)))return!1}var v=i.get(e),b=i.get(t);if(v&&b)return v==t&&b==e;var y=!0;i.set(e,t),i.set(t,e);for(var m=a;++d<c;){p=s[d];var g=e[p],x=t[p];if(r)var w=a?r(x,g,p,t,e,i):r(g,x,p,e,t,i);if(!(w===void 0?g===x||o(g,x,n,r,i):w)){y=!1;break}m||(m=p=="constructor")}if(y&&!m){var E=e.constructor,A=t.constructor;E!=A&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(y=!1)}return i.delete(e),i.delete(t),y}var yoe=voe,goe=Ui,xoe=Er,boe=goe(xoe,"DataView"),woe=boe,Soe=Ui,Aoe=Er,Eoe=Soe(Aoe,"Promise"),Noe=Eoe,_oe=Ui,joe=Er,Coe=_oe(joe,"Set"),oL=Coe,Ooe=Ui,Toe=Er,Poe=Ooe(Toe,"WeakMap"),Ioe=Poe,Ly=woe,Fy=U0,By=Noe,Uy=oL,Hy=Ioe,iL=no,Cs=d$,HA="[object Map]",Roe="[object Object]",zA="[object Promise]",WA="[object Set]",GA="[object WeakMap]",VA="[object DataView]",koe=Cs(Ly),Moe=Cs(Fy),Doe=Cs(By),$oe=Cs(Uy),Loe=Cs(Hy),ti=iL;(Ly&&ti(new Ly(new ArrayBuffer(1)))!=VA||Fy&&ti(new Fy)!=HA||By&&ti(By.resolve())!=zA||Uy&&ti(new Uy)!=WA||Hy&&ti(new Hy)!=GA)&&(ti=function(e){var t=iL(e),n=t==Roe?e.constructor:void 0,r=n?Cs(n):"";if(r)switch(r){case koe:return VA;case Moe:return HA;case Doe:return zA;case $oe:return WA;case Loe:return GA}return t});var Foe=ti,Mm=K$,Boe=Z$,Uoe=gne,Hoe=yoe,KA=Foe,YA=tn,qA=eL,zoe=nL,Woe=1,XA="[object Arguments]",ZA="[object Array]",Lu="[object Object]",Goe=Object.prototype,QA=Goe.hasOwnProperty;function Voe(e,t,n,r,o,i){var a=YA(e),s=YA(t),c=a?ZA:KA(e),u=s?ZA:KA(t);c=c==XA?Lu:c,u=u==XA?Lu:u;var f=c==Lu,d=u==Lu,p=c==u;if(p&&qA(e)){if(!qA(t))return!1;a=!0,f=!1}if(p&&!f)return i||(i=new Mm),a||zoe(e)?Boe(e,t,n,r,o,i):Uoe(e,t,c,n,r,o,i);if(!(n&Woe)){var v=f&&QA.call(e,"__wrapped__"),b=d&&QA.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,m=b?t.value():t;return i||(i=new Mm),o(y,m,n,r,i)}}return p?(i||(i=new Mm),Hoe(e,t,n,r,o,i)):!1}var Koe=Voe,Yoe=Koe,JA=ro;function aL(e,t,n,r,o){return e===t?!0:e==null||t==null||!JA(e)&&!JA(t)?e!==e&&t!==t:Yoe(e,t,n,r,aL,o)}var ib=aL,qoe=K$,Xoe=ib,Zoe=1,Qoe=2;function Joe(e,t,n,r){var o=n.length,i=o,a=!r;if(e==null)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){s=n[o];var c=s[0],u=e[c],f=s[1];if(a&&s[2]){if(u===void 0&&!(c in e))return!1}else{var d=new qoe;if(r)var p=r(u,f,c,e,t,d);if(!(p===void 0?Xoe(f,u,Zoe|Qoe,r,d):p))return!1}}return!0}var eie=Joe,tie=Wo;function nie(e){return e===e&&!tie(e)}var sL=nie,rie=sL,oie=ch;function iie(e){for(var t=oie(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,rie(o)]}return t}var aie=iie;function sie(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var lL=sie,lie=eie,cie=aie,uie=lL;function die(e){var t=cie(e);return t.length==1&&t[0][2]?uie(t[0][0],t[0][1]):function(n){return n===e||lie(n,e,t)}}var fie=die;function pie(e,t){return e!=null&&t in Object(e)}var hie=pie,mie=v$,vie=nb,yie=tn,gie=rb,xie=ob,bie=Yp;function wie(e,t,n){t=mie(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var a=bie(t[r]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&xie(o)&&gie(a,o)&&(yie(e)||vie(e)))}var Sie=wie,Aie=hie,Eie=Sie;function Nie(e,t){return e!=null&&Eie(e,t,Aie)}var _ie=Nie,jie=ib,Cie=y$,Oie=_ie,Tie=L0,Pie=sL,Iie=lL,Rie=Yp,kie=1,Mie=2;function Die(e,t){return Tie(e)&&Pie(t)?Iie(Rie(e),t):function(n){var r=Cie(n,e);return r===void 0&&r===t?Oie(n,e):jie(t,r,kie|Mie)}}var $ie=Die;function Lie(e){return e}var Os=Lie;function Fie(e){return function(t){return t==null?void 0:t[e]}}var Bie=Fie,Uie=G0;function Hie(e){return function(t){return Uie(t,e)}}var zie=Hie,Wie=Bie,Gie=zie,Vie=L0,Kie=Yp;function Yie(e){return Vie(e)?Wie(Kie(e)):Gie(e)}var qie=Yie,Xie=fie,Zie=$ie,Qie=Os,Jie=tn,eae=qie;function tae(e){return typeof e=="function"?e:e==null?Qie:typeof e=="object"?Jie(e)?Zie(e[0],e[1]):Xie(e):eae(e)}var Go=tae;function nae(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var cL=nae;function rae(e){return e!==e}var oae=rae;function iae(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}var aae=iae,sae=cL,lae=oae,cae=aae;function uae(e,t,n){return t===t?cae(e,t,n):sae(e,lae,n)}var dae=uae,fae=dae;function pae(e,t){var n=e==null?0:e.length;return!!n&&fae(e,t,0)>-1}var hae=pae;function mae(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}var vae=mae;function yae(){}var gae=yae,Dm=oL,xae=gae,bae=tb,wae=1/0,Sae=Dm&&1/bae(new Dm([,-0]))[1]==wae?function(e){return new Dm(e)}:xae,Aae=Sae,Eae=Y$,Nae=hae,_ae=vae,jae=X$,Cae=Aae,Oae=tb,Tae=200;function Pae(e,t,n){var r=-1,o=Nae,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=_ae;else if(i>=Tae){var u=t?null:Cae(e);if(u)return Oae(u);a=!1,o=jae,c=new Eae}else c=t?[]:s;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,a&&d===d){for(var p=c.length;p--;)if(c[p]===d)continue e;t&&c.push(d),s.push(f)}else o(c,d,n)||(c!==s&&c.push(d),s.push(f))}return s}var Iae=Pae,Rae=Go,kae=Iae;function Mae(e,t){return e&&e.length?kae(e,Rae(t)):[]}var Dae=Mae;const e1=Re(Dae);function uL(e,t,n){return t===!0?e1(e,n):xe(t)?e1(e,t):e}function Ga(e){"@babel/helpers - typeof";return Ga=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},Ga(e)}var $ae=["ref"];function t1(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 jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t1(Object(n),!0).forEach(function(r){uh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n1(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,fL(r.key),r)}}function Fae(e,t,n){return t&&n1(e.prototype,t),n&&n1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bae(e,t,n){return t=hf(t),Uae(e,dL()?Reflect.construct(t,n||[],hf(e).constructor):t.apply(e,n))}function Uae(e,t){if(t&&(Ga(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hae(e)}function Hae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dL=function(){return!!e})()}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function zae(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&&zy(e,t)}function zy(e,t){return zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zy(e,t)}function uh(e,t,n){return t=fL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fL(e){var t=Wae(e,"string");return Ga(t)=="symbol"?t:t+""}function Wae(e,t){if(Ga(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ga(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gae(e,t){if(e==null)return{};var n=Vae(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vae(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 Kae(e){return e.value}function Yae(e,t){if(D.isValidElement(e))return D.cloneElement(e,t);if(typeof e=="function")return D.createElement(e,t);t.ref;var n=Gae(t,$ae);return D.createElement(eb,n)}var r1=1,pi=function(e){function t(){var n;Lae(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Bae(this,t,[].concat(o)),uh(n,"lastBoundingBox",{width:-1,height:-1}),n}return zae(t,e),Fae(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)>r1||Math.abs(o.height-this.lastBoundingBox.height)>r1)&&(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?jr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,i=o.layout,a=o.align,s=o.verticalAlign,c=o.margin,u=o.chartWidth,f=o.chartHeight,d,p;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&i==="vertical"){var v=this.getBBoxSnapshot();d={left:((u||0)-v.width)/2}}else d=a==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(s==="middle"){var b=this.getBBoxSnapshot();p={top:((f||0)-b.height)/2}}else p=s==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return jr(jr({},d),p)}},{key:"render",value:function(){var r=this,o=this.props,i=o.content,a=o.width,s=o.height,c=o.wrapperStyle,u=o.payloadUniqBy,f=o.payload,d=jr(jr({position:"absolute",width:a||"auto",height:s||"auto"},this.getDefaultPosition(c)),c);return D.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){r.wrapperNode=v}},Yae(i,jr(jr({},this.props),{},{payload:uL(f,u,Kae)})))}}],[{key:"getWithHeight",value:function(r,o){var i=jr(jr({},this.defaultProps),r.props),a=i.layout;return a==="vertical"&&K(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||o}:null}}])}(h.PureComponent);uh(pi,"displayName","Legend");uh(pi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var o1=Qc,qae=nb,Xae=tn,i1=o1?o1.isConcatSpreadable:void 0;function Zae(e){return Xae(e)||qae(e)||!!(i1&&e&&e[i1])}var Qae=Zae,Jae=Q$,ese=Qae;function pL(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=ese),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?pL(s,t-1,n,r,o):Jae(o,s):r||(o[o.length]=s)}return o}var hL=pL;function tse(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++o];if(n(i[c],c,i)===!1)break}return t}}var nse=tse,rse=nse,ose=rse(),ise=ose,ase=ise,sse=ch;function lse(e,t){return e&&ase(e,t,sse)}var mL=lse,cse=tu;function use(e,t){return function(n,r){if(n==null)return n;if(!cse(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}var dse=use,fse=mL,pse=dse,hse=pse(fse),ab=hse,mse=ab,vse=tu;function yse(e,t){var n=-1,r=vse(e)?Array(e.length):[];return mse(e,function(o,i,a){r[++n]=t(o,i,a)}),r}var vL=yse;function gse(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var xse=gse,a1=Ss;function bse(e,t){if(e!==t){var n=e!==void 0,r=e===null,o=e===e,i=a1(e),a=t!==void 0,s=t===null,c=t===t,u=a1(t);if(!s&&!u&&!i&&e>t||i&&a&&c&&!s&&!u||r&&a&&c||!n&&c||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!c)return-1}return 0}var wse=bse,Sse=wse;function Ase(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var c=Sse(o[r],i[r]);if(c){if(r>=s)return c;var u=n[r];return c*(u=="desc"?-1:1)}}return e.index-t.index}var Ese=Ase,$m=W0,Nse=G0,_se=Go,jse=vL,Cse=xse,Ose=tL,Tse=Ese,Pse=Os,Ise=tn;function Rse(e,t,n){t.length?t=$m(t,function(i){return Ise(i)?function(a){return Nse(a,i.length===1?i[0]:i)}:i}):t=[Pse];var r=-1;t=$m(t,Ose(_se));var o=jse(e,function(i,a,s){var c=$m(t,function(u){return u(i)});return{criteria:c,index:++r,value:i}});return Cse(o,function(i,a){return Tse(i,a,n)})}var kse=Rse;function Mse(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Dse=Mse,$se=Dse,s1=Math.max;function Lse(e,t,n){return t=s1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=s1(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),$se(e,this,s)}}var Fse=Lse;function Bse(e){return function(){return e}}var Use=Bse,Hse=Ui,zse=function(){try{var e=Hse(Object,"defineProperty");return e({},"",{}),e}catch{}}(),yL=zse,Wse=Use,l1=yL,Gse=Os,Vse=l1?function(e,t){return l1(e,"toString",{configurable:!0,enumerable:!1,value:Wse(t),writable:!0})}:Gse,Kse=Vse,Yse=800,qse=16,Xse=Date.now;function Zse(e){var t=0,n=0;return function(){var r=Xse(),o=qse-(r-n);if(n=r,o>0){if(++t>=Yse)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Qse=Zse,Jse=Kse,ele=Qse,tle=ele(Jse),nle=tle,rle=Os,ole=Fse,ile=nle;function ale(e,t){return ile(ole(e,t,rle),e+"")}var sle=ale,lle=B0,cle=tu,ule=rb,dle=Wo;function fle(e,t,n){if(!dle(n))return!1;var r=typeof t;return(r=="number"?cle(n)&&ule(t,n.length):r=="string"&&t in n)?lle(n[t],e):!1}var dh=fle,ple=hL,hle=kse,mle=sle,c1=dh,vle=mle(function(e,t){if(e==null)return[];var n=t.length;return n>1&&c1(e,t[0],t[1])?t=[]:n>2&&c1(t[0],t[1],t[2])&&(t=[t[0]]),hle(e,ple(t,1),[])}),yle=vle;const sb=Re(yle);function rc(e){"@babel/helpers - typeof";return rc=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},rc(e)}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 gle(e,t){return Sle(e)||wle(e,t)||ble(e,t)||xle()}function xle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
502
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ble(e,t){if(e){if(typeof e=="string")return u1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u1(e,t)}}function u1(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 wle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Sle(e){if(Array.isArray(e))return e}function d1(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 Lm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d1(Object(n),!0).forEach(function(r){Ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ale(e,t,n){return t=Ele(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ele(e){var t=Nle(e,"string");return rc(t)=="symbol"?t:t+""}function Nle(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _le(e){return Array.isArray(e)&&pt(e[0])&&pt(e[1])?e.join(" ~ "):e}var jle=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,i=o===void 0?{}:o,a=t.itemStyle,s=a===void 0?{}:a,c=t.labelStyle,u=c===void 0?{}:c,f=t.payload,d=t.formatter,p=t.itemSorter,v=t.wrapperClassName,b=t.labelClassName,y=t.label,m=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var R={padding:0,margin:0},L=(p?sb(f,p):f).map(function(j,T){if(j.type==="none")return null;var I=Lm({display:"block",paddingTop:4,paddingBottom:4,color:j.color||"#000"},s),$=j.formatter||d||_le,k=j.value,M=j.name,B=k,W=M;if($&&B!=null&&W!=null){var z=$(k,M,j,T,f);if(Array.isArray(z)){var J=gle(z,2);B=J[0],W=J[1]}else B=z}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(T),style:I},pt(W)?D.createElement("span",{className:"recharts-tooltip-item-name"},W):null,pt(W)?D.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,D.createElement("span",{className:"recharts-tooltip-item-value"},B),D.createElement("span",{className:"recharts-tooltip-item-unit"},j.unit||""))});return D.createElement("ul",{className:"recharts-tooltip-item-list",style:R},L)}return null},E=Lm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),A=Lm({margin:0},u),S=!be(y),N=S?y:"",_=Ne("recharts-default-tooltip",v),C=Ne("recharts-tooltip-label",b);S&&m&&f!==void 0&&f!==null&&(N=m(y,f));var P=x?{role:"status","aria-live":"assertive"}:{};return D.createElement("div",Wy({className:_,style:E},P),D.createElement("p",{className:C,style:A},D.isValidElement(N)?N:"".concat(N)),w())};function oc(e){"@babel/helpers - typeof";return oc=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},oc(e)}function Fu(e,t,n){return t=Cle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cle(e){var t=Ole(e,"string");return oc(t)=="symbol"?t:t+""}function Ole(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ys="recharts-tooltip-wrapper",Tle={visibility:"hidden"};function Ple(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ne(Ys,Fu(Fu(Fu(Fu({},"".concat(Ys,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(Ys,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(Ys,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(Ys,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function f1(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,u=e.viewBoxDimension;if(i&&K(i[r]))return i[r];var f=n[r]-s-o,d=n[r]+o;if(t[r])return a[r]?f:d;if(a[r]){var p=f,v=c[r];return p<v?Math.max(d,c[r]):Math.max(f,c[r])}var b=d+s,y=c[r]+u;return b>y?Math.max(f,c[r]):Math.max(d,c[r])}function Ile(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 Rle(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,i=e.reverseDirection,a=e.tooltipBox,s=e.useTranslate3d,c=e.viewBox,u,f,d;return a.height>0&&a.width>0&&n?(f=f1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:c,viewBoxDimension:c.width}),d=f1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:c,viewBoxDimension:c.height}),u=Ile({translateX:f,translateY:d,useTranslate3d:s})):u=Tle,{cssProperties:u,cssClasses:Ple({translateX:f,translateY:d,coordinate:n})}}function Va(e){"@babel/helpers - typeof";return Va=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},Va(e)}function p1(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 h1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p1(Object(n),!0).forEach(function(r){Vy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mle(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,xL(r.key),r)}}function Dle(e,t,n){return t&&Mle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $le(e,t,n){return t=mf(t),Lle(e,gL()?Reflect.construct(t,n||[],mf(e).constructor):t.apply(e,n))}function Lle(e,t){if(t&&(Va(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fle(e)}function Fle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gL=function(){return!!e})()}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mf(e)}function Ble(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&&Gy(e,t)}function Gy(e,t){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Gy(e,t)}function Vy(e,t,n){return t=xL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e){var t=Ule(e,"string");return Va(t)=="symbol"?t:t+""}function Ule(e,t){if(Va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var m1=1,Hle=function(e){function t(){var n;kle(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=$le(this,t,[].concat(o)),Vy(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Vy(n,"handleKeyDown",function(a){if(a.key==="Escape"){var s,c,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(c=n.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&s!==void 0?s:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return Ble(t,e),Dle(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>m1||Math.abs(r.height-this.state.lastBoundingBox.height)>m1)&&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,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,u=o.children,f=o.coordinate,d=o.hasPayload,p=o.isAnimationActive,v=o.offset,b=o.position,y=o.reverseDirection,m=o.useTranslate3d,g=o.viewBox,x=o.wrapperStyle,w=Rle({allowEscapeViewBox:a,coordinate:f,offsetTopLeft:v,position:b,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:g}),E=w.cssClasses,A=w.cssProperties,S=h1(h1({transition:p&&i?"transform ".concat(s,"ms ").concat(c):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},x);return D.createElement("div",{tabIndex:-1,className:E,style:S,ref:function(_){r.wrapperNode=_}},u)}}])}(h.PureComponent),zle=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ts={isSsr:zle()};function Ka(e){"@babel/helpers - typeof";return Ka=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},Ka(e)}function v1(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 y1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(n),!0).forEach(function(r){lb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gle(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,wL(r.key),r)}}function Vle(e,t,n){return t&&Gle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kle(e,t,n){return t=vf(t),Yle(e,bL()?Reflect.construct(t,n||[],vf(e).constructor):t.apply(e,n))}function Yle(e,t){if(t&&(Ka(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qle(e)}function qle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bL=function(){return!!e})()}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vf(e)}function Xle(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&&Ky(e,t)}function Ky(e,t){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ky(e,t)}function lb(e,t,n){return t=wL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wL(e){var t=Zle(e,"string");return Ka(t)=="symbol"?t:t+""}function Zle(e,t){if(Ka(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ka(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qle(e){return e.dataKey}function Jle(e,t){return D.isValidElement(e)?D.cloneElement(e,t):typeof e=="function"?D.createElement(e,t):D.createElement(jle,t)}var Wn=function(e){function t(){return Wle(this,t),Kle(this,t,arguments)}return Xle(t,e),Vle(t,[{key:"render",value:function(){var r=this,o=this.props,i=o.active,a=o.allowEscapeViewBox,s=o.animationDuration,c=o.animationEasing,u=o.content,f=o.coordinate,d=o.filterNull,p=o.isAnimationActive,v=o.offset,b=o.payload,y=o.payloadUniqBy,m=o.position,g=o.reverseDirection,x=o.useTranslate3d,w=o.viewBox,E=o.wrapperStyle,A=b??[];d&&A.length&&(A=uL(b.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),y,Qle));var S=A.length>0;return D.createElement(Hle,{allowEscapeViewBox:a,animationDuration:s,animationEasing:c,isAnimationActive:p,active:i,coordinate:f,hasPayload:S,offset:v,position:m,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:E},Jle(u,y1(y1({},this.props),{},{payload:A})))}}])}(h.PureComponent);lb(Wn,"displayName","Tooltip");lb(Wn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ts.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 ece=Er,tce=function(){return ece.Date.now()},nce=tce,rce=/\s/;function oce(e){for(var t=e.length;t--&&rce.test(e.charAt(t)););return t}var ice=oce,ace=ice,sce=/^\s+/;function lce(e){return e&&e.slice(0,ace(e)+1).replace(sce,"")}var cce=lce,uce=cce,g1=Wo,dce=Ss,x1=NaN,fce=/^[-+]0x[0-9a-f]+$/i,pce=/^0b[01]+$/i,hce=/^0o[0-7]+$/i,mce=parseInt;function vce(e){if(typeof e=="number")return e;if(dce(e))return x1;if(g1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=g1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uce(e);var n=pce.test(e);return n||hce.test(e)?mce(e.slice(2),n?2:8):fce.test(e)?x1:+e}var SL=vce,yce=Wo,Fm=nce,b1=SL,gce="Expected a function",xce=Math.max,bce=Math.min;function wce(e,t,n){var r,o,i,a,s,c,u=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(gce);t=b1(t)||0,yce(n)&&(f=!!n.leading,d="maxWait"in n,i=d?xce(b1(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p);function v(S){var N=r,_=o;return r=o=void 0,u=S,a=e.apply(_,N),a}function b(S){return u=S,s=setTimeout(g,t),f?v(S):a}function y(S){var N=S-c,_=S-u,C=t-N;return d?bce(C,i-_):C}function m(S){var N=S-c,_=S-u;return c===void 0||N>=t||N<0||d&&_>=i}function g(){var S=Fm();if(m(S))return x(S);s=setTimeout(g,y(S))}function x(S){return s=void 0,p&&r?v(S):(r=o=void 0,a)}function w(){s!==void 0&&clearTimeout(s),u=0,r=c=o=s=void 0}function E(){return s===void 0?a:x(Fm())}function A(){var S=Fm(),N=m(S);if(r=arguments,o=this,c=S,N){if(s===void 0)return b(c);if(d)return clearTimeout(s),s=setTimeout(g,t),v(c)}return s===void 0&&(s=setTimeout(g,t)),a}return A.cancel=w,A.flush=E,A}var Sce=wce,Ace=Sce,Ece=Wo,Nce="Expected a function";function _ce(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(Nce);return Ece(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ace(e,t,{leading:r,maxWait:t,trailing:o})}var jce=_ce;const AL=Re(jce);function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}function w1(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 Bu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(n),!0).forEach(function(r){Cce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cce(e,t,n){return t=Oce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oce(e){var t=Tce(e,"string");return ic(t)=="symbol"?t:t+""}function Tce(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pce(e,t){return Mce(e)||kce(e,t)||Rce(e,t)||Ice()}function Ice(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
503
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rce(e,t){if(e){if(typeof e=="string")return S1(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 S1(e,t)}}function S1(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 kce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Mce(e){if(Array.isArray(e))return e}var A1=h.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,i=e.width,a=i===void 0?"100%":i,s=e.height,c=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,d=e.minHeight,p=e.maxHeight,v=e.children,b=e.debounce,y=b===void 0?0:b,m=e.id,g=e.className,x=e.onResize,w=e.style,E=w===void 0?{}:w,A=h.useRef(null),S=h.useRef();S.current=x,h.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var N=h.useState({containerWidth:o.width,containerHeight:o.height}),_=Pce(N,2),C=_[0],P=_[1],O=h.useCallback(function(L,j){P(function(T){var I=Math.round(L),$=Math.round(j);return T.containerWidth===I&&T.containerHeight===$?T:{containerWidth:I,containerHeight:$}})},[]);h.useEffect(function(){var L=function(M){var B,W=M[0].contentRect,z=W.width,J=W.height;O(z,J),(B=S.current)===null||B===void 0||B.call(S,z,J)};y>0&&(L=AL(L,y,{trailing:!0,leading:!1}));var j=new ResizeObserver(L),T=A.current.getBoundingClientRect(),I=T.width,$=T.height;return O(I,$),j.observe(A.current),function(){j.disconnect()}},[O,y]);var R=h.useMemo(function(){var L=C.containerWidth,j=C.containerHeight;if(L<0||j<0)return null;Fr(si(a)||si(c),`The width(%s) and height(%s) are both fixed numbers,
|
|
504
|
-
maybe you don't need to use a ResponsiveContainer.`,a,c),Fr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var T=si(a)?L:a,I=si(c)?j:c;n&&n>0&&(T?I=T/n:I&&(T=I*n),p&&I>p&&(I=p)),Fr(T>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
505
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
506
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
507
|
-
height and width.`,T,I,a,c,f,d,n);var $=!Array.isArray(v)&&Lr(v.type).endsWith("Chart");return D.Children.map(v,function(k){return D.isValidElement(k)?h.cloneElement(k,Bu({width:T,height:I},$?{style:Bu({height:"100%",width:"100%",maxHeight:I,maxWidth:T},k.props.style)}:{})):k})},[n,v,c,p,d,f,C,a]);return D.createElement("div",{id:m?"".concat(m):void 0,className:Ne("recharts-responsive-container",g),style:Bu(Bu({},E),{},{width:a,height:c,minWidth:f,minHeight:d,maxHeight:p}),ref:A},R)}),EL=function(t){return null};EL.displayName="Cell";function ac(e){"@babel/helpers - typeof";return ac=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},ac(e)}function E1(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 Yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E1(Object(n),!0).forEach(function(r){Dce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dce(e,t,n){return t=$ce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ce(e){var t=Lce(e,"string");return ac(t)=="symbol"?t:t+""}function Lce(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ji={widthCache:{},cacheCount:0},Fce=2e3,Bce={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},N1="recharts_measurement_span";function Uce(e){var t=Yy({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Sl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ts.isSsr)return{width:0,height:0};var r=Uce(n),o=JSON.stringify({text:t,copyStyle:r});if(Ji.widthCache[o])return Ji.widthCache[o];try{var i=document.getElementById(N1);i||(i=document.createElement("span"),i.setAttribute("id",N1),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=Yy(Yy({},Bce),r);Object.assign(i.style,a),i.textContent="".concat(t);var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return Ji.widthCache[o]=c,++Ji.cacheCount>Fce&&(Ji.cacheCount=0,Ji.widthCache={}),c}catch{return{width:0,height:0}}},Hce=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}function yf(e,t){return Vce(e)||Gce(e,t)||Wce(e,t)||zce()}function zce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
508
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wce(e,t){if(e){if(typeof e=="string")return _1(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 _1(e,t)}}function _1(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 Gce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Vce(e){if(Array.isArray(e))return e}function Kce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j1(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,qce(r.key),r)}}function Yce(e,t,n){return t&&j1(e.prototype,t),n&&j1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qce(e){var t=Xce(e,"string");return sc(t)=="symbol"?t:t+""}function Xce(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var C1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,O1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Zce=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Qce=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,NL={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Jce=Object.keys(NL),va="NaN";function eue(e,t){return e*NL[t]}var Uu=function(){function e(t,n){Kce(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Zce.test(n)&&(this.num=NaN,this.unit=""),Jce.includes(n)&&(this.num=eue(t,n),this.unit="px")}return Yce(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=Qce.exec(n))!==null&&r!==void 0?r:[],i=yf(o,3),a=i[1],s=i[2];return new e(parseFloat(a),s??"")}}])}();function _L(e){if(e.includes(va))return va;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=C1.exec(t))!==null&&n!==void 0?n:[],o=yf(r,4),i=o[1],a=o[2],s=o[3],c=Uu.parse(i??""),u=Uu.parse(s??""),f=a==="*"?c.multiply(u):c.divide(u);if(f.isNaN())return va;t=t.replace(C1,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,p=(d=O1.exec(t))!==null&&d!==void 0?d:[],v=yf(p,4),b=v[1],y=v[2],m=v[3],g=Uu.parse(b??""),x=Uu.parse(m??""),w=y==="+"?g.add(x):g.subtract(x);if(w.isNaN())return va;t=t.replace(O1,w.toString())}return t}var T1=/\(([^()]*)\)/;function tue(e){for(var t=e;t.includes("(");){var n=T1.exec(t),r=yf(n,2),o=r[1];t=t.replace(T1,_L(o))}return t}function nue(e){var t=e.replace(/\s+/g,"");return t=tue(t),t=_L(t),t}function rue(e){try{return nue(e)}catch{return va}}function Bm(e){var t=rue(e.slice(5,-1));return t===va?"":t}var oue=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],iue=["dx","dy","angle","className","breakAll"];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 P1(e,t){if(e==null)return{};var n=aue(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function aue(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 I1(e,t){return uue(e)||cue(e,t)||lue(e,t)||sue()}function sue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
509
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lue(e,t){if(e){if(typeof e=="string")return R1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R1(e,t)}}function R1(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 cue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function uue(e){if(Array.isArray(e))return e}var jL=/[ \f\n\r\t\v\u2028\u2029]+/,CL=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var i=[];be(n)||(r?i=n.toString().split(""):i=n.toString().split(jL));var a=i.map(function(c){return{word:c,width:Sl(c,o).width}}),s=r?0:Sl(" ",o).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},due=function(t,n,r,o,i){var a=t.maxLines,s=t.children,c=t.style,u=t.breakAll,f=K(a),d=s,p=function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return T.reduce(function(I,$){var k=$.word,M=$.width,B=I[I.length-1];if(B&&(o==null||i||B.width+M+r<Number(o)))B.words.push(k),B.width+=M+r;else{var W={words:[k],width:M};I.push(W)}return I},[])},v=p(n),b=function(T){return T.reduce(function(I,$){return I.width>$.width?I:$})};if(!f)return v;for(var y="…",m=function(T){var I=d.slice(0,T),$=CL({breakAll:u,style:c,children:I+y}).wordsWithComputedWidth,k=p($),M=k.length>a||b(k).width>Number(o);return[M,k]},g=0,x=d.length-1,w=0,E;g<=x&&w<=d.length-1;){var A=Math.floor((g+x)/2),S=A-1,N=m(S),_=I1(N,2),C=_[0],P=_[1],O=m(A),R=I1(O,1),L=R[0];if(!C&&!L&&(g=A+1),C&&L&&(x=A-1),!C&&L){E=P;break}w++}return E||v},k1=function(t){var n=be(t)?[]:t.toString().split(jL);return[{words:n}]},fue=function(t){var n=t.width,r=t.scaleToFit,o=t.children,i=t.style,a=t.breakAll,s=t.maxLines;if((n||r)&&!Ts.isSsr){var c,u,f=CL({breakAll:a,children:o,style:i});if(f){var d=f.wordsWithComputedWidth,p=f.spaceWidth;c=d,u=p}else return k1(o);return due({breakAll:a,children:o,maxLines:s,style:i},c,u,n,r)}return k1(o)},M1="#808080",gf=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.lineHeight,s=a===void 0?"1em":a,c=t.capHeight,u=c===void 0?"0.71em":c,f=t.scaleToFit,d=f===void 0?!1:f,p=t.textAnchor,v=p===void 0?"start":p,b=t.verticalAnchor,y=b===void 0?"end":b,m=t.fill,g=m===void 0?M1:m,x=P1(t,oue),w=h.useMemo(function(){return fue({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:d,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,d,x.style,x.width]),E=x.dx,A=x.dy,S=x.angle,N=x.className,_=x.breakAll,C=P1(x,iue);if(!pt(r)||!pt(i))return null;var P=r+(K(E)?E:0),O=i+(K(A)?A:0),R;switch(y){case"start":R=Bm("calc(".concat(u,")"));break;case"middle":R=Bm("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:R=Bm("calc(".concat(w.length-1," * -").concat(s,")"));break}var L=[];if(d){var j=w[0].width,T=x.width;L.push("scale(".concat((K(T)?T/j:1)/j,")"))}return S&&L.push("rotate(".concat(S,", ").concat(P,", ").concat(O,")")),L.length&&(C.transform=L.join(" ")),D.createElement("text",qy({},Ee(C,!0),{x:P,y:O,className:Ne("recharts-text",N),textAnchor:v,fill:g.includes("url")?M1:g}),w.map(function(I,$){var k=I.words.join(_?"":" ");return D.createElement("tspan",{x:P,dy:$===0?R:s,key:"".concat(k,"-").concat($)},k)}))};function Po(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function pue(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cb(e){let t,n,r;e.length!==2?(t=Po,n=(s,c)=>Po(e(s),c),r=(s,c)=>e(s)-c):(t=e===Po||e===pue?e:hue,n=e,r=e);function o(s,c,u=0,f=s.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<0?u=d+1:f=d}while(u<f)}return u}function i(s,c,u=0,f=s.length){if(u<f){if(t(c,c)!==0)return f;do{const d=u+f>>>1;n(s[d],c)<=0?u=d+1:f=d}while(u<f)}return u}function a(s,c,u=0,f=s.length){const d=o(s,c,u,f-1);return d>u&&r(s[d-1],c)>-r(s[d],c)?d-1:d}return{left:o,center:a,right:i}}function hue(){return 0}function OL(e){return e===null?NaN:+e}function*mue(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const vue=cb(Po),nu=vue.right;cb(OL).center;class D1 extends Map{constructor(t,n=xue){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($1(this,t))}has(t){return super.has($1(this,t))}set(t,n){return super.set(yue(this,t),n)}delete(t){return super.delete(gue(this,t))}}function $1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yue({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function gue({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function xue(e){return e!==null&&typeof e=="object"?e.valueOf():e}function bue(e=Po){if(e===Po)return TL;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 TL(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const wue=Math.sqrt(50),Sue=Math.sqrt(10),Aue=Math.sqrt(2);function xf(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=wue?10:i>=Sue?5:i>=Aue?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?xf(e,t,n*2):[s,c,u]}function Xy(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?xf(t,e,n):xf(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)c[u]=(i-u)/-a;else for(let u=0;u<s;++u)c[u]=(i-u)*a;else if(a<0)for(let u=0;u<s;++u)c[u]=(o+u)/-a;else for(let u=0;u<s;++u)c[u]=(o+u)*a;return c}function Zy(e,t,n){return t=+t,e=+e,n=+n,xf(e,t,n)[2]}function Qy(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?Zy(t,e,n):Zy(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function L1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function F1(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function PL(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?TL:bue(o);r>n;){if(r-n>600){const c=r-n+1,u=t-n+1,f=Math.log(c),d=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*d*(c-d)/c)*(u-c/2<0?-1:1),v=Math.max(n,Math.floor(t-u*d/c+p)),b=Math.min(r,Math.floor(t+(c-u)*d/c+p));PL(e,t,v,b,o)}const i=e[t];let a=n,s=r;for(qs(e,n,t),o(e[r],i)>0&&qs(e,n,r);a<s;){for(qs(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?qs(e,n,s):(++s,qs(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function qs(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Eue(e,t,n){if(e=Float64Array.from(mue(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return F1(e);if(t>=1)return L1(e);var r,o=(r-1)*t,i=Math.floor(o),a=L1(PL(e,i).subarray(0,i+1)),s=F1(e.subarray(i+1));return a+(s-a)*(o-i)}}function Nue(e,t,n=OL){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,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function _ue(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,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function $n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function oo(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Jy=Symbol("implicit");function ub(){var e=new D1,t=[],n=[],r=Jy;function o(i){let a=e.get(i);if(a===void 0){if(r!==Jy)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new D1;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return ub(t,n).unknown(r)},$n.apply(o,arguments),o}function lc(){var e=ub().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,c=0,u=0,f=.5;delete e.unknown;function d(){var p=t().length,v=o<r,b=v?o:r,y=v?r:o;i=(y-b)/Math.max(1,p-c+u*2),s&&(i=Math.floor(i)),b+=(y-b-i*(p-c))*f,a=i*(1-c),s&&(b=Math.round(b),a=Math.round(a));var m=_ue(p).map(function(g){return b+i*g});return n(v?m.reverse():m)}return e.domain=function(p){return arguments.length?(t(p),d()):t()},e.range=function(p){return arguments.length?([r,o]=p,r=+r,o=+o,d()):[r,o]},e.rangeRound=function(p){return[r,o]=p,r=+r,o=+o,s=!0,d()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(p){return arguments.length?(s=!!p,d()):s},e.padding=function(p){return arguments.length?(c=Math.min(1,u=+p),d()):c},e.paddingInner=function(p){return arguments.length?(c=Math.min(1,p),d()):c},e.paddingOuter=function(p){return arguments.length?(u=+p,d()):u},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),d()):f},e.copy=function(){return lc(t(),[r,o]).round(s).paddingInner(c).paddingOuter(u).align(f)},$n.apply(d(),arguments)}function IL(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return IL(t())},e}function Al(){return IL(lc.apply(null,arguments).paddingInner(1))}function db(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function RL(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ru(){}var cc=.7,bf=1/cc,Pa="\\s*([+-]?\\d+)\\s*",uc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jue=/^#([0-9a-f]{3,8})$/,Cue=new RegExp(`^rgb\\(${Pa},${Pa},${Pa}\\)$`),Oue=new RegExp(`^rgb\\(${yr},${yr},${yr}\\)$`),Tue=new RegExp(`^rgba\\(${Pa},${Pa},${Pa},${uc}\\)$`),Pue=new RegExp(`^rgba\\(${yr},${yr},${yr},${uc}\\)$`),Iue=new RegExp(`^hsl\\(${uc},${yr},${yr}\\)$`),Rue=new RegExp(`^hsla\\(${uc},${yr},${yr},${uc}\\)$`),B1={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};db(ru,dc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U1,formatHex:U1,formatHex8:kue,formatHsl:Mue,formatRgb:H1,toString:H1});function U1(){return this.rgb().formatHex()}function kue(){return this.rgb().formatHex8()}function Mue(){return kL(this).formatHsl()}function H1(){return this.rgb().formatRgb()}function dc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=jue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?z1(t):n===3?new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Hu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Hu(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=Cue.exec(e))?new qt(t[1],t[2],t[3],1):(t=Oue.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Tue.exec(e))?Hu(t[1],t[2],t[3],t[4]):(t=Pue.exec(e))?Hu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Iue.exec(e))?V1(t[1],t[2]/100,t[3]/100,1):(t=Rue.exec(e))?V1(t[1],t[2]/100,t[3]/100,t[4]):B1.hasOwnProperty(e)?z1(B1[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function z1(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Hu(e,t,n,r){return r<=0&&(e=t=n=NaN),new qt(e,t,n,r)}function Due(e){return e instanceof ru||(e=dc(e)),e?(e=e.rgb(),new qt(e.r,e.g,e.b,e.opacity)):new qt}function eg(e,t,n,r){return arguments.length===1?Due(e):new qt(e,t,n,r??1)}function qt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}db(qt,eg,RL(ru,{brighter(e){return e=e==null?bf:Math.pow(bf,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cc:Math.pow(cc,e),new qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qt(hi(this.r),hi(this.g),hi(this.b),wf(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:W1,formatHex:W1,formatHex8:$ue,formatRgb:G1,toString:G1}));function W1(){return`#${li(this.r)}${li(this.g)}${li(this.b)}`}function $ue(){return`#${li(this.r)}${li(this.g)}${li(this.b)}${li((isNaN(this.opacity)?1:this.opacity)*255)}`}function G1(){const e=wf(this.opacity);return`${e===1?"rgb(":"rgba("}${hi(this.r)}, ${hi(this.g)}, ${hi(this.b)}${e===1?")":`, ${e})`}`}function wf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function li(e){return e=hi(e),(e<16?"0":"")+e.toString(16)}function V1(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new qn(e,t,n,r)}function kL(e){if(e instanceof qn)return new qn(e.h,e.s,e.l,e.opacity);if(e instanceof ru||(e=dc(e)),!e)return new qn;if(e instanceof qn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,c=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new qn(a,s,c,e.opacity)}function Lue(e,t,n,r){return arguments.length===1?kL(e):new qn(e,t,n,r??1)}function qn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}db(qn,Lue,RL(ru,{brighter(e){return e=e==null?bf:Math.pow(bf,e),new qn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cc:Math.pow(cc,e),new qn(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 qt(Um(e>=240?e-240:e+120,o,r),Um(e,o,r),Um(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new qn(K1(this.h),zu(this.s),zu(this.l),wf(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=wf(this.opacity);return`${e===1?"hsl(":"hsla("}${K1(this.h)}, ${zu(this.s)*100}%, ${zu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function K1(e){return e=(e||0)%360,e<0?e+360:e}function zu(e){return Math.max(0,Math.min(1,e||0))}function Um(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 fb=e=>()=>e;function Fue(e,t){return function(n){return e+n*t}}function Bue(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 Uue(e){return(e=+e)==1?ML:function(t,n){return n-t?Bue(t,n,e):fb(isNaN(t)?n:t)}}function ML(e,t){var n=t-e;return n?Fue(e,n):fb(isNaN(e)?t:e)}const Y1=function e(t){var n=Uue(t);function r(o,i){var a=n((o=eg(o)).r,(i=eg(i)).r),s=n(o.g,i.g),c=n(o.b,i.b),u=ML(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=s(f),o.b=c(f),o.opacity=u(f),o+""}}return r.gamma=e,r}(1);function Hue(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function zue(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Wue(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=Ps(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function Gue(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Sf(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Vue(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]=Ps(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var tg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hm=new RegExp(tg.source,"g");function Kue(e){return function(){return e}}function Yue(e){return function(t){return e(t)+""}}function que(e,t){var n=tg.lastIndex=Hm.lastIndex=0,r,o,i,a=-1,s=[],c=[];for(e=e+"",t=t+"";(r=tg.exec(e))&&(o=Hm.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,c.push({i:a,x:Sf(r,o)})),n=Hm.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?c[0]?Yue(c[0].x):Kue(t):(t=c.length,function(u){for(var f=0,d;f<t;++f)s[(d=c[f]).i]=d.x(u);return s.join("")})}function Ps(e,t){var n=typeof t,r;return t==null||n==="boolean"?fb(t):(n==="number"?Sf:n==="string"?(r=dc(t))?(t=r,Y1):que:t instanceof dc?Y1:t instanceof Date?Gue:zue(t)?Hue:Array.isArray(t)?Wue:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Vue:Sf)(e,t)}function pb(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Xue(e,t){t===void 0&&(t=e,e=Ps);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function Zue(e){return function(){return e}}function Af(e){return+e}var q1=[0,1];function Ut(e){return e}function ng(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Zue(isNaN(t)?NaN:.5)}function Que(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Jue(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=ng(o,r),i=n(a,i)):(r=ng(r,o),i=n(i,a)),function(s){return i(r(s))}}function ede(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=ng(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var c=nu(e,s,1,r)-1;return i[c](o[c](s))}}function ou(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fh(){var e=q1,t=q1,n=Ps,r,o,i,a=Ut,s,c,u;function f(){var p=Math.min(e.length,t.length);return a!==Ut&&(a=Que(e[0],e[p-1])),s=p>2?ede:Jue,c=u=null,d}function d(p){return p==null||isNaN(p=+p)?i:(c||(c=s(e.map(r),t,n)))(r(a(p)))}return d.invert=function(p){return a(o((u||(u=s(t,e.map(r),Sf)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,Af),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),n=pb,f()},d.clamp=function(p){return arguments.length?(a=p?!0:Ut,f()):a!==Ut},d.interpolate=function(p){return arguments.length?(n=p,f()):n},d.unknown=function(p){return arguments.length?(i=p,d):i},function(p,v){return r=p,o=v,f()}}function hb(){return fh()(Ut,Ut)}function tde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ef(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 Ya(e){return e=Ef(Math.abs(e)),e?e[1]:NaN}function nde(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(n.substring(o-=s,o+s)),!((c+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function rde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var ode=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fc(e){if(!(t=ode.exec(e)))throw new Error("invalid format: "+e);var t;return new mb({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]})}fc.prototype=mb.prototype;function mb(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+""}mb.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 ide(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 DL;function ade(e,t){var n=Ef(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(DL=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ef(e,Math.max(0,t+i-1))[0]}function X1(e,t){var n=Ef(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 Z1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:tde,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)=>X1(e*100,t),r:X1,s:ade,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Q1(e){return e}var J1=Array.prototype.map,eE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function sde(e){var t=e.grouping===void 0||e.thousands===void 0?Q1:nde(J1.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+"",i=e.numerals===void 0?Q1:rde(J1.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function u(d){d=fc(d);var p=d.fill,v=d.align,b=d.sign,y=d.symbol,m=d.zero,g=d.width,x=d.comma,w=d.precision,E=d.trim,A=d.type;A==="n"?(x=!0,A="g"):Z1[A]||(w===void 0&&(w=12),E=!0,A="g"),(m||p==="0"&&v==="=")&&(m=!0,p="0",v="=");var S=y==="$"?n:y==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",N=y==="$"?r:/[%p]/.test(A)?a:"",_=Z1[A],C=/[defgprs%]/.test(A);w=w===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function P(O){var R=S,L=N,j,T,I;if(A==="c")L=_(O)+L,O="";else{O=+O;var $=O<0||1/O<0;if(O=isNaN(O)?c:_(Math.abs(O),w),E&&(O=ide(O)),$&&+O==0&&b!=="+"&&($=!1),R=($?b==="("?b:s:b==="-"||b==="("?"":b)+R,L=(A==="s"?eE[8+DL/3]:"")+L+($&&b==="("?")":""),C){for(j=-1,T=O.length;++j<T;)if(I=O.charCodeAt(j),48>I||I>57){L=(I===46?o+O.slice(j+1):O.slice(j))+L,O=O.slice(0,j);break}}}x&&!m&&(O=t(O,1/0));var k=R.length+O.length+L.length,M=k<g?new Array(g-k+1).join(p):"";switch(x&&m&&(O=t(M+O,M.length?g-L.length:1/0),M=""),v){case"<":O=R+O+L+M;break;case"=":O=R+M+O+L;break;case"^":O=M.slice(0,k=M.length>>1)+R+O+L+M.slice(k);break;default:O=M+R+O+L;break}return i(O)}return P.toString=function(){return d+""},P}function f(d,p){var v=u((d=fc(d),d.type="f",d)),b=Math.max(-8,Math.min(8,Math.floor(Ya(p)/3)))*3,y=Math.pow(10,-b),m=eE[8+b/3];return function(g){return v(y*g)+m}}return{format:u,formatPrefix:f}}var Wu,vb,$L;lde({thousands:",",grouping:[3],currency:["$",""]});function lde(e){return Wu=sde(e),vb=Wu.format,$L=Wu.formatPrefix,Wu}function cde(e){return Math.max(0,-Ya(Math.abs(e)))}function ude(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ya(t)/3)))*3-Ya(Math.abs(e)))}function dde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ya(t)-Ya(e))+1}function LL(e,t,n,r){var o=Qy(e,t,n),i;switch(r=fc(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=ude(o,a))&&(r.precision=i),$L(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=dde(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=cde(o))&&(r.precision=i-(r.type==="%")*2);break}}return vb(r)}function Vo(e){var t=e.domain;return e.ticks=function(n){var r=t();return Xy(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return LL(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],c,u,f=10;for(s<a&&(u=a,a=s,s=u,u=o,o=i,i=u);f-- >0;){if(u=Zy(a,s,n),u===c)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;c=u}return e},e}function Nf(){var e=hb();return e.copy=function(){return ou(e,Nf())},$n.apply(e,arguments),Vo(e)}function FL(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,Af),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return FL(e).unknown(t)},e=arguments.length?Array.from(e,Af):[0,1],Vo(n)}function BL(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function tE(e){return Math.log(e)}function nE(e){return Math.exp(e)}function fde(e){return-Math.log(-e)}function pde(e){return-Math.exp(-e)}function hde(e){return isFinite(e)?+("1e"+e):e<0?0:e}function mde(e){return e===10?hde:e===Math.E?Math.exp:t=>Math.pow(e,t)}function vde(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 rE(e){return(t,n)=>-e(-t,n)}function yb(e){const t=e(tE,nE),n=t.domain;let r=10,o,i;function a(){return o=vde(r),i=mde(r),n()[0]<0?(o=rE(o),i=rE(i),e(fde,pde)):e(tE,nE),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const c=n();let u=c[0],f=c[c.length-1];const d=f<u;d&&([u,f]=[f,u]);let p=o(u),v=o(f),b,y;const m=s==null?10:+s;let g=[];if(!(r%1)&&v-p<m){if(p=Math.floor(p),v=Math.ceil(v),u>0){for(;p<=v;++p)for(b=1;b<r;++b)if(y=p<0?b/i(-p):b*i(p),!(y<u)){if(y>f)break;g.push(y)}}else for(;p<=v;++p)for(b=r-1;b>=1;--b)if(y=p>0?b/i(-p):b*i(p),!(y<u)){if(y>f)break;g.push(y)}g.length*2<m&&(g=Xy(u,f,m))}else g=Xy(p,v,Math.min(v-p,m)).map(i);return d?g.reverse():g},t.tickFormat=(s,c)=>{if(s==null&&(s=10),c==null&&(c=r===10?"s":","),typeof c!="function"&&(!(r%1)&&(c=fc(c)).precision==null&&(c.trim=!0),c=vb(c)),s===1/0)return c;const u=Math.max(1,r*s/t.ticks().length);return f=>{let d=f/i(Math.round(o(f)));return d*r<r-.5&&(d*=r),d<=u?c(f):""}},t.nice=()=>n(BL(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function UL(){const e=yb(fh()).domain([1,10]);return e.copy=()=>ou(e,UL()).base(e.base()),$n.apply(e,arguments),e}function oE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gb(e){var t=1,n=e(oE(t),iE(t));return n.constant=function(r){return arguments.length?e(oE(t=+r),iE(t)):t},Vo(n)}function HL(){var e=gb(fh());return e.copy=function(){return ou(e,HL()).constant(e.constant())},$n.apply(e,arguments)}function aE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function yde(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function gde(e){return e<0?-e*e:e*e}function xb(e){var t=e(Ut,Ut),n=1;function r(){return n===1?e(Ut,Ut):n===.5?e(yde,gde):e(aE(n),aE(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Vo(t)}function bb(){var e=xb(fh());return e.copy=function(){return ou(e,bb()).exponent(e.exponent())},$n.apply(e,arguments),e}function xde(){return bb.apply(null,arguments).exponent(.5)}function sE(e){return Math.sign(e)*e*e}function bde(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function zL(){var e=hb(),t=[0,1],n=!1,r;function o(i){var a=bde(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(sE(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Af)).map(sE)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return zL(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$n.apply(o,arguments),Vo(o)}function WL(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=Nue(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[nu(n,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Po),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return WL().domain(e).range(t).unknown(r)},$n.apply(i,arguments)}function GL(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(c){return c!=null&&c<=c?o[nu(r,c,0,n)]:i}function s(){var c=-1;for(r=new Array(n);++c<n;)r[c]=((c+1)*t-(c-n)*e)/(n+1);return a}return a.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,s()):[e,t]},a.range=function(c){return arguments.length?(n=(o=Array.from(c)).length-1,s()):o.slice()},a.invertExtent=function(c){var u=o.indexOf(c);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(c){return arguments.length&&(i=c),a},a.thresholds=function(){return r.slice()},a.copy=function(){return GL().domain([e,t]).range(o).unknown(i)},$n.apply(Vo(a),arguments)}function VL(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[nu(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return VL().domain(e).range(t).unknown(n)},$n.apply(o,arguments)}const zm=new Date,Wm=new Date;function ht(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const c=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return c;let u;do c.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<a);return c},o.filter=i=>ht(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(zm.setTime(+i),Wm.setTime(+a),e(zm),e(Wm),Math.floor(n(zm,Wm))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const _f=ht(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_f.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ht(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_f);_f.range;const Rr=1e3,An=Rr*60,kr=An*60,Yr=kr*24,wb=Yr*7,lE=Yr*30,Gm=Yr*365,ci=ht(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Rr)},(e,t)=>(t-e)/Rr,e=>e.getUTCSeconds());ci.range;const Sb=ht(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rr)},(e,t)=>{e.setTime(+e+t*An)},(e,t)=>(t-e)/An,e=>e.getMinutes());Sb.range;const Ab=ht(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*An)},(e,t)=>(t-e)/An,e=>e.getUTCMinutes());Ab.range;const Eb=ht(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Rr-e.getMinutes()*An)},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getHours());Eb.range;const Nb=ht(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*kr)},(e,t)=>(t-e)/kr,e=>e.getUTCHours());Nb.range;const iu=ht(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*An)/Yr,e=>e.getDate()-1);iu.range;const ph=ht(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yr,e=>e.getUTCDate()-1);ph.range;const KL=ht(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yr,e=>Math.floor(e/Yr));KL.range;function Hi(e){return ht(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())*An)/wb)}const hh=Hi(0),jf=Hi(1),wde=Hi(2),Sde=Hi(3),qa=Hi(4),Ade=Hi(5),Ede=Hi(6);hh.range;jf.range;wde.range;Sde.range;qa.range;Ade.range;Ede.range;function zi(e){return ht(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)/wb)}const mh=zi(0),Cf=zi(1),Nde=zi(2),_de=zi(3),Xa=zi(4),jde=zi(5),Cde=zi(6);mh.range;Cf.range;Nde.range;_de.range;Xa.range;jde.range;Cde.range;const _b=ht(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());_b.range;const jb=ht(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());jb.range;const qr=ht(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());qr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ht(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)});qr.range;const Xr=ht(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());Xr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ht(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)});Xr.range;function YL(e,t,n,r,o,i){const a=[[ci,1,Rr],[ci,5,5*Rr],[ci,15,15*Rr],[ci,30,30*Rr],[i,1,An],[i,5,5*An],[i,15,15*An],[i,30,30*An],[o,1,kr],[o,3,3*kr],[o,6,6*kr],[o,12,12*kr],[r,1,Yr],[r,2,2*Yr],[n,1,wb],[t,1,lE],[t,3,3*lE],[e,1,Gm]];function s(u,f,d){const p=f<u;p&&([u,f]=[f,u]);const v=d&&typeof d.range=="function"?d:c(u,f,d),b=v?v.range(u,+f+1):[];return p?b.reverse():b}function c(u,f,d){const p=Math.abs(f-u)/d,v=cb(([,,m])=>m).right(a,p);if(v===a.length)return e.every(Qy(u/Gm,f/Gm,d));if(v===0)return _f.every(Math.max(Qy(u,f,d),1));const[b,y]=a[p/a[v-1][2]<a[v][2]/p?v-1:v];return b.every(y)}return[s,c]}const[Ode,Tde]=YL(Xr,jb,mh,KL,Nb,Ab),[Pde,Ide]=YL(qr,_b,hh,iu,Eb,Sb);function Vm(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 Km(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 Xs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Rde(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Zs(o),f=Qs(o),d=Zs(i),p=Qs(i),v=Zs(a),b=Qs(a),y=Zs(s),m=Qs(s),g=Zs(c),x=Qs(c),w={a:$,A:k,b:M,B,c:null,d:hE,e:hE,f:nfe,g:ffe,G:hfe,H:Jde,I:efe,j:tfe,L:qL,m:rfe,M:ofe,p:W,q:z,Q:yE,s:gE,S:ife,u:afe,U:sfe,V:lfe,w:cfe,W:ufe,x:null,X:null,y:dfe,Y:pfe,Z:mfe,"%":vE},E={a:J,A:ue,b:_e,B:Ae,c:null,d:mE,e:mE,f:xfe,g:Ofe,G:Pfe,H:vfe,I:yfe,j:gfe,L:ZL,m:bfe,M:wfe,p:re,q:he,Q:yE,s:gE,S:Sfe,u:Afe,U:Efe,V:Nfe,w:_fe,W:jfe,x:null,X:null,y:Cfe,Y:Tfe,Z:Ife,"%":vE},A={a:P,A:O,b:R,B:L,c:j,d:fE,e:fE,f:qde,g:dE,G:uE,H:pE,I:pE,j:Gde,L:Yde,m:Wde,M:Vde,p:C,q:zde,Q:Zde,s:Qde,S:Kde,u:Lde,U:Fde,V:Bde,w:$de,W:Ude,x:T,X:I,y:dE,Y:uE,Z:Hde,"%":Xde};w.x=S(n,w),w.X=S(r,w),w.c=S(t,w),E.x=S(n,E),E.X=S(r,E),E.c=S(t,E);function S(G,Z){return function(ee){var U=[],Se=-1,fe=0,Be=G.length,Ue,ot,ir;for(ee instanceof Date||(ee=new Date(+ee));++Se<Be;)G.charCodeAt(Se)===37&&(U.push(G.slice(fe,Se)),(ot=cE[Ue=G.charAt(++Se)])!=null?Ue=G.charAt(++Se):ot=Ue==="e"?" ":"0",(ir=Z[Ue])&&(Ue=ir(ee,ot)),U.push(Ue),fe=Se+1);return U.push(G.slice(fe,Se)),U.join("")}}function N(G,Z){return function(ee){var U=Xs(1900,void 0,1),Se=_(U,G,ee+="",0),fe,Be;if(Se!=ee.length)return null;if("Q"in U)return new Date(U.Q);if("s"in U)return new Date(U.s*1e3+("L"in U?U.L:0));if(Z&&!("Z"in U)&&(U.Z=0),"p"in U&&(U.H=U.H%12+U.p*12),U.m===void 0&&(U.m="q"in U?U.q:0),"V"in U){if(U.V<1||U.V>53)return null;"w"in U||(U.w=1),"Z"in U?(fe=Km(Xs(U.y,0,1)),Be=fe.getUTCDay(),fe=Be>4||Be===0?Cf.ceil(fe):Cf(fe),fe=ph.offset(fe,(U.V-1)*7),U.y=fe.getUTCFullYear(),U.m=fe.getUTCMonth(),U.d=fe.getUTCDate()+(U.w+6)%7):(fe=Vm(Xs(U.y,0,1)),Be=fe.getDay(),fe=Be>4||Be===0?jf.ceil(fe):jf(fe),fe=iu.offset(fe,(U.V-1)*7),U.y=fe.getFullYear(),U.m=fe.getMonth(),U.d=fe.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),Be="Z"in U?Km(Xs(U.y,0,1)).getUTCDay():Vm(Xs(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(Be+5)%7:U.w+U.U*7-(Be+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,Km(U)):Vm(U)}}function _(G,Z,ee,U){for(var Se=0,fe=Z.length,Be=ee.length,Ue,ot;Se<fe;){if(U>=Be)return-1;if(Ue=Z.charCodeAt(Se++),Ue===37){if(Ue=Z.charAt(Se++),ot=A[Ue in cE?Z.charAt(Se++):Ue],!ot||(U=ot(G,ee,U))<0)return-1}else if(Ue!=ee.charCodeAt(U++))return-1}return U}function C(G,Z,ee){var U=u.exec(Z.slice(ee));return U?(G.p=f.get(U[0].toLowerCase()),ee+U[0].length):-1}function P(G,Z,ee){var U=v.exec(Z.slice(ee));return U?(G.w=b.get(U[0].toLowerCase()),ee+U[0].length):-1}function O(G,Z,ee){var U=d.exec(Z.slice(ee));return U?(G.w=p.get(U[0].toLowerCase()),ee+U[0].length):-1}function R(G,Z,ee){var U=g.exec(Z.slice(ee));return U?(G.m=x.get(U[0].toLowerCase()),ee+U[0].length):-1}function L(G,Z,ee){var U=y.exec(Z.slice(ee));return U?(G.m=m.get(U[0].toLowerCase()),ee+U[0].length):-1}function j(G,Z,ee){return _(G,t,Z,ee)}function T(G,Z,ee){return _(G,n,Z,ee)}function I(G,Z,ee){return _(G,r,Z,ee)}function $(G){return a[G.getDay()]}function k(G){return i[G.getDay()]}function M(G){return c[G.getMonth()]}function B(G){return s[G.getMonth()]}function W(G){return o[+(G.getHours()>=12)]}function z(G){return 1+~~(G.getMonth()/3)}function J(G){return a[G.getUTCDay()]}function ue(G){return i[G.getUTCDay()]}function _e(G){return c[G.getUTCMonth()]}function Ae(G){return s[G.getUTCMonth()]}function re(G){return o[+(G.getUTCHours()>=12)]}function he(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var Z=S(G+="",w);return Z.toString=function(){return G},Z},parse:function(G){var Z=N(G+="",!1);return Z.toString=function(){return G},Z},utcFormat:function(G){var Z=S(G+="",E);return Z.toString=function(){return G},Z},utcParse:function(G){var Z=N(G+="",!0);return Z.toString=function(){return G},Z}}}var cE={"-":"",_:" ",0:"0"},wt=/^\s*\d+/,kde=/^%/,Mde=/[\\^$*+?|[\]().{}]/g;function Oe(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Dde(e){return e.replace(Mde,"\\$&")}function Zs(e){return new RegExp("^(?:"+e.map(Dde).join("|")+")","i")}function Qs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function $de(e,t,n){var r=wt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Lde(e,t,n){var r=wt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fde(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Bde(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ude(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function uE(e,t,n){var r=wt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function dE(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Hde(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 zde(e,t,n){var r=wt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Wde(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function fE(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Gde(e,t,n){var r=wt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function pE(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Vde(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Kde(e,t,n){var r=wt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Yde(e,t,n){var r=wt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function qde(e,t,n){var r=wt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xde(e,t,n){var r=kde.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Zde(e,t,n){var r=wt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Qde(e,t,n){var r=wt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hE(e,t){return Oe(e.getDate(),t,2)}function Jde(e,t){return Oe(e.getHours(),t,2)}function efe(e,t){return Oe(e.getHours()%12||12,t,2)}function tfe(e,t){return Oe(1+iu.count(qr(e),e),t,3)}function qL(e,t){return Oe(e.getMilliseconds(),t,3)}function nfe(e,t){return qL(e,t)+"000"}function rfe(e,t){return Oe(e.getMonth()+1,t,2)}function ofe(e,t){return Oe(e.getMinutes(),t,2)}function ife(e,t){return Oe(e.getSeconds(),t,2)}function afe(e){var t=e.getDay();return t===0?7:t}function sfe(e,t){return Oe(hh.count(qr(e)-1,e),t,2)}function XL(e){var t=e.getDay();return t>=4||t===0?qa(e):qa.ceil(e)}function lfe(e,t){return e=XL(e),Oe(qa.count(qr(e),e)+(qr(e).getDay()===4),t,2)}function cfe(e){return e.getDay()}function ufe(e,t){return Oe(jf.count(qr(e)-1,e),t,2)}function dfe(e,t){return Oe(e.getFullYear()%100,t,2)}function ffe(e,t){return e=XL(e),Oe(e.getFullYear()%100,t,2)}function pfe(e,t){return Oe(e.getFullYear()%1e4,t,4)}function hfe(e,t){var n=e.getDay();return e=n>=4||n===0?qa(e):qa.ceil(e),Oe(e.getFullYear()%1e4,t,4)}function mfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Oe(t/60|0,"0",2)+Oe(t%60,"0",2)}function mE(e,t){return Oe(e.getUTCDate(),t,2)}function vfe(e,t){return Oe(e.getUTCHours(),t,2)}function yfe(e,t){return Oe(e.getUTCHours()%12||12,t,2)}function gfe(e,t){return Oe(1+ph.count(Xr(e),e),t,3)}function ZL(e,t){return Oe(e.getUTCMilliseconds(),t,3)}function xfe(e,t){return ZL(e,t)+"000"}function bfe(e,t){return Oe(e.getUTCMonth()+1,t,2)}function wfe(e,t){return Oe(e.getUTCMinutes(),t,2)}function Sfe(e,t){return Oe(e.getUTCSeconds(),t,2)}function Afe(e){var t=e.getUTCDay();return t===0?7:t}function Efe(e,t){return Oe(mh.count(Xr(e)-1,e),t,2)}function QL(e){var t=e.getUTCDay();return t>=4||t===0?Xa(e):Xa.ceil(e)}function Nfe(e,t){return e=QL(e),Oe(Xa.count(Xr(e),e)+(Xr(e).getUTCDay()===4),t,2)}function _fe(e){return e.getUTCDay()}function jfe(e,t){return Oe(Cf.count(Xr(e)-1,e),t,2)}function Cfe(e,t){return Oe(e.getUTCFullYear()%100,t,2)}function Ofe(e,t){return e=QL(e),Oe(e.getUTCFullYear()%100,t,2)}function Tfe(e,t){return Oe(e.getUTCFullYear()%1e4,t,4)}function Pfe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xa(e):Xa.ceil(e),Oe(e.getUTCFullYear()%1e4,t,4)}function Ife(){return"+0000"}function vE(){return"%"}function yE(e){return+e}function gE(e){return Math.floor(+e/1e3)}var ea,JL,eF;Rfe({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 Rfe(e){return ea=Rde(e),JL=ea.format,ea.parse,eF=ea.utcFormat,ea.utcParse,ea}function kfe(e){return new Date(e)}function Mfe(e){return e instanceof Date?+e:+new Date(+e)}function Cb(e,t,n,r,o,i,a,s,c,u){var f=hb(),d=f.invert,p=f.domain,v=u(".%L"),b=u(":%S"),y=u("%I:%M"),m=u("%I %p"),g=u("%a %d"),x=u("%b %d"),w=u("%B"),E=u("%Y");function A(S){return(c(S)<S?v:s(S)<S?b:a(S)<S?y:i(S)<S?m:r(S)<S?o(S)<S?g:x:n(S)<S?w:E)(S)}return f.invert=function(S){return new Date(d(S))},f.domain=function(S){return arguments.length?p(Array.from(S,Mfe)):p().map(kfe)},f.ticks=function(S){var N=p();return e(N[0],N[N.length-1],S??10)},f.tickFormat=function(S,N){return N==null?A:u(N)},f.nice=function(S){var N=p();return(!S||typeof S.range!="function")&&(S=t(N[0],N[N.length-1],S??10)),S?p(BL(N,S)):f},f.copy=function(){return ou(f,Cb(e,t,n,r,o,i,a,s,c,u))},f}function Dfe(){return $n.apply(Cb(Pde,Ide,qr,_b,hh,iu,Eb,Sb,ci,JL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function $fe(){return $n.apply(Cb(Ode,Tde,Xr,jb,mh,ph,Nb,Ab,ci,eF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function vh(){var e=0,t=1,n,r,o,i,a=Ut,s=!1,c;function u(d){return d==null||isNaN(d=+d)?c:a(o===0?.5:(d=(i(d)-n)*o,s?Math.max(0,Math.min(1,d)):d))}u.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(d){return arguments.length?(s=!!d,u):s},u.interpolator=function(d){return arguments.length?(a=d,u):a};function f(d){return function(p){var v,b;return arguments.length?([v,b]=p,a=d(v,b),u):[a(0),a(1)]}}return u.range=f(Ps),u.rangeRound=f(pb),u.unknown=function(d){return arguments.length?(c=d,u):c},function(d){return i=d,n=d(e),r=d(t),o=n===r?0:1/(r-n),u}}function Ko(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tF(){var e=Vo(vh()(Ut));return e.copy=function(){return Ko(e,tF())},oo.apply(e,arguments)}function nF(){var e=yb(vh()).domain([1,10]);return e.copy=function(){return Ko(e,nF()).base(e.base())},oo.apply(e,arguments)}function rF(){var e=gb(vh());return e.copy=function(){return Ko(e,rF()).constant(e.constant())},oo.apply(e,arguments)}function Ob(){var e=xb(vh());return e.copy=function(){return Ko(e,Ob()).exponent(e.exponent())},oo.apply(e,arguments)}function Lfe(){return Ob.apply(null,arguments).exponent(.5)}function oF(){var e=[],t=Ut;function n(r){if(r!=null&&!isNaN(r=+r))return t((nu(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(Po),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,i)=>Eue(e,i/r))},n.copy=function(){return oF(t).domain(e)},oo.apply(n,arguments)}function yh(){var e=0,t=.5,n=1,r=1,o,i,a,s,c,u=Ut,f,d=!1,p;function v(y){return isNaN(y=+y)?p:(y=.5+((y=+f(y))-i)*(r*y<r*i?s:c),u(d?Math.max(0,Math.min(1,y)):y))}v.domain=function(y){return arguments.length?([e,t,n]=y,o=f(e=+e),i=f(t=+t),a=f(n=+n),s=o===i?0:.5/(i-o),c=i===a?0:.5/(a-i),r=i<o?-1:1,v):[e,t,n]},v.clamp=function(y){return arguments.length?(d=!!y,v):d},v.interpolator=function(y){return arguments.length?(u=y,v):u};function b(y){return function(m){var g,x,w;return arguments.length?([g,x,w]=m,u=Xue(y,[g,x,w]),v):[u(0),u(.5),u(1)]}}return v.range=b(Ps),v.rangeRound=b(pb),v.unknown=function(y){return arguments.length?(p=y,v):p},function(y){return f=y,o=y(e),i=y(t),a=y(n),s=o===i?0:.5/(i-o),c=i===a?0:.5/(a-i),r=i<o?-1:1,v}}function iF(){var e=Vo(yh()(Ut));return e.copy=function(){return Ko(e,iF())},oo.apply(e,arguments)}function aF(){var e=yb(yh()).domain([.1,1,10]);return e.copy=function(){return Ko(e,aF()).base(e.base())},oo.apply(e,arguments)}function sF(){var e=gb(yh());return e.copy=function(){return Ko(e,sF()).constant(e.constant())},oo.apply(e,arguments)}function Tb(){var e=xb(yh());return e.copy=function(){return Ko(e,Tb()).exponent(e.exponent())},oo.apply(e,arguments)}function Ffe(){return Tb.apply(null,arguments).exponent(.5)}const xE=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:lc,scaleDiverging:iF,scaleDivergingLog:aF,scaleDivergingPow:Tb,scaleDivergingSqrt:Ffe,scaleDivergingSymlog:sF,scaleIdentity:FL,scaleImplicit:Jy,scaleLinear:Nf,scaleLog:UL,scaleOrdinal:ub,scalePoint:Al,scalePow:bb,scaleQuantile:WL,scaleQuantize:GL,scaleRadial:zL,scaleSequential:tF,scaleSequentialLog:nF,scaleSequentialPow:Ob,scaleSequentialQuantile:oF,scaleSequentialSqrt:Lfe,scaleSequentialSymlog:rF,scaleSqrt:xde,scaleSymlog:HL,scaleThreshold:VL,scaleTime:Dfe,scaleUtc:$fe,tickFormat:LL},Symbol.toStringTag,{value:"Module"}));var Bfe=Ss;function Ufe(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(a!=null&&(s===void 0?a===a&&!Bfe(a):n(a,s)))var s=a,c=i}return c}var lF=Ufe;function Hfe(e,t){return e>t}var zfe=Hfe,Wfe=lF,Gfe=zfe,Vfe=Os;function Kfe(e){return e&&e.length?Wfe(e,Vfe,Gfe):void 0}var Yfe=Kfe;const gh=Re(Yfe);function qfe(e,t){return e<t}var Xfe=qfe,Zfe=lF,Qfe=Xfe,Jfe=Os;function epe(e){return e&&e.length?Zfe(e,Jfe,Qfe):void 0}var tpe=epe;const xh=Re(tpe);var npe=W0,rpe=Go,ope=vL,ipe=tn;function ape(e,t){var n=ipe(e)?npe:ope;return n(e,rpe(t))}var spe=ape,lpe=hL,cpe=spe;function upe(e,t){return lpe(cpe(e,t),1)}var dpe=upe;const fpe=Re(dpe);var ppe=ib;function hpe(e,t){return ppe(e,t)}var mpe=hpe;const bh=Re(mpe);var Is=1e9,vpe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ib,qe=!0,Mn="[DecimalError] ",mi=Mn+"Invalid argument: ",Pb=Mn+"Exponent out of range: ",Rs=Math.floor,ni=Math.pow,ype=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ln,mt=1e7,Ge=7,cF=9007199254740991,Of=Rs(cF/Ge),ne={};ne.absoluteValue=ne.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ne.comparedTo=ne.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};ne.decimalPlaces=ne.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ge;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ne.dividedBy=ne.div=function(e){return Br(this,new this.constructor(e))};ne.dividedToIntegerBy=ne.idiv=function(e){var t=this,n=t.constructor;return De(Br(t,new n(e),0,1),n.precision)};ne.equals=ne.eq=function(e){return!this.cmp(e)};ne.exponent=function(){return lt(this)};ne.greaterThan=ne.gt=function(e){return this.cmp(e)>0};ne.greaterThanOrEqualTo=ne.gte=function(e){return this.cmp(e)>=0};ne.isInteger=ne.isint=function(){return this.e>this.d.length-2};ne.isNegative=ne.isneg=function(){return this.s<0};ne.isPositive=ne.ispos=function(){return this.s>0};ne.isZero=function(){return this.s===0};ne.lessThan=ne.lt=function(e){return this.cmp(e)<0};ne.lessThanOrEqualTo=ne.lte=function(e){return this.cmp(e)<1};ne.logarithm=ne.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(ln))throw Error(Mn+"NaN");if(n.s<1)throw Error(Mn+(n.s?"NaN":"-Infinity"));return n.eq(ln)?new r(0):(qe=!1,t=Br(pc(n,i),pc(e,i),i),qe=!0,De(t,o))};ne.minus=ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fF(t,e):uF(t,(e.s=-e.s,e))};ne.modulo=ne.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(Mn+"NaN");return n.s?(qe=!1,t=Br(n,e,0,1).times(e),qe=!0,n.minus(t)):De(new r(n),o)};ne.naturalExponential=ne.exp=function(){return dF(this)};ne.naturalLogarithm=ne.ln=function(){return pc(this)};ne.negated=ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ne.plus=ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uF(t,e):fF(t,(e.s=-e.s,e))};ne.precision=ne.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(mi+e);if(t=lt(o)+1,r=o.d.length-1,n=r*Ge+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};ne.squareRoot=ne.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(Mn+"NaN")}for(e=lt(s),qe=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=fr(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Rs((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 c(t)):r=new c(o.toString()),n=c.precision,o=a=n+3;;)if(i=r,r=i.plus(Br(s,i,a+2)).times(.5),fr(i.d).slice(0,a)===(t=fr(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(De(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return qe=!0,De(r,n)};ne.times=ne.mul=function(e){var t,n,r,o,i,a,s,c,u,f=this,d=f.constructor,p=f.d,v=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,c=p.length,u=v.length,c<u&&(i=p,p=v,v=i,a=c,c=u,u=a),i=[],a=c+u,r=a;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+v[r]*p[o-r-1]+t,i[o--]=s%mt|0,t=s/mt|0;i[o]=(i[o]+t)%mt|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,qe?De(e,d.precision):e};ne.toDecimalPlaces=ne.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(br(e,0,Is),t===void 0?t=r.rounding:br(t,0,8),De(n,e+lt(n)+1,t))};ne.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=ji(r,!0):(br(e,0,Is),t===void 0?t=o.rounding:br(t,0,8),r=De(new o(r),e+1,t),n=ji(r,!0,e+1)),n};ne.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?ji(o):(br(e,0,Is),t===void 0?t=i.rounding:br(t,0,8),r=De(new i(o),e+lt(o)+1,t),n=ji(r.abs(),!1,e+lt(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};ne.toInteger=ne.toint=function(){var e=this,t=e.constructor;return De(new t(e),lt(e)+1,t.rounding)};ne.toNumber=function(){return+this};ne.toPower=ne.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=12,f=+(e=new c(e));if(!e.s)return new c(ln);if(s=new c(s),!s.s){if(e.s<1)throw Error(Mn+"Infinity");return s}if(s.eq(ln))return s;if(r=c.precision,e.eq(ln))return De(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=f<0?-f:f)<=cF){for(o=new c(ln),t=Math.ceil(r/Ge+4),qe=!1;n%2&&(o=o.times(s),wE(o.d,t)),n=Rs(n/2),n!==0;)s=s.times(s),wE(s.d,t);return qe=!0,e.s<0?new c(ln).div(o):De(o,r)}}else if(i<0)throw Error(Mn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,qe=!1,o=e.times(pc(s,r+u)),qe=!0,o=dF(o),o.s=i,o};ne.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=lt(o),r=ji(o,n<=i.toExpNeg||n>=i.toExpPos)):(br(e,1,Is),t===void 0?t=i.rounding:br(t,0,8),o=De(new i(o),e,t),n=lt(o),r=ji(o,e<=n||n<=i.toExpNeg,e)),r};ne.toSignificantDigits=ne.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(br(e,1,Is),t===void 0?t=r.rounding:br(t,0,8)),De(new r(n),e,t)};ne.toString=ne.valueOf=ne.val=ne.toJSON=ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=lt(e),n=e.constructor;return ji(e,t<=n.toExpNeg||t>=n.toExpPos)};function uF(e,t){var n,r,o,i,a,s,c,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),qe?De(t,d):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o,i){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),a=Math.ceil(d/Ge),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=c.length,i=u.length,s-i<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/mt|0,c[i]%=mt;for(n&&(c.unshift(n),++o),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=o,qe?De(t,d):t}function br(e,t,n){if(e!==~~e||e<t||e>n)throw Error(mi+e)}function fr(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=Ge-r.length,n&&(i+=po(n)),i+=r;a=e[t],r=a+"",n=Ge-r.length,n&&(i+=po(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var Br=function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%mt|0,a=i/mt|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,c;if(i!=a)c=i>a?1:-1;else for(s=c=0;s<i;s++)if(r[s]!=o[s]){c=r[s]>o[s]?1:-1;break}return c}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*mt+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,c,u,f,d,p,v,b,y,m,g,x,w,E,A,S,N,_,C=r.constructor,P=r.s==o.s?1:-1,O=r.d,R=o.d;if(!r.s)return new C(r);if(!o.s)throw Error(Mn+"Division by zero");for(c=r.e-o.e,N=R.length,A=O.length,v=new C(P),b=v.d=[],u=0;R[u]==(O[u]||0);)++u;if(R[u]>(O[u]||0)&&--c,i==null?x=i=C.precision:a?x=i+(lt(r)-lt(o))+1:x=i,x<0)return new C(0);if(x=x/Ge+2|0,u=0,N==1)for(f=0,R=R[0],x++;(u<A||f)&&x--;u++)w=f*mt+(O[u]||0),b[u]=w/R|0,f=w%R|0;else{for(f=mt/(R[0]+1)|0,f>1&&(R=e(R,f),O=e(O,f),N=R.length,A=O.length),E=N,y=O.slice(0,N),m=y.length;m<N;)y[m++]=0;_=R.slice(),_.unshift(0),S=R[0],R[1]>=mt/2&&++S;do f=0,s=t(R,y,N,m),s<0?(g=y[0],N!=m&&(g=g*mt+(y[1]||0)),f=g/S|0,f>1?(f>=mt&&(f=mt-1),d=e(R,f),p=d.length,m=y.length,s=t(d,y,p,m),s==1&&(f--,n(d,N<p?_:R,p))):(f==0&&(s=f=1),d=R.slice()),p=d.length,p<m&&d.unshift(0),n(y,d,m),s==-1&&(m=y.length,s=t(R,y,N,m),s<1&&(f++,n(y,N<m?_:R,m))),m=y.length):s===0&&(f++,y=[0]),b[u++]=f,s&&y[0]?y[m++]=O[E]||0:(y=[O[E]],m=1);while((E++<A||y[0]!==void 0)&&x--)}return b[0]||b.shift(),v.e=c,De(v,a?i+lt(v)+1:i)}}();function dF(e,t){var n,r,o,i,a,s,c=0,u=0,f=e.constructor,d=f.precision;if(lt(e)>16)throw Error(Pb+lt(e));if(!e.s)return new f(ln);for(qe=!1,s=d,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(ni(2,u))/Math.LN10*2+5|0,s+=r,n=o=i=new f(ln),f.precision=s;;){if(o=De(o.times(e),s),n=n.times(++c),a=i.plus(Br(o,n,s)),fr(a.d).slice(0,s)===fr(i.d).slice(0,s)){for(;u--;)i=De(i.times(i),s);return f.precision=d,t==null?(qe=!0,De(i,d)):i}i=a}}function lt(e){for(var t=e.e*Ge,n=e.d[0];n>=10;n/=10)t++;return t}function Ym(e,t,n){if(t>e.LN10.sd())throw qe=!0,n&&(e.precision=n),Error(Mn+"LN10 precision limit exceeded");return De(new e(e.LN10),t)}function po(e){for(var t="";e--;)t+="0";return t}function pc(e,t){var n,r,o,i,a,s,c,u,f,d=1,p=10,v=e,b=v.d,y=v.constructor,m=y.precision;if(v.s<1)throw Error(Mn+(v.s?"NaN":"-Infinity"));if(v.eq(ln))return new y(0);if(t==null?(qe=!1,u=m):u=t,v.eq(10))return t==null&&(qe=!0),Ym(y,u);if(u+=p,y.precision=u,n=fr(b),r=n.charAt(0),i=lt(v),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)v=v.times(e),n=fr(v.d),r=n.charAt(0),d++;i=lt(v),r>1?(v=new y("0."+n),i++):v=new y(r+"."+n.slice(1))}else return c=Ym(y,u+2,m).times(i+""),v=pc(new y(r+"."+n.slice(1)),u-p).plus(c),y.precision=m,t==null?(qe=!0,De(v,m)):v;for(s=a=v=Br(v.minus(ln),v.plus(ln),u),f=De(v.times(v),u),o=3;;){if(a=De(a.times(f),u),c=s.plus(Br(a,new y(o),u)),fr(c.d).slice(0,u)===fr(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(Ym(y,u+2,m).times(i+""))),s=Br(s,new y(d),u),y.precision=m,t==null?(qe=!0,De(s,m)):s;s=c,o+=2}}function bE(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=Rs(n/Ge),e.d=[],r=(n+1)%Ge,n<0&&(r+=Ge),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Ge;r<o;)e.d.push(+t.slice(r,r+=Ge));t=t.slice(r),r=Ge-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),qe&&(e.e>Of||e.e<-Of))throw Error(Pb+n)}else e.s=0,e.e=0,e.d=[0];return e}function De(e,t,n){var r,o,i,a,s,c,u,f,d=e.d;for(a=1,i=d[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=Ge,o=t,u=d[f=0];else{if(f=Math.ceil((r+1)/Ge),i=d.length,f>=i)return e;for(u=i=d[f],a=1;i>=10;i/=10)a++;r%=Ge,o=r-Ge+a}if(n!==void 0&&(i=ni(10,a-o-1),s=u/i%10|0,c=t<0||d[f+1]!==void 0||u%i,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?o>0?u/ni(10,a-o):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(i=lt(e),d.length=1,t=t-i-1,d[0]=ni(10,(Ge-t%Ge)%Ge),e.e=Rs(-t/Ge)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,i=1,f--):(d.length=f+1,i=ni(10,Ge-r),d[f]=o>0?(u/ni(10,a-o)%ni(10,o)|0)*i:0),c)for(;;)if(f==0){(d[0]+=i)==mt&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=mt)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(qe&&(e.e>Of||e.e<-Of))throw Error(Pb+lt(e));return e}function fF(e,t){var n,r,o,i,a,s,c,u,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),qe?De(t,v):t;if(c=e.d,d=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r,a){for(f=a<0,f?(n=c,a=-a,s=d.length):(n=d,r=u,s=c.length),o=Math.max(Math.ceil(v/Ge),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=c.length,s=d.length,f=o<s,f&&(s=o),o=0;o<s;o++)if(c[o]!=d[o]){f=c[o]<d[o];break}a=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),s=c.length,o=d.length-s;o>0;--o)c[s++]=0;for(o=d.length;o>a;){if(c[--o]<d[o]){for(i=o;i&&c[--i]===0;)c[i]=mt-1;--c[i],c[o]+=mt}c[o]-=d[o]}for(;c[--s]===0;)c.pop();for(;c[0]===0;c.shift())--r;return c[0]?(t.d=c,t.e=r,qe?De(t,v):t):new p(0)}function ji(e,t,n){var r,o=lt(e),i=fr(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+po(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+po(-o-1)+i,n&&(r=n-a)>0&&(i+=po(r))):o>=a?(i+=po(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+po(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=po(r))),e.s<0?"-"+i:i}function wE(e,t){if(e.length>t)return e.length=t,!0}function pF(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(mi+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return bE(a,i.toString())}else if(typeof i!="string")throw Error(mi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,ype.test(i))bE(a,i);else throw Error(mi+i)}if(o.prototype=ne,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=pF,o.config=o.set=gpe,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 gpe(e){if(!e||typeof e!="object")throw Error(Mn+"Object expected");var t,n,r,o=["precision",1,Is,"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(Rs(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(mi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(mi+n+": "+r);return this}var Ib=pF(vpe);ln=new Ib(1);const Me=Ib;function xpe(e){return Ape(e)||Spe(e)||wpe(e)||bpe()}function bpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
510
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wpe(e,t){if(e){if(typeof e=="string")return rg(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 rg(e,t)}}function Spe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Ape(e){if(Array.isArray(e))return rg(e)}function rg(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 Epe=function(t){return t},hF={},mF=function(t){return t===hF},SE=function(t){return function n(){return arguments.length===0||arguments.length===1&&mF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Npe=function e(t,n){return t===1?n:SE(function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter(function(s){return s!==hF}).length;return a>=t?n.apply(void 0,o):e(t-a,SE(function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var f=o.map(function(d){return mF(d)?c.shift():d});return n.apply(void 0,xpe(f).concat(c))}))})},wh=function(t){return Npe(t.length,t)},og=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},_pe=wh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),jpe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Epe;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce(function(s,c){return c(s)},i.apply(void 0,arguments))}},ig=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},vF=function(t){var n=null,r=null;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n&&i.every(function(s,c){return s===n[c]})||(n=i,r=t.apply(void 0,i)),r}};function Cpe(e){var t;return e===0?t=1:t=Math.floor(new Me(e).abs().log(10).toNumber())+1,t}function Ope(e,t,n){for(var r=new Me(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}var Tpe=wh(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),Ppe=wh(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Ipe=wh(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Sh={rangeStep:Ope,getDigitCount:Cpe,interpolateNumber:Tpe,uninterpolateNumber:Ppe,uninterpolateTruncation:Ipe};function ag(e){return Mpe(e)||kpe(e)||yF(e)||Rpe()}function Rpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
511
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kpe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Mpe(e){if(Array.isArray(e))return sg(e)}function hc(e,t){return Lpe(e)||$pe(e,t)||yF(e,t)||Dpe()}function Dpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
512
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yF(e,t){if(e){if(typeof e=="string")return sg(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 sg(e,t)}}function sg(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 $pe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,i=void 0;try{for(var a=e[Symbol.iterator](),s;!(r=(s=a.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(c){o=!0,i=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(o)throw i}}return n}}function Lpe(e){if(Array.isArray(e))return e}function gF(e){var t=hc(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function xF(e,t,n){if(e.lte(0))return new Me(0);var r=Sh.getDigitCount(e.toNumber()),o=new Me(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new Me(Math.ceil(i.div(a).toNumber())).add(n).mul(a),c=s.mul(o);return t?c:new Me(Math.ceil(c))}function Fpe(e,t,n){var r=1,o=new Me(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Me(10).pow(Sh.getDigitCount(e)-1),o=new Me(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Me(Math.floor(e)))}else e===0?o=new Me(Math.floor((t-1)/2)):n||(o=new Me(Math.floor(e)));var a=Math.floor((t-1)/2),s=jpe(_pe(function(c){return o.add(new Me(c-a).mul(r)).toNumber()}),og);return s(0,t)}function bF(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 Me(0),tickMin:new Me(0),tickMax:new Me(0)};var i=xF(new Me(t).sub(e).div(n-1),r,o),a;e<=0&&t>=0?a=new Me(0):(a=new Me(e).add(t).div(2),a=a.sub(new Me(a).mod(i)));var s=Math.ceil(a.sub(e).div(i).toNumber()),c=Math.ceil(new Me(t).sub(a).div(i).toNumber()),u=s+c+1;return u>n?bF(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:i,tickMin:a.sub(new Me(s).mul(i)),tickMax:a.add(new Me(c).mul(i))})}function Bpe(e){var t=hc(e,2),n=t[0],r=t[1],o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),s=gF([n,r]),c=hc(s,2),u=c[0],f=c[1];if(u===-1/0||f===1/0){var d=f===1/0?[u].concat(ag(og(0,o-1).map(function(){return 1/0}))):[].concat(ag(og(0,o-1).map(function(){return-1/0})),[f]);return n>r?ig(d):d}if(u===f)return Fpe(u,o,i);var p=bF(u,f,a,i),v=p.step,b=p.tickMin,y=p.tickMax,m=Sh.rangeStep(b,y.add(new Me(.1).mul(v)),v);return n>r?ig(m):m}function Upe(e,t){var n=hc(e,2),r=n[0],o=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=gF([r,o]),s=hc(a,2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[r,o];if(c===u)return[c];var f=Math.max(t,2),d=xF(new Me(u).sub(c).div(f-1),i,0),p=[].concat(ag(Sh.rangeStep(new Me(c),new Me(u).sub(new Me(.99).mul(d)),d)),[u]);return r>o?ig(p):p}var Hpe=vF(Bpe),zpe=vF(Upe),Wpe="Invariant failed";function Ci(e,t){throw new Error(Wpe)}var Gpe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Za(e){"@babel/helpers - typeof";return Za=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},Za(e)}function Tf(){return Tf=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},Tf.apply(this,arguments)}function Vpe(e,t){return Xpe(e)||qpe(e,t)||Ype(e,t)||Kpe()}function Kpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
513
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ype(e,t){if(e){if(typeof e=="string")return AE(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 AE(e,t)}}function AE(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 qpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Xpe(e){if(Array.isArray(e))return e}function Zpe(e,t){if(e==null)return{};var n=Qpe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qpe(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 Jpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ehe(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,AF(r.key),r)}}function the(e,t,n){return t&&ehe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nhe(e,t,n){return t=Pf(t),rhe(e,wF()?Reflect.construct(t,n||[],Pf(e).constructor):t.apply(e,n))}function rhe(e,t){if(t&&(Za(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ohe(e)}function ohe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wF=function(){return!!e})()}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pf(e)}function ihe(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&&lg(e,t)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},lg(e,t)}function SF(e,t,n){return t=AF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AF(e){var t=ahe(e,"string");return Za(t)=="symbol"?t:t+""}function ahe(e,t){if(Za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var au=function(e){function t(){return Jpe(this,t),nhe(this,t,arguments)}return ihe(t,e),the(t,[{key:"render",value:function(){var r=this.props,o=r.offset,i=r.layout,a=r.width,s=r.dataKey,c=r.data,u=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,p=Zpe(r,Gpe),v=Ee(p,!1);this.props.direction==="x"&&f.type!=="number"&&Ci();var b=c.map(function(y){var m=u(y,s),g=m.x,x=m.y,w=m.value,E=m.errorVal;if(!E)return null;var A=[],S,N;if(Array.isArray(E)){var _=Vpe(E,2);S=_[0],N=_[1]}else S=N=E;if(i==="vertical"){var C=f.scale,P=x+o,O=P+a,R=P-a,L=C(w-S),j=C(w+N);A.push({x1:j,y1:O,x2:j,y2:R}),A.push({x1:L,y1:P,x2:j,y2:P}),A.push({x1:L,y1:O,x2:L,y2:R})}else if(i==="horizontal"){var T=d.scale,I=g+o,$=I-a,k=I+a,M=T(w-S),B=T(w+N);A.push({x1:$,y1:B,x2:k,y2:B}),A.push({x1:I,y1:M,x2:I,y2:B}),A.push({x1:$,y1:M,x2:k,y2:M})}return D.createElement(rt,Tf({className:"recharts-errorBar",key:"bar-".concat(A.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},v),A.map(function(W){return D.createElement("line",Tf({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return D.createElement(rt,{className:"recharts-errorBars"},b)}}])}(D.Component);SF(au,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});SF(au,"displayName","ErrorBar");function mc(e){"@babel/helpers - typeof";return mc=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},mc(e)}function EE(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 Zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EE(Object(n),!0).forEach(function(r){she(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function she(e,t,n){return t=lhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lhe(e){var t=che(e,"string");return mc(t)=="symbol"?t:t+""}function che(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EF=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=an(n,pi);if(!a)return null;var s=pi.defaultProps,c=s!==void 0?Zo(Zo({},s),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:i==="children"?u=(r||[]).reduce(function(f,d){var p=d.item,v=d.props,b=v.sectors||v.data||[];return f.concat(b.map(function(y){return{type:a.props.iconType||p.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(r||[]).map(function(f){var d=f.item,p=d.type.defaultProps,v=p!==void 0?Zo(Zo({},p),d.props):{},b=v.dataKey,y=v.name,m=v.legendType,g=v.hide;return{inactive:g,dataKey:b,type:c.iconType||m||"square",color:Rb(d),value:y||b,payload:v}}),Zo(Zo(Zo({},c),pi.getWithHeight(a,o)),{},{payload:u,item:a})};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 NE(e){return phe(e)||fhe(e)||dhe(e)||uhe()}function uhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
514
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dhe(e,t){if(e){if(typeof e=="string")return cg(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 cg(e,t)}}function fhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function phe(e){if(Array.isArray(e))return cg(e)}function cg(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 _E(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 tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_E(Object(n),!0).forEach(function(r){Ia(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ia(e,t,n){return t=hhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hhe(e){var t=mhe(e,"string");return vc(t)=="symbol"?t:t+""}function mhe(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hn(e,t,n){return be(e)||be(t)?n:pt(t)?Tn(e,t,n):xe(t)?t(e):n}function El(e,t,n,r){var o=fpe(e,function(s){return hn(s,t)});if(n==="number"){var i=o.filter(function(s){return K(s)||parseFloat(s)});return i.length?[xh(i),gh(i)]:[1/0,-1/0]}var a=r?o.filter(function(s){return!be(s)}):o;return a.map(function(s){return pt(s)||s instanceof Date?s:""})}var vhe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=-1,s=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<s;u++){var f=u>0?o[u-1].coordinate:o[s-1].coordinate,d=o[u].coordinate,p=u>=s-1?o[0].coordinate:o[u+1].coordinate,v=void 0;if(Xn(d-f)!==Xn(p-d)){var b=[];if(Xn(p-d)===Xn(c[1]-c[0])){v=p;var y=d+c[1]-c[0];b[0]=Math.min(y,(y+f)/2),b[1]=Math.max(y,(y+f)/2)}else{v=f;var m=p+c[1]-c[0];b[0]=Math.min(d,(m+d)/2),b[1]=Math.max(d,(m+d)/2)}var g=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(t>g[0]&&t<=g[1]||t>=b[0]&&t<=b[1]){a=o[u].index;break}}else{var x=Math.min(f,p),w=Math.max(f,p);if(t>(x+d)/2&&t<=(w+d)/2){a=o[u].index;break}}}else for(var E=0;E<s;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<s-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===s-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){a=r[E].index;break}return a},Rb=function(t){var n,r=t,o=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?tt(tt({},t.type.defaultProps),t.props):t.props,a=i.stroke,s=i.fill,c;switch(o){case"Line":c=a;break;case"Area":case"Radar":c=a&&a!=="none"?a:s;break;default:c=s;break}return c},yhe=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,i=o===void 0?{}:o;if(!i)return{};for(var a={},s=Object.keys(i),c=0,u=s.length;c<u;c++)for(var f=i[s[c]].stackGroups,d=Object.keys(f),p=0,v=d.length;p<v;p++){var b=f[d[p]],y=b.items,m=b.cateAxisId,g=y.filter(function(N){return Lr(N.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?tt(tt({},x),g[0].props):g[0].props,E=w.barSize,A=w[m];a[A]||(a[A]=[]);var S=be(E)?n:E;a[A].push({item:g[0],stackList:g.slice(1),barSize:be(S)?void 0:_i(S,r,0)})}}return a},ghe=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,i=t.sizeList,a=i===void 0?[]:i,s=t.maxBarSize,c=a.length;if(c<1)return null;var u=_i(n,o,0,!0),f,d=[];if(a[0].barSize===+a[0].barSize){var p=!1,v=o/c,b=a.reduce(function(E,A){return E+A.barSize||0},0);b+=(c-1)*u,b>=o&&(b-=(c-1)*u,u=0),b>=o&&v>0&&(p=!0,v*=.9,b=c*v);var y=(o-b)/2>>0,m={offset:y-u,size:0};f=a.reduce(function(E,A){var S={item:A.item,position:{offset:m.offset+m.size+u,size:p?v:A.barSize}},N=[].concat(NE(E),[S]);return m=N[N.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(_){N.push({item:_,position:m})}),N},d)}else{var g=_i(r,o,0,!0);o-2*g-(c-1)*u<=0&&(u=0);var x=(o-2*g-(c-1)*u)/c;x>1&&(x>>=0);var w=s===+s?Math.min(x,s):x;f=a.reduce(function(E,A,S){var N=[].concat(NE(E),[{item:A.item,position:{offset:g+(x+u)*S+(x-w)/2,size:w}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(_){N.push({item:_,position:N[N.length-1].position})}),N},d)}return f},xhe=function(t,n,r,o){var i=r.children,a=r.width,s=r.margin,c=a-(s.left||0)-(s.right||0),u=EF({children:i,legendWidth:c});if(u){var f=o||{},d=f.width,p=f.height,v=u.align,b=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&b==="middle")&&v!=="center"&&K(t[v]))return tt(tt({},t),{},Ia({},v,t[v]+(d||0)));if((y==="horizontal"||y==="vertical"&&v==="center")&&b!=="middle"&&K(t[b]))return tt(tt({},t),{},Ia({},b,t[b]+(p||0)))}return t},bhe=function(t,n,r){return be(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},NF=function(t,n,r,o,i){var a=n.props.children,s=Pn(a,au).filter(function(u){return bhe(o,i,u.props.direction)});if(s&&s.length){var c=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var d=hn(f,r);if(be(d))return u;var p=Array.isArray(d)?[xh(d),gh(d)]:[d,d],v=c.reduce(function(b,y){var m=hn(f,y,0),g=p[0]-Math.abs(Array.isArray(m)?m[0]:m),x=p[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(g,b[0]),Math.max(x,b[1])]},[1/0,-1/0]);return[Math.min(v[0],u[0]),Math.max(v[1],u[1])]},[1/0,-1/0])}return null},whe=function(t,n,r,o,i){var a=n.map(function(s){return NF(t,s,r,i,o)}).filter(function(s){return!be(s)});return a&&a.length?a.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]):null},_F=function(t,n,r,o,i){var a=n.map(function(c){var u=c.props.dataKey;return r==="number"&&u&&NF(t,c,u,o)||El(t,u,r,i)});if(r==="number")return a.reduce(function(c,u){return[Math.min(c[0],u[0]),Math.max(c[1],u[1])]},[1/0,-1/0]);var s={};return a.reduce(function(c,u){for(var f=0,d=u.length;f<d;f++)s[u[f]]||(s[u[f]]=!0,c.push(u[f]));return c},[])},jF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},CF=function(t,n,r,o){if(o)return t.map(function(c){return c.coordinate});var i,a,s=t.map(function(c){return c.coordinate===n&&(i=!0),c.coordinate===r&&(a=!0),c.coordinate});return i||s.push(n),a||s.push(r),s},Mr=function(t,n,r){if(!t)return null;var o=t.scale,i=t.duplicateDomain,a=t.type,s=t.range,c=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,u=(n||r)&&a==="category"&&o.bandwidth?o.bandwidth()/c:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Xn(s[0]-s[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var p=i?i.indexOf(d):d;return{coordinate:o(p)+u,value:d,offset:u}});return f.filter(function(d){return!Jc(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,p){return{coordinate:o(d)+u,value:d,index:p,offset:u}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(d){return{coordinate:o(d)+u,value:d,offset:u}}):o.domain().map(function(d,p){return{coordinate:o(d)+u,value:i?i[d]:d,index:p,offset:u}})},qm=new WeakMap,Gu=function(t,n){if(typeof n!="function")return t;qm.has(t)||qm.set(t,new WeakMap);var r=qm.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},She=function(t,n,r){var o=t.scale,i=t.type,a=t.layout,s=t.axisType;if(o==="auto")return a==="radial"&&s==="radiusAxis"?{scale:lc(),realScaleType:"band"}:a==="radial"&&s==="angleAxis"?{scale:Nf(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Al(),realScaleType:"point"}:i==="category"?{scale:lc(),realScaleType:"band"}:{scale:Nf(),realScaleType:"linear"};if(Ni(o)){var c="scale".concat(ih(o));return{scale:(xE[c]||Al)(),realScaleType:xE[c]?c:"point"}}return xe(o)?{scale:o}:{scale:Al(),realScaleType:"point"}},jE=1e-4,Ahe=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,o=t.range(),i=Math.min(o[0],o[1])-jE,a=Math.max(o[0],o[1])+jE,s=t(n[0]),c=t(n[r-1]);(s<i||s>a||c<i||c>a)&&t.domain([n[0],n[r-1]])}},Ehe=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},Nhe=function(t,n){if(!n||n.length!==2||!K(n[0])||!K(n[1]))return t;var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!K(t[0])||t[0]<r)&&(i[0]=r),(!K(t[1])||t[1]>o)&&(i[1]=o),i[0]>o&&(i[0]=o),i[1]<r&&(i[1]=r),i},_he=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0,s=0;s<n;++s){var c=Jc(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=i,t[s][r][1]=i+c,i=t[s][r][1]):(t[s][r][0]=a,t[s][r][1]=a+c,a=t[s][r][1])}},jhe=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var i=0,a=0;a<n;++a){var s=Jc(t[a][r][1])?t[a][r][0]:t[a][r][1];s>=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},Che={sign:_he,expand:zee,none:za,silhouette:Wee,wiggle:Gee,positive:jhe},Ohe=function(t,n,r){var o=n.map(function(s){return s.props.dataKey}),i=Che[r],a=Hee().keys(o).value(function(s,c){return+hn(s,c,0)}).order(ky).offset(i);return a(t)},The=function(t,n,r,o,i,a){if(!t)return null;var s=a?n.reverse():n,c={},u=s.reduce(function(d,p){var v,b=(v=p.type)!==null&&v!==void 0&&v.defaultProps?tt(tt({},p.type.defaultProps),p.props):p.props,y=b.stackId,m=b.hide;if(m)return d;var g=b[r],x=d[g]||{hasStack:!1,stackGroups:{}};if(pt(y)){var w=x.stackGroups[y]||{numericAxisId:r,cateAxisId:o,items:[]};w.items.push(p),x.hasStack=!0,x.stackGroups[y]=w}else x.stackGroups[eu("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[p]};return tt(tt({},d),{},Ia({},g,x))},c),f={};return Object.keys(u).reduce(function(d,p){var v=u[p];if(v.hasStack){var b={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(y,m){var g=v.stackGroups[m];return tt(tt({},y),{},Ia({},m,{numericAxisId:r,cateAxisId:o,items:g.items,stackedData:Ohe(t,g.items,i)}))},b)}return tt(tt({},d),{},Ia({},p,v))},f)},Phe=function(t,n){var r=n.realScaleType,o=n.type,i=n.tickCount,a=n.originalDomain,s=n.allowDecimals,c=r||n.scale;if(c!=="auto"&&c!=="linear")return null;if(i&&o==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=Hpe(u,i,s);return t.domain([xh(f),gh(f)]),{niceTicks:f}}if(i&&o==="number"){var d=t.domain(),p=zpe(d,i,s);return{niceTicks:p}}return null};function CE(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!be(o[t.dataKey])){var s=tf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=hn(o,be(a)?t.dataKey:a);return be(c)?null:t.scale(c)}var OE=function(t){var n=t.axis,r=t.ticks,o=t.offset,i=t.bandSize,a=t.entry,s=t.index;if(n.type==="category")return r[s]?r[s].coordinate+o:null;var c=hn(a,n.dataKey,n.domain[s]);return be(c)?null:n.scale(c)-i/2+o},Ihe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var o=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return o<=0&&i>=0?0:i<0?i:o}return r[0]},Rhe=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?tt(tt({},t.type.defaultProps),t.props):t.props,i=o.stackId;if(pt(i)){var a=n[i];if(a){var s=a.items.indexOf(t);return s>=0?a.stackedData[s]:null}}return null},khe=function(t){return t.reduce(function(n,r){return[xh(r.concat([n[0]]).filter(K)),gh(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},OF=function(t,n,r){return Object.keys(t).reduce(function(o,i){var a=t[i],s=a.stackedData,c=s.reduce(function(u,f){var d=khe(f.slice(n,r+1));return[Math.min(u[0],d[0]),Math.max(u[1],d[1])]},[1/0,-1/0]);return[Math.min(c[0],o[0]),Math.max(c[1],o[1])]},[1/0,-1/0]).map(function(o){return o===1/0||o===-1/0?0:o})},TE=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,PE=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ug=function(t,n,r){if(xe(t))return t(n,r);if(!Array.isArray(t))return n;var o=[];if(K(t[0]))o[0]=r?t[0]:Math.min(t[0],n[0]);else if(TE.test(t[0])){var i=+TE.exec(t[0])[1];o[0]=n[0]-i}else xe(t[0])?o[0]=t[0](n[0]):o[0]=n[0];if(K(t[1]))o[1]=r?t[1]:Math.max(t[1],n[1]);else if(PE.test(t[1])){var a=+PE.exec(t[1])[1];o[1]=n[1]+a}else xe(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},If=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 i=sb(n,function(d){return d.coordinate}),a=1/0,s=1,c=i.length;s<c;s++){var u=i[s],f=i[s-1];a=Math.min((u.coordinate||0)-(f.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},IE=function(t,n,r){return!t||!t.length||bh(t,Tn(r,"type.defaultProps.domain"))?n:t},TF=function(t,n){var r=t.type.defaultProps?tt(tt({},t.type.defaultProps),t.props):t.props,o=r.dataKey,i=r.name,a=r.unit,s=r.formatter,c=r.tooltipType,u=r.chartType,f=r.hide;return tt(tt({},Ee(t,!1)),{},{dataKey:o,unit:a,formatter:s,name:i||o,color:Rb(t),value:hn(n,o),type:c,payload:n,chartType:u,hide:f})};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 RE(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 kE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RE(Object(n),!0).forEach(function(r){Mhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mhe(e,t,n){return t=Dhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dhe(e){var t=$he(e,"string");return yc(t)=="symbol"?t:t+""}function $he(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)}var Rf=Math.PI/180,Lhe=function(t){return t*180/Math.PI},Nt=function(t,n,r,o){return{x:t+Math.cos(-Rf*o)*r,y:n+Math.sin(-Rf*o)*r}},Fhe=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(o-a,2))},Bhe=function(t,n){var r=t.x,o=t.y,i=n.cx,a=n.cy,s=Fhe({x:r,y:o},{x:i,y:a});if(s<=0)return{radius:s};var c=(r-i)/s,u=Math.acos(c);return o>a&&(u=2*Math.PI-u),{radius:s,angle:Lhe(u),angleInRadian:u}},Uhe=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return{startAngle:n-a*360,endAngle:r-a*360}},Hhe=function(t,n){var r=n.startAngle,o=n.endAngle,i=Math.floor(r/360),a=Math.floor(o/360),s=Math.min(i,a);return t+s*360},ME=function(t,n){var r=t.x,o=t.y,i=Bhe({x:r,y:o},n),a=i.radius,s=i.angle,c=n.innerRadius,u=n.outerRadius;if(a<c||a>u)return!1;if(a===0)return!0;var f=Uhe(n),d=f.startAngle,p=f.endAngle,v=s,b;if(d<=p){for(;v>p;)v-=360;for(;v<d;)v+=360;b=v>=d&&v<=p}else{for(;v>d;)v-=360;for(;v<p;)v+=360;b=v>=p&&v<=d}return b?kE(kE({},n),{},{radius:a,angle:Hhe(v,n)}):null};function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}var zhe=["offset"];function Whe(e){return Yhe(e)||Khe(e)||Vhe(e)||Ghe()}function Ghe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
515
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vhe(e,t){if(e){if(typeof e=="string")return dg(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 dg(e,t)}}function Khe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yhe(e){if(Array.isArray(e))return dg(e)}function dg(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 qhe(e,t){if(e==null)return{};var n=Xhe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xhe(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 DE(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 ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DE(Object(n),!0).forEach(function(r){Zhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zhe(e,t,n){return t=Qhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qhe(e){var t=Jhe(e,"string");return gc(t)=="symbol"?t:t+""}function Jhe(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(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)}var eme=function(t){var n=t.value,r=t.formatter,o=be(t.children)?n:t.children;return xe(r)?r(o):o},tme=function(t,n){var r=Xn(n-t),o=Math.min(Math.abs(n-t),360);return r*o},nme=function(t,n,r){var o=t.position,i=t.viewBox,a=t.offset,s=t.className,c=i,u=c.cx,f=c.cy,d=c.innerRadius,p=c.outerRadius,v=c.startAngle,b=c.endAngle,y=c.clockWise,m=(d+p)/2,g=tme(v,b),x=g>=0?1:-1,w,E;o==="insideStart"?(w=v+x*a,E=y):o==="insideEnd"?(w=b-x*a,E=!y):o==="end"&&(w=b+x*a,E=y),E=g<=0?E:!E;var A=Nt(u,f,m,w),S=Nt(u,f,m,w+(E?1:-1)*359),N="M".concat(A.x,",").concat(A.y,`
|
|
516
|
-
A`).concat(m,",").concat(m,",0,1,").concat(E?0:1,`,
|
|
517
|
-
`).concat(S.x,",").concat(S.y),_=be(t.id)?eu("recharts-radial-line-"):t.id;return D.createElement("text",xc({},r,{dominantBaseline:"central",className:Ne("recharts-radial-bar-label",s)}),D.createElement("defs",null,D.createElement("path",{id:_,d:N})),D.createElement("textPath",{xlinkHref:"#".concat(_)},n))},rme=function(t){var n=t.viewBox,r=t.offset,o=t.position,i=n,a=i.cx,s=i.cy,c=i.innerRadius,u=i.outerRadius,f=i.startAngle,d=i.endAngle,p=(f+d)/2;if(o==="outside"){var v=Nt(a,s,u+r,p),b=v.x,y=v.y;return{x:b,y,textAnchor:b>=a?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:a,y:s,textAnchor:"middle",verticalAnchor:"end"};var m=(c+u)/2,g=Nt(a,s,m,p),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},ome=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,i=t.position,a=n,s=a.x,c=a.y,u=a.width,f=a.height,d=f>=0?1:-1,p=d*o,v=d>0?"end":"start",b=d>0?"start":"end",y=u>=0?1:-1,m=y*o,g=y>0?"end":"start",x=y>0?"start":"end";if(i==="top"){var w={x:s+u/2,y:c-d*o,textAnchor:"middle",verticalAnchor:v};return ut(ut({},w),r?{height:Math.max(c-r.y,0),width:u}:{})}if(i==="bottom"){var E={x:s+u/2,y:c+f+p,textAnchor:"middle",verticalAnchor:b};return ut(ut({},E),r?{height:Math.max(r.y+r.height-(c+f),0),width:u}:{})}if(i==="left"){var A={x:s-m,y:c+f/2,textAnchor:g,verticalAnchor:"middle"};return ut(ut({},A),r?{width:Math.max(A.x-r.x,0),height:f}:{})}if(i==="right"){var S={x:s+u+m,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return ut(ut({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:f}:{})}var N=r?{width:u,height:f}:{};return i==="insideLeft"?ut({x:s+m,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},N):i==="insideRight"?ut({x:s+u-m,y:c+f/2,textAnchor:g,verticalAnchor:"middle"},N):i==="insideTop"?ut({x:s+u/2,y:c+p,textAnchor:"middle",verticalAnchor:b},N):i==="insideBottom"?ut({x:s+u/2,y:c+f-p,textAnchor:"middle",verticalAnchor:v},N):i==="insideTopLeft"?ut({x:s+m,y:c+p,textAnchor:x,verticalAnchor:b},N):i==="insideTopRight"?ut({x:s+u-m,y:c+p,textAnchor:g,verticalAnchor:b},N):i==="insideBottomLeft"?ut({x:s+m,y:c+f-p,textAnchor:x,verticalAnchor:v},N):i==="insideBottomRight"?ut({x:s+u-m,y:c+f-p,textAnchor:g,verticalAnchor:v},N):As(i)&&(K(i.x)||si(i.x))&&(K(i.y)||si(i.y))?ut({x:s+_i(i.x,u),y:c+_i(i.y,f),textAnchor:"end",verticalAnchor:"end"},N):ut({x:s+u/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},N)},ime=function(t){return"cx"in t&&K(t.cx)};function $t(e){var t=e.offset,n=t===void 0?5:t,r=qhe(e,zhe),o=ut({offset:n},r),i=o.viewBox,a=o.position,s=o.value,c=o.children,u=o.content,f=o.className,d=f===void 0?"":f,p=o.textBreakAll;if(!i||be(s)&&be(c)&&!h.isValidElement(u)&&!xe(u))return null;if(h.isValidElement(u))return h.cloneElement(u,o);var v;if(xe(u)){if(v=h.createElement(u,o),h.isValidElement(v))return v}else v=eme(o);var b=ime(i),y=Ee(o,!0);if(b&&(a==="insideStart"||a==="insideEnd"||a==="end"))return nme(o,v,y);var m=b?rme(o):ome(o);return D.createElement(gf,xc({className:Ne("recharts-label",d)},y,m,{breakAll:p}),v)}$t.displayName="Label";var PF=function(t){var n=t.cx,r=t.cy,o=t.angle,i=t.startAngle,a=t.endAngle,s=t.r,c=t.radius,u=t.innerRadius,f=t.outerRadius,d=t.x,p=t.y,v=t.top,b=t.left,y=t.width,m=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(K(y)&&K(m)){if(K(d)&&K(p))return{x:d,y:p,width:y,height:m};if(K(v)&&K(b))return{x:v,y:b,width:y,height:m}}return K(d)&&K(p)?{x:d,y:p,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:i||o||0,endAngle:a||o||0,innerRadius:u||0,outerRadius:f||c||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},ame=function(t,n){return t?t===!0?D.createElement($t,{key:"label-implicit",viewBox:n}):pt(t)?D.createElement($t,{key:"label-implicit",viewBox:n,value:t}):h.isValidElement(t)?t.type===$t?h.cloneElement(t,{key:"label-implicit",viewBox:n}):D.createElement($t,{key:"label-implicit",content:t,viewBox:n}):xe(t)?D.createElement($t,{key:"label-implicit",content:t,viewBox:n}):As(t)?D.createElement($t,xc({viewBox:n},t,{key:"label-implicit"})):null:null},sme=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,i=PF(t),a=Pn(o,$t).map(function(c,u){return h.cloneElement(c,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return a;var s=ame(t.label,n||i);return[s].concat(Whe(a))};$t.parseViewBox=PF;$t.renderCallByParent=sme;function lme(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var cme=lme;const ume=Re(cme);function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}var dme=["valueAccessor"],fme=["data","dataKey","clockWise","id","textBreakAll"];function pme(e){return yme(e)||vme(e)||mme(e)||hme()}function hme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
518
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mme(e,t){if(e){if(typeof e=="string")return fg(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 fg(e,t)}}function vme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yme(e){if(Array.isArray(e))return fg(e)}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kf(){return kf=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},kf.apply(this,arguments)}function $E(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 LE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$E(Object(n),!0).forEach(function(r){gme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$E(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gme(e,t,n){return t=xme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xme(e){var t=bme(e,"string");return bc(t)=="symbol"?t:t+""}function bme(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FE(e,t){if(e==null)return{};var n=wme(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wme(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 Sme=function(t){return Array.isArray(t.value)?ume(t.value):t.value};function Io(e){var t=e.valueAccessor,n=t===void 0?Sme:t,r=FE(e,dme),o=r.data,i=r.dataKey,a=r.clockWise,s=r.id,c=r.textBreakAll,u=FE(r,fme);return!o||!o.length?null:D.createElement(rt,{className:"recharts-label-list"},o.map(function(f,d){var p=be(i)?n(f,d):hn(f&&f.payload,i),v=be(s)?{}:{id:"".concat(s,"-").concat(d)};return D.createElement($t,kf({},Ee(f,!0),u,v,{parentViewBox:f.parentViewBox,value:p,textBreakAll:c,viewBox:$t.parseViewBox(be(a)?f:LE(LE({},f),{},{clockWise:a})),key:"label-".concat(d),index:d}))}))}Io.displayName="LabelList";function Ame(e,t){return e?e===!0?D.createElement(Io,{key:"labelList-implicit",data:t}):D.isValidElement(e)||xe(e)?D.createElement(Io,{key:"labelList-implicit",data:t,content:e}):As(e)?D.createElement(Io,kf({data:t},e,{key:"labelList-implicit"})):null:null}function Eme(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=Pn(r,Io).map(function(a,s){return h.cloneElement(a,{data:t,key:"labelList-".concat(s)})});if(!n)return o;var i=Ame(e.label,t);return[i].concat(pme(o))}Io.renderCallByParent=Eme;function wc(e){"@babel/helpers - typeof";return wc=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},wc(e)}function pg(){return pg=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},pg.apply(this,arguments)}function BE(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 UE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(n),!0).forEach(function(r){Nme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nme(e,t,n){return t=_me(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _me(e){var t=jme(e,"string");return wc(t)=="symbol"?t:t+""}function jme(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cme=function(t,n){var r=Xn(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},Vu=function(t){var n=t.cx,r=t.cy,o=t.radius,i=t.angle,a=t.sign,s=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,f=c*(s?1:-1)+o,d=Math.asin(c/f)/Rf,p=u?i:i+a*d,v=Nt(n,r,f,p),b=Nt(n,r,o,p),y=u?i-a*d:i,m=Nt(n,r,f*Math.cos(d*Rf),y);return{center:v,circleTangency:b,lineTangency:m,theta:d}},IF=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.startAngle,s=t.endAngle,c=Cme(a,s),u=a+c,f=Nt(n,r,i,a),d=Nt(n,r,i,u),p="M ".concat(f.x,",").concat(f.y,`
|
|
519
|
-
A `).concat(i,",").concat(i,`,0,
|
|
520
|
-
`).concat(+(Math.abs(c)>180),",").concat(+(a>u),`,
|
|
521
|
-
`).concat(d.x,",").concat(d.y,`
|
|
522
|
-
`);if(o>0){var v=Nt(n,r,o,a),b=Nt(n,r,o,u);p+="L ".concat(b.x,",").concat(b.y,`
|
|
523
|
-
A `).concat(o,",").concat(o,`,0,
|
|
524
|
-
`).concat(+(Math.abs(c)>180),",").concat(+(a<=u),`,
|
|
525
|
-
`).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(n,",").concat(r," Z");return p},Ome=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,i=t.outerRadius,a=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,d=Xn(f-u),p=Vu({cx:n,cy:r,radius:i,angle:u,sign:d,cornerRadius:a,cornerIsExternal:c}),v=p.circleTangency,b=p.lineTangency,y=p.theta,m=Vu({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:a,cornerIsExternal:c}),g=m.circleTangency,x=m.lineTangency,w=m.theta,E=c?Math.abs(u-f):Math.abs(u-f)-y-w;if(E<0)return s?"M ".concat(b.x,",").concat(b.y,`
|
|
526
|
-
a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
|
|
527
|
-
a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
|
|
528
|
-
`):IF({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:f});var A="M ".concat(b.x,",").concat(b.y,`
|
|
529
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,`
|
|
530
|
-
A`).concat(i,",").concat(i,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(g.x,",").concat(g.y,`
|
|
531
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(x.x,",").concat(x.y,`
|
|
532
|
-
`);if(o>0){var S=Vu({cx:n,cy:r,radius:o,angle:u,sign:d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),N=S.circleTangency,_=S.lineTangency,C=S.theta,P=Vu({cx:n,cy:r,radius:o,angle:f,sign:-d,isExternal:!0,cornerRadius:a,cornerIsExternal:c}),O=P.circleTangency,R=P.lineTangency,L=P.theta,j=c?Math.abs(u-f):Math.abs(u-f)-C-L;if(j<0&&a===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(R.x,",").concat(R.y,`
|
|
533
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(O.x,",").concat(O.y,`
|
|
534
|
-
A`).concat(o,",").concat(o,",0,").concat(+(j>180),",").concat(+(d>0),",").concat(N.x,",").concat(N.y,`
|
|
535
|
-
A`).concat(a,",").concat(a,",0,0,").concat(+(d<0),",").concat(_.x,",").concat(_.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},Tme={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},RF=function(t){var n=UE(UE({},Tme),t),r=n.cx,o=n.cy,i=n.innerRadius,a=n.outerRadius,s=n.cornerRadius,c=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,p=n.className;if(a<i||f===d)return null;var v=Ne("recharts-sector",p),b=a-i,y=_i(s,b,0,!0),m;return y>0&&Math.abs(f-d)<360?m=Ome({cx:r,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,b/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:f,endAngle:d}):m=IF({cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:f,endAngle:d}),D.createElement("path",pg({},Ee(n,!0),{className:v,d:m,role:"img"}))};function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}function hg(){return hg=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},hg.apply(this,arguments)}function HE(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 zE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HE(Object(n),!0).forEach(function(r){Pme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pme(e,t,n){return t=Ime(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ime(e){var t=Rme(e,"string");return Sc(t)=="symbol"?t:t+""}function Rme(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WE={curveBasisClosed:Pee,curveBasisOpen:Iee,curveBasis:Tee,curveBumpX:vee,curveBumpY:yee,curveLinearClosed:Ree,curveLinear:sh,curveMonotoneX:kee,curveMonotoneY:Mee,curveNatural:Dee,curveStep:$ee,curveStepAfter:Fee,curveStepBefore:Lee},Ku=function(t){return t.x===+t.x&&t.y===+t.y},Js=function(t){return t.x},el=function(t){return t.y},kme=function(t,n){if(xe(t))return t;var r="curve".concat(ih(t));return(r==="curveMonotone"||r==="curveBump")&&n?WE["".concat(r).concat(n==="vertical"?"Y":"X")]:WE[r]||sh},Mme=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,i=o===void 0?[]:o,a=t.baseLine,s=t.layout,c=t.connectNulls,u=c===void 0?!1:c,f=kme(r,s),d=u?i.filter(function(y){return Ku(y)}):i,p;if(Array.isArray(a)){var v=u?a.filter(function(y){return Ku(y)}):a,b=d.map(function(y,m){return zE(zE({},y),{},{base:v[m]})});return s==="vertical"?p=$u().y(el).x1(Js).x0(function(y){return y.base.x}):p=$u().x(Js).y1(el).y0(function(y){return y.base.y}),p.defined(Ku).curve(f),p(b)}return s==="vertical"&&K(a)?p=$u().y(el).x1(Js).x0(a):K(a)?p=$u().x(Js).y1(el).y0(a):p=R$().x(Js).y(el),p.defined(Ku).curve(f),p(d)},mg=function(t){var n=t.className,r=t.points,o=t.path,i=t.pathRef;if((!r||!r.length)&&!o)return null;var a=r&&r.length?Mme(t):o;return h.createElement("path",hg({},Ee(t,!1),nf(t),{className:Ne("recharts-curve",n),d:a,ref:i}))},kF={exports:{}},Dme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$me=Dme,Lme=$me;function MF(){}function DF(){}DF.resetWarningCache=MF;var Fme=function(){function e(r,o,i,a,s,c){if(c!==Lme){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:DF,resetWarningCache:MF};return n.PropTypes=n,n};kF.exports=Fme();var Bme=kF.exports;const Te=Re(Bme),{getOwnPropertyNames:Ume,getOwnPropertySymbols:Hme}=Object,{hasOwnProperty:zme}=Object.prototype;function Xm(e,t){return function(r,o,i){return e(r,o,i)&&t(r,o,i)}}function Yu(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);const{cache:i}=o,a=i.get(n),s=i.get(r);if(a&&s)return a===r&&s===n;i.set(n,r),i.set(r,n);const c=e(n,r,o);return i.delete(n),i.delete(r),c}}function Wme(e){return e!=null?e[Symbol.toStringTag]:void 0}function GE(e){return Ume(e).concat(Hme(e))}const Gme=Object.hasOwn||((e,t)=>zme.call(e,t));function Wi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Vme="__v",Kme="__o",Yme="_owner",{getOwnPropertyDescriptor:VE,keys:KE}=Object;function qme(e,t){return e.byteLength===t.byteLength&&Mf(new Uint8Array(e),new Uint8Array(t))}function Xme(e,t,n){let 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 Zme(e,t){return e.byteLength===t.byteLength&&Mf(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Qme(e,t){return Wi(e.getTime(),t.getTime())}function Jme(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function eve(e,t){return e===t}function YE(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.entries();let a,s,c=0;for(;(a=i.next())&&!a.done;){const u=t.entries();let f=!1,d=0;for(;(s=u.next())&&!s.done;){if(o[d]){d++;continue}const p=a.value,v=s.value;if(n.equals(p[0],v[0],c,d,e,t,n)&&n.equals(p[1],v[1],p[0],v[0],e,t,n)){f=o[d]=!0;break}d++}if(!f)return!1;c++}return!0}const tve=Wi;function nve(e,t,n){const r=KE(e);let o=r.length;if(KE(t).length!==o)return!1;for(;o-- >0;)if(!$F(e,t,n,r[o]))return!1;return!0}function tl(e,t,n){const r=GE(e);let o=r.length;if(GE(t).length!==o)return!1;let i,a,s;for(;o-- >0;)if(i=r[o],!$F(e,t,n,i)||(a=VE(e,i),s=VE(t,i),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function rve(e,t){return Wi(e.valueOf(),t.valueOf())}function ove(e,t){return e.source===t.source&&e.flags===t.flags}function qE(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const o=new Array(r),i=e.values();let a,s;for(;(a=i.next())&&!a.done;){const c=t.values();let u=!1,f=0;for(;(s=c.next())&&!s.done;){if(!o[f]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){u=o[f]=!0;break}f++}if(!u)return!1}return!0}function Mf(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function ive(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 $F(e,t,n,r){return(r===Yme||r===Kme||r===Vme)&&(e.$$typeof||t.$$typeof)?!0:Gme(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const ave="[object ArrayBuffer]",sve="[object Arguments]",lve="[object Boolean]",cve="[object DataView]",uve="[object Date]",dve="[object Error]",fve="[object Map]",pve="[object Number]",hve="[object Object]",mve="[object RegExp]",vve="[object Set]",yve="[object String]",gve={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},xve="[object URL]",bve=Object.prototype.toString;function wve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:o,areFunctionsEqual:i,areMapsEqual:a,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:v,unknownTagComparators:b}){return function(m,g,x){if(m===g)return!0;if(m==null||g==null)return!1;const w=typeof m;if(w!==typeof g)return!1;if(w!=="object")return w==="number"?s(m,g,x):w==="function"?i(m,g,x):!1;const E=m.constructor;if(E!==g.constructor)return!1;if(E===Object)return c(m,g,x);if(Array.isArray(m))return t(m,g,x);if(E===Date)return r(m,g,x);if(E===RegExp)return f(m,g,x);if(E===Map)return a(m,g,x);if(E===Set)return d(m,g,x);const A=bve.call(m);if(A===uve)return r(m,g,x);if(A===mve)return f(m,g,x);if(A===fve)return a(m,g,x);if(A===vve)return d(m,g,x);if(A===hve)return typeof m.then!="function"&&typeof g.then!="function"&&c(m,g,x);if(A===xve)return v(m,g,x);if(A===dve)return o(m,g,x);if(A===sve)return c(m,g,x);if(gve[A])return p(m,g,x);if(A===ave)return e(m,g,x);if(A===cve)return n(m,g,x);if(A===lve||A===pve||A===yve)return u(m,g,x);if(b){let S=b[A];if(!S){const N=Wme(m);N&&(S=b[N])}if(S)return S(m,g,x)}return!1}}function Sve({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:qme,areArraysEqual:n?tl:Xme,areDataViewsEqual:Zme,areDatesEqual:Qme,areErrorsEqual:Jme,areFunctionsEqual:eve,areMapsEqual:n?Xm(YE,tl):YE,areNumbersEqual:tve,areObjectsEqual:n?tl:nve,arePrimitiveWrappersEqual:rve,areRegExpsEqual:ove,areSetsEqual:n?Xm(qE,tl):qE,areTypedArraysEqual:n?Xm(Mf,tl):Mf,areUrlsEqual:ive,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const o=Yu(r.areArraysEqual),i=Yu(r.areMapsEqual),a=Yu(r.areObjectsEqual),s=Yu(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:a,areSetsEqual:s})}return r}function Ave(e){return function(t,n,r,o,i,a,s){return e(t,n,s)}}function Eve({circular:e,comparator:t,createState:n,equals:r,strict:o}){if(n)return function(s,c){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(s,c,{cache:u,equals:r,meta:f,strict:o})};if(e)return function(s,c){return t(s,c,{cache:new WeakMap,equals:r,meta:void 0,strict:o})};const i={cache:void 0,equals:r,meta:void 0,strict:o};return function(s,c){return t(s,c,i)}}const Nve=Yo();Yo({strict:!0});Yo({circular:!0});Yo({circular:!0,strict:!0});Yo({createInternalComparator:()=>Wi});Yo({strict:!0,createInternalComparator:()=>Wi});Yo({circular:!0,createInternalComparator:()=>Wi});Yo({circular:!0,createInternalComparator:()=>Wi,strict:!0});function Yo(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:o=!1}=e,i=Sve(e),a=wve(i),s=n?n(a):Ave(a);return Eve({circular:t,comparator:a,createState:r,equals:s,strict:o})}function _ve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function XE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function o(i){n<0&&(n=i),i-n>t?(e(i),n=-1):_ve(o)};requestAnimationFrame(r)}function vg(e){"@babel/helpers - typeof";return vg=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},vg(e)}function jve(e){return Pve(e)||Tve(e)||Ove(e)||Cve()}function Cve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
536
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ove(e,t){if(e){if(typeof e=="string")return ZE(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 ZE(e,t)}}function ZE(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 Tve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pve(e){if(Array.isArray(e))return e}function Ive(){var e={},t=function(){return null},n=!1,r=function o(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var a=i,s=jve(a),c=s[0],u=s.slice(1);if(typeof c=="number"){XE(o.bind(null,u),c);return}o(c),XE(o.bind(null,u));return}vg(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}function QE(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 JE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QE(Object(n),!0).forEach(function(r){LF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LF(e,t,n){return t=Rve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rve(e){var t=kve(e,"string");return Ac(t)==="symbol"?t:String(t)}function kve(e,t){if(Ac(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mve=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(i){return o.includes(i)})})},Dve=function(t){return t},$ve=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Nl=function(t,n){return Object.keys(n).reduce(function(r,o){return JE(JE({},r),{},LF({},o,t(o,n[o])))},{})},eN=function(t,n,r){return t.map(function(o){return"".concat($ve(o)," ").concat(n,"ms ").concat(r)}).join(",")};function Lve(e,t){return Uve(e)||Bve(e,t)||FF(e,t)||Fve()}function Fve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
537
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Uve(e){if(Array.isArray(e))return e}function Hve(e){return Gve(e)||Wve(e)||FF(e)||zve()}function zve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
538
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FF(e,t){if(e){if(typeof e=="string")return yg(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 yg(e,t)}}function Wve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gve(e){if(Array.isArray(e))return yg(e)}function yg(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 Df=1e-4,BF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},UF=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},tN=function(t,n){return function(r){var o=BF(t,n);return UF(o,r)}},Vve=function(t,n){return function(r){var o=BF(t,n),i=[].concat(Hve(o.map(function(a,s){return a*s}).slice(1)),[0]);return UF(i,r)}},nN=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,i=0,a=1,s=1;break;case"ease":o=.25,i=.1,a=.25,s=1;break;case"ease-in":o=.42,i=0,a=1,s=1;break;case"ease-out":o=.42,i=0,a=.58,s=1;break;case"ease-in-out":o=0,i=0,a=.58,s=1;break;default:{var c=n[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var u=c[1].split(")")[0].split(",").map(function(m){return parseFloat(m)}),f=Lve(u,4);o=f[0],i=f[1],a=f[2],s=f[3]}}}var d=tN(o,a),p=tN(i,s),v=Vve(o,a),b=function(g){return g>1?1:g<0?0:g},y=function(g){for(var x=g>1?1:g,w=x,E=0;E<8;++E){var A=d(w)-x,S=v(w);if(Math.abs(A-x)<Df||S<Df)return p(w);w=b(w-A/S)}return p(w)};return y.isStepper=!1,y},Kve=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,o=t.damping,i=o===void 0?8:o,a=t.dt,s=a===void 0?17:a,c=function(f,d,p){var v=-(f-d)*r,b=p*i,y=p+(v-b)*s/1e3,m=p*s/1e3+f;return Math.abs(m-d)<Df&&Math.abs(y)<Df?[d,0]:[m,y]};return c.isStepper=!0,c.dt=s,c},Yve=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 nN(o);case"spring":return Kve();default:if(o.split("(")[0]==="cubic-bezier")return nN(o)}return typeof o=="function"?o:null};function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(e)}function rN(e){return Zve(e)||Xve(e)||HF(e)||qve()}function qve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
539
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zve(e){if(Array.isArray(e))return xg(e)}function oN(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 At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oN(Object(n),!0).forEach(function(r){gg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gg(e,t,n){return t=Qve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qve(e){var t=Jve(e,"string");return Ec(t)==="symbol"?t:String(t)}function Jve(e,t){if(Ec(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eye(e,t){return rye(e)||nye(e,t)||HF(e,t)||tye()}function tye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
540
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HF(e,t){if(e){if(typeof e=="string")return xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xg(e,t)}}function xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function rye(e){if(Array.isArray(e))return e}var $f=function(t,n,r){return t+(n-t)*r},bg=function(t){var n=t.from,r=t.to;return n!==r},oye=function e(t,n,r){var o=Nl(function(i,a){if(bg(a)){var s=t(a.from,a.to,a.velocity),c=eye(s,2),u=c[0],f=c[1];return At(At({},a),{},{from:u,velocity:f})}return a},n);return r<1?Nl(function(i,a){return bg(a)?At(At({},a),{},{velocity:$f(a.velocity,o[i].velocity,r),from:$f(a.from,o[i].from,r)}):a},n):e(t,o,r-1)};const iye=function(e,t,n,r,o){var i=Mve(e,t),a=i.reduce(function(m,g){return At(At({},m),{},gg({},g,[e[g],t[g]]))},{}),s=i.reduce(function(m,g){return At(At({},m),{},gg({},g,{from:e[g],velocity:0,to:t[g]}))},{}),c=-1,u,f,d=function(){return null},p=function(){return Nl(function(g,x){return x.from},s)},v=function(){return!Object.values(s).filter(bg).length},b=function(g){u||(u=g);var x=g-u,w=x/n.dt;s=oye(n,s,w),o(At(At(At({},e),t),p())),u=g,v()||(c=requestAnimationFrame(d))},y=function(g){f||(f=g);var x=(g-f)/r,w=Nl(function(A,S){return $f.apply(void 0,rN(S).concat([n(x)]))},a);if(o(At(At(At({},e),t),w)),x<1)c=requestAnimationFrame(d);else{var E=Nl(function(A,S){return $f.apply(void 0,rN(S).concat([n(1)]))},a);o(At(At(At({},e),t),E))}};return d=n.isStepper?b:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(c)}}};function Qa(e){"@babel/helpers - typeof";return Qa=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},Qa(e)}var aye=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function sye(e,t){if(e==null)return{};var n=lye(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lye(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Zm(e){return fye(e)||dye(e)||uye(e)||cye()}function cye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
541
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uye(e,t){if(e){if(typeof e=="string")return wg(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 wg(e,t)}}function dye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fye(e){if(Array.isArray(e))return wg(e)}function wg(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 iN(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iN(Object(n),!0).forEach(function(r){ul(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ul(e,t,n){return t=zF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hye(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,zF(r.key),r)}}function mye(e,t,n){return t&&hye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zF(e){var t=vye(e,"string");return Qa(t)==="symbol"?t:String(t)}function vye(e,t){if(Qa(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yye(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&&Sg(e,t)}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Sg(e,t)}function gye(e){var t=xye();return function(){var r=Lf(e),o;if(t){var i=Lf(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return Ag(this,o)}}function Ag(e,t){if(t&&(Qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eg(e)}function Eg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xye(){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 Lf(e){return Lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lf(e)}var Zr=function(e){yye(n,e);var t=gye(n);function n(r,o){var i;pye(this,n),i=t.call(this,r,o);var a=i.props,s=a.isActive,c=a.attributeName,u=a.from,f=a.to,d=a.steps,p=a.children,v=a.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Eg(i)),i.changeStyle=i.changeStyle.bind(Eg(i)),!s||v<=0)return i.state={style:{}},typeof p=="function"&&(i.state={style:f}),Ag(i);if(d&&d.length)i.state={style:d[0].style};else if(u){if(typeof p=="function")return i.state={style:u},Ag(i);i.state={style:c?ul({},c,u):u}}else i.state={style:{}};return i}return mye(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.isActive,a=o.canBegin;this.mounted=!0,!(!i||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isActive,s=i.canBegin,c=i.attributeName,u=i.shouldReAnimate,f=i.to,d=i.from,p=this.state.style;if(s){if(!a){var v={style:c?ul({},c,f):f};this.state&&p&&(c&&p[c]!==f||!c&&p!==f)&&this.setState(v);return}if(!(Nve(o.to,f)&&o.canBegin&&o.isActive)){var b=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=b||u?d:o.to;if(this.state&&p){var m={style:c?ul({},c,y):y};(c&&p[c]!==y||!c&&p!==y)&&this.setState(m)}this.runAnimation(Bn(Bn({},this.props),{},{from:y,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 i=this,a=o.from,s=o.to,c=o.duration,u=o.easing,f=o.begin,d=o.onAnimationEnd,p=o.onAnimationStart,v=iye(a,s,Yve(u),c,this.changeStyle),b=function(){i.stopJSAnimation=v()};this.manager.start([p,f,b,c,d])}},{key:"runStepAnimation",value:function(o){var i=this,a=o.steps,s=o.begin,c=o.onAnimationStart,u=a[0],f=u.style,d=u.duration,p=d===void 0?0:d,v=function(y,m,g){if(g===0)return y;var x=m.duration,w=m.easing,E=w===void 0?"ease":w,A=m.style,S=m.properties,N=m.onAnimationEnd,_=g>0?a[g-1]:m,C=S||Object.keys(A);if(typeof E=="function"||E==="spring")return[].concat(Zm(y),[i.runJSAnimation.bind(i,{from:_.style,to:A,duration:x,easing:E}),x]);var P=eN(C,x,E),O=Bn(Bn(Bn({},_.style),A),{},{transition:P});return[].concat(Zm(y),[O,x,N]).filter(Dve)};return this.manager.start([c].concat(Zm(a.reduce(v,[f,Math.max(p,s)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=Ive());var i=o.begin,a=o.duration,s=o.attributeName,c=o.to,u=o.easing,f=o.onAnimationStart,d=o.onAnimationEnd,p=o.steps,v=o.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof u=="function"||typeof v=="function"||u==="spring"){this.runJSAnimation(o);return}if(p.length>1){this.runStepAnimation(o);return}var y=s?ul({},s,c):c,m=eN(Object.keys(y),a,u);b.start([f,i,Bn(Bn({},y),{},{transition:m}),a,d])}},{key:"render",value:function(){var o=this.props,i=o.children;o.begin;var a=o.duration;o.attributeName,o.easing;var s=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var c=sye(o,aye),u=h.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!s||u===0||a<=0)return i;var d=function(v){var b=v.props,y=b.style,m=y===void 0?{}:y,g=b.className,x=h.cloneElement(v,Bn(Bn({},c),{},{style:Bn(Bn({},m),f),className:g}));return x};return u===1?d(h.Children.only(i)):D.createElement("div",null,h.Children.map(i,function(p){return d(p)}))}}]),n}(h.PureComponent);Zr.displayName="Animate";Zr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Zr.propTypes={from:Te.oneOfType([Te.object,Te.string]),to:Te.oneOfType([Te.object,Te.string]),attributeName:Te.string,duration:Te.number,begin:Te.number,easing:Te.oneOfType([Te.string,Te.func]),steps:Te.arrayOf(Te.shape({duration:Te.number.isRequired,style:Te.object.isRequired,easing:Te.oneOfType([Te.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Te.func]),properties:Te.arrayOf("string"),onAnimationEnd:Te.func})),children:Te.oneOfType([Te.node,Te.func]),isActive:Te.bool,canBegin:Te.bool,onAnimationEnd:Te.func,shouldReAnimate:Te.bool,onAnimationStart:Te.func,onAnimationReStart:Te.func};function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}function Ff(){return Ff=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},Ff.apply(this,arguments)}function bye(e,t){return Eye(e)||Aye(e,t)||Sye(e,t)||wye()}function wye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
542
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sye(e,t){if(e){if(typeof e=="string")return aN(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 aN(e,t)}}function aN(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 Aye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function Eye(e){if(Array.isArray(e))return e}function sN(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?sN(Object(n),!0).forEach(function(r){Nye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nye(e,t,n){return t=_ye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ye(e){var t=jye(e,"string");return Nc(t)=="symbol"?t:t+""}function jye(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cN=function(t,n,r,o,i){var a=Math.min(Math.abs(r)/2,Math.abs(o)/2),s=o>=0?1:-1,c=r>=0?1:-1,u=o>=0&&r>=0||o<0&&r<0?1:0,f;if(a>0&&i instanceof Array){for(var d=[0,0,0,0],p=0,v=4;p<v;p++)d[p]=i[p]>a?a:i[p];f="M".concat(t,",").concat(n+s*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(u,",").concat(t+c*d[0],",").concat(n)),f+="L ".concat(t+r-c*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(u,`,
|
|
543
|
-
`).concat(t+r,",").concat(n+s*d[1])),f+="L ".concat(t+r,",").concat(n+o-s*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(u,`,
|
|
544
|
-
`).concat(t+r-c*d[2],",").concat(n+o)),f+="L ".concat(t+c*d[3],",").concat(n+o),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(u,`,
|
|
545
|
-
`).concat(t,",").concat(n+o-s*d[3])),f+="Z"}else if(a>0&&i===+i&&i>0){var b=Math.min(a,i);f="M ".concat(t,",").concat(n+s*b,`
|
|
546
|
-
A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+c*b,",").concat(n,`
|
|
547
|
-
L `).concat(t+r-c*b,",").concat(n,`
|
|
548
|
-
A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r,",").concat(n+s*b,`
|
|
549
|
-
L `).concat(t+r,",").concat(n+o-s*b,`
|
|
550
|
-
A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r-c*b,",").concat(n+o,`
|
|
551
|
-
L `).concat(t+c*b,",").concat(n+o,`
|
|
552
|
-
A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t,",").concat(n+o-s*b," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return f},Cye=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,i=n.x,a=n.y,s=n.width,c=n.height;if(Math.abs(s)>0&&Math.abs(c)>0){var u=Math.min(i,i+s),f=Math.max(i,i+s),d=Math.min(a,a+c),p=Math.max(a,a+c);return r>=u&&r<=f&&o>=d&&o<=p}return!1},Oye={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},kb=function(t){var n=lN(lN({},Oye),t),r=h.useRef(),o=h.useState(-1),i=bye(o,2),a=i[0],s=i[1];h.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&s(E)}catch{}},[]);var c=n.x,u=n.y,f=n.width,d=n.height,p=n.radius,v=n.className,b=n.animationEasing,y=n.animationDuration,m=n.animationBegin,g=n.isAnimationActive,x=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var w=Ne("recharts-rectangle",v);return x?D.createElement(Zr,{canBegin:a>0,from:{width:f,height:d,x:c,y:u},to:{width:f,height:d,x:c,y:u},duration:y,animationEasing:b,isActive:x},function(E){var A=E.width,S=E.height,N=E.x,_=E.y;return D.createElement(Zr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:y,isActive:g,easing:b},D.createElement("path",Ff({},Ee(n,!0),{className:w,d:cN(N,_,A,S,p),ref:r})))}):D.createElement("path",Ff({},Ee(n,!0),{className:w,d:cN(c,u,f,d,p)}))};function Ng(){return Ng=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},Ng.apply(this,arguments)}var Mb=function(t){var n=t.cx,r=t.cy,o=t.r,i=t.className,a=Ne("recharts-dot",i);return n===+n&&r===+r&&o===+o?h.createElement("circle",Ng({},Ee(t,!1),nf(t),{className:a,cx:n,cy:r,r:o})):null};function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}var Tye=["x","y","top","left","width","height","className"];function _g(){return _g=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},_g.apply(this,arguments)}function uN(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 Pye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uN(Object(n),!0).forEach(function(r){Iye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iye(e,t,n){return t=Rye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rye(e){var t=kye(e,"string");return _c(t)=="symbol"?t:t+""}function kye(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mye(e,t){if(e==null)return{};var n=Dye(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dye(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 $ye=function(t,n,r,o,i,a){return"M".concat(t,",").concat(i,"v").concat(o,"M").concat(a,",").concat(n,"h").concat(r)},Lye=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,i=o===void 0?0:o,a=t.top,s=a===void 0?0:a,c=t.left,u=c===void 0?0:c,f=t.width,d=f===void 0?0:f,p=t.height,v=p===void 0?0:p,b=t.className,y=Mye(t,Tye),m=Pye({x:r,y:i,top:s,left:u,width:d,height:v},y);return!K(r)||!K(i)||!K(d)||!K(v)||!K(s)||!K(u)?null:D.createElement("path",_g({},Ee(m,!0),{className:Ne("recharts-cross",b),d:$ye(r,i,d,v,s,u)}))},Fye=rL,Bye=Fye(Object.getPrototypeOf,Object),Uye=Bye,Hye=no,zye=Uye,Wye=ro,Gye="[object Object]",Vye=Function.prototype,Kye=Object.prototype,WF=Vye.toString,Yye=Kye.hasOwnProperty,qye=WF.call(Object);function Xye(e){if(!Wye(e)||Hye(e)!=Gye)return!1;var t=zye(e);if(t===null)return!0;var n=Yye.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&WF.call(n)==qye}var Zye=Xye;const Qye=Re(Zye);var Jye=no,ege=ro,tge="[object Boolean]";function nge(e){return e===!0||e===!1||ege(e)&&Jye(e)==tge}var rge=nge;const oge=Re(rge);function jc(e){"@babel/helpers - typeof";return jc=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},jc(e)}function Bf(){return Bf=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},Bf.apply(this,arguments)}function ige(e,t){return cge(e)||lge(e,t)||sge(e,t)||age()}function age(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
553
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sge(e,t){if(e){if(typeof e=="string")return dN(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 dN(e,t)}}function dN(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 lge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function cge(e){if(Array.isArray(e))return e}function fN(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 pN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fN(Object(n),!0).forEach(function(r){uge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uge(e,t,n){return t=dge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dge(e){var t=fge(e,"string");return jc(t)=="symbol"?t:t+""}function fge(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hN=function(t,n,r,o,i){var a=r-o,s;return s="M ".concat(t,",").concat(n),s+="L ".concat(t+r,",").concat(n),s+="L ".concat(t+r-a/2,",").concat(n+i),s+="L ".concat(t+r-a/2-o,",").concat(n+i),s+="L ".concat(t,",").concat(n," Z"),s},pge={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hge=function(t){var n=pN(pN({},pge),t),r=h.useRef(),o=h.useState(-1),i=ige(o,2),a=i[0],s=i[1];h.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&s(w)}catch{}},[]);var c=n.x,u=n.y,f=n.upperWidth,d=n.lowerWidth,p=n.height,v=n.className,b=n.animationEasing,y=n.animationDuration,m=n.animationBegin,g=n.isUpdateAnimationActive;if(c!==+c||u!==+u||f!==+f||d!==+d||p!==+p||f===0&&d===0||p===0)return null;var x=Ne("recharts-trapezoid",v);return g?D.createElement(Zr,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:u},to:{upperWidth:f,lowerWidth:d,height:p,x:c,y:u},duration:y,animationEasing:b,isActive:g},function(w){var E=w.upperWidth,A=w.lowerWidth,S=w.height,N=w.x,_=w.y;return D.createElement(Zr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:y,easing:b},D.createElement("path",Bf({},Ee(n,!0),{className:x,d:hN(N,_,E,A,S),ref:r})))}):D.createElement("g",null,D.createElement("path",Bf({},Ee(n,!0),{className:x,d:hN(c,u,f,d,p)})))},mge=["option","shapeType","propTransformer","activeClassName","isActive"];function Cc(e){"@babel/helpers - typeof";return Cc=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},Cc(e)}function vge(e,t){if(e==null)return{};var n=yge(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yge(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 mN(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 Uf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mN(Object(n),!0).forEach(function(r){gge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gge(e,t,n){return t=xge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xge(e){var t=bge(e,"string");return Cc(t)=="symbol"?t:t+""}function bge(e,t){if(Cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wge(e,t){return Uf(Uf({},t),e)}function Sge(e,t){return e==="symbols"}function vN(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return D.createElement(kb,n);case"trapezoid":return D.createElement(hge,n);case"sector":return D.createElement(RF,n);case"symbols":if(Sge(t))return D.createElement(J0,n);break;default:return null}}function Age(e){return h.isValidElement(e)?e.props:e}function Ege(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?wge:r,i=e.activeClassName,a=i===void 0?"recharts-active-shape":i,s=e.isActive,c=vge(e,mge),u;if(h.isValidElement(t))u=h.cloneElement(t,Uf(Uf({},c),Age(t)));else if(xe(t))u=t(c);else if(Qye(t)&&!oge(t)){var f=o(t,c);u=D.createElement(vN,{shapeType:n,elementProps:f})}else{var d=c;u=D.createElement(vN,{shapeType:n,elementProps:d})}return s?D.createElement(rt,{className:a},u):u}function Ah(e,t){return t!=null&&"trapezoids"in e.props}function Eh(e,t){return t!=null&&"sectors"in e.props}function Oc(e,t){return t!=null&&"points"in e.props}function Nge(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,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return o&&i}function _ge(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function jge(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function Cge(e,t){var n;return Ah(e,t)?n=Nge:Eh(e,t)?n=_ge:Oc(e,t)&&(n=jge),n}function Oge(e,t){var n;return Ah(e,t)?n="trapezoids":Eh(e,t)?n="sectors":Oc(e,t)&&(n="points"),n}function Tge(e,t){if(Ah(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(Eh(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 Oc(e,t)?t.payload:{}}function Pge(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=Oge(n,t),i=Tge(n,t),a=r.filter(function(c,u){var f=bh(i,c),d=n.props[o].filter(function(b){var y=Cge(n,t);return y(b,t)}),p=n.props[o].indexOf(d[d.length-1]),v=u===p;return f&&v}),s=r.indexOf(a[a.length-1]);return s}var Ige=Math.ceil,Rge=Math.max;function kge(e,t,n,r){for(var o=-1,i=Rge(Ige((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a}var Mge=kge,Dge=SL,yN=1/0,$ge=17976931348623157e292;function Lge(e){if(!e)return e===0?e:0;if(e=Dge(e),e===yN||e===-yN){var t=e<0?-1:1;return t*$ge}return e===e?e:0}var GF=Lge,Fge=Mge,Bge=dh,Qm=GF;function Uge(e){return function(t,n,r){return r&&typeof r!="number"&&Bge(t,n,r)&&(n=r=void 0),t=Qm(t),n===void 0?(n=t,t=0):n=Qm(n),r=r===void 0?t<n?1:-1:Qm(r),Fge(t,n,r,e)}}var Hge=Uge,zge=Hge,Wge=zge(),Gge=Wge;const Hf=Re(Gge);function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(e)}function gN(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 xN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gN(Object(n),!0).forEach(function(r){VF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VF(e,t,n){return t=Vge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vge(e){var t=Kge(e,"string");return Tc(t)=="symbol"?t:t+""}function Kge(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yge=["Webkit","Moz","O","ms"],qge=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),o=Yge.reduce(function(i,a){return xN(xN({},i),{},VF({},a+r,n))},{});return o[t]=n,o};function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function zf(){return zf=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},zf.apply(this,arguments)}function bN(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 Jm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bN(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wN(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,YF(r.key),r)}}function Zge(e,t,n){return t&&wN(e.prototype,t),n&&wN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qge(e,t,n){return t=Wf(t),Jge(e,KF()?Reflect.construct(t,n||[],Wf(e).constructor):t.apply(e,n))}function Jge(e,t){if(t&&(Ja(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return exe(e)}function exe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KF=function(){return!!e})()}function Wf(e){return Wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wf(e)}function txe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jg(e,t)}function jg(e,t){return jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jg(e,t)}function rn(e,t,n){return t=YF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=nxe(e,"string");return Ja(t)=="symbol"?t:t+""}function nxe(e,t){if(Ja(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rxe=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,i=t.x,a=t.width,s=t.travellerWidth;if(!n||!n.length)return{};var c=n.length,u=Al().domain(Hf(0,c)).range([i,i+a-s]),f=u.domain().map(function(d){return u(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(o),scale:u,scaleValues:f}},SN=function(t){return t.changedTouches&&!!t.changedTouches.length},es=function(e){function t(n){var r;return Xge(this,t),r=Qge(this,t,[n]),rn(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),rn(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),rn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,i=o.endIndex,a=o.onDragEnd,s=o.startIndex;a==null||a({endIndex:i,startIndex:s})}),r.detachDragEndListener()}),rn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),rn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),rn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),rn(r,"handleSlideDragStart",function(o){var i=SN(o)?o.changedTouches[0]:o;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return txe(t,e),Zge(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var o=r.startX,i=r.endX,a=this.state.scaleValues,s=this.props,c=s.gap,u=s.data,f=u.length-1,d=Math.min(o,i),p=Math.max(o,i),v=t.getIndexInRange(a,d),b=t.getIndexInRange(a,p);return{startIndex:v-v%c,endIndex:b===f?f:b-b%c}}},{key:"getTextOfTick",value:function(r){var o=this.props,i=o.data,a=o.tickFormatter,s=o.dataKey,c=hn(i[r],s,r);return xe(a)?a(c,r):c}},{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,i=o.slideMoveStartX,a=o.startX,s=o.endX,c=this.props,u=c.x,f=c.width,d=c.travellerWidth,p=c.startIndex,v=c.endIndex,b=c.onChange,y=r.pageX-i;y>0?y=Math.min(y,u+f-d-s,u+f-d-a):y<0&&(y=Math.max(y,u-a,u-s));var m=this.getIndex({startX:a+y,endX:s+y});(m.startIndex!==p||m.endIndex!==v)&&b&&b(m),this.setState({startX:a+y,endX:s+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var i=SN(o)?o.changedTouches[0]:o;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var o=this.state,i=o.brushMoveStartX,a=o.movingTravellerId,s=o.endX,c=o.startX,u=this.state[a],f=this.props,d=f.x,p=f.width,v=f.travellerWidth,b=f.onChange,y=f.gap,m=f.data,g={startX:this.state.startX,endX:this.state.endX},x=r.pageX-i;x>0?x=Math.min(x,d+p-v-u):x<0&&(x=Math.max(x,d-u)),g[a]=u+x;var w=this.getIndex(g),E=w.startIndex,A=w.endIndex,S=function(){var _=m.length-1;return a==="startX"&&(s>c?E%y===0:A%y===0)||s<c&&A===_||a==="endX"&&(s>c?A%y===0:E%y===0)||s>c&&A===_};this.setState(rn(rn({},a,u+x),"brushMoveStartX",r.pageX),function(){b&&S()&&b(w)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var i=this,a=this.state,s=a.scaleValues,c=a.startX,u=a.endX,f=this.state[o],d=s.indexOf(f);if(d!==-1){var p=d+r;if(!(p===-1||p>=s.length)){var v=s[p];o==="startX"&&v>=u||o==="endX"&&v<=c||this.setState(rn({},o,v),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,c=r.fill,u=r.stroke;return D.createElement("rect",{stroke:u,fill:c,x:o,y:i,width:a,height:s})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,c=r.data,u=r.children,f=r.padding,d=h.Children.only(u);return d?D.cloneElement(d,{x:o,y:i,width:a,height:s,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(r,o){var i,a,s=this,c=this.props,u=c.y,f=c.travellerWidth,d=c.height,p=c.traveller,v=c.ariaLabel,b=c.data,y=c.startIndex,m=c.endIndex,g=Math.max(r,this.props.x),x=Jm(Jm({},Ee(this.props,!1)),{},{x:g,y:u,width:f,height:d}),w=v||"Min value: ".concat((i=b[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((a=b[m])===null||a===void 0?void 0:a.name);return D.createElement(rt,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[o],onTouchStart:this.travellerDragStartHandlers[o],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,o))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,x))}},{key:"renderSlide",value:function(r,o){var i=this.props,a=i.y,s=i.height,c=i.stroke,u=i.travellerWidth,f=Math.min(r,o)+u,d=Math.max(Math.abs(o-r)-u,0);return D.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:a,width:d,height:s})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,i=r.endIndex,a=r.y,s=r.height,c=r.travellerWidth,u=r.stroke,f=this.state,d=f.startX,p=f.endX,v=5,b={pointerEvents:"none",fill:u};return D.createElement(rt,{className:"recharts-brush-texts"},D.createElement(gf,zf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,p)-v,y:a+s/2},b),this.getTextOfTick(o)),D.createElement(gf,zf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,p)+c+v,y:a+s/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,o=r.data,i=r.className,a=r.children,s=r.x,c=r.y,u=r.width,f=r.height,d=r.alwaysShowText,p=this.state,v=p.startX,b=p.endX,y=p.isTextActive,m=p.isSlideMoving,g=p.isTravellerMoving,x=p.isTravellerFocused;if(!o||!o.length||!K(s)||!K(c)||!K(u)||!K(f)||u<=0||f<=0)return null;var w=Ne("recharts-brush",i),E=D.Children.count(a)===1,A=qge("userSelect","none");return D.createElement(rt,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(v,b),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(b,"endX"),(y||m||g||x||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,i=r.y,a=r.width,s=r.height,c=r.stroke,u=Math.floor(i+s/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:o,y:i,width:a,height:s,fill:c,stroke:"none"}),D.createElement("line",{x1:o+1,y1:u,x2:o+a-1,y2:u,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:o+1,y1:u+2,x2:o+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var i;return D.isValidElement(r)?i=D.cloneElement(r,o):xe(r)?i=r(o):i=t.renderDefaultTraveller(o),i}},{key:"getDerivedStateFromProps",value:function(r,o){var i=r.data,a=r.width,s=r.x,c=r.travellerWidth,u=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==o.prevData||u!==o.prevUpdateId)return Jm({prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a},i&&i.length?rxe({data:i,width:a,x:s,travellerWidth:c,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(o.scale&&(a!==o.prevWidth||s!==o.prevX||c!==o.prevTravellerWidth)){o.scale.range([s,s+a-c]);var p=o.scale.domain().map(function(v){return o.scale(v)});return{prevData:i,prevTravellerWidth:c,prevUpdateId:u,prevX:s,prevWidth:a,startX:o.scale(r.startIndex),endX:o.scale(r.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(r,o){for(var i=r.length,a=0,s=i-1;s-a>1;){var c=Math.floor((a+s)/2);r[c]>o?s=c:a=c}return o>=r[s]?s:a}}])}(h.PureComponent);rn(es,"displayName","Brush");rn(es,"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 oxe=ab;function ixe(e,t){var n;return oxe(e,function(r,o,i){return n=t(r,o,i),!n}),!!n}var axe=ixe,sxe=q$,lxe=Go,cxe=axe,uxe=tn,dxe=dh;function fxe(e,t,n){var r=uxe(e)?sxe:cxe;return n&&dxe(e,t,n)&&(t=void 0),r(e,lxe(t))}var pxe=fxe;const hxe=Re(pxe);var gr=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},AN=yL;function mxe(e,t,n){t=="__proto__"&&AN?AN(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var vxe=mxe,yxe=vxe,gxe=mL,xxe=Go;function bxe(e,t){var n={};return t=xxe(t),gxe(e,function(r,o,i){yxe(n,o,t(r,o,i))}),n}var wxe=bxe;const Sxe=Re(wxe);function Axe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var Exe=Axe,Nxe=ab;function _xe(e,t){var n=!0;return Nxe(e,function(r,o,i){return n=!!t(r,o,i),n}),n}var jxe=_xe,Cxe=Exe,Oxe=jxe,Txe=Go,Pxe=tn,Ixe=dh;function Rxe(e,t,n){var r=Pxe(e)?Cxe:Oxe;return n&&Ixe(e,t,n)&&(t=void 0),r(e,Txe(t))}var kxe=Rxe;const qF=Re(kxe);var Mxe=["x","y"];function Pc(e){"@babel/helpers - typeof";return Pc=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},Pc(e)}function Cg(){return Cg=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},Cg.apply(this,arguments)}function EN(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 nl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(n),!0).forEach(function(r){Dxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dxe(e,t,n){return t=$xe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $xe(e){var t=Lxe(e,"string");return Pc(t)=="symbol"?t:t+""}function Lxe(e,t){if(Pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fxe(e,t){if(e==null)return{};var n=Bxe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[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 Uxe(e,t){var n=e.x,r=e.y,o=Fxe(e,Mxe),i="".concat(n),a=parseInt(i,10),s="".concat(r),c=parseInt(s,10),u="".concat(t.height||o.height),f=parseInt(u,10),d="".concat(t.width||o.width),p=parseInt(d,10);return nl(nl(nl(nl(nl({},t),o),a?{x:a}:{}),c?{y:c}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function NN(e){return D.createElement(Ege,Cg({shapeType:"rectangle",propTransformer:Uxe,activeClassName:"recharts-active-bar"},e))}var Hxe=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 i=K(r)||tJ(r);return i?t(r,o):(i||Ci(),n)}},zxe=["value","background"],XF;function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}function Wxe(e,t){if(e==null)return{};var n=Gxe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[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={};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 Gf(){return Gf=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},Gf.apply(this,arguments)}function _N(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 it(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_N(Object(n),!0).forEach(function(r){bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jN(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 Kxe(e,t,n){return t&&jN(e.prototype,t),n&&jN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yxe(e,t,n){return t=Vf(t),qxe(e,ZF()?Reflect.construct(t,n||[],Vf(e).constructor):t.apply(e,n))}function qxe(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xxe(e)}function Xxe(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 Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}function Zxe(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&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Og(e,t)}function bo(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=Qxe(e,"string");return ts(t)=="symbol"?t:t+""}function Qxe(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gi=function(e){function t(){var n;Vxe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Yxe(this,t,[].concat(o)),bo(n,"state",{isAnimationFinished:!1}),bo(n,"id",eu("recharts-bar-")),bo(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),a&&a()}),bo(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),a&&a()}),n}return Zxe(t,e),Kxe(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,i=this.props,a=i.shape,s=i.dataKey,c=i.activeIndex,u=i.activeBar,f=Ee(this.props,!1);return r&&r.map(function(d,p){var v=p===c,b=v?u:a,y=it(it(it({},f),d),{},{isActive:v,option:b,index:p,dataKey:s,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return D.createElement(rt,Gf({className:"recharts-bar-rectangle"},rf(o.props,d,p),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(p)}),D.createElement(NN,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,i=o.data,a=o.layout,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,f=o.animationEasing,d=o.animationId,p=this.state.prevData;return D.createElement(Zr,{begin:c,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var b=v.t,y=i.map(function(m,g){var x=p&&p[g];if(x){var w=Yn(x.x,m.x),E=Yn(x.y,m.y),A=Yn(x.width,m.width),S=Yn(x.height,m.height);return it(it({},m),{},{x:w(b),y:E(b),width:A(b),height:S(b)})}if(a==="horizontal"){var N=Yn(0,m.height),_=N(b);return it(it({},m),{},{y:m.y+m.height-_,height:_})}var C=Yn(0,m.width),P=C(b);return it(it({},m),{},{width:P})});return D.createElement(rt,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,i=r.isAnimationActive,a=this.state.prevData;return i&&o&&o.length&&(!a||!bh(a,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,i=o.data,a=o.dataKey,s=o.activeIndex,c=Ee(this.props.background,!1);return i.map(function(u,f){u.value;var d=u.background,p=Wxe(u,zxe);if(!d)return null;var v=it(it(it(it(it({},p),{},{fill:"#eee"},d),c),rf(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:a,index:f,className:"recharts-bar-background-rectangle"});return D.createElement(NN,Gf({key:"background-bar-".concat(f),option:r.props.background,isActive:f===s},v))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.data,s=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=Pn(f,au);if(!d)return null;var p=u==="vertical"?a[0].height/2:a[0].width/2,v=function(m,g){var x=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:x,errorVal:hn(m,g)}},b={clipPath:r?"url(#clipPath-".concat(o,")"):null};return D.createElement(rt,b,d.map(function(y){return D.cloneElement(y,{key:"error-bar-".concat(o,"-").concat(y.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,offset:p,dataPointFormatter:v})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,i=r.data,a=r.className,s=r.xAxis,c=r.yAxis,u=r.left,f=r.top,d=r.width,p=r.height,v=r.isAnimationActive,b=r.background,y=r.id;if(o||!i||!i.length)return null;var m=this.state.isAnimationFinished,g=Ne("recharts-bar",a),x=s&&s.allowDataOverflow,w=c&&c.allowDataOverflow,E=x||w,A=be(y)?this.id:y;return D.createElement(rt,{className:g},x||w?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(A)},D.createElement("rect",{x:x?u:u-d/2,y:w?f:f-p/2,width:x?d:d*2,height:w?p:p*2}))):null,D.createElement(rt,{className:"recharts-bar-rectangles",clipPath:E?"url(#clipPath-".concat(A,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(E,A),(!v||m)&&Io.renderCallByParent(this.props,i))}}],[{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}}])}(h.PureComponent);XF=Gi;bo(Gi,"displayName","Bar");bo(Gi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ts.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});bo(Gi,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,v=Ehe(r,n);if(!v)return null;var b=t.layout,y=n.type.defaultProps,m=y!==void 0?it(it({},y),n.props):n.props,g=m.dataKey,x=m.children,w=m.minPointSize,E=b==="horizontal"?a:i,A=u?E.scale.domain():null,S=Ihe({numericAxis:E}),N=Pn(x,EL),_=d.map(function(C,P){var O,R,L,j,T,I;u?O=Nhe(u[f+P],A):(O=hn(C,g),Array.isArray(O)||(O=[S,O]));var $=Hxe(w,XF.defaultProps.minPointSize)(O[1],P);if(b==="horizontal"){var k,M=[a.scale(O[0]),a.scale(O[1])],B=M[0],W=M[1];R=OE({axis:i,ticks:s,bandSize:o,offset:v.offset,entry:C,index:P}),L=(k=W??B)!==null&&k!==void 0?k:void 0,j=v.size;var z=B-W;if(T=Number.isNaN(z)?0:z,I={x:R,y:a.y,width:j,height:a.height},Math.abs($)>0&&Math.abs(T)<Math.abs($)){var J=Xn(T||$)*(Math.abs($)-Math.abs(T));L-=J,T+=J}}else{var ue=[i.scale(O[0]),i.scale(O[1])],_e=ue[0],Ae=ue[1];if(R=_e,L=OE({axis:a,ticks:c,bandSize:o,offset:v.offset,entry:C,index:P}),j=Ae-_e,T=v.size,I={x:i.x,y:L,width:i.width,height:T},Math.abs($)>0&&Math.abs(j)<Math.abs($)){var re=Xn(j||$)*(Math.abs($)-Math.abs(j));j+=re}}return it(it(it({},C),{},{x:R,y:L,width:j,height:T,value:u?O:O[1],payload:C,background:I},N&&N[P]&&N[P].props),{},{tooltipPayload:[TF(n,C)],tooltipPosition:{x:R+j/2,y:L+T/2}})});return it({data:_,layout:b},p)});function Ic(e){"@babel/helpers - typeof";return Ic=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},Ic(e)}function Jxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CN(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 e0e(e,t,n){return t&&CN(e.prototype,t),n&&CN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ON(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 Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ON(Object(n),!0).forEach(function(r){Nh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nh(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=t0e(e,"string");return Ic(t)=="symbol"?t:t+""}function t0e(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eB=function(t,n,r,o,i){var a=t.width,s=t.height,c=t.layout,u=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:a-r.right,rightMirror:a-r.right,top:r.top,topMirror:r.top,bottom:s-r.bottom,bottomMirror:s-r.bottom},p=!!an(u,Gi);return f.reduce(function(v,b){var y=n[b],m=y.orientation,g=y.domain,x=y.padding,w=x===void 0?{}:x,E=y.mirror,A=y.reversed,S="".concat(m).concat(E?"Mirror":""),N,_,C,P,O;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var R=g[1]-g[0],L=1/0,j=y.categoricalDomain.sort(oJ);if(j.forEach(function(ue,_e){_e>0&&(L=Math.min((ue||0)-(j[_e-1]||0),L))}),Number.isFinite(L)){var T=L/R,I=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(N=T*I/2),y.padding==="no-gap"){var $=_i(t.barCategoryGap,T*I),k=T*I/2;N=k-$-(k-$)/I*$}}}o==="xAxis"?_=[r.left+(w.left||0)+(N||0),r.left+r.width-(w.right||0)-(N||0)]:o==="yAxis"?_=c==="horizontal"?[r.top+r.height-(w.bottom||0),r.top+(w.top||0)]:[r.top+(w.top||0)+(N||0),r.top+r.height-(w.bottom||0)-(N||0)]:_=y.range,A&&(_=[_[1],_[0]]);var M=She(y,i,p),B=M.scale,W=M.realScaleType;B.domain(g).range(_),Ahe(B);var z=Phe(B,Gn(Gn({},y),{},{realScaleType:W}));o==="xAxis"?(O=m==="top"&&!E||m==="bottom"&&E,C=r.left,P=d[S]-O*y.height):o==="yAxis"&&(O=m==="left"&&!E||m==="right"&&E,C=d[S]-O*y.width,P=r.top);var J=Gn(Gn(Gn({},y),z),{},{realScaleType:W,x:C,y:P,scale:B,width:o==="xAxis"?r.width:y.width,height:o==="yAxis"?r.height:y.height});return J.bandSize=If(J,z),!y.hide&&o==="xAxis"?d[S]+=(O?-1:1)*J.height:y.hide||(d[S]+=(O?-1:1)*J.width),Gn(Gn({},v),{},Nh({},b,J))},{})},tB=function(t,n){var r=t.x,o=t.y,i=n.x,a=n.y;return{x:Math.min(r,i),y:Math.min(o,a),width:Math.abs(i-r),height:Math.abs(a-o)}},n0e=function(t){var n=t.x1,r=t.y1,o=t.x2,i=t.y2;return tB({x:n,y:r},{x:o,y:i})},nB=function(){function e(t){Jxe(this,e),this.scale=t}return e0e(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,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(n)+s}default:return this.scale(n)}if(o){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),o=r[0],i=r[r.length-1];return o<=i?n>=o&&n<=i:n>=i&&n<=o}}],[{key:"create",value:function(n){return new e(n)}}])}();Nh(nB,"EPS",1e-4);var Db=function(t){var n=Object.keys(t).reduce(function(r,o){return Gn(Gn({},r),{},Nh({},o,nB.create(t[o])))},{});return Gn(Gn({},n),{},{apply:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=i.bandAware,s=i.position;return Sxe(o,function(c,u){return n[u].apply(c,{bandAware:a,position:s})})},isInRange:function(o){return qF(o,function(i,a){return n[a].isInRange(i)})}})};function r0e(e){return(e%180+180)%180}var o0e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=r0e(o),a=i*Math.PI/180,s=Math.atan(r/n),c=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(c)},i0e=Go,a0e=tu,s0e=ch;function l0e(e){return function(t,n,r){var o=Object(t);if(!a0e(t)){var i=i0e(n);t=s0e(t),n=function(s){return i(o[s],s,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}}var c0e=l0e,u0e=GF;function d0e(e){var t=u0e(e),n=t%1;return t===t?n?t-n:t:0}var f0e=d0e,p0e=cL,h0e=Go,m0e=f0e,v0e=Math.max;function y0e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:m0e(n);return o<0&&(o=v0e(r+o,0)),p0e(e,h0e(t),o)}var g0e=y0e,x0e=c0e,b0e=g0e,w0e=x0e(b0e),S0e=w0e;const A0e=Re(S0e);var E0e=sQ(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("")}),$b=h.createContext(void 0),Lb=h.createContext(void 0),rB=h.createContext(void 0),oB=h.createContext({}),iB=h.createContext(void 0),aB=h.createContext(0),sB=h.createContext(0),TN=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,i=n.offset,a=t.clipPathId,s=t.children,c=t.width,u=t.height,f=E0e(i);return D.createElement($b.Provider,{value:r},D.createElement(Lb.Provider,{value:o},D.createElement(oB.Provider,{value:i},D.createElement(rB.Provider,{value:f},D.createElement(iB.Provider,{value:a},D.createElement(aB.Provider,{value:u},D.createElement(sB.Provider,{value:c},s)))))))},N0e=function(){return h.useContext(iB)},lB=function(t){var n=h.useContext($b);n==null&&Ci();var r=n[t];return r==null&&Ci(),r},_0e=function(){var t=h.useContext($b);return vo(t)},j0e=function(){var t=h.useContext(Lb),n=A0e(t,function(r){return qF(r.domain,Number.isFinite)});return n||vo(t)},cB=function(t){var n=h.useContext(Lb);n==null&&Ci();var r=n[t];return r==null&&Ci(),r},C0e=function(){var t=h.useContext(rB);return t},O0e=function(){return h.useContext(oB)},Fb=function(){return h.useContext(sB)},Bb=function(){return h.useContext(aB)};function ns(e){"@babel/helpers - typeof";return ns=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},ns(e)}function T0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P0e(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,dB(r.key),r)}}function I0e(e,t,n){return t&&P0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R0e(e,t,n){return t=Kf(t),k0e(e,uB()?Reflect.construct(t,n||[],Kf(e).constructor):t.apply(e,n))}function k0e(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M0e(e)}function M0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uB=function(){return!!e})()}function Kf(e){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kf(e)}function D0e(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&&Tg(e,t)}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Tg(e,t)}function PN(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?PN(Object(n),!0).forEach(function(r){Ub(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ub(e,t,n){return t=dB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dB(e){var t=$0e(e,"string");return ns(t)=="symbol"?t:t+""}function $0e(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function L0e(e,t){return H0e(e)||U0e(e,t)||B0e(e,t)||F0e()}function F0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
554
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B0e(e,t){if(e){if(typeof e=="string")return RN(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 RN(e,t)}}function RN(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 U0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function H0e(e){if(Array.isArray(e))return e}function Pg(){return Pg=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},Pg.apply(this,arguments)}var z0e=function(t,n){var r;return D.isValidElement(t)?r=D.cloneElement(t,n):xe(t)?r=t(n):r=D.createElement("line",Pg({},n,{className:"recharts-reference-line-line"})),r},W0e=function(t,n,r,o,i,a,s,c,u){var f=i.x,d=i.y,p=i.width,v=i.height;if(r){var b=u.y,y=t.y.apply(b,{position:a});if(gr(u,"discard")&&!t.y.isInRange(y))return null;var m=[{x:f+p,y},{x:f,y}];return c==="left"?m.reverse():m}if(n){var g=u.x,x=t.x.apply(g,{position:a});if(gr(u,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:d+v},{x,y:d}];return s==="top"?w.reverse():w}if(o){var E=u.segment,A=E.map(function(S){return t.apply(S,{position:a})});return gr(u,"discard")&&hxe(A,function(S){return!t.isInRange(S)})?null:A}return null};function G0e(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,i=e.yAxisId,a=e.shape,s=e.className,c=e.alwaysShow,u=N0e(),f=lB(o),d=cB(i),p=C0e();if(!u||!p)return null;Fr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=Db({x:f.scale,y:d.scale}),b=pt(t),y=pt(n),m=r&&r.length===2,g=W0e(v,b,y,m,p,e.position,f.orientation,d.orientation,e);if(!g)return null;var x=L0e(g,2),w=x[0],E=w.x,A=w.y,S=x[1],N=S.x,_=S.y,C=gr(e,"hidden")?"url(#".concat(u,")"):void 0,P=IN(IN({clipPath:C},Ee(e,!0)),{},{x1:E,y1:A,x2:N,y2:_});return D.createElement(rt,{className:Ne("recharts-reference-line",s)},z0e(a,P),$t.renderCallByParent(e,n0e({x1:E,y1:A,x2:N,y2:_})))}var Hb=function(e){function t(){return T0e(this,t),R0e(this,t,arguments)}return D0e(t,e),I0e(t,[{key:"render",value:function(){return D.createElement(G0e,this.props)}}])}(D.Component);Ub(Hb,"displayName","ReferenceLine");Ub(Hb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ig(){return Ig=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},Ig.apply(this,arguments)}function rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function kN(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 MN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){_h(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K0e(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,pB(r.key),r)}}function Y0e(e,t,n){return t&&K0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q0e(e,t,n){return t=Yf(t),X0e(e,fB()?Reflect.construct(t,n||[],Yf(e).constructor):t.apply(e,n))}function X0e(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Z0e(e)}function Z0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fB=function(){return!!e})()}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yf(e)}function Q0e(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&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Rg(e,t)}function _h(e,t,n){return t=pB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=J0e(e,"string");return rs(t)=="symbol"?t:t+""}function J0e(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ebe=function(t){var n=t.x,r=t.y,o=t.xAxis,i=t.yAxis,a=Db({x:o.scale,y:i.scale}),s=a.apply({x:n,y:r},{bandAware:!0});return gr(t,"discard")&&!a.isInRange(s)?null:s},jh=function(e){function t(){return V0e(this,t),q0e(this,t,arguments)}return Q0e(t,e),Y0e(t,[{key:"render",value:function(){var r=this.props,o=r.x,i=r.y,a=r.r,s=r.alwaysShow,c=r.clipPathId,u=pt(o),f=pt(i);if(Fr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var d=ebe(this.props);if(!d)return null;var p=d.x,v=d.y,b=this.props,y=b.shape,m=b.className,g=gr(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=MN(MN({clipPath:g},Ee(this.props,!0)),{},{cx:p,cy:v});return D.createElement(rt,{className:Ne("recharts-reference-dot",m)},t.renderDot(y,x),$t.renderCallByParent(this.props,{x:p-a,y:v-a,width:2*a,height:2*a}))}}])}(D.Component);_h(jh,"displayName","ReferenceDot");_h(jh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});_h(jh,"renderDot",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):xe(e)?n=e(t):n=D.createElement(Mb,Ig({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function kg(){return kg=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},kg.apply(this,arguments)}function os(e){"@babel/helpers - typeof";return os=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},os(e)}function DN(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 $N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){Ch(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nbe(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,mB(r.key),r)}}function rbe(e,t,n){return t&&nbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function obe(e,t,n){return t=qf(t),ibe(e,hB()?Reflect.construct(t,n||[],qf(e).constructor):t.apply(e,n))}function ibe(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return abe(e)}function abe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hB=function(){return!!e})()}function qf(e){return qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qf(e)}function sbe(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&&Mg(e,t)}function Mg(e,t){return Mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Mg(e,t)}function Ch(e,t,n){return t=mB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mB(e){var t=lbe(e,"string");return os(t)=="symbol"?t:t+""}function lbe(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cbe=function(t,n,r,o,i){var a=i.x1,s=i.x2,c=i.y1,u=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var p=Db({x:f.scale,y:d.scale}),v={x:t?p.x.apply(a,{position:"start"}):p.x.rangeMin,y:r?p.y.apply(c,{position:"start"}):p.y.rangeMin},b={x:n?p.x.apply(s,{position:"end"}):p.x.rangeMax,y:o?p.y.apply(u,{position:"end"}):p.y.rangeMax};return gr(i,"discard")&&(!p.isInRange(v)||!p.isInRange(b))?null:tB(v,b)},Oh=function(e){function t(){return tbe(this,t),obe(this,t,arguments)}return sbe(t,e),rbe(t,[{key:"render",value:function(){var r=this.props,o=r.x1,i=r.x2,a=r.y1,s=r.y2,c=r.className,u=r.alwaysShow,f=r.clipPathId;Fr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=pt(o),p=pt(i),v=pt(a),b=pt(s),y=this.props.shape;if(!d&&!p&&!v&&!b&&!y)return null;var m=cbe(d,p,v,b,this.props);if(!m&&!y)return null;var g=gr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return D.createElement(rt,{className:Ne("recharts-reference-area",c)},t.renderRect(y,$N($N({clipPath:g},Ee(this.props,!0)),m)),$t.renderCallByParent(this.props,m))}}])}(D.Component);Ch(Oh,"displayName","ReferenceArea");Ch(Oh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ch(Oh,"renderRect",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):xe(e)?n=e(t):n=D.createElement(kb,kg({},t,{className:"recharts-reference-area-rect"})),n});function vB(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 ube(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return o0e(r,n)}function dbe(e,t,n){var r=n==="width",o=e.x,i=e.y,a=e.width,s=e.height;return t===1?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}function Xf(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function fbe(e,t){return vB(e,t+1)}function pbe(e,t,n,r,o){for(var i=(r||[]).slice(),a=t.start,s=t.end,c=0,u=1,f=a,d=function(){var b=r==null?void 0:r[c];if(b===void 0)return{v:vB(r,u)};var y=c,m,g=function(){return m===void 0&&(m=n(b,y)),m},x=b.coordinate,w=c===0||Xf(e,x,g,f,s);w||(c=0,f=a,u+=1),w&&(f=x+e*(g()/2+o),c+=u)},p;u<=i.length;)if(p=d(),p)return p.v;return[]}function Rc(e){"@babel/helpers - typeof";return Rc=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},Rc(e)}function LN(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LN(Object(n),!0).forEach(function(r){hbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hbe(e,t,n){return t=mbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mbe(e){var t=vbe(e,"string");return Rc(t)=="symbol"?t:t+""}function vbe(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ybe(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,s=t.start,c=t.end,u=function(p){var v=i[p],b,y=function(){return b===void 0&&(b=n(v,p)),b};if(p===a-1){var m=e*(v.coordinate+e*y()/2-c);i[p]=v=Mt(Mt({},v),{},{tickCoord:m>0?v.coordinate-m*e:v.coordinate})}else i[p]=v=Mt(Mt({},v),{},{tickCoord:v.coordinate});var g=Xf(e,v.tickCoord,y,s,c);g&&(c=v.tickCoord-e*(y()/2+o),i[p]=Mt(Mt({},v),{},{isShow:!0}))},f=a-1;f>=0;f--)u(f);return i}function gbe(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,c=t.start,u=t.end;if(i){var f=r[s-1],d=n(f,s-1),p=e*(f.coordinate+e*d/2-u);a[s-1]=f=Mt(Mt({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var v=Xf(e,f.tickCoord,function(){return d},c,u);v&&(u=f.tickCoord-e*(d/2+o),a[s-1]=Mt(Mt({},f),{},{isShow:!0}))}for(var b=i?s-1:s,y=function(x){var w=a[x],E,A=function(){return E===void 0&&(E=n(w,x)),E};if(x===0){var S=e*(w.coordinate-e*A()/2-c);a[x]=w=Mt(Mt({},w),{},{tickCoord:S<0?w.coordinate-S*e:w.coordinate})}else a[x]=w=Mt(Mt({},w),{},{tickCoord:w.coordinate});var N=Xf(e,w.tickCoord,A,c,u);N&&(c=w.tickCoord+e*(A()/2+o),a[x]=Mt(Mt({},w),{},{isShow:!0}))},m=0;m<b;m++)y(m);return a}function zb(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,f=e.unit,d=e.angle;if(!o||!o.length||!r)return[];if(K(c)||Ts.isSsr)return fbe(o,typeof c=="number"&&K(c)?c:0);var p=[],v=s==="top"||s==="bottom"?"width":"height",b=f&&v==="width"?Sl(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(w,E){var A=xe(u)?u(w.value,E):w.value;return v==="width"?ube(Sl(A,{fontSize:t,letterSpacing:n}),b,d):Sl(A,{fontSize:t,letterSpacing:n})[v]},m=o.length>=2?Xn(o[1].coordinate-o[0].coordinate):1,g=dbe(i,m,v);return c==="equidistantPreserveStart"?pbe(m,g,y,o,a):(c==="preserveStart"||c==="preserveStartEnd"?p=gbe(m,g,y,o,a,c==="preserveStartEnd"):p=ybe(m,g,y,o,a),p.filter(function(x){return x.isShow}))}var xbe=["viewBox"],bbe=["viewBox"],wbe=["ticks"];function is(e){"@babel/helpers - typeof";return is=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},is(e)}function ya(){return ya=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},ya.apply(this,arguments)}function FN(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 ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FN(Object(n),!0).forEach(function(r){Wb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ev(e,t){if(e==null)return{};var n=Sbe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sbe(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 Abe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BN(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,gB(r.key),r)}}function Ebe(e,t,n){return t&&BN(e.prototype,t),n&&BN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nbe(e,t,n){return t=Zf(t),_be(e,yB()?Reflect.construct(t,n||[],Zf(e).constructor):t.apply(e,n))}function _be(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jbe(e)}function jbe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yB=function(){return!!e})()}function Zf(e){return Zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zf(e)}function Cbe(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&&Dg(e,t)}function Dg(e,t){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Dg(e,t)}function Wb(e,t,n){return t=gB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gB(e){var t=Obe(e,"string");return is(t)=="symbol"?t:t+""}function Obe(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ks=function(e){function t(n){var r;return Abe(this,t),r=Nbe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Cbe(t,e),Ebe(t,[{key:"shouldComponentUpdate",value:function(r,o){var i=r.viewBox,a=ev(r,xbe),s=this.props,c=s.viewBox,u=ev(s,bbe);return!Ta(i,c)||!Ta(a,u)||!Ta(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,i=o.x,a=o.y,s=o.width,c=o.height,u=o.orientation,f=o.tickSize,d=o.mirror,p=o.tickMargin,v,b,y,m,g,x,w=d?-1:1,E=r.tickSize||f,A=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":v=b=r.coordinate,m=a+ +!d*c,y=m-w*E,x=y-w*p,g=A;break;case"left":y=m=r.coordinate,b=i+ +!d*s,v=b-w*E,g=v-w*p,x=A;break;case"right":y=m=r.coordinate,b=i+ +d*s,v=b+w*E,g=v+w*p,x=A;break;default:v=b=r.coordinate,m=a+ +d*c,y=m+w*E,x=y+w*p,g=A;break}return{line:{x1:v,y1:y,x2:b,y2:m},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a;switch(o){case"left":a=i?"start":"end";break;case"right":a=i?"end":"start";break;default:a="middle";break}return a}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,i=r.mirror,a="end";switch(o){case"left":case"right":a="middle";break;case"top":a=i?"start":"end";break;default:a=i?"end":"start";break}return a}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,i=r.y,a=r.width,s=r.height,c=r.orientation,u=r.mirror,f=r.axisLine,d=ct(ct(ct({},Ee(this.props,!1)),Ee(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!u||c==="bottom"&&u);d=ct(ct({},d),{},{x1:o,y1:i+p*s,x2:o+a,y2:i+p*s})}else{var v=+(c==="left"&&!u||c==="right"&&u);d=ct(ct({},d),{},{x1:o+v*a,y1:i,x2:o+v*a,y2:i+s})}return D.createElement("line",ya({},d,{className:Ne("recharts-cartesian-axis-line",Tn(f,"className"))}))}},{key:"renderTicks",value:function(r,o,i){var a=this,s=this.props,c=s.tickLine,u=s.stroke,f=s.tick,d=s.tickFormatter,p=s.unit,v=zb(ct(ct({},this.props),{},{ticks:r}),o,i),b=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),m=Ee(this.props,!1),g=Ee(f,!1),x=ct(ct({},m),{},{fill:"none"},Ee(c,!1)),w=v.map(function(E,A){var S=a.getTickLineCoord(E),N=S.line,_=S.tick,C=ct(ct(ct(ct({textAnchor:b,verticalAnchor:y},m),{},{stroke:"none",fill:u},g),_),{},{index:A,payload:E,visibleTicksCount:v.length,tickFormatter:d});return D.createElement(rt,ya({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},rf(a.props,E,A)),c&&D.createElement("line",ya({},x,N,{className:Ne("recharts-cartesian-axis-tick-line",Tn(c,"className"))})),f&&t.renderTickItem(f,C,"".concat(xe(d)?d(E.value,A):E.value).concat(p||"")))});return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var r=this,o=this.props,i=o.axisLine,a=o.width,s=o.height,c=o.ticksGenerator,u=o.className,f=o.hide;if(f)return null;var d=this.props,p=d.ticks,v=ev(d,wbe),b=p;return xe(c)&&(b=p&&p.length>0?c(this.props):c(v)),a<=0||s<=0||!b||!b.length?null:D.createElement(rt,{className:Ne("recharts-cartesian-axis",u),ref:function(m){r.layerReference=m}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),$t.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,i){var a,s=Ne(o.className,"recharts-cartesian-axis-tick-value");return D.isValidElement(r)?a=D.cloneElement(r,ct(ct({},o),{},{className:s})):xe(r)?a=r(ct(ct({},o),{},{className:s})):a=D.createElement(gf,ya({},o,{className:"recharts-cartesian-axis-tick-value"}),i),a}}])}(h.Component);Wb(ks,"displayName","CartesianAxis");Wb(ks,"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 Tbe=["x1","y1","x2","y2","key"],Pbe=["offset"];function Oi(e){"@babel/helpers - typeof";return Oi=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},Oi(e)}function UN(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 Lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){Ibe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ibe(e,t,n){return t=Rbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rbe(e){var t=kbe(e,"string");return Oi(t)=="symbol"?t:t+""}function kbe(e,t){if(Oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oi(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ui(){return ui=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},ui.apply(this,arguments)}function HN(e,t){if(e==null)return{};var n=Mbe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mbe(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 Dbe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,i=t.y,a=t.width,s=t.height,c=t.ry;return D.createElement("rect",{x:o,y:i,ry:c,width:a,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function xB(e,t){var n;if(D.isValidElement(e))n=D.cloneElement(e,t);else if(xe(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,s=t.key,c=HN(t,Tbe),u=Ee(c,!1);u.offset;var f=HN(u,Pbe);n=D.createElement("line",ui({},f,{x1:r,y1:o,x2:i,y2:a,fill:"none",key:s}))}return n}function $be(e){var t=e.x,n=e.width,r=e.horizontal,o=r===void 0?!0:r,i=e.horizontalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,c){var u=Lt(Lt({},e),{},{x1:t,y1:s,x2:t+n,y2:s,key:"line-".concat(c),index:c});return xB(o,u)});return D.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Lbe(e){var t=e.y,n=e.height,r=e.vertical,o=r===void 0?!0:r,i=e.verticalPoints;if(!o||!i||!i.length)return null;var a=i.map(function(s,c){var u=Lt(Lt({},e),{},{x1:s,y1:t,x2:s,y2:t+n,key:"line-".concat(c),index:c});return xB(o,u)});return D.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Fbe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,i=e.width,a=e.height,s=e.horizontalPoints,c=e.horizontal,u=c===void 0?!0:c;if(!u||!t||!t.length)return null;var f=s.map(function(p){return Math.round(p+o-o)}).sort(function(p,v){return p-v});o!==f[0]&&f.unshift(0);var d=f.map(function(p,v){var b=!f[v+1],y=b?o+a-p:f[v+1]-p;if(y<=0)return null;var m=v%t.length;return D.createElement("rect",{key:"react-".concat(v),y:p,x:r,height:y,width:i,stroke:"none",fill:t[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function Bbe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,s=e.width,c=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var f=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,v){return p-v});i!==f[0]&&f.unshift(0);var d=f.map(function(p,v){var b=!f[v+1],y=b?i+s-p:f[v+1]-p;if(y<=0)return null;var m=v%r.length;return D.createElement("rect",{key:"react-".concat(v),x:p,y:a,width:y,height:c,stroke:"none",fill:r[m],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return D.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Ube=function(t,n){var r=t.xAxis,o=t.width,i=t.height,a=t.offset;return CF(zb(Lt(Lt(Lt({},ks.defaultProps),r),{},{ticks:Mr(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.left,a.left+a.width,n)},Hbe=function(t,n){var r=t.yAxis,o=t.width,i=t.height,a=t.offset;return CF(zb(Lt(Lt(Lt({},ks.defaultProps),r),{},{ticks:Mr(r,!0),viewBox:{x:0,y:0,width:o,height:i}})),a.top,a.top+a.height,n)},ta={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function $g(e){var t,n,r,o,i,a,s=Fb(),c=Bb(),u=O0e(),f=Lt(Lt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ta.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:ta.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:ta.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:ta.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:ta.vertical,verticalFill:(a=e.verticalFill)!==null&&a!==void 0?a:ta.verticalFill,x:K(e.x)?e.x:u.left,y:K(e.y)?e.y:u.top,width:K(e.width)?e.width:u.width,height:K(e.height)?e.height:u.height}),d=f.x,p=f.y,v=f.width,b=f.height,y=f.syncWithTicks,m=f.horizontalValues,g=f.verticalValues,x=_0e(),w=j0e();if(!K(v)||v<=0||!K(b)||b<=0||!K(d)||d!==+d||!K(p)||p!==+p)return null;var E=f.verticalCoordinatesGenerator||Ube,A=f.horizontalCoordinatesGenerator||Hbe,S=f.horizontalPoints,N=f.verticalPoints;if((!S||!S.length)&&xe(A)){var _=m&&m.length,C=A({yAxis:w?Lt(Lt({},w),{},{ticks:_?m:w.ticks}):void 0,width:s,height:c,offset:u},_?!0:y);Fr(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Oi(C),"]")),Array.isArray(C)&&(S=C)}if((!N||!N.length)&&xe(E)){var P=g&&g.length,O=E({xAxis:x?Lt(Lt({},x),{},{ticks:P?g:x.ticks}):void 0,width:s,height:c,offset:u},P?!0:y);Fr(Array.isArray(O),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Oi(O),"]")),Array.isArray(O)&&(N=O)}return D.createElement("g",{className:"recharts-cartesian-grid"},D.createElement(Dbe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),D.createElement($be,ui({},f,{offset:u,horizontalPoints:S,xAxis:x,yAxis:w})),D.createElement(Lbe,ui({},f,{offset:u,verticalPoints:N,xAxis:x,yAxis:w})),D.createElement(Fbe,ui({},f,{horizontalPoints:S})),D.createElement(Bbe,ui({},f,{verticalPoints:N})))}$g.displayName="CartesianGrid";var zbe=["type","layout","connectNulls","ref"],Wbe=["key"];function as(e){"@babel/helpers - typeof";return as=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},as(e)}function zN(e,t){if(e==null)return{};var n=Gbe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gbe(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 _l(){return _l=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},_l.apply(this,arguments)}function WN(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 nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(n),!0).forEach(function(r){Vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function na(e){return qbe(e)||Ybe(e)||Kbe(e)||Vbe()}function Vbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
555
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kbe(e,t){if(e){if(typeof e=="string")return Lg(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 Lg(e,t)}}function Ybe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qbe(e){if(Array.isArray(e))return Lg(e)}function Lg(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 Xbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GN(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,wB(r.key),r)}}function Zbe(e,t,n){return t&&GN(e.prototype,t),n&&GN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qbe(e,t,n){return t=Qf(t),Jbe(e,bB()?Reflect.construct(t,n||[],Qf(e).constructor):t.apply(e,n))}function Jbe(e,t){if(t&&(as(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 bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qf(e)}function twe(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&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Fg(e,t)}function Vn(e,t,n){return t=wB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wB(e){var t=nwe(e,"string");return as(t)=="symbol"?t:t+""}function nwe(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var su=function(e){function t(){var n;Xbe(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=Qbe(this,t,[].concat(o)),Vn(n,"state",{isAnimationFinished:!0,totalLength:0}),Vn(n,"generateSimpleStrokeDasharray",function(a,s){return"".concat(s,"px ").concat(a-s,"px")}),Vn(n,"getStrokeDasharray",function(a,s,c){var u=c.reduce(function(g,x){return g+x});if(!u)return n.generateSimpleStrokeDasharray(s,a);for(var f=Math.floor(a/u),d=a%u,p=s-a,v=[],b=0,y=0;b<c.length;y+=c[b],++b)if(y+c[b]>d){v=[].concat(na(c.slice(0,b)),[d-y]);break}var m=v.length%2===0?[0,p]:[p];return[].concat(na(t.repeat(c,f)),na(v),m).map(function(g){return"".concat(g,"px")}).join(", ")}),Vn(n,"id",eu("recharts-line-")),Vn(n,"pathRef",function(a){n.mainCurve=a}),Vn(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Vn(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return twe(t,e),Zbe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,s=i.xAxis,c=i.yAxis,u=i.layout,f=i.children,d=Pn(f,au);if(!d)return null;var p=function(y,m){return{x:y.x,y:y.y,value:y.value,errorVal:hn(y.payload,m)}},v={clipPath:r?"url(#clipPath-".concat(o,")"):null};return D.createElement(rt,v,d.map(function(b){return D.cloneElement(b,{key:"bar-".concat(b.props.dataKey),data:a,xAxis:s,yAxis:c,layout:u,dataPointFormatter:p})}))}},{key:"renderDots",value:function(r,o,i){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.dot,u=s.points,f=s.dataKey,d=Ee(this.props,!1),p=Ee(c,!0),v=u.map(function(y,m){var g=nn(nn(nn({key:"dot-".concat(m),r:3},d),p),{},{index:m,cx:y.x,cy:y.y,value:y.value,dataKey:f,payload:y.payload,points:u});return t.renderDotItem(c,g)}),b={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(i,")"):null};return D.createElement(rt,_l({className:"recharts-line-dots",key:"dots"},b),v)}},{key:"renderCurveStatically",value:function(r,o,i,a){var s=this.props,c=s.type,u=s.layout,f=s.connectNulls;s.ref;var d=zN(s,zbe),p=nn(nn(nn({},Ee(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:o?"url(#clipPath-".concat(i,")"):null,points:r},a),{},{type:c,layout:u,connectNulls:f});return D.createElement(mg,_l({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,o){var i=this,a=this.props,s=a.points,c=a.strokeDasharray,u=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,p=a.animationEasing,v=a.animationId,b=a.animateNewValues,y=a.width,m=a.height,g=this.state,x=g.prevPoints,w=g.totalLength;return D.createElement(Zr,{begin:f,duration:d,isActive:u,easing:p,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(E){var A=E.t;if(x){var S=x.length/s.length,N=s.map(function(R,L){var j=Math.floor(L*S);if(x[j]){var T=x[j],I=Yn(T.x,R.x),$=Yn(T.y,R.y);return nn(nn({},R),{},{x:I(A),y:$(A)})}if(b){var k=Yn(y*2,R.x),M=Yn(m/2,R.y);return nn(nn({},R),{},{x:k(A),y:M(A)})}return nn(nn({},R),{},{x:R.x,y:R.y})});return i.renderCurveStatically(N,r,o)}var _=Yn(0,w),C=_(A),P;if(c){var O="".concat(c).split(/[,\s]+/gim).map(function(R){return parseFloat(R)});P=i.getStrokeDasharray(C,w,O)}else P=i.generateSimpleStrokeDasharray(w,C);return i.renderCurveStatically(s,r,o,{strokeDasharray:P})})}},{key:"renderCurve",value:function(r,o){var i=this.props,a=i.points,s=i.isAnimationActive,c=this.state,u=c.prevPoints,f=c.totalLength;return s&&a&&a.length&&(!u&&f>0||!bh(u,a))?this.renderCurveWithAnimation(r,o):this.renderCurveStatically(a,r,o)}},{key:"render",value:function(){var r,o=this.props,i=o.hide,a=o.dot,s=o.points,c=o.className,u=o.xAxis,f=o.yAxis,d=o.top,p=o.left,v=o.width,b=o.height,y=o.isAnimationActive,m=o.id;if(i||!s||!s.length)return null;var g=this.state.isAnimationFinished,x=s.length===1,w=Ne("recharts-line",c),E=u&&u.allowDataOverflow,A=f&&f.allowDataOverflow,S=E||A,N=be(m)?this.id:m,_=(r=Ee(a,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},C=_.r,P=C===void 0?3:C,O=_.strokeWidth,R=O===void 0?2:O,L=pJ(a)?a:{},j=L.clipDot,T=j===void 0?!0:j,I=P*2+R;return D.createElement(rt,{className:w},E||A?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(N)},D.createElement("rect",{x:E?p:p-v/2,y:A?d:d-b/2,width:E?v:v*2,height:A?b:b*2})),!T&&D.createElement("clipPath",{id:"clipPath-dots-".concat(N)},D.createElement("rect",{x:p-I/2,y:d-I/2,width:v+I,height:b+I}))):null,!x&&this.renderCurve(S,N),this.renderErrorBar(S,N),(x||a)&&this.renderDots(S,T,N),(!y||g)&&Io.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.animationId!==o.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:o.curPoints}:r.points!==o.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,o){for(var i=r.length%2!==0?[].concat(na(r),[0]):r,a=[],s=0;s<o;++s)a=[].concat(na(a),na(i));return a}},{key:"renderDotItem",value:function(r,o){var i;if(D.isValidElement(r))i=D.cloneElement(r,o);else if(xe(r))i=r(o);else{var a=o.key,s=zN(o,Wbe),c=Ne("recharts-line-dot",typeof r!="boolean"?r.className:"");i=D.createElement(Mb,_l({key:a},s,{className:c}))}return i}}])}(h.PureComponent);Vn(su,"displayName","Line");Vn(su,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ts.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Vn(su,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,c=e.displayedData,u=e.offset,f=t.layout,d=c.map(function(p,v){var b=hn(p,a);return f==="horizontal"?{x:CE({axis:n,ticks:o,bandSize:s,entry:p,index:v}),y:be(b)?null:r.scale(b),value:b,payload:p}:{x:be(b)?null:n.scale(b),y:CE({axis:r,ticks:i,bandSize:s,entry:p,index:v}),value:b,payload:p}});return nn({points:d,layout:f},u)});function ss(e){"@babel/helpers - typeof";return ss=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},ss(e)}function rwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function owe(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,EB(r.key),r)}}function iwe(e,t,n){return t&&owe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function awe(e,t,n){return t=Jf(t),swe(e,SB()?Reflect.construct(t,n||[],Jf(e).constructor):t.apply(e,n))}function swe(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lwe(e)}function lwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SB=function(){return!!e})()}function Jf(e){return Jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jf(e)}function cwe(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&&Bg(e,t)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Bg(e,t)}function AB(e,t,n){return t=EB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EB(e){var t=uwe(e,"string");return ss(t)=="symbol"?t:t+""}function uwe(e,t){if(ss(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ss(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ug(){return Ug=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},Ug.apply(this,arguments)}function dwe(e){var t=e.xAxisId,n=Fb(),r=Bb(),o=lB(t);return o==null?null:h.createElement(ks,Ug({},o,{className:Ne("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(a){return Mr(a,!0)}}))}var ls=function(e){function t(){return rwe(this,t),awe(this,t,arguments)}return cwe(t,e),iwe(t,[{key:"render",value:function(){return h.createElement(dwe,this.props)}}])}(h.Component);AB(ls,"displayName","XAxis");AB(ls,"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 cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}function fwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pwe(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,jB(r.key),r)}}function hwe(e,t,n){return t&&pwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mwe(e,t,n){return t=ep(t),vwe(e,NB()?Reflect.construct(t,n||[],ep(e).constructor):t.apply(e,n))}function vwe(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ywe(e)}function ywe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NB=function(){return!!e})()}function ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ep(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&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Hg(e,t)}function _B(e,t,n){return t=jB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jB(e){var t=xwe(e,"string");return cs(t)=="symbol"?t:t+""}function xwe(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zg(){return zg=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},zg.apply(this,arguments)}var bwe=function(t){var n=t.yAxisId,r=Fb(),o=Bb(),i=cB(n);return i==null?null:h.createElement(ks,zg({},i,{className:Ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(s){return Mr(s,!0)}}))},us=function(e){function t(){return fwe(this,t),mwe(this,t,arguments)}return gwe(t,e),hwe(t,[{key:"render",value:function(){return h.createElement(bwe,this.props)}}])}(h.Component);_B(us,"displayName","YAxis");_B(us,"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 VN(e){return Ewe(e)||Awe(e)||Swe(e)||wwe()}function wwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
556
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Swe(e,t){if(e){if(typeof e=="string")return Wg(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 Wg(e,t)}}function Awe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ewe(e){if(Array.isArray(e))return Wg(e)}function Wg(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 Gg=function(t,n,r,o,i){var a=Pn(t,Hb),s=Pn(t,jh),c=[].concat(VN(a),VN(s)),u=Pn(t,Oh),f="".concat(o,"Id"),d=o[0],p=n;if(c.length&&(p=c.reduce(function(y,m){if(m.props[f]===r&&gr(m.props,"extendDomain")&&K(m.props[d])){var g=m.props[d];return[Math.min(y[0],g),Math.max(y[1],g)]}return y},p)),u.length){var v="".concat(d,"1"),b="".concat(d,"2");p=u.reduce(function(y,m){if(m.props[f]===r&&gr(m.props,"extendDomain")&&K(m.props[v])&&K(m.props[b])){var g=m.props[v],x=m.props[b];return[Math.min(y[0],g,x),Math.max(y[1],g,x)]}return y},p)}return i&&i.length&&(p=i.reduce(function(y,m){return K(m)?[Math.min(y[0],m),Math.max(y[1],m)]:y},p)),p},CB={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,d,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var v=new o(f,d||c,p),b=n?n+u:u;return c._events[b]?c._events[b].fn?c._events[b]=[c._events[b],v]:c._events[b].push(v):(c._events[b]=v,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)t.call(f,d)&&u.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=n?n+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var p=0,v=d.length,b=new Array(v);p<v;p++)b[p]=d[p].fn;return b},s.prototype.listenerCount=function(u){var f=n?n+u:u,d=this._events[f];return d?d.fn?1:d.length:0},s.prototype.emit=function(u,f,d,p,v,b){var y=n?n+u:u;if(!this._events[y])return!1;var m=this._events[y],g=arguments.length,x,w;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,f),!0;case 3:return m.fn.call(m.context,f,d),!0;case 4:return m.fn.call(m.context,f,d,p),!0;case 5:return m.fn.call(m.context,f,d,p,v),!0;case 6:return m.fn.call(m.context,f,d,p,v,b),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];m.fn.apply(m.context,x)}else{var E=m.length,A;for(w=0;w<E;w++)switch(m[w].once&&this.removeListener(u,m[w].fn,void 0,!0),g){case 1:m[w].fn.call(m[w].context);break;case 2:m[w].fn.call(m[w].context,f);break;case 3:m[w].fn.call(m[w].context,f,d);break;case 4:m[w].fn.call(m[w].context,f,d,p);break;default:if(!x)for(A=1,x=new Array(g-1);A<g;A++)x[A-1]=arguments[A];m[w].fn.apply(m[w].context,x)}}return!0},s.prototype.on=function(u,f,d){return i(this,u,f,d,!1)},s.prototype.once=function(u,f,d){return i(this,u,f,d,!0)},s.prototype.removeListener=function(u,f,d,p){var v=n?n+u:u;if(!this._events[v])return this;if(!f)return a(this,v),this;var b=this._events[v];if(b.fn)b.fn===f&&(!p||b.once)&&(!d||b.context===d)&&a(this,v);else{for(var y=0,m=[],g=b.length;y<g;y++)(b[y].fn!==f||p&&!b[y].once||d&&b[y].context!==d)&&m.push(b[y]);m.length?this._events[v]=m.length===1?m[0]:m:a(this,v)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(CB);var Nwe=CB.exports;const _we=Re(Nwe);var tv=new _we,nv="recharts.syncMouseEvents";function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function jwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cwe(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,OB(r.key),r)}}function Owe(e,t,n){return t&&Cwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rv(e,t,n){return t=OB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e){var t=Twe(e,"string");return kc(t)=="symbol"?t:t+""}function Twe(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pwe=function(){function e(){jwe(this,e),rv(this,"activeIndex",0),rv(this,"coordinateList",[]),rv(this,"layout","horizontal")}return Owe(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,i=o===void 0?null:o,a=n.container,s=a===void 0?null:a,c=n.layout,u=c===void 0?null:c,f=n.offset,d=f===void 0?null:f,p=n.mouseHandlerCallback,v=p===void 0?null:p;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=v??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(),i=o.x,a=o.y,s=o.height,c=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+c+u,p=a+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:d,pageY:p})}}}])}();function Iwe(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],o=e==null?void 0:e[1];if(r&&o&&K(r)&&K(o))return!0}return!1}function Rwe(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 TB(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,i=e.endAngle,a=Nt(t,n,r,o),s=Nt(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}function kwe(e,t,n){var r,o,i,a;if(e==="horizontal")r=t.x,i=r,o=n.top,a=n.top+n.height;else if(e==="vertical")o=t.y,a=o,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,c=t.cy,u=t.innerRadius,f=t.outerRadius,d=t.angle,p=Nt(s,c,u,d),v=Nt(s,c,f,d);r=p.x,o=p.y,i=v.x,a=v.y}else return TB(t);return[{x:r,y:o},{x:i,y:a}]}function Mc(e){"@babel/helpers - typeof";return Mc=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},Mc(e)}function KN(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 qu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KN(Object(n),!0).forEach(function(r){Mwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mwe(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=$we(e,"string");return Mc(t)=="symbol"?t:t+""}function $we(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lwe(e){var t,n,r=e.element,o=e.tooltipEventType,i=e.isActive,a=e.activeCoordinate,s=e.activePayload,c=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,p=e.chartName,v=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!v||!i||!a||p!=="ScatterChart"&&o!=="axis")return null;var b,y=mg;if(p==="ScatterChart")b=a,y=Lye;else if(p==="BarChart")b=Rwe(d,a,c,f),y=kb;else if(d==="radial"){var m=TB(a),g=m.cx,x=m.cy,w=m.radius,E=m.startAngle,A=m.endAngle;b={cx:g,cy:x,startAngle:E,endAngle:A,innerRadius:w,outerRadius:w},y=RF}else b={points:kwe(d,a,c)},y=mg;var S=qu(qu(qu(qu({stroke:"#ccc",pointerEvents:"none"},c),b),Ee(v,!1)),{},{payload:s,payloadIndex:u,className:Ne("recharts-tooltip-cursor",v.className)});return h.isValidElement(v)?h.cloneElement(v,S):h.createElement(y,S)}var Fwe=["item"],Bwe=["children","className","width","height","style","compact","title","desc"];function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function ga(){return ga=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},ga.apply(this,arguments)}function YN(e,t){return zwe(e)||Hwe(e,t)||IB(e,t)||Uwe()}function Uwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
557
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hwe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function zwe(e){if(Array.isArray(e))return e}function qN(e,t){if(e==null)return{};var n=Wwe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wwe(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 Gwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vwe(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,RB(r.key),r)}}function Kwe(e,t,n){return t&&Vwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ywe(e,t,n){return t=tp(t),qwe(e,PB()?Reflect.construct(t,n||[],tp(e).constructor):t.apply(e,n))}function qwe(e,t){if(t&&(ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xwe(e)}function Xwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PB=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}function Zwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vg(e,t)}function Vg(e,t){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Vg(e,t)}function fs(e){return eSe(e)||Jwe(e)||IB(e)||Qwe()}function Qwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
558
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IB(e,t){if(e){if(typeof e=="string")return Kg(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 Kg(e,t)}}function Jwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eSe(e){if(Array.isArray(e))return Kg(e)}function Kg(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 XN(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 H(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XN(Object(n),!0).forEach(function(r){ce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ce(e,t,n){return t=RB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RB(e){var t=tSe(e,"string");return ds(t)=="symbol"?t:t+""}function tSe(e,t){if(ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nSe={xAxis:["bottom","top"],yAxis:["left","right"]},rSe={width:"100%",height:"100%"},kB={x:0,y:0};function Xu(e){return e}var oSe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},iSe=function(t,n,r,o){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:o.y};if(t==="vertical")return{x:o.x,y:i.coordinate};if(t==="centric"){var a=i.coordinate,s=o.radius;return H(H(H({},o),Nt(o.cx,o.cy,s,a)),{},{angle:a,radius:s})}var c=i.coordinate,u=o.angle;return H(H(H({},o),Nt(o.cx,o.cy,c,u)),{},{angle:u,radius:c})}return kB},Th=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,i=n.dataEndIndex,a=(r??[]).reduce(function(s,c){var u=c.props.data;return u&&u.length?[].concat(fs(s),fs(u)):s},[]);return a.length>0?a:t&&t.length&&K(o)&&K(i)?t.slice(o,i+1):[]};function MB(e){return e==="number"?[0,"auto"]:void 0}var Yg=function(t,n,r,o){var i=t.graphicalItems,a=t.tooltipAxis,s=Th(n,t);return r<0||!i||!i.length||r>=s.length?null:i.reduce(function(c,u){var f,d=(f=u.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(a.dataKey&&!a.allowDuplicatedCategory){var v=d===void 0?s:d;p=tf(v,a.dataKey,o)}else p=d&&d[r]||s[r];return p?[].concat(fs(c),[TF(u,p)]):c},[])},ZN=function(t,n,r,o){var i=o||{x:t.chartX,y:t.chartY},a=oSe(i,r),s=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,f=vhe(a,s,u,c);if(f>=0&&u){var d=u[f]&&u[f].value,p=Yg(t,n,f,d),v=iSe(r,s,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:p,activeCoordinate:v}}return null},aSe=function(t,n){var r=n.axes,o=n.graphicalItems,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,p=t.stackOffset,v=jF(f,i);return r.reduce(function(b,y){var m,g=y.type.defaultProps!==void 0?H(H({},y.type.defaultProps),y.props):y.props,x=g.type,w=g.dataKey,E=g.allowDataOverflow,A=g.allowDuplicatedCategory,S=g.scale,N=g.ticks,_=g.includeHidden,C=g[a];if(b[C])return b;var P=Th(t.data,{graphicalItems:o.filter(function(z){var J,ue=a in z.props?z.props[a]:(J=z.type.defaultProps)===null||J===void 0?void 0:J[a];return ue===C}),dataStartIndex:c,dataEndIndex:u}),O=P.length,R,L,j;Iwe(g.domain,E,x)&&(R=ug(g.domain,null,E),v&&(x==="number"||S!=="auto")&&(j=El(P,w,"category")));var T=MB(x);if(!R||R.length===0){var I,$=(I=g.domain)!==null&&I!==void 0?I:T;if(w){if(R=El(P,w,x),x==="category"&&v){var k=rJ(R);A&&k?(L=R,R=Hf(0,O)):A||(R=IE($,R,y).reduce(function(z,J){return z.indexOf(J)>=0?z:[].concat(fs(z),[J])},[]))}else if(x==="category")A?R=R.filter(function(z){return z!==""&&!be(z)}):R=IE($,R,y).reduce(function(z,J){return z.indexOf(J)>=0||J===""||be(J)?z:[].concat(fs(z),[J])},[]);else if(x==="number"){var M=whe(P,o.filter(function(z){var J,ue,_e=a in z.props?z.props[a]:(J=z.type.defaultProps)===null||J===void 0?void 0:J[a],Ae="hide"in z.props?z.props.hide:(ue=z.type.defaultProps)===null||ue===void 0?void 0:ue.hide;return _e===C&&(_||!Ae)}),w,i,f);M&&(R=M)}v&&(x==="number"||S!=="auto")&&(j=El(P,w,"category"))}else v?R=Hf(0,O):s&&s[C]&&s[C].hasStack&&x==="number"?R=p==="expand"?[0,1]:OF(s[C].stackGroups,c,u):R=_F(P,o.filter(function(z){var J=a in z.props?z.props[a]:z.type.defaultProps[a],ue="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return J===C&&(_||!ue)}),x,f,!0);if(x==="number")R=Gg(d,R,C,i,N),$&&(R=ug($,R,E));else if(x==="category"&&$){var B=$,W=R.every(function(z){return B.indexOf(z)>=0});W&&(R=B)}}return H(H({},b),{},ce({},C,H(H({},g),{},{axisType:i,domain:R,categoricalDomain:j,duplicateDomain:L,originalDomain:(m=g.domain)!==null&&m!==void 0?m:T,isCategorical:v,layout:f})))},{})},sSe=function(t,n){var r=n.graphicalItems,o=n.Axis,i=n.axisType,a=n.axisIdKey,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,d=t.children,p=Th(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),v=p.length,b=jF(f,i),y=-1;return r.reduce(function(m,g){var x=g.type.defaultProps!==void 0?H(H({},g.type.defaultProps),g.props):g.props,w=x[a],E=MB("number");if(!m[w]){y++;var A;return b?A=Hf(0,v):s&&s[w]&&s[w].hasStack?(A=OF(s[w].stackGroups,c,u),A=Gg(d,A,w,i)):(A=ug(E,_F(p,r.filter(function(S){var N,_,C=a in S.props?S.props[a]:(N=S.type.defaultProps)===null||N===void 0?void 0:N[a],P="hide"in S.props?S.props.hide:(_=S.type.defaultProps)===null||_===void 0?void 0:_.hide;return C===w&&!P}),"number",f),o.defaultProps.allowDataOverflow),A=Gg(d,A,w,i)),H(H({},m),{},ce({},w,H(H({axisType:i},o.defaultProps),{},{hide:!0,orientation:Tn(nSe,"".concat(i,".").concat(y%2),null),domain:A,originalDomain:E,isCategorical:b,layout:f})))}return m},{})},lSe=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,i=n.AxisComp,a=n.graphicalItems,s=n.stackGroups,c=n.dataStartIndex,u=n.dataEndIndex,f=t.children,d="".concat(o,"Id"),p=Pn(f,i),v={};return p&&p.length?v=aSe(t,{axes:p,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:u}):a&&a.length&&(v=sSe(t,{Axis:i,graphicalItems:a,axisType:o,axisIdKey:d,stackGroups:s,dataStartIndex:c,dataEndIndex:u})),v},cSe=function(t){var n=vo(t),r=Mr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:sb(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:If(n,r)}},QN=function(t){var n=t.children,r=t.defaultShowTooltip,o=an(n,es),i=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(i=o.props.startIndex),o.props.endIndex>=0&&(a=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},uSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Lr(n&&n.type);return r&&r.indexOf("Bar")>=0})},JN=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"}},dSe=function(t,n){var r=t.props,o=t.graphicalItems,i=t.xAxisMap,a=i===void 0?{}:i,s=t.yAxisMap,c=s===void 0?{}:s,u=r.width,f=r.height,d=r.children,p=r.margin||{},v=an(d,es),b=an(d,pi),y=Object.keys(c).reduce(function(A,S){var N=c[S],_=N.orientation;return!N.mirror&&!N.hide?H(H({},A),{},ce({},_,A[_]+N.width)):A},{left:p.left||0,right:p.right||0}),m=Object.keys(a).reduce(function(A,S){var N=a[S],_=N.orientation;return!N.mirror&&!N.hide?H(H({},A),{},ce({},_,Tn(A,"".concat(_))+N.height)):A},{top:p.top||0,bottom:p.bottom||0}),g=H(H({},m),y),x=g.bottom;v&&(g.bottom+=v.props.height||es.defaultProps.height),b&&n&&(g=xhe(g,o,r,n));var w=u-g.left-g.right,E=f-g.top-g.bottom;return H(H({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(E,0)})},fSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},DB=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,i=o===void 0?"axis":o,a=t.validateTooltipEventTypes,s=a===void 0?["axis"]:a,c=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,p=function(g,x){var w=x.graphicalItems,E=x.stackGroups,A=x.offset,S=x.updateId,N=x.dataStartIndex,_=x.dataEndIndex,C=g.barSize,P=g.layout,O=g.barGap,R=g.barCategoryGap,L=g.maxBarSize,j=JN(P),T=j.numericAxisName,I=j.cateAxisName,$=uSe(w),k=[];return w.forEach(function(M,B){var W=Th(g.data,{graphicalItems:[M],dataStartIndex:N,dataEndIndex:_}),z=M.type.defaultProps!==void 0?H(H({},M.type.defaultProps),M.props):M.props,J=z.dataKey,ue=z.maxBarSize,_e=z["".concat(T,"Id")],Ae=z["".concat(I,"Id")],re={},he=c.reduce(function(qo,Xo){var Bh=x["".concat(Xo.axisType,"Map")],Jb=z["".concat(Xo.axisType,"Id")];Bh&&Bh[Jb]||Xo.axisType==="zAxis"||Ci();var ew=Bh[Jb];return H(H({},qo),{},ce(ce({},Xo.axisType,ew),"".concat(Xo.axisType,"Ticks"),Mr(ew)))},re),G=he[I],Z=he["".concat(I,"Ticks")],ee=E&&E[_e]&&E[_e].hasStack&&Rhe(M,E[_e].stackGroups),U=Lr(M.type).indexOf("Bar")>=0,Se=If(G,Z),fe=[],Be=$&&yhe({barSize:C,stackGroups:E,totalSize:fSe(he,I)});if(U){var Ue,ot,ir=be(ue)?L:ue,Ln=(Ue=(ot=If(G,Z,!0))!==null&&ot!==void 0?ot:ir)!==null&&Ue!==void 0?Ue:0;fe=ghe({barGap:O,barCategoryGap:R,bandSize:Ln!==Se?Ln:Se,sizeList:Be[Ae],maxBarSize:ir}),Ln!==Se&&(fe=fe.map(function(qo){return H(H({},qo),{},{position:H(H({},qo.position),{},{offset:qo.position.offset-Ln/2})})}))}var cu=M&&M.type&&M.type.getComposedData;cu&&k.push({props:H(H({},cu(H(H({},he),{},{displayedData:W,props:g,dataKey:J,item:M,bandSize:Se,barPosition:fe,offset:A,stackedData:ee,layout:P,dataStartIndex:N,dataEndIndex:_}))),{},ce(ce(ce({key:M.key||"item-".concat(B)},T,he[T]),I,he[I]),"animationId",S)),childIndex:vJ(M,g.children),item:M})}),k},v=function(g,x){var w=g.props,E=g.dataStartIndex,A=g.dataEndIndex,S=g.updateId;if(!EA({props:w}))return null;var N=w.children,_=w.layout,C=w.stackOffset,P=w.data,O=w.reverseStackOrder,R=JN(_),L=R.numericAxisName,j=R.cateAxisName,T=Pn(N,r),I=The(P,T,"".concat(L,"Id"),"".concat(j,"Id"),C,O),$=c.reduce(function(z,J){var ue="".concat(J.axisType,"Map");return H(H({},z),{},ce({},ue,lSe(w,H(H({},J),{},{graphicalItems:T,stackGroups:J.axisType===L&&I,dataStartIndex:E,dataEndIndex:A}))))},{}),k=dSe(H(H({},$),{},{props:w,graphicalItems:T}),x==null?void 0:x.legendBBox);Object.keys($).forEach(function(z){$[z]=f(w,$[z],k,z.replace("Map",""),n)});var M=$["".concat(j,"Map")],B=cSe(M),W=p(w,H(H({},$),{},{dataStartIndex:E,dataEndIndex:A,updateId:S,graphicalItems:T,stackGroups:I,offset:k}));return H(H({formattedGraphicalItems:W,graphicalItems:T,offset:k,stackGroups:I},B),$)},b=function(m){function g(x){var w,E,A;return Gwe(this,g),A=Ywe(this,g,[x]),ce(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ce(A,"accessibilityManager",new Pwe),ce(A,"handleLegendBBoxUpdate",function(S){if(S){var N=A.state,_=N.dataStartIndex,C=N.dataEndIndex,P=N.updateId;A.setState(H({legendBBox:S},v({props:A.props,dataStartIndex:_,dataEndIndex:C,updateId:P},H(H({},A.state),{},{legendBBox:S}))))}}),ce(A,"handleReceiveSyncEvent",function(S,N,_){if(A.props.syncId===S){if(_===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(N)}}),ce(A,"handleBrushChange",function(S){var N=S.startIndex,_=S.endIndex;if(N!==A.state.dataStartIndex||_!==A.state.dataEndIndex){var C=A.state.updateId;A.setState(function(){return H({dataStartIndex:N,dataEndIndex:_},v({props:A.props,dataStartIndex:N,dataEndIndex:_,updateId:C},A.state))}),A.triggerSyncEvent({dataStartIndex:N,dataEndIndex:_})}}),ce(A,"handleMouseEnter",function(S){var N=A.getMouseInfo(S);if(N){var _=H(H({},N),{},{isTooltipActive:!0});A.setState(_),A.triggerSyncEvent(_);var C=A.props.onMouseEnter;xe(C)&&C(_,S)}}),ce(A,"triggeredAfterMouseMove",function(S){var N=A.getMouseInfo(S),_=N?H(H({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(_),A.triggerSyncEvent(_);var C=A.props.onMouseMove;xe(C)&&C(_,S)}),ce(A,"handleItemMouseEnter",function(S){A.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ce(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),ce(A,"handleMouseMove",function(S){S.persist(),A.throttleTriggeredAfterMouseMove(S)}),ce(A,"handleMouseLeave",function(S){A.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};A.setState(N),A.triggerSyncEvent(N);var _=A.props.onMouseLeave;xe(_)&&_(N,S)}),ce(A,"handleOuterEvent",function(S){var N=mJ(S),_=Tn(A.props,"".concat(N));if(N&&xe(_)){var C,P;/.*touch.*/i.test(N)?P=A.getMouseInfo(S.changedTouches[0]):P=A.getMouseInfo(S),_((C=P)!==null&&C!==void 0?C:{},S)}}),ce(A,"handleClick",function(S){var N=A.getMouseInfo(S);if(N){var _=H(H({},N),{},{isTooltipActive:!0});A.setState(_),A.triggerSyncEvent(_);var C=A.props.onClick;xe(C)&&C(_,S)}}),ce(A,"handleMouseDown",function(S){var N=A.props.onMouseDown;if(xe(N)){var _=A.getMouseInfo(S);N(_,S)}}),ce(A,"handleMouseUp",function(S){var N=A.props.onMouseUp;if(xe(N)){var _=A.getMouseInfo(S);N(_,S)}}),ce(A,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ce(A,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&A.handleMouseDown(S.changedTouches[0])}),ce(A,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&A.handleMouseUp(S.changedTouches[0])}),ce(A,"handleDoubleClick",function(S){var N=A.props.onDoubleClick;if(xe(N)){var _=A.getMouseInfo(S);N(_,S)}}),ce(A,"handleContextMenu",function(S){var N=A.props.onContextMenu;if(xe(N)){var _=A.getMouseInfo(S);N(_,S)}}),ce(A,"triggerSyncEvent",function(S){A.props.syncId!==void 0&&tv.emit(nv,A.props.syncId,S,A.eventEmitterSymbol)}),ce(A,"applySyncEvent",function(S){var N=A.props,_=N.layout,C=N.syncMethod,P=A.state.updateId,O=S.dataStartIndex,R=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)A.setState(H({dataStartIndex:O,dataEndIndex:R},v({props:A.props,dataStartIndex:O,dataEndIndex:R,updateId:P},A.state)));else if(S.activeTooltipIndex!==void 0){var L=S.chartX,j=S.chartY,T=S.activeTooltipIndex,I=A.state,$=I.offset,k=I.tooltipTicks;if(!$)return;if(typeof C=="function")T=C(k,S);else if(C==="value"){T=-1;for(var M=0;M<k.length;M++)if(k[M].value===S.activeLabel){T=M;break}}var B=H(H({},$),{},{x:$.left,y:$.top}),W=Math.min(L,B.x+B.width),z=Math.min(j,B.y+B.height),J=k[T]&&k[T].value,ue=Yg(A.state,A.props.data,T),_e=k[T]?{x:_==="horizontal"?k[T].coordinate:W,y:_==="horizontal"?z:k[T].coordinate}:kB;A.setState(H(H({},S),{},{activeLabel:J,activeCoordinate:_e,activePayload:ue,activeTooltipIndex:T}))}else A.setState(S)}),ce(A,"renderCursor",function(S){var N,_=A.state,C=_.isTooltipActive,P=_.activeCoordinate,O=_.activePayload,R=_.offset,L=_.activeTooltipIndex,j=_.tooltipAxisBandSize,T=A.getTooltipEventType(),I=(N=S.props.active)!==null&&N!==void 0?N:C,$=A.props.layout,k=S.key||"_recharts-cursor";return D.createElement(Lwe,{key:k,activeCoordinate:P,activePayload:O,activeTooltipIndex:L,chartName:n,element:S,isActive:I,layout:$,offset:R,tooltipAxisBandSize:j,tooltipEventType:T})}),ce(A,"renderPolarAxis",function(S,N,_){var C=Tn(S,"type.axisType"),P=Tn(A.state,"".concat(C,"Map")),O=S.type.defaultProps,R=O!==void 0?H(H({},O),S.props):S.props,L=P&&P[R["".concat(C,"Id")]];return h.cloneElement(S,H(H({},L),{},{className:Ne(C,L.className),key:S.key||"".concat(N,"-").concat(_),ticks:Mr(L,!0)}))}),ce(A,"renderPolarGrid",function(S){var N=S.props,_=N.radialLines,C=N.polarAngles,P=N.polarRadius,O=A.state,R=O.radiusAxisMap,L=O.angleAxisMap,j=vo(R),T=vo(L),I=T.cx,$=T.cy,k=T.innerRadius,M=T.outerRadius;return h.cloneElement(S,{polarAngles:Array.isArray(C)?C:Mr(T,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(P)?P:Mr(j,!0).map(function(B){return B.coordinate}),cx:I,cy:$,innerRadius:k,outerRadius:M,key:S.key||"polar-grid",radialLines:_})}),ce(A,"renderLegend",function(){var S=A.state.formattedGraphicalItems,N=A.props,_=N.children,C=N.width,P=N.height,O=A.props.margin||{},R=C-(O.left||0)-(O.right||0),L=EF({children:_,formattedGraphicalItems:S,legendWidth:R,legendContent:u});if(!L)return null;var j=L.item,T=qN(L,Fwe);return h.cloneElement(j,H(H({},T),{},{chartWidth:C,chartHeight:P,margin:O,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),ce(A,"renderTooltip",function(){var S,N=A.props,_=N.children,C=N.accessibilityLayer,P=an(_,Wn);if(!P)return null;var O=A.state,R=O.isTooltipActive,L=O.activeCoordinate,j=O.activePayload,T=O.activeLabel,I=O.offset,$=(S=P.props.active)!==null&&S!==void 0?S:R;return h.cloneElement(P,{viewBox:H(H({},I),{},{x:I.left,y:I.top}),active:$,label:T,payload:$?j:[],coordinate:L,accessibilityLayer:C})}),ce(A,"renderBrush",function(S){var N=A.props,_=N.margin,C=N.data,P=A.state,O=P.offset,R=P.dataStartIndex,L=P.dataEndIndex,j=P.updateId;return h.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Gu(A.handleBrushChange,S.props.onChange),data:C,x:K(S.props.x)?S.props.x:O.left,y:K(S.props.y)?S.props.y:O.top+O.height+O.brushBottom-(_.bottom||0),width:K(S.props.width)?S.props.width:O.width,startIndex:R,endIndex:L,updateId:"brush-".concat(j)})}),ce(A,"renderReferenceElement",function(S,N,_){if(!S)return null;var C=A,P=C.clipPathId,O=A.state,R=O.xAxisMap,L=O.yAxisMap,j=O.offset,T=S.type.defaultProps||{},I=S.props,$=I.xAxisId,k=$===void 0?T.xAxisId:$,M=I.yAxisId,B=M===void 0?T.yAxisId:M;return h.cloneElement(S,{key:S.key||"".concat(N,"-").concat(_),xAxis:R[k],yAxis:L[B],viewBox:{x:j.left,y:j.top,width:j.width,height:j.height},clipPathId:P})}),ce(A,"renderActivePoints",function(S){var N=S.item,_=S.activePoint,C=S.basePoint,P=S.childIndex,O=S.isRange,R=[],L=N.props.key,j=N.item.type.defaultProps!==void 0?H(H({},N.item.type.defaultProps),N.item.props):N.item.props,T=j.activeDot,I=j.dataKey,$=H(H({index:P,dataKey:I,cx:_.x,cy:_.y,r:4,fill:Rb(N.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},Ee(T,!1)),nf(T));return R.push(g.renderActiveDot(T,$,"".concat(L,"-activePoint-").concat(P))),C?R.push(g.renderActiveDot(T,H(H({},$),{},{cx:C.x,cy:C.y}),"".concat(L,"-basePoint-").concat(P))):O&&R.push(null),R}),ce(A,"renderGraphicChild",function(S,N,_){var C=A.filterFormatItem(S,N,_);if(!C)return null;var P=A.getTooltipEventType(),O=A.state,R=O.isTooltipActive,L=O.tooltipAxis,j=O.activeTooltipIndex,T=O.activeLabel,I=A.props.children,$=an(I,Wn),k=C.props,M=k.points,B=k.isRange,W=k.baseLine,z=C.item.type.defaultProps!==void 0?H(H({},C.item.type.defaultProps),C.item.props):C.item.props,J=z.activeDot,ue=z.hide,_e=z.activeBar,Ae=z.activeShape,re=!!(!ue&&R&&$&&(J||_e||Ae)),he={};P!=="axis"&&$&&$.props.trigger==="click"?he={onClick:Gu(A.handleItemMouseEnter,S.props.onClick)}:P!=="axis"&&(he={onMouseLeave:Gu(A.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Gu(A.handleItemMouseEnter,S.props.onMouseEnter)});var G=h.cloneElement(S,H(H({},C.props),he));function Z(Xo){return typeof L.dataKey=="function"?L.dataKey(Xo.payload):null}if(re)if(j>=0){var ee,U;if(L.dataKey&&!L.allowDuplicatedCategory){var Se=typeof L.dataKey=="function"?Z:"payload.".concat(L.dataKey.toString());ee=tf(M,Se,T),U=B&&W&&tf(W,Se,T)}else ee=M==null?void 0:M[j],U=B&&W&&W[j];if(Ae||_e){var fe=S.props.activeIndex!==void 0?S.props.activeIndex:j;return[h.cloneElement(S,H(H(H({},C.props),he),{},{activeIndex:fe})),null,null]}if(!be(ee))return[G].concat(fs(A.renderActivePoints({item:C,activePoint:ee,basePoint:U,childIndex:j,isRange:B})))}else{var Be,Ue=(Be=A.getItemByXY(A.state.activeCoordinate))!==null&&Be!==void 0?Be:{graphicalItem:G},ot=Ue.graphicalItem,ir=ot.item,Ln=ir===void 0?S:ir,cu=ot.childIndex,qo=H(H(H({},C.props),he),{},{activeIndex:cu});return[h.cloneElement(Ln,qo),null,null]}return B?[G,null,null]:[G,null]}),ce(A,"renderCustomized",function(S,N,_){return h.cloneElement(S,H(H({key:"recharts-customized-".concat(_)},A.props),A.state))}),ce(A,"renderMap",{CartesianGrid:{handler:Xu,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:Xu},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:Xu},YAxis:{handler:Xu},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:eu("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=AL(A.triggeredAfterMouseMove,(E=x.throttleDelay)!==null&&E!==void 0?E:1e3/60),A.state={},A}return Zwe(g,m),Kwe(g,[{key:"componentDidMount",value:function(){var w,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,E=w.children,A=w.data,S=w.height,N=w.layout,_=an(E,Wn);if(_){var C=_.props.defaultIndex;if(!(typeof C!="number"||C<0||C>this.state.tooltipTicks.length-1)){var P=this.state.tooltipTicks[C]&&this.state.tooltipTicks[C].value,O=Yg(this.state,A,C,P),R=this.state.tooltipTicks[C].coordinate,L=(this.state.offset.top+S)/2,j=N==="horizontal",T=j?{x:R,y:L}:{y:R,x:L},I=this.state.formattedGraphicalItems.find(function(k){var M=k.item;return M.type.name==="Scatter"});I&&(T=H(H({},T),I.props.points[C].tooltipPosition),O=I.props.points[C].tooltipPayload);var $={activeTooltipIndex:C,isTooltipActive:!0,activeLabel:P,activePayload:O,activeCoordinate:T};this.setState($),this.renderCursor(_),this.accessibilityManager.setIndex(C)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var A,S;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(w){Ny([an(w.children,Wn)],[an(this.props.children,Wn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=an(this.props.children,Wn);if(w&&typeof w.props.shared=="boolean"){var E=w.props.shared?"axis":"item";return s.indexOf(E)>=0?E:i}return i}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var E=this.container,A=E.getBoundingClientRect(),S=Hce(A),N={chartX:Math.round(w.pageX-S.left),chartY:Math.round(w.pageY-S.top)},_=A.width/E.offsetWidth||1,C=this.inRange(N.chartX,N.chartY,_);if(!C)return null;var P=this.state,O=P.xAxisMap,R=P.yAxisMap,L=this.getTooltipEventType(),j=ZN(this.state,this.props.data,this.props.layout,C);if(L!=="axis"&&O&&R){var T=vo(O).scale,I=vo(R).scale,$=T&&T.invert?T.invert(N.chartX):null,k=I&&I.invert?I.invert(N.chartY):null;return H(H({},N),{},{xValue:$,yValue:k},j)}return j?H(H({},N),j):null}},{key:"inRange",value:function(w,E){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,N=w/A,_=E/A;if(S==="horizontal"||S==="vertical"){var C=this.state.offset,P=N>=C.left&&N<=C.left+C.width&&_>=C.top&&_<=C.top+C.height;return P?{x:N,y:_}:null}var O=this.state,R=O.angleAxisMap,L=O.radiusAxisMap;if(R&&L){var j=vo(R);return ME({x:N,y:_},j)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,E=this.getTooltipEventType(),A=an(w,Wn),S={};A&&E==="axis"&&(A.props.trigger==="click"?S={onClick:this.handleClick}:S={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var N=nf(this.props,this.handleOuterEvent);return H(H({},N),S)}},{key:"addListener",value:function(){tv.on(nv,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tv.removeListener(nv,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,E,A){for(var S=this.state.formattedGraphicalItems,N=0,_=S.length;N<_;N++){var C=S[N];if(C.item===w||C.props.key===w.key||E===Lr(C.item.type)&&A===C.childIndex)return C}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,E=this.state.offset,A=E.left,S=E.top,N=E.height,_=E.width;return D.createElement("defs",null,D.createElement("clipPath",{id:w},D.createElement("rect",{x:A,y:S,height:N,width:_})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(E,A){var S=YN(A,2),N=S[0],_=S[1];return H(H({},E),{},ce({},N,_.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(E,A){var S=YN(A,2),N=S[0],_=S[1];return H(H({},E),{},ce({},N,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(w){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[w])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(w){var E=this.state,A=E.formattedGraphicalItems,S=E.activeItem;if(A&&A.length)for(var N=0,_=A.length;N<_;N++){var C=A[N],P=C.props,O=C.item,R=O.type.defaultProps!==void 0?H(H({},O.type.defaultProps),O.props):O.props,L=Lr(O.type);if(L==="Bar"){var j=(P.data||[]).find(function(k){return Cye(w,k)});if(j)return{graphicalItem:C,payload:j}}else if(L==="RadialBar"){var T=(P.data||[]).find(function(k){return ME(w,k)});if(T)return{graphicalItem:C,payload:T}}else if(Ah(C,S)||Eh(C,S)||Oc(C,S)){var I=Pge({graphicalItem:C,activeTooltipItem:S,itemData:R.data}),$=R.activeIndex===void 0?I:R.activeIndex;return{graphicalItem:H(H({},C),{},{childIndex:$}),payload:Oc(C,S)?R.data[I]:C.props.data[I]}}}return null}},{key:"render",value:function(){var w=this;if(!EA(this))return null;var E=this.props,A=E.children,S=E.className,N=E.width,_=E.height,C=E.style,P=E.compact,O=E.title,R=E.desc,L=qN(E,Bwe),j=Ee(L,!1);if(P)return D.createElement(TN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement(jy,ga({},j,{width:N,height:_,title:O,desc:R}),this.renderClipPath(),_A(A,this.renderMap)));if(this.props.accessibilityLayer){var T,I;j.tabIndex=(T=this.props.tabIndex)!==null&&T!==void 0?T:0,j.role=(I=this.props.role)!==null&&I!==void 0?I:"application",j.onKeyDown=function(k){w.accessibilityManager.keyboardEvent(k)},j.onFocus=function(){w.accessibilityManager.focus()}}var $=this.parseEventsOfWrapper();return D.createElement(TN,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement("div",ga({className:Ne("recharts-wrapper",S),style:H({position:"relative",cursor:"default",width:N,height:_},C)},$,{ref:function(M){w.container=M}}),D.createElement(jy,ga({},j,{width:N,height:_,title:O,desc:R,style:rSe}),this.renderClipPath(),_A(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(h.Component);ce(b,"displayName",n),ce(b,"defaultProps",H({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ce(b,"getDerivedStateFromProps",function(m,g){var x=m.dataKey,w=m.data,E=m.children,A=m.width,S=m.height,N=m.layout,_=m.stackOffset,C=m.margin,P=g.dataStartIndex,O=g.dataEndIndex;if(g.updateId===void 0){var R=QN(m);return H(H(H({},R),{},{updateId:0},v(H(H({props:m},R),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:A,prevHeight:S,prevLayout:N,prevStackOffset:_,prevMargin:C,prevChildren:E})}if(x!==g.prevDataKey||w!==g.prevData||A!==g.prevWidth||S!==g.prevHeight||N!==g.prevLayout||_!==g.prevStackOffset||!Ta(C,g.prevMargin)){var L=QN(m),j={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},T=H(H({},ZN(g,w,N)),{},{updateId:g.updateId+1}),I=H(H(H({},L),j),T);return H(H(H({},I),v(H({props:m},I),g)),{},{prevDataKey:x,prevData:w,prevWidth:A,prevHeight:S,prevLayout:N,prevStackOffset:_,prevMargin:C,prevChildren:E})}if(!Ny(E,g.prevChildren)){var $,k,M,B,W=an(E,es),z=W&&($=(k=W.props)===null||k===void 0?void 0:k.startIndex)!==null&&$!==void 0?$:P,J=W&&(M=(B=W.props)===null||B===void 0?void 0:B.endIndex)!==null&&M!==void 0?M:O,ue=z!==P||J!==O,_e=!be(w),Ae=_e&&!ue?g.updateId:g.updateId+1;return H(H({updateId:Ae},v(H(H({props:m},g),{},{updateId:Ae,dataStartIndex:z,dataEndIndex:J}),g)),{},{prevChildren:E,dataStartIndex:z,dataEndIndex:J})}return null}),ce(b,"renderActiveDot",function(m,g,x){var w;return h.isValidElement(m)?w=h.cloneElement(m,g):xe(m)?w=m(g):w=D.createElement(Mb,g),D.createElement(rt,{className:"recharts-active-dot",key:x},w)});var y=h.forwardRef(function(g,x){return D.createElement(b,ga({},g,{ref:x}))});return y.displayName=b.displayName,y},pSe=DB({chartName:"LineChart",GraphicalChild:su,axisComponents:[{axisType:"xAxis",AxisComp:ls},{axisType:"yAxis",AxisComp:us}],formatAxisMap:eB}),hSe=DB({chartName:"BarChart",GraphicalChild:Gi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ls},{axisType:"yAxis",AxisComp:us}],formatAxisMap:eB});function mSe(){const{id:e}=ki(),[t,n]=h.useState(null),[r,o]=h.useState(null),[i,a]=h.useState(!0),[s,c]=h.useState(null),[u,f]=h.useState("30d"),[d,p]=h.useState("daily");if(h.useEffect(()=>{if(!e)return;async function g(){try{a(!0);const[x,w]=await Promise.all([j0(e),f7(e,{period:u,granularity:d})]);n(x),o(w.data),c(null)}catch(x){c(x instanceof Error?x.message:"Failed to load history")}finally{a(!1)}}g()},[e,u,d]),i)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});if(s)return l.jsx("div",{className:"p-6",children:l.jsx("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-4",children:l.jsx("p",{className:"text-destructive",children:s})})});if(!t||!r)return l.jsx("div",{className:"p-6",children:"Source not found"});const{summary:v,trend:b,failure_frequency:y,recent_validations:m}=r;return l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Pe,{to:`/sources/${e}`,children:l.jsxs(Y,{variant:"ghost",size:"sm",children:[l.jsx(Li,{className:"h-4 w-4 mr-2"}),"Back"]})}),l.jsxs("div",{children:[l.jsxs("h1",{className:"text-2xl font-bold",children:[t.name," - History"]}),l.jsx("p",{className:"text-muted-foreground",children:"Validation trends and analytics"})]})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs(jt,{value:u,onValueChange:g=>f(g),children:[l.jsx(xt,{className:"w-32",children:l.jsx(Ct,{})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"7d",children:"Last 7 days"}),l.jsx(pe,{value:"30d",children:"Last 30 days"}),l.jsx(pe,{value:"90d",children:"Last 90 days"})]})]}),l.jsxs(jt,{value:d,onValueChange:g=>p(g),children:[l.jsx(xt,{className:"w-32",children:l.jsx(Ct,{})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"hourly",children:"Hourly"}),l.jsx(pe,{value:"daily",children:"Daily"}),l.jsx(pe,{value:"weekly",children:"Weekly"})]})]})]})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:"Total Runs"})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold",children:v.total_runs})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:"Passed"})}),l.jsx(X,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Wd,{className:"h-5 w-5 text-green-500"}),l.jsx("span",{className:"text-2xl font-bold text-green-600",children:v.passed_runs})]})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:"Failed"})}),l.jsx(X,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(Mo,{className:"h-5 w-5 text-red-500"}),l.jsx("span",{className:"text-2xl font-bold text-red-600",children:v.failed_runs})]})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:"Success Rate"})}),l.jsx(X,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[v.success_rate>=80?l.jsx(N6,{className:"h-5 w-5 text-green-500"}):l.jsx(E6,{className:"h-5 w-5 text-red-500"}),l.jsxs("span",{className:`text-2xl font-bold ${v.success_rate>=80?"text-green-600":"text-red-600"}`,children:[v.success_rate,"%"]})]})})]})]}),l.jsxs(q,{children:[l.jsxs(ye,{children:[l.jsx(ge,{children:"Success Rate Trend"}),l.jsx($r,{children:"Validation success rate over time"})]}),l.jsx(X,{children:b.length>0?l.jsx(A1,{width:"100%",height:300,children:l.jsxs(pSe,{data:b,children:[l.jsx($g,{strokeDasharray:"3 3"}),l.jsx(ls,{dataKey:"date"}),l.jsx(us,{domain:[0,100]}),l.jsx(Wn,{}),l.jsx(pi,{}),l.jsx(su,{type:"monotone",dataKey:"success_rate",stroke:"#fd9e4b",strokeWidth:2,name:"Success Rate (%)"})]})}):l.jsx("div",{className:"flex items-center justify-center h-64 text-muted-foreground",children:"No data for the selected period"})})]}),l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[l.jsxs(q,{children:[l.jsxs(ye,{children:[l.jsx(ge,{children:"Top Failure Types"}),l.jsx($r,{children:"Most common validation issues"})]}),l.jsx(X,{children:y.length>0?l.jsx(A1,{width:"100%",height:250,children:l.jsxs(hSe,{data:y,layout:"vertical",children:[l.jsx($g,{strokeDasharray:"3 3"}),l.jsx(ls,{type:"number"}),l.jsx(us,{type:"category",dataKey:"issue",width:150}),l.jsx(Wn,{}),l.jsx(Gi,{dataKey:"count",fill:"#fd9e4b"})]})}):l.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No failures recorded"})})]}),l.jsxs(q,{children:[l.jsxs(ye,{children:[l.jsx(ge,{children:"Recent Validations"}),l.jsx($r,{children:"Latest validation runs"})]}),l.jsx(X,{children:l.jsx("div",{className:"space-y-3",children:m.length>0?m.map(g=>l.jsxs(Pe,{to:`/validations/${g.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-muted/50 transition-colors",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[g.passed?l.jsx(Wd,{className:"h-4 w-4 text-green-500"}):l.jsx(Mo,{className:"h-4 w-4 text-red-500"}),l.jsxs("div",{children:[l.jsxs("div",{className:"font-medium",children:[g.passed?"Passed":"Failed",g.has_critical&&l.jsx(se,{variant:"destructive",className:"ml-2",children:"Critical"})]}),l.jsx("div",{className:"text-xs text-muted-foreground",children:pn(g.created_at)})]})]}),l.jsxs(se,{variant:"outline",children:[g.total_issues," issues"]})]},g.id)):l.jsx("div",{className:"text-center text-muted-foreground py-8",children:"No validations yet"})})})]})]})]})}const Ms=qM,$B=XM,vSe=ZM,LB=h.forwardRef(({className:e,...t},n)=>l.jsx(P0,{ref:n,className:oe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));LB.displayName=P0.displayName;const Vi=h.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(vSe,{children:[l.jsx(LB,{}),l.jsxs(I0,{ref:r,className:oe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,l.jsxs(M0,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[l.jsx(i0,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vi.displayName=I0.displayName;const Ki=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ki.displayName="DialogHeader";const Ph=({className:e,...t})=>l.jsx("div",{className:oe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Ph.displayName="DialogFooter";const Yi=h.forwardRef(({className:e,...t},n)=>l.jsx(R0,{ref:n,className:oe("text-lg font-semibold leading-none tracking-tight",e),...t}));Yi.displayName=R0.displayName;const Ih=h.forwardRef(({className:e,...t},n)=>l.jsx(k0,{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));Ih.displayName=k0.displayName;const jl=h.forwardRef(({className:e,...t},n)=>l.jsx("div",{className:"relative w-full overflow-auto",children:l.jsx("table",{ref:n,className:oe("w-full caption-bottom text-sm",e),...t})}));jl.displayName="Table";const Cl=h.forwardRef(({className:e,...t},n)=>l.jsx("thead",{ref:n,className:oe("[&_tr]:border-b",e),...t}));Cl.displayName="TableHeader";const Ol=h.forwardRef(({className:e,...t},n)=>l.jsx("tbody",{ref:n,className:oe("[&_tr:last-child]:border-0",e),...t}));Ol.displayName="TableBody";const ySe=h.forwardRef(({className:e,...t},n)=>l.jsx("tfoot",{ref:n,className:oe("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));ySe.displayName="TableFooter";const lr=h.forwardRef(({className:e,...t},n)=>l.jsx("tr",{ref:n,className:oe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...t}));lr.displayName="TableRow";const Xe=h.forwardRef(({className:e,...t},n)=>l.jsx("th",{ref:n,className:oe("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));Xe.displayName="TableHead";const Ke=h.forwardRef(({className:e,...t},n)=>l.jsx("td",{ref:n,className:oe("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ke.displayName="TableCell";const gSe=h.forwardRef(({className:e,...t},n)=>l.jsx("caption",{ref:n,className:oe("mt-4 text-sm text-muted-foreground",e),...t}));gSe.displayName="TableCaption";function ri(e){return e&&parseFloat(e.replace("%",""))||0}function xSe(e){if(e===0)return"0 B";const t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`}function bSe(e){const t=ri(e);return t===0?"outline":t<5?"secondary":t<20?"default":"destructive"}function wSe(e){const t=ri(e);return t>=99?"outline":t>=80?"secondary":t>=20?"default":"destructive"}function SSe(){const{id:e}=ki(),{toast:t}=Pt(),[n,r]=h.useState(null),[o,i]=h.useState(null),[a,s]=h.useState(!0),[c,u]=h.useState(!1),[f,d]=h.useState(!1),[p,v]=h.useState(null),[b,y]=h.useState(!1),[m,g]=h.useState(null),[x,w]=h.useState(!1),[E,A]=h.useState({key:"name",direction:"asc"}),[S,N]=h.useState("all");h.useEffect(()=>{if(!e)return;async function j(){try{s(!0);const T=await j0(e);r(T),v(null)}catch(T){v(T instanceof Error?T.message:"Failed to load source")}finally{s(!1)}}j()},[e]);const _=h.useCallback(async()=>{if(e)try{u(!0);const j=await d7(e);i(j),t({title:"Profile Complete",description:`Analyzed ${j.row_count.toLocaleString()} rows across ${j.column_count} columns`})}catch(j){t({variant:"destructive",title:"Profiling Failed",description:j instanceof Error?j.message:"Unknown error"})}finally{u(!1)}},[e,t]),C=h.useCallback(async()=>{if(e)try{d(!0);const j=await OM(e,{infer_constraints:!0});g(j),y(!0),t({title:"Schema Generated",description:`Generated schema with ${j.column_count} columns`})}catch(j){t({variant:"destructive",title:"Schema Generation Failed",description:j instanceof Error?j.message:"Unknown error"})}finally{d(!1)}},[e,t]),P=h.useCallback(async()=>{if(m!=null&&m.schema_yaml)try{await navigator.clipboard.writeText(m.schema_yaml),w(!0),setTimeout(()=>w(!1),2e3),t({title:"Copied",description:"Schema YAML copied to clipboard"})}catch{t({variant:"destructive",title:"Copy Failed",description:"Failed to copy to clipboard"})}},[m,t]),O=h.useCallback(j=>{A(T=>({key:j,direction:T.key===j&&T.direction==="asc"?"desc":"asc"}))},[]),R=o!=null&&o.columns?[...new Set(o.columns.map(j=>j.dtype))].sort():[],L=o!=null&&o.columns?[...o.columns].filter(j=>S==="all"||j.dtype===S).sort((j,T)=>{const{key:I,direction:$}=E;let k=0;switch(I){case"name":k=j.name.localeCompare(T.name);break;case"dtype":k=j.dtype.localeCompare(T.dtype);break;case"null_pct":k=ri(j.null_pct)-ri(T.null_pct);break;case"unique_pct":k=ri(j.unique_pct)-ri(T.unique_pct);break}return $==="asc"?k:-k}):[];return a?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):p?l.jsx("div",{className:"p-6",children:l.jsxs("div",{className:"bg-destructive/10 border border-destructive rounded-lg p-4 flex items-center gap-3",children:[l.jsx(_k,{className:"h-5 w-5 text-destructive"}),l.jsx("p",{className:"text-destructive",children:p})]})}):n?l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx(Pe,{to:`/sources/${e}`,children:l.jsxs(Y,{variant:"ghost",size:"sm",children:[l.jsx(Li,{className:"h-4 w-4 mr-2"}),"Back"]})}),l.jsxs("div",{children:[l.jsxs("h1",{className:"text-2xl font-bold",children:[n.name," - Profile"]}),l.jsx("p",{className:"text-muted-foreground",children:"Data profiling and schema generation"})]})]}),l.jsxs("div",{className:"flex gap-2",children:[l.jsxs(Y,{variant:"outline",onClick:C,disabled:f||c,children:[l.jsx(Gd,{className:"h-4 w-4 mr-2"}),f?"Generating...":"Generate Schema"]}),l.jsx(Y,{onClick:_,disabled:c||f,children:c?l.jsxs(l.Fragment,{children:[l.jsx(fd,{className:"h-4 w-4 mr-2 animate-spin"}),"Profiling..."]}):l.jsxs(l.Fragment,{children:[l.jsx(sy,{className:"h-4 w-4 mr-2"}),"Run Profile"]})})]})]}),!o&&l.jsx(q,{children:l.jsxs(X,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(sy,{className:"h-12 w-12 text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:"No Profile Data"}),l.jsx("p",{className:"text-muted-foreground text-center mb-4 max-w-md",children:"Run a profile to analyze your data structure, column types, null percentages, and unique value distributions."}),l.jsx(Y,{onClick:_,disabled:c,children:c?"Profiling...":"Run Profile"})]})}),o&&l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsxs(ge,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(l6,{className:"h-4 w-4"}),"Rows"]})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold",children:Ir(o.row_count)})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsxs(ge,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(_6,{className:"h-4 w-4"}),"Columns"]})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold",children:o.column_count})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsxs(ge,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(Cn,{className:"h-4 w-4"}),"Size"]})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold",children:xSe(o.size_bytes)})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsxs(ge,{className:"text-sm font-medium text-muted-foreground flex items-center gap-2",children:[l.jsx(m6,{className:"h-4 w-4"}),"Avg Null %"]})}),l.jsx(X,{children:l.jsxs("div",{className:"text-2xl font-bold",children:[o.columns.length>0?(o.columns.reduce((j,T)=>j+ri(T.null_pct),0)/o.columns.length).toFixed(1):0,"%"]})})]})]}),l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx(ge,{children:"Column Statistics"}),l.jsx($r,{children:"Detailed statistics for each column"})]}),l.jsxs(jt,{value:S,onValueChange:N,children:[l.jsx(xt,{className:"w-40",children:l.jsx(Ct,{placeholder:"Filter by type"})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"all",children:"All Types"}),R.map(j=>l.jsx(pe,{value:j,children:j},j))]})]})]})}),l.jsxs(X,{children:[l.jsx("div",{className:"rounded-md border",children:l.jsxs(jl,{children:[l.jsx(Cl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>O("name"),children:["Column",l.jsx(Cu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>O("dtype"),children:["Type",l.jsx(Cu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>O("null_pct"),children:["Nulls",l.jsx(Cu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:l.jsxs(Y,{variant:"ghost",size:"sm",className:"h-8 -ml-3 font-semibold",onClick:()=>O("unique_pct"),children:["Unique",l.jsx(Cu,{className:"ml-2 h-3 w-3"})]})}),l.jsx(Xe,{children:"Min"}),l.jsx(Xe,{children:"Max"}),l.jsx(Xe,{children:"Mean"}),l.jsx(Xe,{children:"Std"})]})}),l.jsx(Ol,{children:L.length===0?l.jsx(lr,{children:l.jsx(Ke,{colSpan:8,className:"text-center py-8 text-muted-foreground",children:"No columns match the filter"})}):L.map(j=>l.jsxs(lr,{children:[l.jsx(Ke,{className:"font-mono text-sm font-medium",children:j.name}),l.jsx(Ke,{children:l.jsx(se,{variant:"outline",children:j.dtype})}),l.jsx(Ke,{children:l.jsx(se,{variant:bSe(j.null_pct),children:j.null_pct})}),l.jsx(Ke,{children:l.jsx(se,{variant:wSe(j.unique_pct),children:j.unique_pct})}),l.jsx(Ke,{className:"font-mono text-sm",children:j.min!==void 0&&j.min!==null?String(j.min).length>20?`${String(j.min).slice(0,20)}...`:String(j.min):"-"}),l.jsx(Ke,{className:"font-mono text-sm",children:j.max!==void 0&&j.max!==null?String(j.max).length>20?`${String(j.max).slice(0,20)}...`:String(j.max):"-"}),l.jsx(Ke,{className:"font-mono text-sm",children:j.mean!==void 0&&j.mean!==null?typeof j.mean=="number"?j.mean.toFixed(2):j.mean:"-"}),l.jsx(Ke,{className:"font-mono text-sm",children:j.std!==void 0&&j.std!==null?typeof j.std=="number"?j.std.toFixed(2):j.std:"-"})]},j.name))})]})}),l.jsxs("div",{className:"mt-4 text-sm text-muted-foreground",children:["Showing ",L.length," of ",o.columns.length," columns",S!=="all"&&` (filtered by ${S})`]})]})]})]}),l.jsx(Ms,{open:b,onOpenChange:y,children:l.jsxs(Vi,{className:"max-w-2xl max-h-[80vh]",children:[l.jsxs(Ki,{children:[l.jsx(Yi,{children:"Generated Schema"}),l.jsxs(Ih,{children:["Auto-generated schema from ",n.name,". You can copy this YAML to use with truthound validation."]})]}),m&&l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"flex gap-4 text-sm",children:[l.jsxs("div",{children:[l.jsx("span",{className:"text-muted-foreground",children:"Columns:"})," ",l.jsx("span",{className:"font-medium",children:m.column_count})]}),l.jsxs("div",{children:[l.jsx("span",{className:"text-muted-foreground",children:"Rows analyzed:"})," ",l.jsx("span",{className:"font-medium",children:Ir(m.row_count)})]})]}),l.jsx("div",{className:"relative",children:l.jsx("pre",{className:"bg-muted p-4 rounded-lg text-sm overflow-auto max-h-[400px] font-mono",children:m.schema_yaml})})]}),l.jsxs(Ph,{children:[l.jsx(Y,{variant:"outline",onClick:()=>y(!1),children:"Close"}),l.jsx(Y,{onClick:P,children:x?l.jsxs(l.Fragment,{children:[l.jsx(Sp,{className:"h-4 w-4 mr-2"}),"Copied"]}):l.jsxs(l.Fragment,{children:[l.jsx(a6,{className:"h-4 w-4 mr-2"}),"Copy YAML"]})})]})]})})]}):l.jsx("div",{className:"p-6",children:l.jsxs("div",{className:"text-center py-12",children:[l.jsx(Cn,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),l.jsx("h2",{className:"text-lg font-medium mb-2",children:"Source not found"}),l.jsx(Y,{asChild:!0,children:l.jsx(Pe,{to:"/sources",children:"Back to Sources"})})]})})}const ASe="drift",ESe={nodeType:"translation",translation:{en:{title:"Drift Detection",subtitle:"Compare datasets to detect data drift",compare:"Compare",comparing:"Comparing...",newComparison:"New Comparison",compareDatasets:"Compare Datasets",compareDescription:"Select baseline and current datasets to compare for drift",baseline:"Baseline",current:"Current",selectSource:"Select source",baselineSource:"Baseline Source",currentSource:"Current Source",selectBaseline:"Select baseline...",selectCurrent:"Select current...",detectionMethod:"Detection Method",selectBothSources:"Please select both baseline and current sources",mustBeDifferent:"Baseline and current sources must be different",comparisonComplete:"Comparison complete",comparisonFailed:"Comparison failed",noDriftDetected:"No significant drift detected",noComparisonsYet:"No comparisons yet",noComparisonsDesc:"Compare two datasets to detect data drift",highDrift:"High Drift",driftDetected:"Drift Detected",noDrift:"No Drift",columnsCompared:"Columns Compared",driftedColumns:"Drifted Columns",driftPercentage:"Drift Percentage",columnDetails:"Column Details",methods:{auto:"Auto (recommended)",ks:"Kolmogorov-Smirnov",psi:"Population Stability Index",chi2:"Chi-Square",js:"Jensen-Shannon"},noChanges:"No changes detected",columnAdded:"Column Added",columnRemoved:"Column Removed",typeChanged:"Type Changed",statsChanged:"Statistics Changed"},ko:{title:"드리프트 감지",subtitle:"데이터셋을 비교하여 데이터 드리프트 감지",compare:"비교",comparing:"비교 중...",newComparison:"새 비교",compareDatasets:"데이터셋 비교",compareDescription:"드리프트 비교를 위한 기준 및 현재 데이터셋을 선택하세요",baseline:"기준",current:"현재",selectSource:"소스 선택",baselineSource:"기준 소스",currentSource:"현재 소스",selectBaseline:"기준 선택...",selectCurrent:"현재 선택...",detectionMethod:"감지 방법",selectBothSources:"기준 소스와 현재 소스를 모두 선택하세요",mustBeDifferent:"기준 소스와 현재 소스가 서로 달라야 합니다",comparisonComplete:"비교 완료",comparisonFailed:"비교 실패",noDriftDetected:"유의미한 드리프트가 감지되지 않았습니다",noComparisonsYet:"비교 기록 없음",noComparisonsDesc:"두 데이터셋을 비교하여 데이터 드리프트를 감지하세요",highDrift:"높은 드리프트",driftDetected:"드리프트 감지됨",noDrift:"드리프트 없음",columnsCompared:"비교된 컬럼",driftedColumns:"드리프트 컬럼",driftPercentage:"드리프트 비율",columnDetails:"컬럼 상세",methods:{auto:"자동 (권장)",ks:"콜모고로프-스미르노프",psi:"모집단 안정성 지수",chi2:"카이제곱",js:"젠슨-샤논"},noChanges:"변경 사항이 없습니다",columnAdded:"컬럼 추가됨",columnRemoved:"컬럼 제거됨",typeChanged:"타입 변경됨",statsChanged:"통계 변경됨"}}},NSe=["drift::local::src/content/drift.content.ts"],_Se={key:ASe,content:ESe,localIds:NSe},jSe="errors",CSe={nodeType:"translation",translation:{en:{generic:"An error occurred. Please try again.",notFound:"The requested resource was not found.",unauthorized:"You are not authorized to perform this action.",validation:"Please check your input and try again.",network:"Network error. Please check your connection.",serverError:"Server error. Please try again later.",loadFailed:"Failed to load data"},ko:{generic:"오류가 발생했습니다. 다시 시도해 주세요.",notFound:"요청한 리소스를 찾을 수 없습니다.",unauthorized:"이 작업을 수행할 권한이 없습니다.",validation:"입력을 확인하고 다시 시도해 주세요.",network:"네트워크 오류입니다. 연결을 확인해 주세요.",serverError:"서버 오류입니다. 나중에 다시 시도해 주세요.",loadFailed:"데이터를 불러오지 못했습니다"}}},OSe=["errors::local::src/content/errors.content.ts"],FB={key:jSe,content:CSe,localIds:OSe};var TSe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],PSe=TSe.reduce((e,t)=>{const n=Bk(`Primitive.${t}`),r=h.forwardRef((o,i)=>{const{asChild:a,...s}=o,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...s,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),ISe="Label",BB=h.forwardRef((e,t)=>l.jsx(PSe.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));BB.displayName=ISe;var UB=BB;const RSe=Ep("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),yt=h.forwardRef(({className:e,...t},n)=>l.jsx(UB,{ref:n,className:oe(RSe(),e),...t}));yt.displayName=UB.displayName;function kSe(){const e=me(_Se),t=me(Vt),n=me(FB),{toast:r}=Pt(),[o,i]=h.useState([]),[a,s]=h.useState([]),[c,u]=h.useState(!0),[f,d]=h.useState(!1),[p,v]=h.useState(!1),[b,y]=h.useState(""),[m,g]=h.useState(""),[x,w]=h.useState("auto");h.useEffect(()=>{async function S(){try{const[N,_]=await Promise.all([Xc(),h7({limit:20})]);i(N.data),s(_.data)}catch(N){r({variant:"destructive",title:F(t.error),description:N instanceof Error?N.message:F(n.loadFailed)})}finally{u(!1)}}S()},[r,t,n]);const E=async()=>{if(!b||!m){r({variant:"destructive",title:F(t.error),description:F(e.selectBothSources)});return}if(b===m){r({variant:"destructive",title:F(t.error),description:F(e.mustBeDifferent)});return}try{d(!0);const S=await p7({baseline_source_id:b,current_source_id:m,method:x});s(N=>[S.data,...N]),v(!1),y(""),g(""),r({title:F(e.comparisonComplete),description:S.data.has_drift?`${S.data.drifted_columns} columns drifted`:F(e.noDriftDetected)})}catch(S){r({variant:"destructive",title:F(e.comparisonFailed),description:S instanceof Error?S.message:F(n.generic)})}finally{d(!1)}},A=S=>{const N=o.find(_=>_.id===S);return(N==null?void 0:N.name)||S.slice(0,8)};return c?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-2xl font-bold",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.subtitle})]}),l.jsxs(Ms,{open:p,onOpenChange:v,children:[l.jsx($B,{asChild:!0,children:l.jsxs(Y,{children:[l.jsx(Jt,{className:"h-4 w-4 mr-2"}),e.newComparison]})}),l.jsxs(Vi,{children:[l.jsxs(Ki,{children:[l.jsx(Yi,{children:e.compareDatasets}),l.jsx(Ih,{children:e.compareDescription})]}),l.jsxs("div",{className:"space-y-4 py-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:e.baselineSource}),l.jsxs(jt,{value:b,onValueChange:y,children:[l.jsx(xt,{children:l.jsx(Ct,{placeholder:e.selectBaseline})}),l.jsx(bt,{children:o.map(S=>l.jsx(pe,{value:S.id,children:S.name},S.id))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:e.currentSource}),l.jsxs(jt,{value:m,onValueChange:g,children:[l.jsx(xt,{children:l.jsx(Ct,{placeholder:e.selectCurrent})}),l.jsx(bt,{children:o.map(S=>l.jsx(pe,{value:S.id,children:S.name},S.id))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:e.detectionMethod}),l.jsxs(jt,{value:x,onValueChange:S=>w(S),children:[l.jsx(xt,{children:l.jsx(Ct,{})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"auto",children:e.methods.auto}),l.jsx(pe,{value:"ks",children:e.methods.ks}),l.jsx(pe,{value:"psi",children:e.methods.psi}),l.jsx(pe,{value:"chi2",children:e.methods.chi2}),l.jsx(pe,{value:"js",children:e.methods.js})]})]})]})]}),l.jsxs(Ph,{children:[l.jsx(Y,{variant:"outline",onClick:()=>v(!1),children:t.cancel}),l.jsx(Y,{onClick:E,disabled:f,children:f?e.comparing:e.compare})]})]})]})]}),a.length===0?l.jsx(q,{children:l.jsxs(X,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(Tk,{className:"h-12 w-12 text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:e.noComparisonsYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:e.noComparisonsDesc}),l.jsxs(Y,{onClick:()=>v(!0),children:[l.jsx(Jt,{className:"h-4 w-4 mr-2"}),e.newComparison]})]})}):l.jsx("div",{className:"space-y-4",children:a.map(S=>{var N,_;return l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[S.has_drift?l.jsx(Mo,{className:"h-5 w-5 text-amber-500"}):l.jsx(Wd,{className:"h-5 w-5 text-green-500"}),l.jsxs("div",{children:[l.jsxs(ge,{className:"flex items-center gap-2 text-lg",children:[A(S.baseline_source_id),l.jsx(ay,{className:"h-4 w-4"}),A(S.current_source_id)]}),l.jsx($r,{children:pn(S.created_at)})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[S.has_high_drift&&l.jsx(se,{variant:"destructive",children:e.highDrift}),S.has_drift&&!S.has_high_drift&&l.jsx(se,{variant:"warning",className:"bg-amber-500 text-white",children:e.driftDetected}),!S.has_drift&&l.jsx(se,{variant:"outline",children:e.noDrift})]})]})}),l.jsxs(X,{children:[l.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-sm text-muted-foreground",children:e.columnsCompared}),l.jsx("div",{className:"text-xl font-semibold",children:S.total_columns||0})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-sm text-muted-foreground",children:e.driftedColumns}),l.jsx("div",{className:"text-xl font-semibold text-amber-600",children:S.drifted_columns||0})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-sm text-muted-foreground",children:e.driftPercentage}),l.jsxs("div",{className:"text-xl font-semibold",children:[((N=S.drift_percentage)==null?void 0:N.toFixed(1))||0,"%"]})]})]}),((_=S.result)==null?void 0:_.columns)&&S.result.columns.length>0&&l.jsxs("div",{className:"mt-4 pt-4 border-t",children:[l.jsx("div",{className:"text-sm font-medium mb-2",children:e.columnDetails}),l.jsx("div",{className:"space-y-2",children:S.result.columns.filter(C=>C.drifted).slice(0,5).map(C=>l.jsxs("div",{className:"flex items-center justify-between p-2 bg-muted/50 rounded",children:[l.jsxs("div",{children:[l.jsx("span",{className:"font-mono text-sm",children:C.column}),l.jsxs("span",{className:"text-xs text-muted-foreground ml-2",children:["(",C.dtype,")"]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(se,{variant:"outline",children:C.method}),l.jsx(se,{variant:C.level==="high"?"destructive":"secondary",children:C.level})]})]},C.column))})]})]})]},S.id)})})]})}const MSe="schedules",DSe={nodeType:"translation",translation:{en:{title:"Schedules",subtitle:"Manage scheduled validation runs",addSchedule:"Add Schedule",newSchedule:"New Schedule",editSchedule:"Edit Schedule",createSchedule:"Create Schedule",createScheduleDesc:"Set up automated validation runs for a data source",noSchedules:"No schedules configured",noSchedulesYet:"No schedules yet",noSchedulesDesc:"Create a schedule to automate validation runs",cronExpression:"Cron Expression",cronFormat:"Format: minute hour day month weekday",customCron:"Custom cron expression",selectSource:"Select source...",lastRun:"Last Run",nextRun:"Next Run",notifyOnFailure:"Notify on Failure",pause:"Pause",resume:"Resume",runNow:"Run Now",paused:"Paused",active:"Active",scheduleCreated:"Schedule created",createFailed:"Failed to create schedule",deleted:"Schedule deleted",deleteFailed:"Failed to delete",schedulePaused:"Schedule paused",pauseFailed:"Failed to pause",scheduleResumed:"Schedule resumed",resumeFailed:"Failed to resume",validationTriggered:"Validation triggered",runFailed:"Failed to run",fillRequired:"Please fill in all required fields",creating:"Creating...",cronPresets:{everyHour:"Every hour",every6Hours:"Every 6 hours",dailyMidnight:"Daily at midnight",daily8am:"Daily at 8 AM",everyMonday:"Every Monday",everyMonth:"Every month"}},ko:{title:"스케줄",subtitle:"예약된 검증 실행 관리",addSchedule:"스케줄 추가",newSchedule:"새 스케줄",editSchedule:"스케줄 편집",createSchedule:"스케줄 생성",createScheduleDesc:"데이터 소스의 자동 검증 실행 설정",noSchedules:"설정된 스케줄이 없습니다",noSchedulesYet:"스케줄이 없습니다",noSchedulesDesc:"검증 자동화를 위해 스케줄을 생성하세요",cronExpression:"Cron 표현식",cronFormat:"형식: 분 시 일 월 요일",customCron:"사용자 정의 Cron 표현식",selectSource:"소스 선택...",lastRun:"마지막 실행",nextRun:"다음 실행",notifyOnFailure:"실패 시 알림",pause:"일시정지",resume:"재개",runNow:"지금 실행",paused:"일시정지됨",active:"활성",scheduleCreated:"스케줄 생성됨",createFailed:"스케줄 생성 실패",deleted:"스케줄 삭제됨",deleteFailed:"삭제 실패",schedulePaused:"스케줄 일시정지됨",pauseFailed:"일시정지 실패",scheduleResumed:"스케줄 재개됨",resumeFailed:"재개 실패",validationTriggered:"검증 실행됨",runFailed:"실행 실패",fillRequired:"필수 항목을 모두 입력해주세요",creating:"생성 중...",cronPresets:{everyHour:"매시간",every6Hours:"6시간마다",dailyMidnight:"매일 자정",daily8am:"매일 오전 8시",everyMonday:"매주 월요일",everyMonth:"매월"}}}},$Se=["schedules::local::src/content/schedules.content.ts"],LSe={key:MSe,content:DSe,localIds:$Se},wr=h.forwardRef(({className:e,type:t,...n},r)=>l.jsx("input",{type:t,className:oe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:r,...n}));wr.displayName="Input";var Rh="Switch",[FSe]=nr(Rh),[BSe,USe]=FSe(Rh),HB=h.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,form:f,...d}=e,[p,v]=h.useState(null),b=Ce(t,w=>v(w)),y=h.useRef(!1),m=p?f||!!p.closest("form"):!0,[g,x]=Do({prop:o,defaultProp:i??!1,onChange:u,caller:Rh});return l.jsxs(BSe,{scope:n,checked:g,disabled:s,children:[l.jsx(de.button,{type:"button",role:"switch","aria-checked":g,"aria-required":a,"data-state":VB(g),"data-disabled":s?"":void 0,disabled:s,value:c,...d,ref:b,onClick:Q(e.onClick,w=>{x(E=>!E),m&&(y.current=w.isPropagationStopped(),y.current||w.stopPropagation())})}),m&&l.jsx(GB,{control:p,bubbles:!y.current,name:r,value:c,checked:g,required:a,disabled:s,form:f,style:{transform:"translateX(-100%)"}})]})});HB.displayName=Rh;var zB="SwitchThumb",WB=h.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=USe(zB,n);return l.jsx(de.span,{"data-state":VB(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});WB.displayName=zB;var HSe="SwitchBubbleInput",GB=h.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const a=h.useRef(null),s=Ce(a,i),c=ED(n),u=r2(t);return h.useEffect(()=>{const f=a.current;if(!f)return;const d=window.HTMLInputElement.prototype,v=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&v){const b=new Event("click",{bubbles:r});v.call(f,n),f.dispatchEvent(b)}},[c,n,r]),l.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:s,style:{...o.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});GB.displayName=HSe;function VB(e){return e?"checked":"unchecked"}var KB=HB,zSe=WB;const np=h.forwardRef(({className:e,...t},n)=>l.jsx(KB,{className:oe("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:l.jsx(zSe,{className:oe("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));np.displayName=KB.displayName;function WSe(){const e=me(Mi),t=me(LSe),n=me(Vt),r=me(FB),o=me(_0),{toast:i}=Pt(),a=h.useMemo(()=>[{label:t.cronPresets.everyHour,value:"0 * * * *"},{label:t.cronPresets.every6Hours,value:"0 */6 * * *"},{label:t.cronPresets.dailyMidnight,value:"0 0 * * *"},{label:t.cronPresets.daily8am,value:"0 8 * * *"},{label:t.cronPresets.everyMonday,value:"0 0 * * 1"},{label:t.cronPresets.everyMonth,value:"0 0 1 * *"}],[t]),[s,c]=h.useState([]),[u,f]=h.useState([]),[d,p]=h.useState(!0),[v,b]=h.useState(!1),[y,m]=h.useState(!1),[g,x]=h.useState(""),[w,E]=h.useState(""),[A,S]=h.useState("0 0 * * *"),[N,_]=h.useState(!0),C=h.useCallback(async()=>{try{const[I,$]=await Promise.all([Xc(),m7()]);c(I.data),f($.data)}catch(I){i({variant:"destructive",title:F(n.error),description:I instanceof Error?I.message:F(r.loadFailed)})}finally{p(!1)}},[i,n,r]);h.useEffect(()=>{C()},[C]);const P=async()=>{if(!g||!w||!A){i({variant:"destructive",title:F(n.error),description:F(t.fillRequired)});return}try{b(!0);const I=await v7({name:g,source_id:w,cron_expression:A,notify_on_failure:N});f($=>[I.data,...$]),m(!1),x(""),E(""),S("0 0 * * *"),i({title:F(t.scheduleCreated),description:`${I.data.name} created successfully`})}catch(I){i({variant:"destructive",title:F(t.createFailed),description:I instanceof Error?I.message:F(r.generic)})}finally{b(!1)}},O=async I=>{try{await y7(I),f($=>$.filter(k=>k.id!==I)),i({title:F(t.deleted)})}catch($){i({variant:"destructive",title:F(t.deleteFailed),description:$ instanceof Error?$.message:F(r.generic)})}},R=async I=>{try{const $=await g7(I);f(k=>k.map(M=>M.id===I?$.schedule:M)),i({title:F(t.schedulePaused)})}catch($){i({variant:"destructive",title:F(t.pauseFailed),description:$ instanceof Error?$.message:F(r.generic)})}},L=async I=>{try{const $=await x7(I);f(k=>k.map(M=>M.id===I?$.schedule:M)),i({title:F(t.scheduleResumed)})}catch($){i({variant:"destructive",title:F(t.resumeFailed),description:$ instanceof Error?$.message:F(r.generic)})}},j=async I=>{try{const $=await b7(I);i({title:F(t.validationTriggered),description:F($.passed?o.passed:o.failed)})}catch($){i({variant:"destructive",title:F(t.runFailed),description:$ instanceof Error?$.message:F(r.generic)})}},T=I=>{const $=s.find(k=>k.id===I);return($==null?void 0:$.name)||I.slice(0,8)};return d?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"p-6 space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-2xl font-bold",children:e.schedules}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Ms,{open:y,onOpenChange:m,children:[l.jsx($B,{asChild:!0,children:l.jsxs(Y,{children:[l.jsx(Jt,{className:"h-4 w-4 mr-2"}),t.newSchedule]})}),l.jsxs(Vi,{children:[l.jsxs(Ki,{children:[l.jsx(Yi,{children:t.createSchedule}),l.jsx(Ih,{children:t.createScheduleDesc})]}),l.jsxs("div",{className:"space-y-4 py-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:n.name}),l.jsx(wr,{placeholder:F(t.cronPresets.dailyMidnight),value:g,onChange:I=>x(I.target.value)})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:n.source}),l.jsxs(jt,{value:w,onValueChange:E,children:[l.jsx(xt,{children:l.jsx(Ct,{placeholder:F(t.selectSource)})}),l.jsx(bt,{children:s.map(I=>l.jsx(pe,{value:I.id,children:I.name},I.id))})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:n.schedule}),l.jsxs(jt,{value:A,onValueChange:S,children:[l.jsx(xt,{children:l.jsx(Ct,{})}),l.jsx(bt,{children:a.map(I=>l.jsx(pe,{value:I.value,children:I.label},I.value))})]}),l.jsx(wr,{placeholder:F(t.customCron),value:A,onChange:I=>S(I.target.value),className:"mt-2"}),l.jsx("p",{className:"text-xs text-muted-foreground",children:t.cronFormat})]}),l.jsxs("div",{className:"flex items-center space-x-2",children:[l.jsx(np,{id:"notify",checked:N,onCheckedChange:_}),l.jsx(yt,{htmlFor:"notify",children:t.notifyOnFailure})]})]}),l.jsxs(Ph,{children:[l.jsx(Y,{variant:"outline",onClick:()=>m(!1),children:n.cancel}),l.jsx(Y,{onClick:P,disabled:v,children:v?t.creating:n.create})]})]})]})]}),u.length===0?l.jsx(q,{children:l.jsxs(X,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(n6,{className:"h-12 w-12 text-muted-foreground mb-4"}),l.jsx("h3",{className:"text-lg font-medium mb-2",children:t.noSchedulesYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noSchedulesDesc}),l.jsxs(Y,{onClick:()=>m(!0),children:[l.jsx(Jt,{className:"h-4 w-4 mr-2"}),t.newSchedule]})]})}):l.jsx("div",{className:"space-y-4",children:u.map(I=>l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{className:"flex items-center gap-3",children:[l.jsx(Ap,{className:`h-5 w-5 ${I.is_active?"text-green-500":"text-muted-foreground"}`}),l.jsxs("div",{children:[l.jsx(ge,{className:"text-lg",children:I.name}),l.jsxs($r,{children:[n.source,": ",T(I.source_id)]})]})]}),l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx(se,{variant:I.is_active?"default":"secondary",children:I.is_active?t.active:t.paused}),l.jsxs(NM,{children:[l.jsx(_M,{asChild:!0,children:l.jsx(Y,{variant:"ghost",size:"sm",children:l.jsx(p6,{className:"h-4 w-4"})})}),l.jsxs(N0,{align:"end",children:[l.jsxs(ma,{onClick:()=>j(I.id),children:[l.jsx(v6,{className:"h-4 w-4 mr-2"}),t.runNow]}),I.is_active?l.jsxs(ma,{onClick:()=>R(I.id),children:[l.jsx(h6,{className:"h-4 w-4 mr-2"}),t.pause]}):l.jsxs(ma,{onClick:()=>L(I.id),children:[l.jsx(r0,{className:"h-4 w-4 mr-2"}),t.resume]}),l.jsxs(ma,{className:"text-destructive",onClick:()=>O(I.id),children:[l.jsx(Gr,{className:"h-4 w-4 mr-2"}),n.delete]})]})]})]})]})}),l.jsx(X,{children:l.jsxs("div",{className:"grid grid-cols-3 gap-4 text-sm",children:[l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground",children:t.cronExpression}),l.jsx("div",{className:"font-mono",children:I.cron_expression})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground",children:t.lastRun}),l.jsx("div",{children:I.last_run_at?pn(I.last_run_at):n.never})]}),l.jsxs("div",{children:[l.jsx("div",{className:"text-muted-foreground",children:t.nextRun}),l.jsx("div",{children:I.next_run_at&&I.is_active?pn(I.next_run_at):"-"})]})]})})]},I.id))})]})}const GSe="notifications",VSe={nodeType:"translation",translation:{en:{title:"Notifications",subtitle:"Configure notification channels and rules",channels:"Channels",rules:"Rules",logs:"Logs",addChannel:"Add Channel",addRule:"Add Rule",editChannel:"Edit Channel",editRule:"Edit Rule",testChannel:"Test",noChannels:"No notification channels configured",noRules:"No notification rules configured",noLogs:"No notification logs",channelTypes:{slack:"Slack",email:"Email",webhook:"Webhook"},conditions:{validation_failed:"Validation Failed",critical_issues:"Critical Issues Detected",high_issues:"High Severity Issues",schedule_failed:"Schedule Failed",drift_detected:"Drift Detected"},testSuccess:"Test notification sent successfully",testFailed:"Failed to send test notification",sent:"Sent",failed:"Failed",deleteChannel:"Delete Channel",deleteChannelConfirm:"Are you sure you want to delete this channel? This action cannot be undone.",channelDeleted:"Channel deleted successfully",deleteChannelFailed:"Failed to delete channel",deleteRule:"Delete Rule",deleteRuleConfirm:"Are you sure you want to delete this rule? This action cannot be undone.",ruleDeleted:"Rule deleted successfully",deleteRuleFailed:"Failed to delete rule"},ko:{title:"알림",subtitle:"알림 채널 및 규칙 설정",channels:"채널",rules:"규칙",logs:"로그",addChannel:"채널 추가",addRule:"규칙 추가",editChannel:"채널 편집",editRule:"규칙 편집",testChannel:"테스트",noChannels:"설정된 알림 채널이 없습니다",noRules:"설정된 알림 규칙이 없습니다",noLogs:"알림 로그가 없습니다",channelTypes:{slack:"Slack",email:"이메일",webhook:"웹훅"},conditions:{validation_failed:"검증 실패",critical_issues:"심각한 이슈 발견",high_issues:"높은 심각도 이슈",schedule_failed:"스케줄 실패",drift_detected:"드리프트 감지"},testSuccess:"테스트 알림이 성공적으로 전송되었습니다",testFailed:"테스트 알림 전송에 실패했습니다",sent:"전송됨",failed:"실패",deleteChannel:"채널 삭제",deleteChannelConfirm:"이 채널을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.",channelDeleted:"채널이 삭제되었습니다",deleteChannelFailed:"채널 삭제에 실패했습니다",deleteRule:"규칙 삭제",deleteRuleConfirm:"이 규칙을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.",ruleDeleted:"규칙이 삭제되었습니다",deleteRuleFailed:"규칙 삭제에 실패했습니다"}}},KSe=["notifications::local::src/content/notifications.content.ts"],YSe={key:GSe,content:VSe,localIds:KSe};var kh="Tabs",[qSe]=nr(kh,[kp]),YB=kp(),[XSe,Gb]=qSe(kh),qB=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:c="automatic",...u}=e,f=jp(s),[d,p]=Do({prop:r,onChange:o,defaultProp:i??"",caller:kh});return l.jsx(XSe,{scope:n,baseId:mr(),value:d,onValueChange:p,orientation:a,dir:f,activationMode:c,children:l.jsx(de.div,{dir:f,"data-orientation":a,...u,ref:t})})});qB.displayName=kh;var XB="TabsList",ZB=h.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Gb(XB,n),a=YB(n);return l.jsx(S2,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:l.jsx(de.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});ZB.displayName=XB;var QB="TabsTrigger",JB=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Gb(QB,n),s=YB(n),c=n4(a.baseId,r),u=r4(a.baseId,r),f=r===a.value;return l.jsx(A2,{asChild:!0,...s,focusable:!o,active:f,children:l.jsx(de.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:Q(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?a.onValueChange(r):d.preventDefault()}),onKeyDown:Q(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&a.onValueChange(r)}),onFocus:Q(e.onFocus,()=>{const d=a.activationMode!=="manual";!f&&!o&&d&&a.onValueChange(r)})})})});JB.displayName=QB;var e4="TabsContent",t4=h.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=Gb(e4,n),c=n4(s.baseId,r),u=r4(s.baseId,r),f=r===s.value,d=h.useRef(f);return h.useEffect(()=>{const p=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(p)},[]),l.jsx(Ar,{present:o||f,children:({present:p})=>l.jsx(de.div,{"data-state":f?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:p&&i})})});t4.displayName=e4;function n4(e,t){return`${e}-trigger-${t}`}function r4(e,t){return`${e}-content-${t}`}var ZSe=qB,o4=ZB,i4=JB,a4=t4;const Vb=ZSe,Mh=h.forwardRef(({className:e,...t},n)=>l.jsx(o4,{ref:n,className:oe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Mh.displayName=o4.displayName;const En=h.forwardRef(({className:e,...t},n)=>l.jsx(i4,{ref:n,className:oe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));En.displayName=i4.displayName;const Nn=h.forwardRef(({className:e,...t},n)=>l.jsx(a4,{ref:n,className:oe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Nn.displayName=a4.displayName;function Zu(e,t=[]){const[n,r]=h.useState({data:null,loading:!0,error:null}),o=h.useRef(e);o.current=e;const i=h.useCallback(async()=>{r(s=>({...s,loading:!0,error:null}));try{const s=await o.current();r({data:s,loading:!1,error:null})}catch(s){r({data:null,loading:!1,error:s})}},t);h.useEffect(()=>{i()},[i]);const a=h.useCallback(s=>{r(c=>({...c,data:s}))},[]);return{...n,refetch:i,mutate:a}}function ov(e){const[t,n]=h.useState({data:null,loading:!1,error:null}),r=h.useCallback(async i=>{n({data:null,loading:!0,error:null});try{const a=await e(i);return n({data:a,loading:!1,error:null}),a}catch(a){throw n({data:null,loading:!1,error:a}),a}},[e]),o=h.useCallback(()=>{n({data:null,loading:!1,error:null})},[]);return{...t,mutate:r,reset:o}}function QSe(e){switch(e){case"slack":return l.jsx(zc,{className:"h-4 w-4"});case"email":return l.jsx(u6,{className:"h-4 w-4"});case"webhook":return l.jsx(j6,{className:"h-4 w-4"});default:return l.jsx(jk,{className:"h-4 w-4"})}}function JSe(e){switch(e){case"sent":return l.jsxs(se,{className:"bg-green-500/10 text-green-500 border-green-500/20",children:[l.jsx(Wd,{className:"h-3 w-3 mr-1"}),"Sent"]});case"failed":return l.jsxs(se,{className:"bg-red-500/10 text-red-500 border-red-500/20",children:[l.jsx(To,{className:"h-3 w-3 mr-1"}),"Failed"]});default:return l.jsxs(se,{className:"bg-yellow-500/10 text-yellow-500 border-yellow-500/20",children:[l.jsx(Ap,{className:"h-3 w-3 mr-1"}),"Pending"]})}}function eAe(e){return{validation_failed:"Validation Failed",critical_issues:"Critical Issues",high_issues:"High Issues",schedule_failed:"Schedule Failed",drift_detected:"Drift Detected"}[e]||e}function tAe(){var L,j;const e=me(YSe),t=me(Vt),{toast:n}=Pt(),{confirm:r,ConfirmDialog:o}=Zc(),[i,a]=h.useState("channels"),{data:s,loading:c,refetch:u}=Zu(()=>w7(),[]),{data:f,loading:d,refetch:p}=Zu(()=>N7(),[]),{data:v,loading:b,refetch:y}=Zu(()=>C7({limit:50}),[]),{data:m}=Zu(()=>O7({hours:24}),[]),g=ov(E7),x=ov(A7),w=ov(j7),E=(s==null?void 0:s.data)||[],A=(f==null?void 0:f.data)||[],S=(v==null?void 0:v.data)||[],N=m==null?void 0:m.data,_=async T=>{try{const I=await g.mutate(T);I.success?n({title:F(e.testSuccess),variant:"default"}):n({title:F(e.testFailed),description:I.error,variant:"destructive"})}catch{n({title:F(e.testFailed),variant:"destructive"})}},C=async T=>{if(await r({title:F(e.deleteChannel),description:F(e.deleteChannelConfirm),confirmText:F(t.delete),variant:"destructive"}))try{await x.mutate(T),n({title:F(e.channelDeleted)}),u()}catch{n({title:F(e.deleteChannelFailed),variant:"destructive"})}},P=async T=>{try{await S7(T.id,{is_active:!T.is_active}),u()}catch{n({title:"Failed to update channel",variant:"destructive"})}},O=async T=>{if(await r({title:F(e.deleteRule),description:F(e.deleteRuleConfirm),confirmText:F(t.delete),variant:"destructive"}))try{await w.mutate(T),n({title:F(e.ruleDeleted)}),p()}catch{n({title:F(e.deleteRuleFailed),variant:"destructive"})}},R=async T=>{try{await _7(T.id,{is_active:!T.is_active}),p()}catch{n({title:"Failed to update rule",variant:"destructive"})}};return l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsx("h1",{className:"text-2xl font-bold",children:e.title}),l.jsx("p",{className:"text-muted-foreground",children:e.subtitle})]})}),N&&l.jsxs("div",{className:"grid gap-4 md:grid-cols-4",children:[l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:"Total (24h)"})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold",children:N.total})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:"Success Rate"})}),l.jsx(X,{children:l.jsxs("div",{className:"text-2xl font-bold",children:[N.success_rate,"%"]})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:e.sent})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold text-green-500",children:((L=N.by_status)==null?void 0:L.sent)||0})})]}),l.jsxs(q,{children:[l.jsx(ye,{className:"pb-2",children:l.jsx(ge,{className:"text-sm font-medium text-muted-foreground",children:e.failed})}),l.jsx(X,{children:l.jsx("div",{className:"text-2xl font-bold text-red-500",children:((j=N.by_status)==null?void 0:j.failed)||0})})]})]}),l.jsxs(Vb,{value:i,onValueChange:a,children:[l.jsxs(Mh,{children:[l.jsxs(En,{value:"channels",children:[e.channels," (",E.length,")"]}),l.jsxs(En,{value:"rules",children:[e.rules," (",A.length,")"]}),l.jsxs(En,{value:"logs",children:[e.logs," (",S.length,")"]})]}),l.jsxs(Nn,{value:"channels",className:"space-y-4",children:[l.jsxs("div",{className:"flex justify-between",children:[l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>u(),children:[l.jsx(fd,{className:"h-4 w-4 mr-2"}),t.refresh]}),l.jsxs(Y,{children:[l.jsx(Jt,{className:"h-4 w-4 mr-2"}),e.addChannel]})]}),c?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t.loading}):E.length===0?l.jsx(q,{children:l.jsx(X,{className:"py-8 text-center text-muted-foreground",children:e.noChannels})}):l.jsx(q,{children:l.jsxs(jl,{children:[l.jsx(Cl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:t.name}),l.jsx(Xe,{children:t.type}),l.jsx(Xe,{children:"Config"}),l.jsx(Xe,{children:t.status}),l.jsx(Xe,{className:"text-right",children:t.actions})]})}),l.jsx(Ol,{children:E.map(T=>l.jsxs(lr,{children:[l.jsx(Ke,{className:"font-medium",children:T.name}),l.jsx(Ke,{children:l.jsxs("div",{className:"flex items-center gap-2",children:[QSe(T.type),l.jsx("span",{className:"capitalize",children:T.type})]})}),l.jsx(Ke,{className:"text-muted-foreground text-sm",children:T.config_summary}),l.jsx(Ke,{children:l.jsx(np,{checked:T.is_active,onCheckedChange:()=>P(T)})}),l.jsx(Ke,{className:"text-right",children:l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>_(T.id),disabled:g.loading,children:l.jsx(Pk,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"sm",children:l.jsx(TS,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>C(T.id),children:l.jsx(Gr,{className:"h-4 w-4 text-red-500"})})]})})]},T.id))})]})})]}),l.jsxs(Nn,{value:"rules",className:"space-y-4",children:[l.jsxs("div",{className:"flex justify-between",children:[l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>p(),children:[l.jsx(fd,{className:"h-4 w-4 mr-2"}),t.refresh]}),l.jsxs(Y,{children:[l.jsx(Jt,{className:"h-4 w-4 mr-2"}),e.addRule]})]}),d?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t.loading}):A.length===0?l.jsx(q,{children:l.jsx(X,{className:"py-8 text-center text-muted-foreground",children:e.noRules})}):l.jsx(q,{children:l.jsxs(jl,{children:[l.jsx(Cl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:t.name}),l.jsx(Xe,{children:"Condition"}),l.jsx(Xe,{children:"Channels"}),l.jsx(Xe,{children:t.status}),l.jsx(Xe,{className:"text-right",children:t.actions})]})}),l.jsx(Ol,{children:A.map(T=>l.jsxs(lr,{children:[l.jsx(Ke,{className:"font-medium",children:T.name}),l.jsx(Ke,{children:l.jsx(se,{variant:"outline",children:eAe(T.condition)})}),l.jsx(Ke,{children:l.jsxs("span",{className:"text-muted-foreground",children:[T.channel_ids.length," channel(s)"]})}),l.jsx(Ke,{children:l.jsx(np,{checked:T.is_active,onCheckedChange:()=>R(T)})}),l.jsx(Ke,{className:"text-right",children:l.jsxs("div",{className:"flex items-center justify-end gap-2",children:[l.jsx(Y,{variant:"ghost",size:"sm",children:l.jsx(TS,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>O(T.id),children:l.jsx(Gr,{className:"h-4 w-4 text-red-500"})})]})})]},T.id))})]})})]}),l.jsxs(Nn,{value:"logs",className:"space-y-4",children:[l.jsx("div",{className:"flex justify-between",children:l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>y(),children:[l.jsx(fd,{className:"h-4 w-4 mr-2"}),t.refresh]})}),b?l.jsx("div",{className:"text-center py-8 text-muted-foreground",children:t.loading}):S.length===0?l.jsx(q,{children:l.jsx(X,{className:"py-8 text-center text-muted-foreground",children:e.noLogs})}):l.jsx(q,{children:l.jsxs(jl,{children:[l.jsx(Cl,{children:l.jsxs(lr,{children:[l.jsx(Xe,{children:t.status}),l.jsx(Xe,{children:"Event"}),l.jsx(Xe,{children:"Message"}),l.jsx(Xe,{children:"Time"})]})}),l.jsx(Ol,{children:S.map(T=>l.jsxs(lr,{children:[l.jsx(Ke,{children:JSe(T.status)}),l.jsx(Ke,{children:l.jsx(se,{variant:"outline",children:T.event_type})}),l.jsx(Ke,{className:"max-w-xs truncate text-muted-foreground",children:T.message_preview}),l.jsx(Ke,{className:"text-muted-foreground text-sm",children:pn(T.created_at)})]},T.id))})]})})]})]}),l.jsx(o,{})]})}const nAe="glossary",rAe={nodeType:"translation",translation:{en:{title:"Business Glossary",subtitle:"Manage business terms and definitions",terms:"Terms",categories:"Categories",addTerm:"Add Term",editTerm:"Edit Term",deleteTerm:"Delete Term",addCategory:"Add Category",termName:"Term Name",definition:"Definition",category:"Category",owner:"Owner",selectCategory:"Select category",noCategory:"No category",relationships:"Relationships",synonyms:"Synonyms",relatedTerms:"Related Terms",addRelationship:"Add Relationship",selectTerm:"Select term",history:"History",noHistory:"No changes recorded",changedBy:"Changed by",changedFrom:"From",changedTo:"To",status:{label:"Status",draft:"Draft",approved:"Approved",deprecated:"Deprecated"},relationshipTypes:{synonym:"Synonym",related:"Related",parent:"Parent",child:"Child"},searchTerms:"Search terms...",filterByCategory:"Filter by category",filterByStatus:"Filter by status",allCategories:"All categories",allStatuses:"All statuses",noTerms:"No terms found",noTermsYet:"No terms yet",noTermsDesc:"Add your first business term to start building your glossary",addFirstTerm:"Add Your First Term",confirmDelete:"Are you sure you want to delete this term? This action cannot be undone.",loadError:"Failed to load terms",createSuccess:"Term created successfully",createError:"Failed to create term",updateSuccess:"Term updated successfully",updateError:"Failed to update term",deleteSuccess:"Term deleted successfully",deleteError:"Failed to delete term",tabs:{overview:"Overview",relationships:"Relationships",history:"History",comments:"Comments"}},ko:{title:"비즈니스 용어집",subtitle:"비즈니스 용어와 정의 관리",terms:"용어",categories:"카테고리",addTerm:"용어 추가",editTerm:"용어 수정",deleteTerm:"용어 삭제",addCategory:"카테고리 추가",termName:"용어명",definition:"정의",category:"카테고리",owner:"담당자",selectCategory:"카테고리 선택",noCategory:"카테고리 없음",relationships:"관계",synonyms:"동의어",relatedTerms:"관련 용어",addRelationship:"관계 추가",selectTerm:"용어 선택",history:"변경 이력",noHistory:"기록된 변경 이력 없음",changedBy:"변경자",changedFrom:"이전",changedTo:"이후",status:{label:"상태",draft:"임시저장",approved:"승인됨",deprecated:"폐기됨"},relationshipTypes:{synonym:"동의어",related:"관련",parent:"상위",child:"하위"},searchTerms:"용어 검색...",filterByCategory:"카테고리 필터",filterByStatus:"상태 필터",allCategories:"모든 카테고리",allStatuses:"모든 상태",noTerms:"용어가 없습니다",noTermsYet:"등록된 용어가 없습니다",noTermsDesc:"첫 번째 비즈니스 용어를 추가하여 용어집을 구축하세요",addFirstTerm:"첫 번째 용어 추가",confirmDelete:"이 용어를 삭제하시겠습니까? 이 작업은 취소할 수 없습니다.",loadError:"용어를 불러오지 못했습니다",createSuccess:"용어가 생성되었습니다",createError:"용어 생성에 실패했습니다",updateSuccess:"용어가 수정되었습니다",updateError:"용어 수정에 실패했습니다",deleteSuccess:"용어가 삭제되었습니다",deleteError:"용어 삭제에 실패했습니다",tabs:{overview:"개요",relationships:"관계",history:"이력",comments:"댓글"}}}},oAe=["glossary::local::src/content/glossary.content.ts"],Kb={key:nAe,content:rAe,localIds:oAe},iAe={},e_=e=>{let t;const n=new Set,r=(f,d)=>{const p=typeof f=="function"?f(t):f;if(!Object.is(p,t)){const v=t;t=d??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(b=>b(t,v))}},o=()=>t,c={setState:r,getState:o,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(iAe?"pip":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,c);return c},aAe=e=>e?e_(e):e_;var s4={exports:{}},l4={},c4={exports:{}},u4={};/**
|
|
559
|
-
* @license React
|
|
560
|
-
* use-sync-external-store-shim.production.js
|
|
561
|
-
*
|
|
562
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
563
|
-
*
|
|
564
|
-
* This source code is licensed under the MIT license found in the
|
|
565
|
-
* LICENSE file in the root directory of this source tree.
|
|
566
|
-
*/var ps=h;function sAe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lAe=typeof Object.is=="function"?Object.is:sAe,cAe=ps.useState,uAe=ps.useEffect,dAe=ps.useLayoutEffect,fAe=ps.useDebugValue;function pAe(e,t){var n=t(),r=cAe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return dAe(function(){o.value=n,o.getSnapshot=t,iv(o)&&i({inst:o})},[e,n,t]),uAe(function(){return iv(o)&&i({inst:o}),e(function(){iv(o)&&i({inst:o})})},[e]),fAe(n),n}function iv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lAe(e,n)}catch{return!0}}function hAe(e,t){return t()}var mAe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?hAe:pAe;u4.useSyncExternalStore=ps.useSyncExternalStore!==void 0?ps.useSyncExternalStore:mAe;c4.exports=u4;var vAe=c4.exports;/**
|
|
567
|
-
* @license React
|
|
568
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
569
|
-
*
|
|
570
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
571
|
-
*
|
|
572
|
-
* This source code is licensed under the MIT license found in the
|
|
573
|
-
* LICENSE file in the root directory of this source tree.
|
|
574
|
-
*/var Dh=h,yAe=vAe;function gAe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xAe=typeof Object.is=="function"?Object.is:gAe,bAe=yAe.useSyncExternalStore,wAe=Dh.useRef,SAe=Dh.useEffect,AAe=Dh.useMemo,EAe=Dh.useDebugValue;l4.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=wAe(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=AAe(function(){function c(v){if(!u){if(u=!0,f=v,v=r(v),o!==void 0&&a.hasValue){var b=a.value;if(o(b,v))return d=b}return d=v}if(b=d,xAe(f,v))return b;var y=r(v);return o!==void 0&&o(b,y)?(f=v,b):(f=v,d=y)}var u=!1,f,d,p=n===void 0?null:n;return[function(){return c(t())},p===null?void 0:function(){return c(p())}]},[t,n,r,o]);var s=bAe(e,i[0],i[1]);return SAe(function(){a.hasValue=!0,a.value=s},[s]),EAe(s),s};s4.exports=l4;var NAe=s4.exports;const _Ae=Re(NAe),d4={},{useDebugValue:jAe}=D,{useSyncExternalStoreWithSelector:CAe}=_Ae;let t_=!1;const OAe=e=>e;function TAe(e,t=OAe,n){(d4?"pip":void 0)!=="production"&&n&&!t_&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),t_=!0);const r=CAe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return jAe(r),r}const n_=e=>{(d4?"pip":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?aAe(e):e,n=(r,o)=>TAe(t,r,o);return Object.assign(n,t),n},f4=e=>e?n_(e):n_,$h=f4(e=>({terms:[],categories:[],selectedTerm:null,loading:!1,error:null,fetchTerms:async t=>{e({loading:!0,error:null});try{const n=await T7(t);e({terms:n,loading:!1})}catch(n){const r=n instanceof Error?n.message:"Failed to fetch terms";e({error:r,loading:!1})}},fetchTerm:async t=>{e({loading:!0,error:null});try{const n=await TM(t);e({selectedTerm:n,loading:!1})}catch(n){const r=n instanceof Error?n.message:"Failed to fetch term";e({error:r,loading:!1})}},createTerm:async t=>{e({loading:!0,error:null});try{const n=await P7(t);return e(r=>({terms:[n,...r.terms],loading:!1})),n}catch(n){const r=n instanceof Error?n.message:"Failed to create term";throw e({error:r,loading:!1}),n}},updateTerm:async(t,n)=>{e({loading:!0,error:null});try{const r=await I7(t,n);return e(o=>{var i;return{terms:o.terms.map(a=>a.id===t?r:a),selectedTerm:((i=o.selectedTerm)==null?void 0:i.id)===t?r:o.selectedTerm,loading:!1}}),r}catch(r){const o=r instanceof Error?r.message:"Failed to update term";throw e({error:o,loading:!1}),r}},deleteTerm:async t=>{e({loading:!0,error:null});try{await R7(t),e(n=>{var r;return{terms:n.terms.filter(o=>o.id!==t),selectedTerm:((r=n.selectedTerm)==null?void 0:r.id)===t?null:n.selectedTerm,loading:!1}})}catch(n){const r=n instanceof Error?n.message:"Failed to delete term";throw e({error:r,loading:!1}),n}},clearSelectedTerm:()=>e({selectedTerm:null}),fetchCategories:async()=>{try{const t=await D7();e({categories:t})}catch(t){const n=t instanceof Error?t.message:"Failed to fetch categories";e({error:n})}},createCategory:async t=>{try{const n=await $7(t);return e(r=>({categories:[...r.categories,n]})),n}catch(n){const r=n instanceof Error?n.message:"Failed to create category";throw e({error:r}),n}},updateCategory:async(t,n)=>{try{const r=await L7(t,n);return e(o=>({categories:o.categories.map(i=>i.id===t?r:i)})),r}catch(r){const o=r instanceof Error?r.message:"Failed to update category";throw e({error:o}),r}},deleteCategory:async t=>{try{await F7(t),e(n=>({categories:n.categories.filter(r=>r.id!==t)}))}catch(n){const r=n instanceof Error?n.message:"Failed to delete category";throw e({error:r}),n}},clearError:()=>e({error:null})}));function PAe({open:e,onOpenChange:t,termId:n,categories:r,onSuccess:o}){const i=me(Kb),a=me(Vt),{createTerm:s,updateTerm:c}=$h(),{toast:u}=Pt(),[f,d]=h.useState(!1),[p,v]=h.useState(""),[b,y]=h.useState(""),[m,g]=h.useState(""),[x,w]=h.useState("draft"),[E,A]=h.useState(""),S=!!n;h.useEffect(()=>{e&&n?TM(n).then(_=>{v(_.name),y(_.definition),g(_.category_id||""),w(_.status),A(_.owner_id||"")}):e&&(v(""),y(""),g(""),w("draft"),A(""))},[e,n]);const N=async _=>{if(_.preventDefault(),!(!p.trim()||!b.trim())){d(!0);try{S&&n?(await c(n,{name:p,definition:b,category_id:m||void 0,status:x,owner_id:E||void 0}),u({title:F(a.success),description:F(i.updateSuccess)})):(await s({name:p,definition:b,category_id:m||void 0,status:x,owner_id:E||void 0}),u({title:F(a.success),description:F(i.createSuccess)})),o==null||o()}catch{u({title:F(a.error),description:F(S?i.updateError:i.createError),variant:"destructive"})}finally{d(!1)}}};return l.jsx(Ms,{open:e,onOpenChange:t,children:l.jsxs(Vi,{className:"sm:max-w-[500px]",children:[l.jsx(Ki,{children:l.jsx(Yi,{children:S?i.editTerm:i.addTerm})}),l.jsxs("form",{onSubmit:N,className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{htmlFor:"name",children:i.termName}),l.jsx(wr,{id:"name",value:p,onChange:_=>v(_.target.value),placeholder:"Customer Lifetime Value",required:!0})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{htmlFor:"definition",children:i.definition}),l.jsx("textarea",{id:"definition",value:b,onChange:_=>y(_.target.value),placeholder:"The total revenue a business can expect...",className:"w-full min-h-[100px] rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",required:!0})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:i.category}),l.jsxs(jt,{value:m,onValueChange:g,children:[l.jsx(xt,{children:l.jsx(Ct,{placeholder:F(i.selectCategory)})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:i.noCategory}),r.map(_=>l.jsx(pe,{value:_.id,children:_.name},_.id))]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:i.status.label}),l.jsxs(jt,{value:x,onValueChange:_=>w(_),children:[l.jsx(xt,{children:l.jsx(Ct,{})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"draft",children:i.status.draft}),l.jsx(pe,{value:"approved",children:i.status.approved}),l.jsx(pe,{value:"deprecated",children:i.status.deprecated})]})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{htmlFor:"owner",children:i.owner}),l.jsx(wr,{id:"owner",value:E,onChange:_=>A(_.target.value),placeholder:"John Doe"})]}),l.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[l.jsx(Y,{type:"button",variant:"outline",onClick:()=>t(!1),children:a.cancel}),l.jsx(Y,{type:"submit",disabled:f,children:f?a.saving:a.save})]})]})]})})}function IAe(){const e=me(Mi),t=me(Kb),n=me(Vt),{terms:r,categories:o,loading:i,fetchTerms:a,fetchCategories:s,deleteTerm:c}=$h(),{toast:u}=Pt(),{confirm:f,ConfirmDialog:d}=Zc(),[p,v]=h.useState(""),[b,y]=h.useState(""),[m,g]=h.useState(""),[x,w]=h.useState(!1),[E,A]=h.useState(null),S=h.useCallback(async()=>{await Promise.all([a({search:p||void 0,category_id:b||void 0,status:m||void 0}),s()])},[a,s,p,b,m]);h.useEffect(()=>{S()},[S]);const N=async P=>{if(await f({title:F(t.deleteTerm),description:F(t.confirmDelete),confirmText:F(n.delete),variant:"destructive"}))try{await c(P),u({title:F(n.success),description:F(t.deleteSuccess)})}catch{u({title:F(n.error),description:F(t.deleteError),variant:"destructive"})}},_=P=>{switch(P){case"approved":return"success";case"deprecated":return"destructive";default:return"secondary"}},C=P=>{switch(P){case"approved":return t.status.approved;case"deprecated":return t.status.deprecated;default:return t.status.draft}};return i&&r.length===0?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.glossary}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Jt,{className:"mr-2 h-4 w-4"}),t.addTerm]})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(o0,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(wr,{placeholder:F(t.searchTerms),value:p,onChange:P=>v(P.target.value),className:"pl-10"})]}),l.jsxs(jt,{value:b,onValueChange:y,children:[l.jsxs(xt,{className:"w-[200px]",children:[l.jsx(t0,{className:"mr-2 h-4 w-4"}),l.jsx(Ct,{placeholder:F(t.filterByCategory)})]}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:t.allCategories}),o.map(P=>l.jsx(pe,{value:P.id,children:P.name},P.id))]})]}),l.jsxs(jt,{value:m,onValueChange:g,children:[l.jsx(xt,{className:"w-[180px]",children:l.jsx(Ct,{placeholder:F(t.filterByStatus)})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:t.allStatuses}),l.jsx(pe,{value:"draft",children:t.status.draft}),l.jsx(pe,{value:"approved",children:t.status.approved}),l.jsx(pe,{value:"deprecated",children:t.status.deprecated})]})]})]}),r.length===0?l.jsx(q,{children:l.jsxs(X,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(Ba,{className:"h-16 w-16 text-muted-foreground/50 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold mb-2",children:t.noTermsYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noTermsDesc}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Jt,{className:"mr-2 h-4 w-4"}),t.addFirstTerm]})]})}):l.jsx("div",{className:"grid gap-4",children:r.map(P=>l.jsx(q,{children:l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-start gap-4 flex-1",children:[l.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Ba,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx(Pe,{to:`/glossary/${P.id}`,className:"font-semibold hover:text-primary transition-colors",children:P.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mt-1",children:P.definition}),l.jsxs("div",{className:"flex items-center gap-2 mt-2 flex-wrap",children:[l.jsx(se,{variant:_(P.status),children:C(P.status)}),P.category&&l.jsx(se,{variant:"outline",children:P.category.name}),P.owner_id&&l.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.owner,": ",P.owner_id]})]})]})]}),l.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>{A(P.id),w(!0)},children:l.jsx(Ua,{className:"h-4 w-4"})}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>N(P.id),children:l.jsx(Gr,{className:"h-4 w-4 text-destructive"})})]})]})})},P.id))}),l.jsx(PAe,{open:x,onOpenChange:P=>{w(P),P||A(null)},termId:E,categories:o,onSuccess:()=>{S(),w(!1),A(null)}}),l.jsx(d,{})]})}const RAe="collaboration",kAe={nodeType:"translation",translation:{en:{comments:"Comments",addComment:"Add Comment",editComment:"Edit",deleteComment:"Delete",noComments:"No comments yet",writeComment:"Write a comment...",reply:"Reply",replyTo:"Reply to comment",cancelReply:"Cancel",postComment:"Post",commentPosted:"Comment posted",commentUpdated:"Comment updated",commentDeleted:"Comment deleted",commentError:"Failed to post comment",confirmDeleteComment:"Are you sure you want to delete this comment?",activity:"Activity",recentActivity:"Recent Activity",allActivity:"All Activity",noActivity:"No activity recorded",loadMore:"Load more",actions:{created:"created",updated:"updated",deleted:"deleted",commented:"commented on"},resourceTypes:{term:"term",asset:"asset",column:"column"},timeAgo:{justNow:"Just now",minutesAgo:"{count} minutes ago",hoursAgo:"{count} hours ago",daysAgo:"{count} days ago",weeksAgo:"{count} weeks ago",monthsAgo:"{count} months ago"},filterByResource:"Filter by resource",allResources:"All resources"},ko:{comments:"댓글",addComment:"댓글 추가",editComment:"수정",deleteComment:"삭제",noComments:"댓글이 없습니다",writeComment:"댓글을 작성하세요...",reply:"답글",replyTo:"답글 작성",cancelReply:"취소",postComment:"등록",commentPosted:"댓글이 등록되었습니다",commentUpdated:"댓글이 수정되었습니다",commentDeleted:"댓글이 삭제되었습니다",commentError:"댓글 등록에 실패했습니다",confirmDeleteComment:"이 댓글을 삭제하시겠습니까?",activity:"활동",recentActivity:"최근 활동",allActivity:"모든 활동",noActivity:"기록된 활동이 없습니다",loadMore:"더 보기",actions:{created:"생성됨",updated:"수정됨",deleted:"삭제됨",commented:"댓글 작성"},resourceTypes:{term:"용어",asset:"자산",column:"컬럼"},timeAgo:{justNow:"방금 전",minutesAgo:"{count}분 전",hoursAgo:"{count}시간 전",daysAgo:"{count}일 전",weeksAgo:"{count}주 전",monthsAgo:"{count}개월 전"},filterByResource:"리소스 필터",allResources:"모든 리소스"}}},MAe=["collaboration::local::src/content/collaboration.content.ts"],Yb={key:RAe,content:kAe,localIds:MAe};function p4({resourceType:e,resourceId:t}){const n=me(Yb),r=me(Vt),{toast:o}=Pt(),{confirm:i,ConfirmDialog:a}=Zc(),[s,c]=h.useState([]),[u,f]=h.useState(!0),[d,p]=h.useState(""),[v,b]=h.useState(null),[y,m]=h.useState(""),[g,x]=h.useState(null),[w,E]=h.useState(""),[A,S]=h.useState(!1),N=h.useCallback(async()=>{try{f(!0);const j=await V7(e,t);c(j)}catch{o({title:F(r.error),description:F(n.commentError),variant:"destructive"})}finally{f(!1)}},[e,t,o,r,n]);h.useEffect(()=>{N()},[N]);const _=async()=>{if(d.trim()){S(!0);try{const j=await lA({resource_type:e,resource_id:t,content:d.trim()});c([{...j,replies:[]},...s]),p(""),o({title:F(r.success),description:F(n.commentPosted)})}catch{o({title:F(r.error),description:F(n.commentError),variant:"destructive"})}finally{S(!1)}}},C=async()=>{if(!(!v||!y.trim())){S(!0);try{const j=await lA({resource_type:e,resource_id:t,content:y.trim(),parent_id:v});c(s.map(T=>T.id===v?{...T,replies:[...T.replies,{...j,replies:[]}]}:T)),b(null),m(""),o({title:F(r.success),description:F(n.commentPosted)})}catch{o({title:F(r.error),description:F(n.commentError),variant:"destructive"})}finally{S(!1)}}},P=async()=>{if(!(!g||!w.trim())){S(!0);try{await K7(g,{content:w.trim()}),c(s.map(j=>j.id===g?{...j,content:w.trim()}:{...j,replies:j.replies.map(T=>T.id===g?{...T,content:w.trim()}:T)})),x(null),E(""),o({title:F(r.success),description:F(n.commentUpdated)})}catch{o({title:F(r.error),description:F(n.commentError),variant:"destructive"})}finally{S(!1)}}},O=async j=>{if(await i({title:F(n.deleteComment),description:F(n.confirmDeleteComment),confirmText:F(r.delete),variant:"destructive"}))try{await Y7(j),c(s.filter(I=>I.id!==j).map(I=>({...I,replies:I.replies.filter($=>$.id!==j)}))),o({title:F(r.success),description:F(n.commentDeleted)})}catch{o({title:F(r.error),description:F(n.commentError),variant:"destructive"})}},R=j=>{x(j.id),E(j.content),b(null)},L=(j,T=!1)=>{const I=g===j.id;return l.jsxs("div",{className:`${T?"ml-8 border-l-2 pl-4":""}`,children:[l.jsx("div",{className:"p-3 rounded-lg border bg-card",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex-1",children:[l.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[l.jsx("span",{className:"font-medium",children:j.author_id||"Anonymous"}),l.jsx("span",{className:"text-muted-foreground",children:"·"}),l.jsx("span",{className:"text-muted-foreground",children:pn(j.created_at)})]}),I?l.jsxs("div",{className:"mt-2 space-y-2",children:[l.jsx("textarea",{value:w,onChange:$=>E($.target.value),className:"w-full min-h-[60px] rounded-md border border-input bg-background px-3 py-2 text-sm",autoFocus:!0}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(Y,{size:"sm",onClick:P,disabled:A,children:r.save}),l.jsx(Y,{size:"sm",variant:"ghost",onClick:()=>{x(null),E("")},children:r.cancel})]})]}):l.jsx("p",{className:"mt-1 text-sm",children:j.content})]}),!I&&l.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[!T&&l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>{b(j.id),x(null)},children:l.jsx(y6,{className:"h-3 w-3"})}),l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>R(j),children:l.jsx(Ua,{className:"h-3 w-3"})}),l.jsx(Y,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>O(j.id),children:l.jsx(Gr,{className:"h-3 w-3 text-destructive"})})]})]})}),v===j.id&&l.jsxs("div",{className:"ml-8 mt-2 space-y-2",children:[l.jsx("textarea",{value:y,onChange:$=>m($.target.value),placeholder:F(n.replyTo),className:"w-full min-h-[60px] rounded-md border border-input bg-background px-3 py-2 text-sm",autoFocus:!0}),l.jsxs("div",{className:"flex gap-2",children:[l.jsx(Y,{size:"sm",onClick:C,disabled:A,children:n.reply}),l.jsx(Y,{size:"sm",variant:"ghost",onClick:()=>{b(null),m("")},children:n.cancelReply})]})]}),j.replies.length>0&&l.jsx("div",{className:"mt-2 space-y-2",children:j.replies.map($=>L($,!0))})]},j.id)};return u?l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx("textarea",{value:d,onChange:j=>p(j.target.value),placeholder:F(n.writeComment),className:"w-full min-h-[80px] rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"}),l.jsx("div",{className:"flex justify-end",children:l.jsxs(Y,{onClick:_,disabled:A||!d.trim(),children:[l.jsx(Pk,{className:"mr-2 h-4 w-4"}),n.postComment]})})]}),s.length===0?l.jsxs("div",{className:"text-center py-8",children:[l.jsx(zc,{className:"h-12 w-12 mx-auto text-muted-foreground/50 mb-2"}),l.jsx("p",{className:"text-muted-foreground",children:n.noComments})]}):l.jsx("div",{className:"space-y-4",children:s.map(j=>L(j))}),l.jsx(a,{})]})}function DAe(){var w;const{id:e}=ki(),t=me(Kb),n=me(Vt),{selectedTerm:r,loading:o,fetchTerm:i,fetchCategories:a,clearSelectedTerm:s}=$h(),{toast:c}=Pt(),[u,f]=h.useState([]),[d,p]=h.useState([]),[,v]=h.useState(!1),b=h.useCallback(async()=>{if(e)try{await Promise.all([i(e),a()]),v(!0);const[E,A]=await Promise.all([k7(e),M7(e)]);f(E),p(A)}catch{c({title:"Error",description:"Failed to load term details",variant:"destructive"})}finally{v(!1)}},[e,i,a,c]);h.useEffect(()=>(b(),()=>s()),[b,s]);const y=E=>{switch(E){case"approved":return"success";case"deprecated":return"destructive";default:return"secondary"}},m=E=>{switch(E){case"approved":return t.status.approved;case"deprecated":return t.status.deprecated;default:return t.status.draft}};if(o||!r)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});const g=d.filter(E=>E.relationship_type==="synonym"),x=d.filter(E=>E.relationship_type==="related");return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:"/glossary",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Li,{className:"mr-2 h-4 w-4"}),n.back]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(Ba,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:r.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx(se,{variant:y(r.status),children:m(r.status)}),r.category&&l.jsx(se,{variant:"outline",children:r.category.name})]})]})]}),l.jsx(Y,{variant:"outline",asChild:!0,children:l.jsxs(Pe,{to:`/glossary/${e}/edit`,children:[l.jsx(Ua,{className:"mr-2 h-4 w-4"}),n.edit]})})]}),l.jsxs(Vb,{defaultValue:"overview",className:"space-y-4",children:[l.jsxs(Mh,{children:[l.jsx(En,{value:"overview",children:t.tabs.overview}),l.jsx(En,{value:"relationships",children:t.tabs.relationships}),l.jsx(En,{value:"history",children:t.tabs.history}),l.jsx(En,{value:"comments",children:t.tabs.comments})]}),l.jsxs(Nn,{value:"overview",className:"space-y-4",children:[l.jsxs(q,{children:[l.jsx(ye,{children:l.jsx(ge,{children:t.definition})}),l.jsx(X,{children:l.jsx("p",{className:"text-muted-foreground",children:r.definition})})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[l.jsxs(q,{children:[l.jsx(ye,{children:l.jsx(ge,{className:"text-base",children:t.category})}),l.jsx(X,{children:l.jsx("p",{children:((w=r.category)==null?void 0:w.name)||t.noCategory})})]}),l.jsxs(q,{children:[l.jsx(ye,{children:l.jsx(ge,{className:"text-base",children:t.owner})}),l.jsx(X,{children:l.jsx("p",{children:r.owner_id||"-"})})]})]}),(g.length>0||x.length>0)&&l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(bl,{className:"h-5 w-5"}),t.relationships]})}),l.jsxs(X,{className:"space-y-4",children:[g.length>0&&l.jsxs("div",{children:[l.jsx("h4",{className:"text-sm font-medium mb-2",children:t.synonyms}),l.jsx("div",{className:"flex flex-wrap gap-2",children:g.map(E=>l.jsx(Pe,{to:`/glossary/${E.target_term.id}`,children:l.jsx(se,{variant:"outline",className:"cursor-pointer hover:bg-accent",children:E.target_term.name})},E.id))})]}),x.length>0&&l.jsxs("div",{children:[l.jsx("h4",{className:"text-sm font-medium mb-2",children:t.relatedTerms}),l.jsx("div",{className:"flex flex-wrap gap-2",children:x.map(E=>l.jsx(Pe,{to:`/glossary/${E.target_term.id}`,children:l.jsx(se,{variant:"outline",className:"cursor-pointer hover:bg-accent",children:E.target_term.name})},E.id))})]})]})]})]}),l.jsxs(Nn,{value:"relationships",className:"space-y-4",children:[l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(bl,{className:"h-5 w-5"}),t.synonyms]})}),l.jsx(X,{children:g.length===0?l.jsx("p",{className:"text-muted-foreground text-sm",children:"-"}):l.jsx("div",{className:"space-y-2",children:g.map(E=>l.jsxs(Pe,{to:`/glossary/${E.target_term.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-medium",children:E.target_term.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:E.target_term.definition})]}),l.jsx(se,{variant:"secondary",children:t.relationshipTypes.synonym})]},E.id))})})]}),l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(bl,{className:"h-5 w-5"}),t.relatedTerms]})}),l.jsx(X,{children:x.length===0?l.jsx("p",{className:"text-muted-foreground text-sm",children:"-"}):l.jsx("div",{className:"space-y-2",children:x.map(E=>l.jsxs(Pe,{to:`/glossary/${E.target_term.id}`,className:"flex items-center justify-between p-3 rounded-lg border hover:bg-accent transition-colors",children:[l.jsxs("div",{children:[l.jsx("p",{className:"font-medium",children:E.target_term.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1",children:E.target_term.definition})]}),l.jsx(se,{variant:"secondary",children:t.relationshipTypes.related})]},E.id))})})]})]}),l.jsx(Nn,{value:"history",children:l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(ly,{className:"h-5 w-5"}),t.history]})}),l.jsx(X,{children:u.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:t.noHistory}):l.jsx("div",{className:"space-y-3",children:u.map(E=>l.jsx("div",{className:"flex items-start gap-4 p-3 rounded-lg border",children:l.jsxs("div",{className:"flex-1",children:[l.jsxs("p",{className:"font-medium",children:[E.field_name," updated"]}),l.jsxs("div",{className:"text-sm text-muted-foreground mt-1",children:[l.jsxs("span",{children:[t.changedFrom,": ",E.old_value||"-"]}),l.jsx("span",{className:"mx-2",children:"→"}),l.jsxs("span",{children:[t.changedTo,": ",E.new_value||"-"]})]}),l.jsxs("p",{className:"text-xs text-muted-foreground mt-1",children:[t.changedBy,": ",E.changed_by," · ",pn(E.changed_at)]})]})},E.id))})})]})}),l.jsx(Nn,{value:"comments",children:l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(zc,{className:"h-5 w-5"}),t.tabs.comments]})}),l.jsx(X,{children:l.jsx(p4,{resourceType:"term",resourceId:e})})]})})]})]})}const $Ae="catalog",LAe={nodeType:"translation",translation:{en:{title:"Data Catalog",subtitle:"Browse and manage data assets",assets:"Assets",addAsset:"Add Asset",editAsset:"Edit Asset",deleteAsset:"Delete Asset",addColumn:"Add Column",addTag:"Add Tag",assetName:"Asset Name",assetType:"Asset Type",dataSource:"Data Source",columns:"Columns",qualityScore:"Quality Score",tags:"Tags",description:"Description",owner:"Owner",selectSource:"Select data source",noSource:"No data source",assetTypes:{table:"Table",file:"File",api:"API"},columnName:"Column Name",dataType:"Data Type",nullable:"Nullable",primaryKey:"Primary Key",mappedTerm:"Mapped Term",columnMapping:"Column Mapping",mapToTerm:"Map to Term",unmapTerm:"Remove Mapping",searchTermToMap:"Search terms to map...",noTermSelected:"No term mapped",tagName:"Tag Name",tagValue:"Tag Value",noTags:"No tags",sensitivity:{title:"Sensitivity",public:"Public",internal:"Internal",confidential:"Confidential",restricted:"Restricted"},searchAssets:"Search assets...",filterByType:"Filter by type",filterBySource:"Filter by source",allTypes:"All types",allSources:"All sources",noAssets:"No assets found",noAssetsYet:"No assets yet",noAssetsDesc:"Add your first data asset to start building your catalog",addFirstAsset:"Add Your First Asset",noColumns:"No columns defined",confirmDelete:"Are you sure you want to delete this asset? All columns and tags will also be deleted.",loadError:"Failed to load assets",createSuccess:"Asset created successfully",createError:"Failed to create asset",updateSuccess:"Asset updated successfully",updateError:"Failed to update asset",deleteSuccess:"Asset deleted successfully",deleteError:"Failed to delete asset",mappingSuccess:"Column mapped successfully",mappingError:"Failed to map column",unmappingSuccess:"Mapping removed",tabs:{overview:"Overview",columns:"Columns",tags:"Tags",comments:"Comments"}},ko:{title:"데이터 카탈로그",subtitle:"데이터 자산 탐색 및 관리",assets:"자산",addAsset:"자산 추가",editAsset:"자산 수정",deleteAsset:"자산 삭제",addColumn:"컬럼 추가",addTag:"태그 추가",assetName:"자산명",assetType:"자산 유형",dataSource:"데이터 소스",columns:"컬럼",qualityScore:"품질 점수",tags:"태그",description:"설명",owner:"담당자",selectSource:"데이터 소스 선택",noSource:"데이터 소스 없음",assetTypes:{table:"테이블",file:"파일",api:"API"},columnName:"컬럼명",dataType:"데이터 타입",nullable:"Null 허용",primaryKey:"기본키",mappedTerm:"매핑된 용어",columnMapping:"컬럼 매핑",mapToTerm:"용어에 매핑",unmapTerm:"매핑 해제",searchTermToMap:"매핑할 용어 검색...",noTermSelected:"매핑된 용어 없음",tagName:"태그명",tagValue:"태그 값",noTags:"태그 없음",sensitivity:{title:"민감도",public:"공개",internal:"내부용",confidential:"기밀",restricted:"제한"},searchAssets:"자산 검색...",filterByType:"유형 필터",filterBySource:"소스 필터",allTypes:"모든 유형",allSources:"모든 소스",noAssets:"자산이 없습니다",noAssetsYet:"등록된 자산이 없습니다",noAssetsDesc:"첫 번째 데이터 자산을 추가하여 카탈로그를 구축하세요",addFirstAsset:"첫 번째 자산 추가",noColumns:"정의된 컬럼이 없습니다",confirmDelete:"이 자산을 삭제하시겠습니까? 모든 컬럼과 태그도 함께 삭제됩니다.",loadError:"자산을 불러오지 못했습니다",createSuccess:"자산이 생성되었습니다",createError:"자산 생성에 실패했습니다",updateSuccess:"자산이 수정되었습니다",updateError:"자산 수정에 실패했습니다",deleteSuccess:"자산이 삭제되었습니다",deleteError:"자산 삭제에 실패했습니다",mappingSuccess:"컬럼이 매핑되었습니다",mappingError:"컬럼 매핑에 실패했습니다",unmappingSuccess:"매핑이 해제되었습니다",tabs:{overview:"개요",columns:"컬럼",tags:"태그",comments:"댓글"}}}},FAe=["catalog::local::src/content/catalog.content.ts"],Lh={key:$Ae,content:LAe,localIds:FAe},qb=f4((e,t)=>({assets:[],selectedAsset:null,loading:!1,error:null,fetchAssets:async n=>{e({loading:!0,error:null});try{const r=await B7(n);e({assets:r,loading:!1})}catch(r){const o=r instanceof Error?r.message:"Failed to fetch assets";e({error:o,loading:!1})}},fetchAsset:async n=>{e({loading:!0,error:null});try{const r=await PM(n);e({selectedAsset:r,loading:!1})}catch(r){const o=r instanceof Error?r.message:"Failed to fetch asset";e({error:o,loading:!1})}},createAsset:async n=>{e({loading:!0,error:null});try{const r=await U7(n);return await t().fetchAssets(),e({loading:!1}),r}catch(r){const o=r instanceof Error?r.message:"Failed to create asset";throw e({error:o,loading:!1}),r}},updateAsset:async(n,r)=>{e({loading:!0,error:null});try{const o=await H7(n,r);return e(i=>{var a;return{assets:i.assets.map(s=>s.id===n?{...s,name:o.name,asset_type:o.asset_type,source_id:o.source_id,quality_score:o.quality_score,updated_at:o.updated_at}:s),selectedAsset:((a=i.selectedAsset)==null?void 0:a.id)===n?o:i.selectedAsset,loading:!1}}),o}catch(o){const i=o instanceof Error?o.message:"Failed to update asset";throw e({error:i,loading:!1}),o}},deleteAsset:async n=>{e({loading:!0,error:null});try{await z7(n),e(r=>{var o;return{assets:r.assets.filter(i=>i.id!==n),selectedAsset:((o=r.selectedAsset)==null?void 0:o.id)===n?null:r.selectedAsset,loading:!1}})}catch(r){const o=r instanceof Error?r.message:"Failed to delete asset";throw e({error:o,loading:!1}),r}},clearSelectedAsset:()=>e({selectedAsset:null}),mapColumnToTerm:async(n,r)=>{try{const o=await W7(n,r);e(i=>i.selectedAsset?{selectedAsset:{...i.selectedAsset,columns:i.selectedAsset.columns.map(a=>a.id===n?o:a)}}:i)}catch(o){const i=o instanceof Error?o.message:"Failed to map column to term";throw e({error:i}),o}},unmapColumnFromTerm:async n=>{try{const r=await G7(n);e(o=>o.selectedAsset?{selectedAsset:{...o.selectedAsset,columns:o.selectedAsset.columns.map(i=>i.id===n?r:i)}}:o)}catch(r){const o=r instanceof Error?r.message:"Failed to unmap column from term";throw e({error:o}),r}},clearError:()=>e({error:null})}));function BAe({open:e,onOpenChange:t,assetId:n,sources:r,onSuccess:o}){const i=me(Lh),a=me(Vt),{createAsset:s,updateAsset:c}=qb(),{toast:u}=Pt(),[f,d]=h.useState(!1),[p,v]=h.useState(""),[b,y]=h.useState("table"),[m,g]=h.useState(""),[x,w]=h.useState(""),[E,A]=h.useState(""),S=!!n;h.useEffect(()=>{e&&n?PM(n).then(_=>{v(_.name),y(_.asset_type),g(_.source_id||""),w(_.description||""),A(_.owner_id||"")}):e&&(v(""),y("table"),g(""),w(""),A(""))},[e,n]);const N=async _=>{if(_.preventDefault(),!!p.trim()){d(!0);try{S&&n?(await c(n,{name:p,asset_type:b,source_id:m||void 0,description:x||void 0,owner_id:E||void 0}),u({title:F(a.success),description:F(i.updateSuccess)})):(await s({name:p,asset_type:b,source_id:m||void 0,description:x||void 0,owner_id:E||void 0}),u({title:F(a.success),description:F(i.createSuccess)})),o==null||o()}catch{u({title:F(a.error),description:F(S?i.updateError:i.createError),variant:"destructive"})}finally{d(!1)}}};return l.jsx(Ms,{open:e,onOpenChange:t,children:l.jsxs(Vi,{className:"sm:max-w-[500px]",children:[l.jsx(Ki,{children:l.jsx(Yi,{children:S?i.editAsset:i.addAsset})}),l.jsxs("form",{onSubmit:N,className:"space-y-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{htmlFor:"name",children:i.assetName}),l.jsx(wr,{id:"name",value:p,onChange:_=>v(_.target.value),placeholder:"customers, orders, transactions...",required:!0})]}),l.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:i.assetType}),l.jsxs(jt,{value:b,onValueChange:_=>y(_),children:[l.jsx(xt,{children:l.jsx(Ct,{})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"table",children:i.assetTypes.table}),l.jsx(pe,{value:"file",children:i.assetTypes.file}),l.jsx(pe,{value:"api",children:i.assetTypes.api})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{children:i.dataSource}),l.jsxs(jt,{value:m,onValueChange:g,children:[l.jsx(xt,{children:l.jsx(Ct,{placeholder:F(i.selectSource)})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:i.noSource}),r.map(_=>l.jsx(pe,{value:_.id,children:_.name},_.id))]})]})]})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{htmlFor:"description",children:i.description}),l.jsx("textarea",{id:"description",value:x,onChange:_=>w(_.target.value),placeholder:"Describe this data asset...",className:"w-full min-h-[80px] rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"})]}),l.jsxs("div",{className:"space-y-2",children:[l.jsx(yt,{htmlFor:"owner",children:i.owner}),l.jsx(wr,{id:"owner",value:E,onChange:_=>A(_.target.value),placeholder:"John Doe"})]}),l.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[l.jsx(Y,{type:"button",variant:"outline",onClick:()=>t(!1),children:a.cancel}),l.jsx(Y,{type:"submit",disabled:f,children:f?a.saving:a.save})]})]})]})})}function UAe(){const e=me(Mi),t=me(Lh),n=me(Vt),{assets:r,loading:o,fetchAssets:i,deleteAsset:a}=qb(),{toast:s}=Pt(),{confirm:c,ConfirmDialog:u}=Zc(),[f,d]=h.useState([]),[p,v]=h.useState(""),[b,y]=h.useState(""),[m,g]=h.useState(""),[x,w]=h.useState(!1),[E,A]=h.useState(null),S=h.useCallback(async()=>{await i({search:p||void 0,asset_type:b||void 0,source_id:m||void 0})},[i,p,b,m]);h.useEffect(()=>{S(),Xc().then(O=>d(O.data))},[S]);const N=async O=>{if(await c({title:F(t.deleteAsset),description:F(t.confirmDelete),confirmText:F(n.delete),variant:"destructive"}))try{await a(O),s({title:F(n.success),description:F(t.deleteSuccess)})}catch{s({title:F(n.error),description:F(t.deleteError),variant:"destructive"})}},_=O=>{switch(O){case"table":return cy;case"api":return n0;default:return e0}},C=O=>{switch(O){case"table":return t.assetTypes.table;case"file":return t.assetTypes.file;case"api":return t.assetTypes.api;default:return O}},P=O=>O?O>=80?"text-green-600":O>=60?"text-yellow-600":"text-red-600":"text-muted-foreground";return o&&r.length===0?l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs("div",{className:"space-y-6",children:[l.jsxs("div",{className:"flex items-center justify-between",children:[l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.catalog}),l.jsx("p",{className:"text-muted-foreground",children:t.subtitle})]}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Jt,{className:"mr-2 h-4 w-4"}),t.addAsset]})]}),l.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[l.jsxs("div",{className:"relative flex-1",children:[l.jsx(o0,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(wr,{placeholder:F(t.searchAssets),value:p,onChange:O=>v(O.target.value),className:"pl-10"})]}),l.jsxs(jt,{value:b,onValueChange:y,children:[l.jsxs(xt,{className:"w-[160px]",children:[l.jsx(t0,{className:"mr-2 h-4 w-4"}),l.jsx(Ct,{placeholder:F(t.filterByType)})]}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:t.allTypes}),l.jsx(pe,{value:"table",children:t.assetTypes.table}),l.jsx(pe,{value:"file",children:t.assetTypes.file}),l.jsx(pe,{value:"api",children:t.assetTypes.api})]})]}),l.jsxs(jt,{value:m,onValueChange:g,children:[l.jsx(xt,{className:"w-[200px]",children:l.jsx(Ct,{placeholder:F(t.filterBySource)})}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:t.allSources}),f.map(O=>l.jsx(pe,{value:O.id,children:O.name},O.id))]})]})]}),r.length===0?l.jsx(q,{children:l.jsxs(X,{className:"flex flex-col items-center justify-center py-16",children:[l.jsx(Cn,{className:"h-16 w-16 text-muted-foreground/50 mb-4"}),l.jsx("h3",{className:"text-lg font-semibold mb-2",children:t.noAssetsYet}),l.jsx("p",{className:"text-muted-foreground text-center mb-4",children:t.noAssetsDesc}),l.jsxs(Y,{onClick:()=>w(!0),children:[l.jsx(Jt,{className:"mr-2 h-4 w-4"}),t.addFirstAsset]})]})}):l.jsx("div",{className:"grid gap-4",children:r.map(O=>{const R=_(O.asset_type);return l.jsx(q,{children:l.jsx(X,{className:"p-6",children:l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-start gap-4 flex-1",children:[l.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(R,{className:"h-6 w-6 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx(Pe,{to:`/catalog/${O.id}`,className:"font-semibold hover:text-primary transition-colors",children:O.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1 flex-wrap",children:[l.jsx(se,{variant:"outline",children:C(O.asset_type)}),O.source_name&&l.jsx(se,{variant:"secondary",children:O.source_name}),l.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.columns,": ",O.column_count]}),O.tag_count>0&&l.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.tags,": ",O.tag_count]})]})]})]}),l.jsxs("div",{className:"flex items-center gap-4 ml-4",children:[O.quality_score!==void 0&&l.jsxs("div",{className:"text-right",children:[l.jsx("p",{className:"text-xs text-muted-foreground",children:t.qualityScore}),l.jsxs("p",{className:`font-semibold ${P(O.quality_score)}`,children:[O.quality_score.toFixed(1),"%"]})]}),l.jsx(Y,{variant:"ghost",size:"icon",onClick:()=>N(O.id),children:l.jsx(Gr,{className:"h-4 w-4 text-destructive"})})]})]})})},O.id)})}),l.jsx(BAe,{open:x,onOpenChange:O=>{w(O),O||A(null)},assetId:E,sources:f,onSuccess:()=>{S(),w(!1),A(null)}}),l.jsx(u,{})]})}function HAe({open:e,onOpenChange:t,columnId:n,terms:r,onMap:o}){const i=me(Lh),a=me(Vt),[s,c]=h.useState(""),u=h.useMemo(()=>{if(!s)return r;const d=s.toLowerCase();return r.filter(p=>p.name.toLowerCase().includes(d)||p.definition.toLowerCase().includes(d))},[r,s]),f=d=>{n&&o(n,d)};return l.jsx(Ms,{open:e,onOpenChange:t,children:l.jsxs(Vi,{className:"sm:max-w-[500px]",children:[l.jsx(Ki,{children:l.jsx(Yi,{children:i.columnMapping})}),l.jsxs("div",{className:"space-y-4",children:[l.jsxs("div",{className:"relative",children:[l.jsx(o0,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),l.jsx(wr,{placeholder:F(i.searchTermToMap),value:s,onChange:d=>c(d.target.value),className:"pl-10"})]}),l.jsx("div",{className:"max-h-[300px] overflow-y-auto space-y-2",children:u.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-4",children:i.noTermSelected}):u.map(d=>l.jsx("button",{onClick:()=>f(d.id),className:"w-full text-left p-3 rounded-lg border hover:bg-accent transition-colors",children:l.jsxs("div",{className:"flex items-start gap-3",children:[l.jsx("div",{className:"h-8 w-8 rounded bg-primary/10 flex items-center justify-center flex-shrink-0",children:l.jsx(Ba,{className:"h-4 w-4 text-primary"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsx("p",{className:"font-medium",children:d.name}),l.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:d.definition})]})]})},d.id))}),l.jsx("div",{className:"flex justify-end",children:l.jsx(Y,{variant:"outline",onClick:()=>t(!1),children:a.cancel})})]})]})})}function zAe(){const{id:e}=ki(),t=me(Lh),n=me(Vt),{selectedAsset:r,loading:o,fetchAsset:i,clearSelectedAsset:a,mapColumnToTerm:s,unmapColumnFromTerm:c}=qb(),{terms:u,fetchTerms:f}=$h(),{toast:d}=Pt(),[p,v]=h.useState(!1),[b,y]=h.useState(null),m=h.useCallback(async()=>{if(e)try{await Promise.all([i(e),f()])}catch{d({title:"Error",description:"Failed to load asset details",variant:"destructive"})}},[e,i,f,d]);h.useEffect(()=>(m(),()=>a()),[m,a]);const g=_=>{switch(_){case"table":return cy;case"api":return n0;default:return e0}},x=_=>{switch(_){case"table":return t.assetTypes.table;case"file":return t.assetTypes.file;case"api":return t.assetTypes.api;default:return _}},w=_=>{switch(_){case"restricted":return"destructive";case"confidential":return"high";case"internal":return"warning";default:return"secondary"}},E=_=>{switch(_){case"restricted":return t.sensitivity.restricted;case"confidential":return t.sensitivity.confidential;case"internal":return t.sensitivity.internal;default:return t.sensitivity.public}},A=async(_,C)=>{try{await s(_,C),d({title:F(n.success),description:F(t.mappingSuccess)}),v(!1),y(null)}catch{d({title:F(n.error),description:F(t.mappingError),variant:"destructive"})}},S=async _=>{try{await c(_),d({title:F(n.success),description:F(t.unmappingSuccess)})}catch{d({title:F(n.error),description:F(t.mappingError),variant:"destructive"})}};if(o||!r)return l.jsx("div",{className:"flex items-center justify-center h-64",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})});const N=g(r.asset_type);return l.jsxs("div",{className:"space-y-6",children:[l.jsxs(Pe,{to:"/catalog",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground",children:[l.jsx(Li,{className:"mr-2 h-4 w-4"}),n.back]}),l.jsxs("div",{className:"flex items-start justify-between",children:[l.jsxs("div",{className:"flex items-center gap-4",children:[l.jsx("div",{className:"h-14 w-14 rounded-lg bg-primary/10 flex items-center justify-center",children:l.jsx(N,{className:"h-7 w-7 text-primary"})}),l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:r.name}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx(se,{variant:"outline",children:x(r.asset_type)}),r.source&&l.jsx(se,{variant:"secondary",children:r.source.name}),r.quality_score!==void 0&&l.jsxs(se,{variant:r.quality_score>=80?"success":r.quality_score>=60?"warning":"destructive",children:[t.qualityScore,": ",r.quality_score.toFixed(1),"%"]})]})]})]}),l.jsxs(Y,{variant:"outline",children:[l.jsx(Ua,{className:"mr-2 h-4 w-4"}),n.edit]})]}),l.jsxs(Vb,{defaultValue:"overview",className:"space-y-4",children:[l.jsxs(Mh,{children:[l.jsx(En,{value:"overview",children:t.tabs.overview}),l.jsx(En,{value:"columns",children:t.tabs.columns}),l.jsx(En,{value:"tags",children:t.tabs.tags}),l.jsx(En,{value:"comments",children:t.tabs.comments})]}),l.jsxs(Nn,{value:"overview",className:"space-y-4",children:[r.description&&l.jsxs(q,{children:[l.jsx(ye,{children:l.jsx(ge,{children:t.description})}),l.jsx(X,{children:l.jsx("p",{className:"text-muted-foreground",children:r.description})})]}),l.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[l.jsx(q,{children:l.jsxs(X,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:t.columns}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:r.columns.length})]})}),l.jsx(q,{children:l.jsxs(X,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:t.tags}),l.jsx("p",{className:"text-2xl font-bold mt-1",children:r.tags.length})]})}),l.jsx(q,{children:l.jsxs(X,{className:"pt-6",children:[l.jsx("p",{className:"text-sm text-muted-foreground",children:t.owner}),l.jsx("p",{className:"text-lg font-medium mt-1",children:r.owner_id||"-"})]})})]})]}),l.jsx(Nn,{value:"columns",children:l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(cy,{className:"h-5 w-5"}),t.columns," (",r.columns.length,")"]})}),l.jsx(X,{children:r.columns.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:t.noColumns}):l.jsx("div",{className:"space-y-2",children:r.columns.map(_=>l.jsxs("div",{className:"flex items-center justify-between p-4 rounded-lg border",children:[l.jsx("div",{className:"flex items-center gap-4",children:l.jsxs("div",{children:[l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsx("p",{className:"font-medium",children:_.name}),_.is_primary_key&&l.jsx(se,{variant:"outline",className:"text-xs",children:"PK"}),!_.is_nullable&&l.jsx(se,{variant:"outline",className:"text-xs",children:"NOT NULL"})]}),l.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:_.data_type||"unknown"}),_.sensitivity_level&&l.jsxs(se,{variant:w(_.sensitivity_level),className:"text-xs",children:[l.jsx(w6,{className:"h-3 w-3 mr-1"}),E(_.sensitivity_level)]})]}),_.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:_.description})]})}),l.jsx("div",{className:"flex items-center gap-2",children:_.term?l.jsxs("div",{className:"flex items-center gap-2",children:[l.jsxs(Pe,{to:`/glossary/${_.term.id}`,className:"flex items-center gap-1 text-sm text-primary hover:underline",children:[l.jsx(bl,{className:"h-3 w-3"}),_.term.name]}),l.jsx(Y,{variant:"ghost",size:"sm",onClick:()=>S(_.id),children:t.unmapTerm})]}):l.jsxs(Y,{variant:"outline",size:"sm",onClick:()=>{y(_.id),v(!0)},children:[l.jsx(bl,{className:"h-4 w-4 mr-1"}),t.mapToTerm]})})]},_.id))})})]})}),l.jsx(Nn,{value:"tags",children:l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(A6,{className:"h-5 w-5"}),t.tags," (",r.tags.length,")"]})}),l.jsx(X,{children:r.tags.length===0?l.jsx("p",{className:"text-muted-foreground text-center py-8",children:t.noTags}):l.jsx("div",{className:"flex flex-wrap gap-2",children:r.tags.map(_=>l.jsxs(se,{variant:"secondary",children:[_.tag_name,_.tag_value&&`: ${_.tag_value}`]},_.id))})})]})}),l.jsx(Nn,{value:"comments",children:l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(zc,{className:"h-5 w-5"}),t.tabs.comments]})}),l.jsx(X,{children:l.jsx(p4,{resourceType:"asset",resourceId:e})})]})})]}),l.jsx(HAe,{open:p,onOpenChange:v,columnId:b,terms:u,onMap:A})]})}function WAe({activities:e,showResourceLinks:t=!0}){const n=me(Yb),r=u=>{switch(u){case"created":return Jt;case"updated":return Ua;case"deleted":return Gr;case"commented":return zc;default:return Ua}},o=u=>{switch(u){case"created":return"text-green-600 bg-green-100 dark:bg-green-900/30";case"deleted":return"text-red-600 bg-red-100 dark:bg-red-900/30";case"commented":return"text-blue-600 bg-blue-100 dark:bg-blue-900/30";default:return"text-yellow-600 bg-yellow-100 dark:bg-yellow-900/30"}},i=u=>{switch(u){case"term":return Ba;case"asset":return Cn;case"column":return Ok;default:return Cn}},a=(u,f)=>{switch(u){case"term":return`/glossary/${f}`;case"asset":return`/catalog/${f}`;default:return null}},s=u=>{switch(u){case"created":return n.actions.created;case"updated":return n.actions.updated;case"deleted":return n.actions.deleted;case"commented":return n.actions.commented;default:return u}},c=u=>{switch(u){case"term":return n.resourceTypes.term;case"asset":return n.resourceTypes.asset;case"column":return n.resourceTypes.column;default:return u}};return e.length===0?l.jsx("div",{className:"text-center py-8",children:l.jsx("p",{className:"text-muted-foreground",children:n.noActivity})}):l.jsx("div",{className:"space-y-4",children:e.map(u=>{const f=r(u.action),d=i(u.resource_type),p=t?a(u.resource_type,u.resource_id):null;return l.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg border",children:[l.jsx("div",{className:`h-8 w-8 rounded-full flex items-center justify-center flex-shrink-0 ${o(u.action)}`,children:l.jsx(f,{className:"h-4 w-4"})}),l.jsxs("div",{className:"flex-1 min-w-0",children:[l.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[l.jsx("span",{className:"font-medium",children:u.actor_id||"System"}),l.jsx("span",{className:"text-muted-foreground",children:s(u.action)}),l.jsxs(se,{variant:"outline",className:"flex items-center gap-1",children:[l.jsx(d,{className:"h-3 w-3"}),c(u.resource_type)]})]}),u.description&&l.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:u.description}),l.jsxs("div",{className:"flex items-center gap-2 mt-2 text-xs text-muted-foreground",children:[l.jsx("span",{children:pn(u.created_at)}),p&&l.jsxs(l.Fragment,{children:[l.jsx("span",{children:"·"}),l.jsxs(Pe,{to:p,className:"text-primary hover:underline",children:["View ",u.resource_type]})]})]})]})]},u.id)})})}function GAe(){const e=me(Mi),t=me(Yb),n=me(Vt),{toast:r}=Pt(),[o,i]=h.useState([]),[a,s]=h.useState(!0),[c,u]=h.useState(""),[f,d]=h.useState(!0),[p,v]=h.useState(0),b=20,y=h.useCallback(async(g=!1)=>{try{s(!0);const w=await q7({resource_type:c||void 0,skip:g?0:p,limit:b});g?(i(w),v(b)):(i(E=>[...E,...w]),v(E=>E+b)),d(w.length===b)}catch{r({title:F(n.error),description:"Failed to load activities",variant:"destructive"})}finally{s(!1)}},[c,p,r,n]);h.useEffect(()=>{y(!0)},[c]);const m=()=>{!a&&f&&y(!1)};return l.jsxs("div",{className:"space-y-6",children:[l.jsx("div",{className:"flex items-center justify-between",children:l.jsxs("div",{children:[l.jsx("h1",{className:"text-3xl font-bold",children:e.activity}),l.jsx("p",{className:"text-muted-foreground",children:t.recentActivity})]})}),l.jsx("div",{className:"flex items-center gap-4",children:l.jsxs(jt,{value:c,onValueChange:u,children:[l.jsxs(xt,{className:"w-[200px]",children:[l.jsx(t0,{className:"mr-2 h-4 w-4"}),l.jsx(Ct,{placeholder:F(t.filterByResource)})]}),l.jsxs(bt,{children:[l.jsx(pe,{value:"",children:t.allResources}),l.jsx(pe,{value:"term",children:t.resourceTypes.term}),l.jsx(pe,{value:"asset",children:t.resourceTypes.asset}),l.jsx(pe,{value:"column",children:t.resourceTypes.column})]})]})}),l.jsxs(q,{children:[l.jsx(ye,{children:l.jsxs(ge,{className:"flex items-center gap-2",children:[l.jsx(Nk,{className:"h-5 w-5"}),t.allActivity]})}),l.jsx(X,{children:a&&o.length===0?l.jsx("div",{className:"flex items-center justify-center py-8",children:l.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"})}):l.jsxs(l.Fragment,{children:[l.jsx(WAe,{activities:o}),f&&l.jsx("div",{className:"flex justify-center mt-4",children:l.jsx(Y,{variant:"outline",onClick:m,disabled:a,children:a?n.loading:t.loadMore})})]})})]})]})}function VAe(){return l.jsxs(h.Suspense,{fallback:l.jsx(V9,{}),children:[l.jsx(G9,{}),l.jsx(l5,{children:l.jsxs(St,{path:"/",element:l.jsx(F9,{}),children:[l.jsx(St,{index:!0,element:l.jsx(X7,{})}),l.jsx(St,{path:"sources",element:l.jsx(LY,{})}),l.jsx(St,{path:"sources/:id",element:l.jsx(FY,{})}),l.jsx(St,{path:"sources/:id/rules",element:l.jsx(BY,{})}),l.jsx(St,{path:"sources/:id/history",element:l.jsx(mSe,{})}),l.jsx(St,{path:"sources/:id/profile",element:l.jsx(SSe,{})}),l.jsx(St,{path:"validations/:id",element:l.jsx(UY,{})}),l.jsx(St,{path:"drift",element:l.jsx(kSe,{})}),l.jsx(St,{path:"schedules",element:l.jsx(WSe,{})}),l.jsx(St,{path:"notifications",element:l.jsx(tAe,{})}),l.jsx(St,{path:"glossary",element:l.jsx(IAe,{})}),l.jsx(St,{path:"glossary/:id",element:l.jsx(DAe,{})}),l.jsx(St,{path:"catalog",element:l.jsx(UAe,{})}),l.jsx(St,{path:"catalog/:id",element:l.jsx(zAe,{})}),l.jsx(St,{path:"activity",element:l.jsx(GAe,{})})]})})]})}var Xb="ToastProvider",[Zb,KAe,YAe]=_p("Toast"),[h4]=nr("Toast",[YAe]),[qAe,Fh]=h4(Xb),m4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=h.useState(null),[u,f]=h.useState(0),d=h.useRef(!1),p=h.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Xb}\`. Expected non-empty \`string\`.`),l.jsx(Zb.Provider,{scope:t,children:l.jsx(qAe,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:s,onViewportChange:c,onToastAdd:h.useCallback(()=>f(v=>v+1),[]),onToastRemove:h.useCallback(()=>f(v=>v-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:p,children:a})})};m4.displayName=Xb;var v4="ToastViewport",XAe=["F8"],qg="toast.viewportPause",Xg="toast.viewportResume",y4=h.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=XAe,label:o="Notifications ({hotkey})",...i}=e,a=Fh(v4,n),s=KAe(n),c=h.useRef(null),u=h.useRef(null),f=h.useRef(null),d=h.useRef(null),p=Ce(t,d,a.onViewportChange),v=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=a.toastCount>0;h.useEffect(()=>{const m=g=>{var w;r.length!==0&&r.every(E=>g[E]||g.code===E)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[r]),h.useEffect(()=>{const m=c.current,g=d.current;if(b&&m&&g){const x=()=>{if(!a.isClosePausedRef.current){const S=new CustomEvent(qg);g.dispatchEvent(S),a.isClosePausedRef.current=!0}},w=()=>{if(a.isClosePausedRef.current){const S=new CustomEvent(Xg);g.dispatchEvent(S),a.isClosePausedRef.current=!1}},E=S=>{!m.contains(S.relatedTarget)&&w()},A=()=>{m.contains(document.activeElement)||w()};return m.addEventListener("focusin",x),m.addEventListener("focusout",E),m.addEventListener("pointermove",x),m.addEventListener("pointerleave",A),window.addEventListener("blur",x),window.addEventListener("focus",w),()=>{m.removeEventListener("focusin",x),m.removeEventListener("focusout",E),m.removeEventListener("pointermove",x),m.removeEventListener("pointerleave",A),window.removeEventListener("blur",x),window.removeEventListener("focus",w)}}},[b,a.isClosePausedRef]);const y=h.useCallback(({tabbingDirection:m})=>{const x=s().map(w=>{const E=w.ref.current,A=[E,...c1e(E)];return m==="forwards"?A:A.reverse()});return(m==="forwards"?x.reverse():x).flat()},[s]);return h.useEffect(()=>{const m=d.current;if(m){const g=x=>{var A,S,N;const w=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!w){const _=document.activeElement,C=x.shiftKey;if(x.target===m&&C){(A=u.current)==null||A.focus();return}const R=y({tabbingDirection:C?"backwards":"forwards"}),L=R.findIndex(j=>j===_);av(R.slice(L+1))?x.preventDefault():C?(S=u.current)==null||S.focus():(N=f.current)==null||N.focus()}};return m.addEventListener("keydown",g),()=>m.removeEventListener("keydown",g)}},[s,y]),l.jsxs(BW,{ref:c,role:"region","aria-label":o.replace("{hotkey}",v),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&l.jsx(Zg,{ref:u,onFocusFromOutsideViewport:()=>{const m=y({tabbingDirection:"forwards"});av(m)}}),l.jsx(Zb.Slot,{scope:n,children:l.jsx(de.ol,{tabIndex:-1,...i,ref:p})}),b&&l.jsx(Zg,{ref:f,onFocusFromOutsideViewport:()=>{const m=y({tabbingDirection:"backwards"});av(m)}})]})});y4.displayName=v4;var g4="ToastFocusProxy",Zg=h.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=Fh(g4,n);return l.jsx(D0,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:a=>{var u;const s=a.relatedTarget;!((u=i.viewport)!=null&&u.contains(s))&&r()}})});Zg.displayName=g4;var lu="Toast",ZAe="toast.swipeStart",QAe="toast.swipeMove",JAe="toast.swipeCancel",e1e="toast.swipeEnd",x4=h.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...a}=e,[s,c]=Do({prop:r,defaultProp:o??!0,onChange:i,caller:lu});return l.jsx(Ar,{present:n||s,children:l.jsx(r1e,{open:s,...a,ref:t,onClose:()=>c(!1),onPause:en(e.onPause),onResume:en(e.onResume),onSwipeStart:Q(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Q(e.onSwipeMove,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:Q(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Q(e.onSwipeEnd,u=>{const{x:f,y:d}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),c(!1)})})})});x4.displayName=lu;var[t1e,n1e]=h4(lu,{onClose(){}}),r1e=h.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:u,onSwipeStart:f,onSwipeMove:d,onSwipeCancel:p,onSwipeEnd:v,...b}=e,y=Fh(lu,n),[m,g]=h.useState(null),x=Ce(t,j=>g(j)),w=h.useRef(null),E=h.useRef(null),A=o||y.duration,S=h.useRef(0),N=h.useRef(A),_=h.useRef(0),{onToastAdd:C,onToastRemove:P}=y,O=en(()=>{var T;(m==null?void 0:m.contains(document.activeElement))&&((T=y.viewport)==null||T.focus()),a()}),R=h.useCallback(j=>{!j||j===1/0||(window.clearTimeout(_.current),S.current=new Date().getTime(),_.current=window.setTimeout(O,j))},[O]);h.useEffect(()=>{const j=y.viewport;if(j){const T=()=>{R(N.current),u==null||u()},I=()=>{const $=new Date().getTime()-S.current;N.current=N.current-$,window.clearTimeout(_.current),c==null||c()};return j.addEventListener(qg,I),j.addEventListener(Xg,T),()=>{j.removeEventListener(qg,I),j.removeEventListener(Xg,T)}}},[y.viewport,A,c,u,R]),h.useEffect(()=>{i&&!y.isClosePausedRef.current&&R(A)},[i,A,y.isClosePausedRef,R]),h.useEffect(()=>(C(),()=>P()),[C,P]);const L=h.useMemo(()=>m?_4(m):null,[m]);return y.viewport?l.jsxs(l.Fragment,{children:[L&&l.jsx(o1e,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:L}),l.jsx(t1e,{scope:n,onClose:O,children:Ii.createPortal(l.jsx(Zb.ItemSlot,{scope:n,children:l.jsx(FW,{asChild:!0,onEscapeKeyDown:Q(s,()=>{y.isFocusedToastEscapeKeyDownRef.current||O(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:l.jsx(de.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...b,ref:x,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Q(e.onKeyDown,j=>{j.key==="Escape"&&(s==null||s(j.nativeEvent),j.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,O()))}),onPointerDown:Q(e.onPointerDown,j=>{j.button===0&&(w.current={x:j.clientX,y:j.clientY})}),onPointerMove:Q(e.onPointerMove,j=>{if(!w.current)return;const T=j.clientX-w.current.x,I=j.clientY-w.current.y,$=!!E.current,k=["left","right"].includes(y.swipeDirection),M=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,B=k?M(0,T):0,W=k?0:M(0,I),z=j.pointerType==="touch"?10:2,J={x:B,y:W},ue={originalEvent:j,delta:J};$?(E.current=J,Qu(QAe,d,ue,{discrete:!1})):r_(J,y.swipeDirection,z)?(E.current=J,Qu(ZAe,f,ue,{discrete:!1}),j.target.setPointerCapture(j.pointerId)):(Math.abs(T)>z||Math.abs(I)>z)&&(w.current=null)}),onPointerUp:Q(e.onPointerUp,j=>{const T=E.current,I=j.target;if(I.hasPointerCapture(j.pointerId)&&I.releasePointerCapture(j.pointerId),E.current=null,w.current=null,T){const $=j.currentTarget,k={originalEvent:j,delta:T};r_(T,y.swipeDirection,y.swipeThreshold)?Qu(e1e,v,k,{discrete:!0}):Qu(JAe,p,k,{discrete:!0}),$.addEventListener("click",M=>M.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),o1e=e=>{const{__scopeToast:t,children:n,...r}=e,o=Fh(lu,t),[i,a]=h.useState(!1),[s,c]=h.useState(!1);return s1e(()=>a(!0)),h.useEffect(()=>{const u=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:l.jsx(Vc,{asChild:!0,children:l.jsx(D0,{...r,children:i&&l.jsxs(l.Fragment,{children:[o.label," ",n]})})})},i1e="ToastTitle",b4=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(de.div,{...r,ref:t})});b4.displayName=i1e;var a1e="ToastDescription",w4=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return l.jsx(de.div,{...r,ref:t})});w4.displayName=a1e;var S4="ToastAction",A4=h.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?l.jsx(N4,{altText:n,asChild:!0,children:l.jsx(Qb,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${S4}\`. Expected non-empty \`string\`.`),null)});A4.displayName=S4;var E4="ToastClose",Qb=h.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=n1e(E4,n);return l.jsx(N4,{asChild:!0,children:l.jsx(de.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,o.onClose)})})});Qb.displayName=E4;var N4=h.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return l.jsx(de.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function _4(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),l1e(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(..._4(r))}}),t}function Qu(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?s0(o,i):o.dispatchEvent(i)}var r_=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function s1e(e=()=>{}){const t=en(e);Tt(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function l1e(e){return e.nodeType===e.ELEMENT_NODE}function c1e(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 av(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var u1e=m4,j4=y4,C4=x4,O4=b4,T4=w4,P4=A4,I4=Qb;const d1e=u1e,R4=h.forwardRef(({className:e,...t},n)=>l.jsx(j4,{ref:n,className:oe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));R4.displayName=j4.displayName;const f1e=Ep("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),k4=h.forwardRef(({className:e,variant:t,...n},r)=>l.jsx(C4,{ref:r,className:oe(f1e({variant:t}),e),...n}));k4.displayName=C4.displayName;const p1e=h.forwardRef(({className:e,...t},n)=>l.jsx(P4,{ref:n,className:oe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));p1e.displayName=P4.displayName;const M4=h.forwardRef(({className:e,...t},n)=>l.jsx(I4,{ref:n,className:oe("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:l.jsx(i0,{className:"h-4 w-4"})}));M4.displayName=I4.displayName;const D4=h.forwardRef(({className:e,...t},n)=>l.jsx(O4,{ref:n,className:oe("text-sm font-semibold",e),...t}));D4.displayName=O4.displayName;const $4=h.forwardRef(({className:e,...t},n)=>l.jsx(T4,{ref:n,className:oe("text-sm opacity-90",e),...t}));$4.displayName=T4.displayName;function h1e(){const{toasts:e}=Pt();return l.jsxs(d1e,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return l.jsxs(k4,{...i,children:[l.jsxs("div",{className:"grid gap-1",children:[n&&l.jsx(D4,{children:n}),r&&l.jsx($4,{children:r})]}),o,l.jsx(M4,{})]},t)}),l.jsx(R4,{})]})}async function m1e(){}m1e().then(()=>{sv.createRoot(document.getElementById("root")).render(l.jsx(D.StrictMode,{children:l.jsx(J8,{children:l.jsx(m5,{children:l.jsxs(M9,{defaultTheme:"dark",storageKey:"truthound-theme",children:[l.jsx(VAe,{}),l.jsx(h1e,{})]})})})}))});
|