474 lines
1.2 MiB
474 lines
1.2 MiB
function UU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();var Ip=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ux={exports:{}},Ru={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var YT;function FU(){if(YT)return Ru;YT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var c in a)c!=="key"&&(o[c]=a[c])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return Ru.Fragment=t,Ru.jsx=n,Ru.jsxs=n,Ru}var QT;function KU(){return QT||(QT=1,ux.exports=FU()),ux.exports}var h=KU(),As=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},HU={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},GU=class{#t=HU;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},Wo=new GU;function VU(e){setTimeout(e,0)}var os=typeof window>"u"||"Deno"in globalThis;function xn(){}function YU(e,t){return typeof e=="function"?e(t):e}function Yw(e){return typeof e=="number"&&e>=0&&e!==1/0}function BL(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ji(e,t){return typeof e=="function"?e(t):e}function _r(e,t){return typeof e=="function"?e(t):e}function XT(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:o,queryKey:l,stale:c}=e;if(l){if(r){if(t.queryHash!==iO(l,t.options))return!1}else if(!sd(t.queryKey,l))return!1}if(n!=="all"){const d=t.isActive();if(n==="active"&&!d||n==="inactive"&&d)return!1}return!(typeof c=="boolean"&&t.isStale()!==c||a&&a!==t.state.fetchStatus||o&&!o(t))}function WT(e,t){const{exact:n,status:r,predicate:a,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(to(t.options.mutationKey)!==to(o))return!1}else if(!sd(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function iO(e,t){return(t?.queryKeyHashFn||to)(e)}function to(e){return JSON.stringify(e,(t,n)=>Qw(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function sd(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>sd(e[n],t[n])):!1}var QU=Object.prototype.hasOwnProperty;function oO(e,t){if(e===t)return e;const n=ZT(e)&&ZT(t);if(!n&&!(Qw(e)&&Qw(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),l=o.length,c=n?new Array(l):{};let d=0;for(let f=0;f<l;f++){const m=n?f:o[f],g=e[m],v=t[m];if(g===v){c[m]=g,(n?f<a:QU.call(e,m))&&d++;continue}if(g===null||v===null||typeof g!="object"||typeof v!="object"){c[m]=v;continue}const b=oO(g,v);c[m]=b,b===g&&d++}return a===l&&d===a?e:c}function ld(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function ZT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Qw(e){if(!JT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!JT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function JT(e){return Object.prototype.toString.call(e)==="[object Object]"}function XU(e){return new Promise(t=>{Wo.setTimeout(t,e)})}function Xw(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?oO(e,t):t}function WU(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ZU(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var lr=Symbol();function $L(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===lr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function qL(e,t){return typeof e=="function"?e(...t):!!e}var JU=class extends As{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!os&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},sO=new JU;function Ww(){let e,t;const n=new Promise((a,o)=>{e=a,t=o});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var eF=VU;function tF(){let e=[],t=0,n=c=>{c()},r=c=>{c()},a=eF;const o=c=>{t?e.push(c):a(()=>{n(c)})},l=()=>{const c=e;e=[],c.length&&a(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:c=>{let d;t++;try{d=c()}finally{t--,t||l()}return d},batchCalls:c=>(...d)=>{o(()=>{c(...d)})},schedule:o,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c},setScheduler:c=>{a=c}}}var It=tF(),nF=class extends As{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!os&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#t}},Sh=new nF;function rF(e){return Math.min(1e3*2**e,3e4)}function zL(e){return(e??"online")==="online"?Sh.isOnline():!0}var Zw=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function UL(e){let t=!1,n=0,r;const a=Ww(),o=()=>a.status!=="pending",l=x=>{if(!o()){const w=new Zw(x);v(w),e.onCancel?.(w)}},c=()=>{t=!0},d=()=>{t=!1},f=()=>sO.isFocused()&&(e.networkMode==="always"||Sh.isOnline())&&e.canRun(),m=()=>zL(e.networkMode)&&e.canRun(),g=x=>{o()||(r?.(),a.resolve(x))},v=x=>{o()||(r?.(),a.reject(x))},b=()=>new Promise(x=>{r=w=>{(o()||f())&&x(w)},e.onPause?.()}).then(()=>{r=void 0,o()||e.onContinue?.()}),A=()=>{if(o())return;let x;const w=n===0?e.initialPromise:void 0;try{x=w??e.fn()}catch(C){x=Promise.reject(C)}Promise.resolve(x).then(g).catch(C=>{if(o())return;const j=e.retry??(os?0:3),T=e.retryDelay??rF,M=typeof T=="function"?T(n,C):T,O=j===!0||typeof j=="number"&&n<j||typeof j=="function"&&j(n,C);if(t||!O){v(C);return}n++,e.onFail?.(n,C),XU(M).then(()=>f()?void 0:b()).then(()=>{t?v(C):A()})})};return{promise:a,status:()=>a.status,cancel:l,continue:()=>(r?.(),a),cancelRetry:c,continueRetry:d,canStart:m,start:()=>(m()?A():b().then(A),a)}}var FL=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Yw(this.gcTime)&&(this.#t=Wo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(os?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Wo.clearTimeout(this.#t),this.#t=void 0)}},aF=class extends FL{#t;#e;#n;#a;#r;#i;#s;constructor(e){super(),this.#s=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#a=e.client,this.#n=this.#a.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=eN(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=eN(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Xw(this.state.data,e,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#o({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(xn).catch(xn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>_r(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Ji(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!BL(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(d=>d.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,r=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},a=()=>{const c=$L(this.options,t),f=(()=>{const m={client:this.#a,queryKey:this.queryKey,meta:this.meta};return r(m),m})();return this.#s=!1,this.options.persister?this.options.persister(c,f,this):c(f)},l=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:a};return r(c),c})();this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#o({type:"fetch",meta:l.fetchOptions?.meta}),this.#r=UL({initialPromise:t?.initialPromise,fn:l.fetchFn,onCancel:c=>{c instanceof Zw&&c.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(c,d)=>{this.#o({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0});try{const c=await this.#r.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof Zw){if(c.silent)return this.#r.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#o({type:"error",error:c}),this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#o(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...KL(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),It.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function KL(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zL(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function eN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var tf=class extends As{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=Ww(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#p;#d;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),tN(this.#e,this.options)?this.#h():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Jw(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Jw(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,n=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _r(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!ld(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&nN(this.#e,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#e!==n||_r(this.options.enabled,this.#e)!==_r(t.enabled,this.#e)||Ji(this.options.staleTime,this.#e)!==Ji(t.staleTime,this.#e))&&this.#m();const a=this.#v();r&&(this.#e!==n||_r(this.options.enabled,this.#e)!==_r(t.enabled,this.#e)||a!==this.#l)&&this.#y(a)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return oF(this,n)&&(this.#a=n,this.#i=this.options,this.#r=this.#e.state),n}getCurrentResult(){return this.#a}trackResult(e,t){return new Proxy(e,{get:(n,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(n,r))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),n=this.#t.getQueryCache().build(this.#t,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(xn)),t}#m(){this.#b();const e=Ji(this.options.staleTime,this.#e);if(os||this.#a.isStale||!Yw(e))return;const n=BL(this.#a.dataUpdatedAt,e)+1;this.#c=Wo.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#l=e,!(os||_r(this.options.enabled,this.#e)===!1||!Yw(this.#l)||this.#l===0)&&(this.#u=Wo.setInterval(()=>{(this.options.refetchIntervalInBackground||sO.isFocused())&&this.#h()},this.#l))}#x(){this.#m(),this.#y(this.#v())}#b(){this.#c&&(Wo.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(Wo.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,a=this.#a,o=this.#r,l=this.#i,d=e!==n?e.state:this.#n,{state:f}=e;let m={...f},g=!1,v;if(t._optimisticResults){const P=this.hasListeners(),k=!P&&tN(e,t),z=P&&nN(e,n,t,r);(k||z)&&(m={...m,...KL(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(m.fetchStatus="idle")}let{error:b,errorUpdatedAt:A,status:x}=m;v=m.data;let w=!1;if(t.placeholderData!==void 0&&v===void 0&&x==="pending"){let P;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(P=a.data,w=!0):P=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,P!==void 0&&(x="success",v=Xw(a?.data,P,t),g=!0)}if(t.select&&v!==void 0&&!w)if(a&&v===o?.data&&t.select===this.#p)v=this.#d;else try{this.#p=t.select,v=t.select(v),v=Xw(a?.data,v,t),this.#d=v,this.#o=null}catch(P){this.#o=P}this.#o&&(b=this.#o,v=this.#d,A=Date.now(),x="error");const C=m.fetchStatus==="fetching",j=x==="pending",T=x==="error",M=j&&C,O=v!==void 0,N={status:x,fetchStatus:m.fetchStatus,isPending:j,isSuccess:x==="success",isError:T,isInitialLoading:M,isLoading:M,data:v,dataUpdatedAt:m.dataUpdatedAt,error:b,errorUpdatedAt:A,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:C,isRefetching:C&&!j,isLoadingError:T&&!O,isPaused:m.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:T&&O,isStale:lO(e,t),refetch:this.refetch,promise:this.#s,isEnabled:_r(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const P=B=>{N.status==="error"?B.reject(N.error):N.data!==void 0&&B.resolve(N.data)},k=()=>{const B=this.#s=N.promise=Ww();P(B)},z=this.#s;switch(z.status){case"pending":e.queryHash===n.queryHash&&P(z);break;case"fulfilled":(N.status==="error"||N.data!==z.value)&&k();break;case"rejected":(N.status!=="error"||N.error!==z.reason)&&k();break}}return N}updateResult(){const e=this.#a,t=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#i=this.options,this.#r.data!==void 0&&(this.#f=this.#e),ld(t,e))return;this.#a=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#g.size)return!0;const o=new Set(a??this.#g);return this.options.throwOnError&&o.add("error"),Object.keys(this.#a).some(l=>{const c=l;return this.#a[c]!==e[c]&&o.has(c)})};this.#A({listeners:n()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#A(e){It.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function iF(e,t){return _r(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function tN(e,t){return iF(e,t)||e.state.data!==void 0&&Jw(e,t,t.refetchOnMount)}function Jw(e,t,n){if(_r(t.enabled,e)!==!1&&Ji(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&lO(e,t)}return!1}function nN(e,t,n,r){return(e!==t||_r(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&lO(e,n)}function lO(e,t){return _r(t.enabled,e)!==!1&&e.isStaleByTime(Ji(t.staleTime,e))}function oF(e,t){return!ld(e.getCurrentResult(),t)}function Ah(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],l=t.state.data?.pageParams||[];let c={pages:[],pageParams:[]},d=0;const f=async()=>{let m=!1;const g=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=$L(t.options,t.fetchOptions),b=async(A,x,w)=>{if(m)return Promise.reject();if(x==null&&A.pages.length)return Promise.resolve(A);const j=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:x,direction:w?"backward":"forward",meta:t.options.meta};return g(_),_})(),T=await v(j),{maxPages:M}=t.options,O=w?ZU:WU;return{pages:O(A.pages,T,M),pageParams:O(A.pageParams,x,M)}};if(a&&o.length){const A=a==="backward",x=A?HL:eS,w={pages:o,pageParams:l},C=x(r,w);c=await b(w,C,A)}else{const A=e??o.length;do{const x=d===0?l[0]??r.initialPageParam:eS(r,c);if(d>0&&x==null)break;c=await b(c,x),d++}while(d<A)}return c};t.options.persister?t.fetchFn=()=>t.options.persister?.(f,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=f}}}function eS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function HL(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function sF(e,t){return t?eS(e,t)!=null:!1}function lF(e,t){return!t||!e.getPreviousPageParam?!1:HL(e,t)!=null}var GL=class extends tf{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Ah()})}getOptimisticResult(e){return e.behavior=Ah(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:n}=e,r=super.createResult(e,t),{isFetching:a,isRefetching:o,isError:l,isRefetchError:c}=r,d=n.fetchMeta?.fetchMore?.direction,f=l&&d==="forward",m=a&&d==="forward",g=l&&d==="backward",v=a&&d==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:sF(t,n.data),hasPreviousPage:lF(t,n.data),isFetchNextPageError:f,isFetchingNextPage:m,isFetchPreviousPageError:g,isFetchingPreviousPage:v,isRefetchError:c&&!f&&!g,isRefetching:o&&!m&&!v}}},cF=class extends FL{#t;#e;#n;#a;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||VL(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#r({type:"continue"})},n={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=UL({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(o,l)=>{this.#r({type:"failed",failureCount:o,error:l})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",a=!this.#a.canStart();try{if(r)t();else{this.#r({type:"pending",variables:e,isPaused:a}),await this.#n.config.onMutate?.(e,this,n);const l=await this.options.onMutate?.(e,n);l!==this.state.context&&this.#r({type:"pending",context:l,variables:e,isPaused:a})}const o=await this.#a.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#r({type:"success",data:o}),o}catch(o){try{throw await this.#n.config.onError?.(o,e,this.state.context,this,n),await this.options.onError?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,o,e,this.state.context,n),o}finally{this.#r({type:"error",error:o})}}finally{this.#n.runNext(this)}}#r(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),It.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function VL(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var uF=class extends As{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,n){const r=new cF({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#t.add(e);const t=Lp(e);if(typeof t=="string"){const n=this.#e.get(t);n?n.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Lp(e);if(typeof t=="string"){const n=this.#e.get(t);if(n)if(n.length>1){const r=n.indexOf(e);r!==-1&&n.splice(r,1)}else n[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Lp(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Lp(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){It.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>WT(t,n))}findAll(e={}){return this.getAll().filter(t=>WT(e,t))}notify(e){It.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return It.batch(()=>Promise.all(e.map(t=>t.continue().catch(xn))))}};function Lp(e){return e.options.scope?.id}var dF=class extends As{#t;#e=void 0;#n;#a;constructor(t,n){super(),this.#t=t,this.setOptions(n),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#t.defaultMutationOptions(t),ld(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&to(n.mutationKey)!==to(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#i(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#i()}mutate(t,n){return this.#a=n,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??VL();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#i(t){It.batch(()=>{if(this.#a&&this.hasListeners()){const n=this.#e.variables,r=this.#e.context,a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#a.onSuccess?.(t.data,n,r,a),this.#a.onSettled?.(t.data,null,n,r,a)):t?.type==="error"&&(this.#a.onError?.(t.error,n,r,a),this.#a.onSettled?.(void 0,t.error,n,r,a))}this.listeners.forEach(n=>{n(this.#e)})})}};function rN(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function fF(e,t,n){const r=e.slice(0);return r[t]=n,r}var pF=class extends As{#t;#e;#n;#a;#r;#i;#s;#o;#p=[];constructor(e,t,n){super(),this.#t=e,this.#a=n,this.#n=[],this.#r=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#r.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#r.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#a=t,It.batch(()=>{const n=this.#r,r=this.#c(this.#n);this.#p=r,r.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const a=r.map(m=>m.observer),o=a.map(m=>m.getCurrentResult()),l=n.length!==a.length,c=a.some((m,g)=>m!==n[g]),d=l||c,f=d?!0:o.some((m,g)=>{const v=this.#e[g];return!v||!ld(m,v)});!d&&!f||(d&&(this.#r=a),this.#e=o,this.hasListeners()&&(d&&(rN(n,a).forEach(m=>{m.destroy()}),rN(a,n).forEach(m=>{m.subscribe(g=>{this.#u(m,g)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#c(e),r=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions));return[r,a=>this.#f(a??r,t),()=>this.#d(r,n)]}#d(e,t){return t.map((n,r)=>{const a=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?a:n.observer.trackResult(a,o=>{t.forEach(l=>{l.observer.trackProp(o)})})})}#f(e,t){return t?((!this.#i||this.#e!==this.#o||t!==this.#s)&&(this.#s=t,this.#o=this.#e,this.#i=oO(this.#i,t(e))),this.#i):e}#c(e){const t=new Map(this.#r.map(r=>[r.options.queryHash,r])),n=[];return e.forEach(r=>{const a=this.#t.defaultQueryOptions(r),o=t.get(a.queryHash);o?n.push({defaultedQueryOptions:a,observer:o}):n.push({defaultedQueryOptions:a,observer:new tf(this.#t,a)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=fF(this.#e,n,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#i,t=this.#d(this.#e,this.#p),n=this.#f(t,this.#a?.combine);e!==n&&It.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},hF=class extends As{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,a=t.queryHash??iO(r,t);let o=this.get(a);return o||(o=new aF({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){It.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>XT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>XT(e,n)):t}notify(e){It.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){It.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){It.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},gF=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new hF,this.#e=e.mutationCache||new uF,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=sO.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Sh.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#t.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ji(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=this.#t.get(r.queryHash)?.state.data,l=YU(t,o);if(l!==void 0)return this.#t.build(this,r).setData(l,{...n,manual:!0})}setQueriesData(e,t,n){return It.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;It.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return It.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=It.batch(()=>this.#t.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(xn).catch(xn)}invalidateQueries(e,t={}){return It.batch(()=>(this.#t.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=It.batch(()=>this.#t.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let o=a.fetch(void 0,n);return n.throwOnError||(o=o.catch(xn)),a.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then(xn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#t.build(this,t);return n.isStaleByTime(Ji(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(xn).catch(xn)}fetchInfiniteQuery(e){return e.behavior=Ah(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(xn).catch(xn)}ensureInfiniteQueryData(e){return e.behavior=Ah(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Sh.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#a.set(to(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{sd(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(to(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{sd(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=iO(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===lr&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},dx={exports:{}},Ie={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var aN;function mF(){if(aN)return Ie;aN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function b(q){return q===null||typeof q!="object"?null:(q=v&&q[v]||q["@@iterator"],typeof q=="function"?q:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function C(q,V,Y){this.props=q,this.context=V,this.refs=w,this.updater=Y||A}C.prototype.isReactComponent={},C.prototype.setState=function(q,V){if(typeof q!="object"&&typeof q!="function"&&q!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,q,V,"setState")},C.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function j(){}j.prototype=C.prototype;function T(q,V,Y){this.props=q,this.context=V,this.refs=w,this.updater=Y||A}var M=T.prototype=new j;M.constructor=T,x(M,C.prototype),M.isPureReactComponent=!0;var O=Array.isArray;function _(){}var N={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function k(q,V,Y){var ee=Y.ref;return{$$typeof:e,type:q,key:V,ref:ee!==void 0?ee:null,props:Y}}function z(q,V){return k(q.type,V,q.props)}function B(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function L(q){var V={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(Y){return V[Y]})}var U=/\/+/g;function H(q,V){return typeof q=="object"&&q!==null&&q.key!=null?L(""+q.key):V.toString(36)}function Q(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(_,_):(q.status="pending",q.then(function(V){q.status==="pending"&&(q.status="fulfilled",q.value=V)},function(V){q.status==="pending"&&(q.status="rejected",q.reason=V)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function D(q,V,Y,ee,ue){var me=typeof q;(me==="undefined"||me==="boolean")&&(q=null);var se=!1;if(q===null)se=!0;else switch(me){case"bigint":case"string":case"number":se=!0;break;case"object":switch(q.$$typeof){case e:case t:se=!0;break;case m:return se=q._init,D(se(q._payload),V,Y,ee,ue)}}if(se)return ue=ue(q),se=ee===""?"."+H(q,0):ee,O(ue)?(Y="",se!=null&&(Y=se.replace(U,"$&/")+"/"),D(ue,V,Y,"",function(Z){return Z})):ue!=null&&(B(ue)&&(ue=z(ue,Y+(ue.key==null||q&&q.key===ue.key?"":(""+ue.key).replace(U,"$&/")+"/")+se)),V.push(ue)),1;se=0;var ve=ee===""?".":ee+":";if(O(q))for(var de=0;de<q.length;de++)ee=q[de],me=ve+H(ee,de),se+=D(ee,V,Y,me,ue);else if(de=b(q),typeof de=="function")for(q=de.call(q),de=0;!(ee=q.next()).done;)ee=ee.value,me=ve+H(ee,de++),se+=D(ee,V,Y,me,ue);else if(me==="object"){if(typeof q.then=="function")return D(Q(q),V,Y,ee,ue);throw V=String(q),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return se}function K(q,V,Y){if(q==null)return q;var ee=[],ue=0;return D(q,ee,"","",function(me){return V.call(Y,me,ue++)}),ee}function F(q){if(q._status===-1){var V=q._result;V=V(),V.then(function(Y){(q._status===0||q._status===-1)&&(q._status=1,q._result=Y)},function(Y){(q._status===0||q._status===-1)&&(q._status=2,q._result=Y)}),q._status===-1&&(q._status=0,q._result=V)}if(q._status===1)return q._result.default;throw q._result}var X=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},oe={map:K,forEach:function(q,V,Y){K(q,function(){V.apply(this,arguments)},Y)},count:function(q){var V=0;return K(q,function(){V++}),V},toArray:function(q){return K(q,function(V){return V})||[]},only:function(q){if(!B(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return Ie.Activity=g,Ie.Children=oe,Ie.Component=C,Ie.Fragment=n,Ie.Profiler=a,Ie.PureComponent=T,Ie.StrictMode=r,Ie.Suspense=d,Ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ie.__COMPILER_RUNTIME={__proto__:null,c:function(q){return N.H.useMemoCache(q)}},Ie.cache=function(q){return function(){return q.apply(null,arguments)}},Ie.cacheSignal=function(){return null},Ie.cloneElement=function(q,V,Y){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var ee=x({},q.props),ue=q.key;if(V!=null)for(me in V.key!==void 0&&(ue=""+V.key),V)!P.call(V,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&V.ref===void 0||(ee[me]=V[me]);var me=arguments.length-2;if(me===1)ee.children=Y;else if(1<me){for(var se=Array(me),ve=0;ve<me;ve++)se[ve]=arguments[ve+2];ee.children=se}return k(q.type,ue,ee)},Ie.createContext=function(q){return q={$$typeof:l,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:o,_context:q},q},Ie.createElement=function(q,V,Y){var ee,ue={},me=null;if(V!=null)for(ee in V.key!==void 0&&(me=""+V.key),V)P.call(V,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ue[ee]=V[ee]);var se=arguments.length-2;if(se===1)ue.children=Y;else if(1<se){for(var ve=Array(se),de=0;de<se;de++)ve[de]=arguments[de+2];ue.children=ve}if(q&&q.defaultProps)for(ee in se=q.defaultProps,se)ue[ee]===void 0&&(ue[ee]=se[ee]);return k(q,me,ue)},Ie.createRef=function(){return{current:null}},Ie.forwardRef=function(q){return{$$typeof:c,render:q}},Ie.isValidElement=B,Ie.lazy=function(q){return{$$typeof:m,_payload:{_status:-1,_result:q},_init:F}},Ie.memo=function(q,V){return{$$typeof:f,type:q,compare:V===void 0?null:V}},Ie.startTransition=function(q){var V=N.T,Y={};N.T=Y;try{var ee=q(),ue=N.S;ue!==null&&ue(Y,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(_,X)}catch(me){X(me)}finally{V!==null&&Y.types!==null&&(V.types=Y.types),N.T=V}},Ie.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ie.use=function(q){return N.H.use(q)},Ie.useActionState=function(q,V,Y){return N.H.useActionState(q,V,Y)},Ie.useCallback=function(q,V){return N.H.useCallback(q,V)},Ie.useContext=function(q){return N.H.useContext(q)},Ie.useDebugValue=function(){},Ie.useDeferredValue=function(q,V){return N.H.useDeferredValue(q,V)},Ie.useEffect=function(q,V){return N.H.useEffect(q,V)},Ie.useEffectEvent=function(q){return N.H.useEffectEvent(q)},Ie.useId=function(){return N.H.useId()},Ie.useImperativeHandle=function(q,V,Y){return N.H.useImperativeHandle(q,V,Y)},Ie.useInsertionEffect=function(q,V){return N.H.useInsertionEffect(q,V)},Ie.useLayoutEffect=function(q,V){return N.H.useLayoutEffect(q,V)},Ie.useMemo=function(q,V){return N.H.useMemo(q,V)},Ie.useOptimistic=function(q,V){return N.H.useOptimistic(q,V)},Ie.useReducer=function(q,V,Y){return N.H.useReducer(q,V,Y)},Ie.useRef=function(q){return N.H.useRef(q)},Ie.useState=function(q){return N.H.useState(q)},Ie.useSyncExternalStore=function(q,V,Y){return N.H.useSyncExternalStore(q,V,Y)},Ie.useTransition=function(){return N.H.useTransition()},Ie.version="19.2.1",Ie}var iN;function Lg(){return iN||(iN=1,dx.exports=mF()),dx.exports}var E=Lg();const $=ft(E),Bg=UU({__proto__:null,default:$},[E]);var YL=E.createContext(void 0),nf=e=>{const t=E.useContext(YL);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vF=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(YL.Provider,{value:e,children:t})),QL=E.createContext(!1),XL=()=>E.useContext(QL);QL.Provider;function yF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xF=E.createContext(yF()),WL=()=>E.useContext(xF),ZL=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},JL=e=>{E.useEffect(()=>{e.clearReset()},[e])},e5=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||qL(n,[e.error,r])),cO=(e,t)=>t.state.data===void 0,t5=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},n5=(e,t)=>e.isLoading&&e.isFetching&&!t,tS=(e,t)=>e?.suspense&&t.isPending,Oh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function r5({queries:e,...t},n){const r=nf(n),a=XL(),o=WL(),l=E.useMemo(()=>e.map(x=>{const w=r.defaultQueryOptions(x);return w._optimisticResults=a?"isRestoring":"optimistic",w}),[e,r,a]);l.forEach(x=>{t5(x),ZL(x,o)}),JL(o);const[c]=E.useState(()=>new pF(r,l,t)),[d,f,m]=c.getOptimisticResult(l,t.combine),g=!a&&t.subscribed!==!1;E.useSyncExternalStore(E.useCallback(x=>g?c.subscribe(It.batchCalls(x)):xn,[c,g]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),E.useEffect(()=>{c.setQueries(l,t)},[l,t,c]);const b=d.some((x,w)=>tS(l[w],x))?d.flatMap((x,w)=>{const C=l[w];if(C){const j=new tf(r,C);if(tS(C,x))return Oh(C,j,o);n5(x,a)&&Oh(C,j,o)}return[]}):[];if(b.length>0)throw Promise.all(b);const A=d.find((x,w)=>{const C=l[w];return C&&e5({result:x,errorResetBoundary:o,throwOnError:C.throwOnError,query:r.getQueryCache().get(C.queryHash),suspense:C.suspense})});if(A?.error)throw A.error;return f(m())}function $g(e,t,n){const r=XL(),a=WL(),o=nf(n),l=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(l),l._optimisticResults=r?"isRestoring":"optimistic",t5(l),ZL(l,a),JL(a);const c=!o.getQueryCache().get(l.queryHash),[d]=E.useState(()=>new t(o,l)),f=d.getOptimisticResult(l),m=!r&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const v=m?d.subscribe(It.batchCalls(g)):xn;return d.updateResult(),v},[d,m]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),E.useEffect(()=>{d.setOptions(l)},[l,d]),tS(l,f))throw Oh(l,d,a);if(e5({result:f,errorResetBoundary:a,throwOnError:l.throwOnError,query:o.getQueryCache().get(l.queryHash),suspense:l.suspense}))throw f.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(l,f),l.experimental_prefetchInRender&&!os&&n5(f,r)&&(c?Oh(l,d,a):o.getQueryCache().get(l.queryHash)?.promise)?.catch(xn).finally(()=>{d.updateResult()}),l.notifyOnChangeProps?f:d.trackResult(f)}function bF(e,t){return $g(e,tf,t)}function wF(e,t){return $g({...e,enabled:!0,suspense:!0,throwOnError:cO,placeholderData:void 0},tf,t)}function SF(e,t){return $g({...e,enabled:!0,suspense:!0,throwOnError:cO},GL,t)}function AF(e,t){return r5({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:cO,enabled:!0,placeholderData:void 0}))},t)}function OF(e,t){const n=nf(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function CF(e,t){const n=nf(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function jF(e,t){const n=nf(t),[r]=E.useState(()=>new dF(n,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const a=E.useSyncExternalStore(E.useCallback(l=>r.subscribe(It.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=E.useCallback((l,c)=>{r.mutate(l,c).catch(xn)},[r]);if(a.error&&qL(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}function EF(e,t){return $g(e,GL,t)}function ss(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const _F=typeof Symbol=="function"&&!!Symbol.asyncIterator;function a5(e){return _F&&ss(e)&&Symbol.asyncIterator in e}var TF=Object.create,i5=Object.defineProperty,NF=Object.getOwnPropertyDescriptor,o5=Object.getOwnPropertyNames,RF=Object.getPrototypeOf,MF=Object.prototype.hasOwnProperty,rf=(e,t)=>function(){return t||(0,e[o5(e)[0]])((t={exports:{}}).exports,t),t.exports},PF=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=o5(t),o=0,l=a.length,c;o<l;o++)c=a[o],!MF.call(e,c)&&c!==n&&i5(e,c,{get:(d=>t[d]).bind(null,c),enumerable:!(r=NF(t,c))||r.enumerable});return e},qg=(e,t,n)=>(n=e!=null?TF(RF(e)):{},PF(i5(n,"default",{value:e,enumerable:!0}),e));const s5=()=>{},oN=e=>{Object.freeze&&Object.freeze(e)};function l5(e,t,n){var r;const a=t.join(".");return(r=n[a])!==null&&r!==void 0||(n[a]=new Proxy(s5,{get(o,l){if(!(typeof l!="string"||l==="then"))return l5(e,[...t,l],n)},apply(o,l,c){const d=t[t.length-1];let f={args:c,path:t};return d==="call"?f={args:c.length>=2?[c[1]]:[],path:t.slice(0,-1)}:d==="apply"&&(f={args:c.length>=2?c[1]:[],path:t.slice(0,-1)}),oN(f.args),oN(f.path),e(f)}})),n[a]}const zg=e=>l5(e,[],Object.create(null)),uO=e=>new Proxy(s5,{get(t,n){if(n!=="then")return e(n)}});var c5=rf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),DF=rf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=c5().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),kF=rf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=c5().default,r=DF();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),u5=rf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=kF();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),dO=rf({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=u5();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);l&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),c.push.apply(c,d)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(d){n(o,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(d){Object.defineProperty(o,d,Object.getOwnPropertyDescriptor(c,d))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});qg(dO());qg(u5());var Bp=qg(dO());function IF(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,Bp.default)((0,Bp.default)({},e),{},{error:r})}}return{ok:!0,result:(0,Bp.default)((0,Bp.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var fx=class extends Error{constructor(){super("Unable to transform response from server")}};function LF(e,t){let n;try{n=IF(e,t)}catch{throw new fx}if(!n.ok&&(!ss(n.error.error)||typeof n.error.error.code!="number"))throw new fx;if(n.ok&&!ss(n.result))throw new fx;return n}qg(dO());function Ug(e){const t={subscribe(n){let r=null,a=!1,o=!1,l=!1;function c(){if(r===null){l=!0;return}o||(o=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(d){var f;a||(f=n.next)===null||f===void 0||f.call(n,d)},error(d){var f;a||(a=!0,(f=n.error)===null||f===void 0||f.call(n,d),c())},complete(){var d;a||(a=!0,(d=n.complete)===null||d===void 0||d.call(n),c())}}),l&&c(),{unsubscribe:c}},pipe(...n){return n.reduce(BF,t)}};return t}function BF(e,t){return t(e)}function $F(e){const t=new AbortController;return new Promise((r,a)=>{let o=!1;function l(){o||(o=!0,c.unsubscribe())}t.signal.addEventListener("abort",()=>{a(t.signal.reason)});const c=e.subscribe({next(d){o=!0,r(d),l()},error(d){a(d)},complete(){t.abort(),l()}})})}var qF=Object.create,d5=Object.defineProperty,zF=Object.getOwnPropertyDescriptor,f5=Object.getOwnPropertyNames,UF=Object.getPrototypeOf,FF=Object.prototype.hasOwnProperty,uo=(e,t)=>function(){return t||(0,e[f5(e)[0]])((t={exports:{}}).exports,t),t.exports},KF=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=f5(t),o=0,l=a.length,c;o<l;o++)c=a[o],!FF.call(e,c)&&c!==n&&d5(e,c,{get:(d=>t[d]).bind(null,c),enumerable:!(r=zF(t,c))||r.enumerable});return e},Os=(e,t,n)=>(n=e!=null?qF(UF(e)):{},KF(t||!e||!e.__esModule?d5(n,"default",{value:e,enumerable:!0}):n,e)),HF=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(r,a){if(r==null)return{};var o={};for(var l in r)if({}.hasOwnProperty.call(r,l)){if(a.includes(l))continue;o[l]=r[l]}return o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),GF=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=HF();function r(a,o){if(a==null)return{};var l,c,d=n(a,o);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(c=0;c<f.length;c++)l=f[c],o.includes(l)||{}.propertyIsEnumerable.call(a,l)&&(d[l]=a[l])}return d}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),p5=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),VF=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=p5().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),YF=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=p5().default,r=VF();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),QF=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=YF();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),af=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=QF();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);l&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),c.push.apply(c,d)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(d){n(o,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(d){Object.defineProperty(o,d,Object.getOwnPropertyDescriptor(c,d))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),XF=Os(GF(),1),sN=Os(af(),1);const WF=["cursor","direction"];function da(e,t,n){const r=e.flatMap(a=>a.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&ss(t)&&("direction"in t||"cursor"in t)){const{cursor:a,direction:o}=t,l=(0,XF.default)(t,WF);return[r,{input:l,type:"infinite"}]}return[r,(0,sN.default)((0,sN.default)({},typeof t<"u"&&t!==lr&&{input:t}),n&&n!=="any"&&{type:n})]}function ph(e){return da(e,void 0,"any")}var ZF=Object.create,h5=Object.defineProperty,JF=Object.getOwnPropertyDescriptor,g5=Object.getOwnPropertyNames,e9=Object.getPrototypeOf,t9=Object.prototype.hasOwnProperty,ja=(e,t)=>function(){return t||(0,e[g5(e)[0]])((t={exports:{}}).exports,t),t.exports},n9=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var a=g5(t),o=0,l=a.length,c;o<l;o++)c=a[o],!t9.call(e,c)&&c!==n&&h5(e,c,{get:(d=>t[d]).bind(null,c),enumerable:!(r=JF(t,c))||r.enumerable});return e},$t=(e,t,n)=>(n=e!=null?ZF(e9(e)):{},n9(t||!e||!e.__esModule?h5(n,"default",{value:e,enumerable:!0}):n,e)),m5=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),r9=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=m5().default;function r(a,o){if(n(a)!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var c=l.call(a,o||"default");if(n(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(a)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),a9=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=m5().default,r=r9();function a(o){var l=r(o,"string");return n(l)=="symbol"?l:l+""}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Cs=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=a9();function r(a,o,l){return(o=n(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zr=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Cs();function r(o,l){var c=Object.keys(o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(o);l&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(o,f).enumerable})),c.push.apply(c,d)}return c}function a(o){for(var l=1;l<arguments.length;l++){var c=arguments[l]!=null?arguments[l]:{};l%2?r(Object(c),!0).forEach(function(d){n(o,d,c[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(c)):r(Object(c)).forEach(function(d){Object.defineProperty(o,d,Object.getOwnPropertyDescriptor(c,d))})}return o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});function i9(e){return t=>{let n=0,r=null;const a=[];function o(){r||(r=t.subscribe({next(c){for(const f of a){var d;(d=f.next)===null||d===void 0||d.call(f,c)}},error(c){for(const f of a){var d;(d=f.error)===null||d===void 0||d.call(f,c)}},complete(){for(const d of a){var c;(c=d.complete)===null||c===void 0||c.call(d)}}}))}function l(){if(n===0&&r){const c=r;r=null,c.unsubscribe()}}return Ug(c=>(n++,a.push(c),o(),{unsubscribe(){n--,l();const d=a.findIndex(f=>f===c);d>-1&&a.splice(d,1)}}))}}function o9(e){let t=e;const n=[],r=l=>{t!==void 0&&l.next(t),n.push(l)},a=l=>{n.splice(n.indexOf(l),1)},o=Ug(l=>(r(l),()=>{a(l)}));return o.next=l=>{if(t!==l){t=l;for(const c of n)c.next(l)}},o.get=()=>t,o}function s9(e){return Ug(t=>{function n(a=0,o=e.op){const l=e.links[a];if(!l)throw new Error("No more links to execute - did you forget to add an ending link?");return l({op:o,next(d){return n(a+1,d)}})}return n().subscribe(t)})}var $p=$t(Cs(),1),Sl=$t(Zr(),1);function l9(e){return e instanceof cd}function c9(e){return ss(e)&&ss(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function u9(e,t){return typeof e=="string"?e:ss(e)&&typeof e.message=="string"?e.message:t}var cd=class hh extends Error{constructor(t,n){var r,a;const o=n?.cause;super(t,{cause:o}),(0,$p.default)(this,"cause",void 0),(0,$p.default)(this,"shape",void 0),(0,$p.default)(this,"data",void 0),(0,$p.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=o,this.shape=n==null||(r=n.result)===null||r===void 0?void 0:r.error,this.data=n==null||(a=n.result)===null||a===void 0?void 0:a.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,hh.prototype)}static from(t,n={}){const r=t;return l9(r)?(n.meta&&(r.meta=(0,Sl.default)((0,Sl.default)({},r.meta),n.meta)),r):c9(r)?new hh(r.error.message,(0,Sl.default)((0,Sl.default)({},n),{},{result:r})):new hh(u9(r,"Unknown error"),(0,Sl.default)((0,Sl.default)({},n),{},{cause:r}))}};function d9(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const lN=e=>typeof e=="function";function f9(e){if(e)return e;if(typeof window<"u"&&lN(window.fetch))return window.fetch;if(typeof globalThis<"u"&&lN(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Xu=$t(Zr());function p9(e){return{url:e.url.toString(),fetch:e.fetch,transformer:d9(e.transformer),methodOverride:e.methodOverride}}function h9(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const g9={query:"GET",mutation:"POST",subscription:"PATCH"};function v5(e){return"input"in e?e.transformer.input.serialize(e.input):h9(e.inputs.map(t=>e.transformer.input.serialize(t)))}const y5=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const a=[];if(t[1]&&a.push(t[1]),"inputs"in e&&a.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=v5(e);o!==void 0&&e.methodOverride!=="POST"&&a.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return a.length&&(r+="?"+a.join("&")),r},m9=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=v5(e);return t!==void 0?JSON.stringify(t):void 0},v9=e=>w9((0,Xu.default)((0,Xu.default)({},e),{},{contentTypeHeader:"application/json",getUrl:y5,getBody:m9}));var y9=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const x9=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new y9};async function b9(e){var t;x9(e.signal);const n=e.getUrl(e),r=e.getBody(e),a=(t=e.methodOverride)!==null&&t!==void 0?t:g9[e.type],o=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),l=(0,Xu.default)((0,Xu.default)((0,Xu.default)({},e.contentTypeHeader&&a!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return f9(e.fetch)(n,{method:a,signal:e.signal,body:r,headers:l})}async function w9(e){const t={},n=await b9(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}$t(Zr(),1);const cN=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function uN(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function a(c){const d=[[]];let f=0;for(;;){const v=c[f];if(!v)break;const b=d[d.length-1];if(v.aborted){var m;(m=v.reject)===null||m===void 0||m.call(v,new Error("Aborted")),f++;continue}if(e.validate(b.concat(v).map(x=>x.key))){b.push(v),f++;continue}if(b.length===0){var g;(g=v.reject)===null||g===void 0||g.call(v,new Error("Input is too big for a single dispatch")),f++;continue}d.push([])}return d}function o(){const c=a(t);r();for(const d of c){if(!d.length)continue;const f={items:d};for(const g of d)g.batch=f;e.fetch(f.items.map(g=>g.key)).then(async g=>{await Promise.all(g.map(async(b,A)=>{const x=f.items[A];try{var w;const j=await Promise.resolve(b);(w=x.resolve)===null||w===void 0||w.call(x,j)}catch(j){var C;(C=x.reject)===null||C===void 0||C.call(x,j)}x.batch=null,x.reject=null,x.resolve=null}));for(const b of f.items){var v;(v=b.reject)===null||v===void 0||v.call(b,new Error("Missing result")),b.batch=null}}).catch(g=>{for(const b of f.items){var v;(v=b.reject)===null||v===void 0||v.call(b,g),b.batch=null}})}}function l(c){var d;const f={aborted:!1,key:c,batch:null,resolve:cN,reject:cN},m=new Promise((g,v)=>{var b;f.reject=v,f.resolve=g,(b=t)!==null&&b!==void 0||(t=[]),t.push(f)});return(d=n)!==null&&d!==void 0||(n=setTimeout(o)),m}return{load:l}}function S9(...e){const t=new AbortController,n=e.length;let r=0;const a=()=>{++r===n&&t.abort()};for(const o of e)o?.aborted?a():o?.addEventListener("abort",a,{once:!0});return t.signal}var qp=$t(Zr(),1);function A9(e){var t,n;const r=p9(e),a=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const l=m=>({validate(g){if(a===1/0&&o===1/0)return!0;if(g.length>o)return!1;const v=g.map(x=>x.path).join(","),b=g.map(x=>x.input);return y5((0,qp.default)((0,qp.default)({},r),{},{type:m,path:v,inputs:b,signal:null})).length<=a},async fetch(g){const v=g.map(j=>j.path).join(","),b=g.map(j=>j.input),A=S9(...g.map(j=>j.signal)),x=await v9((0,qp.default)((0,qp.default)({},r),{},{path:v,inputs:b,type:m,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:g}):e.headers:{}},signal:A}));return(Array.isArray(x.json)?x.json:g.map(()=>x.json)).map(j=>({meta:x.meta,json:j}))}}),c=uN(l("query")),d=uN(l("mutation")),f={query:c,mutation:d};return({op:m})=>Ug(g=>{/* istanbul ignore if -- @preserve */if(m.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const b=f[m.type].load(m);let A;return b.then(x=>{A=x;const w=LF(x.json,r.transformer.output);if(!w.ok){g.error(cd.from(w.error,{meta:x.meta}));return}g.next({context:x.meta,result:w.result}),g.complete()}).catch(x=>{g.error(cd.from(x,{meta:A?.meta}))}),()=>{}})}}$t(Zr(),1);const x5=(e,...t)=>typeof e=="function"?e(...t):e;$t(Cs(),1);function O9(){let e,t;return{promise:new Promise((r,a)=>{e=r,t=a}),resolve:e,reject:t}}async function C9(e){const t=await x5(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function j9(e){const t={method:"connectionParams",data:await x5(e)};return JSON.stringify(t)}$t(Cs(),1);var Go=$t(Cs(),1);function E9(e){const{promise:t,resolve:n,reject:r}=O9();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function _9(e,{intervalMs:t,pongTimeoutMs:n}){let r,a;function o(){r=setTimeout(()=>{e.send("PING"),a=setTimeout(()=>{e.close()},n)},t)}function l(){clearTimeout(r),o()}function c(){clearTimeout(a),l()}e.addEventListener("open",o),e.addEventListener("message",({data:d})=>{clearTimeout(r),o(),d==="PONG"&&c()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(a)})}var T9=class nS{constructor(t){var n;if((0,Go.default)(this,"id",++nS.connectCount),(0,Go.default)(this,"WebSocketPonyfill",void 0),(0,Go.default)(this,"urlOptions",void 0),(0,Go.default)(this,"keepAliveOpts",void 0),(0,Go.default)(this,"wsObservable",o9(null)),(0,Go.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++nS.connectCount;const n=C9(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=n.then(async r=>{t.ws=r,r.addEventListener("message",function({data:a}){a==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&_9(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await E9(r),t.urlOptions.connectionParams&&r.send(await j9(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,Go.default)(T9,"connectCount",0);$t(Cs(),1);$t(Zr(),1);var px=$t(Cs(),1),dN=$t(Zr(),1),Fg=class{constructor(e){(0,px.default)(this,"links",void 0),(0,px.default)(this,"runtime",void 0),(0,px.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return s9({links:this.links,op:(0,dN.default)((0,dN.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(i9())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await $F(n)).result.data}catch(n){throw cd.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(a){switch(a.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,a.result);break}case"started":{var l;(l=n.onStarted)===null||l===void 0||l.call(n,{context:a.context});break}case"stopped":{var c;(c=n.onStopped)===null||c===void 0||c.call(n);break}case"data":case void 0:{var d;(d=n.onData)===null||d===void 0||d.call(n,a.result.data);break}}},error(a){var o;(o=n.onError)===null||o===void 0||o.call(n,a)},complete(){var a;(a=n.onComplete)===null||a===void 0||a.call(n)}})}};const b5=Symbol.for("trpc_untypedClient"),N9={query:"query",mutate:"mutation",subscribe:"subscription"},R9=e=>N9[e];function w5(e){const t=zg(({path:n,args:r})=>{const a=[...n],o=R9(a.pop()),l=a.join(".");return e[o](l,...r)});return uO(n=>n===b5?e:t[n])}function M9(e){const t=new Fg(e);return w5(t)}function fO(e){return e[b5]}$t(Zr(),1);$t(Zr(),1);var P9=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,d=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);d--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(d){return{value:d,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var d=this.s.return;return d===void 0?Promise.resolve({value:c,done:!0}):o(d.apply(this.s,arguments))},throw:function(c){var d=this.s.return;return d===void 0?Promise.reject(c):o(d.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});$t(P9(),1);$t(Zr(),1);var D9=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var r=typeof SuppressedError=="function"?SuppressedError:function(c,d){var f=Error();return f.name="SuppressedError",f.error=c,f.suppressed=d,f},a={},o=[];function l(c,d){if(d!=null){if(Object(d)!==d)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(c)var f=d[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(f===void 0&&(f=d[Symbol.dispose||Symbol.for("Symbol.dispose")],c))var m=f;if(typeof f!="function")throw new TypeError("Object is not disposable.");m&&(f=function(){try{m.call(d)}catch(v){return Promise.reject(v)}}),o.push({v:d,d:f,a:c})}else c&&o.push({d,a:c});return d}return{e:a,u:l.bind(null,!1),a:l.bind(null,!0),d:function(){var d,f=this.e,m=0;function g(){for(;d=o.pop();)try{if(!d.a&&m===1)return m=0,o.push(d),Promise.resolve().then(g);if(d.d){var b=d.d.call(d.v);if(d.a)return m|=2,Promise.resolve(b).then(g,v)}else m|=1}catch(A){return v(A)}if(m===1)return f!==a?Promise.reject(f):Promise.resolve();if(f!==a)throw f}function v(b){return f=f!==a?new r(b,f):b,g()}return g()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),S5=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(r,a){this.v=r,this.k=a}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),k9=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=S5();function r(a){return new n(a,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),I9=ja({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=S5();function r(o){return function(){return new a(o.apply(this,arguments))}}function a(o){var l,c;function d(m,g){try{var v=o[m](g),b=v.value,A=b instanceof n;Promise.resolve(A?b.v:b).then(function(x){if(A){var w=m==="return"?"return":"next";if(!b.k||x.done)return d(w,x);x=o[w](x).value}f(v.done?"return":"normal",x)},function(x){d("throw",x)})}catch(x){f("throw",x)}}function f(m,g){switch(m){case"return":l.resolve({value:g,done:!0});break;case"throw":l.reject(g);break;default:l.resolve({value:g,done:!1})}(l=l.next)?d(l.key,l.arg):c=null}this._invoke=function(m,g){return new Promise(function(v,b){var A={key:m,arg:g,resolve:v,reject:b,next:null};c?c=c.next=A:(l=c=A,d(m,g))})},typeof o.return!="function"&&(this.return=void 0)}a.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},a.prototype.next=function(o){return this._invoke("next",o)},a.prototype.throw=function(o){return this._invoke("throw",o)},a.prototype.return=function(o){return this._invoke("return",o)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});$t(D9(),1);$t(k9(),1);$t(I9(),1);$t(Zr(),1);function L9(e){return zg(({path:t,args:n})=>{var r;const a=[...t],o=a.pop();if(o==="useMutation")return e[o](a,...n);if(o==="_def")return{path:a};const[l,...c]=n,d=(r=c[0])!==null&&r!==void 0?r:{};return e[o](a,l,d)})}var hx;const B9=["client","ssrContext","ssrState","abortOnUnmount"],$9=(hx=E.createContext)===null||hx===void 0?void 0:hx.call(Bg,null),q9=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function z9(e){return zg(t=>{const n=[...t.path],r=n.pop(),a=[...t.args],o=a.shift(),l=q9(r),c=da(n,o,l);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,c,a[0]),queryOptions:()=>e.queryOptions(n,c,...a),fetch:()=>e.fetchQuery(c,...a),fetchInfinite:()=>e.fetchInfiniteQuery(c,a[0]),prefetch:()=>e.prefetchQuery(c,...a),prefetchInfinite:()=>e.prefetchInfiniteQuery(c,a[0]),ensureData:()=>e.ensureQueryData(c,...a),invalidate:()=>e.invalidateQueries(c,...a),reset:()=>e.resetQueries(c,...a),refetch:()=>e.refetchQueries(c,...a),cancel:()=>e.cancelQuery(c,...a),setData:()=>{e.setQueryData(c,a[0],a[1])},setQueriesData:()=>e.setQueriesData(c,a[0],a[1],a[2]),setInfiniteData:()=>{e.setInfiniteQueryData(c,a[0],a[1])},getData:()=>e.getQueryData(c),getInfiniteData:()=>e.getInfiniteQueryData(c),setMutationDefaults:()=>e.setMutationDefaults(ph(n),o),getMutationDefaults:()=>e.getMutationDefaults(ph(n)),isMutating:()=>e.isMutating({mutationKey:ph(n)})}[r]()})}function U9(e){const t=w5(e.client),n=z9(e);return uO(r=>{const a=r;return a==="client"?t:B9.includes(a)?e[a]:n[r]})}var F9=Os(af(),1);function fN(e){const t=e instanceof Fg?e:fO(e);return zg(n=>{const r=n.path,a=r.join("."),[o,l]=n.args;return(0,F9.default)({queryKey:da(r,o,"query"),queryFn:()=>t.query(a,o,l?.trpc)},l)})}var gx=Os(af(),1);function Nn(e,t,n){var r;const a=e[0];let o=(r=e[1])===null||r===void 0?void 0:r.input;if(n){var l;o=(0,gx.default)((0,gx.default)((0,gx.default)({},(l=o)!==null&&l!==void 0?l:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[a.join("."),o,t?.trpc]}var K9=uo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(a){var o,l,c,d=2;for(typeof Symbol<"u"&&(l=Symbol.asyncIterator,c=Symbol.iterator);d--;){if(l&&(o=a[l])!=null)return o.call(a);if(c&&(o=a[c])!=null)return new r(o.call(a));l="@@asyncIterator",c="@@iterator"}throw new TypeError("Object is not async iterable")}function r(a){function o(l){if(Object(l)!==l)return Promise.reject(new TypeError(l+" is not an object."));var c=l.done;return Promise.resolve(l.value).then(function(d){return{value:d,done:c}})}return r=function(c){this.s=c,this.n=c.next},r.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(c){var d=this.s.return;return d===void 0?Promise.resolve({value:c,done:!0}):o(d.apply(this.s,arguments))},throw:function(c){var d=this.s.return;return d===void 0?Promise.reject(c):o(d.apply(this.s,arguments))}},new r(a)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),H9=Os(K9(),1);function rS(e){return{path:e.path.join(".")}}function Mu(e){const t=rS(e);return E.useMemo(()=>t,[t])}async function A5(e,t,n){const a=t.getQueryCache().build(t,{queryKey:n});a.setState({data:[],status:"success"});const o=[];var l=!1,c=!1,d;try{for(var f=(0,H9.default)(e),m;l=!(m=await f.next()).done;l=!1){const g=m.value;o.push(g),a.setState({data:[...o]})}}catch(g){c=!0,d=g}finally{try{l&&f.return!=null&&await f.return()}finally{if(c)throw d}}return o}var it=Os(af(),1);function G9(e){const{client:t,queryClient:n}=e,r=t instanceof Fg?t:fO(t);return{infiniteQueryOptions:(a,o,l)=>{var c,d;const f=((c=o[1])===null||c===void 0?void 0:c.input)===lr,m=async g=>{var v;const b=(0,it.default)((0,it.default)({},l),{},{trpc:(0,it.default)((0,it.default)({},l?.trpc),!(l==null||(v=l.trpc)===null||v===void 0)&&v.abortOnUnmount?{signal:g.signal}:{signal:null})});return await r.query(...Nn(o,b,{direction:g.direction,pageParam:g.pageParam}))};return Object.assign((0,it.default)((0,it.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:f?lr:m,initialPageParam:(d=l?.initialCursor)!==null&&d!==void 0?d:null}),{trpc:rS({path:a})})},queryOptions:(a,o,l)=>{var c;const d=((c=o[1])===null||c===void 0?void 0:c.input)===lr,f=async m=>{var g;const v=(0,it.default)((0,it.default)({},l),{},{trpc:(0,it.default)((0,it.default)({},l?.trpc),!(l==null||(g=l.trpc)===null||g===void 0)&&g.abortOnUnmount?{signal:m.signal}:{signal:null})}),b=await r.query(...Nn(o,v));return a5(b)?A5(b,n,o):b};return Object.assign((0,it.default)((0,it.default)({},l),{},{initialData:l?.initialData,queryKey:o,queryFn:d?lr:f}),{trpc:rS({path:a})})},fetchQuery:(a,o)=>n.fetchQuery((0,it.default)((0,it.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...Nn(a,o))})),fetchInfiniteQuery:(a,o)=>{var l;return n.fetchInfiniteQuery((0,it.default)((0,it.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:d})=>r.query(...Nn(a,o,{pageParam:c,direction:d})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},prefetchQuery:(a,o)=>n.prefetchQuery((0,it.default)((0,it.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...Nn(a,o))})),prefetchInfiniteQuery:(a,o)=>{var l;return n.prefetchInfiniteQuery((0,it.default)((0,it.default)({},o),{},{queryKey:a,queryFn:({pageParam:c,direction:d})=>r.query(...Nn(a,o,{pageParam:c,direction:d})),initialPageParam:(l=o?.initialCursor)!==null&&l!==void 0?l:null}))},ensureQueryData:(a,o)=>n.ensureQueryData((0,it.default)((0,it.default)({},o),{},{queryKey:a,queryFn:()=>r.query(...Nn(a,o))})),invalidateQueries:(a,o,l)=>n.invalidateQueries((0,it.default)((0,it.default)({},o),{},{queryKey:a}),l),resetQueries:(a,o,l)=>n.resetQueries((0,it.default)((0,it.default)({},o),{},{queryKey:a}),l),refetchQueries:(a,o,l)=>n.refetchQueries((0,it.default)((0,it.default)({},o),{},{queryKey:a}),l),cancelQuery:(a,o)=>n.cancelQueries({queryKey:a},o),setQueryData:(a,o,l)=>n.setQueryData(a,o,l),setQueriesData:(a,o,l,c)=>n.setQueriesData((0,it.default)((0,it.default)({},o),{},{queryKey:a}),l,c),getQueryData:a=>n.getQueryData(a),setInfiniteQueryData:(a,o,l)=>n.setQueryData(a,o,l),getInfiniteQueryData:a=>n.getQueryData(a),setMutationDefaults:(a,o)=>{const l=a[0],c=d=>r.mutation(...Nn([l,{input:d}],e));return n.setMutationDefaults(a,typeof o=="function"?o({canonicalMutationFn:c}):o)},getMutationDefaults:a=>n.getMutationDefaults(a),isMutating:a=>n.isMutating((0,it.default)((0,it.default)({},a),{},{exact:!0}))}}var ye=Os(af());const pN=(e,t)=>new Proxy(e,{get(r,a){return t(a),r[a]}});function V9(e){var t,n;const r=(t=void 0)!==null&&t!==void 0?t:O=>O.originalFn(),a=(n=void 0)!==null&&n!==void 0?n:$9,o=M9,l=O=>{var _;const{abortOnUnmount:N=!1,queryClient:P,ssrContext:k}=O,[z,B]=E.useState((_=O.ssrState)!==null&&_!==void 0?_:!1),L=O.client instanceof Fg?O.client:fO(O.client),U=E.useMemo(()=>G9({client:L,queryClient:P}),[L,P]),H=E.useMemo(()=>(0,ye.default)({abortOnUnmount:N,queryClient:P,client:L,ssrContext:k??null,ssrState:z},U),[N,L,U,P,k,z]);return E.useEffect(()=>{B(Q=>Q?"mounted":!1)},[]),h.jsx(a.Provider,{value:H,children:O.children})};function c(){const O=E.useContext(a);if(!O)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return O}function d(O,_){var N;const{queryClient:P,ssrState:k}=c();return k&&k!=="mounted"&&((N=P.getQueryCache().find({queryKey:O}))===null||N===void 0?void 0:N.state.status)==="error"?(0,ye.default)({retryOnMount:!1},_):_}function f(O,_,N){var P,k,z,B,L;const U=c(),{abortOnUnmount:H,client:Q,ssrState:D,queryClient:K,prefetchQuery:F}=U,X=da(O,_,"query"),oe=K.getQueryDefaults(X),q=_===lr;typeof window>"u"&&D==="prepass"&&(N==null||(P=N.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&((k=N?.enabled)!==null&&k!==void 0?k:oe?.enabled)!==!1&&!q&&!K.getQueryCache().find({queryKey:X})&&F(X,N);const V=d(X,(0,ye.default)((0,ye.default)({},oe),N)),Y=(z=(B=N==null||(L=N.trpc)===null||L===void 0?void 0:L.abortOnUnmount)!==null&&B!==void 0?B:void 0)!==null&&z!==void 0?z:H,ee=bF((0,ye.default)((0,ye.default)({},V),{},{queryKey:X,queryFn:q?_:async ue=>{const me=(0,ye.default)((0,ye.default)({},V),{},{trpc:(0,ye.default)((0,ye.default)({},V?.trpc),Y?{signal:ue.signal}:{signal:null})}),se=await Q.query(...Nn(X,me));return a5(se)?A5(se,K,X):se}}),K);return ee.trpc=Mu({path:O}),ee}function m(O,_,N){var P,k,z;const B=c(),L=da(O,_,"query"),U=_===lr,H=(P=(k=N==null||(z=N.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&k!==void 0?k:void 0)!==null&&P!==void 0?P:B.abortOnUnmount;OF((0,ye.default)((0,ye.default)({},N),{},{queryKey:L,queryFn:U?_:Q=>{const D={trpc:(0,ye.default)((0,ye.default)({},N?.trpc),H?{signal:Q.signal}:{})};return B.client.query(...Nn(L,D))}}))}function g(O,_,N){var P,k,z;const B=c(),L=da(O,_,"query"),U=(P=(k=N==null||(z=N.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&k!==void 0?k:void 0)!==null&&P!==void 0?P:B.abortOnUnmount,H=wF((0,ye.default)((0,ye.default)({},N),{},{queryKey:L,queryFn:Q=>{const D=(0,ye.default)((0,ye.default)({},N),{},{trpc:(0,ye.default)((0,ye.default)({},N?.trpc),U?{signal:Q.signal}:{signal:null})});return B.client.query(...Nn(L,D))}}),B.queryClient);return H.trpc=Mu({path:O}),[H.data,H]}function v(O,_){const{client:N,queryClient:P}=c(),k=ph(O),z=P.defaultMutationOptions(P.getMutationDefaults(k)),B=jF((0,ye.default)((0,ye.default)({},_),{},{mutationKey:k,mutationFn:L=>N.mutation(...Nn([O,{input:L}],_)),onSuccess(...L){var U,H;return r({originalFn:()=>{var D,K,F;return(D=_==null||(K=_.onSuccess)===null||K===void 0?void 0:K.call(_,...L))!==null&&D!==void 0?D:z==null||(F=z.onSuccess)===null||F===void 0?void 0:F.call(z,...L)},queryClient:P,meta:(U=(H=_?.meta)!==null&&H!==void 0?H:z?.meta)!==null&&U!==void 0?U:{}})}}),P);return B.trpc=Mu({path:O}),B}const b={data:void 0,error:null,status:"idle"},A={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function x(O,_,N){var P;const k=(P=N?.enabled)!==null&&P!==void 0?P:_!==lr,z=to(da(O,_,"any")),{client:B}=c(),L=E.useRef(N);E.useEffect(()=>{L.current=N});const[U]=E.useState(new Set([])),H=E.useCallback(q=>{U.add(q)},[U]),Q=E.useRef(null),D=E.useCallback(q=>{const V=F.current,Y=F.current=q(V);let ee=!1;for(const ue of U)if(V[ue]!==Y[ue]){ee=!0;break}ee&&oe(pN(Y,H))},[H,U]),K=E.useCallback(()=>{var q;if((q=Q.current)===null||q===void 0||q.unsubscribe(),!k){D(()=>(0,ye.default)((0,ye.default)({},b),{},{reset:K}));return}D(()=>(0,ye.default)((0,ye.default)({},A),{},{reset:K}));const V=B.subscription(O.join("."),_??void 0,{onStarted:()=>{var Y,ee;(Y=(ee=L.current).onStarted)===null||Y===void 0||Y.call(ee),D(ue=>(0,ye.default)((0,ye.default)({},ue),{},{status:"pending",error:null}))},onData:Y=>{var ee,ue;(ee=(ue=L.current).onData)===null||ee===void 0||ee.call(ue,Y),D(me=>(0,ye.default)((0,ye.default)({},me),{},{status:"pending",data:Y,error:null}))},onError:Y=>{var ee,ue;(ee=(ue=L.current).onError)===null||ee===void 0||ee.call(ue,Y),D(me=>(0,ye.default)((0,ye.default)({},me),{},{status:"error",error:Y}))},onConnectionStateChange:Y=>{D(ee=>{switch(Y.state){case"idle":return(0,ye.default)((0,ye.default)({},ee),{},{status:Y.state,error:null,data:void 0});case"connecting":return(0,ye.default)((0,ye.default)({},ee),{},{error:Y.error,status:Y.state});case"pending":return ee}})},onComplete:()=>{var Y,ee;(Y=(ee=L.current).onComplete)===null||Y===void 0||Y.call(ee),D(ue=>(0,ye.default)((0,ye.default)({},ue),{},{status:"idle",error:null,data:void 0}))}});Q.current=V},[B,z,k,D]);E.useEffect(()=>(K(),()=>{var q;(q=Q.current)===null||q===void 0||q.unsubscribe()}),[K]);const F=E.useRef(k?(0,ye.default)((0,ye.default)({},A),{},{reset:K}):(0,ye.default)((0,ye.default)({},b),{},{reset:K})),[X,oe]=E.useState(pN(F.current,H));return X}function w(O,_,N){var P,k,z,B,L;const{client:U,ssrState:H,prefetchInfiniteQuery:Q,queryClient:D,abortOnUnmount:K}=c(),F=da(O,_,"infinite"),X=D.getQueryDefaults(F),oe=_===lr;typeof window>"u"&&H==="prepass"&&(N==null||(P=N.trpc)===null||P===void 0?void 0:P.ssr)!==!1&&((k=N?.enabled)!==null&&k!==void 0?k:X?.enabled)!==!1&&!oe&&!D.getQueryCache().find({queryKey:F})&&Q(F,(0,ye.default)((0,ye.default)({},X),N));const q=d(F,(0,ye.default)((0,ye.default)({},X),N)),V=(z=N==null||(B=N.trpc)===null||B===void 0?void 0:B.abortOnUnmount)!==null&&z!==void 0?z:K,Y=EF((0,ye.default)((0,ye.default)({},q),{},{initialPageParam:(L=N.initialCursor)!==null&&L!==void 0?L:null,persister:N.persister,queryKey:F,queryFn:oe?_:ee=>{var ue;const me=(0,ye.default)((0,ye.default)({},q),{},{trpc:(0,ye.default)((0,ye.default)({},q?.trpc),V?{signal:ee.signal}:{signal:null})});return U.query(...Nn(F,me,{pageParam:(ue=ee.pageParam)!==null&&ue!==void 0?ue:N.initialCursor,direction:ee.direction}))}}),D);return Y.trpc=Mu({path:O}),Y}function C(O,_,N){var P,k,z;const B=c(),L=da(O,_,"infinite"),U=B.queryClient.getQueryDefaults(L),H=_===lr,Q=d(L,(0,ye.default)((0,ye.default)({},U),N)),D=(P=N==null||(k=N.trpc)===null||k===void 0?void 0:k.abortOnUnmount)!==null&&P!==void 0?P:B.abortOnUnmount;CF((0,ye.default)((0,ye.default)({},N),{},{initialPageParam:(z=N.initialCursor)!==null&&z!==void 0?z:null,queryKey:L,queryFn:H?_:K=>{var F;const X=(0,ye.default)((0,ye.default)({},Q),{},{trpc:(0,ye.default)((0,ye.default)({},Q?.trpc),D?{signal:K.signal}:{})});return B.client.query(...Nn(L,X,{pageParam:(F=K.pageParam)!==null&&F!==void 0?F:N.initialCursor,direction:K.direction}))}}))}function j(O,_,N){var P,k,z;const B=c(),L=da(O,_,"infinite"),U=B.queryClient.getQueryDefaults(L),H=d(L,(0,ye.default)((0,ye.default)({},U),N)),Q=(P=N==null||(k=N.trpc)===null||k===void 0?void 0:k.abortOnUnmount)!==null&&P!==void 0?P:B.abortOnUnmount,D=SF((0,ye.default)((0,ye.default)({},N),{},{initialPageParam:(z=N.initialCursor)!==null&&z!==void 0?z:null,queryKey:L,queryFn:K=>{var F;const X=(0,ye.default)((0,ye.default)({},H),{},{trpc:(0,ye.default)((0,ye.default)({},H?.trpc),Q?{signal:K.signal}:{})});return B.client.query(...Nn(L,X,{pageParam:(F=K.pageParam)!==null&&F!==void 0?F:N.initialCursor,direction:K.direction}))}}),B.queryClient);return D.trpc=Mu({path:O}),[D.data,D]}return{Provider:l,createClient:o,useContext:c,useUtils:c,useQuery:f,usePrefetchQuery:m,useSuspenseQuery:g,useQueries:(O,_)=>{const{ssrState:N,queryClient:P,prefetchQuery:k,client:z}=c(),B=fN(z),L=O(B);if(typeof window>"u"&&N==="prepass")for(const H of L){var U;const Q=H;((U=Q.trpc)===null||U===void 0?void 0:U.ssr)!==!1&&!P.getQueryCache().find({queryKey:Q.queryKey})&&k(Q.queryKey,Q)}return r5({queries:L.map(H=>(0,ye.default)((0,ye.default)({},H),{},{queryKey:H.queryKey})),combine:_?.combine},P)},useSuspenseQueries:O=>{const{queryClient:_,client:N}=c(),P=fN(N),k=O(P),z=AF({queries:k.map(B=>(0,ye.default)((0,ye.default)({},B),{},{queryFn:B.queryFn,queryKey:B.queryKey}))},_);return[z.map(B=>B.data),z]},useMutation:v,useSubscription:x,useInfiniteQuery:w,usePrefetchInfiniteQuery:C,useSuspenseInfiniteQuery:j}}function Y9(e){const t=L9(e);return uO(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return E.useMemo(()=>U9(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function Q9(e){const t=V9();return Y9(t)}const Me=Q9(),ke=e=>typeof e=="string",Pu=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},hN=e=>e==null?"":""+e,X9=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},W9=/###/g,gN=e=>e&&e.indexOf("###")>-1?e.replace(W9,"."):e,mN=e=>!e||ke(e),Wu=(e,t,n)=>{const r=ke(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(mN(e))return{};const o=gN(r[a]);!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++a}return mN(e)?{}:{obj:e,k:gN(r[a])}},vN=(e,t,n)=>{const{obj:r,k:a}=Wu(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let o=t[t.length-1],l=t.slice(0,t.length-1),c=Wu(e,l,Object);for(;c.obj===void 0&&l.length;)o=`${l[l.length-1]}.${o}`,l=l.slice(0,l.length-1),c=Wu(e,l,Object),c?.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},Z9=(e,t,n,r)=>{const{obj:a,k:o}=Wu(e,t,Object);a[o]=a[o]||[],a[o].push(n)},Ch=(e,t)=>{const{obj:n,k:r}=Wu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},J9=(e,t,n)=>{const r=Ch(e,n);return r!==void 0?r:Ch(t,n)},O5=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?ke(e[r])||e[r]instanceof String||ke(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):O5(e[r],t[r],n):e[r]=t[r]);return e},qo=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var e7={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const t7=e=>ke(e)?e.replace(/[&<>"'\/]/g,t=>e7[t]):e;class n7{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const r7=[" ",",","?","!",";"],a7=new n7(20),i7=(e,t,n)=>{t=t||"",n=n||"";const r=r7.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const a=a7.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!a.test(e);if(!o){const l=e.indexOf(n);l>0&&!a.test(e.substring(0,l))&&(o=!0)}return o},aS=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let o=0;o<r.length;){if(!a||typeof a!="object")return;let l,c="";for(let d=o;d<r.length;++d)if(d!==o&&(c+=n),c+=r[d],l=a[c],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&d<r.length-1)continue;o+=d-o+1;break}a=l}return a},ud=e=>e?.replace("_","-"),o7={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class jh{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||o7,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(ke(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new jh(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new jh(this.logger,t)}}var pa=new jh;let Kg=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,o])=>{for(let l=0;l<o;l++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,o])=>{for(let l=0;l<o;l++)a.apply(a,[t,...n])})}};class yN extends Kg{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;t.indexOf(".")>-1?c=t.split("."):(c=[t,n],r&&(Array.isArray(r)?c.push(...r):ke(r)&&o?c.push(...r.split(o)):c.push(r)));const d=Ch(this.data,c);return!d&&!n&&!r&&t.indexOf(".")>-1&&(t=c[0],n=c[1],r=c.slice(2).join(".")),d||!l||!ke(r)?d:aS(this.data?.[t]?.[n],r,o)}addResource(t,n,r,a,o={silent:!1}){const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[t,n];r&&(c=c.concat(l?r.split(l):r)),t.indexOf(".")>-1&&(c=t.split("."),a=n,n=c[1]),this.addNamespaces(n),vN(this.data,c,a),o.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const o in r)(ke(r[o])||Array.isArray(r[o]))&&this.addResource(t,n,o,r[o],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,o,l={silent:!1,skipCopy:!1}){let c=[t,n];t.indexOf(".")>-1&&(c=t.split("."),a=r,r=n,n=c[1]),this.addNamespaces(n);let d=Ch(this.data,c)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?O5(d,r,o):d={...d,...r},vN(this.data,c,d),l.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var C5={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(o=>{t=this.processors[o]?.process(t,n,r,a)??t}),t}};const j5=Symbol("i18next/PATH_KEY");function s7(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===j5?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function iS(e,t){const{[j5]:n}=e(s7());return n.join(t?.keySeparator??".")}const xN={},mx=e=>!ke(e)&&typeof e!="boolean"&&typeof e!="number";class Eh extends Kg{constructor(t,n={}){super(),X9(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=pa.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const a=this.resolve(t,r);if(a?.res===void 0)return!1;const o=mx(a.res);return!(r.returnObjects===!1&&o)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const l=r&&t.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!i7(t,r,a);if(l&&!c){const d=t.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:t,namespaces:ke(o)?[o]:o};const f=t.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(o=f.shift()),t=f.join(a)}return{key:t,namespaces:ke(o)?[o]:o}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=iS(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]);const o=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:c,namespaces:d}=this.extractFromKey(t[t.length-1],a),f=d[d.length-1];let m=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const g=a.lng||this.language,v=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g?.toLowerCase()==="cimode")return v?o?{res:`${f}${m}${c}`,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:f,usedParams:this.getUsedParamsDetails(a)}:`${f}${m}${c}`:o?{res:c,usedKey:c,exactUsedKey:c,usedLng:g,usedNS:f,usedParams:this.getUsedParamsDetails(a)}:c;const b=this.resolve(t,a);let A=b?.res;const x=b?.usedKey||c,w=b?.exactUsedKey||c,C=["[object Number]","[object Function]","[object RegExp]"],j=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,M=a.count!==void 0&&!ke(a.count),O=Eh.hasDefaultValue(a),_=M?this.pluralResolver.getSuffix(g,a.count,a):"",N=a.ordinal&&M?this.pluralResolver.getSuffix(g,a.count,{ordinal:!1}):"",P=M&&!a.ordinal&&a.count===0,k=P&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${_}`]||a[`defaultValue${N}`]||a.defaultValue;let z=A;T&&!A&&O&&(z=k);const B=mx(z),L=Object.prototype.toString.apply(z);if(T&&z&&B&&C.indexOf(L)<0&&!(ke(j)&&Array.isArray(z))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const U=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,z,{...a,ns:d}):`key '${c} (${this.language})' returned an object instead of string.`;return o?(b.res=U,b.usedParams=this.getUsedParamsDetails(a),b):U}if(l){const U=Array.isArray(z),H=U?[]:{},Q=U?w:x;for(const D in z)if(Object.prototype.hasOwnProperty.call(z,D)){const K=`${Q}${l}${D}`;O&&!A?H[D]=this.translate(K,{...a,defaultValue:mx(k)?k[D]:void 0,joinArrays:!1,ns:d}):H[D]=this.translate(K,{...a,joinArrays:!1,ns:d}),H[D]===K&&(H[D]=z[D])}A=H}}else if(T&&ke(j)&&Array.isArray(A))A=A.join(j),A&&(A=this.extendTranslation(A,t,a,r));else{let U=!1,H=!1;!this.isValidLookup(A)&&O&&(U=!0,A=k),this.isValidLookup(A)||(H=!0,A=c);const D=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&H?void 0:A,K=O&&k!==A&&this.options.updateMissing;if(H||U||K){if(this.logger.log(K?"updateKey":"missingKey",g,f,c,K?k:A),l){const q=this.resolve(c,{...a,keySeparator:!1});q&&q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let q=0;q<X.length;q++)F.push(X[q]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(a.lng||this.language):F.push(a.lng||this.language);const oe=(q,V,Y)=>{const ee=O&&Y!==A?Y:D;this.options.missingKeyHandler?this.options.missingKeyHandler(q,f,V,ee,K,a):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(q,f,V,ee,K,a),this.emit("missingKey",q,f,V,A)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?F.forEach(q=>{const V=this.pluralResolver.getSuffixes(q,a);P&&a[`defaultValue${this.options.pluralSeparator}zero`]&&V.indexOf(`${this.options.pluralSeparator}zero`)<0&&V.push(`${this.options.pluralSeparator}zero`),V.forEach(Y=>{oe([q],c+Y,a[`defaultValue${Y}`]||k)})}):oe(F,c,k))}A=this.extendTranslation(A,t,a,b,r),H&&A===c&&this.options.appendNamespaceToMissingKey&&(A=`${f}${m}${c}`),(H||U)&&this.options.parseMissingKeyHandler&&(A=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${m}${c}`:c,U?A:void 0,a))}return o?(b.res=A,b.usedParams=this.getUsedParamsDetails(a),b):A}extendTranslation(t,n,r,a,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=ke(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const g=t.match(this.interpolator.nestingRegexp);f=g&&g.length}let m=r.replace&&!ke(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,r.lng||this.language||a.usedLng,r),d){const g=t.match(this.interpolator.nestingRegexp),v=g&&g.length;f<v&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...g)=>o?.[0]===g[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):this.translate(...g,n),r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,c=ke(l)?[l]:l;return t!=null&&c?.length&&r.applyPostProcessor!==!1&&(t=C5.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,o,l,c;return ke(t)&&(t=[t]),t.forEach(d=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(d,n),m=f.key;a=m;let g=f.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const v=n.count!==void 0&&!ke(n.count),b=v&&!n.ordinal&&n.count===0,A=n.context!==void 0&&(ke(n.context)||typeof n.context=="number")&&n.context!=="",x=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(w=>{this.isValidLookup(r)||(c=w,!xN[`${x[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(xN[`${x[0]}-${w}`]=!0,this.logger.warn(`key "${a}" for languages "${x.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),x.forEach(C=>{if(this.isValidLookup(r))return;l=C;const j=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(j,m,C,w,n);else{let M;v&&(M=this.pluralResolver.getSuffix(C,n.count,n));const O=`${this.options.pluralSeparator}zero`,_=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&M.indexOf(_)===0&&j.push(m+M.replace(_,this.options.pluralSeparator)),j.push(m+M),b&&j.push(m+O)),A){const N=`${m}${this.options.contextSeparator||"_"}${n.context}`;j.push(N),v&&(n.ordinal&&M.indexOf(_)===0&&j.push(N+M.replace(_,this.options.pluralSeparator)),j.push(N+M),b&&j.push(N+O))}}let T;for(;T=j.pop();)this.isValidLookup(r)||(o=T,r=this.getResource(C,w,T,n))}))})}),{res:r,usedKey:a,exactUsedKey:o,usedLng:l,usedNS:c}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!ke(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const o of n)delete a[o]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}class bN{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pa.create("languageUtils")}getScriptPartFromCode(t){if(t=ud(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ud(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(ke(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(l=>{if(l===o)return l;if(!(l.indexOf("-")<0&&o.indexOf("-")<0)&&(l.indexOf("-")>0&&o.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===o||l.indexOf(o)===0&&o.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),ke(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],o=l=>{l&&(this.isSupportedCode(l)?a.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return ke(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):ke(t)&&o(this.formatLanguageCode(t)),r.forEach(l=>{a.indexOf(l)<0&&o(this.formatLanguageCode(l))}),a}}const wN={zero:0,one:1,two:2,few:3,many:4,other:5},SN={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class l7{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=pa.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=ud(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:a});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let l;try{l=new Intl.PluralRules(r,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),SN;if(!t.match(/-|_/))return SN;const d=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(d,n)}return this.pluralRulesCache[o]=l,l}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,o)=>wN[a]-wN[o]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const AN=(e,t,n,r=".",a=!0)=>{let o=J9(e,t,n);return!o&&a&&ke(n)&&(o=aS(e,n,r),o===void 0&&(o=aS(t,n,r))),o},vx=e=>e.replace(/\$/g,"$$$$");class ON{constructor(t={}){this.logger=pa.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(n=>n),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:o,prefixEscaped:l,suffix:c,suffixEscaped:d,formatSeparator:f,unescapeSuffix:m,unescapePrefix:g,nestingPrefix:v,nestingPrefixEscaped:b,nestingSuffix:A,nestingSuffixEscaped:x,nestingOptionsSeparator:w,maxReplaces:C,alwaysFormat:j}=t.interpolation;this.escape=n!==void 0?n:t7,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=o?qo(o):l||"{{",this.suffix=c?qo(c):d||"}}",this.formatSeparator=f||",",this.unescapePrefix=m?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":m||"",this.nestingPrefix=v?qo(v):b||qo("$t("),this.nestingSuffix=A?qo(A):x||qo(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=C||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){let o,l,c;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=b=>{if(b.indexOf(this.formatSeparator)<0){const C=AN(n,d,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(C,void 0,r,{...a,...n,interpolationkey:b}):C}const A=b.split(this.formatSeparator),x=A.shift().trim(),w=A.join(this.formatSeparator).trim();return this.format(AN(n,d,x,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...a,...n,interpolationkey:x})};this.resetRegExp();const m=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,g=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>vx(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?vx(this.escape(b)):vx(b)}].forEach(b=>{for(c=0;o=b.regex.exec(t);){const A=o[1].trim();if(l=f(A),l===void 0)if(typeof m=="function"){const w=m(t,o,a);l=ke(w)?w:""}else if(a&&Object.prototype.hasOwnProperty.call(a,A))l="";else if(g){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${t}`),l="";else!ke(l)&&!this.useRawValueToEscape&&(l=hN(l));const x=b.safeValue(l);if(t=t.replace(o[0],x),g?(b.regex.lastIndex+=l.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,o,l;const c=(d,f)=>{const m=this.nestingOptionsSeparator;if(d.indexOf(m)<0)return d;const g=d.split(new RegExp(`${qo(m)}[ ]*{`));let v=`{${g[1]}`;d=g[0],v=this.interpolate(v,l);const b=v.match(/'/g),A=v.match(/"/g);((b?.length??0)%2===0&&!A||(A?.length??0)%2!==0)&&(v=v.replace(/'/g,'"'));try{l=JSON.parse(v),f&&(l={...f,...l})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,x),`${d}${m}${v}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,d};for(;a=this.nestingRegexp.exec(t);){let d=[];l={...r},l=l.replace&&!ke(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const f=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(f!==-1&&(d=a[1].slice(f).split(this.formatSeparator).map(m=>m.trim()).filter(Boolean),a[1]=a[1].slice(0,f)),o=n(c.call(this,a[1].trim(),l),l),o&&a[0]===t&&!ke(o))return o;ke(o)||(o=hN(o)),o||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),o=""),d.length&&(o=d.reduce((m,g)=>this.format(m,g,r.lng,{...r,interpolationkey:a[1].trim()}),o.trim())),t=t.replace(a[0],o),this.regexp.lastIndex=0}return t}}const c7=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);t==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):t==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(l=>{if(l){const[c,...d]=l.split(":"),f=d.join(":").trim().replace(/^'+|'+$/g,""),m=c.trim();n[m]||(n[m]=f),f==="false"&&(n[m]=!1),f==="true"&&(n[m]=!0),isNaN(f)||(n[m]=parseInt(f,10))}})}return{formatName:t,formatOptions:n}},CN=e=>{const t={};return(n,r,a)=>{let o=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(o={...o,[a.interpolationkey]:void 0});const l=r+JSON.stringify(o);let c=t[l];return c||(c=e(ud(r),a),t[l]=c),c(n)}},u7=e=>(t,n,r)=>e(ud(n),r)(t);class d7{constructor(t={}){this.logger=pa.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?CN:u7;this.formats={number:r((a,o)=>{const l=new Intl.NumberFormat(a,{...o});return c=>l.format(c)}),currency:r((a,o)=>{const l=new Intl.NumberFormat(a,{...o,style:"currency"});return c=>l.format(c)}),datetime:r((a,o)=>{const l=new Intl.DateTimeFormat(a,{...o});return c=>l.format(c)}),relativetime:r((a,o)=>{const l=new Intl.RelativeTimeFormat(a,{...o});return c=>l.format(c,o.range||"day")}),list:r((a,o)=>{const l=new Intl.ListFormat(a,{...o});return c=>l.format(c)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=CN(n)}format(t,n,r,a={}){const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){const c=o.findIndex(d=>d.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,d)=>{const{formatName:f,formatOptions:m}=c7(d);if(this.formats[f]){let g=c;try{const v=a?.formatParams?.[a.interpolationkey]||{},b=v.locale||v.lng||a.locale||a.lng||r;g=this.formats[f](c,b,{...m,...a,...v})}catch(v){this.logger.warn(v)}return g}else this.logger.warn(`there was no format function for ${f}`);return c},t)}}const f7=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class p7 extends Kg{constructor(t,n,r,a={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=pa.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(t,n,r,a){const o={},l={},c={},d={};return t.forEach(f=>{let m=!0;n.forEach(g=>{const v=`${f}|${g}`;!r.reload&&this.store.hasResourceBundle(f,g)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?l[v]===void 0&&(l[v]=!0):(this.state[v]=1,m=!1,l[v]===void 0&&(l[v]=!0),o[v]===void 0&&(o[v]=!0),d[g]===void 0&&(d[g]=!0)))}),m||(c[f]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}loaded(t,n,r){const a=t.split("|"),o=a[0],l=a[1];n&&this.emit("failedLoading",o,l,n),!n&&r&&this.store.addResourceBundle(o,l,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const c={};this.queue.forEach(d=>{Z9(d.loaded,[o],l),f7(d,t),n&&d.errors.push(n),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(f=>{c[f]||(c[f]={});const m=d.loaded[f];m.length&&m.forEach(g=>{c[f][g]===void 0&&(c[f][g]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(d=>!d.done)}read(t,n,r,a=0,o=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:o,callback:l});return}this.readingCalls++;const c=(f,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(f&&m&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,a+1,o*2,l)},o);return}l(f,m)},d=this.backend[r].bind(this.backend);if(d.length===2){try{const f=d(t,n);f&&typeof f.then=="function"?f.then(m=>c(null,m)).catch(c):c(null,f)}catch(f){c(f)}return}return d(t,n,c)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();ke(t)&&(t=this.languageUtils.toResolveHierarchy(t)),ke(n)&&(n=[n]);const o=this.queueLoad(t,n,r,a);if(!o.toLoad.length)return o.pending.length||a(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],o=r[1];this.read(a,o,"read",void 0,void 0,(l,c)=>{l&&this.logger.warn(`${n}loading namespace ${o} for language ${a} failed`,l),!l&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${a}`,c),this.loaded(t,l,c)})}saveMissing(t,n,r,a,o,l={},c=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const d={...l,isUpdate:o},f=this.backend.create.bind(this.backend);if(f.length<6)try{let m;f.length===5?m=f(t,n,r,a,d):m=f(t,n,r,a),m&&typeof m.then=="function"?m.then(g=>c(null,g)).catch(c):c(null,m)}catch(m){c(m)}else f(t,n,r,a,c,d)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const yx=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),ke(e[1])&&(t.defaultValue=e[1]),ke(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),jN=e=>(ke(e.ns)&&(e.ns=[e.ns]),ke(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ke(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),zp=()=>{},h7=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},E5="__i18next_supportNoticeShown",g7=()=>typeof globalThis<"u"&&!!globalThis[E5],m7=()=>{typeof globalThis<"u"&&(globalThis[E5]=!0)},v7=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(t=>t?.projectId));class Zu extends Kg{constructor(t={},n){if(super(),this.options=jN(t),this.services={},this.logger=pa,this.modules={external:[]},h7(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(ke(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=yx();this.options={...r,...this.options,...jN(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!v7(this)&&!g7()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),m7());const a=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?pa.init(a(this.modules.logger),this.options):pa.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=d7;const m=new bN(this.options);this.store=new yN(this.options.resources,this.options);const g=this.services;g.logger=pa,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new l7(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=a(f),g.formatter.init&&g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new ON(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new p7(a(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",(b,...A)=>{this.emit(b,...A)}),this.modules.languageDetector&&(g.languageDetector=a(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=a(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new Eh(this.services,this.options),this.translator.on("*",(b,...A)=>{this.emit(b,...A)}),this.modules.external.forEach(b=>{b.init&&b.init(this)})}if(this.format=this.options.interpolation.format,n||(n=zp),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=(...m)=>this.store[f](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...m)=>(this.store[f](...m),this)});const c=Pu(),d=()=>{const f=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),n(m,g)};if(this.languages&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),c}loadResources(t,n=zp){let r=n;const a=ke(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&o.indexOf(f)<0&&o.push(f)})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),this.options.preload?.forEach?.(c=>l(c)),this.services.backendConnector.load(o,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=Pu();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=zp),this.services.backendConnector.reload(t,n,o=>{a.resolve(),r(o)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&C5.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=Pu();this.emit("languageChanging",t);const a=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},o=(c,d)=>{d?this.isLanguageChangingTo===t&&(a(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,r.resolve((...f)=>this.t(...f)),n&&n(c,(...f)=>this.t(...f))},l=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const d=ke(c)?c:c&&c[0],f=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(ke(c)?[c]:c);f&&(this.language||a(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,m=>{o(m,f)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,r){const a=(o,l,...c)=>{let d;typeof l!="object"?d=this.options.overloadTranslationOptionHandler([o,l].concat(c)):d={...l},d.lng=d.lng||a.lng,d.lngs=d.lngs||a.lngs,d.ns=d.ns||a.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||r||a.keyPrefix);const f=this.options.keySeparator||".";let m;return d.keyPrefix&&Array.isArray(o)?m=o.map(g=>(typeof g=="function"&&(g=iS(g,{...this.options,...l})),`${d.keyPrefix}${f}${g}`)):(typeof o=="function"&&(o=iS(o,{...this.options,...l})),m=d.keyPrefix?`${d.keyPrefix}${f}${o}`:o),this.t(m,d)};return ke(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=r,a}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(c,d)=>{const f=this.services.backendConnector.state[`${c}|${d}`];return f===-1||f===0||f===2};if(n.precheck){const c=n.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,t)&&(!a||l(o,t)))}loadNamespaces(t,n){const r=Pu();return this.options.ns?(ke(t)&&(t=[t]),t.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Pu();ke(t)&&(t=[t]);const a=this.options.preload||[],o=t.filter(l=>a.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return o.length?(this.options.preload=a.concat(o),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const a=new Intl.Locale(t);if(a&&a.getTextInfo){const o=a.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new bN(yx());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new Zu(t,n);return r.createInstance=Zu.createInstance,r}cloneInstance(t={},n=zp){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},o=new Zu(a);if((t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const c=Object.keys(this.store.data).reduce((d,f)=>(d[f]={...this.store.data[f]},d[f]=Object.keys(d[f]).reduce((m,g)=>(m[g]={...d[f][g]},m),d[f]),d),{});o.store=new yN(c,a),o.services.resourceStore=o.store}if(t.interpolation){const d={...yx().interpolation,...this.options.interpolation,...t.interpolation},f={...a,interpolation:d};o.services.interpolator=new ON(f)}return o.translator=new Eh(o.services,a),o.translator.on("*",(c,...d)=>{o.emit(c,...d)}),o.init(a,n),o.translator.options=a,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const En=Zu.createInstance();En.createInstance;En.dir;En.init;En.loadResources;En.reloadResources;En.use;En.changeLanguage;En.getFixedT;En.t;En.exists;En.setDefaultNamespace;En.hasLoadedNamespace;En.loadNamespaces;En.loadLanguages;const{slice:y7,forEach:x7}=[];function b7(e){return x7.call(y7.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function w7(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const EN=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,S7=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(t);let o=`${e}=${a}`;if(r.maxAge>0){const l=r.maxAge-0;if(Number.isNaN(l))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(l)}`}if(r.domain){if(!EN.test(r.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${r.domain}`}if(r.path){if(!EN.test(r.path))throw new TypeError("option path is invalid");o+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(o+="; HttpOnly"),r.secure&&(o+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(o+="; Partitioned"),o},_N={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=S7(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var A7={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return _N.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:o}=t;n&&typeof document<"u"&&_N.create(n,e,r,a,o)}},O7={name:"querystring",lookup(e){let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const o=r.substring(1).split("&");for(let l=0;l<o.length;l++){const c=o[l].indexOf("=");c>0&&o[l].substring(0,c)===t&&(n=o[l].substring(c+1))}}return n}},C7={name:"hash",lookup(e){let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const o=a.substring(1);if(t){const l=o.split("&");for(let c=0;c<l.length;c++){const d=l[c].indexOf("=");d>0&&l[c].substring(0,d)===t&&(r=l[c].substring(d+1))}}if(r)return r;if(!r&&n>-1){const l=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(l)?l[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let Al=null;const TN=()=>{if(Al!==null)return Al;try{if(Al=typeof window<"u"&&window.localStorage!==null,!Al)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Al=!1}return Al};var j7={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&TN())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&TN()&&window.localStorage.setItem(n,e)}};let Ol=null;const NN=()=>{if(Ol!==null)return Ol;try{if(Ol=typeof window<"u"&&window.sessionStorage!==null,!Ol)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ol=!1}return Ol};var E7={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&NN())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&NN()&&window.sessionStorage.setItem(n,e)}},_7={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let o=0;o<n.length;o++)t.push(n[o]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},T7={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},N7={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof t=="number"?t:0]?.replace("/",""):void 0}},R7={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let _5=!1;try{document.cookie,_5=!0}catch{}const T5=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];_5||T5.splice(1,1);const M7=()=>({order:T5,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class N5{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=b7(n,this.options||{},M7()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(A7),this.addDetector(O7),this.addDetector(j7),this.addDetector(E7),this.addDetector(_7),this.addDetector(T7),this.addDetector(N7),this.addDetector(R7),this.addDetector(C7)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!w7(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}N5.type="languageDetector";const P7=(e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);ls(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console?.warn&&console.warn(...a)},RN={},R5=(e,t,n,r)=>{ls(n)&&RN[n]||(ls(n)&&(RN[n]=new Date),P7(e,t,n,r))},M5=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},oS=(e,t,n)=>{e.loadNamespaces(t,M5(e,n))},MN=(e,t,n,r)=>{if(ls(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return oS(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,M5(e,r))},D7=(e,t,n={})=>!t.languages||!t.languages.length?(R5(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),ls=e=>typeof e=="string",k7=e=>typeof e=="object"&&e!==null,I7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,L7={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},B7=e=>L7[e],$7=e=>e.replace(I7,B7);let sS={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:$7,transDefaultProps:void 0};const q7=(e={})=>{sS={...sS,...e}},z7=()=>sS;let P5;const U7=e=>{P5=e},F7=()=>P5,K7={type:"3rdParty",init(e){q7(e.options.react),U7(e)}},H7=E.createContext();class G7{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var xx={exports:{}},bx={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var PN;function V7(){if(PN)return bx;PN=1;var e=Lg();function t(g,v){return g===v&&(g!==0||1/g===1/v)||g!==g&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function c(g,v){var b=v(),A=r({inst:{value:b,getSnapshot:v}}),x=A[0].inst,w=A[1];return o(function(){x.value=b,x.getSnapshot=v,d(x)&&w({inst:x})},[g,b,v]),a(function(){return d(x)&&w({inst:x}),g(function(){d(x)&&w({inst:x})})},[g]),l(b),b}function d(g){var v=g.getSnapshot;g=g.value;try{var b=v();return!n(g,b)}catch{return!0}}function f(g,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:c;return bx.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,bx}var DN;function Y7(){return DN||(DN=1,xx.exports=V7()),xx.exports}var D5=Y7();const Q7=(e,t)=>ls(t)?t:k7(t)&&ls(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,X7={t:Q7,ready:!1},W7=()=>()=>{},Hg=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:a}=E.useContext(H7)||{},o=n||r||F7();o&&!o.reportNamespaces&&(o.reportNamespaces=new G7),o||R5(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=E.useMemo(()=>({...z7(),...o?.options?.react,...t}),[o,t]),{useSuspense:c,keyPrefix:d}=l,f=a||o?.options?.defaultNS,m=ls(f)?[f]:f||["translation"],g=E.useMemo(()=>m,m);o?.reportNamespaces?.addUsedNamespaces?.(g);const v=E.useRef(0),b=E.useCallback(k=>{if(!o)return W7;const{bindI18n:z,bindI18nStore:B}=l,L=()=>{v.current+=1,k()};return z&&o.on(z,L),B&&o.store.on(B,L),()=>{z&&z.split(" ").forEach(U=>o.off(U,L)),B&&B.split(" ").forEach(U=>o.store.off(U,L))}},[o,l]),A=E.useRef(),x=E.useCallback(()=>{if(!o)return X7;const k=!!(o.isInitialized||o.initializedStoreOnce)&&g.every(Q=>D7(Q,o,l)),z=t.lng||o.language,B=v.current,L=A.current;if(L&&L.ready===k&&L.lng===z&&L.keyPrefix===d&&L.revision===B)return L;const H={t:o.getFixedT(z,l.nsMode==="fallback"?g:g[0],d),ready:k,lng:z,keyPrefix:d,revision:B};return A.current=H,H},[o,g,d,l,t.lng]),[w,C]=E.useState(0),{t:j,ready:T}=D5.useSyncExternalStore(b,x,x);E.useEffect(()=>{if(o&&!T&&!c){const k=()=>C(z=>z+1);t.lng?MN(o,t.lng,g,k):oS(o,g,k)}},[o,t.lng,g,T,c,w]);const M=o||{},O=E.useRef(null),_=E.useRef(),N=k=>{const z=Object.getOwnPropertyDescriptors(k);z.__original&&delete z.__original;const B=Object.create(Object.getPrototypeOf(k),z);if(!Object.prototype.hasOwnProperty.call(B,"__original"))try{Object.defineProperty(B,"__original",{value:k,writable:!1,enumerable:!1,configurable:!1})}catch{}return B},P=E.useMemo(()=>{const k=M,z=k?.language;let B=k;k&&(O.current&&O.current.__original===k?_.current!==z?(B=N(k),O.current=B,_.current=z):B=O.current:(B=N(k),O.current=B,_.current=z));const L=[j,B,T];return L.t=j,L.i18n=B,L.ready=T,L},[j,M,T,M.resolvedLanguage,M.language,M.languages]);if(o&&c&&!T)throw new Promise(k=>{const z=()=>k();t.lng?MN(o,t.lng,g,z):oS(o,g,z)});return P},Z7={common:{save:"保存",cancel:"取消",delete:"删除",edit:"编辑",add:"新增",search:"搜索",filter:"筛选",export:"导出",import:"导入",refresh:"刷新",confirm:"确认",close:"关闭",loading:"加载中...",noData:"暂无数据",success:"操作成功",error:"操作失败",warning:"警告",info:"提示",all:"全部",enable:"启用",disable:"禁用",active:"激活",inactive:"未激活",status:"状态",actions:"操作",createdAt:"创建时间",updatedAt:"更新时间",version:"版本",description:"描述",name:"名称",type:"类型",language:"语言",jurisdiction:"司法辖区",assetType:"资产类型"},auth:{login:"管理员登录",loginSubtitle:"使用您的 NAC 系统账户登录",email:"邮箱地址",password:"密码",loginButton:"登录系统",loggingIn:"登录中...",loginSuccess:"登录成功",loginFailed:"登录失败,请检查邮箱和密码",logout:"退出登录",logoutSuccess:"已退出登录",authNotice:"本系统使用 NAC 原生认证服务,所有操作均记录审计日志",verifying:"验证身份中...",unauthorized:"无访问权限",adminOnly:"此系统仅限管理员访问"},nav:{dashboard:"态势感知",knowledgeBase:"知识库管理",crawlers:"采集器监控",approvalCases:"AI审批案例",tagEngine:"标签引擎",protocolRegistry:"协议族注册表",auditLog:"权限与审计",systemTitle:"NAC 知识引擎",systemSubtitle:"管理后台",adminPanel:"管理员面板"},dashboard:{title:"全局态势感知",subtitle:"实时监控知识引擎运行状态",totalRules:"合规规则总数",activeCrawlers:"活跃采集器",pendingReviews:"待审批案例",approvalRate:"审批通过率",knowledgeGrowth:"知识库增长趋势",jurisdictionCoverage:"司法辖区覆盖",assetDistribution:"资产类型分布",crawlerHealth:"采集器健康度",recentActivity:"最近活动",systemStatus:"系统状态",allSystemsNormal:"所有系统运行正常",lastUpdated:"最后更新",viewAll:"查看全部",rules:"条规则",crawlers:"个采集器",cases:"个案例"},knowledgeBase:{title:"知识库管理",subtitle:"管理合规规则、法规条文与交易细则",addRule:"新增规则",editRule:"编辑规则",deleteRule:"删除规则",ruleTitle:"规则标题",ruleContent:"规则内容",ruleSource:"规则来源",effectiveDate:"生效日期",translationStatus:"翻译状态",original:"原文",aiTranslated:"AI翻译",humanReviewed:"人工审核",addTranslation:"添加翻译",missingTranslation:"缺少翻译",languageCoverage:"语言覆盖",contentLanguage:"内容语言",switchLanguage:"切换语言查看",ruleActivated:"规则已启用",ruleDeactivated:"规则已禁用",searchPlaceholder:"搜索规则标题、内容或来源...",filterByJurisdiction:"按辖区筛选",filterByAssetType:"按资产类型筛选",filterByStatus:"按状态筛选",totalRules:"共 {{count}} 条规则"},crawlers:{title:"采集器监控与管理",subtitle:"实时监控内部与外部数据采集器",internalCrawlers:"内部采集器",externalCrawlers:"外部采集器",crawlerName:"采集器名称",crawlerType:"采集器类型",lastRun:"最后运行",nextRun:"下次运行",successRate:"成功率",totalCollected:"采集总量",triggerNow:"立即触发",triggering:"触发中...",triggered:"已触发采集任务",addSource:"新增采集源",editSource:"编辑采集源",sourceUrl:"采集源URL",frequency:"采集频率",internal:"内部",external:"外部",running:"运行中",idle:"空闲",error:"错误",logs:"采集日志",viewLogs:"查看日志"},approvals:{title:"AI审批案例审查",subtitle:"审查AI自动审批结果,对中风险案例进行人工复核",caseId:"案例ID",assetName:"资产名称",applicant:"申请人",submittedAt:"提交时间",riskLevel:"风险等级",aiDecision:"AI决策",humanDecision:"人工决策",reviewStatus:"审核状态",pendingReview:"待审核",approved:"已通过",rejected:"已拒绝",underReview:"审核中",highRisk:"高风险",mediumRisk:"中风险",lowRisk:"低风险",approve:"通过",reject:"拒绝",reviewComment:"审核意见",addComment:"添加审核意见...",submitReview:"提交审核",aiConfidence:"AI置信度",complianceScore:"合规评分",missingDocuments:"缺失文件",reviewHistory:"审核历史",caseDetails:"案例详情",viewDetails:"查看详情"},tagEngine:{title:"标签与规则引擎治理",subtitle:"管理自动化标签序列生成规则",tagId:"标签ID",tagName:"标签名称",tagCategory:"标签分类",tagRule:"匹配规则",matchPattern:"匹配模式",priority:"优先级",addTag:"新增标签",editTag:"编辑标签",deleteTag:"删除标签",testTag:"测试标签",testInput:"测试输入",testResult:"测试结果",jurisdictionDimension:"司法辖区维度",assetTypeDimension:"资产分类维度",complianceDimension:"合规要求维度",riskDimension:"风险等级维度",crossLanguageAlignment:"跨语言对齐",standardTagId:"标准标签ID",languageMappings:"语言映射"},protocols:{title:"协议族注册表管理",subtitle:"管理接入AI审批系统的所有NAC原生协议",protocolName:"协议名称",protocolCode:"协议代码",protocolVersion:"协议版本",protocolStatus:"协议状态",triggerConditions:"触发条件",endpoint:"服务端点",addProtocol:"注册新协议",editProtocol:"编辑协议",deactivateProtocol:"停用协议",activateProtocol:"激活协议",protocolActivated:"协议已激活",protocolDeactivated:"协议已停用",registeredAt:"注册时间",lastCalled:"最后调用",callCount:"调用次数",protocolFamily:"协议族",coreProtocols:"核心协议"},audit:{title:"权限与审计管理",subtitle:"基于角色的访问控制与不可篡改审计日志",users:"用户管理",roles:"角色管理",auditLogs:"审计日志",userId:"用户ID",userName:"用户名",userEmail:"邮箱",userRole:"角色",lastLogin:"最后登录",admin:"管理员",reviewer:"审核员",legal:"法务",operator:"运营",action:"操作",resource:"资源",ipAddress:"IP地址",timestamp:"时间戳",result:"结果",details:"详情",exportLogs:"导出日志",filterByUser:"按用户筛选",filterByAction:"按操作筛选",filterByDate:"按日期筛选",immutableNote:"审计日志不可篡改,所有关键操作均被记录"},languageSwitcher:{selectLanguage:"选择语言",currentLanguage:"当前语言",knowledgeLanguage:"知识库语言"},jurisdictions:{CN:"中国",HK:"香港",US:"美国",EU:"欧盟",SG:"新加坡",AE:"阿联酋",JP:"日本",KR:"韩国",RU:"俄罗斯",GB:"英国",ALL:"全部辖区"},assetTypes:{"RE.RESIDENTIAL":"住宅房地产","RE.COMMERCIAL":"商业地产","RE.INDUSTRIAL":"工业地产","FIN.EQUITY":"股权资产","FIN.DEBT":"债权资产","FIN.FUND":"基金份额","COMM.PRECIOUS":"贵金属","COMM.ENERGY":"能源商品","IP.PATENT":"专利权","IP.COPYRIGHT":"版权","INFRA.TRANSPORT":"交通基础设施",ALL:"全部类型"}},J7={common:{save:"Save",cancel:"Cancel",delete:"Delete",edit:"Edit",add:"Add",search:"Search",filter:"Filter",export:"Export",import:"Import",refresh:"Refresh",confirm:"Confirm",close:"Close",loading:"Loading...",noData:"No data available",success:"Operation successful",error:"Operation failed",warning:"Warning",info:"Info",all:"All",enable:"Enable",disable:"Disable",active:"Active",inactive:"Inactive",status:"Status",actions:"Actions",createdAt:"Created At",updatedAt:"Updated At",version:"Version",description:"Description",name:"Name",type:"Type",language:"Language",jurisdiction:"Jurisdiction",assetType:"Asset Type"},auth:{login:"Administrator Login",loginSubtitle:"Sign in with your NAC system account",email:"Email Address",password:"Password",loginButton:"Sign In",loggingIn:"Signing in...",loginSuccess:"Login successful",loginFailed:"Login failed. Please check your email and password.",logout:"Sign Out",logoutSuccess:"Signed out successfully",authNotice:"This system uses NAC native authentication. All operations are recorded in audit logs.",verifying:"Verifying identity...",unauthorized:"Access Denied",adminOnly:"This system is restricted to administrators only."},nav:{dashboard:"Situational Awareness",knowledgeBase:"Knowledge Base",crawlers:"Crawler Monitor",approvalCases:"AI Approval Cases",tagEngine:"Tag Engine",protocolRegistry:"Protocol Registry",auditLog:"Permissions & Audit",systemTitle:"NAC Knowledge Engine",systemSubtitle:"Admin Console",adminPanel:"Admin Panel"},dashboard:{title:"Global Situational Awareness",subtitle:"Real-time monitoring of knowledge engine status",totalRules:"Total Compliance Rules",activeCrawlers:"Active Crawlers",pendingReviews:"Pending Reviews",approvalRate:"Approval Rate",knowledgeGrowth:"Knowledge Base Growth",jurisdictionCoverage:"Jurisdiction Coverage",assetDistribution:"Asset Type Distribution",crawlerHealth:"Crawler Health",recentActivity:"Recent Activity",systemStatus:"System Status",allSystemsNormal:"All systems operational",lastUpdated:"Last Updated",viewAll:"View All",rules:"rules",crawlers:"crawlers",cases:"cases"},knowledgeBase:{title:"Knowledge Base Management",subtitle:"Manage compliance rules, regulations and transaction details",addRule:"Add Rule",editRule:"Edit Rule",deleteRule:"Delete Rule",ruleTitle:"Rule Title",ruleContent:"Rule Content",ruleSource:"Rule Source",effectiveDate:"Effective Date",translationStatus:"Translation Status",original:"Original",aiTranslated:"AI Translated",humanReviewed:"Human Reviewed",addTranslation:"Add Translation",missingTranslation:"Missing Translation",languageCoverage:"Language Coverage",contentLanguage:"Content Language",switchLanguage:"Switch language to view",ruleActivated:"Rule activated",ruleDeactivated:"Rule deactivated",searchPlaceholder:"Search rule title, content or source...",filterByJurisdiction:"Filter by Jurisdiction",filterByAssetType:"Filter by Asset Type",filterByStatus:"Filter by Status",totalRules:"{{count}} rules total"},crawlers:{title:"Crawler Monitoring & Management",subtitle:"Real-time monitoring of internal and external data crawlers",internalCrawlers:"Internal Crawlers",externalCrawlers:"External Crawlers",crawlerName:"Crawler Name",crawlerType:"Crawler Type",lastRun:"Last Run",nextRun:"Next Run",successRate:"Success Rate",totalCollected:"Total Collected",triggerNow:"Trigger Now",triggering:"Triggering...",triggered:"Crawl task triggered",addSource:"Add Source",editSource:"Edit Source",sourceUrl:"Source URL",frequency:"Frequency",internal:"Internal",external:"External",running:"Running",idle:"Idle",error:"Error",logs:"Logs",viewLogs:"View Logs"},approvals:{title:"AI Approval Case Review",subtitle:"Review AI auto-approval results and manually review medium-risk cases",caseId:"Case ID",assetName:"Asset Name",applicant:"Applicant",submittedAt:"Submitted At",riskLevel:"Risk Level",aiDecision:"AI Decision",humanDecision:"Human Decision",reviewStatus:"Review Status",pendingReview:"Pending Review",approved:"Approved",rejected:"Rejected",underReview:"Under Review",highRisk:"High Risk",mediumRisk:"Medium Risk",lowRisk:"Low Risk",approve:"Approve",reject:"Reject",reviewComment:"Review Comment",addComment:"Add review comment...",submitReview:"Submit Review",aiConfidence:"AI Confidence",complianceScore:"Compliance Score",missingDocuments:"Missing Documents",reviewHistory:"Review History",caseDetails:"Case Details",viewDetails:"View Details"},tagEngine:{title:"Tag & Rule Engine Governance",subtitle:"Manage automated tag sequence generation rules",tagId:"Tag ID",tagName:"Tag Name",tagCategory:"Tag Category",tagRule:"Tag Rule",matchPattern:"Match Pattern",priority:"Priority",addTag:"Add Tag",editTag:"Edit Tag",deleteTag:"Delete Tag",testTag:"Test Tag",testInput:"Test Input",testResult:"Test Result",jurisdictionDimension:"Jurisdiction Dimension",assetTypeDimension:"Asset Type Dimension",complianceDimension:"Compliance Dimension",riskDimension:"Risk Dimension",crossLanguageAlignment:"Cross-Language Alignment",standardTagId:"Standard Tag ID",languageMappings:"Language Mappings"},protocols:{title:"Protocol Registry Management",subtitle:"Manage all NAC native protocols integrated with the AI approval system",protocolName:"Protocol Name",protocolCode:"Protocol Code",protocolVersion:"Protocol Version",protocolStatus:"Protocol Status",triggerConditions:"Trigger Conditions",endpoint:"Service Endpoint",addProtocol:"Register Protocol",editProtocol:"Edit Protocol",deactivateProtocol:"Deactivate Protocol",activateProtocol:"Activate Protocol",protocolActivated:"Protocol activated",protocolDeactivated:"Protocol deactivated",registeredAt:"Registered At",lastCalled:"Last Called",callCount:"Call Count",protocolFamily:"Protocol Family",coreProtocols:"Core Protocols"},audit:{title:"Permissions & Audit Management",subtitle:"Role-based access control and immutable audit logs",users:"User Management",roles:"Role Management",auditLogs:"Audit Logs",userId:"User ID",userName:"Username",userEmail:"Email",userRole:"Role",lastLogin:"Last Login",admin:"Admin",reviewer:"Reviewer",legal:"Legal",operator:"Operator",action:"Action",resource:"Resource",ipAddress:"IP Address",timestamp:"Timestamp",result:"Result",details:"Details",exportLogs:"Export Logs",filterByUser:"Filter by User",filterByAction:"Filter by Action",filterByDate:"Filter by Date",immutableNote:"Audit logs are immutable. All critical operations are recorded."},languageSwitcher:{selectLanguage:"Select Language",currentLanguage:"Current Language",knowledgeLanguage:"Knowledge Base Language"},jurisdictions:{CN:"China",HK:"Hong Kong",US:"United States",EU:"European Union",SG:"Singapore",AE:"UAE",JP:"Japan",KR:"South Korea",RU:"Russia",GB:"United Kingdom",ALL:"All Jurisdictions"},assetTypes:{"RE.RESIDENTIAL":"Residential Real Estate","RE.COMMERCIAL":"Commercial Real Estate","RE.INDUSTRIAL":"Industrial Real Estate","FIN.EQUITY":"Equity Assets","FIN.DEBT":"Debt Assets","FIN.FUND":"Fund Shares","COMM.PRECIOUS":"Precious Metals","COMM.ENERGY":"Energy Commodities","IP.PATENT":"Patents","IP.COPYRIGHT":"Copyrights","INFRA.TRANSPORT":"Transport Infrastructure",ALL:"All Types"}},eK={common:{save:"حفظ",cancel:"إلغاء",delete:"حذف",edit:"تعديل",add:"إضافة",search:"بحث",filter:"تصفية",export:"تصدير",import:"استيراد",refresh:"تحديث",confirm:"تأكيد",close:"إغلاق",loading:"جاري التحميل...",noData:"لا توجد بيانات",success:"تمت العملية بنجاح",error:"فشلت العملية",warning:"تحذير",info:"معلومات",all:"الكل",enable:"تفعيل",disable:"تعطيل",active:"نشط",inactive:"غير نشط",status:"الحالة",actions:"الإجراءات",createdAt:"تاريخ الإنشاء",updatedAt:"تاريخ التحديث",version:"الإصدار",description:"الوصف",name:"الاسم",type:"النوع",language:"اللغة",jurisdiction:"الولاية القضائية",assetType:"نوع الأصل"},auth:{login:"تسجيل دخول المسؤول",loginSubtitle:"سجّل الدخول باستخدام حساب NAC الخاص بك",email:"البريد الإلكتروني",password:"كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",loginSuccess:"تم تسجيل الدخول بنجاح",loginFailed:"فشل تسجيل الدخول. يرجى التحقق من البريد الإلكتروني وكلمة المرور.",logout:"تسجيل الخروج",logoutSuccess:"تم تسجيل الخروج بنجاح",authNotice:"يستخدم هذا النظام مصادقة NAC الأصلية. يتم تسجيل جميع العمليات في سجلات التدقيق.",verifying:"جاري التحقق من الهوية...",unauthorized:"تم رفض الوصول",adminOnly:"هذا النظام مقيد للمسؤولين فقط."},nav:{dashboard:"الوعي الظرفي",knowledgeBase:"قاعدة المعرفة",crawlers:"مراقبة الزواحف",approvalCases:"حالات الموافقة بالذكاء الاصطناعي",tagEngine:"محرك العلامات",protocolRegistry:"سجل البروتوكولات",auditLog:"الصلاحيات والتدقيق",systemTitle:"محرك معرفة NAC",systemSubtitle:"لوحة الإدارة",adminPanel:"لوحة المسؤول"},dashboard:{title:"الوعي الظرفي العالمي",subtitle:"مراقبة حالة محرك المعرفة في الوقت الفعلي",totalRules:"إجمالي قواعد الامتثال",activeCrawlers:"الزواحف النشطة",pendingReviews:"المراجعات المعلقة",approvalRate:"معدل الموافقة",knowledgeGrowth:"نمو قاعدة المعرفة",jurisdictionCoverage:"تغطية الولايات القضائية",assetDistribution:"توزيع أنواع الأصول",crawlerHealth:"صحة الزواحف",recentActivity:"النشاط الأخير",systemStatus:"حالة النظام",allSystemsNormal:"جميع الأنظمة تعمل بشكل طبيعي",lastUpdated:"آخر تحديث",viewAll:"عرض الكل",rules:"قاعدة",crawlers:"زاحف",cases:"حالة"},knowledgeBase:{title:"إدارة قاعدة المعرفة",subtitle:"إدارة قواعد الامتثال واللوائح وتفاصيل المعاملات",addRule:"إضافة قاعدة",editRule:"تعديل القاعدة",deleteRule:"حذف القاعدة",ruleTitle:"عنوان القاعدة",ruleContent:"محتوى القاعدة",ruleSource:"مصدر القاعدة",effectiveDate:"تاريخ السريان",translationStatus:"حالة الترجمة",original:"النص الأصلي",aiTranslated:"ترجمة ذكاء اصطناعي",humanReviewed:"مراجعة بشرية",addTranslation:"إضافة ترجمة",missingTranslation:"ترجمة مفقودة",languageCoverage:"تغطية اللغات",contentLanguage:"لغة المحتوى",switchLanguage:"تبديل اللغة للعرض",ruleActivated:"تم تفعيل القاعدة",ruleDeactivated:"تم تعطيل القاعدة",searchPlaceholder:"ابحث في عنوان القاعدة أو المحتوى أو المصدر...",filterByJurisdiction:"تصفية حسب الولاية",filterByAssetType:"تصفية حسب نوع الأصل",filterByStatus:"تصفية حسب الحالة",totalRules:"{{count}} قاعدة إجمالاً"},crawlers:{title:"مراقبة وإدارة الزواحف",subtitle:"مراقبة زواحف جمع البيانات الداخلية والخارجية في الوقت الفعلي",internalCrawlers:"الزواحف الداخلية",externalCrawlers:"الزواحف الخارجية",crawlerName:"اسم الزاحف",crawlerType:"نوع الزاحف",lastRun:"آخر تشغيل",nextRun:"التشغيل التالي",successRate:"معدل النجاح",totalCollected:"إجمالي المجموع",triggerNow:"تشغيل الآن",triggering:"جاري التشغيل...",triggered:"تم تشغيل مهمة الزحف",addSource:"إضافة مصدر",editSource:"تعديل المصدر",sourceUrl:"رابط المصدر",frequency:"التكرار",internal:"داخلي",external:"خارجي",running:"يعمل",idle:"خامل",error:"خطأ",logs:"السجلات",viewLogs:"عرض السجلات"},approvals:{title:"مراجعة حالات الموافقة بالذكاء الاصطناعي",subtitle:"مراجعة نتائج الموافقة التلقائية ومراجعة الحالات متوسطة المخاطر يدوياً",caseId:"معرف الحالة",assetName:"اسم الأصل",applicant:"مقدم الطلب",submittedAt:"تاريخ التقديم",riskLevel:"مستوى المخاطر",aiDecision:"قرار الذكاء الاصطناعي",humanDecision:"القرار البشري",reviewStatus:"حالة المراجعة",pendingReview:"في انتظار المراجعة",approved:"موافق عليه",rejected:"مرفوض",underReview:"قيد المراجعة",highRisk:"مخاطر عالية",mediumRisk:"مخاطر متوسطة",lowRisk:"مخاطر منخفضة",approve:"موافقة",reject:"رفض",reviewComment:"تعليق المراجعة",addComment:"أضف تعليق المراجعة...",submitReview:"إرسال المراجعة",aiConfidence:"ثقة الذكاء الاصطناعي",complianceScore:"درجة الامتثال",missingDocuments:"المستندات المفقودة",reviewHistory:"سجل المراجعة",caseDetails:"تفاصيل الحالة",viewDetails:"عرض التفاصيل"},tagEngine:{title:"حوكمة محرك العلامات والقواعد",subtitle:"إدارة قواعد توليد تسلسل العلامات التلقائية",tagId:"معرف العلامة",tagName:"اسم العلامة",tagCategory:"فئة العلامة",tagRule:"قاعدة العلامة",matchPattern:"نمط المطابقة",priority:"الأولوية",addTag:"إضافة علامة",editTag:"تعديل العلامة",deleteTag:"حذف العلامة",testTag:"اختبار العلامة",testInput:"مدخل الاختبار",testResult:"نتيجة الاختبار",jurisdictionDimension:"بُعد الولاية القضائية",assetTypeDimension:"بُعد نوع الأصل",complianceDimension:"بُعد الامتثال",riskDimension:"بُعد المخاطر",crossLanguageAlignment:"المحاذاة عبر اللغات",standardTagId:"معرف العلامة القياسي",languageMappings:"تعيينات اللغات"},protocols:{title:"إدارة سجل البروتوكولات",subtitle:"إدارة جميع بروتوكولات NAC الأصلية المدمجة مع نظام الموافقة بالذكاء الاصطناعي",protocolName:"اسم البروتوكول",protocolCode:"كود البروتوكول",protocolVersion:"إصدار البروتوكول",protocolStatus:"حالة البروتوكول",triggerConditions:"شروط التشغيل",endpoint:"نقطة الخدمة",addProtocol:"تسجيل بروتوكول",editProtocol:"تعديل البروتوكول",deactivateProtocol:"تعطيل البروتوكول",activateProtocol:"تفعيل البروتوكول",protocolActivated:"تم تفعيل البروتوكول",protocolDeactivated:"تم تعطيل البروتوكول",registeredAt:"تاريخ التسجيل",lastCalled:"آخر استدعاء",callCount:"عدد الاستدعاءات",protocolFamily:"عائلة البروتوكولات",coreProtocols:"البروتوكولات الأساسية"},audit:{title:"إدارة الصلاحيات والتدقيق",subtitle:"التحكم في الوصول المستند إلى الأدوار وسجلات التدقيق غير القابلة للتغيير",users:"إدارة المستخدمين",roles:"إدارة الأدوار",auditLogs:"سجلات التدقيق",userId:"معرف المستخدم",userName:"اسم المستخدم",userEmail:"البريد الإلكتروني",userRole:"دور المستخدم",lastLogin:"آخر تسجيل دخول",admin:"مسؤول",reviewer:"مراجع",legal:"قانوني",operator:"مشغل",action:"الإجراء",resource:"المورد",ipAddress:"عنوان IP",timestamp:"الطابع الزمني",result:"النتيجة",details:"التفاصيل",exportLogs:"تصدير السجلات",filterByUser:"تصفية حسب المستخدم",filterByAction:"تصفية حسب الإجراء",filterByDate:"تصفية حسب التاريخ",immutableNote:"سجلات التدقيق غير قابلة للتغيير. يتم تسجيل جميع العمليات الحرجة."},languageSwitcher:{selectLanguage:"اختر اللغة",currentLanguage:"اللغة الحالية",knowledgeLanguage:"لغة قاعدة المعرفة"},jurisdictions:{CN:"الصين",HK:"هونغ كونغ",US:"الولايات المتحدة",EU:"الاتحاد الأوروبي",SG:"سنغافورة",AE:"الإمارات العربية المتحدة",JP:"اليابان",KR:"كوريا الجنوبية",RU:"روسيا",GB:"المملكة المتحدة",ALL:"جميع الولايات"},assetTypes:{"RE.RESIDENTIAL":"العقارات السكنية","RE.COMMERCIAL":"العقارات التجارية","RE.INDUSTRIAL":"العقارات الصناعية","FIN.EQUITY":"أصول الملكية","FIN.DEBT":"أصول الدين","FIN.FUND":"حصص الصناديق","COMM.PRECIOUS":"المعادن الثمينة","COMM.ENERGY":"سلع الطاقة","IP.PATENT":"براءات الاختراع","IP.COPYRIGHT":"حقوق النشر","INFRA.TRANSPORT":"البنية التحتية للنقل",ALL:"جميع الأنواع"}},tK={common:{save:"保存",cancel:"キャンセル",delete:"削除",edit:"編集",add:"追加",search:"検索",filter:"フィルター",export:"エクスポート",import:"インポート",refresh:"更新",confirm:"確認",close:"閉じる",loading:"読み込み中...",noData:"データなし",success:"操作成功",error:"操作失敗",warning:"警告",info:"情報",all:"すべて",enable:"有効",disable:"無効",active:"アクティブ",inactive:"非アクティブ",status:"ステータス",actions:"操作",createdAt:"作成日時",updatedAt:"更新日時",version:"バージョン",description:"説明",name:"名前",type:"タイプ",language:"言語",jurisdiction:"司法管轄",assetType:"資産タイプ"},auth:{login:"管理者ログイン",loginSubtitle:"NACシステムアカウントでサインイン",email:"メールアドレス",password:"パスワード",loginButton:"ログイン",loggingIn:"ログイン中...",loginSuccess:"ログイン成功",loginFailed:"ログイン失敗。メールとパスワードを確認してください。",logout:"ログアウト",logoutSuccess:"ログアウトしました",authNotice:"このシステムはNACネイティブ認証を使用しています。すべての操作は監査ログに記録されます。",verifying:"認証中...",unauthorized:"アクセス拒否",adminOnly:"このシステムは管理者のみアクセス可能です。"},nav:{dashboard:"状況認識",knowledgeBase:"ナレッジベース",crawlers:"クローラー監視",approvalCases:"AI承認ケース",tagEngine:"タグエンジン",protocolRegistry:"プロトコルレジストリ",auditLog:"権限と監査",systemTitle:"NACナレッジエンジン",systemSubtitle:"管理コンソール",adminPanel:"管理パネル"},dashboard:{title:"グローバル状況認識",subtitle:"ナレッジエンジンの稼働状況をリアルタイム監視",totalRules:"コンプライアンスルール総数",activeCrawlers:"アクティブクローラー",pendingReviews:"承認待ちケース",approvalRate:"承認率",knowledgeGrowth:"ナレッジベース成長",jurisdictionCoverage:"管轄カバレッジ",assetDistribution:"資産タイプ分布",crawlerHealth:"クローラー健全性",recentActivity:"最近のアクティビティ",systemStatus:"システム状態",allSystemsNormal:"すべてのシステム正常稼働",lastUpdated:"最終更新",viewAll:"すべて表示",rules:"件のルール",crawlers:"台のクローラー",cases:"件のケース"},knowledgeBase:{title:"ナレッジベース管理",subtitle:"コンプライアンスルール、規制、取引詳細の管理",addRule:"ルール追加",editRule:"ルール編集",deleteRule:"ルール削除",ruleTitle:"ルールタイトル",ruleContent:"ルール内容",ruleSource:"ルールソース",effectiveDate:"発効日",translationStatus:"翻訳ステータス",original:"原文",aiTranslated:"AI翻訳",humanReviewed:"人間によるレビュー済み",addTranslation:"翻訳追加",missingTranslation:"翻訳なし",languageCoverage:"言語カバレッジ",contentLanguage:"コンテンツ言語",switchLanguage:"言語を切り替えて表示",ruleActivated:"ルールを有効化しました",ruleDeactivated:"ルールを無効化しました",searchPlaceholder:"ルールタイトル、内容、ソースを検索...",filterByJurisdiction:"管轄でフィルター",filterByAssetType:"資産タイプでフィルター",filterByStatus:"ステータスでフィルター",totalRules:"合計{{count}}件のルール"},crawlers:{title:"クローラー監視・管理",subtitle:"内部・外部データクローラーのリアルタイム監視",internalCrawlers:"内部クローラー",externalCrawlers:"外部クローラー",crawlerName:"クローラー名",crawlerType:"クローラータイプ",lastRun:"最終実行",nextRun:"次回実行",successRate:"成功率",totalCollected:"収集総数",triggerNow:"今すぐ実行",triggering:"実行中...",triggered:"クロールタスクを開始しました",addSource:"ソース追加",editSource:"ソース編集",sourceUrl:"ソースURL",frequency:"頻度",internal:"内部",external:"外部",running:"実行中",idle:"待機中",error:"エラー",logs:"ログ",viewLogs:"ログを表示"},approvals:{title:"AI承認ケースレビュー",subtitle:"AI自動承認結果のレビューと中リスクケースの手動審査",caseId:"ケースID",assetName:"資産名",applicant:"申請者",submittedAt:"提出日時",riskLevel:"リスクレベル",aiDecision:"AI判定",humanDecision:"人間の判定",reviewStatus:"レビューステータス",pendingReview:"レビュー待ち",approved:"承認済み",rejected:"却下済み",underReview:"レビュー中",highRisk:"高リスク",mediumRisk:"中リスク",lowRisk:"低リスク",approve:"承認",reject:"却下",reviewComment:"レビューコメント",addComment:"レビューコメントを追加...",submitReview:"レビュー送信",aiConfidence:"AI信頼度",complianceScore:"コンプライアンススコア",missingDocuments:"不足書類",reviewHistory:"レビュー履歴",caseDetails:"ケース詳細",viewDetails:"詳細を表示"},tagEngine:{title:"タグ・ルールエンジンガバナンス",subtitle:"自動タグシーケンス生成ルールの管理",tagId:"タグID",tagName:"タグ名",tagCategory:"タグカテゴリ",tagRule:"タグルール",matchPattern:"マッチパターン",priority:"優先度",addTag:"タグ追加",editTag:"タグ編集",deleteTag:"タグ削除",testTag:"タグテスト",testInput:"テスト入力",testResult:"テスト結果",jurisdictionDimension:"管轄ディメンション",assetTypeDimension:"資産タイプディメンション",complianceDimension:"コンプライアンスディメンション",riskDimension:"リスクディメンション",crossLanguageAlignment:"クロス言語アライメント",standardTagId:"標準タグID",languageMappings:"言語マッピング"},protocols:{title:"プロトコルレジストリ管理",subtitle:"AIシステムに統合されたすべてのNACネイティブプロトコルの管理",protocolName:"プロトコル名",protocolCode:"プロトコルコード",protocolVersion:"プロトコルバージョン",protocolStatus:"プロトコルステータス",triggerConditions:"トリガー条件",endpoint:"サービスエンドポイント",addProtocol:"プロトコル登録",editProtocol:"プロトコル編集",deactivateProtocol:"プロトコル無効化",activateProtocol:"プロトコル有効化",protocolActivated:"プロトコルを有効化しました",protocolDeactivated:"プロトコルを無効化しました",registeredAt:"登録日時",lastCalled:"最終呼び出し",callCount:"呼び出し回数",protocolFamily:"プロトコルファミリー",coreProtocols:"コアプロトコル"},audit:{title:"権限・監査管理",subtitle:"ロールベースのアクセス制御と改ざん不可能な監査ログ",users:"ユーザー管理",roles:"ロール管理",auditLogs:"監査ログ",userId:"ユーザーID",userName:"ユーザー名",userEmail:"メール",userRole:"ロール",lastLogin:"最終ログイン",admin:"管理者",reviewer:"レビュアー",legal:"法務",operator:"オペレーター",action:"アクション",resource:"リソース",ipAddress:"IPアドレス",timestamp:"タイムスタンプ",result:"結果",details:"詳細",exportLogs:"ログエクスポート",filterByUser:"ユーザーでフィルター",filterByAction:"アクションでフィルター",filterByDate:"日付でフィルター",immutableNote:"監査ログは改ざん不可能です。すべての重要な操作が記録されます。"},languageSwitcher:{selectLanguage:"言語を選択",currentLanguage:"現在の言語",knowledgeLanguage:"ナレッジベース言語"},jurisdictions:{CN:"中国",HK:"香港",US:"米国",EU:"EU",SG:"シンガポール",AE:"UAE",JP:"日本",KR:"韓国",RU:"ロシア",GB:"英国",ALL:"すべての管轄"},assetTypes:{"RE.RESIDENTIAL":"住宅不動産","RE.COMMERCIAL":"商業不動産","RE.INDUSTRIAL":"工業不動産","FIN.EQUITY":"株式資産","FIN.DEBT":"債務資産","FIN.FUND":"ファンド持分","COMM.PRECIOUS":"貴金属","COMM.ENERGY":"エネルギー商品","IP.PATENT":"特許","IP.COPYRIGHT":"著作権","INFRA.TRANSPORT":"交通インフラ",ALL:"すべてのタイプ"}},nK={common:{save:"저장",cancel:"취소",delete:"삭제",edit:"편집",add:"추가",search:"검색",filter:"필터",export:"내보내기",import:"가져오기",refresh:"새로고침",confirm:"확인",close:"닫기",loading:"로딩 중...",noData:"데이터 없음",success:"작업 성공",error:"작업 실패",warning:"경고",info:"정보",all:"전체",enable:"활성화",disable:"비활성화",active:"활성",inactive:"비활성",status:"상태",actions:"작업",createdAt:"생성일시",updatedAt:"수정일시",version:"버전",description:"설명",name:"이름",type:"유형",language:"언어",jurisdiction:"사법 관할",assetType:"자산 유형"},auth:{login:"관리자 로그인",loginSubtitle:"NAC 시스템 계정으로 로그인",email:"이메일 주소",password:"비밀번호",loginButton:"로그인",loggingIn:"로그인 중...",loginSuccess:"로그인 성공",loginFailed:"로그인 실패. 이메일과 비밀번호를 확인하세요.",logout:"로그아웃",logoutSuccess:"로그아웃되었습니다",authNotice:"이 시스템은 NAC 네이티브 인증을 사용합니다. 모든 작업은 감사 로그에 기록됩니다.",verifying:"신원 확인 중...",unauthorized:"접근 거부",adminOnly:"이 시스템은 관리자만 접근할 수 있습니다."},nav:{dashboard:"상황 인식",knowledgeBase:"지식 베이스",crawlers:"크롤러 모니터",approvalCases:"AI 승인 케이스",tagEngine:"태그 엔진",protocolRegistry:"프로토콜 레지스트리",auditLog:"권한 및 감사",systemTitle:"NAC 지식 엔진",systemSubtitle:"관리 콘솔",adminPanel:"관리자 패널"},dashboard:{title:"글로벌 상황 인식",subtitle:"지식 엔진 운영 상태 실시간 모니터링",totalRules:"총 컴플라이언스 규칙",activeCrawlers:"활성 크롤러",pendingReviews:"검토 대기 케이스",approvalRate:"승인율",knowledgeGrowth:"지식 베이스 성장",jurisdictionCoverage:"관할 커버리지",assetDistribution:"자산 유형 분포",crawlerHealth:"크롤러 상태",recentActivity:"최근 활동",systemStatus:"시스템 상태",allSystemsNormal:"모든 시스템 정상 운영",lastUpdated:"마지막 업데이트",viewAll:"전체 보기",rules:"개 규칙",crawlers:"개 크롤러",cases:"개 케이스"},knowledgeBase:{title:"지식 베이스 관리",subtitle:"컴플라이언스 규칙, 규정 및 거래 세부사항 관리",addRule:"규칙 추가",editRule:"규칙 편집",deleteRule:"규칙 삭제",ruleTitle:"규칙 제목",ruleContent:"규칙 내용",ruleSource:"규칙 출처",effectiveDate:"발효일",translationStatus:"번역 상태",original:"원문",aiTranslated:"AI 번역",humanReviewed:"인간 검토 완료",addTranslation:"번역 추가",missingTranslation:"번역 없음",languageCoverage:"언어 커버리지",contentLanguage:"콘텐츠 언어",switchLanguage:"언어 전환하여 보기",ruleActivated:"규칙이 활성화되었습니다",ruleDeactivated:"규칙이 비활성화되었습니다",searchPlaceholder:"규칙 제목, 내용 또는 출처 검색...",filterByJurisdiction:"관할로 필터",filterByAssetType:"자산 유형으로 필터",filterByStatus:"상태로 필터",totalRules:"총 {{count}}개 규칙"},crawlers:{title:"크롤러 모니터링 및 관리",subtitle:"내부 및 외부 데이터 크롤러 실시간 모니터링",internalCrawlers:"내부 크롤러",externalCrawlers:"외부 크롤러",crawlerName:"크롤러 이름",crawlerType:"크롤러 유형",lastRun:"마지막 실행",nextRun:"다음 실행",successRate:"성공률",totalCollected:"총 수집량",triggerNow:"지금 실행",triggering:"실행 중...",triggered:"크롤 작업이 시작되었습니다",addSource:"소스 추가",editSource:"소스 편집",sourceUrl:"소스 URL",frequency:"빈도",internal:"내부",external:"외부",running:"실행 중",idle:"대기 중",error:"오류",logs:"로그",viewLogs:"로그 보기"},approvals:{title:"AI 승인 케이스 검토",subtitle:"AI 자동 승인 결과 검토 및 중간 위험 케이스 수동 심사",caseId:"케이스 ID",assetName:"자산명",applicant:"신청자",submittedAt:"제출일시",riskLevel:"위험 수준",aiDecision:"AI 결정",humanDecision:"인간 결정",reviewStatus:"검토 상태",pendingReview:"검토 대기",approved:"승인됨",rejected:"거부됨",underReview:"검토 중",highRisk:"고위험",mediumRisk:"중간 위험",lowRisk:"저위험",approve:"승인",reject:"거부",reviewComment:"검토 의견",addComment:"검토 의견 추가...",submitReview:"검토 제출",aiConfidence:"AI 신뢰도",complianceScore:"컴플라이언스 점수",missingDocuments:"누락 서류",reviewHistory:"검토 이력",caseDetails:"케이스 상세",viewDetails:"상세 보기"},tagEngine:{title:"태그 및 규칙 엔진 거버넌스",subtitle:"자동화된 태그 시퀀스 생성 규칙 관리",tagId:"태그 ID",tagName:"태그 이름",tagCategory:"태그 카테고리",tagRule:"태그 규칙",matchPattern:"매칭 패턴",priority:"우선순위",addTag:"태그 추가",editTag:"태그 편집",deleteTag:"태그 삭제",testTag:"태그 테스트",testInput:"테스트 입력",testResult:"테스트 결과",jurisdictionDimension:"관할 차원",assetTypeDimension:"자산 유형 차원",complianceDimension:"컴플라이언스 차원",riskDimension:"위험 차원",crossLanguageAlignment:"교차 언어 정렬",standardTagId:"표준 태그 ID",languageMappings:"언어 매핑"},protocols:{title:"프로토콜 레지스트리 관리",subtitle:"AI 승인 시스템에 통합된 모든 NAC 네이티브 프로토콜 관리",protocolName:"프로토콜 이름",protocolCode:"프로토콜 코드",protocolVersion:"프로토콜 버전",protocolStatus:"프로토콜 상태",triggerConditions:"트리거 조건",endpoint:"서비스 엔드포인트",addProtocol:"프로토콜 등록",editProtocol:"프로토콜 편집",deactivateProtocol:"프로토콜 비활성화",activateProtocol:"프로토콜 활성화",protocolActivated:"프로토콜이 활성화되었습니다",protocolDeactivated:"프로토콜이 비활성화되었습니다",registeredAt:"등록일시",lastCalled:"마지막 호출",callCount:"호출 횟수",protocolFamily:"프로토콜 패밀리",coreProtocols:"핵심 프로토콜"},audit:{title:"권한 및 감사 관리",subtitle:"역할 기반 접근 제어 및 변경 불가능한 감사 로그",users:"사용자 관리",roles:"역할 관리",auditLogs:"감사 로그",userId:"사용자 ID",userName:"사용자명",userEmail:"이메일",userRole:"역할",lastLogin:"마지막 로그인",admin:"관리자",reviewer:"검토자",legal:"법무",operator:"운영자",action:"작업",resource:"리소스",ipAddress:"IP 주소",timestamp:"타임스탬프",result:"결과",details:"상세",exportLogs:"로그 내보내기",filterByUser:"사용자로 필터",filterByAction:"작업으로 필터",filterByDate:"날짜로 필터",immutableNote:"감사 로그는 변경할 수 없습니다. 모든 중요 작업이 기록됩니다."},languageSwitcher:{selectLanguage:"언어 선택",currentLanguage:"현재 언어",knowledgeLanguage:"지식 베이스 언어"},jurisdictions:{CN:"중국",HK:"홍콩",US:"미국",EU:"EU",SG:"싱가포르",AE:"UAE",JP:"일본",KR:"한국",RU:"러시아",GB:"영국",ALL:"모든 관할"},assetTypes:{"RE.RESIDENTIAL":"주거용 부동산","RE.COMMERCIAL":"상업용 부동산","RE.INDUSTRIAL":"산업용 부동산","FIN.EQUITY":"주식 자산","FIN.DEBT":"채무 자산","FIN.FUND":"펀드 지분","COMM.PRECIOUS":"귀금속","COMM.ENERGY":"에너지 상품","IP.PATENT":"특허","IP.COPYRIGHT":"저작권","INFRA.TRANSPORT":"교통 인프라",ALL:"모든 유형"}},rK={common:{save:"Enregistrer",cancel:"Annuler",delete:"Supprimer",edit:"Modifier",add:"Ajouter",search:"Rechercher",filter:"Filtrer",export:"Exporter",import:"Importer",refresh:"Actualiser",confirm:"Confirmer",close:"Fermer",loading:"Chargement...",noData:"Aucune donnée",success:"Opération réussie",error:"Opération échouée",warning:"Avertissement",info:"Information",all:"Tout",enable:"Activer",disable:"Désactiver",active:"Actif",inactive:"Inactif",status:"Statut",actions:"Actions",createdAt:"Créé le",updatedAt:"Mis à jour le",version:"Version",description:"Description",name:"Nom",type:"Type",language:"Langue",jurisdiction:"Juridiction",assetType:"Type d'actif"},auth:{login:"Connexion Administrateur",loginSubtitle:"Connectez-vous avec votre compte système NAC",email:"Adresse e-mail",password:"Mot de passe",loginButton:"Se connecter",loggingIn:"Connexion en cours...",loginSuccess:"Connexion réussie",loginFailed:"Échec de la connexion. Vérifiez votre e-mail et mot de passe.",logout:"Se déconnecter",logoutSuccess:"Déconnexion réussie",authNotice:"Ce système utilise l'authentification native NAC. Toutes les opérations sont enregistrées dans les journaux d'audit.",verifying:"Vérification de l'identité...",unauthorized:"Accès refusé",adminOnly:"Ce système est réservé aux administrateurs."},nav:{dashboard:"Conscience Situationnelle",knowledgeBase:"Base de Connaissances",crawlers:"Surveillance des Crawlers",approvalCases:"Cas d'Approbation IA",tagEngine:"Moteur de Tags",protocolRegistry:"Registre des Protocoles",auditLog:"Permissions et Audit",systemTitle:"Moteur de Connaissances NAC",systemSubtitle:"Console d'Administration",adminPanel:"Panneau Admin"},dashboard:{title:"Conscience Situationnelle Globale",subtitle:"Surveillance en temps réel du moteur de connaissances",totalRules:"Total des Règles de Conformité",activeCrawlers:"Crawlers Actifs",pendingReviews:"Cas en Attente",approvalRate:"Taux d'Approbation",knowledgeGrowth:"Croissance de la Base",jurisdictionCoverage:"Couverture Juridictionnelle",assetDistribution:"Distribution des Types d'Actifs",crawlerHealth:"Santé des Crawlers",recentActivity:"Activité Récente",systemStatus:"État du Système",allSystemsNormal:"Tous les systèmes opérationnels",lastUpdated:"Dernière mise à jour",viewAll:"Voir tout",rules:"règles",crawlers:"crawlers",cases:"cas"},knowledgeBase:{title:"Gestion de la Base de Connaissances",subtitle:"Gérer les règles de conformité, réglementations et détails des transactions",addRule:"Ajouter une règle",editRule:"Modifier la règle",deleteRule:"Supprimer la règle",ruleTitle:"Titre de la règle",ruleContent:"Contenu de la règle",ruleSource:"Source de la règle",effectiveDate:"Date d'entrée en vigueur",translationStatus:"Statut de traduction",original:"Original",aiTranslated:"Traduit par IA",humanReviewed:"Révisé par humain",addTranslation:"Ajouter une traduction",missingTranslation:"Traduction manquante",languageCoverage:"Couverture linguistique",contentLanguage:"Langue du contenu",switchLanguage:"Changer de langue pour afficher",ruleActivated:"Règle activée",ruleDeactivated:"Règle désactivée",searchPlaceholder:"Rechercher titre, contenu ou source...",filterByJurisdiction:"Filtrer par juridiction",filterByAssetType:"Filtrer par type d'actif",filterByStatus:"Filtrer par statut",totalRules:"{{count}} règles au total"},crawlers:{title:"Surveillance et Gestion des Crawlers",subtitle:"Surveillance en temps réel des crawlers internes et externes",internalCrawlers:"Crawlers Internes",externalCrawlers:"Crawlers Externes",crawlerName:"Nom du crawler",crawlerType:"Type de crawler",lastRun:"Dernière exécution",nextRun:"Prochaine exécution",successRate:"Taux de succès",totalCollected:"Total collecté",triggerNow:"Déclencher maintenant",triggering:"Déclenchement...",triggered:"Tâche de crawl déclenchée",addSource:"Ajouter une source",editSource:"Modifier la source",sourceUrl:"URL de la source",frequency:"Fréquence",internal:"Interne",external:"Externe",running:"En cours",idle:"Inactif",error:"Erreur",logs:"Journaux",viewLogs:"Voir les journaux"},approvals:{title:"Révision des Cas d'Approbation IA",subtitle:"Réviser les résultats d'approbation automatique et examiner manuellement les cas à risque moyen",caseId:"ID du cas",assetName:"Nom de l'actif",applicant:"Demandeur",submittedAt:"Soumis le",riskLevel:"Niveau de risque",aiDecision:"Décision IA",humanDecision:"Décision humaine",reviewStatus:"Statut de révision",pendingReview:"En attente de révision",approved:"Approuvé",rejected:"Rejeté",underReview:"En cours de révision",highRisk:"Risque élevé",mediumRisk:"Risque moyen",lowRisk:"Risque faible",approve:"Approuver",reject:"Rejeter",reviewComment:"Commentaire de révision",addComment:"Ajouter un commentaire...",submitReview:"Soumettre la révision",aiConfidence:"Confiance IA",complianceScore:"Score de conformité",missingDocuments:"Documents manquants",reviewHistory:"Historique de révision",caseDetails:"Détails du cas",viewDetails:"Voir les détails"},tagEngine:{title:"Gouvernance du Moteur de Tags",subtitle:"Gérer les règles de génération automatique de séquences de tags",tagId:"ID du tag",tagName:"Nom du tag",tagCategory:"Catégorie du tag",tagRule:"Règle du tag",matchPattern:"Modèle de correspondance",priority:"Priorité",addTag:"Ajouter un tag",editTag:"Modifier le tag",deleteTag:"Supprimer le tag",testTag:"Tester le tag",testInput:"Entrée de test",testResult:"Résultat du test",jurisdictionDimension:"Dimension juridictionnelle",assetTypeDimension:"Dimension type d'actif",complianceDimension:"Dimension conformité",riskDimension:"Dimension risque",crossLanguageAlignment:"Alignement multilingue",standardTagId:"ID de tag standard",languageMappings:"Mappages de langues"},protocols:{title:"Gestion du Registre des Protocoles",subtitle:"Gérer tous les protocoles natifs NAC intégrés au système d'approbation IA",protocolName:"Nom du protocole",protocolCode:"Code du protocole",protocolVersion:"Version du protocole",protocolStatus:"Statut du protocole",triggerConditions:"Conditions de déclenchement",endpoint:"Point de service",addProtocol:"Enregistrer un protocole",editProtocol:"Modifier le protocole",deactivateProtocol:"Désactiver le protocole",activateProtocol:"Activer le protocole",protocolActivated:"Protocole activé",protocolDeactivated:"Protocole désactivé",registeredAt:"Enregistré le",lastCalled:"Dernier appel",callCount:"Nombre d'appels",protocolFamily:"Famille de protocoles",coreProtocols:"Protocoles principaux"},audit:{title:"Gestion des Permissions et Audit",subtitle:"Contrôle d'accès basé sur les rôles et journaux d'audit immuables",users:"Gestion des utilisateurs",roles:"Gestion des rôles",auditLogs:"Journaux d'audit",userId:"ID utilisateur",userName:"Nom d'utilisateur",userEmail:"E-mail",userRole:"Rôle",lastLogin:"Dernière connexion",admin:"Administrateur",reviewer:"Réviseur",legal:"Juridique",operator:"Opérateur",action:"Action",resource:"Ressource",ipAddress:"Adresse IP",timestamp:"Horodatage",result:"Résultat",details:"Détails",exportLogs:"Exporter les journaux",filterByUser:"Filtrer par utilisateur",filterByAction:"Filtrer par action",filterByDate:"Filtrer par date",immutableNote:"Les journaux d'audit sont immuables. Toutes les opérations critiques sont enregistrées."},languageSwitcher:{selectLanguage:"Sélectionner la langue",currentLanguage:"Langue actuelle",knowledgeLanguage:"Langue de la base"},jurisdictions:{CN:"Chine",HK:"Hong Kong",US:"États-Unis",EU:"Union Européenne",SG:"Singapour",AE:"EAU",JP:"Japon",KR:"Corée du Sud",RU:"Russie",GB:"Royaume-Uni",ALL:"Toutes les juridictions"},assetTypes:{"RE.RESIDENTIAL":"Immobilier résidentiel","RE.COMMERCIAL":"Immobilier commercial","RE.INDUSTRIAL":"Immobilier industriel","FIN.EQUITY":"Actifs en actions","FIN.DEBT":"Actifs de dette","FIN.FUND":"Parts de fonds","COMM.PRECIOUS":"Métaux précieux","COMM.ENERGY":"Matières premières énergétiques","IP.PATENT":"Brevets","IP.COPYRIGHT":"Droits d'auteur","INFRA.TRANSPORT":"Infrastructure de transport",ALL:"Tous les types"}},aK={common:{save:"Сохранить",cancel:"Отмена",delete:"Удалить",edit:"Редактировать",add:"Добавить",search:"Поиск",filter:"Фильтр",export:"Экспорт",import:"Импорт",refresh:"Обновить",confirm:"Подтвердить",close:"Закрыть",loading:"Загрузка...",noData:"Нет данных",success:"Операция выполнена",error:"Ошибка операции",warning:"Предупреждение",info:"Информация",all:"Все",enable:"Включить",disable:"Отключить",active:"Активный",inactive:"Неактивный",status:"Статус",actions:"Действия",createdAt:"Создано",updatedAt:"Обновлено",version:"Версия",description:"Описание",name:"Название",type:"Тип",language:"Язык",jurisdiction:"Юрисдикция",assetType:"Тип актива"},auth:{login:"Вход для администратора",loginSubtitle:"Войдите с учётной записью системы NAC",email:"Адрес электронной почты",password:"Пароль",loginButton:"Войти",loggingIn:"Вход в систему...",loginSuccess:"Вход выполнен успешно",loginFailed:"Ошибка входа. Проверьте email и пароль.",logout:"Выйти",logoutSuccess:"Выход выполнен успешно",authNotice:"Эта система использует нативную аутентификацию NAC. Все операции записываются в журналы аудита.",verifying:"Проверка личности...",unauthorized:"Доступ запрещён",adminOnly:"Эта система доступна только администраторам."},nav:{dashboard:"Ситуационная осведомлённость",knowledgeBase:"База знаний",crawlers:"Мониторинг краулеров",approvalCases:"Дела об одобрении ИИ",tagEngine:"Движок тегов",protocolRegistry:"Реестр протоколов",auditLog:"Права и аудит",systemTitle:"Движок знаний NAC",systemSubtitle:"Консоль управления",adminPanel:"Панель администратора"},dashboard:{title:"Глобальная ситуационная осведомлённость",subtitle:"Мониторинг состояния движка знаний в реальном времени",totalRules:"Всего правил соответствия",activeCrawlers:"Активные краулеры",pendingReviews:"Ожидающие проверки",approvalRate:"Уровень одобрения",knowledgeGrowth:"Рост базы знаний",jurisdictionCoverage:"Охват юрисдикций",assetDistribution:"Распределение типов активов",crawlerHealth:"Состояние краулеров",recentActivity:"Последняя активность",systemStatus:"Состояние системы",allSystemsNormal:"Все системы работают нормально",lastUpdated:"Последнее обновление",viewAll:"Показать все",rules:"правил",crawlers:"краулеров",cases:"дел"},knowledgeBase:{title:"Управление базой знаний",subtitle:"Управление правилами соответствия, нормативными актами и деталями транзакций",addRule:"Добавить правило",editRule:"Редактировать правило",deleteRule:"Удалить правило",ruleTitle:"Заголовок правила",ruleContent:"Содержание правила",ruleSource:"Источник правила",effectiveDate:"Дата вступления в силу",translationStatus:"Статус перевода",original:"Оригинал",aiTranslated:"Перевод ИИ",humanReviewed:"Проверено человеком",addTranslation:"Добавить перевод",missingTranslation:"Перевод отсутствует",languageCoverage:"Языковой охват",contentLanguage:"Язык контента",switchLanguage:"Переключить язык для просмотра",ruleActivated:"Правило активировано",ruleDeactivated:"Правило деактивировано",searchPlaceholder:"Поиск по заголовку, содержанию или источнику...",filterByJurisdiction:"Фильтр по юрисдикции",filterByAssetType:"Фильтр по типу актива",filterByStatus:"Фильтр по статусу",totalRules:"Всего {{count}} правил"},crawlers:{title:"Мониторинг и управление краулерами",subtitle:"Мониторинг внутренних и внешних краулеров данных в реальном времени",internalCrawlers:"Внутренние краулеры",externalCrawlers:"Внешние краулеры",crawlerName:"Название краулера",crawlerType:"Тип краулера",lastRun:"Последний запуск",nextRun:"Следующий запуск",successRate:"Уровень успеха",totalCollected:"Всего собрано",triggerNow:"Запустить сейчас",triggering:"Запуск...",triggered:"Задача краулинга запущена",addSource:"Добавить источник",editSource:"Редактировать источник",sourceUrl:"URL источника",frequency:"Частота",internal:"Внутренний",external:"Внешний",running:"Работает",idle:"Простаивает",error:"Ошибка",logs:"Журналы",viewLogs:"Просмотр журналов"},approvals:{title:"Проверка дел об одобрении ИИ",subtitle:"Проверка результатов автоматического одобрения ИИ и ручная проверка дел среднего риска",caseId:"ID дела",assetName:"Название актива",applicant:"Заявитель",submittedAt:"Подано",riskLevel:"Уровень риска",aiDecision:"Решение ИИ",humanDecision:"Решение человека",reviewStatus:"Статус проверки",pendingReview:"Ожидает проверки",approved:"Одобрено",rejected:"Отклонено",underReview:"На проверке",highRisk:"Высокий риск",mediumRisk:"Средний риск",lowRisk:"Низкий риск",approve:"Одобрить",reject:"Отклонить",reviewComment:"Комментарий проверки",addComment:"Добавить комментарий...",submitReview:"Отправить проверку",aiConfidence:"Уверенность ИИ",complianceScore:"Оценка соответствия",missingDocuments:"Отсутствующие документы",reviewHistory:"История проверок",caseDetails:"Детали дела",viewDetails:"Просмотр деталей"},tagEngine:{title:"Управление движком тегов и правил",subtitle:"Управление правилами генерации автоматических последовательностей тегов",tagId:"ID тега",tagName:"Название тега",tagCategory:"Категория тега",tagRule:"Правило тега",matchPattern:"Шаблон совпадения",priority:"Приоритет",addTag:"Добавить тег",editTag:"Редактировать тег",deleteTag:"Удалить тег",testTag:"Тестировать тег",testInput:"Тестовый ввод",testResult:"Результат теста",jurisdictionDimension:"Измерение юрисдикции",assetTypeDimension:"Измерение типа актива",complianceDimension:"Измерение соответствия",riskDimension:"Измерение риска",crossLanguageAlignment:"Межъязыковое выравнивание",standardTagId:"Стандартный ID тега",languageMappings:"Языковые маппинги"},protocols:{title:"Управление реестром протоколов",subtitle:"Управление всеми нативными протоколами NAC, интегрированными с системой одобрения ИИ",protocolName:"Название протокола",protocolCode:"Код протокола",protocolVersion:"Версия протокола",protocolStatus:"Статус протокола",triggerConditions:"Условия запуска",endpoint:"Конечная точка сервиса",addProtocol:"Зарегистрировать протокол",editProtocol:"Редактировать протокол",deactivateProtocol:"Деактивировать протокол",activateProtocol:"Активировать протокол",protocolActivated:"Протокол активирован",protocolDeactivated:"Протокол деактивирован",registeredAt:"Зарегистрировано",lastCalled:"Последний вызов",callCount:"Количество вызовов",protocolFamily:"Семейство протоколов",coreProtocols:"Основные протоколы"},audit:{title:"Управление правами и аудитом",subtitle:"Управление доступом на основе ролей и неизменяемые журналы аудита",users:"Управление пользователями",roles:"Управление ролями",auditLogs:"Журналы аудита",userId:"ID пользователя",userName:"Имя пользователя",userEmail:"Email",userRole:"Роль",lastLogin:"Последний вход",admin:"Администратор",reviewer:"Проверяющий",legal:"Юридический",operator:"Оператор",action:"Действие",resource:"Ресурс",ipAddress:"IP-адрес",timestamp:"Временная метка",result:"Результат",details:"Детали",exportLogs:"Экспорт журналов",filterByUser:"Фильтр по пользователю",filterByAction:"Фильтр по действию",filterByDate:"Фильтр по дате",immutableNote:"Журналы аудита неизменяемы. Все критические операции записываются."},languageSwitcher:{selectLanguage:"Выбрать язык",currentLanguage:"Текущий язык",knowledgeLanguage:"Язык базы знаний"},jurisdictions:{CN:"Китай",HK:"Гонконг",US:"США",EU:"Европейский союз",SG:"Сингапур",AE:"ОАЭ",JP:"Япония",KR:"Южная Корея",RU:"Россия",GB:"Великобритания",ALL:"Все юрисдикции"},assetTypes:{"RE.RESIDENTIAL":"Жилая недвижимость","RE.COMMERCIAL":"Коммерческая недвижимость","RE.INDUSTRIAL":"Промышленная недвижимость","FIN.EQUITY":"Долевые активы","FIN.DEBT":"Долговые активы","FIN.FUND":"Паи фондов","COMM.PRECIOUS":"Драгоценные металлы","COMM.ENERGY":"Энергетические товары","IP.PATENT":"Патенты","IP.COPYRIGHT":"Авторские права","INFRA.TRANSPORT":"Транспортная инфраструктура",ALL:"Все типы"}},iK=[{code:"zh",name:"简体中文",nativeName:"简体中文",dir:"ltr",flag:"🇨🇳"},{code:"en",name:"English",nativeName:"English",dir:"ltr",flag:"🇺🇸"},{code:"ar",name:"Arabic",nativeName:"العربية",dir:"rtl",flag:"🇦🇪"},{code:"ja",name:"Japanese",nativeName:"日本語",dir:"ltr",flag:"🇯🇵"},{code:"ko",name:"Korean",nativeName:"한국어",dir:"ltr",flag:"🇰🇷"},{code:"fr",name:"French",nativeName:"Français",dir:"ltr",flag:"🇫🇷"},{code:"ru",name:"Russian",nativeName:"Русский",dir:"ltr",flag:"🇷🇺"}];En.use(N5).use(K7).init({resources:{zh:{translation:Z7},en:{translation:J7},ar:{translation:eK},ja:{translation:tK},ko:{translation:nK},fr:{translation:rK},ru:{translation:aK}},fallbackLng:"zh",supportedLngs:["zh","en","ar","ja","ko","fr","ru"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"nac-admin-language"},interpolation:{escapeValue:!1}});En.on("languageChanged",e=>{const t=iK.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const oK="Please login (10001)";var wx={exports:{}},Du={},Sx={exports:{}},Ax={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var kN;function sK(){return kN||(kN=1,(function(e){function t(D,K){var F=D.length;D.push(K);e:for(;0<F;){var X=F-1>>>1,oe=D[X];if(0<a(oe,K))D[X]=K,D[F]=oe,F=X;else break e}}function n(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var K=D[0],F=D.pop();if(F!==K){D[0]=F;e:for(var X=0,oe=D.length,q=oe>>>1;X<q;){var V=2*(X+1)-1,Y=D[V],ee=V+1,ue=D[ee];if(0>a(Y,F))ee<oe&&0>a(ue,Y)?(D[X]=ue,D[ee]=F,X=ee):(D[X]=Y,D[V]=F,X=V);else if(ee<oe&&0>a(ue,F))D[X]=ue,D[ee]=F,X=ee;else break e}}return K}function a(D,K){var F=D.sortIndex-K.sortIndex;return F!==0?F:D.id-K.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,g=null,v=3,b=!1,A=!1,x=!1,w=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function M(D){for(var K=n(f);K!==null;){if(K.callback===null)r(f);else if(K.startTime<=D)r(f),K.sortIndex=K.expirationTime,t(d,K);else break;K=n(f)}}function O(D){if(x=!1,M(D),!A)if(n(d)!==null)A=!0,_||(_=!0,L());else{var K=n(f);K!==null&&Q(O,K.startTime-D)}}var _=!1,N=-1,P=5,k=-1;function z(){return w?!0:!(e.unstable_now()-k<P)}function B(){if(w=!1,_){var D=e.unstable_now();k=D;var K=!0;try{e:{A=!1,x&&(x=!1,j(N),N=-1),b=!0;var F=v;try{t:{for(M(D),g=n(d);g!==null&&!(g.expirationTime>D&&z());){var X=g.callback;if(typeof X=="function"){g.callback=null,v=g.priorityLevel;var oe=X(g.expirationTime<=D);if(D=e.unstable_now(),typeof oe=="function"){g.callback=oe,M(D),K=!0;break t}g===n(d)&&r(d),M(D)}else r(d);g=n(d)}if(g!==null)K=!0;else{var q=n(f);q!==null&&Q(O,q.startTime-D),K=!1}}break e}finally{g=null,v=F,b=!1}K=void 0}}finally{K?L():_=!1}}}var L;if(typeof T=="function")L=function(){T(B)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,H=U.port2;U.port1.onmessage=B,L=function(){H.postMessage(null)}}else L=function(){C(B,0)};function Q(D,K){N=C(function(){D(e.unstable_now())},K)}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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(D){switch(v){case 1:case 2:case 3:var K=3;break;default:K=v}var F=v;v=K;try{return D()}finally{v=F}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(D,K){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var F=v;v=D;try{return K()}finally{v=F}},e.unstable_scheduleCallback=function(D,K,F){var X=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?X+F:X):F=X,D){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=F+oe,D={id:m++,callback:K,priorityLevel:D,startTime:F,expirationTime:oe,sortIndex:-1},F>X?(D.sortIndex=F,t(f,D),n(d)===null&&D===n(f)&&(x?(j(N),N=-1):x=!0,Q(O,F-X))):(D.sortIndex=oe,t(d,D),A||b||(A=!0,_||(_=!0,L()))),D},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(D){var K=v;return function(){var F=v;v=K;try{return D.apply(this,arguments)}finally{v=F}}}})(Ax)),Ax}var IN;function lK(){return IN||(IN=1,Sx.exports=sK()),Sx.exports}var Ox={exports:{}},vn={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var LN;function cK(){if(LN)return vn;LN=1;var e=Lg();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function o(d,f,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:g==null?null:""+g,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return vn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,vn.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(d,f,null,m)},vn.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},vn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},vn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},vn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,g=c(m,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:b}):m==="script"&&r.d.X(d,{crossOrigin:g,integrity:v,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},vn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},vn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,g=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},vn.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},vn.requestFormReset=function(d){r.d.r(d)},vn.unstable_batchedUpdates=function(d,f){return d(f)},vn.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},vn.useFormStatus=function(){return l.H.useHostTransitionStatus()},vn.version="19.2.1",vn}var BN;function k5(){if(BN)return Ox.exports;BN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ox.exports=cK(),Ox.exports}/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var $N;function uK(){if($N)return Du;$N=1;var e=lK(),t=Lg(),n=k5();function r(i){var s="https://react.dev/errors/"+i;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)s+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function o(i){var s=i,u=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(u=s.return),i=s.return;while(i)}return s.tag===3?u:null}function l(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function c(i){if(i.tag===31){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function d(i){if(o(i)!==i)throw Error(r(188))}function f(i){var s=i.alternate;if(!s){if(s=o(i),s===null)throw Error(r(188));return s!==i?null:i}for(var u=i,p=s;;){var y=u.return;if(y===null)break;var S=y.alternate;if(S===null){if(p=y.return,p!==null){u=p;continue}break}if(y.child===S.child){for(S=y.child;S;){if(S===u)return d(y),i;if(S===p)return d(y),s;S=S.sibling}throw Error(r(188))}if(u.return!==p.return)u=y,p=S;else{for(var R=!1,I=y.child;I;){if(I===u){R=!0,u=y,p=S;break}if(I===p){R=!0,p=y,u=S;break}I=I.sibling}if(!R){for(I=S.child;I;){if(I===u){R=!0,u=S,p=y;break}if(I===p){R=!0,p=S,u=y;break}I=I.sibling}if(!R)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:s}function m(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=m(i),s!==null)return s;i=i.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),T=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function L(i){return i===null||typeof i!="object"?null:(i=B&&i[B]||i["@@iterator"],typeof i=="function"?i:null)}var U=Symbol.for("react.client.reference");function H(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===U?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case x:return"Fragment";case C:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case _:return"SuspenseList";case k:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case A:return"Portal";case T:return i.displayName||"Context";case j:return(i._context.displayName||"Context")+".Consumer";case M:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case N:return s=i.displayName||null,s!==null?s:H(i.type)||"Memo";case P:s=i._payload,i=i._init;try{return H(i(s))}catch{}}return null}var Q=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},X=[],oe=-1;function q(i){return{current:i}}function V(i){0>oe||(i.current=X[oe],X[oe]=null,oe--)}function Y(i,s){oe++,X[oe]=i.current,i.current=s}var ee=q(null),ue=q(null),me=q(null),se=q(null);function ve(i,s){switch(Y(me,s),Y(ue,i),Y(ee,null),s.nodeType){case 9:case 11:i=(i=s.documentElement)&&(i=i.namespaceURI)?vT(i):0;break;default:if(i=s.tagName,s=s.namespaceURI)s=vT(s),i=yT(s,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}V(ee),Y(ee,i)}function de(){V(ee),V(ue),V(me)}function Z(i){i.memoizedState!==null&&Y(se,i);var s=ee.current,u=yT(s,i.type);s!==u&&(Y(ue,i),Y(ee,u))}function he(i){ue.current===i&&(V(ee),V(ue)),se.current===i&&(V(se),Eu._currentValue=F)}var ie,$e;function Ce(i){if(ie===void 0)try{throw Error()}catch(u){var s=u.stack.trim().match(/\n( *(at )?)/);ie=s&&s[1]||"",$e=-1<u.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+ie+i+$e}var Ye=!1;function nt(i,s){if(!i||Ye)return"";Ye=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var p={DetermineComponentFrameRoot:function(){try{if(s){var pe=function(){throw Error()};if(Object.defineProperty(pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(pe,[])}catch(ae){var re=ae}Reflect.construct(i,[],pe)}else{try{pe.call()}catch(ae){re=ae}i.call(pe.prototype)}}else{try{throw Error()}catch(ae){re=ae}(pe=i())&&typeof pe.catch=="function"&&pe.catch(function(){})}}catch(ae){if(ae&&re&&typeof ae.stack=="string")return[ae.stack,re.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=p.DetermineComponentFrameRoot(),R=S[0],I=S[1];if(R&&I){var G=R.split(`
|
||
`),ne=I.split(`
|
||
`);for(y=p=0;p<G.length&&!G[p].includes("DetermineComponentFrameRoot");)p++;for(;y<ne.length&&!ne[y].includes("DetermineComponentFrameRoot");)y++;if(p===G.length||y===ne.length)for(p=G.length-1,y=ne.length-1;1<=p&&0<=y&&G[p]!==ne[y];)y--;for(;1<=p&&0<=y;p--,y--)if(G[p]!==ne[y]){if(p!==1||y!==1)do if(p--,y--,0>y||G[p]!==ne[y]){var le=`
|
||
`+G[p].replace(" at new "," at ");return i.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",i.displayName)),le}while(1<=p&&0<=y);break}}}finally{Ye=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?Ce(u):""}function wt(i,s){switch(i.tag){case 26:case 27:case 5:return Ce(i.type);case 16:return Ce("Lazy");case 13:return i.child!==s&&s!==null?Ce("Suspense Fallback"):Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 15:return nt(i.type,!1);case 11:return nt(i.type.render,!1);case 1:return nt(i.type,!0);case 31:return Ce("Activity");default:return""}}function kn(i){try{var s="",u=null;do s+=wt(i,u),u=i,i=i.return;while(i);return s}catch(p){return`
|
||
Error generating stack: `+p.message+`
|
||
`+p.stack}}var qt=Object.prototype.hasOwnProperty,ta=e.unstable_scheduleCallback,Xn=e.unstable_cancelCallback,Rt=e.unstable_shouldYield,hr=e.unstable_requestPaint,tn=e.unstable_now,Ds=e.unstable_getCurrentPriorityLevel,yo=e.unstable_ImmediatePriority,Sf=e.unstable_UserBlockingPriority,xo=e.unstable_NormalPriority,qc=e.unstable_LowPriority,Ma=e.unstable_IdlePriority,Af=e.log,vi=e.unstable_setDisableYieldValue,bo=null,_n=null;function Lr(i){if(typeof Af=="function"&&vi(i),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(bo,i)}catch{}}var gn=Math.clz32?Math.clz32:na,Jm=Math.log,zc=Math.LN2;function na(i){return i>>>=0,i===0?32:31-(Jm(i)/zc|0)|0}var ks=256,Is=262144,wo=4194304;function ra(i){var s=i&42;if(s!==0)return s;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function De(i,s,u){var p=i.pendingLanes;if(p===0)return 0;var y=0,S=i.suspendedLanes,R=i.pingedLanes;i=i.warmLanes;var I=p&134217727;return I!==0?(p=I&~S,p!==0?y=ra(p):(R&=I,R!==0?y=ra(R):u||(u=I&~i,u!==0&&(y=ra(u))))):(I=p&~S,I!==0?y=ra(I):R!==0?y=ra(R):u||(u=p&~i,u!==0&&(y=ra(u)))),y===0?0:s!==0&&s!==y&&(s&S)===0&&(S=y&-y,u=s&-s,S>=u||S===32&&(u&4194048)!==0)?s:y}function _t(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function nn(i,s){switch(i){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mn(){var i=wo;return wo<<=1,(wo&62914560)===0&&(wo=4194304),i}function yi(i){for(var s=[],u=0;31>u;u++)s.push(i);return s}function Mt(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function In(i,s,u,p,y,S){var R=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var I=i.entanglements,G=i.expirationTimes,ne=i.hiddenUpdates;for(u=R&~u;0<u;){var le=31-gn(u),pe=1<<le;I[le]=0,G[le]=-1;var re=ne[le];if(re!==null)for(ne[le]=null,le=0;le<re.length;le++){var ae=re[le];ae!==null&&(ae.lane&=-536870913)}u&=~pe}p!==0&&So(i,p,0),S!==0&&y===0&&i.tag!==0&&(i.suspendedLanes|=S&~(R&~s))}function So(i,s,u){i.pendingLanes|=s,i.suspendedLanes&=~s;var p=31-gn(s);i.entangledLanes|=s,i.entanglements[p]=i.entanglements[p]|1073741824|u&261930}function Ln(i,s){var u=i.entangledLanes|=s;for(i=i.entanglements;u;){var p=31-gn(u),y=1<<p;y&s|i[p]&s&&(i[p]|=s),u&=~y}}function Bn(i,s){var u=s&-s;return u=(u&42)!==0?1:Ls(u),(u&(i.suspendedLanes|s))!==0?0:u}function Ls(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Br(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function ev(){var i=K.p;return i!==0?i:(i=window.event,i===void 0?32:zT(i.type))}function rj(i,s){var u=K.p;try{return K.p=i,s()}finally{K.p=u}}var xi=Math.random().toString(36).slice(2),cn="__reactFiber$"+xi,$n="__reactProps$"+xi,Bs="__reactContainer$"+xi,tv="__reactEvents$"+xi,Rq="__reactListeners$"+xi,Mq="__reactHandles$"+xi,aj="__reactResources$"+xi,Uc="__reactMarker$"+xi;function nv(i){delete i[cn],delete i[$n],delete i[tv],delete i[Rq],delete i[Mq]}function $s(i){var s=i[cn];if(s)return s;for(var u=i.parentNode;u;){if(s=u[Bs]||u[cn]){if(u=s.alternate,s.child!==null||u!==null&&u.child!==null)for(i=CT(i);i!==null;){if(u=i[cn])return u;i=CT(i)}return s}i=u,u=i.parentNode}return null}function qs(i){if(i=i[cn]||i[Bs]){var s=i.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return i}return null}function Fc(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function zs(i){var s=i[aj];return s||(s=i[aj]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function rn(i){i[Uc]=!0}var ij=new Set,oj={};function Ao(i,s){Us(i,s),Us(i+"Capture",s)}function Us(i,s){for(oj[i]=s,i=0;i<s.length;i++)ij.add(s[i])}var Pq=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),sj={},lj={};function Dq(i){return qt.call(lj,i)?!0:qt.call(sj,i)?!1:Pq.test(i)?lj[i]=!0:(sj[i]=!0,!1)}function Of(i,s,u){if(Dq(s))if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var p=s.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+u)}}function Cf(i,s,u){if(u===null)i.removeAttribute(s);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+u)}}function Pa(i,s,u,p){if(p===null)i.removeAttribute(u);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(s,u,""+p)}}function gr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function cj(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function kq(i,s,u){var p=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);if(!i.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var y=p.get,S=p.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return y.call(this)},set:function(R){u=""+R,S.call(this,R)}}),Object.defineProperty(i,s,{enumerable:p.enumerable}),{getValue:function(){return u},setValue:function(R){u=""+R},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function rv(i){if(!i._valueTracker){var s=cj(i)?"checked":"value";i._valueTracker=kq(i,s,""+i[s])}}function uj(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var u=s.getValue(),p="";return i&&(p=cj(i)?i.checked?"true":"false":i.value),i=p,i!==u?(s.setValue(i),!0):!1}function jf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Iq=/[\n"\\]/g;function mr(i){return i.replace(Iq,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function av(i,s,u,p,y,S,R,I){i.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?i.type=R:i.removeAttribute("type"),s!=null?R==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+gr(s)):i.value!==""+gr(s)&&(i.value=""+gr(s)):R!=="submit"&&R!=="reset"||i.removeAttribute("value"),s!=null?iv(i,R,gr(s)):u!=null?iv(i,R,gr(u)):p!=null&&i.removeAttribute("value"),y==null&&S!=null&&(i.defaultChecked=!!S),y!=null&&(i.checked=y&&typeof y!="function"&&typeof y!="symbol"),I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"?i.name=""+gr(I):i.removeAttribute("name")}function dj(i,s,u,p,y,S,R,I){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.type=S),s!=null||u!=null){if(!(S!=="submit"&&S!=="reset"||s!=null)){rv(i);return}u=u!=null?""+gr(u):"",s=s!=null?""+gr(s):u,I||s===i.value||(i.value=s),i.defaultValue=s}p=p??y,p=typeof p!="function"&&typeof p!="symbol"&&!!p,i.checked=I?i.checked:!!p,i.defaultChecked=!!p,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(i.name=R),rv(i)}function iv(i,s,u){s==="number"&&jf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Fs(i,s,u,p){if(i=i.options,s){s={};for(var y=0;y<u.length;y++)s["$"+u[y]]=!0;for(u=0;u<i.length;u++)y=s.hasOwnProperty("$"+i[u].value),i[u].selected!==y&&(i[u].selected=y),y&&p&&(i[u].defaultSelected=!0)}else{for(u=""+gr(u),s=null,y=0;y<i.length;y++){if(i[y].value===u){i[y].selected=!0,p&&(i[y].defaultSelected=!0);return}s!==null||i[y].disabled||(s=i[y])}s!==null&&(s.selected=!0)}}function fj(i,s,u){if(s!=null&&(s=""+gr(s),s!==i.value&&(i.value=s),u==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=u!=null?""+gr(u):""}function pj(i,s,u,p){if(s==null){if(p!=null){if(u!=null)throw Error(r(92));if(Q(p)){if(1<p.length)throw Error(r(93));p=p[0]}u=p}u==null&&(u=""),s=u}u=gr(s),i.defaultValue=u,p=i.textContent,p===u&&p!==""&&p!==null&&(i.value=p),rv(i)}function Ks(i,s){if(s){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=s;return}}i.textContent=s}var Lq=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function hj(i,s,u){var p=s.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?p?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":p?i.setProperty(s,u):typeof u!="number"||u===0||Lq.has(s)?s==="float"?i.cssFloat=u:i[s]=(""+u).trim():i[s]=u+"px"}function gj(i,s,u){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,u!=null){for(var p in u)!u.hasOwnProperty(p)||s!=null&&s.hasOwnProperty(p)||(p.indexOf("--")===0?i.setProperty(p,""):p==="float"?i.cssFloat="":i[p]="");for(var y in s)p=s[y],s.hasOwnProperty(y)&&u[y]!==p&&hj(i,y,p)}else for(var S in s)s.hasOwnProperty(S)&&hj(i,S,s[S])}function ov(i){if(i.indexOf("-")===-1)return!1;switch(i){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 Bq=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$q=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ef(i){return $q.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Da(){}var sv=null;function lv(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Hs=null,Gs=null;function mj(i){var s=qs(i);if(s&&(i=s.stateNode)){var u=i[$n]||null;e:switch(i=s.stateNode,s.type){case"input":if(av(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),s=u.name,u.type==="radio"&&s!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+mr(""+s)+'"][type="radio"]'),s=0;s<u.length;s++){var p=u[s];if(p!==i&&p.form===i.form){var y=p[$n]||null;if(!y)throw Error(r(90));av(p,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(s=0;s<u.length;s++)p=u[s],p.form===i.form&&uj(p)}break e;case"textarea":fj(i,u.value,u.defaultValue);break e;case"select":s=u.value,s!=null&&Fs(i,!!u.multiple,s,!1)}}}var cv=!1;function vj(i,s,u){if(cv)return i(s,u);cv=!0;try{var p=i(s);return p}finally{if(cv=!1,(Hs!==null||Gs!==null)&&(hp(),Hs&&(s=Hs,i=Gs,Gs=Hs=null,mj(s),i)))for(s=0;s<i.length;s++)mj(i[s])}}function Kc(i,s){var u=i.stateNode;if(u===null)return null;var p=u[$n]||null;if(p===null)return null;u=p[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(i=i.type,p=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!p;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,s,typeof u));return u}var ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uv=!1;if(ka)try{var Hc={};Object.defineProperty(Hc,"passive",{get:function(){uv=!0}}),window.addEventListener("test",Hc,Hc),window.removeEventListener("test",Hc,Hc)}catch{uv=!1}var bi=null,dv=null,_f=null;function yj(){if(_f)return _f;var i,s=dv,u=s.length,p,y="value"in bi?bi.value:bi.textContent,S=y.length;for(i=0;i<u&&s[i]===y[i];i++);var R=u-i;for(p=1;p<=R&&s[u-p]===y[S-p];p++);return _f=y.slice(i,1<p?1-p:void 0)}function Tf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Nf(){return!0}function xj(){return!1}function qn(i){function s(u,p,y,S,R){this._reactName=u,this._targetInst=y,this.type=p,this.nativeEvent=S,this.target=R,this.currentTarget=null;for(var I in i)i.hasOwnProperty(I)&&(u=i[I],this[I]=u?u(S):S[I]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Nf:xj,this.isPropagationStopped=xj,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Nf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Nf)},persist:function(){},isPersistent:Nf}),s}var Oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rf=qn(Oo),Gc=g({},Oo,{view:0,detail:0}),qq=qn(Gc),fv,pv,Vc,Mf=g({},Gc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gv,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Vc&&(Vc&&i.type==="mousemove"?(fv=i.screenX-Vc.screenX,pv=i.screenY-Vc.screenY):pv=fv=0,Vc=i),fv)},movementY:function(i){return"movementY"in i?i.movementY:pv}}),bj=qn(Mf),zq=g({},Mf,{dataTransfer:0}),Uq=qn(zq),Fq=g({},Gc,{relatedTarget:0}),hv=qn(Fq),Kq=g({},Oo,{animationName:0,elapsedTime:0,pseudoElement:0}),Hq=qn(Kq),Gq=g({},Oo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Vq=qn(Gq),Yq=g({},Oo,{data:0}),wj=qn(Yq),Qq={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xq={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"},Wq={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zq(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Wq[i])?!!s[i]:!1}function gv(){return Zq}var Jq=g({},Gc,{key:function(i){if(i.key){var s=Qq[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Tf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Xq[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gv,charCode:function(i){return i.type==="keypress"?Tf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Tf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),ez=qn(Jq),tz=g({},Mf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sj=qn(tz),nz=g({},Gc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gv}),rz=qn(nz),az=g({},Oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),iz=qn(az),oz=g({},Mf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),sz=qn(oz),lz=g({},Oo,{newState:0,oldState:0}),cz=qn(lz),uz=[9,13,27,32],mv=ka&&"CompositionEvent"in window,Yc=null;ka&&"documentMode"in document&&(Yc=document.documentMode);var dz=ka&&"TextEvent"in window&&!Yc,Aj=ka&&(!mv||Yc&&8<Yc&&11>=Yc),Oj=" ",Cj=!1;function jj(i,s){switch(i){case"keyup":return uz.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ej(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Vs=!1;function fz(i,s){switch(i){case"compositionend":return Ej(s);case"keypress":return s.which!==32?null:(Cj=!0,Oj);case"textInput":return i=s.data,i===Oj&&Cj?null:i;default:return null}}function pz(i,s){if(Vs)return i==="compositionend"||!mv&&jj(i,s)?(i=yj(),_f=dv=bi=null,Vs=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Aj&&s.locale!=="ko"?null:s.data;default:return null}}var hz={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 _j(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!hz[i.type]:s==="textarea"}function Tj(i,s,u,p){Hs?Gs?Gs.push(p):Gs=[p]:Hs=p,s=wp(s,"onChange"),0<s.length&&(u=new Rf("onChange","change",null,u,p),i.push({event:u,listeners:s}))}var Qc=null,Xc=null;function gz(i){dT(i,0)}function Pf(i){var s=Fc(i);if(uj(s))return i}function Nj(i,s){if(i==="change")return s}var Rj=!1;if(ka){var vv;if(ka){var yv="oninput"in document;if(!yv){var Mj=document.createElement("div");Mj.setAttribute("oninput","return;"),yv=typeof Mj.oninput=="function"}vv=yv}else vv=!1;Rj=vv&&(!document.documentMode||9<document.documentMode)}function Pj(){Qc&&(Qc.detachEvent("onpropertychange",Dj),Xc=Qc=null)}function Dj(i){if(i.propertyName==="value"&&Pf(Xc)){var s=[];Tj(s,Xc,i,lv(i)),vj(gz,s)}}function mz(i,s,u){i==="focusin"?(Pj(),Qc=s,Xc=u,Qc.attachEvent("onpropertychange",Dj)):i==="focusout"&&Pj()}function vz(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Pf(Xc)}function yz(i,s){if(i==="click")return Pf(s)}function xz(i,s){if(i==="input"||i==="change")return Pf(s)}function bz(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Wn=typeof Object.is=="function"?Object.is:bz;function Wc(i,s){if(Wn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var u=Object.keys(i),p=Object.keys(s);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var y=u[p];if(!qt.call(s,y)||!Wn(i[y],s[y]))return!1}return!0}function kj(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Ij(i,s){var u=kj(i);i=0;for(var p;u;){if(u.nodeType===3){if(p=i+u.textContent.length,i<=s&&p>=s)return{node:u,offset:s-i};i=p}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=kj(u)}}function Lj(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?Lj(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function Bj(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=jf(i.document);s instanceof i.HTMLIFrameElement;){try{var u=typeof s.contentWindow.location.href=="string"}catch{u=!1}if(u)i=s.contentWindow;else break;s=jf(i.document)}return s}function xv(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}var wz=ka&&"documentMode"in document&&11>=document.documentMode,Ys=null,bv=null,Zc=null,wv=!1;function $j(i,s,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;wv||Ys==null||Ys!==jf(p)||(p=Ys,"selectionStart"in p&&xv(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Zc&&Wc(Zc,p)||(Zc=p,p=wp(bv,"onSelect"),0<p.length&&(s=new Rf("onSelect","select",null,s,u),i.push({event:s,listeners:p}),s.target=Ys)))}function Co(i,s){var u={};return u[i.toLowerCase()]=s.toLowerCase(),u["Webkit"+i]="webkit"+s,u["Moz"+i]="moz"+s,u}var Qs={animationend:Co("Animation","AnimationEnd"),animationiteration:Co("Animation","AnimationIteration"),animationstart:Co("Animation","AnimationStart"),transitionrun:Co("Transition","TransitionRun"),transitionstart:Co("Transition","TransitionStart"),transitioncancel:Co("Transition","TransitionCancel"),transitionend:Co("Transition","TransitionEnd")},Sv={},qj={};ka&&(qj=document.createElement("div").style,"AnimationEvent"in window||(delete Qs.animationend.animation,delete Qs.animationiteration.animation,delete Qs.animationstart.animation),"TransitionEvent"in window||delete Qs.transitionend.transition);function jo(i){if(Sv[i])return Sv[i];if(!Qs[i])return i;var s=Qs[i],u;for(u in s)if(s.hasOwnProperty(u)&&u in qj)return Sv[i]=s[u];return i}var zj=jo("animationend"),Uj=jo("animationiteration"),Fj=jo("animationstart"),Sz=jo("transitionrun"),Az=jo("transitionstart"),Oz=jo("transitioncancel"),Kj=jo("transitionend"),Hj=new Map,Av="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Av.push("scrollEnd");function $r(i,s){Hj.set(i,s),Ao(s,[i])}var Df=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},vr=[],Xs=0,Ov=0;function kf(){for(var i=Xs,s=Ov=Xs=0;s<i;){var u=vr[s];vr[s++]=null;var p=vr[s];vr[s++]=null;var y=vr[s];vr[s++]=null;var S=vr[s];if(vr[s++]=null,p!==null&&y!==null){var R=p.pending;R===null?y.next=y:(y.next=R.next,R.next=y),p.pending=y}S!==0&&Gj(u,y,S)}}function If(i,s,u,p){vr[Xs++]=i,vr[Xs++]=s,vr[Xs++]=u,vr[Xs++]=p,Ov|=p,i.lanes|=p,i=i.alternate,i!==null&&(i.lanes|=p)}function Cv(i,s,u,p){return If(i,s,u,p),Lf(i)}function Eo(i,s){return If(i,null,null,s),Lf(i)}function Gj(i,s,u){i.lanes|=u;var p=i.alternate;p!==null&&(p.lanes|=u);for(var y=!1,S=i.return;S!==null;)S.childLanes|=u,p=S.alternate,p!==null&&(p.childLanes|=u),S.tag===22&&(i=S.stateNode,i===null||i._visibility&1||(y=!0)),i=S,S=S.return;return i.tag===3?(S=i.stateNode,y&&s!==null&&(y=31-gn(u),i=S.hiddenUpdates,p=i[y],p===null?i[y]=[s]:p.push(s),s.lane=u|536870912),S):null}function Lf(i){if(50<bu)throw bu=0,Dy=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Ws={};function Cz(i,s,u,p){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Zn(i,s,u,p){return new Cz(i,s,u,p)}function jv(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Ia(i,s){var u=i.alternate;return u===null?(u=Zn(i.tag,s,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=s,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,s=i.dependencies,u.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function Vj(i,s){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,s=u.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function Bf(i,s,u,p,y,S){var R=0;if(p=i,typeof i=="function")jv(i)&&(R=1);else if(typeof i=="string")R=NU(i,u,ee.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case k:return i=Zn(31,u,s,y),i.elementType=k,i.lanes=S,i;case x:return _o(u.children,y,S,s);case w:R=8,y|=24;break;case C:return i=Zn(12,u,s,y|2),i.elementType=C,i.lanes=S,i;case O:return i=Zn(13,u,s,y),i.elementType=O,i.lanes=S,i;case _:return i=Zn(19,u,s,y),i.elementType=_,i.lanes=S,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:R=10;break e;case j:R=9;break e;case M:R=11;break e;case N:R=14;break e;case P:R=16,p=null;break e}R=29,u=Error(r(130,i===null?"null":typeof i,"")),p=null}return s=Zn(R,u,s,y),s.elementType=i,s.type=p,s.lanes=S,s}function _o(i,s,u,p){return i=Zn(7,i,p,s),i.lanes=u,i}function Ev(i,s,u){return i=Zn(6,i,null,s),i.lanes=u,i}function Yj(i){var s=Zn(18,null,null,0);return s.stateNode=i,s}function _v(i,s,u){return s=Zn(4,i.children!==null?i.children:[],i.key,s),s.lanes=u,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}var Qj=new WeakMap;function yr(i,s){if(typeof i=="object"&&i!==null){var u=Qj.get(i);return u!==void 0?u:(s={value:i,source:s,stack:kn(s)},Qj.set(i,s),s)}return{value:i,source:s,stack:kn(s)}}var Zs=[],Js=0,$f=null,Jc=0,xr=[],br=0,wi=null,aa=1,ia="";function La(i,s){Zs[Js++]=Jc,Zs[Js++]=$f,$f=i,Jc=s}function Xj(i,s,u){xr[br++]=aa,xr[br++]=ia,xr[br++]=wi,wi=i;var p=aa;i=ia;var y=32-gn(p)-1;p&=~(1<<y),u+=1;var S=32-gn(s)+y;if(30<S){var R=y-y%5;S=(p&(1<<R)-1).toString(32),p>>=R,y-=R,aa=1<<32-gn(s)+y|u<<y|p,ia=S+i}else aa=1<<S|u<<y|p,ia=i}function Tv(i){i.return!==null&&(La(i,1),Xj(i,1,0))}function Nv(i){for(;i===$f;)$f=Zs[--Js],Zs[Js]=null,Jc=Zs[--Js],Zs[Js]=null;for(;i===wi;)wi=xr[--br],xr[br]=null,ia=xr[--br],xr[br]=null,aa=xr[--br],xr[br]=null}function Wj(i,s){xr[br++]=aa,xr[br++]=ia,xr[br++]=wi,aa=s.id,ia=s.overflow,wi=i}var un=null,Ct=null,We=!1,Si=null,wr=!1,Rv=Error(r(519));function Ai(i){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eu(yr(s,i)),Rv}function Zj(i){var s=i.stateNode,u=i.type,p=i.memoizedProps;switch(s[cn]=i,s[$n]=p,u){case"dialog":Ge("cancel",s),Ge("close",s);break;case"iframe":case"object":case"embed":Ge("load",s);break;case"video":case"audio":for(u=0;u<Su.length;u++)Ge(Su[u],s);break;case"source":Ge("error",s);break;case"img":case"image":case"link":Ge("error",s),Ge("load",s);break;case"details":Ge("toggle",s);break;case"input":Ge("invalid",s),dj(s,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Ge("invalid",s);break;case"textarea":Ge("invalid",s),pj(s,p.value,p.defaultValue,p.children)}u=p.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||s.textContent===""+u||p.suppressHydrationWarning===!0||gT(s.textContent,u)?(p.popover!=null&&(Ge("beforetoggle",s),Ge("toggle",s)),p.onScroll!=null&&Ge("scroll",s),p.onScrollEnd!=null&&Ge("scrollend",s),p.onClick!=null&&(s.onclick=Da),s=!0):s=!1,s||Ai(i,!0)}function Jj(i){for(un=i.return;un;)switch(un.tag){case 5:case 31:case 13:wr=!1;return;case 27:case 3:wr=!0;return;default:un=un.return}}function el(i){if(i!==un)return!1;if(!We)return Jj(i),We=!0,!1;var s=i.tag,u;if((u=s!==3&&s!==27)&&((u=s===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||Qy(i.type,i.memoizedProps)),u=!u),u&&Ct&&Ai(i),Jj(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Ct=OT(i)}else if(s===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));Ct=OT(i)}else s===27?(s=Ct,Li(i.type)?(i=ex,ex=null,Ct=i):Ct=s):Ct=un?Ar(i.stateNode.nextSibling):null;return!0}function To(){Ct=un=null,We=!1}function Mv(){var i=Si;return i!==null&&(Kn===null?Kn=i:Kn.push.apply(Kn,i),Si=null),i}function eu(i){Si===null?Si=[i]:Si.push(i)}var Pv=q(null),No=null,Ba=null;function Oi(i,s,u){Y(Pv,s._currentValue),s._currentValue=u}function $a(i){i._currentValue=Pv.current,V(Pv)}function Dv(i,s,u){for(;i!==null;){var p=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,p!==null&&(p.childLanes|=s)):p!==null&&(p.childLanes&s)!==s&&(p.childLanes|=s),i===u)break;i=i.return}}function kv(i,s,u,p){var y=i.child;for(y!==null&&(y.return=i);y!==null;){var S=y.dependencies;if(S!==null){var R=y.child;S=S.firstContext;e:for(;S!==null;){var I=S;S=y;for(var G=0;G<s.length;G++)if(I.context===s[G]){S.lanes|=u,I=S.alternate,I!==null&&(I.lanes|=u),Dv(S.return,u,i),p||(R=null);break e}S=I.next}}else if(y.tag===18){if(R=y.return,R===null)throw Error(r(341));R.lanes|=u,S=R.alternate,S!==null&&(S.lanes|=u),Dv(R,u,i),R=null}else R=y.child;if(R!==null)R.return=y;else for(R=y;R!==null;){if(R===i){R=null;break}if(y=R.sibling,y!==null){y.return=R.return,R=y;break}R=R.return}y=R}}function tl(i,s,u,p){i=null;for(var y=s,S=!1;y!==null;){if(!S){if((y.flags&524288)!==0)S=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var R=y.alternate;if(R===null)throw Error(r(387));if(R=R.memoizedProps,R!==null){var I=y.type;Wn(y.pendingProps.value,R.value)||(i!==null?i.push(I):i=[I])}}else if(y===se.current){if(R=y.alternate,R===null)throw Error(r(387));R.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(i!==null?i.push(Eu):i=[Eu])}y=y.return}i!==null&&kv(s,i,u,p),s.flags|=262144}function qf(i){for(i=i.firstContext;i!==null;){if(!Wn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ro(i){No=i,Ba=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function dn(i){return eE(No,i)}function zf(i,s){return No===null&&Ro(i),eE(i,s)}function eE(i,s){var u=s._currentValue;if(s={context:s,memoizedValue:u,next:null},Ba===null){if(i===null)throw Error(r(308));Ba=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else Ba=Ba.next=s;return u}var jz=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(u,p){i.push(p)}};this.abort=function(){s.aborted=!0,i.forEach(function(u){return u()})}},Ez=e.unstable_scheduleCallback,_z=e.unstable_NormalPriority,zt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Iv(){return{controller:new jz,data:new Map,refCount:0}}function tu(i){i.refCount--,i.refCount===0&&Ez(_z,function(){i.controller.abort()})}var nu=null,Lv=0,nl=0,rl=null;function Tz(i,s){if(nu===null){var u=nu=[];Lv=0,nl=qy(),rl={status:"pending",value:void 0,then:function(p){u.push(p)}}}return Lv++,s.then(tE,tE),s}function tE(){if(--Lv===0&&nu!==null){rl!==null&&(rl.status="fulfilled");var i=nu;nu=null,nl=0,rl=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function Nz(i,s){var u=[],p={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return i.then(function(){p.status="fulfilled",p.value=s;for(var y=0;y<u.length;y++)(0,u[y])(s)},function(y){for(p.status="rejected",p.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),p}var nE=D.S;D.S=function(i,s){$_=tn(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&Tz(i,s),nE!==null&&nE(i,s)};var Mo=q(null);function Bv(){var i=Mo.current;return i!==null?i:xt.pooledCache}function Uf(i,s){s===null?Y(Mo,Mo.current):Y(Mo,s.pool)}function rE(){var i=Bv();return i===null?null:{parent:zt._currentValue,pool:i}}var al=Error(r(460)),$v=Error(r(474)),Ff=Error(r(542)),Kf={then:function(){}};function aE(i){return i=i.status,i==="fulfilled"||i==="rejected"}function iE(i,s,u){switch(u=i[u],u===void 0?i.push(s):u!==s&&(s.then(Da,Da),s=u),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,sE(i),i;default:if(typeof s.status=="string")s.then(Da,Da);else{if(i=xt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(p){if(s.status==="pending"){var y=s;y.status="fulfilled",y.value=p}},function(p){if(s.status==="pending"){var y=s;y.status="rejected",y.reason=p}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,sE(i),i}throw Do=s,al}}function Po(i){try{var s=i._init;return s(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Do=u,al):u}}var Do=null;function oE(){if(Do===null)throw Error(r(459));var i=Do;return Do=null,i}function sE(i){if(i===al||i===Ff)throw Error(r(483))}var il=null,ru=0;function Hf(i){var s=ru;return ru+=1,il===null&&(il=[]),iE(il,i,s)}function au(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Gf(i,s){throw s.$$typeof===v?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function lE(i){function s(J,W){if(i){var te=J.deletions;te===null?(J.deletions=[W],J.flags|=16):te.push(W)}}function u(J,W){if(!i)return null;for(;W!==null;)s(J,W),W=W.sibling;return null}function p(J){for(var W=new Map;J!==null;)J.key!==null?W.set(J.key,J):W.set(J.index,J),J=J.sibling;return W}function y(J,W){return J=Ia(J,W),J.index=0,J.sibling=null,J}function S(J,W,te){return J.index=te,i?(te=J.alternate,te!==null?(te=te.index,te<W?(J.flags|=67108866,W):te):(J.flags|=67108866,W)):(J.flags|=1048576,W)}function R(J){return i&&J.alternate===null&&(J.flags|=67108866),J}function I(J,W,te,fe){return W===null||W.tag!==6?(W=Ev(te,J.mode,fe),W.return=J,W):(W=y(W,te),W.return=J,W)}function G(J,W,te,fe){var je=te.type;return je===x?le(J,W,te.props.children,fe,te.key):W!==null&&(W.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===P&&Po(je)===W.type)?(W=y(W,te.props),au(W,te),W.return=J,W):(W=Bf(te.type,te.key,te.props,null,J.mode,fe),au(W,te),W.return=J,W)}function ne(J,W,te,fe){return W===null||W.tag!==4||W.stateNode.containerInfo!==te.containerInfo||W.stateNode.implementation!==te.implementation?(W=_v(te,J.mode,fe),W.return=J,W):(W=y(W,te.children||[]),W.return=J,W)}function le(J,W,te,fe,je){return W===null||W.tag!==7?(W=_o(te,J.mode,fe,je),W.return=J,W):(W=y(W,te),W.return=J,W)}function pe(J,W,te){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return W=Ev(""+W,J.mode,te),W.return=J,W;if(typeof W=="object"&&W!==null){switch(W.$$typeof){case b:return te=Bf(W.type,W.key,W.props,null,J.mode,te),au(te,W),te.return=J,te;case A:return W=_v(W,J.mode,te),W.return=J,W;case P:return W=Po(W),pe(J,W,te)}if(Q(W)||L(W))return W=_o(W,J.mode,te,null),W.return=J,W;if(typeof W.then=="function")return pe(J,Hf(W),te);if(W.$$typeof===T)return pe(J,zf(J,W),te);Gf(J,W)}return null}function re(J,W,te,fe){var je=W!==null?W.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return je!==null?null:I(J,W,""+te,fe);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case b:return te.key===je?G(J,W,te,fe):null;case A:return te.key===je?ne(J,W,te,fe):null;case P:return te=Po(te),re(J,W,te,fe)}if(Q(te)||L(te))return je!==null?null:le(J,W,te,fe,null);if(typeof te.then=="function")return re(J,W,Hf(te),fe);if(te.$$typeof===T)return re(J,W,zf(J,te),fe);Gf(J,te)}return null}function ae(J,W,te,fe,je){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return J=J.get(te)||null,I(W,J,""+fe,je);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case b:return J=J.get(fe.key===null?te:fe.key)||null,G(W,J,fe,je);case A:return J=J.get(fe.key===null?te:fe.key)||null,ne(W,J,fe,je);case P:return fe=Po(fe),ae(J,W,te,fe,je)}if(Q(fe)||L(fe))return J=J.get(te)||null,le(W,J,fe,je,null);if(typeof fe.then=="function")return ae(J,W,te,Hf(fe),je);if(fe.$$typeof===T)return ae(J,W,te,zf(W,fe),je);Gf(W,fe)}return null}function be(J,W,te,fe){for(var je=null,rt=null,Oe=W,ze=W=0,Xe=null;Oe!==null&&ze<te.length;ze++){Oe.index>ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var at=re(J,Oe,te[ze],fe);if(at===null){Oe===null&&(Oe=Xe);break}i&&Oe&&at.alternate===null&&s(J,Oe),W=S(at,W,ze),rt===null?je=at:rt.sibling=at,rt=at,Oe=Xe}if(ze===te.length)return u(J,Oe),We&&La(J,ze),je;if(Oe===null){for(;ze<te.length;ze++)Oe=pe(J,te[ze],fe),Oe!==null&&(W=S(Oe,W,ze),rt===null?je=Oe:rt.sibling=Oe,rt=Oe);return We&&La(J,ze),je}for(Oe=p(Oe);ze<te.length;ze++)Xe=ae(Oe,J,ze,te[ze],fe),Xe!==null&&(i&&Xe.alternate!==null&&Oe.delete(Xe.key===null?ze:Xe.key),W=S(Xe,W,ze),rt===null?je=Xe:rt.sibling=Xe,rt=Xe);return i&&Oe.forEach(function(Ui){return s(J,Ui)}),We&&La(J,ze),je}function Te(J,W,te,fe){if(te==null)throw Error(r(151));for(var je=null,rt=null,Oe=W,ze=W=0,Xe=null,at=te.next();Oe!==null&&!at.done;ze++,at=te.next()){Oe.index>ze?(Xe=Oe,Oe=null):Xe=Oe.sibling;var Ui=re(J,Oe,at.value,fe);if(Ui===null){Oe===null&&(Oe=Xe);break}i&&Oe&&Ui.alternate===null&&s(J,Oe),W=S(Ui,W,ze),rt===null?je=Ui:rt.sibling=Ui,rt=Ui,Oe=Xe}if(at.done)return u(J,Oe),We&&La(J,ze),je;if(Oe===null){for(;!at.done;ze++,at=te.next())at=pe(J,at.value,fe),at!==null&&(W=S(at,W,ze),rt===null?je=at:rt.sibling=at,rt=at);return We&&La(J,ze),je}for(Oe=p(Oe);!at.done;ze++,at=te.next())at=ae(Oe,J,ze,at.value,fe),at!==null&&(i&&at.alternate!==null&&Oe.delete(at.key===null?ze:at.key),W=S(at,W,ze),rt===null?je=at:rt.sibling=at,rt=at);return i&&Oe.forEach(function(zU){return s(J,zU)}),We&&La(J,ze),je}function vt(J,W,te,fe){if(typeof te=="object"&&te!==null&&te.type===x&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case b:e:{for(var je=te.key;W!==null;){if(W.key===je){if(je=te.type,je===x){if(W.tag===7){u(J,W.sibling),fe=y(W,te.props.children),fe.return=J,J=fe;break e}}else if(W.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===P&&Po(je)===W.type){u(J,W.sibling),fe=y(W,te.props),au(fe,te),fe.return=J,J=fe;break e}u(J,W);break}else s(J,W);W=W.sibling}te.type===x?(fe=_o(te.props.children,J.mode,fe,te.key),fe.return=J,J=fe):(fe=Bf(te.type,te.key,te.props,null,J.mode,fe),au(fe,te),fe.return=J,J=fe)}return R(J);case A:e:{for(je=te.key;W!==null;){if(W.key===je)if(W.tag===4&&W.stateNode.containerInfo===te.containerInfo&&W.stateNode.implementation===te.implementation){u(J,W.sibling),fe=y(W,te.children||[]),fe.return=J,J=fe;break e}else{u(J,W);break}else s(J,W);W=W.sibling}fe=_v(te,J.mode,fe),fe.return=J,J=fe}return R(J);case P:return te=Po(te),vt(J,W,te,fe)}if(Q(te))return be(J,W,te,fe);if(L(te)){if(je=L(te),typeof je!="function")throw Error(r(150));return te=je.call(te),Te(J,W,te,fe)}if(typeof te.then=="function")return vt(J,W,Hf(te),fe);if(te.$$typeof===T)return vt(J,W,zf(J,te),fe);Gf(J,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,W!==null&&W.tag===6?(u(J,W.sibling),fe=y(W,te),fe.return=J,J=fe):(u(J,W),fe=Ev(te,J.mode,fe),fe.return=J,J=fe),R(J)):u(J,W)}return function(J,W,te,fe){try{ru=0;var je=vt(J,W,te,fe);return il=null,je}catch(Oe){if(Oe===al||Oe===Ff)throw Oe;var rt=Zn(29,Oe,null,J.mode);return rt.lanes=fe,rt.return=J,rt}finally{}}}var ko=lE(!0),cE=lE(!1),Ci=!1;function qv(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zv(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function ji(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ei(i,s,u){var p=i.updateQueue;if(p===null)return null;if(p=p.shared,(lt&2)!==0){var y=p.pending;return y===null?s.next=s:(s.next=y.next,y.next=s),p.pending=s,s=Lf(i),Gj(i,null,u),s}return If(i,p,s,u),Lf(i)}function iu(i,s,u){if(s=s.updateQueue,s!==null&&(s=s.shared,(u&4194048)!==0)){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,Ln(i,u)}}function Uv(i,s){var u=i.updateQueue,p=i.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var y=null,S=null;if(u=u.firstBaseUpdate,u!==null){do{var R={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};S===null?y=S=R:S=S.next=R,u=u.next}while(u!==null);S===null?y=S=s:S=S.next=s}else y=S=s;u={baseState:p.baseState,firstBaseUpdate:y,lastBaseUpdate:S,shared:p.shared,callbacks:p.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=s:i.next=s,u.lastBaseUpdate=s}var Fv=!1;function ou(){if(Fv){var i=rl;if(i!==null)throw i}}function su(i,s,u,p){Fv=!1;var y=i.updateQueue;Ci=!1;var S=y.firstBaseUpdate,R=y.lastBaseUpdate,I=y.shared.pending;if(I!==null){y.shared.pending=null;var G=I,ne=G.next;G.next=null,R===null?S=ne:R.next=ne,R=G;var le=i.alternate;le!==null&&(le=le.updateQueue,I=le.lastBaseUpdate,I!==R&&(I===null?le.firstBaseUpdate=ne:I.next=ne,le.lastBaseUpdate=G))}if(S!==null){var pe=y.baseState;R=0,le=ne=G=null,I=S;do{var re=I.lane&-536870913,ae=re!==I.lane;if(ae?(Qe&re)===re:(p&re)===re){re!==0&&re===nl&&(Fv=!0),le!==null&&(le=le.next={lane:0,tag:I.tag,payload:I.payload,callback:null,next:null});e:{var be=i,Te=I;re=s;var vt=u;switch(Te.tag){case 1:if(be=Te.payload,typeof be=="function"){pe=be.call(vt,pe,re);break e}pe=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Te.payload,re=typeof be=="function"?be.call(vt,pe,re):be,re==null)break e;pe=g({},pe,re);break e;case 2:Ci=!0}}re=I.callback,re!==null&&(i.flags|=64,ae&&(i.flags|=8192),ae=y.callbacks,ae===null?y.callbacks=[re]:ae.push(re))}else ae={lane:re,tag:I.tag,payload:I.payload,callback:I.callback,next:null},le===null?(ne=le=ae,G=pe):le=le.next=ae,R|=re;if(I=I.next,I===null){if(I=y.shared.pending,I===null)break;ae=I,I=ae.next,ae.next=null,y.lastBaseUpdate=ae,y.shared.pending=null}}while(!0);le===null&&(G=pe),y.baseState=G,y.firstBaseUpdate=ne,y.lastBaseUpdate=le,S===null&&(y.shared.lanes=0),Mi|=R,i.lanes=R,i.memoizedState=pe}}function uE(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function dE(i,s){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)uE(u[i],s)}var ol=q(null),Vf=q(0);function fE(i,s){i=Ya,Y(Vf,i),Y(ol,s),Ya=i|s.baseLanes}function Kv(){Y(Vf,Ya),Y(ol,ol.current)}function Hv(){Ya=Vf.current,V(ol),V(Vf)}var Jn=q(null),Sr=null;function _i(i){var s=i.alternate;Y(Lt,Lt.current&1),Y(Jn,i),Sr===null&&(s===null||ol.current!==null||s.memoizedState!==null)&&(Sr=i)}function Gv(i){Y(Lt,Lt.current),Y(Jn,i),Sr===null&&(Sr=i)}function pE(i){i.tag===22?(Y(Lt,Lt.current),Y(Jn,i),Sr===null&&(Sr=i)):Ti()}function Ti(){Y(Lt,Lt.current),Y(Jn,Jn.current)}function er(i){V(Jn),Sr===i&&(Sr=null),V(Lt)}var Lt=q(0);function Yf(i){for(var s=i;s!==null;){if(s.tag===13){var u=s.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Zy(u)||Jy(u)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var qa=0,qe=null,gt=null,Ut=null,Qf=!1,sl=!1,Io=!1,Xf=0,lu=0,ll=null,Rz=0;function Pt(){throw Error(r(321))}function Vv(i,s){if(s===null)return!1;for(var u=0;u<s.length&&u<i.length;u++)if(!Wn(i[u],s[u]))return!1;return!0}function Yv(i,s,u,p,y,S){return qa=S,qe=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,D.H=i===null||i.memoizedState===null?XE:cy,Io=!1,S=u(p,y),Io=!1,sl&&(S=gE(s,u,p,y)),hE(i),S}function hE(i){D.H=du;var s=gt!==null&>.next!==null;if(qa=0,Ut=gt=qe=null,Qf=!1,lu=0,ll=null,s)throw Error(r(300));i===null||Ft||(i=i.dependencies,i!==null&&qf(i)&&(Ft=!0))}function gE(i,s,u,p){qe=i;var y=0;do{if(sl&&(ll=null),lu=0,sl=!1,25<=y)throw Error(r(301));if(y+=1,Ut=gt=null,i.updateQueue!=null){var S=i.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}D.H=WE,S=s(u,p)}while(sl);return S}function Mz(){var i=D.H,s=i.useState()[0];return s=typeof s.then=="function"?cu(s):s,i=i.useState()[0],(gt!==null?gt.memoizedState:null)!==i&&(qe.flags|=1024),s}function Qv(){var i=Xf!==0;return Xf=0,i}function Xv(i,s,u){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~u}function Wv(i){if(Qf){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Qf=!1}qa=0,Ut=gt=qe=null,sl=!1,lu=Xf=0,ll=null}function Tn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?qe.memoizedState=Ut=i:Ut=Ut.next=i,Ut}function Bt(){if(gt===null){var i=qe.alternate;i=i!==null?i.memoizedState:null}else i=gt.next;var s=Ut===null?qe.memoizedState:Ut.next;if(s!==null)Ut=s,gt=i;else{if(i===null)throw qe.alternate===null?Error(r(467)):Error(r(310));gt=i,i={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Ut===null?qe.memoizedState=Ut=i:Ut=Ut.next=i}return Ut}function Wf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cu(i){var s=lu;return lu+=1,ll===null&&(ll=[]),i=iE(ll,i,s),s=qe,(Ut===null?s.memoizedState:Ut.next)===null&&(s=s.alternate,D.H=s===null||s.memoizedState===null?XE:cy),i}function Zf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return cu(i);if(i.$$typeof===T)return dn(i)}throw Error(r(438,String(i)))}function Zv(i){var s=null,u=qe.updateQueue;if(u!==null&&(s=u.memoCache),s==null){var p=qe.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(s={data:p.data.map(function(y){return y.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),u===null&&(u=Wf(),qe.updateQueue=u),u.memoCache=s,u=s.data[s.index],u===void 0)for(u=s.data[s.index]=Array(i),p=0;p<i;p++)u[p]=z;return s.index++,u}function za(i,s){return typeof s=="function"?s(i):s}function Jf(i){var s=Bt();return Jv(s,gt,i)}function Jv(i,s,u){var p=i.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=u;var y=i.baseQueue,S=p.pending;if(S!==null){if(y!==null){var R=y.next;y.next=S.next,S.next=R}s.baseQueue=y=S,p.pending=null}if(S=i.baseState,y===null)i.memoizedState=S;else{s=y.next;var I=R=null,G=null,ne=s,le=!1;do{var pe=ne.lane&-536870913;if(pe!==ne.lane?(Qe&pe)===pe:(qa&pe)===pe){var re=ne.revertLane;if(re===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),pe===nl&&(le=!0);else if((qa&re)===re){ne=ne.next,re===nl&&(le=!0);continue}else pe={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},G===null?(I=G=pe,R=S):G=G.next=pe,qe.lanes|=re,Mi|=re;pe=ne.action,Io&&u(S,pe),S=ne.hasEagerState?ne.eagerState:u(S,pe)}else re={lane:pe,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},G===null?(I=G=re,R=S):G=G.next=re,qe.lanes|=pe,Mi|=pe;ne=ne.next}while(ne!==null&&ne!==s);if(G===null?R=S:G.next=I,!Wn(S,i.memoizedState)&&(Ft=!0,le&&(u=rl,u!==null)))throw u;i.memoizedState=S,i.baseState=R,i.baseQueue=G,p.lastRenderedState=S}return y===null&&(p.lanes=0),[i.memoizedState,p.dispatch]}function ey(i){var s=Bt(),u=s.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var p=u.dispatch,y=u.pending,S=s.memoizedState;if(y!==null){u.pending=null;var R=y=y.next;do S=i(S,R.action),R=R.next;while(R!==y);Wn(S,s.memoizedState)||(Ft=!0),s.memoizedState=S,s.baseQueue===null&&(s.baseState=S),u.lastRenderedState=S}return[S,p]}function mE(i,s,u){var p=qe,y=Bt(),S=We;if(S){if(u===void 0)throw Error(r(407));u=u()}else u=s();var R=!Wn((gt||y).memoizedState,u);if(R&&(y.memoizedState=u,Ft=!0),y=y.queue,ry(xE.bind(null,p,y,i),[i]),y.getSnapshot!==s||R||Ut!==null&&Ut.memoizedState.tag&1){if(p.flags|=2048,cl(9,{destroy:void 0},yE.bind(null,p,y,u,s),null),xt===null)throw Error(r(349));S||(qa&127)!==0||vE(p,s,u)}return u}function vE(i,s,u){i.flags|=16384,i={getSnapshot:s,value:u},s=qe.updateQueue,s===null?(s=Wf(),qe.updateQueue=s,s.stores=[i]):(u=s.stores,u===null?s.stores=[i]:u.push(i))}function yE(i,s,u,p){s.value=u,s.getSnapshot=p,bE(s)&&wE(i)}function xE(i,s,u){return u(function(){bE(s)&&wE(i)})}function bE(i){var s=i.getSnapshot;i=i.value;try{var u=s();return!Wn(i,u)}catch{return!0}}function wE(i){var s=Eo(i,2);s!==null&&Hn(s,i,2)}function ty(i){var s=Tn();if(typeof i=="function"){var u=i;if(i=u(),Io){Lr(!0);try{u()}finally{Lr(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:i},s}function SE(i,s,u,p){return i.baseState=u,Jv(i,gt,typeof p=="function"?p:za)}function Pz(i,s,u,p,y){if(np(i))throw Error(r(485));if(i=s.action,i!==null){var S={payload:y,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){S.listeners.push(R)}};D.T!==null?u(!0):S.isTransition=!1,p(S),u=s.pending,u===null?(S.next=s.pending=S,AE(s,S)):(S.next=u.next,s.pending=u.next=S)}}function AE(i,s){var u=s.action,p=s.payload,y=i.state;if(s.isTransition){var S=D.T,R={};D.T=R;try{var I=u(y,p),G=D.S;G!==null&&G(R,I),OE(i,s,I)}catch(ne){ny(i,s,ne)}finally{S!==null&&R.types!==null&&(S.types=R.types),D.T=S}}else try{S=u(y,p),OE(i,s,S)}catch(ne){ny(i,s,ne)}}function OE(i,s,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(p){CE(i,s,p)},function(p){return ny(i,s,p)}):CE(i,s,u)}function CE(i,s,u){s.status="fulfilled",s.value=u,jE(s),i.state=u,s=i.pending,s!==null&&(u=s.next,u===s?i.pending=null:(u=u.next,s.next=u,AE(i,u)))}function ny(i,s,u){var p=i.pending;if(i.pending=null,p!==null){p=p.next;do s.status="rejected",s.reason=u,jE(s),s=s.next;while(s!==p)}i.action=null}function jE(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function EE(i,s){return s}function _E(i,s){if(We){var u=xt.formState;if(u!==null){e:{var p=qe;if(We){if(Ct){t:{for(var y=Ct,S=wr;y.nodeType!==8;){if(!S){y=null;break t}if(y=Ar(y.nextSibling),y===null){y=null;break t}}S=y.data,y=S==="F!"||S==="F"?y:null}if(y){Ct=Ar(y.nextSibling),p=y.data==="F!";break e}}Ai(p)}p=!1}p&&(s=u[0])}}return u=Tn(),u.memoizedState=u.baseState=s,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:EE,lastRenderedState:s},u.queue=p,u=VE.bind(null,qe,p),p.dispatch=u,p=ty(!1),S=ly.bind(null,qe,!1,p.queue),p=Tn(),y={state:s,dispatch:null,action:i,pending:null},p.queue=y,u=Pz.bind(null,qe,y,S,u),y.dispatch=u,p.memoizedState=i,[s,u,!1]}function TE(i){var s=Bt();return NE(s,gt,i)}function NE(i,s,u){if(s=Jv(i,s,EE)[0],i=Jf(za)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var p=cu(s)}catch(R){throw R===al?Ff:R}else p=s;s=Bt();var y=s.queue,S=y.dispatch;return u!==s.memoizedState&&(qe.flags|=2048,cl(9,{destroy:void 0},Dz.bind(null,y,u),null)),[p,S,i]}function Dz(i,s){i.action=s}function RE(i){var s=Bt(),u=gt;if(u!==null)return NE(s,u,i);Bt(),s=s.memoizedState,u=Bt();var p=u.queue.dispatch;return u.memoizedState=i,[s,p,!1]}function cl(i,s,u,p){return i={tag:i,create:u,deps:p,inst:s,next:null},s=qe.updateQueue,s===null&&(s=Wf(),qe.updateQueue=s),u=s.lastEffect,u===null?s.lastEffect=i.next=i:(p=u.next,u.next=i,i.next=p,s.lastEffect=i),i}function ME(){return Bt().memoizedState}function ep(i,s,u,p){var y=Tn();qe.flags|=i,y.memoizedState=cl(1|s,{destroy:void 0},u,p===void 0?null:p)}function tp(i,s,u,p){var y=Bt();p=p===void 0?null:p;var S=y.memoizedState.inst;gt!==null&&p!==null&&Vv(p,gt.memoizedState.deps)?y.memoizedState=cl(s,S,u,p):(qe.flags|=i,y.memoizedState=cl(1|s,S,u,p))}function PE(i,s){ep(8390656,8,i,s)}function ry(i,s){tp(2048,8,i,s)}function kz(i){qe.flags|=4;var s=qe.updateQueue;if(s===null)s=Wf(),qe.updateQueue=s,s.events=[i];else{var u=s.events;u===null?s.events=[i]:u.push(i)}}function DE(i){var s=Bt().memoizedState;return kz({ref:s,nextImpl:i}),function(){if((lt&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function kE(i,s){return tp(4,2,i,s)}function IE(i,s){return tp(4,4,i,s)}function LE(i,s){if(typeof s=="function"){i=i();var u=s(i);return function(){typeof u=="function"?u():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function BE(i,s,u){u=u!=null?u.concat([i]):null,tp(4,4,LE.bind(null,s,i),u)}function ay(){}function $E(i,s){var u=Bt();s=s===void 0?null:s;var p=u.memoizedState;return s!==null&&Vv(s,p[1])?p[0]:(u.memoizedState=[i,s],i)}function qE(i,s){var u=Bt();s=s===void 0?null:s;var p=u.memoizedState;if(s!==null&&Vv(s,p[1]))return p[0];if(p=i(),Io){Lr(!0);try{i()}finally{Lr(!1)}}return u.memoizedState=[p,s],p}function iy(i,s,u){return u===void 0||(qa&1073741824)!==0&&(Qe&261930)===0?i.memoizedState=s:(i.memoizedState=u,i=z_(),qe.lanes|=i,Mi|=i,u)}function zE(i,s,u,p){return Wn(u,s)?u:ol.current!==null?(i=iy(i,u,p),Wn(i,s)||(Ft=!0),i):(qa&42)===0||(qa&1073741824)!==0&&(Qe&261930)===0?(Ft=!0,i.memoizedState=u):(i=z_(),qe.lanes|=i,Mi|=i,s)}function UE(i,s,u,p,y){var S=K.p;K.p=S!==0&&8>S?S:8;var R=D.T,I={};D.T=I,ly(i,!1,s,u);try{var G=y(),ne=D.S;if(ne!==null&&ne(I,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var le=Nz(G,p);uu(i,s,le,rr(i))}else uu(i,s,p,rr(i))}catch(pe){uu(i,s,{then:function(){},status:"rejected",reason:pe},rr())}finally{K.p=S,R!==null&&I.types!==null&&(R.types=I.types),D.T=R}}function Iz(){}function oy(i,s,u,p){if(i.tag!==5)throw Error(r(476));var y=FE(i).queue;UE(i,y,s,F,u===null?Iz:function(){return KE(i),u(p)})}function FE(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:F},next:null};var u={};return s.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:za,lastRenderedState:u},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function KE(i){var s=FE(i);s.next===null&&(s=i.alternate.memoizedState),uu(i,s.next.queue,{},rr())}function sy(){return dn(Eu)}function HE(){return Bt().memoizedState}function GE(){return Bt().memoizedState}function Lz(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var u=rr();i=ji(u);var p=Ei(s,i,u);p!==null&&(Hn(p,s,u),iu(p,s,u)),s={cache:Iv()},i.payload=s;return}s=s.return}}function Bz(i,s,u){var p=rr();u={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},np(i)?YE(s,u):(u=Cv(i,s,u,p),u!==null&&(Hn(u,i,p),QE(u,s,p)))}function VE(i,s,u){var p=rr();uu(i,s,u,p)}function uu(i,s,u,p){var y={lane:p,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(np(i))YE(s,y);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var R=s.lastRenderedState,I=S(R,u);if(y.hasEagerState=!0,y.eagerState=I,Wn(I,R))return If(i,s,y,0),xt===null&&kf(),!1}catch{}finally{}if(u=Cv(i,s,y,p),u!==null)return Hn(u,i,p),QE(u,s,p),!0}return!1}function ly(i,s,u,p){if(p={lane:2,revertLane:qy(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},np(i)){if(s)throw Error(r(479))}else s=Cv(i,u,p,2),s!==null&&Hn(s,i,2)}function np(i){var s=i.alternate;return i===qe||s!==null&&s===qe}function YE(i,s){sl=Qf=!0;var u=i.pending;u===null?s.next=s:(s.next=u.next,u.next=s),i.pending=s}function QE(i,s,u){if((u&4194048)!==0){var p=s.lanes;p&=i.pendingLanes,u|=p,s.lanes=u,Ln(i,u)}}var du={readContext:dn,use:Zf,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};du.useEffectEvent=Pt;var XE={readContext:dn,use:Zf,useCallback:function(i,s){return Tn().memoizedState=[i,s===void 0?null:s],i},useContext:dn,useEffect:PE,useImperativeHandle:function(i,s,u){u=u!=null?u.concat([i]):null,ep(4194308,4,LE.bind(null,s,i),u)},useLayoutEffect:function(i,s){return ep(4194308,4,i,s)},useInsertionEffect:function(i,s){ep(4,2,i,s)},useMemo:function(i,s){var u=Tn();s=s===void 0?null:s;var p=i();if(Io){Lr(!0);try{i()}finally{Lr(!1)}}return u.memoizedState=[p,s],p},useReducer:function(i,s,u){var p=Tn();if(u!==void 0){var y=u(s);if(Io){Lr(!0);try{u(s)}finally{Lr(!1)}}}else y=s;return p.memoizedState=p.baseState=y,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:y},p.queue=i,i=i.dispatch=Bz.bind(null,qe,i),[p.memoizedState,i]},useRef:function(i){var s=Tn();return i={current:i},s.memoizedState=i},useState:function(i){i=ty(i);var s=i.queue,u=VE.bind(null,qe,s);return s.dispatch=u,[i.memoizedState,u]},useDebugValue:ay,useDeferredValue:function(i,s){var u=Tn();return iy(u,i,s)},useTransition:function(){var i=ty(!1);return i=UE.bind(null,qe,i.queue,!0,!1),Tn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,u){var p=qe,y=Tn();if(We){if(u===void 0)throw Error(r(407));u=u()}else{if(u=s(),xt===null)throw Error(r(349));(Qe&127)!==0||vE(p,s,u)}y.memoizedState=u;var S={value:u,getSnapshot:s};return y.queue=S,PE(xE.bind(null,p,S,i),[i]),p.flags|=2048,cl(9,{destroy:void 0},yE.bind(null,p,S,u,s),null),u},useId:function(){var i=Tn(),s=xt.identifierPrefix;if(We){var u=ia,p=aa;u=(p&~(1<<32-gn(p)-1)).toString(32)+u,s="_"+s+"R_"+u,u=Xf++,0<u&&(s+="H"+u.toString(32)),s+="_"}else u=Rz++,s="_"+s+"r_"+u.toString(32)+"_";return i.memoizedState=s},useHostTransitionStatus:sy,useFormState:_E,useActionState:_E,useOptimistic:function(i){var s=Tn();s.memoizedState=s.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=u,s=ly.bind(null,qe,!0,u),u.dispatch=s,[i,s]},useMemoCache:Zv,useCacheRefresh:function(){return Tn().memoizedState=Lz.bind(null,qe)},useEffectEvent:function(i){var s=Tn(),u={impl:i};return s.memoizedState=u,function(){if((lt&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},cy={readContext:dn,use:Zf,useCallback:$E,useContext:dn,useEffect:ry,useImperativeHandle:BE,useInsertionEffect:kE,useLayoutEffect:IE,useMemo:qE,useReducer:Jf,useRef:ME,useState:function(){return Jf(za)},useDebugValue:ay,useDeferredValue:function(i,s){var u=Bt();return zE(u,gt.memoizedState,i,s)},useTransition:function(){var i=Jf(za)[0],s=Bt().memoizedState;return[typeof i=="boolean"?i:cu(i),s]},useSyncExternalStore:mE,useId:HE,useHostTransitionStatus:sy,useFormState:TE,useActionState:TE,useOptimistic:function(i,s){var u=Bt();return SE(u,gt,i,s)},useMemoCache:Zv,useCacheRefresh:GE};cy.useEffectEvent=DE;var WE={readContext:dn,use:Zf,useCallback:$E,useContext:dn,useEffect:ry,useImperativeHandle:BE,useInsertionEffect:kE,useLayoutEffect:IE,useMemo:qE,useReducer:ey,useRef:ME,useState:function(){return ey(za)},useDebugValue:ay,useDeferredValue:function(i,s){var u=Bt();return gt===null?iy(u,i,s):zE(u,gt.memoizedState,i,s)},useTransition:function(){var i=ey(za)[0],s=Bt().memoizedState;return[typeof i=="boolean"?i:cu(i),s]},useSyncExternalStore:mE,useId:HE,useHostTransitionStatus:sy,useFormState:RE,useActionState:RE,useOptimistic:function(i,s){var u=Bt();return gt!==null?SE(u,gt,i,s):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:Zv,useCacheRefresh:GE};WE.useEffectEvent=DE;function uy(i,s,u,p){s=i.memoizedState,u=u(p,s),u=u==null?s:g({},s,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var dy={enqueueSetState:function(i,s,u){i=i._reactInternals;var p=rr(),y=ji(p);y.payload=s,u!=null&&(y.callback=u),s=Ei(i,y,p),s!==null&&(Hn(s,i,p),iu(s,i,p))},enqueueReplaceState:function(i,s,u){i=i._reactInternals;var p=rr(),y=ji(p);y.tag=1,y.payload=s,u!=null&&(y.callback=u),s=Ei(i,y,p),s!==null&&(Hn(s,i,p),iu(s,i,p))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var u=rr(),p=ji(u);p.tag=2,s!=null&&(p.callback=s),s=Ei(i,p,u),s!==null&&(Hn(s,i,u),iu(s,i,u))}};function ZE(i,s,u,p,y,S,R){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(p,S,R):s.prototype&&s.prototype.isPureReactComponent?!Wc(u,p)||!Wc(y,S):!0}function JE(i,s,u,p){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(u,p),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(u,p),s.state!==i&&dy.enqueueReplaceState(s,s.state,null)}function Lo(i,s){var u=s;if("ref"in s){u={};for(var p in s)p!=="ref"&&(u[p]=s[p])}if(i=i.defaultProps){u===s&&(u=g({},u));for(var y in i)u[y]===void 0&&(u[y]=i[y])}return u}function e_(i){Df(i)}function t_(i){console.error(i)}function n_(i){Df(i)}function rp(i,s){try{var u=i.onUncaughtError;u(s.value,{componentStack:s.stack})}catch(p){setTimeout(function(){throw p})}}function r_(i,s,u){try{var p=i.onCaughtError;p(u.value,{componentStack:u.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function fy(i,s,u){return u=ji(u),u.tag=3,u.payload={element:null},u.callback=function(){rp(i,s)},u}function a_(i){return i=ji(i),i.tag=3,i}function i_(i,s,u,p){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var S=p.value;i.payload=function(){return y(S)},i.callback=function(){r_(s,u,p)}}var R=u.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(i.callback=function(){r_(s,u,p),typeof y!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var I=p.stack;this.componentDidCatch(p.value,{componentStack:I!==null?I:""})})}function $z(i,s,u,p,y){if(u.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(s=u.alternate,s!==null&&tl(s,u,y,!0),u=Jn.current,u!==null){switch(u.tag){case 31:case 13:return Sr===null?gp():u.alternate===null&&Dt===0&&(Dt=3),u.flags&=-257,u.flags|=65536,u.lanes=y,p===Kf?u.flags|=16384:(s=u.updateQueue,s===null?u.updateQueue=new Set([p]):s.add(p),Ly(i,p,y)),!1;case 22:return u.flags|=65536,p===Kf?u.flags|=16384:(s=u.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([p])},u.updateQueue=s):(u=s.retryQueue,u===null?s.retryQueue=new Set([p]):u.add(p)),Ly(i,p,y)),!1}throw Error(r(435,u.tag))}return Ly(i,p,y),gp(),!1}if(We)return s=Jn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=y,p!==Rv&&(i=Error(r(422),{cause:p}),eu(yr(i,u)))):(p!==Rv&&(s=Error(r(423),{cause:p}),eu(yr(s,u))),i=i.current.alternate,i.flags|=65536,y&=-y,i.lanes|=y,p=yr(p,u),y=fy(i.stateNode,p,y),Uv(i,y),Dt!==4&&(Dt=2)),!1;var S=Error(r(520),{cause:p});if(S=yr(S,u),xu===null?xu=[S]:xu.push(S),Dt!==4&&(Dt=2),s===null)return!0;p=yr(p,u),u=s;do{switch(u.tag){case 3:return u.flags|=65536,i=y&-y,u.lanes|=i,i=fy(u.stateNode,p,i),Uv(u,i),!1;case 1:if(s=u.type,S=u.stateNode,(u.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Pi===null||!Pi.has(S))))return u.flags|=65536,y&=-y,u.lanes|=y,y=a_(y),i_(y,i,u,p),Uv(u,y),!1}u=u.return}while(u!==null);return!1}var py=Error(r(461)),Ft=!1;function fn(i,s,u,p){s.child=i===null?cE(s,null,u,p):ko(s,i.child,u,p)}function o_(i,s,u,p,y){u=u.render;var S=s.ref;if("ref"in p){var R={};for(var I in p)I!=="ref"&&(R[I]=p[I])}else R=p;return Ro(s),p=Yv(i,s,u,R,S,y),I=Qv(),i!==null&&!Ft?(Xv(i,s,y),Ua(i,s,y)):(We&&I&&Tv(s),s.flags|=1,fn(i,s,p,y),s.child)}function s_(i,s,u,p,y){if(i===null){var S=u.type;return typeof S=="function"&&!jv(S)&&S.defaultProps===void 0&&u.compare===null?(s.tag=15,s.type=S,l_(i,s,S,p,y)):(i=Bf(u.type,null,p,s,s.mode,y),i.ref=s.ref,i.return=s,s.child=i)}if(S=i.child,!wy(i,y)){var R=S.memoizedProps;if(u=u.compare,u=u!==null?u:Wc,u(R,p)&&i.ref===s.ref)return Ua(i,s,y)}return s.flags|=1,i=Ia(S,p),i.ref=s.ref,i.return=s,s.child=i}function l_(i,s,u,p,y){if(i!==null){var S=i.memoizedProps;if(Wc(S,p)&&i.ref===s.ref)if(Ft=!1,s.pendingProps=p=S,wy(i,y))(i.flags&131072)!==0&&(Ft=!0);else return s.lanes=i.lanes,Ua(i,s,y)}return hy(i,s,u,p,y)}function c_(i,s,u,p){var y=p.children,S=i!==null?i.memoizedState:null;if(i===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((s.flags&128)!==0){if(S=S!==null?S.baseLanes|u:u,i!==null){for(p=s.child=i.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;p=y&~S}else p=0,s.child=null;return u_(i,s,S,u,p)}if((u&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Uf(s,S!==null?S.cachePool:null),S!==null?fE(s,S):Kv(),pE(s);else return p=s.lanes=536870912,u_(i,s,S!==null?S.baseLanes|u:u,u,p)}else S!==null?(Uf(s,S.cachePool),fE(s,S),Ti(),s.memoizedState=null):(i!==null&&Uf(s,null),Kv(),Ti());return fn(i,s,y,u),s.child}function fu(i,s){return i!==null&&i.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function u_(i,s,u,p,y){var S=Bv();return S=S===null?null:{parent:zt._currentValue,pool:S},s.memoizedState={baseLanes:u,cachePool:S},i!==null&&Uf(s,null),Kv(),pE(s),i!==null&&tl(i,s,p,!0),s.childLanes=y,null}function ap(i,s){return s=op({mode:s.mode,children:s.children},i.mode),s.ref=i.ref,i.child=s,s.return=i,s}function d_(i,s,u){return ko(s,i.child,null,u),i=ap(s,s.pendingProps),i.flags|=2,er(s),s.memoizedState=null,i}function qz(i,s,u){var p=s.pendingProps,y=(s.flags&128)!==0;if(s.flags&=-129,i===null){if(We){if(p.mode==="hidden")return i=ap(s,p),s.lanes=536870912,fu(null,i);if(Gv(s),(i=Ct)?(i=AT(i,wr),i=i!==null&&i.data==="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:wi!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},u=Yj(i),u.return=s,s.child=u,un=s,Ct=null)):i=null,i===null)throw Ai(s);return s.lanes=536870912,null}return ap(s,p)}var S=i.memoizedState;if(S!==null){var R=S.dehydrated;if(Gv(s),y)if(s.flags&256)s.flags&=-257,s=d_(i,s,u);else if(s.memoizedState!==null)s.child=i.child,s.flags|=128,s=null;else throw Error(r(558));else if(Ft||tl(i,s,u,!1),y=(u&i.childLanes)!==0,Ft||y){if(p=xt,p!==null&&(R=Bn(p,u),R!==0&&R!==S.retryLane))throw S.retryLane=R,Eo(i,R),Hn(p,i,R),py;gp(),s=d_(i,s,u)}else i=S.treeContext,Ct=Ar(R.nextSibling),un=s,We=!0,Si=null,wr=!1,i!==null&&Wj(s,i),s=ap(s,p),s.flags|=4096;return s}return i=Ia(i.child,{mode:p.mode,children:p.children}),i.ref=s.ref,s.child=i,i.return=s,i}function ip(i,s){var u=s.ref;if(u===null)i!==null&&i.ref!==null&&(s.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(s.flags|=4194816)}}function hy(i,s,u,p,y){return Ro(s),u=Yv(i,s,u,p,void 0,y),p=Qv(),i!==null&&!Ft?(Xv(i,s,y),Ua(i,s,y)):(We&&p&&Tv(s),s.flags|=1,fn(i,s,u,y),s.child)}function f_(i,s,u,p,y,S){return Ro(s),s.updateQueue=null,u=gE(s,p,u,y),hE(i),p=Qv(),i!==null&&!Ft?(Xv(i,s,S),Ua(i,s,S)):(We&&p&&Tv(s),s.flags|=1,fn(i,s,u,S),s.child)}function p_(i,s,u,p,y){if(Ro(s),s.stateNode===null){var S=Ws,R=u.contextType;typeof R=="object"&&R!==null&&(S=dn(R)),S=new u(p,S),s.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=dy,s.stateNode=S,S._reactInternals=s,S=s.stateNode,S.props=p,S.state=s.memoizedState,S.refs={},qv(s),R=u.contextType,S.context=typeof R=="object"&&R!==null?dn(R):Ws,S.state=s.memoizedState,R=u.getDerivedStateFromProps,typeof R=="function"&&(uy(s,u,R,p),S.state=s.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(R=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),R!==S.state&&dy.enqueueReplaceState(S,S.state,null),su(s,p,S,y),ou(),S.state=s.memoizedState),typeof S.componentDidMount=="function"&&(s.flags|=4194308),p=!0}else if(i===null){S=s.stateNode;var I=s.memoizedProps,G=Lo(u,I);S.props=G;var ne=S.context,le=u.contextType;R=Ws,typeof le=="object"&&le!==null&&(R=dn(le));var pe=u.getDerivedStateFromProps;le=typeof pe=="function"||typeof S.getSnapshotBeforeUpdate=="function",I=s.pendingProps!==I,le||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(I||ne!==R)&&JE(s,S,p,R),Ci=!1;var re=s.memoizedState;S.state=re,su(s,p,S,y),ou(),ne=s.memoizedState,I||re!==ne||Ci?(typeof pe=="function"&&(uy(s,u,pe,p),ne=s.memoizedState),(G=Ci||ZE(s,u,G,p,re,ne,R))?(le||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=p,s.memoizedState=ne),S.props=p,S.state=ne,S.context=R,p=G):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),p=!1)}else{S=s.stateNode,zv(i,s),R=s.memoizedProps,le=Lo(u,R),S.props=le,pe=s.pendingProps,re=S.context,ne=u.contextType,G=Ws,typeof ne=="object"&&ne!==null&&(G=dn(ne)),I=u.getDerivedStateFromProps,(ne=typeof I=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(R!==pe||re!==G)&&JE(s,S,p,G),Ci=!1,re=s.memoizedState,S.state=re,su(s,p,S,y),ou();var ae=s.memoizedState;R!==pe||re!==ae||Ci||i!==null&&i.dependencies!==null&&qf(i.dependencies)?(typeof I=="function"&&(uy(s,u,I,p),ae=s.memoizedState),(le=Ci||ZE(s,u,le,p,re,ae,G)||i!==null&&i.dependencies!==null&&qf(i.dependencies))?(ne||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(p,ae,G),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(p,ae,G)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||R===i.memoizedProps&&re===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&re===i.memoizedState||(s.flags|=1024),s.memoizedProps=p,s.memoizedState=ae),S.props=p,S.state=ae,S.context=G,p=le):(typeof S.componentDidUpdate!="function"||R===i.memoizedProps&&re===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||R===i.memoizedProps&&re===i.memoizedState||(s.flags|=1024),p=!1)}return S=p,ip(i,s),p=(s.flags&128)!==0,S||p?(S=s.stateNode,u=p&&typeof u.getDerivedStateFromError!="function"?null:S.render(),s.flags|=1,i!==null&&p?(s.child=ko(s,i.child,null,y),s.child=ko(s,null,u,y)):fn(i,s,u,y),s.memoizedState=S.state,i=s.child):i=Ua(i,s,y),i}function h_(i,s,u,p){return To(),s.flags|=256,fn(i,s,u,p),s.child}var gy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function my(i){return{baseLanes:i,cachePool:rE()}}function vy(i,s,u){return i=i!==null?i.childLanes&~u:0,s&&(i|=nr),i}function g_(i,s,u){var p=s.pendingProps,y=!1,S=(s.flags&128)!==0,R;if((R=S)||(R=i!==null&&i.memoizedState===null?!1:(Lt.current&2)!==0),R&&(y=!0,s.flags&=-129),R=(s.flags&32)!==0,s.flags&=-33,i===null){if(We){if(y?_i(s):Ti(),(i=Ct)?(i=AT(i,wr),i=i!==null&&i.data!=="&"?i:null,i!==null&&(s.memoizedState={dehydrated:i,treeContext:wi!==null?{id:aa,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},u=Yj(i),u.return=s,s.child=u,un=s,Ct=null)):i=null,i===null)throw Ai(s);return Jy(i)?s.lanes=32:s.lanes=536870912,null}var I=p.children;return p=p.fallback,y?(Ti(),y=s.mode,I=op({mode:"hidden",children:I},y),p=_o(p,y,u,null),I.return=s,p.return=s,I.sibling=p,s.child=I,p=s.child,p.memoizedState=my(u),p.childLanes=vy(i,R,u),s.memoizedState=gy,fu(null,p)):(_i(s),yy(s,I))}var G=i.memoizedState;if(G!==null&&(I=G.dehydrated,I!==null)){if(S)s.flags&256?(_i(s),s.flags&=-257,s=xy(i,s,u)):s.memoizedState!==null?(Ti(),s.child=i.child,s.flags|=128,s=null):(Ti(),I=p.fallback,y=s.mode,p=op({mode:"visible",children:p.children},y),I=_o(I,y,u,null),I.flags|=2,p.return=s,I.return=s,p.sibling=I,s.child=p,ko(s,i.child,null,u),p=s.child,p.memoizedState=my(u),p.childLanes=vy(i,R,u),s.memoizedState=gy,s=fu(null,p));else if(_i(s),Jy(I)){if(R=I.nextSibling&&I.nextSibling.dataset,R)var ne=R.dgst;R=ne,p=Error(r(419)),p.stack="",p.digest=R,eu({value:p,source:null,stack:null}),s=xy(i,s,u)}else if(Ft||tl(i,s,u,!1),R=(u&i.childLanes)!==0,Ft||R){if(R=xt,R!==null&&(p=Bn(R,u),p!==0&&p!==G.retryLane))throw G.retryLane=p,Eo(i,p),Hn(R,i,p),py;Zy(I)||gp(),s=xy(i,s,u)}else Zy(I)?(s.flags|=192,s.child=i.child,s=null):(i=G.treeContext,Ct=Ar(I.nextSibling),un=s,We=!0,Si=null,wr=!1,i!==null&&Wj(s,i),s=yy(s,p.children),s.flags|=4096);return s}return y?(Ti(),I=p.fallback,y=s.mode,G=i.child,ne=G.sibling,p=Ia(G,{mode:"hidden",children:p.children}),p.subtreeFlags=G.subtreeFlags&65011712,ne!==null?I=Ia(ne,I):(I=_o(I,y,u,null),I.flags|=2),I.return=s,p.return=s,p.sibling=I,s.child=p,fu(null,p),p=s.child,I=i.child.memoizedState,I===null?I=my(u):(y=I.cachePool,y!==null?(G=zt._currentValue,y=y.parent!==G?{parent:G,pool:G}:y):y=rE(),I={baseLanes:I.baseLanes|u,cachePool:y}),p.memoizedState=I,p.childLanes=vy(i,R,u),s.memoizedState=gy,fu(i.child,p)):(_i(s),u=i.child,i=u.sibling,u=Ia(u,{mode:"visible",children:p.children}),u.return=s,u.sibling=null,i!==null&&(R=s.deletions,R===null?(s.deletions=[i],s.flags|=16):R.push(i)),s.child=u,s.memoizedState=null,u)}function yy(i,s){return s=op({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function op(i,s){return i=Zn(22,i,null,s),i.lanes=0,i}function xy(i,s,u){return ko(s,i.child,null,u),i=yy(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function m_(i,s,u){i.lanes|=s;var p=i.alternate;p!==null&&(p.lanes|=s),Dv(i.return,s,u)}function by(i,s,u,p,y,S){var R=i.memoizedState;R===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:y,treeForkCount:S}:(R.isBackwards=s,R.rendering=null,R.renderingStartTime=0,R.last=p,R.tail=u,R.tailMode=y,R.treeForkCount=S)}function v_(i,s,u){var p=s.pendingProps,y=p.revealOrder,S=p.tail;p=p.children;var R=Lt.current,I=(R&2)!==0;if(I?(R=R&1|2,s.flags|=128):R&=1,Y(Lt,R),fn(i,s,p,u),p=We?Jc:0,!I&&i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&m_(i,u,s);else if(i.tag===19)m_(i,u,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(y){case"forwards":for(u=s.child,y=null;u!==null;)i=u.alternate,i!==null&&Yf(i)===null&&(y=u),u=u.sibling;u=y,u===null?(y=s.child,s.child=null):(y=u.sibling,u.sibling=null),by(s,!1,y,u,S,p);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=s.child,s.child=null;y!==null;){if(i=y.alternate,i!==null&&Yf(i)===null){s.child=y;break}i=y.sibling,y.sibling=u,u=y,y=i}by(s,!0,u,null,S,p);break;case"together":by(s,!1,null,null,void 0,p);break;default:s.memoizedState=null}return s.child}function Ua(i,s,u){if(i!==null&&(s.dependencies=i.dependencies),Mi|=s.lanes,(u&s.childLanes)===0)if(i!==null){if(tl(i,s,u,!1),(u&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,u=Ia(i,i.pendingProps),s.child=u,u.return=s;i.sibling!==null;)i=i.sibling,u=u.sibling=Ia(i,i.pendingProps),u.return=s;u.sibling=null}return s.child}function wy(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&qf(i)))}function zz(i,s,u){switch(s.tag){case 3:ve(s,s.stateNode.containerInfo),Oi(s,zt,i.memoizedState.cache),To();break;case 27:case 5:Z(s);break;case 4:ve(s,s.stateNode.containerInfo);break;case 10:Oi(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Gv(s),null;break;case 13:var p=s.memoizedState;if(p!==null)return p.dehydrated!==null?(_i(s),s.flags|=128,null):(u&s.child.childLanes)!==0?g_(i,s,u):(_i(s),i=Ua(i,s,u),i!==null?i.sibling:null);_i(s);break;case 19:var y=(i.flags&128)!==0;if(p=(u&s.childLanes)!==0,p||(tl(i,s,u,!1),p=(u&s.childLanes)!==0),y){if(p)return v_(i,s,u);s.flags|=128}if(y=s.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Y(Lt,Lt.current),p)break;return null;case 22:return s.lanes=0,c_(i,s,u,s.pendingProps);case 24:Oi(s,zt,i.memoizedState.cache)}return Ua(i,s,u)}function y_(i,s,u){if(i!==null)if(i.memoizedProps!==s.pendingProps)Ft=!0;else{if(!wy(i,u)&&(s.flags&128)===0)return Ft=!1,zz(i,s,u);Ft=(i.flags&131072)!==0}else Ft=!1,We&&(s.flags&1048576)!==0&&Xj(s,Jc,s.index);switch(s.lanes=0,s.tag){case 16:e:{var p=s.pendingProps;if(i=Po(s.elementType),s.type=i,typeof i=="function")jv(i)?(p=Lo(i,p),s.tag=1,s=p_(null,s,i,p,u)):(s.tag=0,s=hy(null,s,i,p,u));else{if(i!=null){var y=i.$$typeof;if(y===M){s.tag=11,s=o_(null,s,i,p,u);break e}else if(y===N){s.tag=14,s=s_(null,s,i,p,u);break e}}throw s=H(i)||i,Error(r(306,s,""))}}return s;case 0:return hy(i,s,s.type,s.pendingProps,u);case 1:return p=s.type,y=Lo(p,s.pendingProps),p_(i,s,p,y,u);case 3:e:{if(ve(s,s.stateNode.containerInfo),i===null)throw Error(r(387));p=s.pendingProps;var S=s.memoizedState;y=S.element,zv(i,s),su(s,p,null,u);var R=s.memoizedState;if(p=R.cache,Oi(s,zt,p),p!==S.cache&&kv(s,[zt],u,!0),ou(),p=R.element,S.isDehydrated)if(S={element:p,isDehydrated:!1,cache:R.cache},s.updateQueue.baseState=S,s.memoizedState=S,s.flags&256){s=h_(i,s,p,u);break e}else if(p!==y){y=yr(Error(r(424)),s),eu(y),s=h_(i,s,p,u);break e}else{switch(i=s.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Ct=Ar(i.firstChild),un=s,We=!0,Si=null,wr=!0,u=cE(s,null,p,u),s.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(To(),p===y){s=Ua(i,s,u);break e}fn(i,s,p,u)}s=s.child}return s;case 26:return ip(i,s),i===null?(u=TT(s.type,null,s.pendingProps,null))?s.memoizedState=u:We||(u=s.type,i=s.pendingProps,p=Sp(me.current).createElement(u),p[cn]=s,p[$n]=i,pn(p,u,i),rn(p),s.stateNode=p):s.memoizedState=TT(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Z(s),i===null&&We&&(p=s.stateNode=jT(s.type,s.pendingProps,me.current),un=s,wr=!0,y=Ct,Li(s.type)?(ex=y,Ct=Ar(p.firstChild)):Ct=y),fn(i,s,s.pendingProps.children,u),ip(i,s),i===null&&(s.flags|=4194304),s.child;case 5:return i===null&&We&&((y=p=Ct)&&(p=vU(p,s.type,s.pendingProps,wr),p!==null?(s.stateNode=p,un=s,Ct=Ar(p.firstChild),wr=!1,y=!0):y=!1),y||Ai(s)),Z(s),y=s.type,S=s.pendingProps,R=i!==null?i.memoizedProps:null,p=S.children,Qy(y,S)?p=null:R!==null&&Qy(y,R)&&(s.flags|=32),s.memoizedState!==null&&(y=Yv(i,s,Mz,null,null,u),Eu._currentValue=y),ip(i,s),fn(i,s,p,u),s.child;case 6:return i===null&&We&&((i=u=Ct)&&(u=yU(u,s.pendingProps,wr),u!==null?(s.stateNode=u,un=s,Ct=null,i=!0):i=!1),i||Ai(s)),null;case 13:return g_(i,s,u);case 4:return ve(s,s.stateNode.containerInfo),p=s.pendingProps,i===null?s.child=ko(s,null,p,u):fn(i,s,p,u),s.child;case 11:return o_(i,s,s.type,s.pendingProps,u);case 7:return fn(i,s,s.pendingProps,u),s.child;case 8:return fn(i,s,s.pendingProps.children,u),s.child;case 12:return fn(i,s,s.pendingProps.children,u),s.child;case 10:return p=s.pendingProps,Oi(s,s.type,p.value),fn(i,s,p.children,u),s.child;case 9:return y=s.type._context,p=s.pendingProps.children,Ro(s),y=dn(y),p=p(y),s.flags|=1,fn(i,s,p,u),s.child;case 14:return s_(i,s,s.type,s.pendingProps,u);case 15:return l_(i,s,s.type,s.pendingProps,u);case 19:return v_(i,s,u);case 31:return qz(i,s,u);case 22:return c_(i,s,u,s.pendingProps);case 24:return Ro(s),p=dn(zt),i===null?(y=Bv(),y===null&&(y=xt,S=Iv(),y.pooledCache=S,S.refCount++,S!==null&&(y.pooledCacheLanes|=u),y=S),s.memoizedState={parent:p,cache:y},qv(s),Oi(s,zt,y)):((i.lanes&u)!==0&&(zv(i,s),su(s,null,null,u),ou()),y=i.memoizedState,S=s.memoizedState,y.parent!==p?(y={parent:p,cache:p},s.memoizedState=y,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=y),Oi(s,zt,p)):(p=S.cache,Oi(s,zt,p),p!==y.cache&&kv(s,[zt],u,!0))),fn(i,s,s.pendingProps.children,u),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Fa(i){i.flags|=4}function Sy(i,s,u,p,y){if((s=(i.mode&32)!==0)&&(s=!1),s){if(i.flags|=16777216,(y&335544128)===y)if(i.stateNode.complete)i.flags|=8192;else if(H_())i.flags|=8192;else throw Do=Kf,$v}else i.flags&=-16777217}function x_(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!DT(s))if(H_())i.flags|=8192;else throw Do=Kf,$v}function sp(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?mn():536870912,i.lanes|=s,pl|=s)}function pu(i,s){if(!We)switch(i.tailMode){case"hidden":s=i.tail;for(var u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:p.sibling=null}}function jt(i){var s=i.alternate!==null&&i.alternate.child===i.child,u=0,p=0;if(s)for(var y=i.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags&65011712,p|=y.flags&65011712,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)u|=y.lanes|y.childLanes,p|=y.subtreeFlags,p|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=p,i.childLanes=u,s}function Uz(i,s,u){var p=s.pendingProps;switch(Nv(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(s),null;case 1:return jt(s),null;case 3:return u=s.stateNode,p=null,i!==null&&(p=i.memoizedState.cache),s.memoizedState.cache!==p&&(s.flags|=2048),$a(zt),de(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(el(s)?Fa(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Mv())),jt(s),null;case 26:var y=s.type,S=s.memoizedState;return i===null?(Fa(s),S!==null?(jt(s),x_(s,S)):(jt(s),Sy(s,y,null,p,u))):S?S!==i.memoizedState?(Fa(s),jt(s),x_(s,S)):(jt(s),s.flags&=-16777217):(i=i.memoizedProps,i!==p&&Fa(s),jt(s),Sy(s,y,i,p,u)),null;case 27:if(he(s),u=me.current,y=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&Fa(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return jt(s),null}i=ee.current,el(s)?Zj(s):(i=jT(y,p,u),s.stateNode=i,Fa(s))}return jt(s),null;case 5:if(he(s),y=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==p&&Fa(s);else{if(!p){if(s.stateNode===null)throw Error(r(166));return jt(s),null}if(S=ee.current,el(s))Zj(s);else{var R=Sp(me.current);switch(S){case 1:S=R.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:S=R.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":S=R.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":S=R.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":S=R.createElement("div"),S.innerHTML="<script><\/script>",S=S.removeChild(S.firstChild);break;case"select":S=typeof p.is=="string"?R.createElement("select",{is:p.is}):R.createElement("select"),p.multiple?S.multiple=!0:p.size&&(S.size=p.size);break;default:S=typeof p.is=="string"?R.createElement(y,{is:p.is}):R.createElement(y)}}S[cn]=s,S[$n]=p;e:for(R=s.child;R!==null;){if(R.tag===5||R.tag===6)S.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===s)break e;for(;R.sibling===null;){if(R.return===null||R.return===s)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}s.stateNode=S;e:switch(pn(S,y,p),y){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&Fa(s)}}return jt(s),Sy(s,s.type,i===null?null:i.memoizedProps,s.pendingProps,u),null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==p&&Fa(s);else{if(typeof p!="string"&&s.stateNode===null)throw Error(r(166));if(i=me.current,el(s)){if(i=s.stateNode,u=s.memoizedProps,p=null,y=un,y!==null)switch(y.tag){case 27:case 5:p=y.memoizedProps}i[cn]=s,i=!!(i.nodeValue===u||p!==null&&p.suppressHydrationWarning===!0||gT(i.nodeValue,u)),i||Ai(s,!0)}else i=Sp(i).createTextNode(p),i[cn]=s,s.stateNode=i}return jt(s),null;case 31:if(u=s.memoizedState,i===null||i.memoizedState!==null){if(p=el(s),u!==null){if(i===null){if(!p)throw Error(r(318));if(i=s.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[cn]=s}else To(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;jt(s),i=!1}else u=Mv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return s.flags&256?(er(s),s):(er(s),null);if((s.flags&128)!==0)throw Error(r(558))}return jt(s),null;case 13:if(p=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(y=el(s),p!==null&&p.dehydrated!==null){if(i===null){if(!y)throw Error(r(318));if(y=s.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[cn]=s}else To(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;jt(s),y=!1}else y=Mv(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=y),y=!0;if(!y)return s.flags&256?(er(s),s):(er(s),null)}return er(s),(s.flags&128)!==0?(s.lanes=u,s):(u=p!==null,i=i!==null&&i.memoizedState!==null,u&&(p=s.child,y=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(y=p.alternate.memoizedState.cachePool.pool),S=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(S=p.memoizedState.cachePool.pool),S!==y&&(p.flags|=2048)),u!==i&&u&&(s.child.flags|=8192),sp(s,s.updateQueue),jt(s),null);case 4:return de(),i===null&&Ky(s.stateNode.containerInfo),jt(s),null;case 10:return $a(s.type),jt(s),null;case 19:if(V(Lt),p=s.memoizedState,p===null)return jt(s),null;if(y=(s.flags&128)!==0,S=p.rendering,S===null)if(y)pu(p,!1);else{if(Dt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(S=Yf(i),S!==null){for(s.flags|=128,pu(p,!1),i=S.updateQueue,s.updateQueue=i,sp(s,i),s.subtreeFlags=0,i=u,u=s.child;u!==null;)Vj(u,i),u=u.sibling;return Y(Lt,Lt.current&1|2),We&&La(s,p.treeForkCount),s.child}i=i.sibling}p.tail!==null&&tn()>fp&&(s.flags|=128,y=!0,pu(p,!1),s.lanes=4194304)}else{if(!y)if(i=Yf(S),i!==null){if(s.flags|=128,y=!0,i=i.updateQueue,s.updateQueue=i,sp(s,i),pu(p,!0),p.tail===null&&p.tailMode==="hidden"&&!S.alternate&&!We)return jt(s),null}else 2*tn()-p.renderingStartTime>fp&&u!==536870912&&(s.flags|=128,y=!0,pu(p,!1),s.lanes=4194304);p.isBackwards?(S.sibling=s.child,s.child=S):(i=p.last,i!==null?i.sibling=S:s.child=S,p.last=S)}return p.tail!==null?(i=p.tail,p.rendering=i,p.tail=i.sibling,p.renderingStartTime=tn(),i.sibling=null,u=Lt.current,Y(Lt,y?u&1|2:u&1),We&&La(s,p.treeForkCount),i):(jt(s),null);case 22:case 23:return er(s),Hv(),p=s.memoizedState!==null,i!==null?i.memoizedState!==null!==p&&(s.flags|=8192):p&&(s.flags|=8192),p?(u&536870912)!==0&&(s.flags&128)===0&&(jt(s),s.subtreeFlags&6&&(s.flags|=8192)):jt(s),u=s.updateQueue,u!==null&&sp(s,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==u&&(s.flags|=2048),i!==null&&V(Mo),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),$a(zt),jt(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function Fz(i,s){switch(Nv(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return $a(zt),de(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return he(s),null;case 31:if(s.memoizedState!==null){if(er(s),s.alternate===null)throw Error(r(340));To()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 13:if(er(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));To()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return V(Lt),null;case 4:return de(),null;case 10:return $a(s.type),null;case 22:case 23:return er(s),Hv(),i!==null&&V(Mo),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return $a(zt),null;case 25:return null;default:return null}}function b_(i,s){switch(Nv(s),s.tag){case 3:$a(zt),de();break;case 26:case 27:case 5:he(s);break;case 4:de();break;case 31:s.memoizedState!==null&&er(s);break;case 13:er(s);break;case 19:V(Lt);break;case 10:$a(s.type);break;case 22:case 23:er(s),Hv(),i!==null&&V(Mo);break;case 24:$a(zt)}}function hu(i,s){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var y=p.next;u=y;do{if((u.tag&i)===i){p=void 0;var S=u.create,R=u.inst;p=S(),R.destroy=p}u=u.next}while(u!==y)}}catch(I){ht(s,s.return,I)}}function Ni(i,s,u){try{var p=s.updateQueue,y=p!==null?p.lastEffect:null;if(y!==null){var S=y.next;p=S;do{if((p.tag&i)===i){var R=p.inst,I=R.destroy;if(I!==void 0){R.destroy=void 0,y=s;var G=u,ne=I;try{ne()}catch(le){ht(y,G,le)}}}p=p.next}while(p!==S)}}catch(le){ht(s,s.return,le)}}function w_(i){var s=i.updateQueue;if(s!==null){var u=i.stateNode;try{dE(s,u)}catch(p){ht(i,i.return,p)}}}function S_(i,s,u){u.props=Lo(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(p){ht(i,s,p)}}function gu(i,s){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var p=i.stateNode;break;case 30:p=i.stateNode;break;default:p=i.stateNode}typeof u=="function"?i.refCleanup=u(p):u.current=p}}catch(y){ht(i,s,y)}}function oa(i,s){var u=i.ref,p=i.refCleanup;if(u!==null)if(typeof p=="function")try{p()}catch(y){ht(i,s,y)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){ht(i,s,y)}else u.current=null}function A_(i){var s=i.type,u=i.memoizedProps,p=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":u.autoFocus&&p.focus();break e;case"img":u.src?p.src=u.src:u.srcSet&&(p.srcset=u.srcSet)}}catch(y){ht(i,i.return,y)}}function Ay(i,s,u){try{var p=i.stateNode;dU(p,i.type,u,s),p[$n]=s}catch(y){ht(i,i.return,y)}}function O_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Li(i.type)||i.tag===4}function Oy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||O_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Li(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Cy(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,s):(s=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,s.appendChild(i),u=u._reactRootContainer,u!=null||s.onclick!==null||(s.onclick=Da));else if(p!==4&&(p===27&&Li(i.type)&&(u=i.stateNode,s=null),i=i.child,i!==null))for(Cy(i,s,u),i=i.sibling;i!==null;)Cy(i,s,u),i=i.sibling}function lp(i,s,u){var p=i.tag;if(p===5||p===6)i=i.stateNode,s?u.insertBefore(i,s):u.appendChild(i);else if(p!==4&&(p===27&&Li(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(lp(i,s,u),i=i.sibling;i!==null;)lp(i,s,u),i=i.sibling}function C_(i){var s=i.stateNode,u=i.memoizedProps;try{for(var p=i.type,y=s.attributes;y.length;)s.removeAttributeNode(y[0]);pn(s,p,u),s[cn]=i,s[$n]=u}catch(S){ht(i,i.return,S)}}var Ka=!1,Kt=!1,jy=!1,j_=typeof WeakSet=="function"?WeakSet:Set,an=null;function Kz(i,s){if(i=i.containerInfo,Vy=Tp,i=Bj(i),xv(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var y=p.anchorOffset,S=p.focusNode;p=p.focusOffset;try{u.nodeType,S.nodeType}catch{u=null;break e}var R=0,I=-1,G=-1,ne=0,le=0,pe=i,re=null;t:for(;;){for(var ae;pe!==u||y!==0&&pe.nodeType!==3||(I=R+y),pe!==S||p!==0&&pe.nodeType!==3||(G=R+p),pe.nodeType===3&&(R+=pe.nodeValue.length),(ae=pe.firstChild)!==null;)re=pe,pe=ae;for(;;){if(pe===i)break t;if(re===u&&++ne===y&&(I=R),re===S&&++le===p&&(G=R),(ae=pe.nextSibling)!==null)break;pe=re,re=pe.parentNode}pe=ae}u=I===-1||G===-1?null:{start:I,end:G}}else u=null}u=u||{start:0,end:0}}else u=null;for(Yy={focusedElem:i,selectionRange:u},Tp=!1,an=s;an!==null;)if(s=an,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,an=i;else for(;an!==null;){switch(s=an,S=s.alternate,i=s.flags,s.tag){case 0:if((i&4)!==0&&(i=s.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)y=i[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&S!==null){i=void 0,u=s,y=S.memoizedProps,S=S.memoizedState,p=u.stateNode;try{var be=Lo(u.type,y);i=p.getSnapshotBeforeUpdate(be,S),p.__reactInternalSnapshotBeforeUpdate=i}catch(Te){ht(u,u.return,Te)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,u=i.nodeType,u===9)Wy(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Wy(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,an=i;break}an=s.return}}function E_(i,s,u){var p=u.flags;switch(u.tag){case 0:case 11:case 15:Ga(i,u),p&4&&hu(5,u);break;case 1:if(Ga(i,u),p&4)if(i=u.stateNode,s===null)try{i.componentDidMount()}catch(R){ht(u,u.return,R)}else{var y=Lo(u.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(y,s,i.__reactInternalSnapshotBeforeUpdate)}catch(R){ht(u,u.return,R)}}p&64&&w_(u),p&512&&gu(u,u.return);break;case 3:if(Ga(i,u),p&64&&(i=u.updateQueue,i!==null)){if(s=null,u.child!==null)switch(u.child.tag){case 27:case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}try{dE(i,s)}catch(R){ht(u,u.return,R)}}break;case 27:s===null&&p&4&&C_(u);case 26:case 5:Ga(i,u),s===null&&p&4&&A_(u),p&512&&gu(u,u.return);break;case 12:Ga(i,u);break;case 31:Ga(i,u),p&4&&N_(i,u);break;case 13:Ga(i,u),p&4&&R_(i,u),p&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=Jz.bind(null,u),xU(i,u))));break;case 22:if(p=u.memoizedState!==null||Ka,!p){s=s!==null&&s.memoizedState!==null||Kt,y=Ka;var S=Kt;Ka=p,(Kt=s)&&!S?Va(i,u,(u.subtreeFlags&8772)!==0):Ga(i,u),Ka=y,Kt=S}break;case 30:break;default:Ga(i,u)}}function __(i){var s=i.alternate;s!==null&&(i.alternate=null,__(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&nv(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Tt=null,zn=!1;function Ha(i,s,u){for(u=u.child;u!==null;)T_(i,s,u),u=u.sibling}function T_(i,s,u){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(bo,u)}catch{}switch(u.tag){case 26:Kt||oa(u,s),Ha(i,s,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Kt||oa(u,s);var p=Tt,y=zn;Li(u.type)&&(Tt=u.stateNode,zn=!1),Ha(i,s,u),Ou(u.stateNode),Tt=p,zn=y;break;case 5:Kt||oa(u,s);case 6:if(p=Tt,y=zn,Tt=null,Ha(i,s,u),Tt=p,zn=y,Tt!==null)if(zn)try{(Tt.nodeType===9?Tt.body:Tt.nodeName==="HTML"?Tt.ownerDocument.body:Tt).removeChild(u.stateNode)}catch(S){ht(u,s,S)}else try{Tt.removeChild(u.stateNode)}catch(S){ht(u,s,S)}break;case 18:Tt!==null&&(zn?(i=Tt,wT(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),wl(i)):wT(Tt,u.stateNode));break;case 4:p=Tt,y=zn,Tt=u.stateNode.containerInfo,zn=!0,Ha(i,s,u),Tt=p,zn=y;break;case 0:case 11:case 14:case 15:Ni(2,u,s),Kt||Ni(4,u,s),Ha(i,s,u);break;case 1:Kt||(oa(u,s),p=u.stateNode,typeof p.componentWillUnmount=="function"&&S_(u,s,p)),Ha(i,s,u);break;case 21:Ha(i,s,u);break;case 22:Kt=(p=Kt)||u.memoizedState!==null,Ha(i,s,u),Kt=p;break;default:Ha(i,s,u)}}function N_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{wl(i)}catch(u){ht(s,s.return,u)}}}function R_(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{wl(i)}catch(u){ht(s,s.return,u)}}function Hz(i){switch(i.tag){case 31:case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new j_),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new j_),s;default:throw Error(r(435,i.tag))}}function cp(i,s){var u=Hz(i);s.forEach(function(p){if(!u.has(p)){u.add(p);var y=eU.bind(null,i,p);p.then(y,y)}})}function Un(i,s){var u=s.deletions;if(u!==null)for(var p=0;p<u.length;p++){var y=u[p],S=i,R=s,I=R;e:for(;I!==null;){switch(I.tag){case 27:if(Li(I.type)){Tt=I.stateNode,zn=!1;break e}break;case 5:Tt=I.stateNode,zn=!1;break e;case 3:case 4:Tt=I.stateNode.containerInfo,zn=!0;break e}I=I.return}if(Tt===null)throw Error(r(160));T_(S,R,y),Tt=null,zn=!1,S=y.alternate,S!==null&&(S.return=null),y.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)M_(s,i),s=s.sibling}var qr=null;function M_(i,s){var u=i.alternate,p=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Un(s,i),Fn(i),p&4&&(Ni(3,i,i.return),hu(3,i),Ni(5,i,i.return));break;case 1:Un(s,i),Fn(i),p&512&&(Kt||u===null||oa(u,u.return)),p&64&&Ka&&(i=i.updateQueue,i!==null&&(p=i.callbacks,p!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?p:u.concat(p))));break;case 26:var y=qr;if(Un(s,i),Fn(i),p&512&&(Kt||u===null||oa(u,u.return)),p&4){var S=u!==null?u.memoizedState:null;if(p=i.memoizedState,u===null)if(p===null)if(i.stateNode===null){e:{p=i.type,u=i.memoizedProps,y=y.ownerDocument||y;t:switch(p){case"title":S=y.getElementsByTagName("title")[0],(!S||S[Uc]||S[cn]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=y.createElement(p),y.head.insertBefore(S,y.querySelector("head > title"))),pn(S,p,u),S[cn]=i,rn(S),p=S;break e;case"link":var R=MT("link","href",y).get(p+(u.href||""));if(R){for(var I=0;I<R.length;I++)if(S=R[I],S.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&S.getAttribute("rel")===(u.rel==null?null:u.rel)&&S.getAttribute("title")===(u.title==null?null:u.title)&&S.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){R.splice(I,1);break t}}S=y.createElement(p),pn(S,p,u),y.head.appendChild(S);break;case"meta":if(R=MT("meta","content",y).get(p+(u.content||""))){for(I=0;I<R.length;I++)if(S=R[I],S.getAttribute("content")===(u.content==null?null:""+u.content)&&S.getAttribute("name")===(u.name==null?null:u.name)&&S.getAttribute("property")===(u.property==null?null:u.property)&&S.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&S.getAttribute("charset")===(u.charSet==null?null:u.charSet)){R.splice(I,1);break t}}S=y.createElement(p),pn(S,p,u),y.head.appendChild(S);break;default:throw Error(r(468,p))}S[cn]=i,rn(S),p=S}i.stateNode=p}else PT(y,i.type,i.stateNode);else i.stateNode=RT(y,p,i.memoizedProps);else S!==p?(S===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):S.count--,p===null?PT(y,i.type,i.stateNode):RT(y,p,i.memoizedProps)):p===null&&i.stateNode!==null&&Ay(i,i.memoizedProps,u.memoizedProps)}break;case 27:Un(s,i),Fn(i),p&512&&(Kt||u===null||oa(u,u.return)),u!==null&&p&4&&Ay(i,i.memoizedProps,u.memoizedProps);break;case 5:if(Un(s,i),Fn(i),p&512&&(Kt||u===null||oa(u,u.return)),i.flags&32){y=i.stateNode;try{Ks(y,"")}catch(be){ht(i,i.return,be)}}p&4&&i.stateNode!=null&&(y=i.memoizedProps,Ay(i,y,u!==null?u.memoizedProps:y)),p&1024&&(jy=!0);break;case 6:if(Un(s,i),Fn(i),p&4){if(i.stateNode===null)throw Error(r(162));p=i.memoizedProps,u=i.stateNode;try{u.nodeValue=p}catch(be){ht(i,i.return,be)}}break;case 3:if(Cp=null,y=qr,qr=Ap(s.containerInfo),Un(s,i),qr=y,Fn(i),p&4&&u!==null&&u.memoizedState.isDehydrated)try{wl(s.containerInfo)}catch(be){ht(i,i.return,be)}jy&&(jy=!1,P_(i));break;case 4:p=qr,qr=Ap(i.stateNode.containerInfo),Un(s,i),Fn(i),qr=p;break;case 12:Un(s,i),Fn(i);break;case 31:Un(s,i),Fn(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,cp(i,p)));break;case 13:Un(s,i),Fn(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(dp=tn()),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,cp(i,p)));break;case 22:y=i.memoizedState!==null;var G=u!==null&&u.memoizedState!==null,ne=Ka,le=Kt;if(Ka=ne||y,Kt=le||G,Un(s,i),Kt=le,Ka=ne,Fn(i),p&8192)e:for(s=i.stateNode,s._visibility=y?s._visibility&-2:s._visibility|1,y&&(u===null||G||Ka||Kt||Bo(i)),u=null,s=i;;){if(s.tag===5||s.tag===26){if(u===null){G=u=s;try{if(S=G.stateNode,y)R=S.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none";else{I=G.stateNode;var pe=G.memoizedProps.style,re=pe!=null&&pe.hasOwnProperty("display")?pe.display:null;I.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(be){ht(G,G.return,be)}}}else if(s.tag===6){if(u===null){G=s;try{G.stateNode.nodeValue=y?"":G.memoizedProps}catch(be){ht(G,G.return,be)}}}else if(s.tag===18){if(u===null){G=s;try{var ae=G.stateNode;y?ST(ae,!0):ST(G.stateNode,!1)}catch(be){ht(G,G.return,be)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;u===s&&(u=null),s=s.return}u===s&&(u=null),s.sibling.return=s.return,s=s.sibling}p&4&&(p=i.updateQueue,p!==null&&(u=p.retryQueue,u!==null&&(p.retryQueue=null,cp(i,u))));break;case 19:Un(s,i),Fn(i),p&4&&(p=i.updateQueue,p!==null&&(i.updateQueue=null,cp(i,p)));break;case 30:break;case 21:break;default:Un(s,i),Fn(i)}}function Fn(i){var s=i.flags;if(s&2){try{for(var u,p=i.return;p!==null;){if(O_(p)){u=p;break}p=p.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,S=Oy(i);lp(i,S,y);break;case 5:var R=u.stateNode;u.flags&32&&(Ks(R,""),u.flags&=-33);var I=Oy(i);lp(i,I,R);break;case 3:case 4:var G=u.stateNode.containerInfo,ne=Oy(i);Cy(i,ne,G);break;default:throw Error(r(161))}}catch(le){ht(i,i.return,le)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function P_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;P_(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function Ga(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)E_(i,s.alternate,s),s=s.sibling}function Bo(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Ni(4,s,s.return),Bo(s);break;case 1:oa(s,s.return);var u=s.stateNode;typeof u.componentWillUnmount=="function"&&S_(s,s.return,u),Bo(s);break;case 27:Ou(s.stateNode);case 26:case 5:oa(s,s.return),Bo(s);break;case 22:s.memoizedState===null&&Bo(s);break;case 30:Bo(s);break;default:Bo(s)}i=i.sibling}}function Va(i,s,u){for(u=u&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var p=s.alternate,y=i,S=s,R=S.flags;switch(S.tag){case 0:case 11:case 15:Va(y,S,u),hu(4,S);break;case 1:if(Va(y,S,u),p=S,y=p.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(ne){ht(p,p.return,ne)}if(p=S,y=p.updateQueue,y!==null){var I=p.stateNode;try{var G=y.shared.hiddenCallbacks;if(G!==null)for(y.shared.hiddenCallbacks=null,y=0;y<G.length;y++)uE(G[y],I)}catch(ne){ht(p,p.return,ne)}}u&&R&64&&w_(S),gu(S,S.return);break;case 27:C_(S);case 26:case 5:Va(y,S,u),u&&p===null&&R&4&&A_(S),gu(S,S.return);break;case 12:Va(y,S,u);break;case 31:Va(y,S,u),u&&R&4&&N_(y,S);break;case 13:Va(y,S,u),u&&R&4&&R_(y,S);break;case 22:S.memoizedState===null&&Va(y,S,u),gu(S,S.return);break;case 30:break;default:Va(y,S,u)}s=s.sibling}}function Ey(i,s){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&tu(u))}function _y(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&tu(i))}function zr(i,s,u,p){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)D_(i,s,u,p),s=s.sibling}function D_(i,s,u,p){var y=s.flags;switch(s.tag){case 0:case 11:case 15:zr(i,s,u,p),y&2048&&hu(9,s);break;case 1:zr(i,s,u,p);break;case 3:zr(i,s,u,p),y&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&tu(i)));break;case 12:if(y&2048){zr(i,s,u,p),i=s.stateNode;try{var S=s.memoizedProps,R=S.id,I=S.onPostCommit;typeof I=="function"&&I(R,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(G){ht(s,s.return,G)}}else zr(i,s,u,p);break;case 31:zr(i,s,u,p);break;case 13:zr(i,s,u,p);break;case 23:break;case 22:S=s.stateNode,R=s.alternate,s.memoizedState!==null?S._visibility&2?zr(i,s,u,p):mu(i,s):S._visibility&2?zr(i,s,u,p):(S._visibility|=2,ul(i,s,u,p,(s.subtreeFlags&10256)!==0||!1)),y&2048&&Ey(R,s);break;case 24:zr(i,s,u,p),y&2048&&_y(s.alternate,s);break;default:zr(i,s,u,p)}}function ul(i,s,u,p,y){for(y=y&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var S=i,R=s,I=u,G=p,ne=R.flags;switch(R.tag){case 0:case 11:case 15:ul(S,R,I,G,y),hu(8,R);break;case 23:break;case 22:var le=R.stateNode;R.memoizedState!==null?le._visibility&2?ul(S,R,I,G,y):mu(S,R):(le._visibility|=2,ul(S,R,I,G,y)),y&&ne&2048&&Ey(R.alternate,R);break;case 24:ul(S,R,I,G,y),y&&ne&2048&&_y(R.alternate,R);break;default:ul(S,R,I,G,y)}s=s.sibling}}function mu(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var u=i,p=s,y=p.flags;switch(p.tag){case 22:mu(u,p),y&2048&&Ey(p.alternate,p);break;case 24:mu(u,p),y&2048&&_y(p.alternate,p);break;default:mu(u,p)}s=s.sibling}}var vu=8192;function dl(i,s,u){if(i.subtreeFlags&vu)for(i=i.child;i!==null;)k_(i,s,u),i=i.sibling}function k_(i,s,u){switch(i.tag){case 26:dl(i,s,u),i.flags&vu&&i.memoizedState!==null&&RU(u,qr,i.memoizedState,i.memoizedProps);break;case 5:dl(i,s,u);break;case 3:case 4:var p=qr;qr=Ap(i.stateNode.containerInfo),dl(i,s,u),qr=p;break;case 22:i.memoizedState===null&&(p=i.alternate,p!==null&&p.memoizedState!==null?(p=vu,vu=16777216,dl(i,s,u),vu=p):dl(i,s,u));break;default:dl(i,s,u)}}function I_(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function yu(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];an=p,B_(p,i)}I_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)L_(i),i=i.sibling}function L_(i){switch(i.tag){case 0:case 11:case 15:yu(i),i.flags&2048&&Ni(9,i,i.return);break;case 3:yu(i);break;case 12:yu(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&2&&(i.return===null||i.return.tag!==13)?(s._visibility&=-3,up(i)):yu(i);break;default:yu(i)}}function up(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var u=0;u<s.length;u++){var p=s[u];an=p,B_(p,i)}I_(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Ni(8,s,s.return),up(s);break;case 22:u=s.stateNode,u._visibility&2&&(u._visibility&=-3,up(s));break;default:up(s)}i=i.sibling}}function B_(i,s){for(;an!==null;){var u=an;switch(u.tag){case 0:case 11:case 15:Ni(8,u,s);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var p=u.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:tu(u.memoizedState.cache)}if(p=u.child,p!==null)p.return=u,an=p;else e:for(u=i;an!==null;){p=an;var y=p.sibling,S=p.return;if(__(p),p===u){an=null;break e}if(y!==null){y.return=S,an=y;break e}an=S}}}var Gz={getCacheForType:function(i){var s=dn(zt),u=s.data.get(i);return u===void 0&&(u=i(),s.data.set(i,u)),u},cacheSignal:function(){return dn(zt).controller.signal}},Vz=typeof WeakMap=="function"?WeakMap:Map,lt=0,xt=null,He=null,Qe=0,pt=0,tr=null,Ri=!1,fl=!1,Ty=!1,Ya=0,Dt=0,Mi=0,$o=0,Ny=0,nr=0,pl=0,xu=null,Kn=null,Ry=!1,dp=0,$_=0,fp=1/0,pp=null,Pi=null,Vt=0,Di=null,hl=null,Qa=0,My=0,Py=null,q_=null,bu=0,Dy=null;function rr(){return(lt&2)!==0&&Qe!==0?Qe&-Qe:D.T!==null?qy():ev()}function z_(){if(nr===0)if((Qe&536870912)===0||We){var i=Is;Is<<=1,(Is&3932160)===0&&(Is=262144),nr=i}else nr=536870912;return i=Jn.current,i!==null&&(i.flags|=32),nr}function Hn(i,s,u){(i===xt&&(pt===2||pt===9)||i.cancelPendingCommit!==null)&&(gl(i,0),ki(i,Qe,nr,!1)),Mt(i,u),((lt&2)===0||i!==xt)&&(i===xt&&((lt&2)===0&&($o|=u),Dt===4&&ki(i,Qe,nr,!1)),sa(i))}function U_(i,s,u){if((lt&6)!==0)throw Error(r(327));var p=!u&&(s&127)===0&&(s&i.expiredLanes)===0||_t(i,s),y=p?Xz(i,s):Iy(i,s,!0),S=p;do{if(y===0){fl&&!p&&ki(i,s,0,!1);break}else{if(u=i.current.alternate,S&&!Yz(u)){y=Iy(i,s,!1),S=!1;continue}if(y===2){if(S=s,i.errorRecoveryDisabledLanes&S)var R=0;else R=i.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){s=R;e:{var I=i;y=xu;var G=I.current.memoizedState.isDehydrated;if(G&&(gl(I,R).flags|=256),R=Iy(I,R,!1),R!==2){if(Ty&&!G){I.errorRecoveryDisabledLanes|=S,$o|=S,y=4;break e}S=Kn,Kn=y,S!==null&&(Kn===null?Kn=S:Kn.push.apply(Kn,S))}y=R}if(S=!1,y!==2)continue}}if(y===1){gl(i,0),ki(i,s,0,!0);break}e:{switch(p=i,S=y,S){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:ki(p,s,nr,!Ri);break e;case 2:Kn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(y=dp+300-tn(),10<y)){if(ki(p,s,nr,!Ri),De(p,0,!0)!==0)break e;Qa=s,p.timeoutHandle=xT(F_.bind(null,p,u,Kn,pp,Ry,s,nr,$o,pl,Ri,S,"Throttled",-0,0),y);break e}F_(p,u,Kn,pp,Ry,s,nr,$o,pl,Ri,S,null,-0,0)}}break}while(!0);sa(i)}function F_(i,s,u,p,y,S,R,I,G,ne,le,pe,re,ae){if(i.timeoutHandle=-1,pe=s.subtreeFlags,pe&8192||(pe&16785408)===16785408){pe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Da},k_(s,S,pe);var be=(S&62914560)===S?dp-tn():(S&4194048)===S?$_-tn():0;if(be=MU(pe,be),be!==null){Qa=S,i.cancelPendingCommit=be(W_.bind(null,i,s,S,u,p,y,R,I,G,le,pe,null,re,ae)),ki(i,S,R,!ne);return}}W_(i,s,S,u,p,y,R,I,G)}function Yz(i){for(var s=i;;){var u=s.tag;if((u===0||u===11||u===15)&&s.flags&16384&&(u=s.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var p=0;p<u.length;p++){var y=u[p],S=y.getSnapshot;y=y.value;try{if(!Wn(S(),y))return!1}catch{return!1}}if(u=s.child,s.subtreeFlags&16384&&u!==null)u.return=s,s=u;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ki(i,s,u,p){s&=~Ny,s&=~$o,i.suspendedLanes|=s,i.pingedLanes&=~s,p&&(i.warmLanes|=s),p=i.expirationTimes;for(var y=s;0<y;){var S=31-gn(y),R=1<<S;p[S]=-1,y&=~R}u!==0&&So(i,u,s)}function hp(){return(lt&6)===0?(wu(0),!1):!0}function ky(){if(He!==null){if(pt===0)var i=He.return;else i=He,Ba=No=null,Wv(i),il=null,ru=0,i=He;for(;i!==null;)b_(i.alternate,i),i=i.return;He=null}}function gl(i,s){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,hU(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),Qa=0,ky(),xt=i,He=u=Ia(i.current,null),Qe=s,pt=0,tr=null,Ri=!1,fl=_t(i,s),Ty=!1,pl=nr=Ny=$o=Mi=Dt=0,Kn=xu=null,Ry=!1,(s&8)!==0&&(s|=s&32);var p=i.entangledLanes;if(p!==0)for(i=i.entanglements,p&=s;0<p;){var y=31-gn(p),S=1<<y;s|=i[y],p&=~S}return Ya=s,kf(),u}function K_(i,s){qe=null,D.H=du,s===al||s===Ff?(s=oE(),pt=3):s===$v?(s=oE(),pt=4):pt=s===py?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,tr=s,He===null&&(Dt=1,rp(i,yr(s,i.current)))}function H_(){var i=Jn.current;return i===null?!0:(Qe&4194048)===Qe?Sr===null:(Qe&62914560)===Qe||(Qe&536870912)!==0?i===Sr:!1}function G_(){var i=D.H;return D.H=du,i===null?du:i}function V_(){var i=D.A;return D.A=Gz,i}function gp(){Dt=4,Ri||(Qe&4194048)!==Qe&&Jn.current!==null||(fl=!0),(Mi&134217727)===0&&($o&134217727)===0||xt===null||ki(xt,Qe,nr,!1)}function Iy(i,s,u){var p=lt;lt|=2;var y=G_(),S=V_();(xt!==i||Qe!==s)&&(pp=null,gl(i,s)),s=!1;var R=Dt;e:do try{if(pt!==0&&He!==null){var I=He,G=tr;switch(pt){case 8:ky(),R=6;break e;case 3:case 2:case 9:case 6:Jn.current===null&&(s=!0);var ne=pt;if(pt=0,tr=null,ml(i,I,G,ne),u&&fl){R=0;break e}break;default:ne=pt,pt=0,tr=null,ml(i,I,G,ne)}}Qz(),R=Dt;break}catch(le){K_(i,le)}while(!0);return s&&i.shellSuspendCounter++,Ba=No=null,lt=p,D.H=y,D.A=S,He===null&&(xt=null,Qe=0,kf()),R}function Qz(){for(;He!==null;)Y_(He)}function Xz(i,s){var u=lt;lt|=2;var p=G_(),y=V_();xt!==i||Qe!==s?(pp=null,fp=tn()+500,gl(i,s)):fl=_t(i,s);e:do try{if(pt!==0&&He!==null){s=He;var S=tr;t:switch(pt){case 1:pt=0,tr=null,ml(i,s,S,1);break;case 2:case 9:if(aE(S)){pt=0,tr=null,Q_(s);break}s=function(){pt!==2&&pt!==9||xt!==i||(pt=7),sa(i)},S.then(s,s);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:aE(S)?(pt=0,tr=null,Q_(s)):(pt=0,tr=null,ml(i,s,S,7));break;case 5:var R=null;switch(He.tag){case 26:R=He.memoizedState;case 5:case 27:var I=He;if(R?DT(R):I.stateNode.complete){pt=0,tr=null;var G=I.sibling;if(G!==null)He=G;else{var ne=I.return;ne!==null?(He=ne,mp(ne)):He=null}break t}}pt=0,tr=null,ml(i,s,S,5);break;case 6:pt=0,tr=null,ml(i,s,S,6);break;case 8:ky(),Dt=6;break e;default:throw Error(r(462))}}Wz();break}catch(le){K_(i,le)}while(!0);return Ba=No=null,D.H=p,D.A=y,lt=u,He!==null?0:(xt=null,Qe=0,kf(),Dt)}function Wz(){for(;He!==null&&!Rt();)Y_(He)}function Y_(i){var s=y_(i.alternate,i,Ya);i.memoizedProps=i.pendingProps,s===null?mp(i):He=s}function Q_(i){var s=i,u=s.alternate;switch(s.tag){case 15:case 0:s=f_(u,s,s.pendingProps,s.type,void 0,Qe);break;case 11:s=f_(u,s,s.pendingProps,s.type.render,s.ref,Qe);break;case 5:Wv(s);default:b_(u,s),s=He=Vj(s,Ya),s=y_(u,s,Ya)}i.memoizedProps=i.pendingProps,s===null?mp(i):He=s}function ml(i,s,u,p){Ba=No=null,Wv(s),il=null,ru=0;var y=s.return;try{if($z(i,y,s,u,Qe)){Dt=1,rp(i,yr(u,i.current)),He=null;return}}catch(S){if(y!==null)throw He=y,S;Dt=1,rp(i,yr(u,i.current)),He=null;return}s.flags&32768?(We||p===1?i=!0:fl||(Qe&536870912)!==0?i=!1:(Ri=i=!0,(p===2||p===9||p===3||p===6)&&(p=Jn.current,p!==null&&p.tag===13&&(p.flags|=16384))),X_(s,i)):mp(s)}function mp(i){var s=i;do{if((s.flags&32768)!==0){X_(s,Ri);return}i=s.return;var u=Uz(s.alternate,s,Ya);if(u!==null){He=u;return}if(s=s.sibling,s!==null){He=s;return}He=s=i}while(s!==null);Dt===0&&(Dt=5)}function X_(i,s){do{var u=Fz(i.alternate,i);if(u!==null){u.flags&=32767,He=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!s&&(i=i.sibling,i!==null)){He=i;return}He=i=u}while(i!==null);Dt=6,He=null}function W_(i,s,u,p,y,S,R,I,G){i.cancelPendingCommit=null;do vp();while(Vt!==0);if((lt&6)!==0)throw Error(r(327));if(s!==null){if(s===i.current)throw Error(r(177));if(S=s.lanes|s.childLanes,S|=Ov,In(i,u,S,R,I,G),i===xt&&(He=xt=null,Qe=0),hl=s,Di=i,Qa=u,My=S,Py=y,q_=p,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,tU(xo,function(){return nT(),null})):(i.callbackNode=null,i.callbackPriority=0),p=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||p){p=D.T,D.T=null,y=K.p,K.p=2,R=lt,lt|=4;try{Kz(i,s,u)}finally{lt=R,K.p=y,D.T=p}}Vt=1,Z_(),J_(),eT()}}function Z_(){if(Vt===1){Vt=0;var i=Di,s=hl,u=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||u){u=D.T,D.T=null;var p=K.p;K.p=2;var y=lt;lt|=4;try{M_(s,i);var S=Yy,R=Bj(i.containerInfo),I=S.focusedElem,G=S.selectionRange;if(R!==I&&I&&I.ownerDocument&&Lj(I.ownerDocument.documentElement,I)){if(G!==null&&xv(I)){var ne=G.start,le=G.end;if(le===void 0&&(le=ne),"selectionStart"in I)I.selectionStart=ne,I.selectionEnd=Math.min(le,I.value.length);else{var pe=I.ownerDocument||document,re=pe&&pe.defaultView||window;if(re.getSelection){var ae=re.getSelection(),be=I.textContent.length,Te=Math.min(G.start,be),vt=G.end===void 0?Te:Math.min(G.end,be);!ae.extend&&Te>vt&&(R=vt,vt=Te,Te=R);var J=Ij(I,Te),W=Ij(I,vt);if(J&&W&&(ae.rangeCount!==1||ae.anchorNode!==J.node||ae.anchorOffset!==J.offset||ae.focusNode!==W.node||ae.focusOffset!==W.offset)){var te=pe.createRange();te.setStart(J.node,J.offset),ae.removeAllRanges(),Te>vt?(ae.addRange(te),ae.extend(W.node,W.offset)):(te.setEnd(W.node,W.offset),ae.addRange(te))}}}}for(pe=[],ae=I;ae=ae.parentNode;)ae.nodeType===1&&pe.push({element:ae,left:ae.scrollLeft,top:ae.scrollTop});for(typeof I.focus=="function"&&I.focus(),I=0;I<pe.length;I++){var fe=pe[I];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}Tp=!!Vy,Yy=Vy=null}finally{lt=y,K.p=p,D.T=u}}i.current=s,Vt=2}}function J_(){if(Vt===2){Vt=0;var i=Di,s=hl,u=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||u){u=D.T,D.T=null;var p=K.p;K.p=2;var y=lt;lt|=4;try{E_(i,s.alternate,s)}finally{lt=y,K.p=p,D.T=u}}Vt=3}}function eT(){if(Vt===4||Vt===3){Vt=0,hr();var i=Di,s=hl,u=Qa,p=q_;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?Vt=5:(Vt=0,hl=Di=null,tT(i,i.pendingLanes));var y=i.pendingLanes;if(y===0&&(Pi=null),Br(u),s=s.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(bo,s,void 0,(s.current.flags&128)===128)}catch{}if(p!==null){s=D.T,y=K.p,K.p=2,D.T=null;try{for(var S=i.onRecoverableError,R=0;R<p.length;R++){var I=p[R];S(I.value,{componentStack:I.stack})}}finally{D.T=s,K.p=y}}(Qa&3)!==0&&vp(),sa(i),y=i.pendingLanes,(u&261930)!==0&&(y&42)!==0?i===Dy?bu++:(bu=0,Dy=i):bu=0,wu(0)}}function tT(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,tu(s)))}function vp(){return Z_(),J_(),eT(),nT()}function nT(){if(Vt!==5)return!1;var i=Di,s=My;My=0;var u=Br(Qa),p=D.T,y=K.p;try{K.p=32>u?32:u,D.T=null,u=Py,Py=null;var S=Di,R=Qa;if(Vt=0,hl=Di=null,Qa=0,(lt&6)!==0)throw Error(r(331));var I=lt;if(lt|=4,L_(S.current),D_(S,S.current,R,u),lt=I,wu(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(bo,S)}catch{}return!0}finally{K.p=y,D.T=p,tT(i,s)}}function rT(i,s,u){s=yr(u,s),s=fy(i.stateNode,s,2),i=Ei(i,s,2),i!==null&&(Mt(i,2),sa(i))}function ht(i,s,u){if(i.tag===3)rT(i,i,u);else for(;s!==null;){if(s.tag===3){rT(s,i,u);break}else if(s.tag===1){var p=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(Pi===null||!Pi.has(p))){i=yr(u,i),u=a_(2),p=Ei(s,u,2),p!==null&&(i_(u,p,s,i),Mt(p,2),sa(p));break}}s=s.return}}function Ly(i,s,u){var p=i.pingCache;if(p===null){p=i.pingCache=new Vz;var y=new Set;p.set(s,y)}else y=p.get(s),y===void 0&&(y=new Set,p.set(s,y));y.has(u)||(Ty=!0,y.add(u),i=Zz.bind(null,i,s,u),s.then(i,i))}function Zz(i,s,u){var p=i.pingCache;p!==null&&p.delete(s),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,xt===i&&(Qe&u)===u&&(Dt===4||Dt===3&&(Qe&62914560)===Qe&&300>tn()-dp?(lt&2)===0&&gl(i,0):Ny|=u,pl===Qe&&(pl=0)),sa(i)}function aT(i,s){s===0&&(s=mn()),i=Eo(i,s),i!==null&&(Mt(i,s),sa(i))}function Jz(i){var s=i.memoizedState,u=0;s!==null&&(u=s.retryLane),aT(i,u)}function eU(i,s){var u=0;switch(i.tag){case 31:case 13:var p=i.stateNode,y=i.memoizedState;y!==null&&(u=y.retryLane);break;case 19:p=i.stateNode;break;case 22:p=i.stateNode._retryCache;break;default:throw Error(r(314))}p!==null&&p.delete(s),aT(i,u)}function tU(i,s){return ta(i,s)}var yp=null,vl=null,By=!1,xp=!1,$y=!1,Ii=0;function sa(i){i!==vl&&i.next===null&&(vl===null?yp=vl=i:vl=vl.next=i),xp=!0,By||(By=!0,rU())}function wu(i,s){if(!$y&&xp){$y=!0;do for(var u=!1,p=yp;p!==null;){if(i!==0){var y=p.pendingLanes;if(y===0)var S=0;else{var R=p.suspendedLanes,I=p.pingedLanes;S=(1<<31-gn(42|i)+1)-1,S&=y&~(R&~I),S=S&201326741?S&201326741|1:S?S|2:0}S!==0&&(u=!0,lT(p,S))}else S=Qe,S=De(p,p===xt?S:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(S&3)===0||_t(p,S)||(u=!0,lT(p,S));p=p.next}while(u);$y=!1}}function nU(){iT()}function iT(){xp=By=!1;var i=0;Ii!==0&&pU()&&(i=Ii);for(var s=tn(),u=null,p=yp;p!==null;){var y=p.next,S=oT(p,s);S===0?(p.next=null,u===null?yp=y:u.next=y,y===null&&(vl=u)):(u=p,(i!==0||(S&3)!==0)&&(xp=!0)),p=y}Vt!==0&&Vt!==5||wu(i),Ii!==0&&(Ii=0)}function oT(i,s){for(var u=i.suspendedLanes,p=i.pingedLanes,y=i.expirationTimes,S=i.pendingLanes&-62914561;0<S;){var R=31-gn(S),I=1<<R,G=y[R];G===-1?((I&u)===0||(I&p)!==0)&&(y[R]=nn(I,s)):G<=s&&(i.expiredLanes|=I),S&=~I}if(s=xt,u=Qe,u=De(i,i===s?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p=i.callbackNode,u===0||i===s&&(pt===2||pt===9)||i.cancelPendingCommit!==null)return p!==null&&p!==null&&Xn(p),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||_t(i,u)){if(s=u&-u,s===i.callbackPriority)return s;switch(p!==null&&Xn(p),Br(u)){case 2:case 8:u=Sf;break;case 32:u=xo;break;case 268435456:u=Ma;break;default:u=xo}return p=sT.bind(null,i),u=ta(u,p),i.callbackPriority=s,i.callbackNode=u,s}return p!==null&&p!==null&&Xn(p),i.callbackPriority=2,i.callbackNode=null,2}function sT(i,s){if(Vt!==0&&Vt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(vp()&&i.callbackNode!==u)return null;var p=Qe;return p=De(i,i===xt?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),p===0?null:(U_(i,p,s),oT(i,tn()),i.callbackNode!=null&&i.callbackNode===u?sT.bind(null,i):null)}function lT(i,s){if(vp())return null;U_(i,s,!0)}function rU(){gU(function(){(lt&6)!==0?ta(yo,nU):iT()})}function qy(){if(Ii===0){var i=nl;i===0&&(i=ks,ks<<=1,(ks&261888)===0&&(ks=256)),Ii=i}return Ii}function cT(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Ef(""+i)}function uT(i,s){var u=s.ownerDocument.createElement("input");return u.name=s.name,u.value=s.value,i.id&&u.setAttribute("form",i.id),s.parentNode.insertBefore(u,s),i=new FormData(i),u.parentNode.removeChild(u),i}function aU(i,s,u,p,y){if(s==="submit"&&u&&u.stateNode===y){var S=cT((y[$n]||null).action),R=p.submitter;R&&(s=(s=R[$n]||null)?cT(s.formAction):R.getAttribute("formAction"),s!==null&&(S=s,R=null));var I=new Rf("action","action",null,p,y);i.push({event:I,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(Ii!==0){var G=R?uT(y,R):new FormData(y);oy(u,{pending:!0,data:G,method:y.method,action:S},null,G)}}else typeof S=="function"&&(I.preventDefault(),G=R?uT(y,R):new FormData(y),oy(u,{pending:!0,data:G,method:y.method,action:S},S,G))},currentTarget:y}]})}}for(var zy=0;zy<Av.length;zy++){var Uy=Av[zy],iU=Uy.toLowerCase(),oU=Uy[0].toUpperCase()+Uy.slice(1);$r(iU,"on"+oU)}$r(zj,"onAnimationEnd"),$r(Uj,"onAnimationIteration"),$r(Fj,"onAnimationStart"),$r("dblclick","onDoubleClick"),$r("focusin","onFocus"),$r("focusout","onBlur"),$r(Sz,"onTransitionRun"),$r(Az,"onTransitionStart"),$r(Oz,"onTransitionCancel"),$r(Kj,"onTransitionEnd"),Us("onMouseEnter",["mouseout","mouseover"]),Us("onMouseLeave",["mouseout","mouseover"]),Us("onPointerEnter",["pointerout","pointerover"]),Us("onPointerLeave",["pointerout","pointerover"]),Ao("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ao("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ao("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ao("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ao("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ao("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="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(" "),sU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function dT(i,s){s=(s&4)!==0;for(var u=0;u<i.length;u++){var p=i[u],y=p.event;p=p.listeners;e:{var S=void 0;if(s)for(var R=p.length-1;0<=R;R--){var I=p[R],G=I.instance,ne=I.currentTarget;if(I=I.listener,G!==S&&y.isPropagationStopped())break e;S=I,y.currentTarget=ne;try{S(y)}catch(le){Df(le)}y.currentTarget=null,S=G}else for(R=0;R<p.length;R++){if(I=p[R],G=I.instance,ne=I.currentTarget,I=I.listener,G!==S&&y.isPropagationStopped())break e;S=I,y.currentTarget=ne;try{S(y)}catch(le){Df(le)}y.currentTarget=null,S=G}}}}function Ge(i,s){var u=s[tv];u===void 0&&(u=s[tv]=new Set);var p=i+"__bubble";u.has(p)||(fT(s,i,2,!1),u.add(p))}function Fy(i,s,u){var p=0;s&&(p|=4),fT(u,i,p,s)}var bp="_reactListening"+Math.random().toString(36).slice(2);function Ky(i){if(!i[bp]){i[bp]=!0,ij.forEach(function(u){u!=="selectionchange"&&(sU.has(u)||Fy(u,!1,i),Fy(u,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[bp]||(s[bp]=!0,Fy("selectionchange",!1,s))}}function fT(i,s,u,p){switch(zT(s)){case 2:var y=kU;break;case 8:y=IU;break;default:y=ix}u=y.bind(null,s,u,i),y=void 0,!uv||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(y=!0),p?y!==void 0?i.addEventListener(s,u,{capture:!0,passive:y}):i.addEventListener(s,u,!0):y!==void 0?i.addEventListener(s,u,{passive:y}):i.addEventListener(s,u,!1)}function Hy(i,s,u,p,y){var S=p;if((s&1)===0&&(s&2)===0&&p!==null)e:for(;;){if(p===null)return;var R=p.tag;if(R===3||R===4){var I=p.stateNode.containerInfo;if(I===y)break;if(R===4)for(R=p.return;R!==null;){var G=R.tag;if((G===3||G===4)&&R.stateNode.containerInfo===y)return;R=R.return}for(;I!==null;){if(R=$s(I),R===null)return;if(G=R.tag,G===5||G===6||G===26||G===27){p=S=R;continue e}I=I.parentNode}}p=p.return}vj(function(){var ne=S,le=lv(u),pe=[];e:{var re=Hj.get(i);if(re!==void 0){var ae=Rf,be=i;switch(i){case"keypress":if(Tf(u)===0)break e;case"keydown":case"keyup":ae=ez;break;case"focusin":be="focus",ae=hv;break;case"focusout":be="blur",ae=hv;break;case"beforeblur":case"afterblur":ae=hv;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ae=bj;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=Uq;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=rz;break;case zj:case Uj:case Fj:ae=Hq;break;case Kj:ae=iz;break;case"scroll":case"scrollend":ae=qq;break;case"wheel":ae=sz;break;case"copy":case"cut":case"paste":ae=Vq;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=Sj;break;case"toggle":case"beforetoggle":ae=cz}var Te=(s&4)!==0,vt=!Te&&(i==="scroll"||i==="scrollend"),J=Te?re!==null?re+"Capture":null:re;Te=[];for(var W=ne,te;W!==null;){var fe=W;if(te=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||te===null||J===null||(fe=Kc(W,J),fe!=null&&Te.push(Au(W,fe,te))),vt)break;W=W.return}0<Te.length&&(re=new ae(re,be,null,u,le),pe.push({event:re,listeners:Te}))}}if((s&7)===0){e:{if(re=i==="mouseover"||i==="pointerover",ae=i==="mouseout"||i==="pointerout",re&&u!==sv&&(be=u.relatedTarget||u.fromElement)&&($s(be)||be[Bs]))break e;if((ae||re)&&(re=le.window===le?le:(re=le.ownerDocument)?re.defaultView||re.parentWindow:window,ae?(be=u.relatedTarget||u.toElement,ae=ne,be=be?$s(be):null,be!==null&&(vt=o(be),Te=be.tag,be!==vt||Te!==5&&Te!==27&&Te!==6)&&(be=null)):(ae=null,be=ne),ae!==be)){if(Te=bj,fe="onMouseLeave",J="onMouseEnter",W="mouse",(i==="pointerout"||i==="pointerover")&&(Te=Sj,fe="onPointerLeave",J="onPointerEnter",W="pointer"),vt=ae==null?re:Fc(ae),te=be==null?re:Fc(be),re=new Te(fe,W+"leave",ae,u,le),re.target=vt,re.relatedTarget=te,fe=null,$s(le)===ne&&(Te=new Te(J,W+"enter",be,u,le),Te.target=te,Te.relatedTarget=vt,fe=Te),vt=fe,ae&&be)t:{for(Te=lU,J=ae,W=be,te=0,fe=J;fe;fe=Te(fe))te++;fe=0;for(var je=W;je;je=Te(je))fe++;for(;0<te-fe;)J=Te(J),te--;for(;0<fe-te;)W=Te(W),fe--;for(;te--;){if(J===W||W!==null&&J===W.alternate){Te=J;break t}J=Te(J),W=Te(W)}Te=null}else Te=null;ae!==null&&pT(pe,re,ae,Te,!1),be!==null&&vt!==null&&pT(pe,vt,be,Te,!0)}}e:{if(re=ne?Fc(ne):window,ae=re.nodeName&&re.nodeName.toLowerCase(),ae==="select"||ae==="input"&&re.type==="file")var rt=Nj;else if(_j(re))if(Rj)rt=xz;else{rt=vz;var Oe=mz}else ae=re.nodeName,!ae||ae.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?ne&&ov(ne.elementType)&&(rt=Nj):rt=yz;if(rt&&(rt=rt(i,ne))){Tj(pe,rt,u,le);break e}Oe&&Oe(i,re,ne),i==="focusout"&&ne&&re.type==="number"&&ne.memoizedProps.value!=null&&iv(re,"number",re.value)}switch(Oe=ne?Fc(ne):window,i){case"focusin":(_j(Oe)||Oe.contentEditable==="true")&&(Ys=Oe,bv=ne,Zc=null);break;case"focusout":Zc=bv=Ys=null;break;case"mousedown":wv=!0;break;case"contextmenu":case"mouseup":case"dragend":wv=!1,$j(pe,u,le);break;case"selectionchange":if(wz)break;case"keydown":case"keyup":$j(pe,u,le)}var ze;if(mv)e:{switch(i){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else Vs?jj(i,u)&&(Xe="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Xe="onCompositionStart");Xe&&(Aj&&u.locale!=="ko"&&(Vs||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Vs&&(ze=yj()):(bi=le,dv="value"in bi?bi.value:bi.textContent,Vs=!0)),Oe=wp(ne,Xe),0<Oe.length&&(Xe=new wj(Xe,i,null,u,le),pe.push({event:Xe,listeners:Oe}),ze?Xe.data=ze:(ze=Ej(u),ze!==null&&(Xe.data=ze)))),(ze=dz?fz(i,u):pz(i,u))&&(Xe=wp(ne,"onBeforeInput"),0<Xe.length&&(Oe=new wj("onBeforeInput","beforeinput",null,u,le),pe.push({event:Oe,listeners:Xe}),Oe.data=ze)),aU(pe,i,ne,u,le)}dT(pe,s)})}function Au(i,s,u){return{instance:i,listener:s,currentTarget:u}}function wp(i,s){for(var u=s+"Capture",p=[];i!==null;){var y=i,S=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||S===null||(y=Kc(i,u),y!=null&&p.unshift(Au(i,y,S)),y=Kc(i,s),y!=null&&p.push(Au(i,y,S))),i.tag===3)return p;i=i.return}return[]}function lU(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function pT(i,s,u,p,y){for(var S=s._reactName,R=[];u!==null&&u!==p;){var I=u,G=I.alternate,ne=I.stateNode;if(I=I.tag,G!==null&&G===p)break;I!==5&&I!==26&&I!==27||ne===null||(G=ne,y?(ne=Kc(u,S),ne!=null&&R.unshift(Au(u,ne,G))):y||(ne=Kc(u,S),ne!=null&&R.push(Au(u,ne,G)))),u=u.return}R.length!==0&&i.push({event:s,listeners:R})}var cU=/\r\n?/g,uU=/\u0000|\uFFFD/g;function hT(i){return(typeof i=="string"?i:""+i).replace(cU,`
|
||
`).replace(uU,"")}function gT(i,s){return s=hT(s),hT(i)===s}function mt(i,s,u,p,y,S){switch(u){case"children":typeof p=="string"?s==="body"||s==="textarea"&&p===""||Ks(i,p):(typeof p=="number"||typeof p=="bigint")&&s!=="body"&&Ks(i,""+p);break;case"className":Cf(i,"class",p);break;case"tabIndex":Cf(i,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":Cf(i,u,p);break;case"style":gj(i,p,S);break;case"data":if(s!=="object"){Cf(i,"data",p);break}case"src":case"href":if(p===""&&(s!=="a"||u!=="href")){i.removeAttribute(u);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=Ef(""+p),i.setAttribute(u,p);break;case"action":case"formAction":if(typeof p=="function"){i.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof S=="function"&&(u==="formAction"?(s!=="input"&&mt(i,s,"name",y.name,y,null),mt(i,s,"formEncType",y.formEncType,y,null),mt(i,s,"formMethod",y.formMethod,y,null),mt(i,s,"formTarget",y.formTarget,y,null)):(mt(i,s,"encType",y.encType,y,null),mt(i,s,"method",y.method,y,null),mt(i,s,"target",y.target,y,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){i.removeAttribute(u);break}p=Ef(""+p),i.setAttribute(u,p);break;case"onClick":p!=null&&(i.onclick=Da);break;case"onScroll":p!=null&&Ge("scroll",i);break;case"onScrollEnd":p!=null&&Ge("scrollend",i);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":i.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){i.removeAttribute("xlink:href");break}u=Ef(""+p),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""+p):i.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":p===!0?i.setAttribute(u,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?i.setAttribute(u,p):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?i.setAttribute(u,p):i.removeAttribute(u);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?i.removeAttribute(u):i.setAttribute(u,p);break;case"popover":Ge("beforetoggle",i),Ge("toggle",i),Of(i,"popover",p);break;case"xlinkActuate":Pa(i,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":Pa(i,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":Pa(i,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":Pa(i,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":Pa(i,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":Pa(i,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":Pa(i,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":Pa(i,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":Pa(i,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Of(i,"is",p);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=Bq.get(u)||u,Of(i,u,p))}}function Gy(i,s,u,p,y,S){switch(u){case"style":gj(i,p,S);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(r(61));if(u=p.__html,u!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof p=="string"?Ks(i,p):(typeof p=="number"||typeof p=="bigint")&&Ks(i,""+p);break;case"onScroll":p!=null&&Ge("scroll",i);break;case"onScrollEnd":p!=null&&Ge("scrollend",i);break;case"onClick":p!=null&&(i.onclick=Da);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!oj.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),s=u.slice(2,y?u.length-7:void 0),S=i[$n]||null,S=S!=null?S[u]:null,typeof S=="function"&&i.removeEventListener(s,S,y),typeof p=="function")){typeof S!="function"&&S!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(s,p,y);break e}u in i?i[u]=p:p===!0?i.setAttribute(u,""):Of(i,u,p)}}}function pn(i,s,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",i),Ge("load",i);var p=!1,y=!1,S;for(S in u)if(u.hasOwnProperty(S)){var R=u[S];if(R!=null)switch(S){case"src":p=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,S,R,u,null)}}y&&mt(i,s,"srcSet",u.srcSet,u,null),p&&mt(i,s,"src",u.src,u,null);return;case"input":Ge("invalid",i);var I=S=R=y=null,G=null,ne=null;for(p in u)if(u.hasOwnProperty(p)){var le=u[p];if(le!=null)switch(p){case"name":y=le;break;case"type":R=le;break;case"checked":G=le;break;case"defaultChecked":ne=le;break;case"value":S=le;break;case"defaultValue":I=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,s));break;default:mt(i,s,p,le,u,null)}}dj(i,S,I,G,ne,R,y,!1);return;case"select":Ge("invalid",i),p=R=S=null;for(y in u)if(u.hasOwnProperty(y)&&(I=u[y],I!=null))switch(y){case"value":S=I;break;case"defaultValue":R=I;break;case"multiple":p=I;default:mt(i,s,y,I,u,null)}s=S,u=R,i.multiple=!!p,s!=null?Fs(i,!!p,s,!1):u!=null&&Fs(i,!!p,u,!0);return;case"textarea":Ge("invalid",i),S=y=p=null;for(R in u)if(u.hasOwnProperty(R)&&(I=u[R],I!=null))switch(R){case"value":p=I;break;case"defaultValue":y=I;break;case"children":S=I;break;case"dangerouslySetInnerHTML":if(I!=null)throw Error(r(91));break;default:mt(i,s,R,I,u,null)}pj(i,p,y,S);return;case"option":for(G in u)if(u.hasOwnProperty(G)&&(p=u[G],p!=null))switch(G){case"selected":i.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:mt(i,s,G,p,u,null)}return;case"dialog":Ge("beforetoggle",i),Ge("toggle",i),Ge("cancel",i),Ge("close",i);break;case"iframe":case"object":Ge("load",i);break;case"video":case"audio":for(p=0;p<Su.length;p++)Ge(Su[p],i);break;case"image":Ge("error",i),Ge("load",i);break;case"details":Ge("toggle",i);break;case"embed":case"source":case"link":Ge("error",i),Ge("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in u)if(u.hasOwnProperty(ne)&&(p=u[ne],p!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,ne,p,u,null)}return;default:if(ov(s)){for(le in u)u.hasOwnProperty(le)&&(p=u[le],p!==void 0&&Gy(i,s,le,p,u,void 0));return}}for(I in u)u.hasOwnProperty(I)&&(p=u[I],p!=null&&mt(i,s,I,p,u,null))}function dU(i,s,u,p){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,S=null,R=null,I=null,G=null,ne=null,le=null;for(ae in u){var pe=u[ae];if(u.hasOwnProperty(ae)&&pe!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":G=pe;default:p.hasOwnProperty(ae)||mt(i,s,ae,null,p,pe)}}for(var re in p){var ae=p[re];if(pe=u[re],p.hasOwnProperty(re)&&(ae!=null||pe!=null))switch(re){case"type":S=ae;break;case"name":y=ae;break;case"checked":ne=ae;break;case"defaultChecked":le=ae;break;case"value":R=ae;break;case"defaultValue":I=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:ae!==pe&&mt(i,s,re,ae,p,pe)}}av(i,R,I,G,ne,le,S,y);return;case"select":ae=R=I=re=null;for(S in u)if(G=u[S],u.hasOwnProperty(S)&&G!=null)switch(S){case"value":break;case"multiple":ae=G;default:p.hasOwnProperty(S)||mt(i,s,S,null,p,G)}for(y in p)if(S=p[y],G=u[y],p.hasOwnProperty(y)&&(S!=null||G!=null))switch(y){case"value":re=S;break;case"defaultValue":I=S;break;case"multiple":R=S;default:S!==G&&mt(i,s,y,S,p,G)}s=I,u=R,p=ae,re!=null?Fs(i,!!u,re,!1):!!p!=!!u&&(s!=null?Fs(i,!!u,s,!0):Fs(i,!!u,u?[]:"",!1));return;case"textarea":ae=re=null;for(I in u)if(y=u[I],u.hasOwnProperty(I)&&y!=null&&!p.hasOwnProperty(I))switch(I){case"value":break;case"children":break;default:mt(i,s,I,null,p,y)}for(R in p)if(y=p[R],S=u[R],p.hasOwnProperty(R)&&(y!=null||S!=null))switch(R){case"value":re=y;break;case"defaultValue":ae=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==S&&mt(i,s,R,y,p,S)}fj(i,re,ae);return;case"option":for(var be in u)if(re=u[be],u.hasOwnProperty(be)&&re!=null&&!p.hasOwnProperty(be))switch(be){case"selected":i.selected=!1;break;default:mt(i,s,be,null,p,re)}for(G in p)if(re=p[G],ae=u[G],p.hasOwnProperty(G)&&re!==ae&&(re!=null||ae!=null))switch(G){case"selected":i.selected=re&&typeof re!="function"&&typeof re!="symbol";break;default:mt(i,s,G,re,p,ae)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Te in u)re=u[Te],u.hasOwnProperty(Te)&&re!=null&&!p.hasOwnProperty(Te)&&mt(i,s,Te,null,p,re);for(ne in p)if(re=p[ne],ae=u[ne],p.hasOwnProperty(ne)&&re!==ae&&(re!=null||ae!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,s));break;default:mt(i,s,ne,re,p,ae)}return;default:if(ov(s)){for(var vt in u)re=u[vt],u.hasOwnProperty(vt)&&re!==void 0&&!p.hasOwnProperty(vt)&&Gy(i,s,vt,void 0,p,re);for(le in p)re=p[le],ae=u[le],!p.hasOwnProperty(le)||re===ae||re===void 0&&ae===void 0||Gy(i,s,le,re,p,ae);return}}for(var J in u)re=u[J],u.hasOwnProperty(J)&&re!=null&&!p.hasOwnProperty(J)&&mt(i,s,J,null,p,re);for(pe in p)re=p[pe],ae=u[pe],!p.hasOwnProperty(pe)||re===ae||re==null&&ae==null||mt(i,s,pe,re,p,ae)}function mT(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fU(){if(typeof performance.getEntriesByType=="function"){for(var i=0,s=0,u=performance.getEntriesByType("resource"),p=0;p<u.length;p++){var y=u[p],S=y.transferSize,R=y.initiatorType,I=y.duration;if(S&&I&&mT(R)){for(R=0,I=y.responseEnd,p+=1;p<u.length;p++){var G=u[p],ne=G.startTime;if(ne>I)break;var le=G.transferSize,pe=G.initiatorType;le&&mT(pe)&&(G=G.responseEnd,R+=le*(G<I?1:(I-ne)/(G-ne)))}if(--p,s+=8*(S+R)/(y.duration/1e3),i++,10<i)break}}if(0<i)return s/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Vy=null,Yy=null;function Sp(i){return i.nodeType===9?i:i.ownerDocument}function vT(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yT(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function Qy(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Xy=null;function pU(){var i=window.event;return i&&i.type==="popstate"?i===Xy?!1:(Xy=i,!0):(Xy=null,!1)}var xT=typeof setTimeout=="function"?setTimeout:void 0,hU=typeof clearTimeout=="function"?clearTimeout:void 0,bT=typeof Promise=="function"?Promise:void 0,gU=typeof queueMicrotask=="function"?queueMicrotask:typeof bT<"u"?function(i){return bT.resolve(null).then(i).catch(mU)}:xT;function mU(i){setTimeout(function(){throw i})}function Li(i){return i==="head"}function wT(i,s){var u=s,p=0;do{var y=u.nextSibling;if(i.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(p===0){i.removeChild(y),wl(s);return}p--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")p++;else if(u==="html")Ou(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,Ou(u);for(var S=u.firstChild;S;){var R=S.nextSibling,I=S.nodeName;S[Uc]||I==="SCRIPT"||I==="STYLE"||I==="LINK"&&S.rel.toLowerCase()==="stylesheet"||u.removeChild(S),S=R}}else u==="body"&&Ou(i.ownerDocument.body);u=y}while(u);wl(s)}function ST(i,s){var u=i;i=0;do{var p=u.nextSibling;if(u.nodeType===1?s?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(s?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),p&&p.nodeType===8)if(u=p.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=p}while(u)}function Wy(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var u=s;switch(s=s.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Wy(u),nv(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function vU(i,s,u,p){for(;i.nodeType===1;){var y=u;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!p&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(p){if(!i[Uc])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(S=i.getAttribute("rel"),S==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(S!==y.rel||i.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||i.getAttribute("title")!==(y.title==null?null:y.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(S=i.getAttribute("src"),(S!==(y.src==null?null:y.src)||i.getAttribute("type")!==(y.type==null?null:y.type)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&S&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var S=y.name==null?null:""+y.name;if(y.type==="hidden"&&i.getAttribute("name")===S)return i}else return i;if(i=Ar(i.nextSibling),i===null)break}return null}function yU(i,s,u){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=Ar(i.nextSibling),i===null))return null;return i}function AT(i,s){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!s||(i=Ar(i.nextSibling),i===null))return null;return i}function Zy(i){return i.data==="$?"||i.data==="$~"}function Jy(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function xU(i,s){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=s;else if(i.data!=="$?"||u.readyState!=="loading")s();else{var p=function(){s(),u.removeEventListener("DOMContentLoaded",p)};u.addEventListener("DOMContentLoaded",p),i._reactRetry=p}}function Ar(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return i}var ex=null;function OT(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(s===0)return Ar(i.nextSibling);s--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||s++}i=i.nextSibling}return null}function CT(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(s===0)return i;s--}else u!=="/$"&&u!=="/&"||s++}i=i.previousSibling}return null}function jT(i,s,u){switch(s=Sp(u),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Ou(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);nv(i)}var Or=new Map,ET=new Set;function Ap(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Xa=K.d;K.d={f:bU,r:wU,D:SU,C:AU,L:OU,m:CU,X:EU,S:jU,M:_U};function bU(){var i=Xa.f(),s=hp();return i||s}function wU(i){var s=qs(i);s!==null&&s.tag===5&&s.type==="form"?KE(s):Xa.r(i)}var yl=typeof document>"u"?null:document;function _T(i,s,u){var p=yl;if(p&&typeof s=="string"&&s){var y=mr(s);y='link[rel="'+i+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),ET.has(y)||(ET.add(y),i={rel:i,crossOrigin:u,href:s},p.querySelector(y)===null&&(s=p.createElement("link"),pn(s,"link",i),rn(s),p.head.appendChild(s)))}}function SU(i){Xa.D(i),_T("dns-prefetch",i,null)}function AU(i,s){Xa.C(i,s),_T("preconnect",i,s)}function OU(i,s,u){Xa.L(i,s,u);var p=yl;if(p&&i&&s){var y='link[rel="preload"][as="'+mr(s)+'"]';s==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+mr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+mr(u.imageSizes)+'"]')):y+='[href="'+mr(i)+'"]';var S=y;switch(s){case"style":S=xl(i);break;case"script":S=bl(i)}Or.has(S)||(i=g({rel:"preload",href:s==="image"&&u&&u.imageSrcSet?void 0:i,as:s},u),Or.set(S,i),p.querySelector(y)!==null||s==="style"&&p.querySelector(Cu(S))||s==="script"&&p.querySelector(ju(S))||(s=p.createElement("link"),pn(s,"link",i),rn(s),p.head.appendChild(s)))}}function CU(i,s){Xa.m(i,s);var u=yl;if(u&&i){var p=s&&typeof s.as=="string"?s.as:"script",y='link[rel="modulepreload"][as="'+mr(p)+'"][href="'+mr(i)+'"]',S=y;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=bl(i)}if(!Or.has(S)&&(i=g({rel:"modulepreload",href:i},s),Or.set(S,i),u.querySelector(y)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ju(S)))return}p=u.createElement("link"),pn(p,"link",i),rn(p),u.head.appendChild(p)}}}function jU(i,s,u){Xa.S(i,s,u);var p=yl;if(p&&i){var y=zs(p).hoistableStyles,S=xl(i);s=s||"default";var R=y.get(S);if(!R){var I={loading:0,preload:null};if(R=p.querySelector(Cu(S)))I.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":s},u),(u=Or.get(S))&&tx(i,u);var G=R=p.createElement("link");rn(G),pn(G,"link",i),G._p=new Promise(function(ne,le){G.onload=ne,G.onerror=le}),G.addEventListener("load",function(){I.loading|=1}),G.addEventListener("error",function(){I.loading|=2}),I.loading|=4,Op(R,s,p)}R={type:"stylesheet",instance:R,count:1,state:I},y.set(S,R)}}}function EU(i,s){Xa.X(i,s);var u=yl;if(u&&i){var p=zs(u).hoistableScripts,y=bl(i),S=p.get(y);S||(S=u.querySelector(ju(y)),S||(i=g({src:i,async:!0},s),(s=Or.get(y))&&nx(i,s),S=u.createElement("script"),rn(S),pn(S,"link",i),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(y,S))}}function _U(i,s){Xa.M(i,s);var u=yl;if(u&&i){var p=zs(u).hoistableScripts,y=bl(i),S=p.get(y);S||(S=u.querySelector(ju(y)),S||(i=g({src:i,async:!0,type:"module"},s),(s=Or.get(y))&&nx(i,s),S=u.createElement("script"),rn(S),pn(S,"link",i),u.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},p.set(y,S))}}function TT(i,s,u,p){var y=(y=me.current)?Ap(y):null;if(!y)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(s=xl(u.href),u=zs(y).hoistableStyles,p=u.get(s),p||(p={type:"style",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=xl(u.href);var S=zs(y).hoistableStyles,R=S.get(i);if(R||(y=y.ownerDocument||y,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(i,R),(S=y.querySelector(Cu(i)))&&!S._p&&(R.instance=S,R.state.loading=5),Or.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},Or.set(i,u),S||TU(y,i,u,R.state))),s&&p===null)throw Error(r(528,""));return R}if(s&&p!==null)throw Error(r(529,""));return null;case"script":return s=u.async,u=u.src,typeof u=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=bl(u),u=zs(y).hoistableScripts,p=u.get(s),p||(p={type:"script",instance:null,count:0,state:null},u.set(s,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function xl(i){return'href="'+mr(i)+'"'}function Cu(i){return'link[rel="stylesheet"]['+i+"]"}function NT(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function TU(i,s,u,p){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?p.loading=1:(s=i.createElement("link"),p.preload=s,s.addEventListener("load",function(){return p.loading|=1}),s.addEventListener("error",function(){return p.loading|=2}),pn(s,"link",u),rn(s),i.head.appendChild(s))}function bl(i){return'[src="'+mr(i)+'"]'}function ju(i){return"script[async]"+i}function RT(i,s,u){if(s.count++,s.instance===null)switch(s.type){case"style":var p=i.querySelector('style[data-href~="'+mr(u.href)+'"]');if(p)return s.instance=p,rn(p),p;var y=g({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return p=(i.ownerDocument||i).createElement("style"),rn(p),pn(p,"style",y),Op(p,u.precedence,i),s.instance=p;case"stylesheet":y=xl(u.href);var S=i.querySelector(Cu(y));if(S)return s.state.loading|=4,s.instance=S,rn(S),S;p=NT(u),(y=Or.get(y))&&tx(p,y),S=(i.ownerDocument||i).createElement("link"),rn(S);var R=S;return R._p=new Promise(function(I,G){R.onload=I,R.onerror=G}),pn(S,"link",p),s.state.loading|=4,Op(S,u.precedence,i),s.instance=S;case"script":return S=bl(u.src),(y=i.querySelector(ju(S)))?(s.instance=y,rn(y),y):(p=u,(y=Or.get(S))&&(p=g({},u),nx(p,y)),i=i.ownerDocument||i,y=i.createElement("script"),rn(y),pn(y,"link",p),i.head.appendChild(y),s.instance=y);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(p=s.instance,s.state.loading|=4,Op(p,u.precedence,i));return s.instance}function Op(i,s,u){for(var p=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=p.length?p[p.length-1]:null,S=y,R=0;R<p.length;R++){var I=p[R];if(I.dataset.precedence===s)S=I;else if(S!==y)break}S?S.parentNode.insertBefore(i,S.nextSibling):(s=u.nodeType===9?u.head:u,s.insertBefore(i,s.firstChild))}function tx(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function nx(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var Cp=null;function MT(i,s,u){if(Cp===null){var p=new Map,y=Cp=new Map;y.set(u,p)}else y=Cp,p=y.get(u),p||(p=new Map,y.set(u,p));if(p.has(i))return p;for(p.set(i,null),u=u.getElementsByTagName(i),y=0;y<u.length;y++){var S=u[y];if(!(S[Uc]||S[cn]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var R=S.getAttribute(s)||"";R=i+R;var I=p.get(R);I?I.push(S):p.set(R,[S])}}return p}function PT(i,s,u){i=i.ownerDocument||i,i.head.insertBefore(u,s==="title"?i.querySelector("head > title"):null)}function NU(i,s,u){if(u===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function DT(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function RU(i,s,u,p){if(u.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var y=xl(p.href),S=s.querySelector(Cu(y));if(S){s=S._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(i.count++,i=jp.bind(i),s.then(i,i)),u.state.loading|=4,u.instance=S,rn(S);return}S=s.ownerDocument||s,p=NT(p),(y=Or.get(y))&&tx(p,y),S=S.createElement("link"),rn(S);var R=S;R._p=new Promise(function(I,G){R.onload=I,R.onerror=G}),pn(S,"link",p),u.instance=S}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,s),(s=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=jp.bind(i),s.addEventListener("load",u),s.addEventListener("error",u))}}var rx=0;function MU(i,s){return i.stylesheets&&i.count===0&&_p(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var p=setTimeout(function(){if(i.stylesheets&&_p(i,i.stylesheets),i.unsuspend){var S=i.unsuspend;i.unsuspend=null,S()}},6e4+s);0<i.imgBytes&&rx===0&&(rx=62500*fU());var y=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&_p(i,i.stylesheets),i.unsuspend)){var S=i.unsuspend;i.unsuspend=null,S()}},(i.imgBytes>rx?50:800)+s);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(p),clearTimeout(y)}}:null}function jp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_p(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var Ep=null;function _p(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Ep=new Map,s.forEach(PU,i),Ep=null,jp.call(i))}function PU(i,s){if(!(s.state.loading&4)){var u=Ep.get(i);if(u)var p=u.get(null);else{u=new Map,Ep.set(i,u);for(var y=i.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<y.length;S++){var R=y[S];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(u.set(R.dataset.precedence,R),p=R)}p&&u.set(null,p)}y=s.instance,R=y.getAttribute("data-precedence"),S=u.get(R)||p,S===p&&u.set(null,y),u.set(R,y),this.count++,p=jp.bind(this),y.addEventListener("load",p),y.addEventListener("error",p),S?S.parentNode.insertBefore(y,S.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(y,i.firstChild)),s.state.loading|=4}}var Eu={$$typeof:T,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function DU(i,s,u,p,y,S,R,I,G){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yi(0),this.hiddenUpdates=yi(null),this.identifierPrefix=p,this.onUncaughtError=y,this.onCaughtError=S,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.incompleteTransitions=new Map}function kT(i,s,u,p,y,S,R,I,G,ne,le,pe){return i=new DU(i,s,u,R,G,ne,le,pe,I),s=1,S===!0&&(s|=24),S=Zn(3,null,null,s),i.current=S,S.stateNode=i,s=Iv(),s.refCount++,i.pooledCache=s,s.refCount++,S.memoizedState={element:p,isDehydrated:u,cache:s},qv(S),i}function IT(i){return i?(i=Ws,i):Ws}function LT(i,s,u,p,y,S){y=IT(y),p.context===null?p.context=y:p.pendingContext=y,p=ji(s),p.payload={element:u},S=S===void 0?null:S,S!==null&&(p.callback=S),u=Ei(i,p,s),u!==null&&(Hn(u,i,s),iu(u,i,s))}function BT(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<s?u:s}}function ax(i,s){BT(i,s),(i=i.alternate)&&BT(i,s)}function $T(i){if(i.tag===13||i.tag===31){var s=Eo(i,67108864);s!==null&&Hn(s,i,67108864),ax(i,67108864)}}function qT(i){if(i.tag===13||i.tag===31){var s=rr();s=Ls(s);var u=Eo(i,s);u!==null&&Hn(u,i,s),ax(i,s)}}var Tp=!0;function kU(i,s,u,p){var y=D.T;D.T=null;var S=K.p;try{K.p=2,ix(i,s,u,p)}finally{K.p=S,D.T=y}}function IU(i,s,u,p){var y=D.T;D.T=null;var S=K.p;try{K.p=8,ix(i,s,u,p)}finally{K.p=S,D.T=y}}function ix(i,s,u,p){if(Tp){var y=ox(p);if(y===null)Hy(i,s,p,Np,u),UT(i,p);else if(BU(y,i,s,u,p))p.stopPropagation();else if(UT(i,p),s&4&&-1<LU.indexOf(i)){for(;y!==null;){var S=qs(y);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var R=ra(S.pendingLanes);if(R!==0){var I=S;for(I.pendingLanes|=2,I.entangledLanes|=2;R;){var G=1<<31-gn(R);I.entanglements[1]|=G,R&=~G}sa(S),(lt&6)===0&&(fp=tn()+500,wu(0))}}break;case 31:case 13:I=Eo(S,2),I!==null&&Hn(I,S,2),hp(),ax(S,2)}if(S=ox(p),S===null&&Hy(i,s,p,Np,u),S===y)break;y=S}y!==null&&p.stopPropagation()}else Hy(i,s,p,null,u)}}function ox(i){return i=lv(i),sx(i)}var Np=null;function sx(i){if(Np=null,i=$s(i),i!==null){var s=o(i);if(s===null)i=null;else{var u=s.tag;if(u===13){if(i=l(s),i!==null)return i;i=null}else if(u===31){if(i=c(s),i!==null)return i;i=null}else if(u===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Np=i,null}function zT(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ds()){case yo:return 2;case Sf:return 8;case xo:case qc:return 32;case Ma:return 268435456;default:return 32}default:return 32}}var lx=!1,Bi=null,$i=null,qi=null,_u=new Map,Tu=new Map,zi=[],LU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function UT(i,s){switch(i){case"focusin":case"focusout":Bi=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":_u.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(s.pointerId)}}function Nu(i,s,u,p,y,S){return i===null||i.nativeEvent!==S?(i={blockedOn:s,domEventName:u,eventSystemFlags:p,nativeEvent:S,targetContainers:[y]},s!==null&&(s=qs(s),s!==null&&$T(s)),i):(i.eventSystemFlags|=p,s=i.targetContainers,y!==null&&s.indexOf(y)===-1&&s.push(y),i)}function BU(i,s,u,p,y){switch(s){case"focusin":return Bi=Nu(Bi,i,s,u,p,y),!0;case"dragenter":return $i=Nu($i,i,s,u,p,y),!0;case"mouseover":return qi=Nu(qi,i,s,u,p,y),!0;case"pointerover":var S=y.pointerId;return _u.set(S,Nu(_u.get(S)||null,i,s,u,p,y)),!0;case"gotpointercapture":return S=y.pointerId,Tu.set(S,Nu(Tu.get(S)||null,i,s,u,p,y)),!0}return!1}function FT(i){var s=$s(i.target);if(s!==null){var u=o(s);if(u!==null){if(s=u.tag,s===13){if(s=l(u),s!==null){i.blockedOn=s,rj(i.priority,function(){qT(u)});return}}else if(s===31){if(s=c(u),s!==null){i.blockedOn=s,rj(i.priority,function(){qT(u)});return}}else if(s===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Rp(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var u=ox(i.nativeEvent);if(u===null){u=i.nativeEvent;var p=new u.constructor(u.type,u);sv=p,u.target.dispatchEvent(p),sv=null}else return s=qs(u),s!==null&&$T(s),i.blockedOn=u,!1;s.shift()}return!0}function KT(i,s,u){Rp(i)&&u.delete(s)}function $U(){lx=!1,Bi!==null&&Rp(Bi)&&(Bi=null),$i!==null&&Rp($i)&&($i=null),qi!==null&&Rp(qi)&&(qi=null),_u.forEach(KT),Tu.forEach(KT)}function Mp(i,s){i.blockedOn===s&&(i.blockedOn=null,lx||(lx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,$U)))}var Pp=null;function HT(i){Pp!==i&&(Pp=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pp===i&&(Pp=null);for(var s=0;s<i.length;s+=3){var u=i[s],p=i[s+1],y=i[s+2];if(typeof p!="function"){if(sx(p||u)===null)continue;break}var S=qs(u);S!==null&&(i.splice(s,3),s-=3,oy(S,{pending:!0,data:y,method:u.method,action:p},p,y))}}))}function wl(i){function s(G){return Mp(G,i)}Bi!==null&&Mp(Bi,i),$i!==null&&Mp($i,i),qi!==null&&Mp(qi,i),_u.forEach(s),Tu.forEach(s);for(var u=0;u<zi.length;u++){var p=zi[u];p.blockedOn===i&&(p.blockedOn=null)}for(;0<zi.length&&(u=zi[0],u.blockedOn===null);)FT(u),u.blockedOn===null&&zi.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(p=0;p<u.length;p+=3){var y=u[p],S=u[p+1],R=y[$n]||null;if(typeof S=="function")R||HT(u);else if(R){var I=null;if(S&&S.hasAttribute("formAction")){if(y=S,R=S[$n]||null)I=R.formAction;else if(sx(y)!==null)continue}else I=R.action;typeof I=="function"?u[p+1]=I:(u.splice(p,3),p-=3),HT(u)}}}function GT(){function i(S){S.canIntercept&&S.info==="react-transition"&&S.intercept({handler:function(){return new Promise(function(R){return y=R})},focusReset:"manual",scroll:"manual"})}function s(){y!==null&&(y(),y=null),p||setTimeout(u,20)}function u(){if(!p&&!navigation.transition){var S=navigation.currentEntry;S&&S.url!=null&&navigation.navigate(S.url,{state:S.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,y=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(u,100),function(){p=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),y!==null&&(y(),y=null)}}}function cx(i){this._internalRoot=i}Dp.prototype.render=cx.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var u=s.current,p=rr();LT(u,p,i,s,null,null)},Dp.prototype.unmount=cx.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;LT(i.current,2,null,i,null,null),hp(),s[Bs]=null}};function Dp(i){this._internalRoot=i}Dp.prototype.unstable_scheduleHydration=function(i){if(i){var s=ev();i={blockedOn:null,target:i,priority:s};for(var u=0;u<zi.length&&s!==0&&s<zi[u].priority;u++);zi.splice(u,0,i),u===0&&FT(i)}};var VT=t.version;if(VT!=="19.2.1")throw Error(r(527,VT,"19.2.1"));K.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=f(s),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var qU={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kp.isDisabled&&kp.supportsFiber)try{bo=kp.inject(qU),_n=kp}catch{}}return Du.createRoot=function(i,s){if(!a(i))throw Error(r(299));var u=!1,p="",y=e_,S=t_,R=n_;return s!=null&&(s.unstable_strictMode===!0&&(u=!0),s.identifierPrefix!==void 0&&(p=s.identifierPrefix),s.onUncaughtError!==void 0&&(y=s.onUncaughtError),s.onCaughtError!==void 0&&(S=s.onCaughtError),s.onRecoverableError!==void 0&&(R=s.onRecoverableError)),s=kT(i,1,!1,null,null,u,p,null,y,S,R,GT),i[Bs]=s.current,Ky(i),new cx(s)},Du.hydrateRoot=function(i,s,u){if(!a(i))throw Error(r(299));var p=!1,y="",S=e_,R=t_,I=n_,G=null;return u!=null&&(u.unstable_strictMode===!0&&(p=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(S=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(I=u.onRecoverableError),u.formState!==void 0&&(G=u.formState)),s=kT(i,1,!0,s,u??null,p,y,G,S,R,I,GT),s.context=IT(null),u=s.current,p=rr(),p=Ls(p),y=ji(p),y.callback=null,Ei(u,y,p),u=p,s.current.lanes=u,Mt(s,u),sa(s),i[Bs]=s.current,Ky(i),new Dp(s)},Du.version="19.2.1",Du}var qN;function dK(){if(qN)return wx.exports;qN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),wx.exports=uK(),wx.exports}var fK=dK(),pK=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),I5=(function(){function e(t){this.generateIdentifier=t,this.kv=new pK}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),hK=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,a){r.__proto__=a}||function(r,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[o]=a[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),gK=(function(e){hK(t,e);function t(){var n=e.call(this,function(r){return r.name})||this;return n.classToAllowedProps=new Map,n}return t.prototype.register=function(n,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(n,r.allowProps),e.prototype.register.call(this,n,r.identifier)):e.prototype.register.call(this,n,r)},t.prototype.getAllowedProps=function(n){return this.classToAllowedProps.get(n)},t})(I5),mK=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o};function vK(e){if("values"in Object)return Object.values(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function yK(e,t){var n=vK(e);if("find"in n)return n.find(t);for(var r=n,a=0;a<r.length;a++){var o=r[a];if(t(o))return o}}function Gl(e,t){Object.entries(e).forEach(function(n){var r=mK(n,2),a=r[0],o=r[1];return t(o,a)})}function gh(e,t){return e.indexOf(t)!==-1}function zN(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var xK=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return yK(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),bK=function(e){return Object.prototype.toString.call(e).slice(8,-1)},L5=function(e){return typeof e>"u"},wK=function(e){return e===null},dd=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},lS=function(e){return dd(e)&&Object.keys(e).length===0},no=function(e){return Array.isArray(e)},SK=function(e){return typeof e=="string"},AK=function(e){return typeof e=="number"&&!isNaN(e)},OK=function(e){return typeof e=="boolean"},CK=function(e){return e instanceof RegExp},fd=function(e){return e instanceof Map},pd=function(e){return e instanceof Set},B5=function(e){return bK(e)==="Symbol"},jK=function(e){return e instanceof Date&&!isNaN(e.valueOf())},EK=function(e){return e instanceof Error},UN=function(e){return typeof e=="number"&&isNaN(e)},_K=function(e){return OK(e)||wK(e)||L5(e)||AK(e)||SK(e)||B5(e)},TK=function(e){return typeof e=="bigint"},NK=function(e){return e===1/0||e===-1/0},RK=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},MK=function(e){return e instanceof URL},$5=function(e){return e.replace(/\./g,"\\.")},Cx=function(e){return e.map(String).map($5).join(".")},Ju=function(e){for(var t=[],n="",r=0;r<e.length;r++){var a=e.charAt(r),o=a==="\\"&&e.charAt(r+1)===".";if(o){n+=".",r++;continue}var l=a===".";if(l){t.push(n),n="";continue}n+=a}var c=n;return t.push(c),t},cS=function(){return cS=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},cS.apply(this,arguments)},uS=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},dS=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function la(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var q5=[la(L5,"undefined",function(){return null},function(){}),la(TK,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),la(jK,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),la(EK,"Error",function(e,t){var n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n},function(e,t){var n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(function(r){n[r]=e[r]}),n}),la(CK,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),la(pd,"set",function(e){return dS([],uS(e.values()))},function(e){return new Set(e)}),la(fd,"map",function(e){return dS([],uS(e.entries()))},function(e){return new Map(e)}),la(function(e){return UN(e)||NK(e)},"number",function(e){return UN(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),la(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),la(MK,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function Gg(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var z5=Gg(function(e,t){if(B5(e)){var n=!!t.symbolRegistry.getIdentifier(e);return n}return!1},function(e,t){var n=t.symbolRegistry.getIdentifier(e);return["symbol",n]},function(e){return e.description},function(e,t,n){var r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),PK=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),U5=Gg(RK,function(e){return["typed-array",e.constructor.name]},function(e){return dS([],uS(e))},function(e,t){var n=PK[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function F5(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var K5=Gg(F5,function(e,t){var n=t.classRegistry.getIdentifier(e.constructor);return["class",n]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return cS({},e);var r={};return n.forEach(function(a){r[a]=e[a]}),r},function(e,t,n){var r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),H5=Gg(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return["custom",n.name]},function(e,t){var n=t.customTransformerRegistry.findApplicable(e);return n.serialize(e)},function(e,t,n){var r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),DK=[K5,z5,H5,U5],FN=function(e,t){var n=zN(DK,function(a){return a.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=zN(q5,function(a){return a.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},G5={};q5.forEach(function(e){G5[e.annotation]=e});var kK=function(e,t,n){if(no(t))switch(t[0]){case"symbol":return z5.untransform(e,t,n);case"class":return K5.untransform(e,t,n);case"custom":return H5.untransform(e,t,n);case"typed-array":return U5.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=G5[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Pl=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function V5(e){if(gh(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(gh(e,"prototype"))throw new Error("prototype is not allowed as a property");if(gh(e,"constructor"))throw new Error("constructor is not allowed as a property")}var IK=function(e,t){V5(t);for(var n=0;n<t.length;n++){var r=t[n];if(pd(e))e=Pl(e,+r);else if(fd(e)){var a=+r,o=+t[++n]==0?"key":"value",l=Pl(e,a);switch(o){case"key":e=l;break;case"value":e=e.get(l);break}}else e=e[r]}return e},fS=function(e,t,n){if(V5(t),t.length===0)return n(e);for(var r=e,a=0;a<t.length-1;a++){var o=t[a];if(no(r)){var l=+o;r=r[l]}else if(dd(r))r=r[o];else if(pd(r)){var c=+o;r=Pl(r,c)}else if(fd(r)){var d=a===t.length-2;if(d)break;var c=+o,f=+t[++a]==0?"key":"value",m=Pl(r,c);switch(f){case"key":r=m;break;case"value":r=r.get(m);break}}}var g=t[t.length-1];if(no(r)?r[+g]=n(r[+g]):dd(r)&&(r[g]=n(r[g])),pd(r)){var v=Pl(r,+g),b=n(v);v!==b&&(r.delete(v),r.add(b))}if(fd(r)){var c=+t[t.length-2],A=Pl(r,c),f=+g==0?"key":"value";switch(f){case"key":{var x=n(A);r.set(x,r.get(A)),x!==A&&r.delete(A);break}case"value":{r.set(A,n(r.get(A)));break}}}return e},ei=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},Xi=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e};function pS(e,t,n){if(n===void 0&&(n=[]),!!e){if(!no(e)){Gl(e,function(l,c){return pS(l,t,Xi(Xi([],ei(n)),ei(Ju(c))))});return}var r=ei(e,2),a=r[0],o=r[1];o&&Gl(o,function(l,c){pS(l,t,Xi(Xi([],ei(n)),ei(Ju(c))))}),t(a,n)}}function LK(e,t,n){return pS(t,function(r,a){e=fS(e,a,function(o){return kK(o,r,n)})}),e}function BK(e,t){function n(l,c){var d=IK(e,Ju(c));l.map(Ju).forEach(function(f){e=fS(e,f,function(){return d})})}if(no(t)){var r=ei(t,2),a=r[0],o=r[1];a.forEach(function(l){e=fS(e,Ju(l),function(){return e})}),o&&Gl(o,n)}else Gl(t,n);return e}var $K=function(e,t){return dd(e)||no(e)||fd(e)||pd(e)||F5(e,t)};function qK(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function zK(e,t){var n={},r=void 0;return e.forEach(function(a){if(!(a.length<=1)){t||(a=a.map(function(d){return d.map(String)}).sort(function(d,f){return d.length-f.length}));var o=ei(a),l=o[0],c=o.slice(1);l.length===0?r=c.map(Cx):n[Cx(l)]=c.map(Cx)}}),r?lS(n)?[r]:[r,n]:lS(n)?void 0:n}var Y5=function(e,t,n,r,a,o,l){var c;a===void 0&&(a=[]),o===void 0&&(o=[]),l===void 0&&(l=new Map);var d=_K(e);if(!d){qK(e,a,t);var f=l.get(e);if(f)return r?{transformedValue:null}:f}if(!$K(e,n)){var m=FN(e,n),g=m?{transformedValue:m.value,annotations:[m.type]}:{transformedValue:e};return d||l.set(e,g),g}if(gh(o,e))return{transformedValue:null};var v=FN(e,n),b=(c=v?.value)!==null&&c!==void 0?c:e,A=no(b)?[]:{},x={};Gl(b,function(C,j){var T=Y5(C,t,n,r,Xi(Xi([],ei(a)),[j]),Xi(Xi([],ei(o)),[e]),l);A[j]=T.transformedValue,no(T.annotations)?x[j]=T.annotations:dd(T.annotations)&&Gl(T.annotations,function(M,O){x[$5(j)+"."+O]=M})});var w=lS(x)?{transformedValue:A,annotations:v?[v.type]:void 0}:{transformedValue:A,annotations:v?[v.type,x]:x};return d||l.set(e,w),w};function Q5(e){return Object.prototype.toString.call(e).slice(8,-1)}function KN(e){return Q5(e)==="Array"}function UK(e){if(Q5(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function FK(e,t,n,r,a){const o={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";o==="enumerable"&&(e[t]=n),a&&o==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function hS(e,t={}){if(KN(e))return e.map(a=>hS(a,t));if(!UK(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((a,o)=>{if(KN(t.props)&&!t.props.includes(o))return a;const l=e[o],c=hS(l,t);return FK(a,o,c,e,t.nonenumerable),a},{})}var Qo=function(){return Qo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Qo.apply(this,arguments)},KK=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,o=[],l;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)o.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},HK=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},fi=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,a=r===void 0?!1:r;this.classRegistry=new gK,this.symbolRegistry=new I5(function(o){var l;return(l=o.description)!==null&&l!==void 0?l:""}),this.customTransformerRegistry=new xK,this.allowedErrorProps=[],this.dedupe=a}return e.prototype.serialize=function(t){var n=new Map,r=Y5(t,n,this,this.dedupe),a={json:r.transformedValue};r.annotations&&(a.meta=Qo(Qo({},a.meta),{values:r.annotations}));var o=zK(n,this.dedupe);return o&&(a.meta=Qo(Qo({},a.meta),{referentialEqualities:o})),a},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,a=hS(n);return r?.values&&(a=LK(a,r.values,this)),r?.referentialEqualities&&(a=BK(a,r.referentialEqualities)),a},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,n){this.classRegistry.register(t,n)},e.prototype.registerSymbol=function(t,n){this.symbolRegistry.register(t,n)},e.prototype.registerCustom=function(t,n){this.customTransformerRegistry.register(Qo({name:n},t))},e.prototype.allowErrorProps=function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,HK([],KK(n)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();fi.serialize;fi.deserialize;fi.stringify;fi.parse;fi.registerClass;fi.registerCustom;fi.registerSymbol;fi.allowErrorProps;var GK=(e,t,n,r,a,o,l,c)=>{let d=document.documentElement,f=["light","dark"];function m(b){(Array.isArray(e)?e:[e]).forEach(A=>{let x=A==="class",w=x&&o?a.map(C=>o[C]||C):a;x?(d.classList.remove(...w),d.classList.add(o&&o[b]?o[b]:b)):d.setAttribute(A,b)}),g(b)}function g(b){c&&f.includes(b)&&(d.style.colorScheme=b)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let b=localStorage.getItem(t)||n,A=l&&b==="system"?v():b;m(A)}catch{}},VK=E.createContext(void 0),YK={setTheme:e=>{},themes:[]},QK=()=>{var e;return(e=E.useContext(VK))!=null?e:YK};E.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:a,defaultTheme:o,value:l,themes:c,nonce:d,scriptProps:f})=>{let m=JSON.stringify([n,t,o,e,c,l,r,a]).slice(1,-1);return E.createElement("script",{...f,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${GK.toString()})(${m})`}})});var of=k5();const X5=ft(of);function XK(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const WK=e=>{switch(e){case"success":return eH;case"info":return nH;case"warning":return tH;case"error":return rH;default:return null}},ZK=Array(12).fill(0),JK=({visible:e,className:t})=>$.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},$.createElement("div",{className:"sonner-spinner"},ZK.map((n,r)=>$.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),eH=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),tH=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),nH=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),rH=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},$.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),aH=$.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},$.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),$.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),iH=()=>{const[e,t]=$.useState(document.hidden);return $.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let gS=1;class oH{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...a}=t,o=typeof t?.id=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:gS++,l=this.toasts.find(d=>d.id===o),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),l?this.toasts=this.toasts.map(d=>d.id===o?(this.publish({...d,...t,id:o,title:r}),{...d,...t,id:o,dismissible:c,title:r}):d):this.addToast({title:r,...a,dismissible:c,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const a=Promise.resolve(t instanceof Function?t():t);let o=r!==void 0,l;const c=a.then(async f=>{if(l=["resolve",f],$.isValidElement(f))o=!1,this.create({id:r,type:"default",message:f});else if(lH(f)&&!f.ok){o=!1;const g=typeof n.error=="function"?await n.error(`HTTP error! status: ${f.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${f.status}`):n.description,A=typeof g=="object"&&!$.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...A})}else if(f instanceof Error){o=!1;const g=typeof n.error=="function"?await n.error(f):n.error,v=typeof n.description=="function"?await n.description(f):n.description,A=typeof g=="object"&&!$.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:v,...A})}else if(n.success!==void 0){o=!1;const g=typeof n.success=="function"?await n.success(f):n.success,v=typeof n.description=="function"?await n.description(f):n.description,A=typeof g=="object"&&!$.isValidElement(g)?g:{message:g};this.create({id:r,type:"success",description:v,...A})}}).catch(async f=>{if(l=["reject",f],n.error!==void 0){o=!1;const m=typeof n.error=="function"?await n.error(f):n.error,g=typeof n.description=="function"?await n.description(f):n.description,b=typeof m=="object"&&!$.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:g,...b})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),d=()=>new Promise((f,m)=>c.then(()=>l[0]==="reject"?m(l[1]):f(l[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:d}:Object.assign(r,{unwrap:d})},this.custom=(t,n)=>{const r=n?.id||gS++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Gn=new oH,sH=(e,t)=>{const n=t?.id||gS++;return Gn.addToast({title:e,...t,id:n}),n},lH=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cH=sH,uH=()=>Gn.toasts,dH=()=>Gn.getActiveToasts(),Ue=Object.assign(cH,{success:Gn.success,info:Gn.info,warning:Gn.warning,error:Gn.error,custom:Gn.custom,message:Gn.message,promise:Gn.promise,dismiss:Gn.dismiss,loading:Gn.loading},{getHistory:uH,getToasts:dH});XK("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Up(e){return e.label!==void 0}const fH=3,pH="24px",hH="16px",HN=4e3,gH=356,mH=14,vH=45,yH=200;function ca(...e){return e.filter(Boolean).join(" ")}function xH(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const bH=e=>{var t,n,r,a,o,l,c,d,f;const{invert:m,toast:g,unstyled:v,interacting:b,setHeights:A,visibleToasts:x,heights:w,index:C,toasts:j,expanded:T,removeToast:M,defaultRichColors:O,closeButton:_,style:N,cancelButtonStyle:P,actionButtonStyle:k,className:z="",descriptionClassName:B="",duration:L,position:U,gap:H,expandByDefault:Q,classNames:D,icons:K,closeButtonAriaLabel:F="Close toast"}=e,[X,oe]=$.useState(null),[q,V]=$.useState(null),[Y,ee]=$.useState(!1),[ue,me]=$.useState(!1),[se,ve]=$.useState(!1),[de,Z]=$.useState(!1),[he,ie]=$.useState(!1),[$e,Ce]=$.useState(0),[Ye,nt]=$.useState(0),wt=$.useRef(g.duration||L||HN),kn=$.useRef(null),qt=$.useRef(null),ta=C===0,Xn=C+1<=x,Rt=g.type,hr=g.dismissible!==!1,tn=g.className||"",Ds=g.descriptionClassName||"",yo=$.useMemo(()=>w.findIndex(De=>De.toastId===g.id)||0,[w,g.id]),Sf=$.useMemo(()=>{var De;return(De=g.closeButton)!=null?De:_},[g.closeButton,_]),xo=$.useMemo(()=>g.duration||L||HN,[g.duration,L]),qc=$.useRef(0),Ma=$.useRef(0),Af=$.useRef(0),vi=$.useRef(null),[bo,_n]=U.split("-"),Lr=$.useMemo(()=>w.reduce((De,_t,nn)=>nn>=yo?De:De+_t.height,0),[w,yo]),gn=iH(),Jm=g.invert||m,zc=Rt==="loading";Ma.current=$.useMemo(()=>yo*H+Lr,[yo,Lr]),$.useEffect(()=>{wt.current=xo},[xo]),$.useEffect(()=>{ee(!0)},[]),$.useEffect(()=>{const De=qt.current;if(De){const _t=De.getBoundingClientRect().height;return nt(_t),A(nn=>[{toastId:g.id,height:_t,position:g.position},...nn]),()=>A(nn=>nn.filter(mn=>mn.toastId!==g.id))}},[A,g.id]),$.useLayoutEffect(()=>{if(!Y)return;const De=qt.current,_t=De.style.height;De.style.height="auto";const nn=De.getBoundingClientRect().height;De.style.height=_t,nt(nn),A(mn=>mn.find(Mt=>Mt.toastId===g.id)?mn.map(Mt=>Mt.toastId===g.id?{...Mt,height:nn}:Mt):[{toastId:g.id,height:nn,position:g.position},...mn])},[Y,g.title,g.description,A,g.id,g.jsx,g.action,g.cancel]);const na=$.useCallback(()=>{me(!0),Ce(Ma.current),A(De=>De.filter(_t=>_t.toastId!==g.id)),setTimeout(()=>{M(g)},yH)},[g,M,A,Ma]);$.useEffect(()=>{if(g.promise&&Rt==="loading"||g.duration===1/0||g.type==="loading")return;let De;return T||b||gn?(()=>{if(Af.current<qc.current){const mn=new Date().getTime()-qc.current;wt.current=wt.current-mn}Af.current=new Date().getTime()})():(()=>{wt.current!==1/0&&(qc.current=new Date().getTime(),De=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),na()},wt.current))})(),()=>clearTimeout(De)},[T,b,g,Rt,gn,na]),$.useEffect(()=>{g.delete&&(na(),g.onDismiss==null||g.onDismiss.call(g,g))},[na,g.delete]);function ks(){var De;if(K?.loading){var _t;return $.createElement("div",{className:ca(D?.loader,g==null||(_t=g.classNames)==null?void 0:_t.loader,"sonner-loader"),"data-visible":Rt==="loading"},K.loading)}return $.createElement(JK,{className:ca(D?.loader,g==null||(De=g.classNames)==null?void 0:De.loader),visible:Rt==="loading"})}const Is=g.icon||K?.[Rt]||WK(Rt);var wo,ra;return $.createElement("li",{tabIndex:0,ref:qt,className:ca(z,tn,D?.toast,g==null||(t=g.classNames)==null?void 0:t.toast,D?.default,D?.[Rt],g==null||(n=g.classNames)==null?void 0:n[Rt]),"data-sonner-toast":"","data-rich-colors":(wo=g.richColors)!=null?wo:O,"data-styled":!(g.jsx||g.unstyled||v),"data-mounted":Y,"data-promise":!!g.promise,"data-swiped":he,"data-removed":ue,"data-visible":Xn,"data-y-position":bo,"data-x-position":_n,"data-index":C,"data-front":ta,"data-swiping":se,"data-dismissible":hr,"data-type":Rt,"data-invert":Jm,"data-swipe-out":de,"data-swipe-direction":q,"data-expanded":!!(T||Q&&Y),"data-testid":g.testId,style:{"--index":C,"--toasts-before":C,"--z-index":j.length-C,"--offset":`${ue?$e:Ma.current}px`,"--initial-height":Q?"auto":`${Ye}px`,...N,...g.style},onDragEnd:()=>{ve(!1),oe(null),vi.current=null},onPointerDown:De=>{De.button!==2&&(zc||!hr||(kn.current=new Date,Ce(Ma.current),De.target.setPointerCapture(De.pointerId),De.target.tagName!=="BUTTON"&&(ve(!0),vi.current={x:De.clientX,y:De.clientY})))},onPointerUp:()=>{var De,_t,nn;if(de||!hr)return;vi.current=null;const mn=Number(((De=qt.current)==null?void 0:De.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yi=Number(((_t=qt.current)==null?void 0:_t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Mt=new Date().getTime()-((nn=kn.current)==null?void 0:nn.getTime()),In=X==="x"?mn:yi,So=Math.abs(In)/Mt;if(Math.abs(In)>=vH||So>.11){Ce(Ma.current),g.onDismiss==null||g.onDismiss.call(g,g),V(X==="x"?mn>0?"right":"left":yi>0?"down":"up"),na(),Z(!0);return}else{var Ln,Bn;(Ln=qt.current)==null||Ln.style.setProperty("--swipe-amount-x","0px"),(Bn=qt.current)==null||Bn.style.setProperty("--swipe-amount-y","0px")}ie(!1),ve(!1),oe(null)},onPointerMove:De=>{var _t,nn,mn;if(!vi.current||!hr||((_t=window.getSelection())==null?void 0:_t.toString().length)>0)return;const Mt=De.clientY-vi.current.y,In=De.clientX-vi.current.x;var So;const Ln=(So=e.swipeDirections)!=null?So:xH(U);!X&&(Math.abs(In)>1||Math.abs(Mt)>1)&&oe(Math.abs(In)>Math.abs(Mt)?"x":"y");let Bn={x:0,y:0};const Ls=Br=>1/(1.5+Math.abs(Br)/20);if(X==="y"){if(Ln.includes("top")||Ln.includes("bottom"))if(Ln.includes("top")&&Mt<0||Ln.includes("bottom")&&Mt>0)Bn.y=Mt;else{const Br=Mt*Ls(Mt);Bn.y=Math.abs(Br)<Math.abs(Mt)?Br:Mt}}else if(X==="x"&&(Ln.includes("left")||Ln.includes("right")))if(Ln.includes("left")&&In<0||Ln.includes("right")&&In>0)Bn.x=In;else{const Br=In*Ls(In);Bn.x=Math.abs(Br)<Math.abs(In)?Br:In}(Math.abs(Bn.x)>0||Math.abs(Bn.y)>0)&&ie(!0),(nn=qt.current)==null||nn.style.setProperty("--swipe-amount-x",`${Bn.x}px`),(mn=qt.current)==null||mn.style.setProperty("--swipe-amount-y",`${Bn.y}px`)}},Sf&&!g.jsx&&Rt!=="loading"?$.createElement("button",{"aria-label":F,"data-disabled":zc,"data-close-button":!0,onClick:zc||!hr?()=>{}:()=>{na(),g.onDismiss==null||g.onDismiss.call(g,g)},className:ca(D?.closeButton,g==null||(r=g.classNames)==null?void 0:r.closeButton)},(ra=K?.close)!=null?ra:aH):null,(Rt||g.icon||g.promise)&&g.icon!==null&&(K?.[Rt]!==null||g.icon)?$.createElement("div",{"data-icon":"",className:ca(D?.icon,g==null||(a=g.classNames)==null?void 0:a.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||ks():null,g.type!=="loading"?Is:null):null,$.createElement("div",{"data-content":"",className:ca(D?.content,g==null||(o=g.classNames)==null?void 0:o.content)},$.createElement("div",{"data-title":"",className:ca(D?.title,g==null||(l=g.classNames)==null?void 0:l.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?$.createElement("div",{"data-description":"",className:ca(B,Ds,D?.description,g==null||(c=g.classNames)==null?void 0:c.description)},typeof g.description=="function"?g.description():g.description):null),$.isValidElement(g.cancel)?g.cancel:g.cancel&&Up(g.cancel)?$.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||P,onClick:De=>{Up(g.cancel)&&hr&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,De),na())},className:ca(D?.cancelButton,g==null||(d=g.classNames)==null?void 0:d.cancelButton)},g.cancel.label):null,$.isValidElement(g.action)?g.action:g.action&&Up(g.action)?$.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||k,onClick:De=>{Up(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,De),!De.defaultPrevented&&na())},className:ca(D?.actionButton,g==null||(f=g.classNames)==null?void 0:f.actionButton)},g.action.label):null)};function GN(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function wH(e,t){const n={};return[e,t].forEach((r,a)=>{const o=a===1,l=o?"--mobile-offset":"--offset",c=o?hH:pH;function d(f){["top","right","bottom","left"].forEach(m=>{n[`${l}-${m}`]=typeof f=="number"?`${f}px`:f})}typeof r=="number"||typeof r=="string"?d(r):typeof r=="object"?["top","right","bottom","left"].forEach(f=>{r[f]===void 0?n[`${l}-${f}`]=c:n[`${l}-${f}`]=typeof r[f]=="number"?`${r[f]}px`:r[f]}):d(c)}),n}const SH=$.forwardRef(function(t,n){const{id:r,invert:a,position:o="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:d,className:f,offset:m,mobileOffset:g,theme:v="light",richColors:b,duration:A,style:x,visibleToasts:w=fH,toastOptions:C,dir:j=GN(),gap:T=mH,icons:M,containerAriaLabel:O="Notifications"}=t,[_,N]=$.useState([]),P=$.useMemo(()=>r?_.filter(Y=>Y.toasterId===r):_.filter(Y=>!Y.toasterId),[_,r]),k=$.useMemo(()=>Array.from(new Set([o].concat(P.filter(Y=>Y.position).map(Y=>Y.position)))),[P,o]),[z,B]=$.useState([]),[L,U]=$.useState(!1),[H,Q]=$.useState(!1),[D,K]=$.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=$.useRef(null),X=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),oe=$.useRef(null),q=$.useRef(!1),V=$.useCallback(Y=>{N(ee=>{var ue;return(ue=ee.find(me=>me.id===Y.id))!=null&&ue.delete||Gn.dismiss(Y.id),ee.filter(({id:me})=>me!==Y.id)})},[]);return $.useEffect(()=>Gn.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{N(ee=>ee.map(ue=>ue.id===Y.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{X5.flushSync(()=>{N(ee=>{const ue=ee.findIndex(me=>me.id===Y.id);return ue!==-1?[...ee.slice(0,ue),{...ee[ue],...Y},...ee.slice(ue+1)]:[Y,...ee]})})})}),[_]),$.useEffect(()=>{if(v!=="system"){K(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:ee})=>{K(ee?"dark":"light")})}catch{Y.addListener(({matches:ue})=>{try{K(ue?"dark":"light")}catch(me){console.error(me)}})}},[v]),$.useEffect(()=>{_.length<=1&&U(!1)},[_]),$.useEffect(()=>{const Y=ee=>{var ue;if(l.every(ve=>ee[ve]||ee.code===ve)){var se;U(!0),(se=F.current)==null||se.focus()}ee.code==="Escape"&&(document.activeElement===F.current||(ue=F.current)!=null&&ue.contains(document.activeElement))&&U(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[l]),$.useEffect(()=>{if(F.current)return()=>{oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null,q.current=!1)}},[F.current]),$.createElement("section",{ref:n,"aria-label":`${O} ${X}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},k.map((Y,ee)=>{var ue;const[me,se]=Y.split("-");return P.length?$.createElement("ol",{key:Y,dir:j==="auto"?GN():j,tabIndex:-1,ref:F,className:f,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":me,"data-x-position":se,style:{"--front-toast-height":`${((ue=z[0])==null?void 0:ue.height)||0}px`,"--width":`${gH}px`,"--gap":`${T}px`,...x,...wH(m,g)},onBlur:ve=>{q.current&&!ve.currentTarget.contains(ve.relatedTarget)&&(q.current=!1,oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null))},onFocus:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||q.current||(q.current=!0,oe.current=ve.relatedTarget)},onMouseEnter:()=>U(!0),onMouseMove:()=>U(!0),onMouseLeave:()=>{H||U(!1)},onDragEnd:()=>U(!1),onPointerDown:ve=>{ve.target instanceof HTMLElement&&ve.target.dataset.dismissible==="false"||Q(!0)},onPointerUp:()=>Q(!1)},P.filter(ve=>!ve.position&&ee===0||ve.position===Y).map((ve,de)=>{var Z,he;return $.createElement(bH,{key:ve.id,icons:M,index:de,toast:ve,defaultRichColors:b,duration:(Z=C?.duration)!=null?Z:A,className:C?.className,descriptionClassName:C?.descriptionClassName,invert:a,visibleToasts:w,closeButton:(he=C?.closeButton)!=null?he:d,interacting:H,position:Y,style:C?.style,unstyled:C?.unstyled,classNames:C?.classNames,cancelButtonStyle:C?.cancelButtonStyle,actionButtonStyle:C?.actionButtonStyle,closeButtonAriaLabel:C?.closeButtonAriaLabel,removeToast:V,toasts:P.filter(ie=>ie.position==ve.position),heights:z.filter(ie=>ie.position==ve.position),setHeights:B,expandByDefault:c,gap:T,expanded:L,swipeDirections:t.swipeDirections})})):null}))}),AH=({...e})=>{const{theme:t="system"}=QK();return h.jsx(SH,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Ae(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function VN(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Vg(...e){return t=>{let n=!1;const r=e.map(a=>{const o=VN(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():VN(e[a],null)}}}}function ct(...e){return E.useCallback(Vg(...e),e)}function OH(e,t){const n=E.createContext(t),r=o=>{const{children:l,...c}=o,d=E.useMemo(()=>c,Object.values(c));return h.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(o){const l=E.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function Ea(e,t=[]){let n=[];function r(o,l){const c=E.createContext(l),d=n.length;n=[...n,l];const f=g=>{const{scope:v,children:b,...A}=g,x=v?.[e]?.[d]||c,w=E.useMemo(()=>A,Object.values(A));return h.jsx(x.Provider,{value:w,children:b})};f.displayName=o+"Provider";function m(g,v){const b=v?.[e]?.[d]||c,A=E.useContext(b);if(A)return A;if(l!==void 0)return l;throw new Error(`\`${g}\` must be used within \`${o}\``)}return[f,m]}const a=()=>{const o=n.map(l=>E.createContext(l));return function(c){const d=c?.[e]||o;return E.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return a.scopeName=e,[r,CH(a,...t)]}function CH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((c,{useScope:d,scopeName:f})=>{const g=d(o)[`__scope${f}`];return{...c,...g}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function cs(e){const t=jH(e),n=E.forwardRef((r,a)=>{const{children:o,...l}=r,c=E.Children.toArray(o),d=c.find(_H);if(d){const f=d.props.children,m=c.map(g=>g===d?E.Children.count(f)>1?E.Children.only(null):E.isValidElement(f)?f.props.children:null:g);return h.jsx(t,{...l,ref:a,children:E.isValidElement(f)?E.cloneElement(f,void 0,m):null})}return h.jsx(t,{...l,ref:a,children:o})});return n.displayName=`${e}.Slot`,n}var W5=cs("Slot");function jH(e){const t=E.forwardRef((n,r)=>{const{children:a,...o}=n;if(E.isValidElement(a)){const l=NH(a),c=TH(o,a.props);return a.type!==E.Fragment&&(c.ref=r?Vg(r,l):l),E.cloneElement(a,c)}return E.Children.count(a)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Z5=Symbol("radix.slottable");function EH(e){const t=({children:n})=>h.jsx(h.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Z5,t}function _H(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Z5}function TH(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...c)=>{const d=o(...c);return a(...c),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function NH(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var RH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fe=RH.reduce((e,t)=>{const n=cs(`Primitive.${t}`),r=E.forwardRef((a,o)=>{const{asChild:l,...c}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(d,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function J5(e,t){e&&of.flushSync(()=>e.dispatchEvent(t))}function Sa(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current?.(...n),[])}function MH(e,t=globalThis?.document){const n=Sa(e);E.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var PH="DismissableLayer",mS="dismissableLayer.update",DH="dismissableLayer.pointerDownOutside",kH="dismissableLayer.focusOutside",YN,e3=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sf=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...d}=e,f=E.useContext(e3),[m,g]=E.useState(null),v=m?.ownerDocument??globalThis?.document,[,b]=E.useState({}),A=ct(t,N=>g(N)),x=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),C=x.indexOf(w),j=m?x.indexOf(m):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,M=j>=C,O=BH(N=>{const P=N.target,k=[...f.branches].some(z=>z.contains(P));!M||k||(a?.(N),l?.(N),N.defaultPrevented||c?.())},v),_=$H(N=>{const P=N.target;[...f.branches].some(z=>z.contains(P))||(o?.(N),l?.(N),N.defaultPrevented||c?.())},v);return MH(N=>{j===f.layers.size-1&&(r?.(N),!N.defaultPrevented&&c&&(N.preventDefault(),c()))},v),E.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(YN=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),QN(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=YN)}},[m,v,n,f]),E.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),QN())},[m,f]),E.useEffect(()=>{const N=()=>b({});return document.addEventListener(mS,N),()=>document.removeEventListener(mS,N)},[]),h.jsx(Fe.div,{...d,ref:A,style:{pointerEvents:T?M?"auto":"none":void 0,...e.style},onFocusCapture:Ae(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Ae(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Ae(e.onPointerDownCapture,O.onPointerDownCapture)})});sf.displayName=PH;var IH="DismissableLayerBranch",LH=E.forwardRef((e,t)=>{const n=E.useContext(e3),r=E.useRef(null),a=ct(t,r);return E.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),h.jsx(Fe.div,{...e,ref:a})});LH.displayName=IH;function BH(e,t=globalThis?.document){const n=Sa(e),r=E.useRef(!1),a=E.useRef(()=>{});return E.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let d=function(){t3(DH,n,f,{discrete:!0})};const f={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $H(e,t=globalThis?.document){const n=Sa(e),r=E.useRef(!1);return E.useEffect(()=>{const a=o=>{o.target&&!r.current&&t3(kH,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function QN(){const e=new CustomEvent(mS);document.dispatchEvent(e)}function t3(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?J5(a,o):a.dispatchEvent(o)}var jn=globalThis?.document?E.useLayoutEffect:()=>{},qH=Bg[" useId ".trim().toString()]||(()=>{}),zH=0;function va(e){const[t,n]=E.useState(qH());return jn(()=>{n(r=>r??String(zH++))},[e]),e||(t?`radix-${t}`:"")}const UH=["top","right","bottom","left"],ro=Math.min,sr=Math.max,_h=Math.round,Fp=Math.floor,ya=e=>({x:e,y:e}),FH={left:"right",right:"left",bottom:"top",top:"bottom"},KH={start:"end",end:"start"};function vS(e,t,n){return sr(e,ro(t,n))}function si(e,t){return typeof e=="function"?e(t):e}function li(e){return e.split("-")[0]}function Ac(e){return e.split("-")[1]}function pO(e){return e==="x"?"y":"x"}function hO(e){return e==="y"?"height":"width"}const HH=new Set(["top","bottom"]);function ha(e){return HH.has(li(e))?"y":"x"}function gO(e){return pO(ha(e))}function GH(e,t,n){n===void 0&&(n=!1);const r=Ac(e),a=gO(e),o=hO(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Th(l)),[l,Th(l)]}function VH(e){const t=Th(e);return[yS(e),t,yS(t)]}function yS(e){return e.replace(/start|end/g,t=>KH[t])}const XN=["left","right"],WN=["right","left"],YH=["top","bottom"],QH=["bottom","top"];function XH(e,t,n){switch(e){case"top":case"bottom":return n?t?WN:XN:t?XN:WN;case"left":case"right":return t?YH:QH;default:return[]}}function WH(e,t,n,r){const a=Ac(e);let o=XH(li(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(yS)))),o}function Th(e){return e.replace(/left|right|bottom|top/g,t=>FH[t])}function ZH(e){return{top:0,right:0,bottom:0,left:0,...e}}function n3(e){return typeof e!="number"?ZH(e):{top:e,right:e,bottom:e,left:e}}function Nh(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function ZN(e,t,n){let{reference:r,floating:a}=e;const o=ha(t),l=gO(t),c=hO(l),d=li(t),f=o==="y",m=r.x+r.width/2-a.width/2,g=r.y+r.height/2-a.height/2,v=r[c]/2-a[c]/2;let b;switch(d){case"top":b={x:m,y:r.y-a.height};break;case"bottom":b={x:m,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:g};break;case"left":b={x:r.x-a.width,y:g};break;default:b={x:r.x,y:r.y}}switch(Ac(t)){case"start":b[l]-=v*(n&&f?-1:1);break;case"end":b[l]+=v*(n&&f?-1:1);break}return b}const JH=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:g}=ZN(f,r,d),v=r,b={},A=0;for(let x=0;x<c.length;x++){const{name:w,fn:C}=c[x],{x:j,y:T,data:M,reset:O}=await C({x:m,y:g,initialPlacement:r,placement:v,strategy:a,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});m=j??m,g=T??g,b={...b,[w]:{...b[w],...M}},O&&A<=50&&(A++,typeof O=="object"&&(O.placement&&(v=O.placement),O.rects&&(f=O.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):O.rects),{x:m,y:g}=ZN(f,v,d)),x=-1)}return{x:m,y:g,placement:v,strategy:a,middlewareData:b}};async function hd(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:c,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:b=0}=si(t,e),A=n3(b),w=c[v?g==="floating"?"reference":"floating":g],C=Nh(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:f,rootBoundary:m,strategy:d})),j=g==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,T=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),M=await(o.isElement==null?void 0:o.isElement(T))?await(o.getScale==null?void 0:o.getScale(T))||{x:1,y:1}:{x:1,y:1},O=Nh(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:j,offsetParent:T,strategy:d}):j);return{top:(C.top-O.top+A.top)/M.y,bottom:(O.bottom-C.bottom+A.bottom)/M.y,left:(C.left-O.left+A.left)/M.x,right:(O.right-C.right+A.right)/M.x}}const eG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:c,middlewareData:d}=t,{element:f,padding:m=0}=si(e,t)||{};if(f==null)return{};const g=n3(m),v={x:n,y:r},b=gO(a),A=hO(b),x=await l.getDimensions(f),w=b==="y",C=w?"top":"left",j=w?"bottom":"right",T=w?"clientHeight":"clientWidth",M=o.reference[A]+o.reference[b]-v[b]-o.floating[A],O=v[b]-o.reference[b],_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let N=_?_[T]:0;(!N||!await(l.isElement==null?void 0:l.isElement(_)))&&(N=c.floating[T]||o.floating[A]);const P=M/2-O/2,k=N/2-x[A]/2-1,z=ro(g[C],k),B=ro(g[j],k),L=z,U=N-x[A]-B,H=N/2-x[A]/2+P,Q=vS(L,H,U),D=!d.arrow&&Ac(a)!=null&&H!==Q&&o.reference[A]/2-(H<L?z:B)-x[A]/2<0,K=D?H<L?H-L:H-U:0;return{[b]:v[b]+K,data:{[b]:Q,centerOffset:H-Q-K,...D&&{alignmentOffset:K}},reset:D}}}),tG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:A="none",flipAlignment:x=!0,...w}=si(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=li(a),j=ha(c),T=li(c)===c,M=await(d.isRTL==null?void 0:d.isRTL(f.floating)),O=v||(T||!x?[Th(c)]:VH(c)),_=A!=="none";!v&&_&&O.push(...WH(c,x,A,M));const N=[c,...O],P=await hd(t,w),k=[];let z=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&k.push(P[C]),g){const H=GH(a,l,M);k.push(P[H[0]],P[H[1]])}if(z=[...z,{placement:a,overflows:k}],!k.every(H=>H<=0)){var B,L;const H=(((B=o.flip)==null?void 0:B.index)||0)+1,Q=N[H];if(Q&&(!(g==="alignment"?j!==ha(Q):!1)||z.every(F=>ha(F.placement)===j?F.overflows[0]>0:!0)))return{data:{index:H,overflows:z},reset:{placement:Q}};let D=(L=z.filter(K=>K.overflows[0]<=0).sort((K,F)=>K.overflows[1]-F.overflows[1])[0])==null?void 0:L.placement;if(!D)switch(b){case"bestFit":{var U;const K=(U=z.filter(F=>{if(_){const X=ha(F.placement);return X===j||X==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(X=>X>0).reduce((X,oe)=>X+oe,0)]).sort((F,X)=>F[1]-X[1])[0])==null?void 0:U[0];K&&(D=K);break}case"initialPlacement":D=c;break}if(a!==D)return{reset:{placement:D}}}return{}}}};function JN(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function e2(e){return UH.some(t=>e[t]>=0)}const nG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=si(e,t);switch(r){case"referenceHidden":{const o=await hd(t,{...a,elementContext:"reference"}),l=JN(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:e2(l)}}}case"escaped":{const o=await hd(t,{...a,altBoundary:!0}),l=JN(o,n.floating);return{data:{escapedOffsets:l,escaped:e2(l)}}}default:return{}}}}},r3=new Set(["left","top"]);async function rG(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=li(n),c=Ac(n),d=ha(n)==="y",f=r3.has(l)?-1:1,m=o&&d?-1:1,g=si(t,e);let{mainAxis:v,crossAxis:b,alignmentAxis:A}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof A=="number"&&(b=c==="end"?A*-1:A),d?{x:b*m,y:v*f}:{x:v*f,y:b*m}}const aG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:c}=t,d=await rG(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:o+d.y,data:{...d,placement:l}}}}},iG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:C,y:j}=w;return{x:C,y:j}}},...d}=si(e,t),f={x:n,y:r},m=await hd(t,d),g=ha(li(a)),v=pO(g);let b=f[v],A=f[g];if(o){const w=v==="y"?"top":"left",C=v==="y"?"bottom":"right",j=b+m[w],T=b-m[C];b=vS(j,b,T)}if(l){const w=g==="y"?"top":"left",C=g==="y"?"bottom":"right",j=A+m[w],T=A-m[C];A=vS(j,A,T)}const x=c.fn({...t,[v]:b,[g]:A});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:o,[g]:l}}}}}},oG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:d=!0,crossAxis:f=!0}=si(e,t),m={x:n,y:r},g=ha(a),v=pO(g);let b=m[v],A=m[g];const x=si(c,t),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const T=v==="y"?"height":"width",M=o.reference[v]-o.floating[T]+w.mainAxis,O=o.reference[v]+o.reference[T]-w.mainAxis;b<M?b=M:b>O&&(b=O)}if(f){var C,j;const T=v==="y"?"width":"height",M=r3.has(li(a)),O=o.reference[g]-o.floating[T]+(M&&((C=l.offset)==null?void 0:C[g])||0)+(M?0:w.crossAxis),_=o.reference[g]+o.reference[T]+(M?0:((j=l.offset)==null?void 0:j[g])||0)-(M?w.crossAxis:0);A<O?A=O:A>_&&(A=_)}return{[v]:b,[g]:A}}}},sG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:c}=t,{apply:d=()=>{},...f}=si(e,t),m=await hd(t,f),g=li(a),v=Ac(a),b=ha(a)==="y",{width:A,height:x}=o.floating;let w,C;g==="top"||g==="bottom"?(w=g,C=v===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(C=g,w=v==="end"?"top":"bottom");const j=x-m.top-m.bottom,T=A-m.left-m.right,M=ro(x-m[w],j),O=ro(A-m[C],T),_=!t.middlewareData.shift;let N=M,P=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=j),_&&!v){const z=sr(m.left,0),B=sr(m.right,0),L=sr(m.top,0),U=sr(m.bottom,0);b?P=A-2*(z!==0||B!==0?z+B:sr(m.left,m.right)):N=x-2*(L!==0||U!==0?L+U:sr(m.top,m.bottom))}await d({...t,availableWidth:P,availableHeight:N});const k=await l.getDimensions(c.floating);return A!==k.width||x!==k.height?{reset:{rects:!0}}:{}}}};function Yg(){return typeof window<"u"}function Oc(e){return a3(e)?(e.nodeName||"").toLowerCase():"#document"}function fr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _a(e){var t;return(t=(a3(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function a3(e){return Yg()?e instanceof Node||e instanceof fr(e).Node:!1}function Xr(e){return Yg()?e instanceof Element||e instanceof fr(e).Element:!1}function Aa(e){return Yg()?e instanceof HTMLElement||e instanceof fr(e).HTMLElement:!1}function t2(e){return!Yg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fr(e).ShadowRoot}const lG=new Set(["inline","contents"]);function lf(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Wr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!lG.has(a)}const cG=new Set(["table","td","th"]);function uG(e){return cG.has(Oc(e))}const dG=[":popover-open",":modal"];function Qg(e){return dG.some(t=>{try{return e.matches(t)}catch{return!1}})}const fG=["transform","translate","scale","rotate","perspective"],pG=["transform","translate","scale","rotate","perspective","filter"],hG=["paint","layout","strict","content"];function mO(e){const t=vO(),n=Xr(e)?Wr(e):e;return fG.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)||pG.some(r=>(n.willChange||"").includes(r))||hG.some(r=>(n.contain||"").includes(r))}function gG(e){let t=ao(e);for(;Aa(t)&&!Vl(t);){if(mO(t))return t;if(Qg(t))return null;t=ao(t)}return null}function vO(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mG=new Set(["html","body","#document"]);function Vl(e){return mG.has(Oc(e))}function Wr(e){return fr(e).getComputedStyle(e)}function Xg(e){return Xr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ao(e){if(Oc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||t2(e)&&e.host||_a(e);return t2(t)?t.host:t}function i3(e){const t=ao(e);return Vl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Aa(t)&&lf(t)?t:i3(t)}function gd(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=i3(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=fr(a);if(o){const c=xS(l);return t.concat(l,l.visualViewport||[],lf(a)?a:[],c&&n?gd(c):[])}return t.concat(a,gd(a,[],n))}function xS(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function o3(e){const t=Wr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Aa(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,c=_h(n)!==o||_h(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function yO(e){return Xr(e)?e:e.contextElement}function ql(e){const t=yO(e);if(!Aa(t))return ya(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=o3(t);let l=(o?_h(n.width):n.width)/r,c=(o?_h(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const vG=ya(0);function s3(e){const t=fr(e);return!vO()||!t.visualViewport?vG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==fr(e)?!1:t}function us(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=yO(e);let l=ya(1);t&&(r?Xr(r)&&(l=ql(r)):l=ql(e));const c=yG(o,n,r)?s3(o):ya(0);let d=(a.left+c.x)/l.x,f=(a.top+c.y)/l.y,m=a.width/l.x,g=a.height/l.y;if(o){const v=fr(o),b=r&&Xr(r)?fr(r):r;let A=v,x=xS(A);for(;x&&r&&b!==A;){const w=ql(x),C=x.getBoundingClientRect(),j=Wr(x),T=C.left+(x.clientLeft+parseFloat(j.paddingLeft))*w.x,M=C.top+(x.clientTop+parseFloat(j.paddingTop))*w.y;d*=w.x,f*=w.y,m*=w.x,g*=w.y,d+=T,f+=M,A=fr(x),x=xS(A)}}return Nh({width:m,height:g,x:d,y:f})}function Wg(e,t){const n=Xg(e).scrollLeft;return t?t.left+n:us(_a(e)).left+n}function l3(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Wg(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function xG(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=_a(r),c=t?Qg(t.floating):!1;if(r===l||c&&o)return n;let d={scrollLeft:0,scrollTop:0},f=ya(1);const m=ya(0),g=Aa(r);if((g||!g&&!o)&&((Oc(r)!=="body"||lf(l))&&(d=Xg(r)),Aa(r))){const b=us(r);f=ql(r),m.x=b.x+r.clientLeft,m.y=b.y+r.clientTop}const v=l&&!g&&!o?l3(l,d):ya(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-d.scrollTop*f.y+m.y+v.y}}function bG(e){return Array.from(e.getClientRects())}function wG(e){const t=_a(e),n=Xg(e),r=e.ownerDocument.body,a=sr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=sr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Wg(e);const c=-n.scrollTop;return Wr(r).direction==="rtl"&&(l+=sr(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:c}}const n2=25;function SG(e,t){const n=fr(e),r=_a(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,d=0;if(a){o=a.width,l=a.height;const m=vO();(!m||m&&t==="fixed")&&(c=a.offsetLeft,d=a.offsetTop)}const f=Wg(r);if(f<=0){const m=r.ownerDocument,g=m.body,v=getComputedStyle(g),b=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,A=Math.abs(r.clientWidth-g.clientWidth-b);A<=n2&&(o-=A)}else f<=n2&&(o+=f);return{width:o,height:l,x:c,y:d}}const AG=new Set(["absolute","fixed"]);function OG(e,t){const n=us(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Aa(e)?ql(e):ya(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,d=a*o.x,f=r*o.y;return{width:l,height:c,x:d,y:f}}function r2(e,t,n){let r;if(t==="viewport")r=SG(e,n);else if(t==="document")r=wG(_a(e));else if(Xr(t))r=OG(t,n);else{const a=s3(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Nh(r)}function c3(e,t){const n=ao(e);return n===t||!Xr(n)||Vl(n)?!1:Wr(n).position==="fixed"||c3(n,t)}function CG(e,t){const n=t.get(e);if(n)return n;let r=gd(e,[],!1).filter(c=>Xr(c)&&Oc(c)!=="body"),a=null;const o=Wr(e).position==="fixed";let l=o?ao(e):e;for(;Xr(l)&&!Vl(l);){const c=Wr(l),d=mO(l);!d&&c.position==="fixed"&&(a=null),(o?!d&&!a:!d&&c.position==="static"&&!!a&&AG.has(a.position)||lf(l)&&!d&&c3(e,l))?r=r.filter(m=>m!==l):a=c,l=ao(l)}return t.set(e,r),r}function jG(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Qg(t)?[]:CG(t,this._c):[].concat(n),r],c=l[0],d=l.reduce((f,m)=>{const g=r2(t,m,a);return f.top=sr(g.top,f.top),f.right=ro(g.right,f.right),f.bottom=ro(g.bottom,f.bottom),f.left=sr(g.left,f.left),f},r2(t,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function EG(e){const{width:t,height:n}=o3(e);return{width:t,height:n}}function _G(e,t,n){const r=Aa(t),a=_a(t),o=n==="fixed",l=us(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const d=ya(0);function f(){d.x=Wg(a)}if(r||!r&&!o)if((Oc(t)!=="body"||lf(a))&&(c=Xg(t)),r){const b=us(t,!0,o,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else a&&f();o&&!r&&a&&f();const m=a&&!r&&!o?l3(a,c):ya(0),g=l.left+c.scrollLeft-d.x-m.x,v=l.top+c.scrollTop-d.y-m.y;return{x:g,y:v,width:l.width,height:l.height}}function jx(e){return Wr(e).position==="static"}function a2(e,t){if(!Aa(e)||Wr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _a(e)===n&&(n=n.ownerDocument.body),n}function u3(e,t){const n=fr(e);if(Qg(e))return n;if(!Aa(e)){let a=ao(e);for(;a&&!Vl(a);){if(Xr(a)&&!jx(a))return a;a=ao(a)}return n}let r=a2(e,t);for(;r&&uG(r)&&jx(r);)r=a2(r,t);return r&&Vl(r)&&jx(r)&&!mO(r)?n:r||gG(e)||n}const TG=async function(e){const t=this.getOffsetParent||u3,n=this.getDimensions,r=await n(e.floating);return{reference:_G(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function NG(e){return Wr(e).direction==="rtl"}const RG={convertOffsetParentRelativeRectToViewportRelativeRect:xG,getDocumentElement:_a,getClippingRect:jG,getOffsetParent:u3,getElementRects:TG,getClientRects:bG,getDimensions:EG,getScale:ql,isElement:Xr,isRTL:NG};function d3(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function MG(e,t){let n=null,r;const a=_a(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),o();const f=e.getBoundingClientRect(),{left:m,top:g,width:v,height:b}=f;if(c||t(),!v||!b)return;const A=Fp(g),x=Fp(a.clientWidth-(m+v)),w=Fp(a.clientHeight-(g+b)),C=Fp(m),T={rootMargin:-A+"px "+-x+"px "+-w+"px "+-C+"px",threshold:sr(0,ro(1,d))||1};let M=!0;function O(_){const N=_[0].intersectionRatio;if(N!==d){if(!M)return l();N?l(!1,N):r=setTimeout(()=>{l(!1,1e-7)},1e3)}N===1&&!d3(f,e.getBoundingClientRect())&&l(),M=!1}try{n=new IntersectionObserver(O,{...T,root:a.ownerDocument})}catch{n=new IntersectionObserver(O,T)}n.observe(e)}return l(!0),o}function PG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=yO(e),m=a||o?[...f?gd(f):[],...gd(t)]:[];m.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const g=f&&c?MG(f,n):null;let v=-1,b=null;l&&(b=new ResizeObserver(C=>{let[j]=C;j&&j.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var T;(T=b)==null||T.observe(t)})),n()}),f&&!d&&b.observe(f),b.observe(t));let A,x=d?us(e):null;d&&w();function w(){const C=us(e);x&&!d3(x,C)&&n(),x=C,A=requestAnimationFrame(w)}return n(),()=>{var C;m.forEach(j=>{a&&j.removeEventListener("scroll",n),o&&j.removeEventListener("resize",n)}),g?.(),(C=b)==null||C.disconnect(),b=null,d&&cancelAnimationFrame(A)}}const DG=aG,kG=iG,IG=tG,LG=sG,BG=nG,i2=eG,$G=oG,qG=(e,t,n)=>{const r=new Map,a={platform:RG,...n},o={...a.platform,_c:r};return JH(e,t,{...a,platform:o})};var zG=typeof document<"u",UG=function(){},mh=zG?E.useLayoutEffect:UG;function Rh(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,a;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(!Rh(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Rh(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function f3(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function o2(e,t){const n=f3(e);return Math.round(t*n)/n}function Ex(e){const t=E.useRef(e);return mh(()=>{t.current=e}),t}function FG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:d,open:f}=e,[m,g]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,b]=E.useState(r);Rh(v,r)||b(r);const[A,x]=E.useState(null),[w,C]=E.useState(null),j=E.useCallback(F=>{F!==_.current&&(_.current=F,x(F))},[]),T=E.useCallback(F=>{F!==N.current&&(N.current=F,C(F))},[]),M=o||A,O=l||w,_=E.useRef(null),N=E.useRef(null),P=E.useRef(m),k=d!=null,z=Ex(d),B=Ex(a),L=Ex(f),U=E.useCallback(()=>{if(!_.current||!N.current)return;const F={placement:t,strategy:n,middleware:v};B.current&&(F.platform=B.current),qG(_.current,N.current,F).then(X=>{const oe={...X,isPositioned:L.current!==!1};H.current&&!Rh(P.current,oe)&&(P.current=oe,of.flushSync(()=>{g(oe)}))})},[v,t,n,B,L]);mh(()=>{f===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,g(F=>({...F,isPositioned:!1})))},[f]);const H=E.useRef(!1);mh(()=>(H.current=!0,()=>{H.current=!1}),[]),mh(()=>{if(M&&(_.current=M),O&&(N.current=O),M&&O){if(z.current)return z.current(M,O,U);U()}},[M,O,U,z,k]);const Q=E.useMemo(()=>({reference:_,floating:N,setReference:j,setFloating:T}),[j,T]),D=E.useMemo(()=>({reference:M,floating:O}),[M,O]),K=E.useMemo(()=>{const F={position:n,left:0,top:0};if(!D.floating)return F;const X=o2(D.floating,m.x),oe=o2(D.floating,m.y);return c?{...F,transform:"translate("+X+"px, "+oe+"px)",...f3(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:X,top:oe}},[n,c,D.floating,m.x,m.y]);return E.useMemo(()=>({...m,update:U,refs:Q,elements:D,floatingStyles:K}),[m,U,Q,D,K])}const KG=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?i2({element:r.current,padding:a}).fn(n):{}:r?i2({element:r,padding:a}).fn(n):{}}}},HG=(e,t)=>({...DG(e),options:[e,t]}),GG=(e,t)=>({...kG(e),options:[e,t]}),VG=(e,t)=>({...$G(e),options:[e,t]}),YG=(e,t)=>({...IG(e),options:[e,t]}),QG=(e,t)=>({...LG(e),options:[e,t]}),XG=(e,t)=>({...BG(e),options:[e,t]}),WG=(e,t)=>({...KG(e),options:[e,t]});var ZG="Arrow",p3=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return h.jsx(Fe.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});p3.displayName=ZG;var JG=p3;function h3(e){const[t,n]=E.useState(void 0);return jn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,c;if("borderBoxSize"in o){const d=o.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,c=f.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var xO="Popper",[g3,Cc]=Ea(xO),[eV,m3]=g3(xO),v3=e=>{const{__scopePopper:t,children:n}=e,[r,a]=E.useState(null);return h.jsx(eV,{scope:t,anchor:r,onAnchorChange:a,children:n})};v3.displayName=xO;var y3="PopperAnchor",x3=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=m3(y3,n),l=E.useRef(null),c=ct(t,l),d=E.useRef(null);return E.useEffect(()=>{const f=d.current;d.current=r?.current||l.current,f!==d.current&&o.onAnchorChange(d.current)}),r?null:h.jsx(Fe.div,{...a,ref:c})});x3.displayName=y3;var bO="PopperContent",[tV,nV]=g3(bO),b3=E.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:g="partial",hideWhenDetached:v=!1,updatePositionStrategy:b="optimized",onPlaced:A,...x}=e,w=m3(bO,n),[C,j]=E.useState(null),T=ct(t,se=>j(se)),[M,O]=E.useState(null),_=h3(M),N=_?.width??0,P=_?.height??0,k=r+(o!=="center"?"-"+o:""),z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},B=Array.isArray(f)?f:[f],L=B.length>0,U={padding:z,boundary:B.filter(aV),altBoundary:L},{refs:H,floatingStyles:Q,placement:D,isPositioned:K,middlewareData:F}=FG({strategy:"fixed",placement:k,whileElementsMounted:(...se)=>PG(...se,{animationFrame:b==="always"}),elements:{reference:w.anchor},middleware:[HG({mainAxis:a+P,alignmentAxis:l}),d&&GG({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?VG():void 0,...U}),d&&YG({...U}),QG({...U,apply:({elements:se,rects:ve,availableWidth:de,availableHeight:Z})=>{const{width:he,height:ie}=ve.reference,$e=se.floating.style;$e.setProperty("--radix-popper-available-width",`${de}px`),$e.setProperty("--radix-popper-available-height",`${Z}px`),$e.setProperty("--radix-popper-anchor-width",`${he}px`),$e.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),M&&WG({element:M,padding:c}),iV({arrowWidth:N,arrowHeight:P}),v&&XG({strategy:"referenceHidden",...U})]}),[X,oe]=A3(D),q=Sa(A);jn(()=>{K&&q?.()},[K,q]);const V=F.arrow?.x,Y=F.arrow?.y,ee=F.arrow?.centerOffset!==0,[ue,me]=E.useState();return jn(()=>{C&&me(window.getComputedStyle(C).zIndex)},[C]),h.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:K?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[F.transformOrigin?.x,F.transformOrigin?.y].join(" "),...F.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(tV,{scope:n,placedSide:X,onArrowChange:O,arrowX:V,arrowY:Y,shouldHideArrow:ee,children:h.jsx(Fe.div,{"data-side":X,"data-align":oe,...x,ref:T,style:{...x.style,animation:K?void 0:"none"}})})})});b3.displayName=bO;var w3="PopperArrow",rV={top:"bottom",right:"left",bottom:"top",left:"right"},S3=E.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=nV(w3,r),l=rV[o.placedSide];return h.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:h.jsx(JG,{...a,ref:n,style:{...a.style,display:"block"}})})});S3.displayName=w3;function aV(e){return e!==null}var iV=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,l=a.arrow?.centerOffset!==0,c=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,m]=A3(n),g={start:"0%",center:"50%",end:"100%"}[m],v=(a.arrow?.x??0)+c/2,b=(a.arrow?.y??0)+d/2;let A="",x="";return f==="bottom"?(A=l?g:`${v}px`,x=`${-d}px`):f==="top"?(A=l?g:`${v}px`,x=`${r.floating.height+d}px`):f==="right"?(A=`${-d}px`,x=l?g:`${b}px`):f==="left"&&(A=`${r.floating.width+d}px`,x=l?g:`${b}px`),{data:{x:A,y:x}}}});function A3(e){const[t,n="center"]=e.split("-");return[t,n]}var wO=v3,SO=x3,AO=b3,OO=S3,oV="Portal",cf=E.forwardRef((e,t)=>{const{container:n,...r}=e,[a,o]=E.useState(!1);jn(()=>o(!0),[]);const l=n||a&&globalThis?.document?.body;return l?X5.createPortal(h.jsx(Fe.div,{...r,ref:t}),l):null});cf.displayName=oV;function sV(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var Ta=e=>{const{present:t,children:n}=e,r=lV(t),a=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),o=ct(r.ref,cV(a));return typeof n=="function"||r.isPresent?E.cloneElement(a,{ref:o}):null};Ta.displayName="Presence";function lV(e){const[t,n]=E.useState(),r=E.useRef(null),a=E.useRef(e),o=E.useRef("none"),l=e?"mounted":"unmounted",[c,d]=sV(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const f=Kp(r.current);o.current=c==="mounted"?f:"none"},[c]),jn(()=>{const f=r.current,m=a.current;if(m!==e){const v=o.current,b=Kp(f);e?d("MOUNT"):b==="none"||f?.display==="none"?d("UNMOUNT"):d(m&&v!==b?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),jn(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,g=b=>{const x=Kp(r.current).includes(CSS.escape(b.animationName));if(b.target===t&&x&&(d("ANIMATION_END"),!a.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},v=b=>{b.target===t&&(o.current=Kp(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:E.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Kp(e){return e?.animationName||"none"}function cV(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var uV=Bg[" useInsertionEffect ".trim().toString()]||jn;function ds({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,l]=dV({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:a;{const m=E.useRef(e!==void 0);E.useEffect(()=>{const g=m.current;g!==c&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${c?"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.`),m.current=c},[c,r])}const f=E.useCallback(m=>{if(c){const g=fV(m)?m(e):m;g!==e&&l.current?.(g)}else o(m)},[c,e,o,l]);return[d,f]}function dV({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),a=E.useRef(n),o=E.useRef(t);return uV(()=>{o.current=t},[t]),E.useEffect(()=>{a.current!==n&&(o.current?.(n),a.current=n)},[n,a]),[n,r,o]}function fV(e){return typeof e=="function"}var O3=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"}),pV="VisuallyHidden",C3=E.forwardRef((e,t)=>h.jsx(Fe.span,{...e,ref:t,style:{...O3,...e.style}}));C3.displayName=pV;var hV=C3,[Zg]=Ea("Tooltip",[Cc]),Jg=Cc(),j3="TooltipProvider",gV=700,bS="tooltip.open",[mV,CO]=Zg(j3),E3=e=>{const{__scopeTooltip:t,delayDuration:n=gV,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:o}=e,l=E.useRef(!0),c=E.useRef(!1),d=E.useRef(0);return E.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),h.jsx(mV,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:E.useCallback(f=>{c.current=f},[]),disableHoverableContent:a,children:o})};E3.displayName=j3;var md="Tooltip",[vV,uf]=Zg(md),_3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:a,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,d=CO(md,e.__scopeTooltip),f=Jg(t),[m,g]=E.useState(null),v=va(),b=E.useRef(0),A=l??d.disableHoverableContent,x=c??d.delayDuration,w=E.useRef(!1),[C,j]=ds({prop:r,defaultProp:a??!1,onChange:N=>{N?(d.onOpen(),document.dispatchEvent(new CustomEvent(bS))):d.onClose(),o?.(N)},caller:md}),T=E.useMemo(()=>C?w.current?"delayed-open":"instant-open":"closed",[C]),M=E.useCallback(()=>{window.clearTimeout(b.current),b.current=0,w.current=!1,j(!0)},[j]),O=E.useCallback(()=>{window.clearTimeout(b.current),b.current=0,j(!1)},[j]),_=E.useCallback(()=>{window.clearTimeout(b.current),b.current=window.setTimeout(()=>{w.current=!0,j(!0),b.current=0},x)},[x,j]);return E.useEffect(()=>()=>{b.current&&(window.clearTimeout(b.current),b.current=0)},[]),h.jsx(wO,{...f,children:h.jsx(vV,{scope:t,contentId:v,open:C,stateAttribute:T,trigger:m,onTriggerChange:g,onTriggerEnter:E.useCallback(()=>{d.isOpenDelayedRef.current?_():M()},[d.isOpenDelayedRef,_,M]),onTriggerLeave:E.useCallback(()=>{A?O():(window.clearTimeout(b.current),b.current=0)},[O,A]),onOpen:M,onClose:O,disableHoverableContent:A,children:n})})};_3.displayName=md;var wS="TooltipTrigger",T3=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=uf(wS,n),o=CO(wS,n),l=Jg(n),c=E.useRef(null),d=ct(t,c,a.onTriggerChange),f=E.useRef(!1),m=E.useRef(!1),g=E.useCallback(()=>f.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),h.jsx(SO,{asChild:!0,...l,children:h.jsx(Fe.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:d,onPointerMove:Ae(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ae(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Ae(e.onPointerDown,()=>{a.open&&a.onClose(),f.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Ae(e.onFocus,()=>{f.current||a.onOpen()}),onBlur:Ae(e.onBlur,a.onClose),onClick:Ae(e.onClick,a.onClose)})})});T3.displayName=wS;var jO="TooltipPortal",[yV,xV]=Zg(jO,{forceMount:void 0}),N3=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,o=uf(jO,t);return h.jsx(yV,{scope:t,forceMount:n,children:h.jsx(Ta,{present:n||o.open,children:h.jsx(cf,{asChild:!0,container:a,children:r})})})};N3.displayName=jO;var Yl="TooltipContent",R3=E.forwardRef((e,t)=>{const n=xV(Yl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...o}=e,l=uf(Yl,e.__scopeTooltip);return h.jsx(Ta,{present:r||l.open,children:l.disableHoverableContent?h.jsx(M3,{side:a,...o,ref:t}):h.jsx(bV,{side:a,...o,ref:t})})}),bV=E.forwardRef((e,t)=>{const n=uf(Yl,e.__scopeTooltip),r=CO(Yl,e.__scopeTooltip),a=E.useRef(null),o=ct(t,a),[l,c]=E.useState(null),{trigger:d,onClose:f}=n,m=a.current,{onPointerInTransitChange:g}=r,v=E.useCallback(()=>{c(null),g(!1)},[g]),b=E.useCallback((A,x)=>{const w=A.currentTarget,C={x:A.clientX,y:A.clientY},j=OV(C,w.getBoundingClientRect()),T=CV(C,j),M=jV(x.getBoundingClientRect()),O=_V([...T,...M]);c(O),g(!0)},[g]);return E.useEffect(()=>()=>v(),[v]),E.useEffect(()=>{if(d&&m){const A=w=>b(w,m),x=w=>b(w,d);return d.addEventListener("pointerleave",A),m.addEventListener("pointerleave",x),()=>{d.removeEventListener("pointerleave",A),m.removeEventListener("pointerleave",x)}}},[d,m,b,v]),E.useEffect(()=>{if(l){const A=x=>{const w=x.target,C={x:x.clientX,y:x.clientY},j=d?.contains(w)||m?.contains(w),T=!EV(C,l);j?v():T&&(v(),f())};return document.addEventListener("pointermove",A),()=>document.removeEventListener("pointermove",A)}},[d,m,l,f,v]),h.jsx(M3,{...e,ref:o})}),[wV,SV]=Zg(md,{isInside:!1}),AV=EH("TooltipContent"),M3=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,d=uf(Yl,n),f=Jg(n),{onClose:m}=d;return E.useEffect(()=>(document.addEventListener(bS,m),()=>document.removeEventListener(bS,m)),[m]),E.useEffect(()=>{if(d.trigger){const g=v=>{v.target?.contains(d.trigger)&&m()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[d.trigger,m]),h.jsx(sf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:g=>g.preventDefault(),onDismiss:m,children:h.jsxs(AO,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(AV,{children:r}),h.jsx(wV,{scope:n,isInside:!0,children:h.jsx(hV,{id:d.contentId,role:"tooltip",children:a||r})})]})})});R3.displayName=Yl;var P3="TooltipArrow",D3=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Jg(n);return SV(P3,n).isInside?null:h.jsx(OO,{...a,...r,ref:t})});D3.displayName=P3;function OV(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,a,o)){case o:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function CV(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function jV(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function EV(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],d=t[l],f=c.x,m=c.y,g=d.x,v=d.y;m>r!=v>r&&n<(g-f)*(r-m)/(v-m)+f&&(a=!a)}return a}function _V(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),TV(t)}function TV(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(a.y-l.y)>=(o.y-l.y)*(a.x-l.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var NV=E3,RV=_3,MV=T3,PV=N3,DV=R3,kV=D3;function k3(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=k3(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Le(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=k3(e))&&(r&&(r+=" "),r+=t);return r}const EO="-",IV=e=>{const t=BV(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(EO);return c[0]===""&&c.length!==1&&c.shift(),I3(c,t)||LV(l)},getConflictingClassGroupIds:(l,c)=>{const d=n[l]||[];return c&&r[l]?[...d,...r[l]]:d}}},I3=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?I3(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(EO);return t.validators.find(({validator:l})=>l(o))?.classGroupId},s2=/^\[(.+)\]$/,LV=e=>{if(s2.test(e)){const t=s2.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},BV=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)SS(n[a],r,a,t);return r},SS=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:l2(t,a);o.classGroupId=n;return}if(typeof a=="function"){if($V(a)){SS(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{SS(l,l2(t,o),n,r)})})},l2=(e,t)=>{let n=e;return t.split(EO).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},$V=e=>e.isThemeGetter,qV=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},AS="!",OS=":",zV=OS.length,UV=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,c=0,d=0,f;for(let A=0;A<a.length;A++){let x=a[A];if(l===0&&c===0){if(x===OS){o.push(a.slice(d,A)),d=A+zV;continue}if(x==="/"){f=A;continue}}x==="["?l++:x==="]"?l--:x==="("?c++:x===")"&&c--}const m=o.length===0?a:a.substring(d),g=FV(m),v=g!==m,b=f&&f>d?f-d:void 0;return{modifiers:o,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:b}};if(t){const a=t+OS,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},FV=e=>e.endsWith(AS)?e.substring(0,e.length-1):e.startsWith(AS)?e.substring(1):e,KV=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},HV=e=>({cache:qV(e.cacheSize),parseClassName:UV(e),sortModifiers:KV(e),...IV(e)}),GV=/\s+/,VV=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],c=e.trim().split(GV);let d="";for(let f=c.length-1;f>=0;f-=1){const m=c[f],{isExternal:g,modifiers:v,hasImportantModifier:b,baseClassName:A,maybePostfixModifierPosition:x}=n(m);if(g){d=m+(d.length>0?" "+d:d);continue}let w=!!x,C=r(w?A.substring(0,x):A);if(!C){if(!w){d=m+(d.length>0?" "+d:d);continue}if(C=r(A),!C){d=m+(d.length>0?" "+d:d);continue}w=!1}const j=o(v).join(":"),T=b?j+AS:j,M=T+C;if(l.includes(M))continue;l.push(M);const O=a(C,w);for(let _=0;_<O.length;++_){const N=O[_];l.push(T+N)}d=m+(d.length>0?" "+d:d)}return d};function YV(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=L3(t))&&(r&&(r+=" "),r+=n);return r}const L3=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=L3(e[r]))&&(n&&(n+=" "),n+=t);return n};function QV(e,...t){let n,r,a,o=l;function l(d){const f=t.reduce((m,g)=>g(m),e());return n=HV(f),r=n.cache.get,a=n.cache.set,o=c,c(d)}function c(d){const f=r(d);if(f)return f;const m=VV(d,n);return a(d,m),m}return function(){return o(YV.apply(null,arguments))}}const Yt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},B3=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$3=/^\((?:(\w[\w-]*):)?(.+)\)$/i,XV=/^\d+\/\d+$/,WV=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ZV=/\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$/,JV=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eY=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tY=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Cl=e=>XV.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),Fi=e=>!!e&&Number.isInteger(Number(e)),_x=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),Wa=e=>WV.test(e),nY=()=>!0,rY=e=>ZV.test(e)&&!JV.test(e),q3=()=>!1,aY=e=>eY.test(e),iY=e=>tY.test(e),oY=e=>!we(e)&&!Se(e),sY=e=>jc(e,F3,q3),we=e=>B3.test(e),zo=e=>jc(e,K3,rY),Tx=e=>jc(e,fY,Ke),c2=e=>jc(e,z3,q3),lY=e=>jc(e,U3,iY),Hp=e=>jc(e,H3,aY),Se=e=>$3.test(e),ku=e=>Ec(e,K3),cY=e=>Ec(e,pY),u2=e=>Ec(e,z3),uY=e=>Ec(e,F3),dY=e=>Ec(e,U3),Gp=e=>Ec(e,H3,!0),jc=(e,t,n)=>{const r=B3.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ec=(e,t,n=!1)=>{const r=$3.exec(e);return r?r[1]?t(r[1]):n:!1},z3=e=>e==="position"||e==="percentage",U3=e=>e==="image"||e==="url",F3=e=>e==="length"||e==="size"||e==="bg-size",K3=e=>e==="length",fY=e=>e==="number",pY=e=>e==="family-name",H3=e=>e==="shadow",hY=()=>{const e=Yt("color"),t=Yt("font"),n=Yt("text"),r=Yt("font-weight"),a=Yt("tracking"),o=Yt("leading"),l=Yt("breakpoint"),c=Yt("container"),d=Yt("spacing"),f=Yt("radius"),m=Yt("shadow"),g=Yt("inset-shadow"),v=Yt("text-shadow"),b=Yt("drop-shadow"),A=Yt("blur"),x=Yt("perspective"),w=Yt("aspect"),C=Yt("ease"),j=Yt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...M(),Se,we],_=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],P=()=>[Se,we,d],k=()=>[Cl,"full","auto",...P()],z=()=>[Fi,"none","subgrid",Se,we],B=()=>["auto",{span:["full",Fi,Se,we]},Fi,Se,we],L=()=>[Fi,"auto",Se,we],U=()=>["auto","min","max","fr",Se,we],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...P()],K=()=>[Cl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],F=()=>[e,Se,we],X=()=>[...M(),u2,c2,{position:[Se,we]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",uY,sY,{size:[Se,we]}],V=()=>[_x,ku,zo],Y=()=>["","none","full",f,Se,we],ee=()=>["",Ke,ku,zo],ue=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[Ke,_x,u2,c2],ve=()=>["","none",A,Se,we],de=()=>["none",Ke,Se,we],Z=()=>["none",Ke,Se,we],he=()=>[Ke,Se,we],ie=()=>[Cl,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wa],breakpoint:[Wa],color:[nY],container:[Wa],"drop-shadow":[Wa],ease:["in","out","in-out"],font:[oY],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wa],shadow:[Wa],spacing:["px",Ke],text:[Wa],"text-shadow":[Wa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Cl,we,Se,w]}],container:["container"],columns:[{columns:[Ke,we,Se,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Fi,"auto",Se,we]}],basis:[{basis:[Cl,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,Cl,"auto","initial","none",we]}],grow:[{grow:["",Ke,Se,we]}],shrink:[{shrink:["",Ke,Se,we]}],order:[{order:[Fi,"first","last","none",Se,we]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[c,"screen",...K()]}],"min-w":[{"min-w":[c,"screen","none",...K()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,ku,zo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Se,Tx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_x,we]}],"font-family":[{font:[cY,we,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Se,we]}],"line-clamp":[{"line-clamp":[Ke,"none",Se,Tx]}],leading:[{leading:[o,...P()]}],"list-image":[{"list-image":["none",Se,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Se,zo]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Ke,"auto",Se,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Se,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fi,Se,we],radial:["",Se,we],conic:[Fi,Se,we]},dY,lY]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:V()}],"gradient-via-pos":[{via:V()}],"gradient-to-pos":[{to:V()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Se,we]}],"outline-w":[{outline:["",Ke,ku,zo]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",m,Gp,Hp]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,Gp,Hp]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Ke,zo]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",v,Gp,Hp]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Ke,Se,we]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Se,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,we]}],filter:[{filter:["","none",Se,we]}],blur:[{blur:ve()}],brightness:[{brightness:[Ke,Se,we]}],contrast:[{contrast:[Ke,Se,we]}],"drop-shadow":[{"drop-shadow":["","none",b,Gp,Hp]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Ke,Se,we]}],"hue-rotate":[{"hue-rotate":[Ke,Se,we]}],invert:[{invert:["",Ke,Se,we]}],saturate:[{saturate:[Ke,Se,we]}],sepia:[{sepia:["",Ke,Se,we]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,we]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Se,we]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Se,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Se,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Se,we]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Se,we]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Se,we]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Se,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Se,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Se,we]}],ease:[{ease:["linear","initial",C,Se,we]}],delay:[{delay:[Ke,Se,we]}],animate:[{animate:["none",j,Se,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Se,we]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:Z()}],"scale-x":[{"scale-x":Z()}],"scale-y":[{"scale-y":Z()}],"scale-z":[{"scale-z":Z()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[Se,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ie()}],"translate-x":[{"translate-x":ie()}],"translate-y":[{"translate-y":ie()}],"translate-z":[{"translate-z":ie()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Se,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Se,we]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[Ke,ku,zo,Tx]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gY=QV(hY);function Ve(...e){return gY(Le(e))}function _O({delayDuration:e=0,...t}){return h.jsx(NV,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}function Nx({...e}){return h.jsx(_O,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:h.jsx(RV,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...e})})}function Rx({...e}){return h.jsx(MV,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...e})}function Mx({className:e,sideOffset:t=0,children:n,...r}){return h.jsx(PV,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:h.jsxs(DV,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:t,className:Ve("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,h.jsx(kV,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}const d2=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,f2=Le,TO=(e,t)=>n=>{var r;if(t?.variants==null)return f2(e,n?.class,n?.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(f=>{const m=n?.[f],g=o?.[f];if(m===null)return null;const v=d2(m)||d2(g);return a[f][v]}),c=n&&Object.entries(n).reduce((f,m)=>{let[g,v]=m;return v===void 0||(f[g]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:g,className:v,...b}=m;return Object.entries(b).every(A=>{let[x,w]=A;return Array.isArray(w)?w.includes({...o,...c}[x]):{...o,...c}[x]===w})?[...f,g,v]:f},[]);return f2(e,l,d,n?.class,n?.className)},mY=TO("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Pe({className:e,variant:t,size:n,asChild:r=!1,...a}){const o=r?W5:"button";return h.jsx(o,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Ve(mY({variant:t,size:n,className:e})),...a})}function Ze({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:Ve("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function ur({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:Ve("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function dr({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:Ve("leading-none font-semibold",e),...t})}function G3({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:Ve("text-muted-foreground text-sm",e),...t})}function Je({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:Ve("px-6",e),...t})}/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vY=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),V3=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var yY={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xY=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...c},d)=>E.createElement("svg",{ref:d,...yY,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:V3("lucide",a),...c},[...l.map(([f,m])=>E.createElement(f,m)),...Array.isArray(o)?o:[o]]));/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ee=(e,t)=>{const n=E.forwardRef(({className:r,...a},o)=>E.createElement(xY,{ref:o,iconNode:t,className:V3(`lucide-${vY(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Mh=Ee("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ml=Ee("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Y3=Ee("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const NO=Ee("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dl=Ee("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bY=Ee("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CS=Ee("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wY=Ee("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const em=Ee("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Q3=Ee("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const RO=Ee("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ph=Ee("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Dr=Ee("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vd=Ee("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const SY=Ee("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _c=Ee("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const MO=Ee("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const AY=Ee("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const OY=Ee("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CY=Ee("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const X3=Ee("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jY=Ee("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const fs=Ee("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const EY=Ee("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const PO=Ee("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const vh=Ee("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _Y=Ee("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const TY=Ee("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cn=Ee("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const NY=Ee("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const RY=Ee("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const MY=Ee("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const PY=Ee("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"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const W3=Ee("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const jS=Ee("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const df=Ee("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const DY=Ee("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const js=Ee("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kY=Ee("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IY=Ee("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Z3=Ee("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const LY=Ee("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const io=Ee("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ES=Ee("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const J3=Ee("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e4=Ee("ToggleLeft",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"6",ry:"6",key:"f2vt7d"}],["circle",{cx:"8",cy:"12",r:"2",key:"1nvbw3"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const t4=Ee("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const n4=Ee("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ps=Ee("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const p2=Ee("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const _S=Ee("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const BY=Ee("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $Y=Ee("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qY=Ee("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ed=Ee("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function zY(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,o,l=[],c="",d=e.split("/");for(d[0]||d.shift();a=d.shift();)n=a[0],n==="*"?(l.push(n),c+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),o=a.indexOf(".",1),l.push(a.substring(1,~r?r:~o?o:a.length)),c+=~r&&!~o?"(?:/([^/]+?))?":"/([^/]+?)",~o&&(c+=(~r?"?":"")+"\\"+a.substring(o))):c+="/"+a;return{keys:l,pattern:new RegExp("^"+c+(t?"(?=$|/)":"/?$"),"i")}}const UY=Bg.useInsertionEffect,FY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KY=FY?E.useLayoutEffect:E.useEffect,HY=UY||KY,r4=e=>{const t=E.useRef([e,(...n)=>t[0](...n)]).current;return HY(()=>{t[0]=e}),t[1]},GY="popstate",DO="pushState",kO="replaceState",VY="hashchange",h2=[GY,DO,kO,VY],YY=e=>{for(const t of h2)addEventListener(t,e);return()=>{for(const t of h2)removeEventListener(t,e)}},a4=(e,t)=>D5.useSyncExternalStore(YY,e,t),QY=()=>location.search,XY=({ssrSearch:e=""}={})=>a4(QY,()=>e),g2=()=>location.pathname,WY=({ssrPath:e}={})=>a4(g2,e?()=>e:g2),ZY=(e,{replace:t=!1,state:n=null}={})=>history[t?kO:DO](n,"",e),JY=(e={})=>[WY(e),ZY],m2=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[m2]>"u"){for(const e of[DO,kO]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,m2,{value:!0})}const eQ=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",i4=(e="")=>e==="/"?"":e,tQ=(e,t)=>e[0]==="~"?e.slice(1):i4(t)+e,nQ=(e="",t)=>eQ(TS(i4(e)),TS(t)),rQ=e=>e[0]==="?"?e.slice(1):e,TS=e=>{try{return decodeURI(e)}catch{return e}},aQ=e=>TS(rQ(e)),o4={hook:JY,searchHook:XY,parser:zY,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},s4=E.createContext(o4),Tc=()=>E.useContext(s4),l4={},c4=E.createContext(l4),iQ=()=>E.useContext(c4),tm=e=>{const[t,n]=e.hook(e);return[nQ(e.base,t),r4((r,a)=>n(tQ(r,e.base),a))]},nm=()=>tm(Tc()),oQ=()=>{const e=Tc();return aQ(e.searchHook(e))},u4=(e,t,n,r)=>{const{pattern:a,keys:o}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),l=a.exec(n)||[],[c,...d]=l;return c!==void 0?[!0,(()=>{const f=o!==!1?Object.fromEntries(o.map((g,v)=>[g,d[v]])):l.groups;let m={...d};return f&&Object.assign(m,f),m})(),...r?[c]:[]]:[!1,null]},sQ=({children:e,...t})=>{const n=Tc(),r=t.hook?o4:n;let a=r;const[o,l]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=l,t.ssrPath=o),t.hrefs=t.hrefs??t.hook?.hrefs;let c=E.useRef({}),d=c.current,f=d;for(let m in r){const g=m==="base"?r[m]+(t[m]||""):t[m]||r[m];d===f&&g!==f[m]&&(c.current=f={...f}),f[m]=g,(g!==r[m]||g!==a[m])&&(a=f)}return E.createElement(s4.Provider,{value:a,children:e})},v2=({children:e,component:t},n)=>t?E.createElement(t,{params:n}):typeof e=="function"?e(n):e,lQ=e=>{let t=E.useRef(l4);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},ar=({path:e,nest:t,match:n,...r})=>{const a=Tc(),[o]=tm(a),[l,c,d]=n??u4(a.parser,e,o,t),f=lQ({...iQ(),...c});if(!l)return null;const m=d?E.createElement(sQ,{base:d},v2(r,f)):v2(r,f);return E.createElement(c4.Provider,{value:f,children:m})},cQ=E.forwardRef((e,t)=>{const n=Tc(),[r,a]=tm(n),{to:o="",href:l=o,onClick:c,asChild:d,children:f,className:m,replace:g,state:v,...b}=e,A=r4(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(c?.(w),w.defaultPrevented||(w.preventDefault(),a(l,e)))}),x=n.hrefs(l[0]==="~"?l.slice(1):n.base+l,n);return d&&E.isValidElement(f)?E.cloneElement(f,{onClick:A,href:x}):E.createElement("a",{...b,onClick:A,href:x,className:m?.call?m(r===l):m,children:f,ref:t})}),NS=e=>Array.isArray(e)?e.flatMap(t=>NS(t&&t.type===E.Fragment?t.props.children:t)):[e],uQ=({children:e,location:t})=>{const n=Tc(),[r]=tm(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),NS(e).forEach(o=>{if(E.isValidElement(o)&&o.props.path){const l=o.props.path;window.__WOUTER_ROUTES__.includes(l)||window.__WOUTER_ROUTES__.push(l)}}));for(const a of NS(e)){let o=0;if(E.isValidElement(a)&&(o=u4(n.parser,a.props.path,t||r,a.props.nest))[0])return E.cloneElement(a,{match:o})}return null};function y2(){const[,e]=nm(),t=()=>{e("/")};return h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:h.jsx(Ze,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:h.jsxs(Je,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:h.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),h.jsx(Ph,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),h.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),h.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),h.jsxs("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",h.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),h.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:h.jsxs(Pe,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[h.jsx(EY,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class dQ extends E.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?h.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:h.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[h.jsx(ps,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),h.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),h.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:h.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),h.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Ve("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[h.jsx(kY,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const fQ=E.createContext(void 0);function pQ({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,a]=E.useState(()=>n&&localStorage.getItem("theme")||t);E.useEffect(()=>{const l=document.documentElement;r==="dark"?l.classList.add("dark"):l.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const o=n?()=>{a(l=>l==="light"?"dark":"light")}:void 0;return h.jsx(fQ.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:o,switchable:n},children:e})}var Px="focusScope.autoFocusOnMount",Dx="focusScope.autoFocusOnUnmount",x2={bubbles:!1,cancelable:!0},hQ="FocusScope",rm=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[c,d]=E.useState(null),f=Sa(a),m=Sa(o),g=E.useRef(null),v=ct(t,x=>d(x)),b=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let x=function(T){if(b.paused||!c)return;const M=T.target;c.contains(M)?g.current=M:Hi(g.current,{select:!0})},w=function(T){if(b.paused||!c)return;const M=T.relatedTarget;M!==null&&(c.contains(M)||Hi(g.current,{select:!0}))},C=function(T){if(document.activeElement===document.body)for(const O of T)O.removedNodes.length>0&&Hi(c)};document.addEventListener("focusin",x),document.addEventListener("focusout",w);const j=new MutationObserver(C);return c&&j.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),j.disconnect()}}},[r,c,b.paused]),E.useEffect(()=>{if(c){w2.add(b);const x=document.activeElement;if(!c.contains(x)){const C=new CustomEvent(Px,x2);c.addEventListener(Px,f),c.dispatchEvent(C),C.defaultPrevented||(gQ(bQ(d4(c)),{select:!0}),document.activeElement===x&&Hi(c))}return()=>{c.removeEventListener(Px,f),setTimeout(()=>{const C=new CustomEvent(Dx,x2);c.addEventListener(Dx,m),c.dispatchEvent(C),C.defaultPrevented||Hi(x??document.body,{select:!0}),c.removeEventListener(Dx,m),w2.remove(b)},0)}}},[c,f,m,b]);const A=E.useCallback(x=>{if(!n&&!r||b.paused)return;const w=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,C=document.activeElement;if(w&&C){const j=x.currentTarget,[T,M]=mQ(j);T&&M?!x.shiftKey&&C===M?(x.preventDefault(),n&&Hi(T,{select:!0})):x.shiftKey&&C===T&&(x.preventDefault(),n&&Hi(M,{select:!0})):C===j&&x.preventDefault()}},[n,r,b.paused]);return h.jsx(Fe.div,{tabIndex:-1,...l,ref:v,onKeyDown:A})});rm.displayName=hQ;function gQ(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hi(r,{select:t}),document.activeElement!==n)return}function mQ(e){const t=d4(e),n=b2(t,e),r=b2(t.reverse(),e);return[n,r]}function d4(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function b2(e,t){for(const n of e)if(!vQ(n,{upTo:t}))return n}function vQ(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 yQ(e){return e instanceof HTMLInputElement&&"select"in e}function Hi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&yQ(e)&&t&&e.select()}}var w2=xQ();function xQ(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=S2(e,t),e.unshift(t)},remove(t){e=S2(e,t),e[0]?.resume()}}}function S2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function bQ(e){return e.filter(t=>t.tagName!=="A")}var kx=0;function IO(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??A2()),document.body.insertAdjacentElement("beforeend",e[1]??A2()),kx++,()=>{kx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),kx--}},[])}function A2(){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 fa=function(){return fa=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},fa.apply(this,arguments)};function f4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function wQ(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var yh="right-scroll-bar-position",xh="width-before-scroll-bar",SQ="with-scroll-bars-hidden",AQ="--removed-body-scroll-bar-size";function Ix(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function OQ(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var CQ=typeof window<"u"?E.useLayoutEffect:E.useEffect,O2=new WeakMap;function jQ(e,t){var n=OQ(null,function(r){return e.forEach(function(a){return Ix(a,r)})});return CQ(function(){var r=O2.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(c){o.has(c)||Ix(c,null)}),o.forEach(function(c){a.has(c)||Ix(c,l)})}O2.set(n,e)},[e]),n}function EQ(e){return e}function _Q(e,t){t===void 0&&(t=EQ);var n=[],r=!1,a={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(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var d=function(){var m=l;l=[],m.forEach(o)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return a}function TQ(e){e===void 0&&(e={});var t=_Q(null);return t.options=fa({async:!0,ssr:!1},e),t}var p4=function(e){var t=e.sideCar,n=f4(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 E.createElement(r,fa({},n))};p4.isSideCarExport=!0;function NQ(e,t){return e.useMedium(t),p4}var h4=TQ(),Lx=function(){},am=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:Lx,onWheelCapture:Lx,onTouchMoveCapture:Lx}),a=r[0],o=r[1],l=e.forwardProps,c=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,b=e.noRelative,A=e.noIsolation,x=e.inert,w=e.allowPinchZoom,C=e.as,j=C===void 0?"div":C,T=e.gapMode,M=f4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=v,_=jQ([n,t]),N=fa(fa({},M),a);return E.createElement(E.Fragment,null,m&&E.createElement(O,{sideCar:h4,removeScrollBar:f,shards:g,noRelative:b,noIsolation:A,inert:x,setCallbacks:o,allowPinchZoom:!!w,lockRef:n,gapMode:T}),l?E.cloneElement(E.Children.only(c),fa(fa({},N),{ref:_})):E.createElement(j,fa({},N,{className:d,ref:_}),c))});am.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};am.classNames={fullWidth:xh,zeroRight:yh};var RQ=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function MQ(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=RQ();return t&&e.setAttribute("nonce",t),e}function PQ(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function DQ(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var kQ=function(){var e=0,t=null;return{add:function(n){e==0&&(t=MQ())&&(PQ(t,n),DQ(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},IQ=function(){var e=kQ();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},g4=function(){var e=IQ(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},LQ={left:0,top:0,right:0,gap:0},Bx=function(e){return parseInt(e||"",10)||0},BQ=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Bx(n),Bx(r),Bx(a)]},$Q=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return LQ;var t=BQ(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])}},qQ=g4(),zl="data-scroll-locked",zQ=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(SQ,` {
|
||
overflow: hidden `).concat(r,`;
|
||
padding-right: `).concat(c,"px ").concat(r,`;
|
||
}
|
||
body[`).concat(zl,`] {
|
||
overflow: hidden `).concat(r,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
||
padding-left: `.concat(a,`px;
|
||
padding-top: `).concat(o,`px;
|
||
padding-right: `).concat(l,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(c,"px ").concat(r,`;
|
||
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(yh,` {
|
||
right: `).concat(c,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(xh,` {
|
||
margin-right: `).concat(c,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(yh," .").concat(yh,` {
|
||
right: 0 `).concat(r,`;
|
||
}
|
||
|
||
.`).concat(xh," .").concat(xh,` {
|
||
margin-right: 0 `).concat(r,`;
|
||
}
|
||
|
||
body[`).concat(zl,`] {
|
||
`).concat(AQ,": ").concat(c,`px;
|
||
}
|
||
`)},C2=function(){var e=parseInt(document.body.getAttribute(zl)||"0",10);return isFinite(e)?e:0},UQ=function(){E.useEffect(function(){return document.body.setAttribute(zl,(C2()+1).toString()),function(){var e=C2()-1;e<=0?document.body.removeAttribute(zl):document.body.setAttribute(zl,e.toString())}},[])},FQ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;UQ();var o=E.useMemo(function(){return $Q(a)},[a]);return E.createElement(qQ,{styles:zQ(o,!t,a,n?"":"!important")})},RS=!1;if(typeof window<"u")try{var Vp=Object.defineProperty({},"passive",{get:function(){return RS=!0,!0}});window.addEventListener("test",Vp,Vp),window.removeEventListener("test",Vp,Vp)}catch{RS=!1}var jl=RS?{passive:!1}:!1,KQ=function(e){return e.tagName==="TEXTAREA"},m4=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KQ(e)&&n[t]==="visible")},HQ=function(e){return m4(e,"overflowY")},GQ=function(e){return m4(e,"overflowX")},j2=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=v4(e,r);if(a){var o=y4(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},VQ=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YQ=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},v4=function(e,t){return e==="v"?HQ(t):GQ(t)},y4=function(e,t){return e==="v"?VQ(t):YQ(t)},QQ=function(e,t){return e==="h"&&t==="rtl"?-1:1},XQ=function(e,t,n,r,a){var o=QQ(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,d=t.contains(c),f=!1,m=l>0,g=0,v=0;do{if(!c)break;var b=y4(e,c),A=b[0],x=b[1],w=b[2],C=x-w-o*A;(A||C)&&v4(e,c)&&(g+=C,v+=A);var j=c.parentNode;c=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(m&&Math.abs(g)<1||!m&&Math.abs(v)<1)&&(f=!0),f},Yp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E2=function(e){return[e.deltaX,e.deltaY]},_2=function(e){return e&&"current"in e?e.current:e},WQ=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ZQ=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},JQ=0,El=[];function eX(e){var t=E.useRef([]),n=E.useRef([0,0]),r=E.useRef(),a=E.useState(JQ++)[0],o=E.useState(g4)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=wQ([e.lockRef.current],(e.shards||[]).map(_2),!0).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var C=Yp(x),j=n.current,T="deltaX"in x?x.deltaX:j[0]-C[0],M="deltaY"in x?x.deltaY:j[1]-C[1],O,_=x.target,N=Math.abs(T)>Math.abs(M)?"h":"v";if("touches"in x&&N==="h"&&_.type==="range")return!1;var P=j2(N,_);if(!P)return!0;if(P?O=N:(O=N==="v"?"h":"v",P=j2(N,_)),!P)return!1;if(!r.current&&"changedTouches"in x&&(T||M)&&(r.current=O),!O)return!0;var k=r.current||O;return XQ(k,w,x,k==="h"?T:M)},[]),d=E.useCallback(function(x){var w=x;if(!(!El.length||El[El.length-1]!==o)){var C="deltaY"in w?E2(w):Yp(w),j=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&WQ(O.delta,C)})[0];if(j&&j.should){w.cancelable&&w.preventDefault();return}if(!j){var T=(l.current.shards||[]).map(_2).filter(Boolean).filter(function(O){return O.contains(w.target)}),M=T.length>0?c(w,T[0]):!l.current.noIsolation;M&&w.cancelable&&w.preventDefault()}}},[]),f=E.useCallback(function(x,w,C,j){var T={name:x,delta:w,target:C,should:j,shadowParent:tX(C)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(M){return M!==T})},1)},[]),m=E.useCallback(function(x){n.current=Yp(x),r.current=void 0},[]),g=E.useCallback(function(x){f(x.type,E2(x),x.target,c(x,e.lockRef.current))},[]),v=E.useCallback(function(x){f(x.type,Yp(x),x.target,c(x,e.lockRef.current))},[]);E.useEffect(function(){return El.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",d,jl),document.addEventListener("touchmove",d,jl),document.addEventListener("touchstart",m,jl),function(){El=El.filter(function(x){return x!==o}),document.removeEventListener("wheel",d,jl),document.removeEventListener("touchmove",d,jl),document.removeEventListener("touchstart",m,jl)}},[]);var b=e.removeScrollBar,A=e.inert;return E.createElement(E.Fragment,null,A?E.createElement(o,{styles:ZQ(a)}):null,b?E.createElement(FQ,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function tX(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nX=NQ(h4,eX);var im=E.forwardRef(function(e,t){return E.createElement(am,fa({},e,{ref:t,sideCar:nX}))});im.classNames=am.classNames;var rX=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_l=new WeakMap,Qp=new WeakMap,Xp={},$x=0,x4=function(e){return e&&(e.host||x4(e.parentNode))},aX=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=x4(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})},iX=function(e,t,n,r){var a=aX(t,Array.isArray(e)?e:[e]);Xp[n]||(Xp[n]=new WeakMap);var o=Xp[n],l=[],c=new Set,d=new Set(a),f=function(g){!g||c.has(g)||(c.add(g),f(g.parentNode))};a.forEach(f);var m=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(v){if(c.has(v))m(v);else try{var b=v.getAttribute(r),A=b!==null&&b!=="false",x=(_l.get(v)||0)+1,w=(o.get(v)||0)+1;_l.set(v,x),o.set(v,w),l.push(v),x===1&&A&&Qp.set(v,!0),w===1&&v.setAttribute(n,"true"),A||v.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",v,C)}})};return m(t),c.clear(),$x++,function(){l.forEach(function(g){var v=_l.get(g)-1,b=o.get(g)-1;_l.set(g,v),o.set(g,b),v||(Qp.has(g)||g.removeAttribute(r),Qp.delete(g)),b||g.removeAttribute(n)}),$x--,$x||(_l=new WeakMap,_l=new WeakMap,Qp=new WeakMap,Xp={})}},LO=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=rX(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),iX(r,a,n,"aria-hidden")):function(){return null}},om="Dialog",[b4]=Ea(om),[oX,Jr]=b4(om),w4=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=E.useRef(null),d=E.useRef(null),[f,m]=ds({prop:r,defaultProp:a??!1,onChange:o,caller:om});return h.jsx(oX,{scope:t,triggerRef:c,contentRef:d,contentId:va(),titleId:va(),descriptionId:va(),open:f,onOpenChange:m,onOpenToggle:E.useCallback(()=>m(g=>!g),[m]),modal:l,children:n})};w4.displayName=om;var S4="DialogTrigger",A4=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Jr(S4,n),o=ct(t,a.triggerRef);return h.jsx(Fe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":qO(a.open),...r,ref:o,onClick:Ae(e.onClick,a.onOpenToggle)})});A4.displayName=S4;var BO="DialogPortal",[sX,O4]=b4(BO,{forceMount:void 0}),C4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Jr(BO,t);return h.jsx(sX,{scope:t,forceMount:n,children:E.Children.map(r,l=>h.jsx(Ta,{present:n||o.open,children:h.jsx(cf,{asChild:!0,container:a,children:l})}))})};C4.displayName=BO;var Dh="DialogOverlay",j4=E.forwardRef((e,t)=>{const n=O4(Dh,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Jr(Dh,e.__scopeDialog);return o.modal?h.jsx(Ta,{present:r||o.open,children:h.jsx(cX,{...a,ref:t})}):null});j4.displayName=Dh;var lX=cs("DialogOverlay.RemoveScroll"),cX=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Jr(Dh,n);return h.jsx(im,{as:lX,allowPinchZoom:!0,shards:[a.contentRef],children:h.jsx(Fe.div,{"data-state":qO(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),hs="DialogContent",E4=E.forwardRef((e,t)=>{const n=O4(hs,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Jr(hs,e.__scopeDialog);return h.jsx(Ta,{present:r||o.open,children:o.modal?h.jsx(uX,{...a,ref:t}):h.jsx(dX,{...a,ref:t})})});E4.displayName=hs;var uX=E.forwardRef((e,t)=>{const n=Jr(hs,e.__scopeDialog),r=E.useRef(null),a=ct(t,n.contentRef,r);return E.useEffect(()=>{const o=r.current;if(o)return LO(o)},[]),h.jsx(_4,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ae(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ae(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:Ae(e.onFocusOutside,o=>o.preventDefault())})}),dX=E.forwardRef((e,t)=>{const n=Jr(hs,e.__scopeDialog),r=E.useRef(!1),a=E.useRef(!1);return h.jsx(_4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;n.triggerRef.current?.contains(l)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),_4=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,c=Jr(hs,n),d=E.useRef(null),f=ct(t,d);return IO(),h.jsxs(h.Fragment,{children:[h.jsx(rm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:h.jsx(sf,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":qO(c.open),...l,ref:f,onDismiss:()=>c.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(pX,{titleId:c.titleId}),h.jsx(gX,{contentRef:d,descriptionId:c.descriptionId})]})]})}),$O="DialogTitle",T4=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Jr($O,n);return h.jsx(Fe.h2,{id:a.titleId,...r,ref:t})});T4.displayName=$O;var N4="DialogDescription",fX=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Jr(N4,n);return h.jsx(Fe.p,{id:a.descriptionId,...r,ref:t})});fX.displayName=N4;var R4="DialogClose",M4=E.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Jr(R4,n);return h.jsx(Fe.button,{type:"button",...r,ref:t,onClick:Ae(e.onClick,()=>a.onOpenChange(!1))})});M4.displayName=R4;function qO(e){return e?"open":"closed"}var P4="DialogTitleWarning",[vve,D4]=OH(P4,{contentName:hs,titleName:$O,docsSlug:"dialog"}),pX=({titleId:e})=>{const t=D4(P4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
||
|
||
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
||
|
||
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},hX="DialogDescriptionWarning",gX=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${D4(hX).contentName}}.`;return E.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},mX=w4,vX=A4,yX=C4,xX=j4,bX=E4,wX=T4,SX=M4;const k4=E.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),zO=()=>E.useContext(k4);function oo({...e}){const t=E.useRef(!1),n=E.useRef(!1),r=E.useRef(null),a=E.useMemo(()=>({isComposing:()=>t.current,setComposing:o=>{t.current=o},justEndedComposing:()=>n.current,markCompositionEnd:()=>{n.current=!0,r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{n.current=!1},150)}}),[]);return h.jsx(k4.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:a,children:h.jsx(mX,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function Ql({...e}){return h.jsx(vX,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...e})}function AX({...e}){return h.jsx(yX,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function I4({className:e,...t}){return h.jsx(xX,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:Ve("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}I4.displayName="DialogOverlay";function so({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...a}){const{isComposing:o}=zO(),l=E.useCallback(c=>{if(c.isComposing||o()){c.preventDefault();return}r?.(c)},[o,r]);return h.jsxs(AX,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[h.jsx(I4,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),h.jsxs(bX,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:Ve("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:l,...a,children:[t,n&&h.jsxs(SX,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[h.jsx(qY,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),h.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function lo({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:Ve("flex flex-col gap-2 text-center sm:text-left",e),...t})}function co({className:e,...t}){return h.jsx(wX,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:Ve("text-lg leading-none font-semibold",e),...t})}function Wp(e){const t=E.useRef(e);t.current=e;const n=E.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function L4(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,a=E.useRef(!1),o=E.useRef(null),l=E.useRef(null),c=Wp(g=>{o.current&&(clearTimeout(o.current),o.current=null),l.current&&(clearTimeout(l.current),l.current=null),a.current=!0,n?.(g)}),d=Wp(g=>{o.current=setTimeout(()=>{l.current=setTimeout(()=>{a.current=!1})}),r?.(g)}),f=Wp(g=>{if(a.current&&(g.key==="Escape"||g.key==="Enter"&&!g.shiftKey)){g.stopPropagation();return}t?.(g)}),m=Wp(()=>a.current);return{onCompositionStart:c,onCompositionEnd:d,onKeyDown:f,isComposing:m}}function Wt({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:a,...o}){const l=zO(),{onCompositionStart:c,onCompositionEnd:d,onKeyDown:f}=L4({onKeyDown:m=>{const g=m.nativeEvent.isComposing||l.justEndedComposing();m.key==="Enter"&&g||n?.(m)},onCompositionStart:m=>{l.setComposing(!0),r?.(m)},onCompositionEnd:m=>{l.markCompositionEnd(),setTimeout(()=>{l.setComposing(!1)},100),a?.(m)}});return h.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:Ve("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),onCompositionStart:c,onCompositionEnd:d,onKeyDown:f,...o})}var OX="Label",B4=E.forwardRef((e,t)=>h.jsx(Fe.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));B4.displayName=OX;var CX=B4;function tt({className:e,...t}){return h.jsx(CX,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:Ve("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}const jX=TO("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function EX({className:e,variant:t,...n}){return h.jsx("div",{"data-loc":"client/src/components/ui/alert.tsx:28","data-slot":"alert",role:"alert",className:Ve(jX({variant:t}),e),...n})}function _X({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/alert.tsx:55","data-slot":"alert-description",className:Ve("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t})}function UO(e){const t=e+"CollectionProvider",[n,r]=Ea(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:w,children:C}=x,j=$.useRef(null),T=$.useRef(new Map).current;return h.jsx(a,{scope:w,itemMap:T,collectionRef:j,children:C})};l.displayName=t;const c=e+"CollectionSlot",d=cs(c),f=$.forwardRef((x,w)=>{const{scope:C,children:j}=x,T=o(c,C),M=ct(w,T.collectionRef);return h.jsx(d,{ref:M,children:j})});f.displayName=c;const m=e+"CollectionItemSlot",g="data-radix-collection-item",v=cs(m),b=$.forwardRef((x,w)=>{const{scope:C,children:j,...T}=x,M=$.useRef(null),O=ct(w,M),_=o(m,C);return $.useEffect(()=>(_.itemMap.set(M,{ref:M,...T}),()=>void _.itemMap.delete(M))),h.jsx(v,{[g]:"",ref:O,children:j})});b.displayName=m;function A(x){const w=o(e+"CollectionConsumer",x);return $.useCallback(()=>{const j=w.collectionRef.current;if(!j)return[];const T=Array.from(j.querySelectorAll(`[${g}]`));return Array.from(w.itemMap.values()).sort((_,N)=>T.indexOf(_.ref.current)-T.indexOf(N.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:f,ItemSlot:b},A,r]}var TX=E.createContext(void 0);function FO(e){const t=E.useContext(TX);return e||t||"ltr"}var qx="rovingFocusGroup.onEntryFocus",NX={bubbles:!1,cancelable:!0},ff="RovingFocusGroup",[MS,$4,RX]=UO(ff),[MX,q4]=Ea(ff,[RX]),[PX,DX]=MX(ff),z4=E.forwardRef((e,t)=>h.jsx(MS.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(MS.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(kX,{...e,ref:t})})}));z4.displayName=ff;var kX=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...g}=e,v=E.useRef(null),b=ct(t,v),A=FO(o),[x,w]=ds({prop:l,defaultProp:c??null,onChange:d,caller:ff}),[C,j]=E.useState(!1),T=Sa(f),M=$4(n),O=E.useRef(!1),[_,N]=E.useState(0);return E.useEffect(()=>{const P=v.current;if(P)return P.addEventListener(qx,T),()=>P.removeEventListener(qx,T)},[T]),h.jsx(PX,{scope:n,orientation:r,dir:A,loop:a,currentTabStopId:x,onItemFocus:E.useCallback(P=>w(P),[w]),onItemShiftTab:E.useCallback(()=>j(!0),[]),onFocusableItemAdd:E.useCallback(()=>N(P=>P+1),[]),onFocusableItemRemove:E.useCallback(()=>N(P=>P-1),[]),children:h.jsx(Fe.div,{tabIndex:C||_===0?-1:0,"data-orientation":r,...g,ref:b,style:{outline:"none",...e.style},onMouseDown:Ae(e.onMouseDown,()=>{O.current=!0}),onFocus:Ae(e.onFocus,P=>{const k=!O.current;if(P.target===P.currentTarget&&k&&!C){const z=new CustomEvent(qx,NX);if(P.currentTarget.dispatchEvent(z),!z.defaultPrevented){const B=M().filter(D=>D.focusable),L=B.find(D=>D.active),U=B.find(D=>D.id===x),Q=[L,U,...B].filter(Boolean).map(D=>D.ref.current);K4(Q,m)}}O.current=!1}),onBlur:Ae(e.onBlur,()=>j(!1))})})}),U4="RovingFocusGroupItem",F4=E.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:a=!1,tabStopId:o,children:l,...c}=e,d=va(),f=o||d,m=DX(U4,n),g=m.currentTabStopId===f,v=$4(n),{onFocusableItemAdd:b,onFocusableItemRemove:A,currentTabStopId:x}=m;return E.useEffect(()=>{if(r)return b(),()=>A()},[r,b,A]),h.jsx(MS.ItemSlot,{scope:n,id:f,focusable:r,active:a,children:h.jsx(Fe.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:Ae(e.onMouseDown,w=>{r?m.onItemFocus(f):w.preventDefault()}),onFocus:Ae(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:Ae(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){m.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const C=BX(w,m.orientation,m.dir);if(C!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let T=v().filter(M=>M.focusable).map(M=>M.ref.current);if(C==="last")T.reverse();else if(C==="prev"||C==="next"){C==="prev"&&T.reverse();const M=T.indexOf(w.currentTarget);T=m.loop?$X(T,M+1):T.slice(M+1)}setTimeout(()=>K4(T))}}),children:typeof l=="function"?l({isCurrentTabStop:g,hasTabStop:x!=null}):l})})});F4.displayName=U4;var IX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function LX(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function BX(e,t,n){const r=LX(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return IX[r]}function K4(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function $X(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var qX=z4,zX=F4,PS=["Enter"," "],UX=["ArrowDown","PageUp","Home"],H4=["ArrowUp","PageDown","End"],FX=[...UX,...H4],KX={ltr:[...PS,"ArrowRight"],rtl:[...PS,"ArrowLeft"]},HX={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pf="Menu",[yd,GX,VX]=UO(pf),[Es,G4]=Ea(pf,[VX,Cc,q4]),sm=Cc(),V4=q4(),[YX,_s]=Es(pf),[QX,hf]=Es(pf),Y4=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:l=!0}=e,c=sm(t),[d,f]=E.useState(null),m=E.useRef(!1),g=Sa(o),v=FO(a);return E.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",A,{capture:!0,once:!0}),document.addEventListener("pointermove",A,{capture:!0,once:!0})},A=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",A,{capture:!0}),document.removeEventListener("pointermove",A,{capture:!0})}},[]),h.jsx(wO,{...c,children:h.jsx(YX,{scope:t,open:n,onOpenChange:g,content:d,onContentChange:f,children:h.jsx(QX,{scope:t,onClose:E.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:m,dir:v,modal:l,children:r})})})};Y4.displayName=pf;var XX="MenuAnchor",KO=E.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=sm(n);return h.jsx(SO,{...a,...r,ref:t})});KO.displayName=XX;var HO="MenuPortal",[WX,Q4]=Es(HO,{forceMount:void 0}),X4=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:a}=e,o=_s(HO,t);return h.jsx(WX,{scope:t,forceMount:n,children:h.jsx(Ta,{present:n||o.open,children:h.jsx(cf,{asChild:!0,container:a,children:r})})})};X4.displayName=HO;var Rr="MenuContent",[ZX,GO]=Es(Rr),W4=E.forwardRef((e,t)=>{const n=Q4(Rr,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=_s(Rr,e.__scopeMenu),l=hf(Rr,e.__scopeMenu);return h.jsx(yd.Provider,{scope:e.__scopeMenu,children:h.jsx(Ta,{present:r||o.open,children:h.jsx(yd.Slot,{scope:e.__scopeMenu,children:l.modal?h.jsx(JX,{...a,ref:t}):h.jsx(eW,{...a,ref:t})})})})}),JX=E.forwardRef((e,t)=>{const n=_s(Rr,e.__scopeMenu),r=E.useRef(null),a=ct(t,r);return E.useEffect(()=>{const o=r.current;if(o)return LO(o)},[]),h.jsx(VO,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ae(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),eW=E.forwardRef((e,t)=>{const n=_s(Rr,e.__scopeMenu);return h.jsx(VO,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tW=cs("MenuContent.ScrollLock"),VO=E.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b,disableOutsideScroll:A,...x}=e,w=_s(Rr,n),C=hf(Rr,n),j=sm(n),T=V4(n),M=GX(n),[O,_]=E.useState(null),N=E.useRef(null),P=ct(t,N,w.onContentChange),k=E.useRef(0),z=E.useRef(""),B=E.useRef(0),L=E.useRef(null),U=E.useRef("right"),H=E.useRef(0),Q=A?im:E.Fragment,D=A?{as:tW,allowPinchZoom:!0}:void 0,K=X=>{const oe=z.current+X,q=M().filter(se=>!se.disabled),V=document.activeElement,Y=q.find(se=>se.ref.current===V)?.textValue,ee=q.map(se=>se.textValue),ue=pW(ee,oe,Y),me=q.find(se=>se.textValue===ue)?.ref.current;(function se(ve){z.current=ve,window.clearTimeout(k.current),ve!==""&&(k.current=window.setTimeout(()=>se(""),1e3))})(oe),me&&setTimeout(()=>me.focus())};E.useEffect(()=>()=>window.clearTimeout(k.current),[]),IO();const F=E.useCallback(X=>U.current===L.current?.side&&gW(X,L.current?.area),[]);return h.jsx(ZX,{scope:n,searchRef:z,onItemEnter:E.useCallback(X=>{F(X)&&X.preventDefault()},[F]),onItemLeave:E.useCallback(X=>{F(X)||(N.current?.focus(),_(null))},[F]),onTriggerLeave:E.useCallback(X=>{F(X)&&X.preventDefault()},[F]),pointerGraceTimerRef:B,onPointerGraceIntentChange:E.useCallback(X=>{L.current=X},[]),children:h.jsx(Q,{...D,children:h.jsx(rm,{asChild:!0,trapped:a,onMountAutoFocus:Ae(o,X=>{X.preventDefault(),N.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:h.jsx(sf,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:v,onDismiss:b,children:h.jsx(qX,{asChild:!0,...T,dir:C.dir,orientation:"vertical",loop:r,currentTabStopId:O,onCurrentTabStopIdChange:_,onEntryFocus:Ae(d,X=>{C.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(AO,{role:"menu","aria-orientation":"vertical","data-state":pB(w.open),"data-radix-menu-content":"",dir:C.dir,...j,...x,ref:P,style:{outline:"none",...x.style},onKeyDown:Ae(x.onKeyDown,X=>{const q=X.target.closest("[data-radix-menu-content]")===X.currentTarget,V=X.ctrlKey||X.altKey||X.metaKey,Y=X.key.length===1;q&&(X.key==="Tab"&&X.preventDefault(),!V&&Y&&K(X.key));const ee=N.current;if(X.target!==ee||!FX.includes(X.key))return;X.preventDefault();const me=M().filter(se=>!se.disabled).map(se=>se.ref.current);H4.includes(X.key)&&me.reverse(),dW(me)}),onBlur:Ae(e.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(k.current),z.current="")}),onPointerMove:Ae(e.onPointerMove,xd(X=>{const oe=X.target,q=H.current!==X.clientX;if(X.currentTarget.contains(oe)&&q){const V=X.clientX>H.current?"right":"left";U.current=V,H.current=X.clientX}}))})})})})})})});W4.displayName=Rr;var nW="MenuGroup",YO=E.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(Fe.div,{role:"group",...r,ref:t})});YO.displayName=nW;var rW="MenuLabel",Z4=E.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(Fe.div,{...r,ref:t})});Z4.displayName=rW;var kh="MenuItem",T2="menu.itemSelect",lm=E.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...a}=e,o=E.useRef(null),l=hf(kh,e.__scopeMenu),c=GO(kh,e.__scopeMenu),d=ct(t,o),f=E.useRef(!1),m=()=>{const g=o.current;if(!n&&g){const v=new CustomEvent(T2,{bubbles:!0,cancelable:!0});g.addEventListener(T2,b=>r?.(b),{once:!0}),J5(g,v),v.defaultPrevented?f.current=!1:l.onClose()}};return h.jsx(J4,{...a,ref:d,disabled:n,onClick:Ae(e.onClick,m),onPointerDown:g=>{e.onPointerDown?.(g),f.current=!0},onPointerUp:Ae(e.onPointerUp,g=>{f.current||g.currentTarget?.click()}),onKeyDown:Ae(e.onKeyDown,g=>{const v=c.searchRef.current!=="";n||v&&g.key===" "||PS.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});lm.displayName=kh;var J4=E.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:a,...o}=e,l=GO(kh,n),c=V4(n),d=E.useRef(null),f=ct(t,d),[m,g]=E.useState(!1),[v,b]=E.useState("");return E.useEffect(()=>{const A=d.current;A&&b((A.textContent??"").trim())},[o.children]),h.jsx(yd.ItemSlot,{scope:n,disabled:r,textValue:a??v,children:h.jsx(zX,{asChild:!0,...c,focusable:!r,children:h.jsx(Fe.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:f,onPointerMove:Ae(e.onPointerMove,xd(A=>{r?l.onItemLeave(A):(l.onItemEnter(A),A.defaultPrevented||A.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ae(e.onPointerLeave,xd(A=>l.onItemLeave(A))),onFocus:Ae(e.onFocus,()=>g(!0)),onBlur:Ae(e.onBlur,()=>g(!1))})})})}),aW="MenuCheckboxItem",eB=E.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...a}=e;return h.jsx(iB,{scope:e.__scopeMenu,checked:n,children:h.jsx(lm,{role:"menuitemcheckbox","aria-checked":Ih(n)?"mixed":n,...a,ref:t,"data-state":XO(n),onSelect:Ae(a.onSelect,()=>r?.(Ih(n)?!0:!n),{checkForDefaultPrevented:!1})})})});eB.displayName=aW;var tB="MenuRadioGroup",[iW,oW]=Es(tB,{value:void 0,onValueChange:()=>{}}),nB=E.forwardRef((e,t)=>{const{value:n,onValueChange:r,...a}=e,o=Sa(r);return h.jsx(iW,{scope:e.__scopeMenu,value:n,onValueChange:o,children:h.jsx(YO,{...a,ref:t})})});nB.displayName=tB;var rB="MenuRadioItem",aB=E.forwardRef((e,t)=>{const{value:n,...r}=e,a=oW(rB,e.__scopeMenu),o=n===a.value;return h.jsx(iB,{scope:e.__scopeMenu,checked:o,children:h.jsx(lm,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":XO(o),onSelect:Ae(r.onSelect,()=>a.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});aB.displayName=rB;var QO="MenuItemIndicator",[iB,sW]=Es(QO,{checked:!1}),oB=E.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...a}=e,o=sW(QO,n);return h.jsx(Ta,{present:r||Ih(o.checked)||o.checked===!0,children:h.jsx(Fe.span,{...a,ref:t,"data-state":XO(o.checked)})})});oB.displayName=QO;var lW="MenuSeparator",sB=E.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(Fe.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});sB.displayName=lW;var cW="MenuArrow",lB=E.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,a=sm(n);return h.jsx(OO,{...a,...r,ref:t})});lB.displayName=cW;var uW="MenuSub",[yve,cB]=Es(uW),Hu="MenuSubTrigger",uB=E.forwardRef((e,t)=>{const n=_s(Hu,e.__scopeMenu),r=hf(Hu,e.__scopeMenu),a=cB(Hu,e.__scopeMenu),o=GO(Hu,e.__scopeMenu),l=E.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=o,f={__scopeMenu:e.__scopeMenu},m=E.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return E.useEffect(()=>m,[m]),E.useEffect(()=>{const g=c.current;return()=>{window.clearTimeout(g),d(null)}},[c,d]),h.jsx(KO,{asChild:!0,...f,children:h.jsx(J4,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":pB(n.open),...e,ref:Vg(t,a.onTriggerChange),onClick:g=>{e.onClick?.(g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ae(e.onPointerMove,xd(g=>{o.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(o.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:Ae(e.onPointerLeave,xd(g=>{m();const v=n.content?.getBoundingClientRect();if(v){const b=n.content?.dataset.side,A=b==="right",x=A?-5:5,w=v[A?"left":"right"],C=v[A?"right":"left"];o.onPointerGraceIntentChange({area:[{x:g.clientX+x,y:g.clientY},{x:w,y:v.top},{x:C,y:v.top},{x:C,y:v.bottom},{x:w,y:v.bottom}],side:b}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(g),g.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:Ae(e.onKeyDown,g=>{const v=o.searchRef.current!=="";e.disabled||v&&g.key===" "||KX[r.dir].includes(g.key)&&(n.onOpenChange(!0),n.content?.focus(),g.preventDefault())})})})});uB.displayName=Hu;var dB="MenuSubContent",fB=E.forwardRef((e,t)=>{const n=Q4(Rr,e.__scopeMenu),{forceMount:r=n.forceMount,...a}=e,o=_s(Rr,e.__scopeMenu),l=hf(Rr,e.__scopeMenu),c=cB(dB,e.__scopeMenu),d=E.useRef(null),f=ct(t,d);return h.jsx(yd.Provider,{scope:e.__scopeMenu,children:h.jsx(Ta,{present:r||o.open,children:h.jsx(yd.Slot,{scope:e.__scopeMenu,children:h.jsx(VO,{id:c.contentId,"aria-labelledby":c.triggerId,...a,ref:f,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{l.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:Ae(e.onFocusOutside,m=>{m.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:Ae(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:Ae(e.onKeyDown,m=>{const g=m.currentTarget.contains(m.target),v=HX[l.dir].includes(m.key);g&&v&&(o.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});fB.displayName=dB;function pB(e){return e?"open":"closed"}function Ih(e){return e==="indeterminate"}function XO(e){return Ih(e)?"indeterminate":e?"checked":"unchecked"}function dW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function fW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function pW(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=fW(e,Math.max(o,0));a.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function hW(e,t){const{x:n,y:r}=e;let a=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],d=t[l],f=c.x,m=c.y,g=d.x,v=d.y;m>r!=v>r&&n<(g-f)*(r-m)/(v-m)+f&&(a=!a)}return a}function gW(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return hW(n,t)}function xd(e){return t=>t.pointerType==="mouse"?e(t):void 0}var mW=Y4,vW=KO,yW=X4,xW=W4,bW=YO,wW=Z4,SW=lm,AW=eB,OW=nB,CW=aB,jW=oB,EW=sB,_W=lB,TW=uB,NW=fB,cm="DropdownMenu",[RW]=Ea(cm,[G4]),Dn=G4(),[MW,hB]=RW(cm),gB=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:a,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,d=Dn(t),f=E.useRef(null),[m,g]=ds({prop:a,defaultProp:o??!1,onChange:l,caller:cm});return h.jsx(MW,{scope:t,triggerId:va(),triggerRef:f,contentId:va(),open:m,onOpenChange:g,onOpenToggle:E.useCallback(()=>g(v=>!v),[g]),modal:c,children:h.jsx(mW,{...d,open:m,onOpenChange:g,dir:r,modal:c,children:n})})};gB.displayName=cm;var mB="DropdownMenuTrigger",vB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,o=hB(mB,n),l=Dn(n);return h.jsx(vW,{asChild:!0,...l,children:h.jsx(Fe.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:Vg(t,o.triggerRef),onPointerDown:Ae(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(o.onOpenToggle(),o.open||c.preventDefault())}),onKeyDown:Ae(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&o.onOpenToggle(),c.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});vB.displayName=mB;var PW="DropdownMenuPortal",yB=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Dn(t);return h.jsx(yW,{...r,...n})};yB.displayName=PW;var xB="DropdownMenuContent",bB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=hB(xB,n),o=Dn(n),l=E.useRef(!1);return h.jsx(xW,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...r,ref:t,onCloseAutoFocus:Ae(e.onCloseAutoFocus,c=>{l.current||a.triggerRef.current?.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:Ae(e.onInteractOutside,c=>{const d=c.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;(!a.modal||m)&&(l.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)"}})});bB.displayName=xB;var DW="DropdownMenuGroup",kW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(bW,{...a,...r,ref:t})});kW.displayName=DW;var IW="DropdownMenuLabel",wB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(wW,{...a,...r,ref:t})});wB.displayName=IW;var LW="DropdownMenuItem",SB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(SW,{...a,...r,ref:t})});SB.displayName=LW;var BW="DropdownMenuCheckboxItem",$W=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(AW,{...a,...r,ref:t})});$W.displayName=BW;var qW="DropdownMenuRadioGroup",zW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(OW,{...a,...r,ref:t})});zW.displayName=qW;var UW="DropdownMenuRadioItem",FW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(CW,{...a,...r,ref:t})});FW.displayName=UW;var KW="DropdownMenuItemIndicator",HW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(jW,{...a,...r,ref:t})});HW.displayName=KW;var GW="DropdownMenuSeparator",AB=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(EW,{...a,...r,ref:t})});AB.displayName=GW;var VW="DropdownMenuArrow",YW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(_W,{...a,...r,ref:t})});YW.displayName=VW;var QW="DropdownMenuSubTrigger",XW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(TW,{...a,...r,ref:t})});XW.displayName=QW;var WW="DropdownMenuSubContent",ZW=E.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Dn(n);return h.jsx(NW,{...a,...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)"}})});ZW.displayName=WW;var JW=gB,eZ=vB,tZ=yB,nZ=bB,rZ=wB,aZ=SB,iZ=AB;function oZ({...e}){return h.jsx(JW,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...e})}function sZ({...e}){return h.jsx(eZ,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...e})}function lZ({className:e,sideOffset:t=4,...n}){return h.jsx(tZ,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:h.jsx(nZ,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:Ve("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function cZ({className:e,inset:t,variant:n="default",...r}){return h.jsx(aZ,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:Ve("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r})}function uZ({className:e,inset:t,...n}){return h.jsx(rZ,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:152","data-slot":"dropdown-menu-label","data-inset":t,className:Ve("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function dZ({className:e,...t}){return h.jsx(iZ,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:169","data-slot":"dropdown-menu-separator",className:Ve("bg-border -mx-1 my-1 h-px",e),...t})}const Zp=[{code:"zh",label:"简体中文",flag:"🇨🇳",dir:"ltr"},{code:"en",label:"English",flag:"🇺🇸",dir:"ltr"},{code:"ar",label:"العربية",flag:"🇦🇪",dir:"rtl"},{code:"ja",label:"日本語",flag:"🇯🇵",dir:"ltr"},{code:"ko",label:"한국어",flag:"🇰🇷",dir:"ltr"},{code:"fr",label:"Français",flag:"🇫🇷",dir:"ltr"},{code:"ru",label:"Русский",flag:"🇷🇺",dir:"ltr"}];function OB({variant:e="icon",className:t}){const{i18n:n,t:r}=Hg(),a=Zp.find(l=>l.code===n.language)||Zp[0],o=l=>{const c=Zp.find(d=>d.code===l);n.changeLanguage(l),c&&(document.documentElement.dir=c.dir,document.documentElement.lang=l),localStorage.setItem("nac-admin-language",l)};return h.jsxs(oZ,{"data-loc":"client/src/components/LanguageSwitcher.tsx:46",children:[h.jsx(sZ,{"data-loc":"client/src/components/LanguageSwitcher.tsx:47",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/components/LanguageSwitcher.tsx:48",variant:"ghost",size:e==="icon"?"icon":"sm",className:`text-slate-400 hover:text-white hover:bg-slate-700/50 ${t??""}`,children:[h.jsx(fs,{"data-loc":"client/src/components/LanguageSwitcher.tsx:53",className:"h-4 w-4"}),e==="full"&&h.jsxs("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:55",className:"ml-2 text-sm",children:[a.flag," ",a.label]})]})}),h.jsxs(lZ,{"data-loc":"client/src/components/LanguageSwitcher.tsx:61",align:"end",className:"w-48 bg-slate-800 border-slate-700 text-slate-200",children:[h.jsx(uZ,{"data-loc":"client/src/components/LanguageSwitcher.tsx:65",className:"text-slate-400 text-xs",children:r("languageSwitcher.selectLanguage")}),h.jsx(dZ,{"data-loc":"client/src/components/LanguageSwitcher.tsx:68",className:"bg-slate-700"}),Zp.map(l=>h.jsxs(cZ,{"data-loc":"client/src/components/LanguageSwitcher.tsx:70",onClick:()=>o(l.code),className:`cursor-pointer hover:bg-slate-700 focus:bg-slate-700 ${n.language===l.code?"text-amber-400 bg-slate-700/50":"text-slate-200"}`,children:[h.jsx("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:79",className:"mr-2 text-base",children:l.flag}),h.jsx("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:80",className:"flex-1",children:l.label}),n.language===l.code&&h.jsx("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:82",className:"text-amber-400 text-xs",children:"✓"})]},l.code))]})]})}function fZ(){nm();const{t:e}=Hg(),[t,n]=E.useState(""),[r,a]=E.useState(""),[o,l]=E.useState(""),c=Me.nacAuth.login.useMutation({onSuccess:()=>{window.location.href="/"},onError:f=>{l(f.message||e("auth.loginFailed"))}}),d=f=>{if(f.preventDefault(),l(""),!t||!r){l(e("auth.loginFailed"));return}c.mutate({email:t,password:r})};return h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:41",className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:43",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[h.jsx("div",{"data-loc":"client/src/pages/Login.tsx:44",className:"absolute -top-40 -right-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}}),h.jsx("div",{"data-loc":"client/src/pages/Login.tsx:46",className:"absolute -bottom-40 -left-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.55 0.20 230), transparent)"}}),h.jsx("div",{"data-loc":"client/src/pages/Login.tsx:48",className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-5",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}})]}),h.jsx("div",{"data-loc":"client/src/pages/Login.tsx:53",className:"absolute top-4 right-4 z-20",children:h.jsx(OB,{"data-loc":"client/src/pages/Login.tsx:54",variant:"full"})}),h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:57",className:"w-full max-w-md relative z-10",children:[h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:59",className:"text-center mb-8",children:[h.jsx("div",{"data-loc":"client/src/pages/Login.tsx:60",className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl nac-gradient mb-4 shadow-lg",children:h.jsx(io,{"data-loc":"client/src/pages/Login.tsx:61",className:"w-8 h-8 text-white"})}),h.jsx("h1",{"data-loc":"client/src/pages/Login.tsx:63",className:"text-3xl font-bold nac-gradient-text",children:e("nav.systemTitle")}),h.jsx("p",{"data-loc":"client/src/pages/Login.tsx:64",className:"text-muted-foreground mt-2 text-sm",children:e("nav.systemSubtitle")}),h.jsx("p",{"data-loc":"client/src/pages/Login.tsx:65",className:"text-muted-foreground/60 text-xs mt-1",children:"NewAssetChain Knowledge Engine"})]}),h.jsxs(Ze,{"data-loc":"client/src/pages/Login.tsx:68",className:"border-border/50 shadow-2xl",children:[h.jsxs(ur,{"data-loc":"client/src/pages/Login.tsx:69",className:"pb-4",children:[h.jsx(dr,{"data-loc":"client/src/pages/Login.tsx:70",className:"text-lg font-semibold",children:e("auth.login")}),h.jsx(G3,{"data-loc":"client/src/pages/Login.tsx:71",className:"text-sm",children:e("auth.loginSubtitle")})]}),h.jsxs(Je,{"data-loc":"client/src/pages/Login.tsx:75",children:[h.jsxs("form",{"data-loc":"client/src/pages/Login.tsx:76",onSubmit:d,className:"space-y-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:77",className:"space-y-2",children:[h.jsx(tt,{"data-loc":"client/src/pages/Login.tsx:78",htmlFor:"email",className:"text-sm font-medium",children:e("auth.email")}),h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:79",className:"relative",children:[h.jsx(MY,{"data-loc":"client/src/pages/Login.tsx:80",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),h.jsx(Wt,{"data-loc":"client/src/pages/Login.tsx:81",id:"email",type:"email",placeholder:"admin@newassetchain.io",value:t,onChange:f=>n(f.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:c.isPending,autoComplete:"email"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:94",className:"space-y-2",children:[h.jsx(tt,{"data-loc":"client/src/pages/Login.tsx:95",htmlFor:"password",className:"text-sm font-medium",children:e("auth.password")}),h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:96",className:"relative",children:[h.jsx(NY,{"data-loc":"client/src/pages/Login.tsx:97",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),h.jsx(Wt,{"data-loc":"client/src/pages/Login.tsx:98",id:"password",type:"password",placeholder:"••••••••",value:r,onChange:f=>a(f.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:c.isPending,autoComplete:"current-password"})]})]}),o&&h.jsx(EX,{"data-loc":"client/src/pages/Login.tsx:112",variant:"destructive",className:"py-2",children:h.jsx(_X,{"data-loc":"client/src/pages/Login.tsx:113",className:"text-sm",children:o})}),h.jsx(Pe,{"data-loc":"client/src/pages/Login.tsx:117",type:"submit",className:"w-full nac-gradient text-white font-medium h-10 mt-2",disabled:c.isPending,children:c.isPending?h.jsxs(h.Fragment,{children:[h.jsx(Cn,{"data-loc":"client/src/pages/Login.tsx:123",className:"w-4 h-4 mr-2 animate-spin"}),e("auth.loggingIn")]}):e("auth.loginButton")})]}),h.jsx("div",{"data-loc":"client/src/pages/Login.tsx:130",className:"mt-6 pt-4 border-t border-border/30",children:h.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:131",className:"flex items-center gap-2 text-xs text-muted-foreground/60",children:[h.jsx(io,{"data-loc":"client/src/pages/Login.tsx:132",className:"w-3 h-3"}),h.jsx("span",{"data-loc":"client/src/pages/Login.tsx:133",children:e("auth.authNotice")})]})})]})]}),h.jsx("p",{"data-loc":"client/src/pages/Login.tsx:139",className:"text-center text-xs text-muted-foreground/40 mt-6",children:"© 2025 NewAssetChain · Knowledge Engine Admin v1.0"})]})]})}const pZ=TO("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Mr({className:e,variant:t,asChild:n=!1,...r}){const a=n?W5:"span";return h.jsx(a,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:Ve(pZ({variant:t}),e),...r})}var zx,N2;function Qn(){if(N2)return zx;N2=1;var e=Array.isArray;return zx=e,zx}var Ux,R2;function CB(){if(R2)return Ux;R2=1;var e=typeof Ip=="object"&&Ip&&Ip.Object===Object&&Ip;return Ux=e,Ux}var Fx,M2;function Na(){if(M2)return Fx;M2=1;var e=CB(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Fx=n,Fx}var Kx,P2;function gf(){if(P2)return Kx;P2=1;var e=Na(),t=e.Symbol;return Kx=t,Kx}var Hx,D2;function hZ(){if(D2)return Hx;D2=1;var e=gf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function o(l){var c=n.call(l,a),d=l[a];try{l[a]=void 0;var f=!0}catch{}var m=r.call(l);return f&&(c?l[a]=d:delete l[a]),m}return Hx=o,Hx}var Gx,k2;function gZ(){if(k2)return Gx;k2=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Gx=n,Gx}var Vx,I2;function pi(){if(I2)return Vx;I2=1;var e=gf(),t=hZ(),n=gZ(),r="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:o&&o in Object(c)?t(c):n(c)}return Vx=l,Vx}var Yx,L2;function hi(){if(L2)return Yx;L2=1;function e(t){return t!=null&&typeof t=="object"}return Yx=e,Yx}var Qx,B2;function Nc(){if(B2)return Qx;B2=1;var e=pi(),t=hi(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return Qx=r,Qx}var Xx,$2;function WO(){if($2)return Xx;$2=1;var e=Qn(),t=Nc(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(o,l){if(e(o))return!1;var c=typeof o;return c=="number"||c=="symbol"||c=="boolean"||o==null||t(o)?!0:r.test(o)||!n.test(o)||l!=null&&o in Object(l)}return Xx=a,Xx}var Wx,q2;function fo(){if(q2)return Wx;q2=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Wx=e,Wx}var Zx,z2;function ZO(){if(z2)return Zx;z2=1;var e=pi(),t=fo(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",o="[object Proxy]";function l(c){if(!t(c))return!1;var d=e(c);return d==r||d==a||d==n||d==o}return Zx=l,Zx}var Jx,U2;function mZ(){if(U2)return Jx;U2=1;var e=Na(),t=e["__core-js_shared__"];return Jx=t,Jx}var eb,F2;function vZ(){if(F2)return eb;F2=1;var e=mZ(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return eb=n,eb}var tb,K2;function jB(){if(K2)return tb;K2=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return tb=n,tb}var nb,H2;function yZ(){if(H2)return nb;H2=1;var e=ZO(),t=vZ(),n=fo(),r=jB(),a=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,d=l.toString,f=c.hasOwnProperty,m=RegExp("^"+d.call(f).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function g(v){if(!n(v)||t(v))return!1;var b=e(v)?m:o;return b.test(r(v))}return nb=g,nb}var rb,G2;function xZ(){if(G2)return rb;G2=1;function e(t,n){return t?.[n]}return rb=e,rb}var ab,V2;function Ts(){if(V2)return ab;V2=1;var e=yZ(),t=xZ();function n(r,a){var o=t(r,a);return e(o)?o:void 0}return ab=n,ab}var ib,Y2;function um(){if(Y2)return ib;Y2=1;var e=Ts(),t=e(Object,"create");return ib=t,ib}var ob,Q2;function bZ(){if(Q2)return ob;Q2=1;var e=um();function t(){this.__data__=e?e(null):{},this.size=0}return ob=t,ob}var sb,X2;function wZ(){if(X2)return sb;X2=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return sb=e,sb}var lb,W2;function SZ(){if(W2)return lb;W2=1;var e=um(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(o){var l=this.__data__;if(e){var c=l[o];return c===t?void 0:c}return r.call(l,o)?l[o]:void 0}return lb=a,lb}var cb,Z2;function AZ(){if(Z2)return cb;Z2=1;var e=um(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var o=this.__data__;return e?o[a]!==void 0:n.call(o,a)}return cb=r,cb}var ub,J2;function OZ(){if(J2)return ub;J2=1;var e=um(),t="__lodash_hash_undefined__";function n(r,a){var o=this.__data__;return this.size+=this.has(r)?0:1,o[r]=e&&a===void 0?t:a,this}return ub=n,ub}var db,eR;function CZ(){if(eR)return db;eR=1;var e=bZ(),t=wZ(),n=SZ(),r=AZ(),a=OZ();function o(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var f=l[c];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,db=o,db}var fb,tR;function jZ(){if(tR)return fb;tR=1;function e(){this.__data__=[],this.size=0}return fb=e,fb}var pb,nR;function JO(){if(nR)return pb;nR=1;function e(t,n){return t===n||t!==t&&n!==n}return pb=e,pb}var hb,rR;function dm(){if(rR)return hb;rR=1;var e=JO();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return hb=t,hb}var gb,aR;function EZ(){if(aR)return gb;aR=1;var e=dm(),t=Array.prototype,n=t.splice;function r(a){var o=this.__data__,l=e(o,a);if(l<0)return!1;var c=o.length-1;return l==c?o.pop():n.call(o,l,1),--this.size,!0}return gb=r,gb}var mb,iR;function _Z(){if(iR)return mb;iR=1;var e=dm();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return mb=t,mb}var vb,oR;function TZ(){if(oR)return vb;oR=1;var e=dm();function t(n){return e(this.__data__,n)>-1}return vb=t,vb}var yb,sR;function NZ(){if(sR)return yb;sR=1;var e=dm();function t(n,r){var a=this.__data__,o=e(a,n);return o<0?(++this.size,a.push([n,r])):a[o][1]=r,this}return yb=t,yb}var xb,lR;function fm(){if(lR)return xb;lR=1;var e=jZ(),t=EZ(),n=_Z(),r=TZ(),a=NZ();function o(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var f=l[c];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,xb=o,xb}var bb,cR;function eC(){if(cR)return bb;cR=1;var e=Ts(),t=Na(),n=e(t,"Map");return bb=n,bb}var wb,uR;function RZ(){if(uR)return wb;uR=1;var e=CZ(),t=fm(),n=eC();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return wb=r,wb}var Sb,dR;function MZ(){if(dR)return Sb;dR=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Sb=e,Sb}var Ab,fR;function pm(){if(fR)return Ab;fR=1;var e=MZ();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return Ab=t,Ab}var Ob,pR;function PZ(){if(pR)return Ob;pR=1;var e=pm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Ob=t,Ob}var Cb,hR;function DZ(){if(hR)return Cb;hR=1;var e=pm();function t(n){return e(this,n).get(n)}return Cb=t,Cb}var jb,gR;function kZ(){if(gR)return jb;gR=1;var e=pm();function t(n){return e(this,n).has(n)}return jb=t,jb}var Eb,mR;function IZ(){if(mR)return Eb;mR=1;var e=pm();function t(n,r){var a=e(this,n),o=a.size;return a.set(n,r),this.size+=a.size==o?0:1,this}return Eb=t,Eb}var _b,vR;function tC(){if(vR)return _b;vR=1;var e=RZ(),t=PZ(),n=DZ(),r=kZ(),a=IZ();function o(l){var c=-1,d=l==null?0:l.length;for(this.clear();++c<d;){var f=l[c];this.set(f[0],f[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=a,_b=o,_b}var Tb,yR;function EB(){if(yR)return Tb;yR=1;var e=tC(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var o=function(){var l=arguments,c=a?a.apply(this,l):l[0],d=o.cache;if(d.has(c))return d.get(c);var f=r.apply(this,l);return o.cache=d.set(c,f)||d,f};return o.cache=new(n.Cache||e),o}return n.Cache=e,Tb=n,Tb}var Nb,xR;function LZ(){if(xR)return Nb;xR=1;var e=EB(),t=500;function n(r){var a=e(r,function(l){return o.size===t&&o.clear(),l}),o=a.cache;return a}return Nb=n,Nb}var Rb,bR;function BZ(){if(bR)return Rb;bR=1;var e=LZ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var o=[];return a.charCodeAt(0)===46&&o.push(""),a.replace(t,function(l,c,d,f){o.push(d?f.replace(n,"$1"):c||l)}),o});return Rb=r,Rb}var Mb,wR;function nC(){if(wR)return Mb;wR=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=Array(a);++r<a;)o[r]=n(t[r],r,t);return o}return Mb=e,Mb}var Pb,SR;function $Z(){if(SR)return Pb;SR=1;var e=gf(),t=nC(),n=Qn(),r=Nc(),a=e?e.prototype:void 0,o=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return o?o.call(c):"";var d=c+"";return d=="0"&&1/c==-1/0?"-0":d}return Pb=l,Pb}var Db,AR;function _B(){if(AR)return Db;AR=1;var e=$Z();function t(n){return n==null?"":e(n)}return Db=t,Db}var kb,OR;function TB(){if(OR)return kb;OR=1;var e=Qn(),t=WO(),n=BZ(),r=_B();function a(o,l){return e(o)?o:t(o,l)?[o]:n(r(o))}return kb=a,kb}var Ib,CR;function hm(){if(CR)return Ib;CR=1;var e=Nc();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Ib=t,Ib}var Lb,jR;function rC(){if(jR)return Lb;jR=1;var e=TB(),t=hm();function n(r,a){a=e(a,r);for(var o=0,l=a.length;r!=null&&o<l;)r=r[t(a[o++])];return o&&o==l?r:void 0}return Lb=n,Lb}var Bb,ER;function NB(){if(ER)return Bb;ER=1;var e=rC();function t(n,r,a){var o=n==null?void 0:e(n,r);return o===void 0?a:o}return Bb=t,Bb}var qZ=NB();const pr=ft(qZ);var $b,_R;function zZ(){if(_R)return $b;_R=1;function e(t){return t==null}return $b=e,$b}var UZ=zZ();const Be=ft(UZ);var qb,TR;function FZ(){if(TR)return qb;TR=1;var e=pi(),t=Qn(),n=hi(),r="[object String]";function a(o){return typeof o=="string"||!t(o)&&n(o)&&e(o)==r}return qb=a,qb}var KZ=FZ();const gs=ft(KZ);var HZ=ZO();const Re=ft(HZ);var GZ=fo();const Rc=ft(GZ);var zb={exports:{}},ut={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var NR;function VZ(){if(NR)return ut;NR=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),A;A=Symbol.for("react.module.reference");function x(w){if(typeof w=="object"&&w!==null){var C=w.$$typeof;switch(C){case e:switch(w=w.type,w){case n:case a:case r:case f:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case l:case d:case v:case g:case o:return w;default:return C}}case t:return C}}}return ut.ContextConsumer=l,ut.ContextProvider=o,ut.Element=e,ut.ForwardRef=d,ut.Fragment=n,ut.Lazy=v,ut.Memo=g,ut.Portal=t,ut.Profiler=a,ut.StrictMode=r,ut.Suspense=f,ut.SuspenseList=m,ut.isAsyncMode=function(){return!1},ut.isConcurrentMode=function(){return!1},ut.isContextConsumer=function(w){return x(w)===l},ut.isContextProvider=function(w){return x(w)===o},ut.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},ut.isForwardRef=function(w){return x(w)===d},ut.isFragment=function(w){return x(w)===n},ut.isLazy=function(w){return x(w)===v},ut.isMemo=function(w){return x(w)===g},ut.isPortal=function(w){return x(w)===t},ut.isProfiler=function(w){return x(w)===a},ut.isStrictMode=function(w){return x(w)===r},ut.isSuspense=function(w){return x(w)===f},ut.isSuspenseList=function(w){return x(w)===m},ut.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===a||w===r||w===f||w===m||w===b||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===g||w.$$typeof===o||w.$$typeof===l||w.$$typeof===d||w.$$typeof===A||w.getModuleId!==void 0)},ut.typeOf=x,ut}var RR;function YZ(){return RR||(RR=1,zb.exports=VZ()),zb.exports}var QZ=YZ(),Ub,MR;function RB(){if(MR)return Ub;MR=1;var e=pi(),t=hi(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return Ub=r,Ub}var Fb,PR;function XZ(){if(PR)return Fb;PR=1;var e=RB();function t(n){return e(n)&&n!=+n}return Fb=t,Fb}var WZ=XZ();const Mc=ft(WZ);var ZZ=RB();const JZ=ft(ZZ);var Rn=function(t){return t===0?0:t>0?1:-1},Zo=function(t){return gs(t)&&t.indexOf("%")===t.length-1},ge=function(t){return JZ(t)&&!Mc(t)},eJ=function(t){return Be(t)},Jt=function(t){return ge(t)||gs(t)},tJ=0,Pc=function(t){var n=++tJ;return"".concat(t||"").concat(n)},Mn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&!gs(t))return r;var o;if(Zo(t)){var l=t.indexOf("%");o=n*parseFloat(t.slice(0,l))/100}else o=+t;return Mc(o)&&(o=r),a&&o>n&&(o=n),o},Qi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},nJ=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Vn=function(t,n){return ge(t)&&ge(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):pr(r,t))===n})}var rJ=function(t,n){return ge(t)&&ge(n)?t-n:gs(t)&&gs(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Ul(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 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)}var aJ=["viewBox","children"],iJ=["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"],DR=["points","pathLength"],Kb={svg:aJ,polygon:DR,polyline:DR},aC=["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"],Bh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(E.isValidElement(t)&&(r=t.props),!Rc(r))return null;var a={};return Object.keys(r).forEach(function(o){aC.includes(o)&&(a[o]=n||function(l){return r[o](r,l)})}),a},oJ=function(t,n,r){return function(a){return t(n,r,a),null}},ms=function(t,n,r){if(!Rc(t)||DS(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var l=t[o];aC.includes(o)&&typeof l=="function"&&(a||(a={}),a[o]=oJ(l,n,r))}),a},sJ=["children"],lJ=["children"];function kR(e,t){if(e==null)return{};var n=cJ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cJ(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 kS(e){"@babel/helpers - typeof";return kS=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},kS(e)}var IR={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"},ai=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},LR=null,Hb=null,iC=function e(t){if(t===LR&&Array.isArray(Hb))return Hb;var n=[];return E.Children.forEach(t,function(r){Be(r)||(QZ.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Hb=n,LR=t,n};function Pr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return ai(a)}):r=[ai(t)],iC(e).forEach(function(a){var o=pr(a,"type.displayName")||pr(a,"type.name");r.indexOf(o)!==-1&&n.push(a)}),n}function or(e,t){var n=Pr(e,t);return n&&n[0]}var BR=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!ge(r)||r<=0||!ge(a)||a<=0)},uJ=["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"],dJ=function(t){return t&&t.type&&gs(t.type)&&uJ.indexOf(t.type)>=0},fJ=function(t){return t&&kS(t)==="object"&&"clipDot"in t},pJ=function(t,n,r,a){var o,l=(o=Kb?.[a])!==null&&o!==void 0?o:[];return n.startsWith("data-")||!Re(t)&&(a&&l.includes(n)||iJ.includes(n))||r&&aC.includes(n)},_e=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(E.isValidElement(t)&&(a=t.props),!Rc(a))return null;var o={};return Object.keys(a).forEach(function(l){var c;pJ((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(o[l]=a[l])}),o},IS=function e(t,n){if(t===n)return!0;var r=E.Children.count(t);if(r!==E.Children.count(n))return!1;if(r===0)return!0;if(r===1)return $R(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var o=t[a],l=n[a];if(Array.isArray(o)||Array.isArray(l)){if(!e(o,l))return!1}else if(!$R(o,l))return!1}return!0},$R=function(t,n){if(Be(t)&&Be(n))return!0;if(!Be(t)&&!Be(n)){var r=t.props||{},a=r.children,o=kR(r,sJ),l=n.props||{},c=l.children,d=kR(l,lJ);return a&&c?Ul(o,d)&&IS(a,c):!a&&!c?Ul(o,d):!1}return!1},qR=function(t,n){var r=[],a={};return iC(t).forEach(function(o,l){if(dJ(o))r.push(o);else if(o){var c=ai(o.type),d=n[c]||{},f=d.handler,m=d.once;if(f&&(!m||!a[c])){var g=f(o,c,l);r.push(g),a[c]=!0}}}),r},hJ=function(t){var n=t&&t.type;return n&&IR[n]?IR[n]:null},gJ=function(t,n){return iC(n).indexOf(t)},mJ=["children","width","height","viewBox","className","style","title","desc"];function LS(){return LS=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},LS.apply(this,arguments)}function vJ(e,t){if(e==null)return{};var n=yJ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yJ(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 BS(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,o=e.className,l=e.style,c=e.title,d=e.desc,f=vJ(e,mJ),m=a||{width:n,height:r,x:0,y:0},g=Le("recharts-surface",o);return $.createElement("svg",LS({},_e(f,!0,"svg"),{className:g,width:n,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),$.createElement("title",null,c),$.createElement("desc",null,d),t)}var xJ=["children","className"];function $S(){return $S=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},$S.apply(this,arguments)}function bJ(e,t){if(e==null)return{};var n=wJ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wJ(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 et=$.forwardRef(function(e,t){var n=e.children,r=e.className,a=bJ(e,xJ),o=Le("recharts-layer",r);return $.createElement("g",$S({className:o},_e(a,!0),{ref:t}),n)}),Qr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o]},Gb,zR;function SJ(){if(zR)return Gb;zR=1;function e(t,n,r){var a=-1,o=t.length;n<0&&(n=-n>o?0:o+n),r=r>o?o:r,r<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(o);++a<o;)l[a]=t[a+n];return l}return Gb=e,Gb}var Vb,UR;function AJ(){if(UR)return Vb;UR=1;var e=SJ();function t(n,r,a){var o=n.length;return a=a===void 0?o:a,!r&&a>=o?n:e(n,r,a)}return Vb=t,Vb}var Yb,FR;function MB(){if(FR)return Yb;FR=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+o+"]");function d(f){return c.test(f)}return Yb=d,Yb}var Qb,KR;function OJ(){if(KR)return Qb;KR=1;function e(t){return t.split("")}return Qb=e,Qb}var Xb,HR;function CJ(){if(HR)return Xb;HR=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,o="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",d="\\ud83c[\\udffb-\\udfff]",f="(?:"+c+"|"+d+")",m="[^"+e+"]",g="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",b="\\u200d",A=f+"?",x="["+o+"]?",w="(?:"+b+"(?:"+[m,g,v].join("|")+")"+x+A+")*",C=x+A+w,j="(?:"+[m+c+"?",c,g,v,l].join("|")+")",T=RegExp(d+"(?="+d+")|"+j+C,"g");function M(O){return O.match(T)||[]}return Xb=M,Xb}var Wb,GR;function jJ(){if(GR)return Wb;GR=1;var e=OJ(),t=MB(),n=CJ();function r(a){return t(a)?n(a):e(a)}return Wb=r,Wb}var Zb,VR;function EJ(){if(VR)return Zb;VR=1;var e=AJ(),t=MB(),n=jJ(),r=_B();function a(o){return function(l){l=r(l);var c=t(l)?n(l):void 0,d=c?c[0]:l.charAt(0),f=c?e(c,1).join(""):l.slice(1);return d[o]()+f}}return Zb=a,Zb}var Jb,YR;function _J(){if(YR)return Jb;YR=1;var e=EJ(),t=e("toUpperCase");return Jb=t,Jb}var TJ=_J();const gm=ft(TJ);function At(e){return function(){return e}}const PB=Math.cos,$h=Math.sin,ea=Math.sqrt,qh=Math.PI,mm=2*qh,qS=Math.PI,zS=2*qS,Vo=1e-6,NJ=zS-Vo;function DB(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function RJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return DB;const n=10**t;return function(r){this._+=r[0];for(let a=1,o=r.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class MJ{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?DB:RJ(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,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,o,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+o},${this._y1=+l}`}arcTo(t,n,r,a,o){if(t=+t,n=+n,r=+r,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let l=this._x1,c=this._y1,d=r-t,f=a-n,m=l-t,g=c-n,v=m*m+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>Vo)if(!(Math.abs(g*d-f*m)>Vo)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let b=r-l,A=a-c,x=d*d+f*f,w=b*b+A*A,C=Math.sqrt(x),j=Math.sqrt(v),T=o*Math.tan((qS-Math.acos((x+v-w)/(2*C*j)))/2),M=T/j,O=T/C;Math.abs(M-1)>Vo&&this._append`L${t+M*m},${n+M*g}`,this._append`A${o},${o},0,0,${+(g*b>m*A)},${this._x1=t+O*d},${this._y1=n+O*f}`}}arc(t,n,r,a,o,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),d=r*Math.sin(a),f=t+c,m=n+d,g=1^l,v=l?a-o:o-a;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>Vo||Math.abs(this._y1-m)>Vo)&&this._append`L${f},${m}`,r&&(v<0&&(v=v%zS+zS),v>NJ?this._append`A${r},${r},0,1,${g},${t-c},${n-d}A${r},${r},0,1,${g},${this._x1=f},${this._y1=m}`:v>Vo&&this._append`A${r},${r},0,${+(v>=qS)},${g},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function oC(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 MJ(t)}function sC(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kB(e){this._context=e}kB.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 vm(e){return new kB(e)}function IB(e){return e[0]}function LB(e){return e[1]}function BB(e,t){var n=At(!0),r=null,a=vm,o=null,l=oC(c);e=typeof e=="function"?e:e===void 0?IB:At(e),t=typeof t=="function"?t:t===void 0?LB:At(t);function c(d){var f,m=(d=sC(d)).length,g,v=!1,b;for(r==null&&(o=a(b=l())),f=0;f<=m;++f)!(f<m&&n(g=d[f],f,d))===v&&((v=!v)?o.lineStart():o.lineEnd()),v&&o.point(+e(g,f,d),+t(g,f,d));if(b)return o=null,b+""||null}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:At(+d),c):e},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:At(+d),c):t},c.defined=function(d){return arguments.length?(n=typeof d=="function"?d:At(!!d),c):n},c.curve=function(d){return arguments.length?(a=d,r!=null&&(o=a(r)),c):a},c.context=function(d){return arguments.length?(d==null?r=o=null:o=a(r=d),c):r},c}function Jp(e,t,n){var r=null,a=At(!0),o=null,l=vm,c=null,d=oC(f);e=typeof e=="function"?e:e===void 0?IB:At(+e),t=typeof t=="function"?t:At(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?LB:At(+n);function f(g){var v,b,A,x=(g=sC(g)).length,w,C=!1,j,T=new Array(x),M=new Array(x);for(o==null&&(c=l(j=d())),v=0;v<=x;++v){if(!(v<x&&a(w=g[v],v,g))===C)if(C=!C)b=v,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),A=v-1;A>=b;--A)c.point(T[A],M[A]);c.lineEnd(),c.areaEnd()}C&&(T[v]=+e(w,v,g),M[v]=+t(w,v,g),c.point(r?+r(w,v,g):T[v],n?+n(w,v,g):M[v]))}if(j)return c=null,j+""||null}function m(){return BB().defined(a).curve(l).context(o)}return f.x=function(g){return arguments.length?(e=typeof g=="function"?g:At(+g),r=null,f):e},f.x0=function(g){return arguments.length?(e=typeof g=="function"?g:At(+g),f):e},f.x1=function(g){return arguments.length?(r=g==null?null:typeof g=="function"?g:At(+g),f):r},f.y=function(g){return arguments.length?(t=typeof g=="function"?g:At(+g),n=null,f):t},f.y0=function(g){return arguments.length?(t=typeof g=="function"?g:At(+g),f):t},f.y1=function(g){return arguments.length?(n=g==null?null:typeof g=="function"?g:At(+g),f):n},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(n)},f.lineX1=function(){return m().x(r).y(t)},f.defined=function(g){return arguments.length?(a=typeof g=="function"?g:At(!!g),f):a},f.curve=function(g){return arguments.length?(l=g,o!=null&&(c=l(o)),f):l},f.context=function(g){return arguments.length?(g==null?o=c=null:c=l(o=g),f):o},f}class $B{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 PJ(e){return new $B(e,!0)}function DJ(e){return new $B(e,!1)}const lC={draw(e,t){const n=ea(t/qh);e.moveTo(n,0),e.arc(0,0,n,0,mm)}},kJ={draw(e,t){const n=ea(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()}},qB=ea(1/3),IJ=qB*2,LJ={draw(e,t){const n=ea(t/IJ),r=n*qB;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},BJ={draw(e,t){const n=ea(t),r=-n/2;e.rect(r,r,n,n)}},$J=.8908130915292852,zB=$h(qh/10)/$h(7*qh/10),qJ=$h(mm/10)*zB,zJ=-PB(mm/10)*zB,UJ={draw(e,t){const n=ea(t*$J),r=qJ*n,a=zJ*n;e.moveTo(0,-n),e.lineTo(r,a);for(let o=1;o<5;++o){const l=mm*o/5,c=PB(l),d=$h(l);e.lineTo(d*n,-c*n),e.lineTo(c*r-d*a,d*r+c*a)}e.closePath()}},e0=ea(3),FJ={draw(e,t){const n=-ea(t/(e0*3));e.moveTo(0,n*2),e.lineTo(-e0*n,-n),e.lineTo(e0*n,-n),e.closePath()}},Cr=-.5,jr=ea(3)/2,US=1/ea(12),KJ=(US/2+1)*3,HJ={draw(e,t){const n=ea(t/KJ),r=n/2,a=n*US,o=r,l=n*US+n,c=-o,d=l;e.moveTo(r,a),e.lineTo(o,l),e.lineTo(c,d),e.lineTo(Cr*r-jr*a,jr*r+Cr*a),e.lineTo(Cr*o-jr*l,jr*o+Cr*l),e.lineTo(Cr*c-jr*d,jr*c+Cr*d),e.lineTo(Cr*r+jr*a,Cr*a-jr*r),e.lineTo(Cr*o+jr*l,Cr*l-jr*o),e.lineTo(Cr*c+jr*d,Cr*d-jr*c),e.closePath()}};function GJ(e,t){let n=null,r=oC(a);e=typeof e=="function"?e:At(e||lC),t=typeof t=="function"?t:At(t===void 0?64:+t);function a(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:At(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:At(+o),a):t},a.context=function(o){return arguments.length?(n=o??null,a):n},a}function zh(){}function Uh(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 UB(e){this._context=e}UB.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:Uh(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:Uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function VJ(e){return new UB(e)}function FB(e){this._context=e}FB.prototype={areaStart:zh,areaEnd:zh,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:Uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function YJ(e){return new FB(e)}function KB(e){this._context=e}KB.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:Uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QJ(e){return new KB(e)}function HB(e){this._context=e}HB.prototype={areaStart:zh,areaEnd:zh,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 XJ(e){return new HB(e)}function QR(e){return e<0?-1:1}function XR(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(o*a+l*r)/(r+a);return(QR(o)+QR(l))*Math.min(Math.abs(o),Math.abs(l),.5*Math.abs(c))||0}function WR(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function t0(e,t,n){var r=e._x0,a=e._y0,o=e._x1,l=e._y1,c=(o-r)/3;e._context.bezierCurveTo(r+c,a+c*t,o-c,l-c*n,o,l)}function Fh(e){this._context=e}Fh.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:t0(this,this._t0,WR(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,t0(this,WR(this,n=XR(this,e,t)),n);break;default:t0(this,this._t0,n=XR(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function GB(e){this._context=new VB(e)}(GB.prototype=Object.create(Fh.prototype)).point=function(e,t){Fh.prototype.point.call(this,t,e)};function VB(e){this._context=e}VB.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}};function WJ(e){return new Fh(e)}function ZJ(e){return new GB(e)}function YB(e){this._context=e}YB.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=ZR(e),a=ZR(t),o=0,l=1;l<n;++o,++l)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[l],t[l]);(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 ZR(e){var t,n=e.length-1,r,a=new Array(n),o=new Array(n),l=new Array(n);for(a[0]=0,o[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,o[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,o[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/o[t-1],o[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/o[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/o[t];for(o[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function JJ(e){return new YB(e)}function ym(e,t){this._context=e,this._t=t}ym.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 eee(e){return new ym(e,.5)}function tee(e){return new ym(e,0)}function nee(e){return new ym(e,1)}function Xl(e,t){if((l=e.length)>1)for(var n=1,r,a,o=e[t[0]],l,c=o.length;n<l;++n)for(a=o,o=e[t[n]],r=0;r<c;++r)o[r][1]+=o[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function FS(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ree(e,t){return e[t]}function aee(e){const t=[];return t.key=e,t}function iee(){var e=At([]),t=FS,n=Xl,r=ree;function a(o){var l=Array.from(e.apply(this,arguments),aee),c,d=l.length,f=-1,m;for(const g of o)for(c=0,++f;c<d;++c)(l[c][f]=[0,+r(g,l[c].key,f,o)]).data=g;for(c=0,m=sC(t(l));c<d;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:At(Array.from(o)),a):e},a.value=function(o){return arguments.length?(r=typeof o=="function"?o:At(+o),a):r},a.order=function(o){return arguments.length?(t=o==null?FS:typeof o=="function"?o:At(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(n=o??Xl,a):n},a}function oee(e,t){if((r=e.length)>0){for(var n,r,a=0,o=e[0].length,l;a<o;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}Xl(e,t)}}function see(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,o=r.length;n<o;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Xl(e,t)}}function lee(e,t){if(!(!((l=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,o,l;r<o;++r){for(var c=0,d=0,f=0;c<l;++c){for(var m=e[t[c]],g=m[r][1]||0,v=m[r-1][1]||0,b=(g-v)/2,A=0;A<c;++A){var x=e[t[A]],w=x[r][1]||0,C=x[r-1][1]||0;b+=w-C}d+=g,f+=b*g}a[r-1][1]+=a[r-1][0]=n,d&&(n-=f/d)}a[r-1][1]+=a[r-1][0]=n,Xl(e,t)}}function bd(e){"@babel/helpers - typeof";return bd=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},bd(e)}var cee=["type","size","sizeType"];function KS(){return KS=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},KS.apply(this,arguments)}function JR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function eM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JR(Object(n),!0).forEach(function(r){uee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uee(e,t,n){return t=dee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dee(e){var t=fee(e,"string");return bd(t)=="symbol"?t:t+""}function fee(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pee(e,t){if(e==null)return{};var n=hee(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hee(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 QB={symbolCircle:lC,symbolCross:kJ,symbolDiamond:LJ,symbolSquare:BJ,symbolStar:UJ,symbolTriangle:FJ,symbolWye:HJ},gee=Math.PI/180,mee=function(t){var n="symbol".concat(gm(t));return QB[n]||lC},vee=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 a=18*gee;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},yee=function(t,n){QB["symbol".concat(gm(t))]=n},cC=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,o=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,d=pee(t,cee),f=eM(eM({},d),{},{type:r,size:o,sizeType:c}),m=function(){var w=mee(r),C=GJ().type(w).size(vee(o,c,r));return C()},g=f.className,v=f.cx,b=f.cy,A=_e(f,!0);return v===+v&&b===+b&&o===+o?$.createElement("path",KS({},A,{className:Le("recharts-symbols",g),transform:"translate(".concat(v,", ").concat(b,")"),d:m()})):null};cC.registerSymbol=yee;function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}function HS(){return HS=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},HS.apply(this,arguments)}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){wd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wee(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 See(e,t,n){return t&&wee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aee(e,t,n){return t=Kh(t),Oee(e,XB()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function Oee(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cee(e)}function Cee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XB=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function jee(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&&GS(e,t)}function GS(e,t){return GS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},GS(e,t)}function wd(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=Eee(e,"string");return Wl(t)=="symbol"?t:t+""}function Eee(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Er=32,uC=(function(e){function t(){return bee(this,t),Aee(this,t,arguments)}return jee(t,e),See(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,o=Er/2,l=Er/6,c=Er/3,d=r.inactive?a:r.color;if(r.type==="plainline")return $.createElement("line",{strokeWidth:4,fill:"none",stroke:d,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Er,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return $.createElement("path",{strokeWidth:4,fill:"none",stroke:d,d:"M0,".concat(o,"h").concat(c,`
|
||
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(o,`
|
||
H`).concat(Er,"M").concat(2*c,",").concat(o,`
|
||
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return $.createElement("path",{stroke:"none",fill:d,d:"M0,".concat(Er/8,"h").concat(Er,"v").concat(Er*3/4,"h").concat(-Er,"z"),className:"recharts-legend-icon"});if($.isValidElement(r.legendIcon)){var f=xee({},r);return delete f.legendIcon,$.cloneElement(r.legendIcon,f)}return $.createElement(cC,{fill:d,cx:o,cy:o,size:Er,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,o=a.payload,l=a.iconSize,c=a.layout,d=a.formatter,f=a.inactiveColor,m={x:0,y:0,width:Er,height:Er},g={display:c==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,A){var x=b.formatter||d,w=Le(wd(wd({"recharts-legend-item":!0},"legend-item-".concat(A),!0),"inactive",b.inactive));if(b.type==="none")return null;var C=Re(b.value)?null:b.value;Qr(!Re(b.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 j=b.inactive?f:b.color;return $.createElement("li",HS({className:w,style:g,key:"legend-item-".concat(A)},ms(r.props,b,A)),$.createElement(BS,{width:l,height:l,viewBox:m,style:v},r.renderIcon(b)),$.createElement("span",{className:"recharts-legend-item-text",style:{color:j}},x?x(C,b,A):C))})}},{key:"render",value:function(){var r=this.props,a=r.payload,o=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:o==="horizontal"?l:"left"};return $.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(E.PureComponent);wd(uC,"displayName","Legend");wd(uC,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var n0,nM;function _ee(){if(nM)return n0;nM=1;var e=fm();function t(){this.__data__=new e,this.size=0}return n0=t,n0}var r0,rM;function Tee(){if(rM)return r0;rM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return r0=e,r0}var a0,aM;function Nee(){if(aM)return a0;aM=1;function e(t){return this.__data__.get(t)}return a0=e,a0}var i0,iM;function Ree(){if(iM)return i0;iM=1;function e(t){return this.__data__.has(t)}return i0=e,i0}var o0,oM;function Mee(){if(oM)return o0;oM=1;var e=fm(),t=eC(),n=tC(),r=200;function a(o,l){var c=this.__data__;if(c instanceof e){var d=c.__data__;if(!t||d.length<r-1)return d.push([o,l]),this.size=++c.size,this;c=this.__data__=new n(d)}return c.set(o,l),this.size=c.size,this}return o0=a,o0}var s0,sM;function ZB(){if(sM)return s0;sM=1;var e=fm(),t=_ee(),n=Tee(),r=Nee(),a=Ree(),o=Mee();function l(c){var d=this.__data__=new e(c);this.size=d.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=o,s0=l,s0}var l0,lM;function Pee(){if(lM)return l0;lM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return l0=t,l0}var c0,cM;function Dee(){if(cM)return c0;cM=1;function e(t){return this.__data__.has(t)}return c0=e,c0}var u0,uM;function JB(){if(uM)return u0;uM=1;var e=tC(),t=Pee(),n=Dee();function r(a){var o=-1,l=a==null?0:a.length;for(this.__data__=new e;++o<l;)this.add(a[o])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,u0=r,u0}var d0,dM;function e8(){if(dM)return d0;dM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return d0=e,d0}var f0,fM;function t8(){if(fM)return f0;fM=1;function e(t,n){return t.has(n)}return f0=e,f0}var p0,pM;function n8(){if(pM)return p0;pM=1;var e=JB(),t=e8(),n=t8(),r=1,a=2;function o(l,c,d,f,m,g){var v=d&r,b=l.length,A=c.length;if(b!=A&&!(v&&A>b))return!1;var x=g.get(l),w=g.get(c);if(x&&w)return x==c&&w==l;var C=-1,j=!0,T=d&a?new e:void 0;for(g.set(l,c),g.set(c,l);++C<b;){var M=l[C],O=c[C];if(f)var _=v?f(O,M,C,c,l,g):f(M,O,C,l,c,g);if(_!==void 0){if(_)continue;j=!1;break}if(T){if(!t(c,function(N,P){if(!n(T,P)&&(M===N||m(M,N,d,f,g)))return T.push(P)})){j=!1;break}}else if(!(M===O||m(M,O,d,f,g))){j=!1;break}}return g.delete(l),g.delete(c),j}return p0=o,p0}var h0,hM;function kee(){if(hM)return h0;hM=1;var e=Na(),t=e.Uint8Array;return h0=t,h0}var g0,gM;function Iee(){if(gM)return g0;gM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,o){r[++n]=[o,a]}),r}return g0=e,g0}var m0,mM;function dC(){if(mM)return m0;mM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return m0=e,m0}var v0,vM;function Lee(){if(vM)return v0;vM=1;var e=gf(),t=kee(),n=JO(),r=n8(),a=Iee(),o=dC(),l=1,c=2,d="[object Boolean]",f="[object Date]",m="[object Error]",g="[object Map]",v="[object Number]",b="[object RegExp]",A="[object Set]",x="[object String]",w="[object Symbol]",C="[object ArrayBuffer]",j="[object DataView]",T=e?e.prototype:void 0,M=T?T.valueOf:void 0;function O(_,N,P,k,z,B,L){switch(P){case j:if(_.byteLength!=N.byteLength||_.byteOffset!=N.byteOffset)return!1;_=_.buffer,N=N.buffer;case C:return!(_.byteLength!=N.byteLength||!B(new t(_),new t(N)));case d:case f:case v:return n(+_,+N);case m:return _.name==N.name&&_.message==N.message;case b:case x:return _==N+"";case g:var U=a;case A:var H=k&l;if(U||(U=o),_.size!=N.size&&!H)return!1;var Q=L.get(_);if(Q)return Q==N;k|=c,L.set(_,N);var D=r(U(_),U(N),k,z,B,L);return L.delete(_),D;case w:if(M)return M.call(_)==M.call(N)}return!1}return v0=O,v0}var y0,yM;function r8(){if(yM)return y0;yM=1;function e(t,n){for(var r=-1,a=n.length,o=t.length;++r<a;)t[o+r]=n[r];return t}return y0=e,y0}var x0,xM;function Bee(){if(xM)return x0;xM=1;var e=r8(),t=Qn();function n(r,a,o){var l=a(r);return t(r)?l:e(l,o(r))}return x0=n,x0}var b0,bM;function $ee(){if(bM)return b0;bM=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,o=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[o++]=c)}return l}return b0=e,b0}var w0,wM;function qee(){if(wM)return w0;wM=1;function e(){return[]}return w0=e,w0}var S0,SM;function zee(){if(SM)return S0;SM=1;var e=$ee(),t=qee(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return S0=o,S0}var A0,AM;function Uee(){if(AM)return A0;AM=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return A0=e,A0}var O0,OM;function Fee(){if(OM)return O0;OM=1;var e=pi(),t=hi(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return O0=r,O0}var C0,CM;function fC(){if(CM)return C0;CM=1;var e=Fee(),t=hi(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return C0=o,C0}var Gu={exports:{}},j0,jM;function Kee(){if(jM)return j0;jM=1;function e(){return!1}return j0=e,j0}Gu.exports;var EM;function a8(){return EM||(EM=1,(function(e,t){var n=Na(),r=Kee(),a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===a,c=l?n.Buffer:void 0,d=c?c.isBuffer:void 0,f=d||r;e.exports=f})(Gu,Gu.exports)),Gu.exports}var E0,_M;function pC(){if(_M)return E0;_M=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var o=typeof r;return a=a??e,!!a&&(o=="number"||o!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return E0=n,E0}var _0,TM;function hC(){if(TM)return _0;TM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return _0=t,_0}var T0,NM;function Hee(){if(NM)return T0;NM=1;var e=pi(),t=hC(),n=hi(),r="[object Arguments]",a="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",d="[object Function]",f="[object Map]",m="[object Number]",g="[object Object]",v="[object RegExp]",b="[object Set]",A="[object String]",x="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",j="[object Float32Array]",T="[object Float64Array]",M="[object Int8Array]",O="[object Int16Array]",_="[object Int32Array]",N="[object Uint8Array]",P="[object Uint8ClampedArray]",k="[object Uint16Array]",z="[object Uint32Array]",B={};B[j]=B[T]=B[M]=B[O]=B[_]=B[N]=B[P]=B[k]=B[z]=!0,B[r]=B[a]=B[w]=B[o]=B[C]=B[l]=B[c]=B[d]=B[f]=B[m]=B[g]=B[v]=B[b]=B[A]=B[x]=!1;function L(U){return n(U)&&t(U.length)&&!!B[e(U)]}return T0=L,T0}var N0,RM;function i8(){if(RM)return N0;RM=1;function e(t){return function(n){return t(n)}}return N0=e,N0}var Vu={exports:{}};Vu.exports;var MM;function Gee(){return MM||(MM=1,(function(e,t){var n=CB(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===r,l=o&&n.process,c=(function(){try{var d=a&&a.require&&a.require("util").types;return d||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Vu,Vu.exports)),Vu.exports}var R0,PM;function o8(){if(PM)return R0;PM=1;var e=Hee(),t=i8(),n=Gee(),r=n&&n.isTypedArray,a=r?t(r):e;return R0=a,R0}var M0,DM;function Vee(){if(DM)return M0;DM=1;var e=Uee(),t=fC(),n=Qn(),r=a8(),a=pC(),o=o8(),l=Object.prototype,c=l.hasOwnProperty;function d(f,m){var g=n(f),v=!g&&t(f),b=!g&&!v&&r(f),A=!g&&!v&&!b&&o(f),x=g||v||b||A,w=x?e(f.length,String):[],C=w.length;for(var j in f)(m||c.call(f,j))&&!(x&&(j=="length"||b&&(j=="offset"||j=="parent")||A&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||a(j,C)))&&w.push(j);return w}return M0=d,M0}var P0,kM;function Yee(){if(kM)return P0;kM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return P0=t,P0}var D0,IM;function s8(){if(IM)return D0;IM=1;function e(t,n){return function(r){return t(n(r))}}return D0=e,D0}var k0,LM;function Qee(){if(LM)return k0;LM=1;var e=s8(),t=e(Object.keys,Object);return k0=t,k0}var I0,BM;function Xee(){if(BM)return I0;BM=1;var e=Yee(),t=Qee(),n=Object.prototype,r=n.hasOwnProperty;function a(o){if(!e(o))return t(o);var l=[];for(var c in Object(o))r.call(o,c)&&c!="constructor"&&l.push(c);return l}return I0=a,I0}var L0,$M;function mf(){if($M)return L0;$M=1;var e=ZO(),t=hC();function n(r){return r!=null&&t(r.length)&&!e(r)}return L0=n,L0}var B0,qM;function xm(){if(qM)return B0;qM=1;var e=Vee(),t=Xee(),n=mf();function r(a){return n(a)?e(a):t(a)}return B0=r,B0}var $0,zM;function Wee(){if(zM)return $0;zM=1;var e=Bee(),t=zee(),n=xm();function r(a){return e(a,n,t)}return $0=r,$0}var q0,UM;function Zee(){if(UM)return q0;UM=1;var e=Wee(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(o,l,c,d,f,m){var g=c&t,v=e(o),b=v.length,A=e(l),x=A.length;if(b!=x&&!g)return!1;for(var w=b;w--;){var C=v[w];if(!(g?C in l:r.call(l,C)))return!1}var j=m.get(o),T=m.get(l);if(j&&T)return j==l&&T==o;var M=!0;m.set(o,l),m.set(l,o);for(var O=g;++w<b;){C=v[w];var _=o[C],N=l[C];if(d)var P=g?d(N,_,C,l,o,m):d(_,N,C,o,l,m);if(!(P===void 0?_===N||f(_,N,c,d,m):P)){M=!1;break}O||(O=C=="constructor")}if(M&&!O){var k=o.constructor,z=l.constructor;k!=z&&"constructor"in o&&"constructor"in l&&!(typeof k=="function"&&k instanceof k&&typeof z=="function"&&z instanceof z)&&(M=!1)}return m.delete(o),m.delete(l),M}return q0=a,q0}var z0,FM;function Jee(){if(FM)return z0;FM=1;var e=Ts(),t=Na(),n=e(t,"DataView");return z0=n,z0}var U0,KM;function ete(){if(KM)return U0;KM=1;var e=Ts(),t=Na(),n=e(t,"Promise");return U0=n,U0}var F0,HM;function l8(){if(HM)return F0;HM=1;var e=Ts(),t=Na(),n=e(t,"Set");return F0=n,F0}var K0,GM;function tte(){if(GM)return K0;GM=1;var e=Ts(),t=Na(),n=e(t,"WeakMap");return K0=n,K0}var H0,VM;function nte(){if(VM)return H0;VM=1;var e=Jee(),t=eC(),n=ete(),r=l8(),a=tte(),o=pi(),l=jB(),c="[object Map]",d="[object Object]",f="[object Promise]",m="[object Set]",g="[object WeakMap]",v="[object DataView]",b=l(e),A=l(t),x=l(n),w=l(r),C=l(a),j=o;return(e&&j(new e(new ArrayBuffer(1)))!=v||t&&j(new t)!=c||n&&j(n.resolve())!=f||r&&j(new r)!=m||a&&j(new a)!=g)&&(j=function(T){var M=o(T),O=M==d?T.constructor:void 0,_=O?l(O):"";if(_)switch(_){case b:return v;case A:return c;case x:return f;case w:return m;case C:return g}return M}),H0=j,H0}var G0,YM;function rte(){if(YM)return G0;YM=1;var e=ZB(),t=n8(),n=Lee(),r=Zee(),a=nte(),o=Qn(),l=a8(),c=o8(),d=1,f="[object Arguments]",m="[object Array]",g="[object Object]",v=Object.prototype,b=v.hasOwnProperty;function A(x,w,C,j,T,M){var O=o(x),_=o(w),N=O?m:a(x),P=_?m:a(w);N=N==f?g:N,P=P==f?g:P;var k=N==g,z=P==g,B=N==P;if(B&&l(x)){if(!l(w))return!1;O=!0,k=!1}if(B&&!k)return M||(M=new e),O||c(x)?t(x,w,C,j,T,M):n(x,w,N,C,j,T,M);if(!(C&d)){var L=k&&b.call(x,"__wrapped__"),U=z&&b.call(w,"__wrapped__");if(L||U){var H=L?x.value():x,Q=U?w.value():w;return M||(M=new e),T(H,Q,C,j,M)}}return B?(M||(M=new e),r(x,w,C,j,T,M)):!1}return G0=A,G0}var V0,QM;function gC(){if(QM)return V0;QM=1;var e=rte(),t=hi();function n(r,a,o,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,o,l,n,c)}return V0=n,V0}var Y0,XM;function ate(){if(XM)return Y0;XM=1;var e=ZB(),t=gC(),n=1,r=2;function a(o,l,c,d){var f=c.length,m=f,g=!d;if(o==null)return!m;for(o=Object(o);f--;){var v=c[f];if(g&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++f<m;){v=c[f];var b=v[0],A=o[b],x=v[1];if(g&&v[2]){if(A===void 0&&!(b in o))return!1}else{var w=new e;if(d)var C=d(A,x,b,o,l,w);if(!(C===void 0?t(x,A,n|r,d,w):C))return!1}}return!0}return Y0=a,Y0}var Q0,WM;function c8(){if(WM)return Q0;WM=1;var e=fo();function t(n){return n===n&&!e(n)}return Q0=t,Q0}var X0,ZM;function ite(){if(ZM)return X0;ZM=1;var e=c8(),t=xm();function n(r){for(var a=t(r),o=a.length;o--;){var l=a[o],c=r[l];a[o]=[l,c,e(c)]}return a}return X0=n,X0}var W0,JM;function u8(){if(JM)return W0;JM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return W0=e,W0}var Z0,eP;function ote(){if(eP)return Z0;eP=1;var e=ate(),t=ite(),n=u8();function r(a){var o=t(a);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(l){return l===a||e(l,a,o)}}return Z0=r,Z0}var J0,tP;function ste(){if(tP)return J0;tP=1;function e(t,n){return t!=null&&n in Object(t)}return J0=e,J0}var e1,nP;function lte(){if(nP)return e1;nP=1;var e=TB(),t=fC(),n=Qn(),r=pC(),a=hC(),o=hm();function l(c,d,f){d=e(d,c);for(var m=-1,g=d.length,v=!1;++m<g;){var b=o(d[m]);if(!(v=c!=null&&f(c,b)))break;c=c[b]}return v||++m!=g?v:(g=c==null?0:c.length,!!g&&a(g)&&r(b,g)&&(n(c)||t(c)))}return e1=l,e1}var t1,rP;function cte(){if(rP)return t1;rP=1;var e=ste(),t=lte();function n(r,a){return r!=null&&t(r,a,e)}return t1=n,t1}var n1,aP;function ute(){if(aP)return n1;aP=1;var e=gC(),t=NB(),n=cte(),r=WO(),a=c8(),o=u8(),l=hm(),c=1,d=2;function f(m,g){return r(m)&&a(g)?o(l(m),g):function(v){var b=t(v,m);return b===void 0&&b===g?n(v,m):e(g,b,c|d)}}return n1=f,n1}var r1,iP;function Dc(){if(iP)return r1;iP=1;function e(t){return t}return r1=e,r1}var a1,oP;function dte(){if(oP)return a1;oP=1;function e(t){return function(n){return n?.[t]}}return a1=e,a1}var i1,sP;function fte(){if(sP)return i1;sP=1;var e=rC();function t(n){return function(r){return e(r,n)}}return i1=t,i1}var o1,lP;function pte(){if(lP)return o1;lP=1;var e=dte(),t=fte(),n=WO(),r=hm();function a(o){return n(o)?e(r(o)):t(o)}return o1=a,o1}var s1,cP;function Ra(){if(cP)return s1;cP=1;var e=ote(),t=ute(),n=Dc(),r=Qn(),a=pte();function o(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return s1=o,s1}var l1,uP;function d8(){if(uP)return l1;uP=1;function e(t,n,r,a){for(var o=t.length,l=r+(a?1:-1);a?l--:++l<o;)if(n(t[l],l,t))return l;return-1}return l1=e,l1}var c1,dP;function hte(){if(dP)return c1;dP=1;function e(t){return t!==t}return c1=e,c1}var u1,fP;function gte(){if(fP)return u1;fP=1;function e(t,n,r){for(var a=r-1,o=t.length;++a<o;)if(t[a]===n)return a;return-1}return u1=e,u1}var d1,pP;function mte(){if(pP)return d1;pP=1;var e=d8(),t=hte(),n=gte();function r(a,o,l){return o===o?n(a,o,l):e(a,t,l)}return d1=r,d1}var f1,hP;function vte(){if(hP)return f1;hP=1;var e=mte();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return f1=t,f1}var p1,gP;function yte(){if(gP)return p1;gP=1;function e(t,n,r){for(var a=-1,o=t==null?0:t.length;++a<o;)if(r(n,t[a]))return!0;return!1}return p1=e,p1}var h1,mP;function xte(){if(mP)return h1;mP=1;function e(){}return h1=e,h1}var g1,vP;function bte(){if(vP)return g1;vP=1;var e=l8(),t=xte(),n=dC(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(o){return new e(o)}:t;return g1=a,g1}var m1,yP;function wte(){if(yP)return m1;yP=1;var e=JB(),t=vte(),n=yte(),r=t8(),a=bte(),o=dC(),l=200;function c(d,f,m){var g=-1,v=t,b=d.length,A=!0,x=[],w=x;if(m)A=!1,v=n;else if(b>=l){var C=f?null:a(d);if(C)return o(C);A=!1,v=r,w=new e}else w=f?[]:x;e:for(;++g<b;){var j=d[g],T=f?f(j):j;if(j=m||j!==0?j:0,A&&T===T){for(var M=w.length;M--;)if(w[M]===T)continue e;f&&w.push(T),x.push(j)}else v(w,T,m)||(w!==x&&w.push(T),x.push(j))}return x}return m1=c,m1}var v1,xP;function Ste(){if(xP)return v1;xP=1;var e=Ra(),t=wte();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return v1=n,v1}var Ate=Ste();const bP=ft(Ate);function f8(e,t,n){return t===!0?bP(e,n):Re(t)?bP(e,t):e}function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}var Ote=["ref"];function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Za(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(r){bm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SP(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,h8(r.key),r)}}function jte(e,t,n){return t&&SP(e.prototype,t),n&&SP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ete(e,t,n){return t=Hh(t),_te(e,p8()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function _te(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tte(e)}function Tte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p8=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function Nte(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&&VS(e,t)}function VS(e,t){return VS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},VS(e,t)}function bm(e,t,n){return t=h8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h8(e){var t=Rte(e,"string");return Zl(t)=="symbol"?t:t+""}function Rte(e,t){if(Zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Mte(e,t){if(e==null)return{};var n=Pte(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pte(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 Dte(e){return e.value}function kte(e,t){if($.isValidElement(e))return $.cloneElement(e,t);if(typeof e=="function")return $.createElement(e,t);t.ref;var n=Mte(t,Ote);return $.createElement(uC,n)}var AP=1,rs=(function(e){function t(){var n;Cte(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Ete(this,t,[].concat(a)),bm(n,"lastBoundingBox",{width:-1,height:-1}),n}return Nte(t,e),jte(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,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>AP||Math.abs(a.height-this.lastBoundingBox.height)>AP)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(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?Za({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,o=a.layout,l=a.align,c=a.verticalAlign,d=a.margin,f=a.chartWidth,m=a.chartHeight,g,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((f||0)-b.width)/2}}else g=l==="right"?{right:d&&d.right||0}:{left:d&&d.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var A=this.getBBoxSnapshot();v={top:((m||0)-A.height)/2}}else v=c==="bottom"?{bottom:d&&d.bottom||0}:{top:d&&d.top||0};return Za(Za({},g),v)}},{key:"render",value:function(){var r=this,a=this.props,o=a.content,l=a.width,c=a.height,d=a.wrapperStyle,f=a.payloadUniqBy,m=a.payload,g=Za(Za({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(d)),d);return $.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){r.wrapperNode=b}},kte(o,Za(Za({},this.props),{},{payload:f8(m,f,Dte)})))}}],[{key:"getWithHeight",value:function(r,a){var o=Za(Za({},this.defaultProps),r.props),l=o.layout;return l==="vertical"&&ge(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(E.PureComponent);bm(rs,"displayName","Legend");bm(rs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var y1,OP;function Ite(){if(OP)return y1;OP=1;var e=gf(),t=fC(),n=Qn(),r=e?e.isConcatSpreadable:void 0;function a(o){return n(o)||t(o)||!!(r&&o&&o[r])}return y1=a,y1}var x1,CP;function g8(){if(CP)return x1;CP=1;var e=r8(),t=Ite();function n(r,a,o,l,c){var d=-1,f=r.length;for(o||(o=t),c||(c=[]);++d<f;){var m=r[d];a>0&&o(m)?a>1?n(m,a-1,o,l,c):e(c,m):l||(c[c.length]=m)}return c}return x1=n,x1}var b1,jP;function Lte(){if(jP)return b1;jP=1;function e(t){return function(n,r,a){for(var o=-1,l=Object(n),c=a(n),d=c.length;d--;){var f=c[t?d:++o];if(r(l[f],f,l)===!1)break}return n}}return b1=e,b1}var w1,EP;function Bte(){if(EP)return w1;EP=1;var e=Lte(),t=e();return w1=t,w1}var S1,_P;function m8(){if(_P)return S1;_P=1;var e=Bte(),t=xm();function n(r,a){return r&&e(r,a,t)}return S1=n,S1}var A1,TP;function $te(){if(TP)return A1;TP=1;var e=mf();function t(n,r){return function(a,o){if(a==null)return a;if(!e(a))return n(a,o);for(var l=a.length,c=r?l:-1,d=Object(a);(r?c--:++c<l)&&o(d[c],c,d)!==!1;);return a}}return A1=t,A1}var O1,NP;function mC(){if(NP)return O1;NP=1;var e=m8(),t=$te(),n=t(e);return O1=n,O1}var C1,RP;function v8(){if(RP)return C1;RP=1;var e=mC(),t=mf();function n(r,a){var o=-1,l=t(r)?Array(r.length):[];return e(r,function(c,d,f){l[++o]=a(c,d,f)}),l}return C1=n,C1}var j1,MP;function qte(){if(MP)return j1;MP=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return j1=e,j1}var E1,PP;function zte(){if(PP)return E1;PP=1;var e=Nc();function t(n,r){if(n!==r){var a=n!==void 0,o=n===null,l=n===n,c=e(n),d=r!==void 0,f=r===null,m=r===r,g=e(r);if(!f&&!g&&!c&&n>r||c&&d&&m&&!f&&!g||o&&d&&m||!a&&m||!l)return 1;if(!o&&!c&&!g&&n<r||g&&a&&l&&!o&&!c||f&&a&&l||!d&&l||!m)return-1}return 0}return E1=t,E1}var _1,DP;function Ute(){if(DP)return _1;DP=1;var e=zte();function t(n,r,a){for(var o=-1,l=n.criteria,c=r.criteria,d=l.length,f=a.length;++o<d;){var m=e(l[o],c[o]);if(m){if(o>=f)return m;var g=a[o];return m*(g=="desc"?-1:1)}}return n.index-r.index}return _1=t,_1}var T1,kP;function Fte(){if(kP)return T1;kP=1;var e=nC(),t=rC(),n=Ra(),r=v8(),a=qte(),o=i8(),l=Ute(),c=Dc(),d=Qn();function f(m,g,v){g.length?g=e(g,function(x){return d(x)?function(w){return t(w,x.length===1?x[0]:x)}:x}):g=[c];var b=-1;g=e(g,o(n));var A=r(m,function(x,w,C){var j=e(g,function(T){return T(x)});return{criteria:j,index:++b,value:x}});return a(A,function(x,w){return l(x,w,v)})}return T1=f,T1}var N1,IP;function Kte(){if(IP)return N1;IP=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return N1=e,N1}var R1,LP;function Hte(){if(LP)return R1;LP=1;var e=Kte(),t=Math.max;function n(r,a,o){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,d=t(l.length-a,0),f=Array(d);++c<d;)f[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=o(f),e(r,this,m)}}return R1=n,R1}var M1,BP;function Gte(){if(BP)return M1;BP=1;function e(t){return function(){return t}}return M1=e,M1}var P1,$P;function y8(){if($P)return P1;$P=1;var e=Ts(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return P1=t,P1}var D1,qP;function Vte(){if(qP)return D1;qP=1;var e=Gte(),t=y8(),n=Dc(),r=t?function(a,o){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return D1=r,D1}var k1,zP;function Yte(){if(zP)return k1;zP=1;var e=800,t=16,n=Date.now;function r(a){var o=0,l=0;return function(){var c=n(),d=t-(c-l);if(l=c,d>0){if(++o>=e)return arguments[0]}else o=0;return a.apply(void 0,arguments)}}return k1=r,k1}var I1,UP;function Qte(){if(UP)return I1;UP=1;var e=Vte(),t=Yte(),n=t(e);return I1=n,I1}var L1,FP;function Xte(){if(FP)return L1;FP=1;var e=Dc(),t=Hte(),n=Qte();function r(a,o){return n(t(a,o,e),a+"")}return L1=r,L1}var B1,KP;function wm(){if(KP)return B1;KP=1;var e=JO(),t=mf(),n=pC(),r=fo();function a(o,l,c){if(!r(c))return!1;var d=typeof l;return(d=="number"?t(c)&&n(l,c.length):d=="string"&&l in c)?e(c[l],o):!1}return B1=a,B1}var $1,HP;function Wte(){if(HP)return $1;HP=1;var e=g8(),t=Fte(),n=Xte(),r=wm(),a=n(function(o,l){if(o==null)return[];var c=l.length;return c>1&&r(o,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(o,e(l,1),[])});return $1=a,$1}var Zte=Wte();const vC=ft(Zte);function Sd(e){"@babel/helpers - typeof";return Sd=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},Sd(e)}function YS(){return YS=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},YS.apply(this,arguments)}function Jte(e,t){return rne(e)||nne(e,t)||tne(e,t)||ene()}function ene(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tne(e,t){if(e){if(typeof e=="string")return GP(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 GP(e,t)}}function GP(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 nne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function rne(e){if(Array.isArray(e))return e}function VP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(n),!0).forEach(function(r){ane(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ane(e,t,n){return t=ine(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ine(e){var t=one(e,"string");return Sd(t)=="symbol"?t:t+""}function one(e,t){if(Sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sne(e){return Array.isArray(e)&&Jt(e[0])&&Jt(e[1])?e.join(" ~ "):e}var lne=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,o=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,d=t.labelStyle,f=d===void 0?{}:d,m=t.payload,g=t.formatter,v=t.itemSorter,b=t.wrapperClassName,A=t.labelClassName,x=t.label,w=t.labelFormatter,C=t.accessibilityLayer,j=C===void 0?!1:C,T=function(){if(m&&m.length){var L={padding:0,margin:0},U=(v?vC(m,v):m).map(function(H,Q){if(H.type==="none")return null;var D=q1({display:"block",paddingTop:4,paddingBottom:4,color:H.color||"#000"},c),K=H.formatter||g||sne,F=H.value,X=H.name,oe=F,q=X;if(K&&oe!=null&&q!=null){var V=K(F,X,H,Q,m);if(Array.isArray(V)){var Y=Jte(V,2);oe=Y[0],q=Y[1]}else oe=V}return $.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Q),style:D},Jt(q)?$.createElement("span",{className:"recharts-tooltip-item-name"},q):null,Jt(q)?$.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,$.createElement("span",{className:"recharts-tooltip-item-value"},oe),$.createElement("span",{className:"recharts-tooltip-item-unit"},H.unit||""))});return $.createElement("ul",{className:"recharts-tooltip-item-list",style:L},U)}return null},M=q1({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),O=q1({margin:0},f),_=!Be(x),N=_?x:"",P=Le("recharts-default-tooltip",b),k=Le("recharts-tooltip-label",A);_&&w&&m!==void 0&&m!==null&&(N=w(x,m));var z=j?{role:"status","aria-live":"assertive"}:{};return $.createElement("div",YS({className:P,style:M},z),$.createElement("p",{className:k,style:O},$.isValidElement(N)?N:"".concat(N)),T())};function Ad(e){"@babel/helpers - typeof";return Ad=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},Ad(e)}function eh(e,t,n){return t=cne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cne(e){var t=une(e,"string");return Ad(t)=="symbol"?t:t+""}function une(e,t){if(Ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iu="recharts-tooltip-wrapper",dne={visibility:"hidden"};function fne(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Le(Iu,eh(eh(eh(eh({},"".concat(Iu,"-right"),ge(n)&&t&&ge(t.x)&&n>=t.x),"".concat(Iu,"-left"),ge(n)&&t&&ge(t.x)&&n<t.x),"".concat(Iu,"-bottom"),ge(r)&&t&&ge(t.y)&&r>=t.y),"".concat(Iu,"-top"),ge(r)&&t&&ge(t.y)&&r<t.y))}function YP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,o=e.position,l=e.reverseDirection,c=e.tooltipDimension,d=e.viewBox,f=e.viewBoxDimension;if(o&&ge(o[r]))return o[r];var m=n[r]-c-a,g=n[r]+a;if(t[r])return l[r]?m:g;if(l[r]){var v=m,b=d[r];return v<b?Math.max(g,d[r]):Math.max(m,d[r])}var A=g+c,x=d[r]+f;return A>x?Math.max(m,d[r]):Math.max(g,d[r])}function pne(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 hne(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,d=e.viewBox,f,m,g;return l.height>0&&l.width>0&&n?(m=YP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.width,viewBox:d,viewBoxDimension:d.width}),g=YP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:o,tooltipDimension:l.height,viewBox:d,viewBoxDimension:d.height}),f=pne({translateX:m,translateY:g,useTranslate3d:c})):f=dne,{cssProperties:f,cssClasses:fne({translateX:m,translateY:g,coordinate:n})}}function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function QP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function XP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){XS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mne(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,b8(r.key),r)}}function vne(e,t,n){return t&&mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yne(e,t,n){return t=Gh(t),xne(e,x8()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function xne(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bne(e)}function bne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x8=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function wne(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&&QS(e,t)}function QS(e,t){return QS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},QS(e,t)}function XS(e,t,n){return t=b8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b8(e){var t=Sne(e,"string");return Jl(t)=="symbol"?t:t+""}function Sne(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WP=1,Ane=(function(e){function t(){var n;gne(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=yne(this,t,[].concat(a)),XS(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),XS(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,d,f,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(d=n.props.coordinate)===null||d===void 0?void 0:d.x)!==null&&c!==void 0?c:0,y:(f=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&f!==void 0?f:0}})}}),n}return wne(t,e),vne(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>WP||Math.abs(r.height-this.state.lastBoundingBox.height)>WP)&&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,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,d=a.animationEasing,f=a.children,m=a.coordinate,g=a.hasPayload,v=a.isAnimationActive,b=a.offset,A=a.position,x=a.reverseDirection,w=a.useTranslate3d,C=a.viewBox,j=a.wrapperStyle,T=hne({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:b,position:A,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:C}),M=T.cssClasses,O=T.cssProperties,_=XP(XP({transition:v&&o?"transform ".concat(c,"ms ").concat(d):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&g?"visible":"hidden",position:"absolute",top:0,left:0},j);return $.createElement("div",{tabIndex:-1,className:M,style:_,ref:function(P){r.wrapperNode=P}},f)}}])})(E.PureComponent),One=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ns={isSsr:One()};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 ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function JP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZP(Object(n),!0).forEach(function(r){yC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jne(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,S8(r.key),r)}}function Ene(e,t,n){return t&&jne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ne(e,t,n){return t=Vh(t),Tne(e,w8()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}function Tne(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nne(e)}function Nne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w8=function(){return!!e})()}function Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vh(e)}function Rne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&WS(e,t)}function WS(e,t){return WS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WS(e,t)}function yC(e,t,n){return t=S8(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S8(e){var t=Mne(e,"string");return ec(t)=="symbol"?t:t+""}function Mne(e,t){if(ec(e)!="object"||!e)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 String(e)}function Pne(e){return e.dataKey}function Dne(e,t){return $.isValidElement(e)?$.cloneElement(e,t):typeof e=="function"?$.createElement(e,t):$.createElement(lne,t)}var Gr=(function(e){function t(){return Cne(this,t),_ne(this,t,arguments)}return Rne(t,e),Ene(t,[{key:"render",value:function(){var r=this,a=this.props,o=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,d=a.animationEasing,f=a.content,m=a.coordinate,g=a.filterNull,v=a.isAnimationActive,b=a.offset,A=a.payload,x=a.payloadUniqBy,w=a.position,C=a.reverseDirection,j=a.useTranslate3d,T=a.viewBox,M=a.wrapperStyle,O=A??[];g&&O.length&&(O=f8(A.filter(function(N){return N.value!=null&&(N.hide!==!0||r.props.includeHidden)}),x,Pne));var _=O.length>0;return $.createElement(Ane,{allowEscapeViewBox:l,animationDuration:c,animationEasing:d,isAnimationActive:v,active:o,coordinate:m,hasPayload:_,offset:b,position:w,reverseDirection:C,useTranslate3d:j,viewBox:T,wrapperStyle:M},Dne(f,JP(JP({},this.props),{},{payload:O})))}}])})(E.PureComponent);yC(Gr,"displayName","Tooltip");yC(Gr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ns.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 z1,eD;function kne(){if(eD)return z1;eD=1;var e=Na(),t=function(){return e.Date.now()};return z1=t,z1}var U1,tD;function Ine(){if(tD)return U1;tD=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return U1=t,U1}var F1,nD;function Lne(){if(nD)return F1;nD=1;var e=Ine(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return F1=n,F1}var K1,rD;function A8(){if(rD)return K1;rD=1;var e=Lne(),t=fo(),n=Nc(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function d(f){if(typeof f=="number")return f;if(n(f))return r;if(t(f)){var m=typeof f.valueOf=="function"?f.valueOf():f;f=t(m)?m+"":m}if(typeof f!="string")return f===0?f:+f;f=e(f);var g=o.test(f);return g||l.test(f)?c(f.slice(2),g?2:8):a.test(f)?r:+f}return K1=d,K1}var H1,aD;function Bne(){if(aD)return H1;aD=1;var e=fo(),t=kne(),n=A8(),r="Expected a function",a=Math.max,o=Math.min;function l(c,d,f){var m,g,v,b,A,x,w=0,C=!1,j=!1,T=!0;if(typeof c!="function")throw new TypeError(r);d=n(d)||0,e(f)&&(C=!!f.leading,j="maxWait"in f,v=j?a(n(f.maxWait)||0,d):v,T="trailing"in f?!!f.trailing:T);function M(U){var H=m,Q=g;return m=g=void 0,w=U,b=c.apply(Q,H),b}function O(U){return w=U,A=setTimeout(P,d),C?M(U):b}function _(U){var H=U-x,Q=U-w,D=d-H;return j?o(D,v-Q):D}function N(U){var H=U-x,Q=U-w;return x===void 0||H>=d||H<0||j&&Q>=v}function P(){var U=t();if(N(U))return k(U);A=setTimeout(P,_(U))}function k(U){return A=void 0,T&&m?M(U):(m=g=void 0,b)}function z(){A!==void 0&&clearTimeout(A),w=0,m=x=g=A=void 0}function B(){return A===void 0?b:k(t())}function L(){var U=t(),H=N(U);if(m=arguments,g=this,x=U,H){if(A===void 0)return O(x);if(j)return clearTimeout(A),A=setTimeout(P,d),M(x)}return A===void 0&&(A=setTimeout(P,d)),b}return L.cancel=z,L.flush=B,L}return H1=l,H1}var G1,iD;function $ne(){if(iD)return G1;iD=1;var e=Bne(),t=fo(),n="Expected a function";function r(a,o,l){var c=!0,d=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,d="trailing"in l?!!l.trailing:d),e(a,o,{leading:c,maxWait:o,trailing:d})}return G1=r,G1}var qne=$ne();const O8=ft(qne);function Od(e){"@babel/helpers - typeof";return Od=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},Od(e)}function oD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){zne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zne(e,t,n){return t=Une(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){var t=Fne(e,"string");return Od(t)=="symbol"?t:t+""}function Fne(e,t){if(Od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kne(e,t){return Yne(e)||Vne(e,t)||Gne(e,t)||Hne()}function Hne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gne(e,t){if(e){if(typeof e=="string")return sD(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 sD(e,t)}}function sD(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 Vne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function Yne(e){if(Array.isArray(e))return e}var lD=E.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,o=e.width,l=o===void 0?"100%":o,c=e.height,d=c===void 0?"100%":c,f=e.minWidth,m=f===void 0?0:f,g=e.minHeight,v=e.maxHeight,b=e.children,A=e.debounce,x=A===void 0?0:A,w=e.id,C=e.className,j=e.onResize,T=e.style,M=T===void 0?{}:T,O=E.useRef(null),_=E.useRef();_.current=j,E.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var N=E.useState({containerWidth:a.width,containerHeight:a.height}),P=Kne(N,2),k=P[0],z=P[1],B=E.useCallback(function(U,H){z(function(Q){var D=Math.round(U),K=Math.round(H);return Q.containerWidth===D&&Q.containerHeight===K?Q:{containerWidth:D,containerHeight:K}})},[]);E.useEffect(function(){var U=function(X){var oe,q=X[0].contentRect,V=q.width,Y=q.height;B(V,Y),(oe=_.current)===null||oe===void 0||oe.call(_,V,Y)};x>0&&(U=O8(U,x,{trailing:!0,leading:!1}));var H=new ResizeObserver(U),Q=O.current.getBoundingClientRect(),D=Q.width,K=Q.height;return B(D,K),H.observe(O.current),function(){H.disconnect()}},[B,x]);var L=E.useMemo(function(){var U=k.containerWidth,H=k.containerHeight;if(U<0||H<0)return null;Qr(Zo(l)||Zo(d),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,l,d),Qr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Q=Zo(l)?U:l,D=Zo(d)?H:d;n&&n>0&&(Q?D=Q/n:D&&(Q=D*n),v&&D>v&&(D=v)),Qr(Q>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,Q,D,l,d,m,g,n);var K=!Array.isArray(b)&&ai(b.type).endsWith("Chart");return $.Children.map(b,function(F){return $.isValidElement(F)?E.cloneElement(F,th({width:Q,height:D},K?{style:th({height:"100%",width:"100%",maxHeight:D,maxWidth:Q},F.props.style)}:{})):F})},[n,b,d,v,g,m,k,l]);return $.createElement("div",{id:w?"".concat(w):void 0,className:Le("recharts-responsive-container",C),style:th(th({},M),{},{width:l,height:d,minWidth:m,minHeight:g,maxHeight:v}),ref:O},L)}),Sm=function(t){return null};Sm.displayName="Cell";function Cd(e){"@babel/helpers - typeof";return Cd=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},Cd(e)}function cD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ZS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){Qne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qne(e,t,n){return t=Xne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xne(e){var t=Wne(e,"string");return Cd(t)=="symbol"?t:t+""}function Wne(e,t){if(Cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tl={widthCache:{},cacheCount:0},Zne=2e3,Jne={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},uD="recharts_measurement_span";function ere(e){var t=ZS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var td=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ns.isSsr)return{width:0,height:0};var r=ere(n),a=JSON.stringify({text:t,copyStyle:r});if(Tl.widthCache[a])return Tl.widthCache[a];try{var o=document.getElementById(uD);o||(o=document.createElement("span"),o.setAttribute("id",uD),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var l=ZS(ZS({},Jne),r);Object.assign(o.style,l),o.textContent="".concat(t);var c=o.getBoundingClientRect(),d={width:c.width,height:c.height};return Tl.widthCache[a]=d,++Tl.cacheCount>Zne&&(Tl.cacheCount=0,Tl.widthCache={}),d}catch{return{width:0,height:0}}},tre=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function jd(e){"@babel/helpers - typeof";return jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jd(e)}function Yh(e,t){return ire(e)||are(e,t)||rre(e,t)||nre()}function nre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rre(e,t){if(e){if(typeof e=="string")return dD(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 dD(e,t)}}function dD(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 are(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function ire(e){if(Array.isArray(e))return e}function ore(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fD(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,lre(r.key),r)}}function sre(e,t,n){return t&&fD(e.prototype,t),n&&fD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lre(e){var t=cre(e,"string");return jd(t)=="symbol"?t:t+""}function cre(e,t){if(jd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,hD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ure=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,dre=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,C8={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},fre=Object.keys(C8),kl="NaN";function pre(e,t){return e*C8[t]}var nh=(function(){function e(t,n){ore(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!ure.test(n)&&(this.num=NaN,this.unit=""),fre.includes(n)&&(this.num=pre(t,n),this.unit="px")}return sre(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,a=(r=dre.exec(n))!==null&&r!==void 0?r:[],o=Yh(a,3),l=o[1],c=o[2];return new e(parseFloat(l),c??"")}}])})();function j8(e){if(e.includes(kl))return kl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=pD.exec(t))!==null&&n!==void 0?n:[],a=Yh(r,4),o=a[1],l=a[2],c=a[3],d=nh.parse(o??""),f=nh.parse(c??""),m=l==="*"?d.multiply(f):d.divide(f);if(m.isNaN())return kl;t=t.replace(pD,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var g,v=(g=hD.exec(t))!==null&&g!==void 0?g:[],b=Yh(v,4),A=b[1],x=b[2],w=b[3],C=nh.parse(A??""),j=nh.parse(w??""),T=x==="+"?C.add(j):C.subtract(j);if(T.isNaN())return kl;t=t.replace(hD,T.toString())}return t}var gD=/\(([^()]*)\)/;function hre(e){for(var t=e;t.includes("(");){var n=gD.exec(t),r=Yh(n,2),a=r[1];t=t.replace(gD,j8(a))}return t}function gre(e){var t=e.replace(/\s+/g,"");return t=hre(t),t=j8(t),t}function mre(e){try{return gre(e)}catch{return kl}}function V1(e){var t=mre(e.slice(5,-1));return t===kl?"":t}var vre=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],yre=["dx","dy","angle","className","breakAll"];function JS(){return JS=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},JS.apply(this,arguments)}function mD(e,t){if(e==null)return{};var n=xre(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xre(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 vD(e,t){return Are(e)||Sre(e,t)||wre(e,t)||bre()}function bre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wre(e,t){if(e){if(typeof e=="string")return yD(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 yD(e,t)}}function yD(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 Sre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function Are(e){if(Array.isArray(e))return e}var E8=/[ \f\n\r\t\v\u2028\u2029]+/,_8=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var o=[];Be(n)||(r?o=n.toString().split(""):o=n.toString().split(E8));var l=o.map(function(d){return{word:d,width:td(d,a).width}}),c=r?0:td(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},Ore=function(t,n,r,a,o){var l=t.maxLines,c=t.children,d=t.style,f=t.breakAll,m=ge(l),g=c,v=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Q.reduce(function(D,K){var F=K.word,X=K.width,oe=D[D.length-1];if(oe&&(a==null||o||oe.width+X+r<Number(a)))oe.words.push(F),oe.width+=X+r;else{var q={words:[F],width:X};D.push(q)}return D},[])},b=v(n),A=function(Q){return Q.reduce(function(D,K){return D.width>K.width?D:K})};if(!m)return b;for(var x="…",w=function(Q){var D=g.slice(0,Q),K=_8({breakAll:f,style:d,children:D+x}).wordsWithComputedWidth,F=v(K),X=F.length>l||A(F).width>Number(a);return[X,F]},C=0,j=g.length-1,T=0,M;C<=j&&T<=g.length-1;){var O=Math.floor((C+j)/2),_=O-1,N=w(_),P=vD(N,2),k=P[0],z=P[1],B=w(O),L=vD(B,1),U=L[0];if(!k&&!U&&(C=O+1),k&&U&&(j=O-1),!k&&U){M=z;break}T++}return M||b},xD=function(t){var n=Be(t)?[]:t.toString().split(E8);return[{words:n}]},Cre=function(t){var n=t.width,r=t.scaleToFit,a=t.children,o=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Ns.isSsr){var d,f,m=_8({breakAll:l,children:a,style:o});if(m){var g=m.wordsWithComputedWidth,v=m.spaceWidth;d=g,f=v}else return xD(a);return Ore({breakAll:l,children:a,maxLines:c,style:o},d,f,n,r)}return xD(a)},bD="#808080",vs=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,d=t.capHeight,f=d===void 0?"0.71em":d,m=t.scaleToFit,g=m===void 0?!1:m,v=t.textAnchor,b=v===void 0?"start":v,A=t.verticalAnchor,x=A===void 0?"end":A,w=t.fill,C=w===void 0?bD:w,j=mD(t,vre),T=E.useMemo(function(){return Cre({breakAll:j.breakAll,children:j.children,maxLines:j.maxLines,scaleToFit:g,style:j.style,width:j.width})},[j.breakAll,j.children,j.maxLines,g,j.style,j.width]),M=j.dx,O=j.dy,_=j.angle,N=j.className,P=j.breakAll,k=mD(j,yre);if(!Jt(r)||!Jt(o))return null;var z=r+(ge(M)?M:0),B=o+(ge(O)?O:0),L;switch(x){case"start":L=V1("calc(".concat(f,")"));break;case"middle":L=V1("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(f," / 2))"));break;default:L=V1("calc(".concat(T.length-1," * -").concat(c,")"));break}var U=[];if(g){var H=T[0].width,Q=j.width;U.push("scale(".concat((ge(Q)?Q/H:1)/H,")"))}return _&&U.push("rotate(".concat(_,", ").concat(z,", ").concat(B,")")),U.length&&(k.transform=U.join(" ")),$.createElement("text",JS({},_e(k,!0),{x:z,y:B,className:Le("recharts-text",N),textAnchor:b,fill:C.includes("url")?bD:C}),T.map(function(D,K){var F=D.words.join(P?"":" ");return $.createElement("tspan",{x:z,dy:K===0?L:c,key:"".concat(F,"-").concat(K)},F)}))};function eo(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jre(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xC(e){let t,n,r;e.length!==2?(t=eo,n=(c,d)=>eo(e(c),d),r=(c,d)=>e(c)-d):(t=e===eo||e===jre?e:Ere,n=e,r=e);function a(c,d,f=0,m=c.length){if(f<m){if(t(d,d)!==0)return m;do{const g=f+m>>>1;n(c[g],d)<0?f=g+1:m=g}while(f<m)}return f}function o(c,d,f=0,m=c.length){if(f<m){if(t(d,d)!==0)return m;do{const g=f+m>>>1;n(c[g],d)<=0?f=g+1:m=g}while(f<m)}return f}function l(c,d,f=0,m=c.length){const g=a(c,d,f,m-1);return g>f&&r(c[g-1],d)>-r(c[g],d)?g-1:g}return{left:a,center:l,right:o}}function Ere(){return 0}function T8(e){return e===null?NaN:+e}function*_re(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Tre=xC(eo),vf=Tre.right;xC(T8).center;class wD extends Map{constructor(t,n=Mre){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(SD(this,t))}has(t){return super.has(SD(this,t))}set(t,n){return super.set(Nre(this,t),n)}delete(t){return super.delete(Rre(this,t))}}function SD({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Nre({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Rre({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Mre(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Pre(e=eo){if(e===eo)return N8;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 N8(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Dre=Math.sqrt(50),kre=Math.sqrt(10),Ire=Math.sqrt(2);function Qh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),o=r/Math.pow(10,a),l=o>=Dre?10:o>=kre?5:o>=Ire?2:1;let c,d,f;return a<0?(f=Math.pow(10,-a)/l,c=Math.round(e*f),d=Math.round(t*f),c/f<e&&++c,d/f>t&&--d,f=-f):(f=Math.pow(10,a)*l,c=Math.round(e/f),d=Math.round(t/f),c*f<e&&++c,d*f>t&&--d),d<c&&.5<=n&&n<2?Qh(e,t,n*2):[c,d,f]}function eA(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,o,l]=r?Qh(t,e,n):Qh(e,t,n);if(!(o>=a))return[];const c=o-a+1,d=new Array(c);if(r)if(l<0)for(let f=0;f<c;++f)d[f]=(o-f)/-l;else for(let f=0;f<c;++f)d[f]=(o-f)*l;else if(l<0)for(let f=0;f<c;++f)d[f]=(a+f)/-l;else for(let f=0;f<c;++f)d[f]=(a+f)*l;return d}function tA(e,t,n){return t=+t,e=+e,n=+n,Qh(e,t,n)[2]}function nA(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?tA(t,e,n):tA(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function AD(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function OD(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function R8(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?N8:Pre(a);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,m=Math.log(d),g=.5*Math.exp(2*m/3),v=.5*Math.sqrt(m*g*(d-g)/d)*(f-d/2<0?-1:1),b=Math.max(n,Math.floor(t-f*g/d+v)),A=Math.min(r,Math.floor(t+(d-f)*g/d+v));R8(e,t,b,A,a)}const o=e[t];let l=n,c=r;for(Lu(e,n,t),a(e[r],o)>0&&Lu(e,n,r);l<c;){for(Lu(e,l,c),++l,--c;a(e[l],o)<0;)++l;for(;a(e[c],o)>0;)--c}a(e[n],o)===0?Lu(e,n,c):(++c,Lu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Lu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Lre(e,t,n){if(e=Float64Array.from(_re(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return OD(e);if(t>=1)return AD(e);var r,a=(r-1)*t,o=Math.floor(a),l=AD(R8(e,o).subarray(0,o+1)),c=OD(e.subarray(o+1));return l+(c-l)*(a-o)}}function Bre(e,t,n=T8){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),l=+n(e[o],o,e),c=+n(e[o+1],o+1,e);return l+(c-l)*(a-o)}}function $re(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(a);++r<a;)o[r]=e+r*n;return o}function Ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function gi(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 rA=Symbol("implicit");function bC(){var e=new wD,t=[],n=[],r=rA;function a(o){let l=e.get(o);if(l===void 0){if(r!==rA)return r;e.set(o,l=t.push(o)-1)}return n[l%n.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new wD;for(const l of o)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(o){return arguments.length?(n=Array.from(o),a):n.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return bC(t,n).unknown(r)},Ir.apply(a,arguments),a}function Ed(){var e=bC().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,o,l,c=!1,d=0,f=0,m=.5;delete e.unknown;function g(){var v=t().length,b=a<r,A=b?a:r,x=b?r:a;o=(x-A)/Math.max(1,v-d+f*2),c&&(o=Math.floor(o)),A+=(x-A-o*(v-d))*m,l=o*(1-d),c&&(A=Math.round(A),l=Math.round(l));var w=$re(v).map(function(C){return A+o*C});return n(b?w.reverse():w)}return e.domain=function(v){return arguments.length?(t(v),g()):t()},e.range=function(v){return arguments.length?([r,a]=v,r=+r,a=+a,g()):[r,a]},e.rangeRound=function(v){return[r,a]=v,r=+r,a=+a,c=!0,g()},e.bandwidth=function(){return l},e.step=function(){return o},e.round=function(v){return arguments.length?(c=!!v,g()):c},e.padding=function(v){return arguments.length?(d=Math.min(1,f=+v),g()):d},e.paddingInner=function(v){return arguments.length?(d=Math.min(1,v),g()):d},e.paddingOuter=function(v){return arguments.length?(f=+v,g()):f},e.align=function(v){return arguments.length?(m=Math.max(0,Math.min(1,v)),g()):m},e.copy=function(){return Ed(t(),[r,a]).round(c).paddingInner(d).paddingOuter(f).align(m)},Ir.apply(g(),arguments)}function M8(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return M8(t())},e}function nd(){return M8(Ed.apply(null,arguments).paddingInner(1))}function wC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function P8(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yf(){}var _d=.7,Xh=1/_d,Fl="\\s*([+-]?\\d+)\\s*",Td="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qre=/^#([0-9a-f]{3,8})$/,zre=new RegExp(`^rgb\\(${Fl},${Fl},${Fl}\\)$`),Ure=new RegExp(`^rgb\\(${xa},${xa},${xa}\\)$`),Fre=new RegExp(`^rgba\\(${Fl},${Fl},${Fl},${Td}\\)$`),Kre=new RegExp(`^rgba\\(${xa},${xa},${xa},${Td}\\)$`),Hre=new RegExp(`^hsl\\(${Td},${xa},${xa}\\)$`),Gre=new RegExp(`^hsla\\(${Td},${xa},${xa},${Td}\\)$`),CD={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};wC(yf,Nd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jD,formatHex:jD,formatHex8:Vre,formatHsl:Yre,formatRgb:ED,toString:ED});function jD(){return this.rgb().formatHex()}function Vre(){return this.rgb().formatHex8()}function Yre(){return D8(this).formatHsl()}function ED(){return this.rgb().formatRgb()}function Nd(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qre.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_D(t):n===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rh(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=zre.exec(e))?new Yn(t[1],t[2],t[3],1):(t=Ure.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Fre.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=Kre.exec(e))?rh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hre.exec(e))?RD(t[1],t[2]/100,t[3]/100,1):(t=Gre.exec(e))?RD(t[1],t[2]/100,t[3]/100,t[4]):CD.hasOwnProperty(e)?_D(CD[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function _D(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function rh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Yn(e,t,n,r)}function Qre(e){return e instanceof yf||(e=Nd(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function aA(e,t,n,r){return arguments.length===1?Qre(e):new Yn(e,t,n,r??1)}function Yn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wC(Yn,aA,P8(yf,{brighter(e){return e=e==null?Xh:Math.pow(Xh,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_d:Math.pow(_d,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(as(this.r),as(this.g),as(this.b),Wh(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:TD,formatHex:TD,formatHex8:Xre,formatRgb:ND,toString:ND}));function TD(){return`#${Jo(this.r)}${Jo(this.g)}${Jo(this.b)}`}function Xre(){return`#${Jo(this.r)}${Jo(this.g)}${Jo(this.b)}${Jo((isNaN(this.opacity)?1:this.opacity)*255)}`}function ND(){const e=Wh(this.opacity);return`${e===1?"rgb(":"rgba("}${as(this.r)}, ${as(this.g)}, ${as(this.b)}${e===1?")":`, ${e})`}`}function Wh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function as(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jo(e){return e=as(e),(e<16?"0":"")+e.toString(16)}function RD(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yr(e,t,n,r)}function D8(e){if(e instanceof Yr)return new Yr(e.h,e.s,e.l,e.opacity);if(e instanceof yf||(e=Nd(e)),!e)return new Yr;if(e instanceof Yr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),l=NaN,c=o-a,d=(o+a)/2;return c?(t===o?l=(n-r)/c+(n<r)*6:n===o?l=(r-t)/c+2:l=(t-n)/c+4,c/=d<.5?o+a:2-o-a,l*=60):c=d>0&&d<1?0:l,new Yr(l,c,d,e.opacity)}function Wre(e,t,n,r){return arguments.length===1?D8(e):new Yr(e,t,n,r??1)}function Yr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wC(Yr,Wre,P8(yf,{brighter(e){return e=e==null?Xh:Math.pow(Xh,e),new Yr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_d:Math.pow(_d,e),new Yr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Yn(Y1(e>=240?e-240:e+120,a,r),Y1(e,a,r),Y1(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Yr(MD(this.h),ah(this.s),ah(this.l),Wh(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=Wh(this.opacity);return`${e===1?"hsl(":"hsla("}${MD(this.h)}, ${ah(this.s)*100}%, ${ah(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MD(e){return e=(e||0)%360,e<0?e+360:e}function ah(e){return Math.max(0,Math.min(1,e||0))}function Y1(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 SC=e=>()=>e;function Zre(e,t){return function(n){return e+n*t}}function Jre(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 eae(e){return(e=+e)==1?k8:function(t,n){return n-t?Jre(t,n,e):SC(isNaN(t)?n:t)}}function k8(e,t){var n=t-e;return n?Zre(e,n):SC(isNaN(e)?t:e)}const PD=(function e(t){var n=eae(t);function r(a,o){var l=n((a=aA(a)).r,(o=aA(o)).r),c=n(a.g,o.g),d=n(a.b,o.b),f=k8(a.opacity,o.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=d(m),a.opacity=f(m),a+""}}return r.gamma=e,r})(1);function tae(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(o){for(a=0;a<n;++a)r[a]=e[a]*(1-o)+t[a]*o;return r}}function nae(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rae(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),o=new Array(n),l;for(l=0;l<r;++l)a[l]=kc(e[l],t[l]);for(;l<n;++l)o[l]=t[l];return function(c){for(l=0;l<r;++l)o[l]=a[l](c);return o}}function aae(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Zh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iae(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=kc(e[a],t[a]):r[a]=t[a];return function(o){for(a in n)r[a]=n[a](o);return r}}var iA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Q1=new RegExp(iA.source,"g");function oae(e){return function(){return e}}function sae(e){return function(t){return e(t)+""}}function lae(e,t){var n=iA.lastIndex=Q1.lastIndex=0,r,a,o,l=-1,c=[],d=[];for(e=e+"",t=t+"";(r=iA.exec(e))&&(a=Q1.exec(t));)(o=a.index)>n&&(o=t.slice(n,o),c[l]?c[l]+=o:c[++l]=o),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,d.push({i:l,x:Zh(r,a)})),n=Q1.lastIndex;return n<t.length&&(o=t.slice(n),c[l]?c[l]+=o:c[++l]=o),c.length<2?d[0]?sae(d[0].x):oae(t):(t=d.length,function(f){for(var m=0,g;m<t;++m)c[(g=d[m]).i]=g.x(f);return c.join("")})}function kc(e,t){var n=typeof t,r;return t==null||n==="boolean"?SC(t):(n==="number"?Zh:n==="string"?(r=Nd(t))?(t=r,PD):lae:t instanceof Nd?PD:t instanceof Date?aae:nae(t)?tae:Array.isArray(t)?rae:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?iae:Zh)(e,t)}function AC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function cae(e,t){t===void 0&&(t=e,e=kc);for(var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return o[c](l-c)}}function uae(e){return function(){return e}}function Jh(e){return+e}var DD=[0,1];function Pn(e){return e}function oA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:uae(isNaN(t)?NaN:.5)}function dae(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function fae(e,t,n){var r=e[0],a=e[1],o=t[0],l=t[1];return a<r?(r=oA(a,r),o=n(l,o)):(r=oA(r,a),o=n(o,l)),function(c){return o(r(c))}}function pae(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=oA(e[l],e[l+1]),o[l]=n(t[l],t[l+1]);return function(c){var d=vf(e,c,1,r)-1;return o[d](a[d](c))}}function xf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Am(){var e=DD,t=DD,n=kc,r,a,o,l=Pn,c,d,f;function m(){var v=Math.min(e.length,t.length);return l!==Pn&&(l=dae(e[0],e[v-1])),c=v>2?pae:fae,d=f=null,g}function g(v){return v==null||isNaN(v=+v)?o:(d||(d=c(e.map(r),t,n)))(r(l(v)))}return g.invert=function(v){return l(a((f||(f=c(t,e.map(r),Zh)))(v)))},g.domain=function(v){return arguments.length?(e=Array.from(v,Jh),m()):e.slice()},g.range=function(v){return arguments.length?(t=Array.from(v),m()):t.slice()},g.rangeRound=function(v){return t=Array.from(v),n=AC,m()},g.clamp=function(v){return arguments.length?(l=v?!0:Pn,m()):l!==Pn},g.interpolate=function(v){return arguments.length?(n=v,m()):n},g.unknown=function(v){return arguments.length?(o=v,g):o},function(v,b){return r=v,a=b,m()}}function OC(){return Am()(Pn,Pn)}function hae(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function eg(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 tc(e){return e=eg(Math.abs(e)),e?e[1]:NaN}function gae(e,t){return function(n,r){for(var a=n.length,o=[],l=0,c=e[0],d=0;a>0&&c>0&&(d+c+1>r&&(c=Math.max(1,r-d)),o.push(n.substring(a-=c,a+c)),!((d+=c+1)>r));)c=e[l=(l+1)%e.length];return o.reverse().join(t)}}function mae(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var vae=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rd(e){if(!(t=vae.exec(e)))throw new Error("invalid format: "+e);var t;return new CC({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]})}Rd.prototype=CC.prototype;function CC(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+""}CC.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 yae(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var I8;function xae(e,t){var n=eg(e,t);if(!n)return e+"";var r=n[0],a=n[1],o=a-(I8=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return o===l?r:o>l?r+new Array(o-l+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+eg(e,Math.max(0,t+o-1))[0]}function kD(e,t){var n=eg(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const ID={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hae,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)=>kD(e*100,t),r:kD,s:xae,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function LD(e){return e}var BD=Array.prototype.map,$D=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bae(e){var t=e.grouping===void 0||e.thousands===void 0?LD:gae(BD.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?LD:mae(BD.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(g){g=Rd(g);var v=g.fill,b=g.align,A=g.sign,x=g.symbol,w=g.zero,C=g.width,j=g.comma,T=g.precision,M=g.trim,O=g.type;O==="n"?(j=!0,O="g"):ID[O]||(T===void 0&&(T=12),M=!0,O="g"),(w||v==="0"&&b==="=")&&(w=!0,v="0",b="=");var _=x==="$"?n:x==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",N=x==="$"?r:/[%p]/.test(O)?l:"",P=ID[O],k=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function z(B){var L=_,U=N,H,Q,D;if(O==="c")U=P(B)+U,B="";else{B=+B;var K=B<0||1/B<0;if(B=isNaN(B)?d:P(Math.abs(B),T),M&&(B=yae(B)),K&&+B==0&&A!=="+"&&(K=!1),L=(K?A==="("?A:c:A==="-"||A==="("?"":A)+L,U=(O==="s"?$D[8+I8/3]:"")+U+(K&&A==="("?")":""),k){for(H=-1,Q=B.length;++H<Q;)if(D=B.charCodeAt(H),48>D||D>57){U=(D===46?a+B.slice(H+1):B.slice(H))+U,B=B.slice(0,H);break}}}j&&!w&&(B=t(B,1/0));var F=L.length+B.length+U.length,X=F<C?new Array(C-F+1).join(v):"";switch(j&&w&&(B=t(X+B,X.length?C-U.length:1/0),X=""),b){case"<":B=L+B+U+X;break;case"=":B=L+X+B+U;break;case"^":B=X.slice(0,F=X.length>>1)+L+B+U+X.slice(F);break;default:B=X+L+B+U;break}return o(B)}return z.toString=function(){return g+""},z}function m(g,v){var b=f((g=Rd(g),g.type="f",g)),A=Math.max(-8,Math.min(8,Math.floor(tc(v)/3)))*3,x=Math.pow(10,-A),w=$D[8+A/3];return function(C){return b(x*C)+w}}return{format:f,formatPrefix:m}}var ih,jC,L8;wae({thousands:",",grouping:[3],currency:["$",""]});function wae(e){return ih=bae(e),jC=ih.format,L8=ih.formatPrefix,ih}function Sae(e){return Math.max(0,-tc(Math.abs(e)))}function Aae(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tc(t)/3)))*3-tc(Math.abs(e)))}function Oae(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tc(t)-tc(e))+1}function B8(e,t,n,r){var a=nA(e,t,n),o;switch(r=Rd(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=Aae(a,l))&&(r.precision=o),L8(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=Oae(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Sae(a))&&(r.precision=o-(r.type==="%")*2);break}}return jC(r)}function po(e){var t=e.domain;return e.ticks=function(n){var r=t();return eA(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return B8(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,o=r.length-1,l=r[a],c=r[o],d,f,m=10;for(c<l&&(f=l,l=c,c=f,f=a,a=o,o=f);m-- >0;){if(f=tA(l,c,n),f===d)return r[a]=l,r[o]=c,t(r);if(f>0)l=Math.floor(l/f)*f,c=Math.ceil(c/f)*f;else if(f<0)l=Math.ceil(l*f)/f,c=Math.floor(c*f)/f;else break;d=f}return e},e}function tg(){var e=OC();return e.copy=function(){return xf(e,tg())},Ir.apply(e,arguments),po(e)}function $8(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,Jh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return $8(e).unknown(t)},e=arguments.length?Array.from(e,Jh):[0,1],po(n)}function q8(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],o=e[r],l;return o<a&&(l=n,n=r,r=l,l=a,a=o,o=l),e[n]=t.floor(a),e[r]=t.ceil(o),e}function qD(e){return Math.log(e)}function zD(e){return Math.exp(e)}function Cae(e){return-Math.log(-e)}function jae(e){return-Math.exp(-e)}function Eae(e){return isFinite(e)?+("1e"+e):e<0?0:e}function _ae(e){return e===10?Eae:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Tae(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 UD(e){return(t,n)=>-e(-t,n)}function EC(e){const t=e(qD,zD),n=t.domain;let r=10,a,o;function l(){return a=Tae(r),o=_ae(r),n()[0]<0?(a=UD(a),o=UD(o),e(Cae,jae)):e(qD,zD),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const d=n();let f=d[0],m=d[d.length-1];const g=m<f;g&&([f,m]=[m,f]);let v=a(f),b=a(m),A,x;const w=c==null?10:+c;let C=[];if(!(r%1)&&b-v<w){if(v=Math.floor(v),b=Math.ceil(b),f>0){for(;v<=b;++v)for(A=1;A<r;++A)if(x=v<0?A/o(-v):A*o(v),!(x<f)){if(x>m)break;C.push(x)}}else for(;v<=b;++v)for(A=r-1;A>=1;--A)if(x=v>0?A/o(-v):A*o(v),!(x<f)){if(x>m)break;C.push(x)}C.length*2<w&&(C=eA(f,m,w))}else C=eA(v,b,Math.min(b-v,w)).map(o);return g?C.reverse():C},t.tickFormat=(c,d)=>{if(c==null&&(c=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Rd(d)).precision==null&&(d.trim=!0),d=jC(d)),c===1/0)return d;const f=Math.max(1,r*c/t.ticks().length);return m=>{let g=m/o(Math.round(a(m)));return g*r<r-.5&&(g*=r),g<=f?d(m):""}},t.nice=()=>n(q8(n(),{floor:c=>o(Math.floor(a(c))),ceil:c=>o(Math.ceil(a(c)))})),t}function z8(){const e=EC(Am()).domain([1,10]);return e.copy=()=>xf(e,z8()).base(e.base()),Ir.apply(e,arguments),e}function FD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function KD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _C(e){var t=1,n=e(FD(t),KD(t));return n.constant=function(r){return arguments.length?e(FD(t=+r),KD(t)):t},po(n)}function U8(){var e=_C(Am());return e.copy=function(){return xf(e,U8()).constant(e.constant())},Ir.apply(e,arguments)}function HD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Nae(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Rae(e){return e<0?-e*e:e*e}function TC(e){var t=e(Pn,Pn),n=1;function r(){return n===1?e(Pn,Pn):n===.5?e(Nae,Rae):e(HD(n),HD(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},po(t)}function NC(){var e=TC(Am());return e.copy=function(){return xf(e,NC()).exponent(e.exponent())},Ir.apply(e,arguments),e}function Mae(){return NC.apply(null,arguments).exponent(.5)}function GD(e){return Math.sign(e)*e*e}function Pae(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function F8(){var e=OC(),t=[0,1],n=!1,r;function a(o){var l=Pae(e(o));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(o){return e.invert(GD(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,Jh)).map(GD)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(n=!!o,a):n},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return F8(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ir.apply(a,arguments),po(a)}function K8(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=Bre(e,l/c);return o}function o(l){return l==null||isNaN(l=+l)?r:t[vf(n,l)]}return o.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},o.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(eo),a()},o.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},o.unknown=function(l){return arguments.length?(r=l,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return K8().domain(e).range(t).unknown(r)},Ir.apply(o,arguments)}function H8(){var e=0,t=1,n=1,r=[.5],a=[0,1],o;function l(d){return d!=null&&d<=d?a[vf(r,d,0,n)]:o}function c(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return l}return l.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,c()):[e,t]},l.range=function(d){return arguments.length?(n=(a=Array.from(d)).length-1,c()):a.slice()},l.invertExtent=function(d){var f=a.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},l.unknown=function(d){return arguments.length&&(o=d),l},l.thresholds=function(){return r.slice()},l.copy=function(){return H8().domain([e,t]).range(a).unknown(o)},Ir.apply(po(l),arguments)}function G8(){var e=[.5],t=[0,1],n,r=1;function a(o){return o!=null&&o<=o?t[vf(e,o,0,r)]:n}return a.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var l=t.indexOf(o);return[e[l-1],e[l]]},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return G8().domain(e).range(t).unknown(n)},Ir.apply(a,arguments)}const X1=new Date,W1=new Date;function en(e,t,n,r){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{const l=a(o),c=a.ceil(o);return o-l<c-o?l:c},a.offset=(o,l)=>(t(o=new Date(+o),l==null?1:Math.floor(l)),o),a.range=(o,l,c)=>{const d=[];if(o=a.ceil(o),c=c==null?1:Math.floor(c),!(o<l)||!(c>0))return d;let f;do d.push(f=new Date(+o)),t(o,c),e(o);while(f<o&&o<l);return d},a.filter=o=>en(l=>{if(l>=l)for(;e(l),!o(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!o(l););else for(;--c>=0;)for(;t(l,1),!o(l););}),n&&(a.count=(o,l)=>(X1.setTime(+o),W1.setTime(+l),e(X1),e(W1),Math.floor(n(X1,W1))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(r?l=>r(l)%o===0:l=>a.count(0,l)%o===0):a)),a}const ng=en(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ng.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?en(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ng);ng.range;const ti=1e3,Nr=ti*60,ni=Nr*60,ci=ni*24,RC=ci*7,VD=ci*30,Z1=ci*365,es=en(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ti)},(e,t)=>(t-e)/ti,e=>e.getUTCSeconds());es.range;const MC=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ti)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getMinutes());MC.range;const PC=en(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getUTCMinutes());PC.range;const DC=en(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ti-e.getMinutes()*Nr)},(e,t)=>{e.setTime(+e+t*ni)},(e,t)=>(t-e)/ni,e=>e.getHours());DC.range;const kC=en(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ni)},(e,t)=>(t-e)/ni,e=>e.getUTCHours());kC.range;const bf=en(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nr)/ci,e=>e.getDate()-1);bf.range;const Om=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ci,e=>e.getUTCDate()-1);Om.range;const V8=en(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ci,e=>Math.floor(e/ci));V8.range;function Rs(e){return en(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/RC)}const Cm=Rs(0),rg=Rs(1),Dae=Rs(2),kae=Rs(3),nc=Rs(4),Iae=Rs(5),Lae=Rs(6);Cm.range;rg.range;Dae.range;kae.range;nc.range;Iae.range;Lae.range;function Ms(e){return en(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/RC)}const jm=Ms(0),ag=Ms(1),Bae=Ms(2),$ae=Ms(3),rc=Ms(4),qae=Ms(5),zae=Ms(6);jm.range;ag.range;Bae.range;$ae.range;rc.range;qae.range;zae.range;const IC=en(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());IC.range;const LC=en(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());LC.range;const ui=en(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ui.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ui.range;const di=en(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());di.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:en(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});di.range;function Y8(e,t,n,r,a,o){const l=[[es,1,ti],[es,5,5*ti],[es,15,15*ti],[es,30,30*ti],[o,1,Nr],[o,5,5*Nr],[o,15,15*Nr],[o,30,30*Nr],[a,1,ni],[a,3,3*ni],[a,6,6*ni],[a,12,12*ni],[r,1,ci],[r,2,2*ci],[n,1,RC],[t,1,VD],[t,3,3*VD],[e,1,Z1]];function c(f,m,g){const v=m<f;v&&([f,m]=[m,f]);const b=g&&typeof g.range=="function"?g:d(f,m,g),A=b?b.range(f,+m+1):[];return v?A.reverse():A}function d(f,m,g){const v=Math.abs(m-f)/g,b=xC(([,,w])=>w).right(l,v);if(b===l.length)return e.every(nA(f/Z1,m/Z1,g));if(b===0)return ng.every(Math.max(nA(f,m,g),1));const[A,x]=l[v/l[b-1][2]<l[b][2]/v?b-1:b];return A.every(x)}return[c,d]}const[Uae,Fae]=Y8(di,LC,jm,V8,kC,PC),[Kae,Hae]=Y8(ui,IC,Cm,bf,DC,MC);function J1(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 ew(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 Bu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Gae(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,l=e.shortDays,c=e.months,d=e.shortMonths,f=$u(a),m=qu(a),g=$u(o),v=qu(o),b=$u(l),A=qu(l),x=$u(c),w=qu(c),C=$u(d),j=qu(d),T={a:K,A:F,b:X,B:oe,c:null,d:JD,e:JD,f:gie,g:Cie,G:Eie,H:fie,I:pie,j:hie,L:Q8,m:mie,M:vie,p:q,q:V,Q:nk,s:rk,S:yie,u:xie,U:bie,V:wie,w:Sie,W:Aie,x:null,X:null,y:Oie,Y:jie,Z:_ie,"%":tk},M={a:Y,A:ee,b:ue,B:me,c:null,d:ek,e:ek,f:Mie,g:Uie,G:Kie,H:Tie,I:Nie,j:Rie,L:W8,m:Pie,M:Die,p:se,q:ve,Q:nk,s:rk,S:kie,u:Iie,U:Lie,V:Bie,w:$ie,W:qie,x:null,X:null,y:zie,Y:Fie,Z:Hie,"%":tk},O={a:z,A:B,b:L,B:U,c:H,d:WD,e:WD,f:lie,g:XD,G:QD,H:ZD,I:ZD,j:aie,L:sie,m:rie,M:iie,p:k,q:nie,Q:uie,s:die,S:oie,u:Wae,U:Zae,V:Jae,w:Xae,W:eie,x:Q,X:D,y:XD,Y:QD,Z:tie,"%":cie};T.x=_(n,T),T.X=_(r,T),T.c=_(t,T),M.x=_(n,M),M.X=_(r,M),M.c=_(t,M);function _(de,Z){return function(he){var ie=[],$e=-1,Ce=0,Ye=de.length,nt,wt,kn;for(he instanceof Date||(he=new Date(+he));++$e<Ye;)de.charCodeAt($e)===37&&(ie.push(de.slice(Ce,$e)),(wt=YD[nt=de.charAt(++$e)])!=null?nt=de.charAt(++$e):wt=nt==="e"?" ":"0",(kn=Z[nt])&&(nt=kn(he,wt)),ie.push(nt),Ce=$e+1);return ie.push(de.slice(Ce,$e)),ie.join("")}}function N(de,Z){return function(he){var ie=Bu(1900,void 0,1),$e=P(ie,de,he+="",0),Ce,Ye;if($e!=he.length)return null;if("Q"in ie)return new Date(ie.Q);if("s"in ie)return new Date(ie.s*1e3+("L"in ie?ie.L:0));if(Z&&!("Z"in ie)&&(ie.Z=0),"p"in ie&&(ie.H=ie.H%12+ie.p*12),ie.m===void 0&&(ie.m="q"in ie?ie.q:0),"V"in ie){if(ie.V<1||ie.V>53)return null;"w"in ie||(ie.w=1),"Z"in ie?(Ce=ew(Bu(ie.y,0,1)),Ye=Ce.getUTCDay(),Ce=Ye>4||Ye===0?ag.ceil(Ce):ag(Ce),Ce=Om.offset(Ce,(ie.V-1)*7),ie.y=Ce.getUTCFullYear(),ie.m=Ce.getUTCMonth(),ie.d=Ce.getUTCDate()+(ie.w+6)%7):(Ce=J1(Bu(ie.y,0,1)),Ye=Ce.getDay(),Ce=Ye>4||Ye===0?rg.ceil(Ce):rg(Ce),Ce=bf.offset(Ce,(ie.V-1)*7),ie.y=Ce.getFullYear(),ie.m=Ce.getMonth(),ie.d=Ce.getDate()+(ie.w+6)%7)}else("W"in ie||"U"in ie)&&("w"in ie||(ie.w="u"in ie?ie.u%7:"W"in ie?1:0),Ye="Z"in ie?ew(Bu(ie.y,0,1)).getUTCDay():J1(Bu(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(Ye+5)%7:ie.w+ie.U*7-(Ye+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,ew(ie)):J1(ie)}}function P(de,Z,he,ie){for(var $e=0,Ce=Z.length,Ye=he.length,nt,wt;$e<Ce;){if(ie>=Ye)return-1;if(nt=Z.charCodeAt($e++),nt===37){if(nt=Z.charAt($e++),wt=O[nt in YD?Z.charAt($e++):nt],!wt||(ie=wt(de,he,ie))<0)return-1}else if(nt!=he.charCodeAt(ie++))return-1}return ie}function k(de,Z,he){var ie=f.exec(Z.slice(he));return ie?(de.p=m.get(ie[0].toLowerCase()),he+ie[0].length):-1}function z(de,Z,he){var ie=b.exec(Z.slice(he));return ie?(de.w=A.get(ie[0].toLowerCase()),he+ie[0].length):-1}function B(de,Z,he){var ie=g.exec(Z.slice(he));return ie?(de.w=v.get(ie[0].toLowerCase()),he+ie[0].length):-1}function L(de,Z,he){var ie=C.exec(Z.slice(he));return ie?(de.m=j.get(ie[0].toLowerCase()),he+ie[0].length):-1}function U(de,Z,he){var ie=x.exec(Z.slice(he));return ie?(de.m=w.get(ie[0].toLowerCase()),he+ie[0].length):-1}function H(de,Z,he){return P(de,t,Z,he)}function Q(de,Z,he){return P(de,n,Z,he)}function D(de,Z,he){return P(de,r,Z,he)}function K(de){return l[de.getDay()]}function F(de){return o[de.getDay()]}function X(de){return d[de.getMonth()]}function oe(de){return c[de.getMonth()]}function q(de){return a[+(de.getHours()>=12)]}function V(de){return 1+~~(de.getMonth()/3)}function Y(de){return l[de.getUTCDay()]}function ee(de){return o[de.getUTCDay()]}function ue(de){return d[de.getUTCMonth()]}function me(de){return c[de.getUTCMonth()]}function se(de){return a[+(de.getUTCHours()>=12)]}function ve(de){return 1+~~(de.getUTCMonth()/3)}return{format:function(de){var Z=_(de+="",T);return Z.toString=function(){return de},Z},parse:function(de){var Z=N(de+="",!1);return Z.toString=function(){return de},Z},utcFormat:function(de){var Z=_(de+="",M);return Z.toString=function(){return de},Z},utcParse:function(de){var Z=N(de+="",!0);return Z.toString=function(){return de},Z}}}var YD={"-":"",_:" ",0:"0"},ln=/^\s*\d+/,Vae=/^%/,Yae=/[\\^$*+?|[\]().{}]/g;function st(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function Qae(e){return e.replace(Yae,"\\$&")}function $u(e){return new RegExp("^(?:"+e.map(Qae).join("|")+")","i")}function qu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Xae(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Wae(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zae(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Jae(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function eie(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function QD(e,t,n){var r=ln.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function XD(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tie(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 nie(e,t,n){var r=ln.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function rie(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function WD(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function aie(e,t,n){var r=ln.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ZD(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function iie(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function oie(e,t,n){var r=ln.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sie(e,t,n){var r=ln.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function lie(e,t,n){var r=ln.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cie(e,t,n){var r=Vae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function uie(e,t,n){var r=ln.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function die(e,t,n){var r=ln.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function JD(e,t){return st(e.getDate(),t,2)}function fie(e,t){return st(e.getHours(),t,2)}function pie(e,t){return st(e.getHours()%12||12,t,2)}function hie(e,t){return st(1+bf.count(ui(e),e),t,3)}function Q8(e,t){return st(e.getMilliseconds(),t,3)}function gie(e,t){return Q8(e,t)+"000"}function mie(e,t){return st(e.getMonth()+1,t,2)}function vie(e,t){return st(e.getMinutes(),t,2)}function yie(e,t){return st(e.getSeconds(),t,2)}function xie(e){var t=e.getDay();return t===0?7:t}function bie(e,t){return st(Cm.count(ui(e)-1,e),t,2)}function X8(e){var t=e.getDay();return t>=4||t===0?nc(e):nc.ceil(e)}function wie(e,t){return e=X8(e),st(nc.count(ui(e),e)+(ui(e).getDay()===4),t,2)}function Sie(e){return e.getDay()}function Aie(e,t){return st(rg.count(ui(e)-1,e),t,2)}function Oie(e,t){return st(e.getFullYear()%100,t,2)}function Cie(e,t){return e=X8(e),st(e.getFullYear()%100,t,2)}function jie(e,t){return st(e.getFullYear()%1e4,t,4)}function Eie(e,t){var n=e.getDay();return e=n>=4||n===0?nc(e):nc.ceil(e),st(e.getFullYear()%1e4,t,4)}function _ie(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+st(t/60|0,"0",2)+st(t%60,"0",2)}function ek(e,t){return st(e.getUTCDate(),t,2)}function Tie(e,t){return st(e.getUTCHours(),t,2)}function Nie(e,t){return st(e.getUTCHours()%12||12,t,2)}function Rie(e,t){return st(1+Om.count(di(e),e),t,3)}function W8(e,t){return st(e.getUTCMilliseconds(),t,3)}function Mie(e,t){return W8(e,t)+"000"}function Pie(e,t){return st(e.getUTCMonth()+1,t,2)}function Die(e,t){return st(e.getUTCMinutes(),t,2)}function kie(e,t){return st(e.getUTCSeconds(),t,2)}function Iie(e){var t=e.getUTCDay();return t===0?7:t}function Lie(e,t){return st(jm.count(di(e)-1,e),t,2)}function Z8(e){var t=e.getUTCDay();return t>=4||t===0?rc(e):rc.ceil(e)}function Bie(e,t){return e=Z8(e),st(rc.count(di(e),e)+(di(e).getUTCDay()===4),t,2)}function $ie(e){return e.getUTCDay()}function qie(e,t){return st(ag.count(di(e)-1,e),t,2)}function zie(e,t){return st(e.getUTCFullYear()%100,t,2)}function Uie(e,t){return e=Z8(e),st(e.getUTCFullYear()%100,t,2)}function Fie(e,t){return st(e.getUTCFullYear()%1e4,t,4)}function Kie(e,t){var n=e.getUTCDay();return e=n>=4||n===0?rc(e):rc.ceil(e),st(e.getUTCFullYear()%1e4,t,4)}function Hie(){return"+0000"}function tk(){return"%"}function nk(e){return+e}function rk(e){return Math.floor(+e/1e3)}var Nl,J8,e$;Gie({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 Gie(e){return Nl=Gae(e),J8=Nl.format,Nl.parse,e$=Nl.utcFormat,Nl.utcParse,Nl}function Vie(e){return new Date(e)}function Yie(e){return e instanceof Date?+e:+new Date(+e)}function BC(e,t,n,r,a,o,l,c,d,f){var m=OC(),g=m.invert,v=m.domain,b=f(".%L"),A=f(":%S"),x=f("%I:%M"),w=f("%I %p"),C=f("%a %d"),j=f("%b %d"),T=f("%B"),M=f("%Y");function O(_){return(d(_)<_?b:c(_)<_?A:l(_)<_?x:o(_)<_?w:r(_)<_?a(_)<_?C:j:n(_)<_?T:M)(_)}return m.invert=function(_){return new Date(g(_))},m.domain=function(_){return arguments.length?v(Array.from(_,Yie)):v().map(Vie)},m.ticks=function(_){var N=v();return e(N[0],N[N.length-1],_??10)},m.tickFormat=function(_,N){return N==null?O:f(N)},m.nice=function(_){var N=v();return(!_||typeof _.range!="function")&&(_=t(N[0],N[N.length-1],_??10)),_?v(q8(N,_)):m},m.copy=function(){return xf(m,BC(e,t,n,r,a,o,l,c,d,f))},m}function Qie(){return Ir.apply(BC(Kae,Hae,ui,IC,Cm,bf,DC,MC,es,J8).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Xie(){return Ir.apply(BC(Uae,Fae,di,LC,jm,Om,kC,PC,es,e$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Em(){var e=0,t=1,n,r,a,o,l=Pn,c=!1,d;function f(g){return g==null||isNaN(g=+g)?d:l(a===0?.5:(g=(o(g)-n)*a,c?Math.max(0,Math.min(1,g)):g))}f.domain=function(g){return arguments.length?([e,t]=g,n=o(e=+e),r=o(t=+t),a=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(g){return arguments.length?(c=!!g,f):c},f.interpolator=function(g){return arguments.length?(l=g,f):l};function m(g){return function(v){var b,A;return arguments.length?([b,A]=v,l=g(b,A),f):[l(0),l(1)]}}return f.range=m(kc),f.rangeRound=m(AC),f.unknown=function(g){return arguments.length?(d=g,f):d},function(g){return o=g,n=g(e),r=g(t),a=n===r?0:1/(r-n),f}}function ho(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function t$(){var e=po(Em()(Pn));return e.copy=function(){return ho(e,t$())},gi.apply(e,arguments)}function n$(){var e=EC(Em()).domain([1,10]);return e.copy=function(){return ho(e,n$()).base(e.base())},gi.apply(e,arguments)}function r$(){var e=_C(Em());return e.copy=function(){return ho(e,r$()).constant(e.constant())},gi.apply(e,arguments)}function $C(){var e=TC(Em());return e.copy=function(){return ho(e,$C()).exponent(e.exponent())},gi.apply(e,arguments)}function Wie(){return $C.apply(null,arguments).exponent(.5)}function a$(){var e=[],t=Pn;function n(r){if(r!=null&&!isNaN(r=+r))return t((vf(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(eo),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,o)=>Lre(e,o/r))},n.copy=function(){return a$(t).domain(e)},gi.apply(n,arguments)}function _m(){var e=0,t=.5,n=1,r=1,a,o,l,c,d,f=Pn,m,g=!1,v;function b(x){return isNaN(x=+x)?v:(x=.5+((x=+m(x))-o)*(r*x<r*o?c:d),f(g?Math.max(0,Math.min(1,x)):x))}b.domain=function(x){return arguments.length?([e,t,n]=x,a=m(e=+e),o=m(t=+t),l=m(n=+n),c=a===o?0:.5/(o-a),d=o===l?0:.5/(l-o),r=o<a?-1:1,b):[e,t,n]},b.clamp=function(x){return arguments.length?(g=!!x,b):g},b.interpolator=function(x){return arguments.length?(f=x,b):f};function A(x){return function(w){var C,j,T;return arguments.length?([C,j,T]=w,f=cae(x,[C,j,T]),b):[f(0),f(.5),f(1)]}}return b.range=A(kc),b.rangeRound=A(AC),b.unknown=function(x){return arguments.length?(v=x,b):v},function(x){return m=x,a=x(e),o=x(t),l=x(n),c=a===o?0:.5/(o-a),d=o===l?0:.5/(l-o),r=o<a?-1:1,b}}function i$(){var e=po(_m()(Pn));return e.copy=function(){return ho(e,i$())},gi.apply(e,arguments)}function o$(){var e=EC(_m()).domain([.1,1,10]);return e.copy=function(){return ho(e,o$()).base(e.base())},gi.apply(e,arguments)}function s$(){var e=_C(_m());return e.copy=function(){return ho(e,s$()).constant(e.constant())},gi.apply(e,arguments)}function qC(){var e=TC(_m());return e.copy=function(){return ho(e,qC()).exponent(e.exponent())},gi.apply(e,arguments)}function Zie(){return qC.apply(null,arguments).exponent(.5)}const ak=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ed,scaleDiverging:i$,scaleDivergingLog:o$,scaleDivergingPow:qC,scaleDivergingSqrt:Zie,scaleDivergingSymlog:s$,scaleIdentity:$8,scaleImplicit:rA,scaleLinear:tg,scaleLog:z8,scaleOrdinal:bC,scalePoint:nd,scalePow:NC,scaleQuantile:K8,scaleQuantize:H8,scaleRadial:F8,scaleSequential:t$,scaleSequentialLog:n$,scaleSequentialPow:$C,scaleSequentialQuantile:a$,scaleSequentialSqrt:Wie,scaleSequentialSymlog:r$,scaleSqrt:Mae,scaleSymlog:U8,scaleThreshold:G8,scaleTime:Qie,scaleUtc:Xie,tickFormat:B8},Symbol.toStringTag,{value:"Module"}));var tw,ik;function Tm(){if(ik)return tw;ik=1;var e=Nc();function t(n,r,a){for(var o=-1,l=n.length;++o<l;){var c=n[o],d=r(c);if(d!=null&&(f===void 0?d===d&&!e(d):a(d,f)))var f=d,m=c}return m}return tw=t,tw}var nw,ok;function l$(){if(ok)return nw;ok=1;function e(t,n){return t>n}return nw=e,nw}var rw,sk;function Jie(){if(sk)return rw;sk=1;var e=Tm(),t=l$(),n=Dc();function r(a){return a&&a.length?e(a,n,t):void 0}return rw=r,rw}var eoe=Jie();const Wi=ft(eoe);var aw,lk;function c$(){if(lk)return aw;lk=1;function e(t,n){return t<n}return aw=e,aw}var iw,ck;function toe(){if(ck)return iw;ck=1;var e=Tm(),t=c$(),n=Dc();function r(a){return a&&a.length?e(a,n,t):void 0}return iw=r,iw}var noe=toe();const Nm=ft(noe);var ow,uk;function roe(){if(uk)return ow;uk=1;var e=nC(),t=Ra(),n=v8(),r=Qn();function a(o,l){var c=r(o)?e:n;return c(o,t(l,3))}return ow=a,ow}var sw,dk;function aoe(){if(dk)return sw;dk=1;var e=g8(),t=roe();function n(r,a){return e(t(r,a),1)}return sw=n,sw}var ioe=aoe();const ooe=ft(ioe);var lw,fk;function soe(){if(fk)return lw;fk=1;var e=gC();function t(n,r){return e(n,r)}return lw=t,lw}var loe=soe();const ac=ft(loe);var Ic=1e9,coe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},UC,Nt=!0,kr="[DecimalError] ",is=kr+"Invalid argument: ",zC=kr+"Exponent out of range: ",Lc=Math.floor,Yo=Math.pow,uoe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,cr,on=1e7,Et=7,u$=9007199254740991,ig=Lc(u$/Et),xe={};xe.absoluteValue=xe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};xe.comparedTo=xe.cmp=function(e){var t,n,r,a,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===a?0:r>a^o.s<0?1:-1};xe.decimalPlaces=xe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Et;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};xe.dividedBy=xe.div=function(e){return ii(this,new this.constructor(e))};xe.dividedToIntegerBy=xe.idiv=function(e){var t=this,n=t.constructor;return bt(ii(t,new n(e),0,1),n.precision)};xe.equals=xe.eq=function(e){return!this.cmp(e)};xe.exponent=function(){return Gt(this)};xe.greaterThan=xe.gt=function(e){return this.cmp(e)>0};xe.greaterThanOrEqualTo=xe.gte=function(e){return this.cmp(e)>=0};xe.isInteger=xe.isint=function(){return this.e>this.d.length-2};xe.isNegative=xe.isneg=function(){return this.s<0};xe.isPositive=xe.ispos=function(){return this.s>0};xe.isZero=function(){return this.s===0};xe.lessThan=xe.lt=function(e){return this.cmp(e)<0};xe.lessThanOrEqualTo=xe.lte=function(e){return this.cmp(e)<1};xe.logarithm=xe.log=function(e){var t,n=this,r=n.constructor,a=r.precision,o=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(cr))throw Error(kr+"NaN");if(n.s<1)throw Error(kr+(n.s?"NaN":"-Infinity"));return n.eq(cr)?new r(0):(Nt=!1,t=ii(Md(n,o),Md(e,o),o),Nt=!0,bt(t,a))};xe.minus=xe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?p$(t,e):d$(t,(e.s=-e.s,e))};xe.modulo=xe.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(kr+"NaN");return n.s?(Nt=!1,t=ii(n,e,0,1).times(e),Nt=!0,n.minus(t)):bt(new r(n),a)};xe.naturalExponential=xe.exp=function(){return f$(this)};xe.naturalLogarithm=xe.ln=function(){return Md(this)};xe.negated=xe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};xe.plus=xe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?d$(t,e):p$(t,(e.s=-e.s,e))};xe.precision=xe.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(is+e);if(t=Gt(a)+1,r=a.d.length-1,n=r*Et+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};xe.squareRoot=xe.sqrt=function(){var e,t,n,r,a,o,l,c=this,d=c.constructor;if(c.s<1){if(!c.s)return new d(0);throw Error(kr+"NaN")}for(e=Gt(c),Nt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=ga(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Lc((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(a.toString()),n=d.precision,a=l=n+3;;)if(o=r,r=o.plus(ii(c,o,l+2)).times(.5),ga(o.d).slice(0,l)===(t=ga(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(bt(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if(t!="9999")break;l+=4}return Nt=!0,bt(r,n)};xe.times=xe.mul=function(e){var t,n,r,a,o,l,c,d,f,m=this,g=m.constructor,v=m.d,b=(e=new g(e)).d;if(!m.s||!e.s)return new g(0);for(e.s*=m.s,n=m.e+e.e,d=v.length,f=b.length,d<f&&(o=v,v=b,b=o,l=d,d=f,f=l),o=[],l=d+f,r=l;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,a=d+r;a>r;)c=o[a]+b[r]*v[a-r-1]+t,o[a--]=c%on|0,t=c/on|0;o[a]=(o[a]+t)%on|0}for(;!o[--l];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Nt?bt(e,g.precision):e};xe.toDecimalPlaces=xe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Oa(e,0,Ic),t===void 0?t=r.rounding:Oa(t,0,8),bt(n,e+Gt(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=ys(r,!0):(Oa(e,0,Ic),t===void 0?t=a.rounding:Oa(t,0,8),r=bt(new a(r),e+1,t),n=ys(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?ys(a):(Oa(e,0,Ic),t===void 0?t=o.rounding:Oa(t,0,8),r=bt(new o(a),e+Gt(a)+1,t),n=ys(r.abs(),!1,e+Gt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return bt(new t(e),Gt(e)+1,t.rounding)};xe.toNumber=function(){return+this};xe.toPower=xe.pow=function(e){var t,n,r,a,o,l,c=this,d=c.constructor,f=12,m=+(e=new d(e));if(!e.s)return new d(cr);if(c=new d(c),!c.s){if(e.s<1)throw Error(kr+"Infinity");return c}if(c.eq(cr))return c;if(r=d.precision,e.eq(cr))return bt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,o=c.s,l){if((n=m<0?-m:m)<=u$){for(a=new d(cr),t=Math.ceil(r/Et+4),Nt=!1;n%2&&(a=a.times(c),hk(a.d,t)),n=Lc(n/2),n!==0;)c=c.times(c),hk(c.d,t);return Nt=!0,e.s<0?new d(cr).div(a):bt(a,r)}}else if(o<0)throw Error(kr+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,Nt=!1,a=e.times(Md(c,r+f)),Nt=!0,a=f$(a),a.s=o,a};xe.toPrecision=function(e,t){var n,r,a=this,o=a.constructor;return e===void 0?(n=Gt(a),r=ys(a,n<=o.toExpNeg||n>=o.toExpPos)):(Oa(e,1,Ic),t===void 0?t=o.rounding:Oa(t,0,8),a=bt(new o(a),e,t),n=Gt(a),r=ys(a,e<=n||n<=o.toExpNeg,e)),r};xe.toSignificantDigits=xe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Oa(e,1,Ic),t===void 0?t=r.rounding:Oa(t,0,8)),bt(new r(n),e,t)};xe.toString=xe.valueOf=xe.val=xe.toJSON=xe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Gt(e),n=e.constructor;return ys(e,t<=n.toExpNeg||t>=n.toExpPos)};function d$(e,t){var n,r,a,o,l,c,d,f,m=e.constructor,g=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),Nt?bt(t,g):t;if(d=e.d,f=t.d,l=e.e,a=t.e,d=d.slice(),o=l-a,o){for(o<0?(r=d,o=-o,c=f.length):(r=f,a=l,c=d.length),l=Math.ceil(g/Et),c=l>c?l+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=d.length,o=f.length,c-o<0&&(o=c,r=f,f=d,d=r),n=0;o;)n=(d[--o]=d[o]+f[o]+n)/on|0,d[o]%=on;for(n&&(d.unshift(n),++a),c=d.length;d[--c]==0;)d.pop();return t.d=d,t.e=a,Nt?bt(t,g):t}function Oa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(is+e)}function ga(e){var t,n,r,a=e.length-1,o="",l=e[0];if(a>0){for(o+=l,t=1;t<a;t++)r=e[t]+"",n=Et-r.length,n&&(o+=Yi(n)),o+=r;l=e[t],r=l+"",n=Et-r.length,n&&(o+=Yi(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return o+l}var ii=(function(){function e(r,a){var o,l=0,c=r.length;for(r=r.slice();c--;)o=r[c]*a+l,r[c]=o%on|0,l=o/on|0;return l&&r.unshift(l),r}function t(r,a,o,l){var c,d;if(o!=l)d=o>l?1:-1;else for(c=d=0;c<o;c++)if(r[c]!=a[c]){d=r[c]>a[c]?1:-1;break}return d}function n(r,a,o){for(var l=0;o--;)r[o]-=l,l=r[o]<a[o]?1:0,r[o]=l*on+r[o]-a[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,o,l){var c,d,f,m,g,v,b,A,x,w,C,j,T,M,O,_,N,P,k=r.constructor,z=r.s==a.s?1:-1,B=r.d,L=a.d;if(!r.s)return new k(r);if(!a.s)throw Error(kr+"Division by zero");for(d=r.e-a.e,N=L.length,O=B.length,b=new k(z),A=b.d=[],f=0;L[f]==(B[f]||0);)++f;if(L[f]>(B[f]||0)&&--d,o==null?j=o=k.precision:l?j=o+(Gt(r)-Gt(a))+1:j=o,j<0)return new k(0);if(j=j/Et+2|0,f=0,N==1)for(m=0,L=L[0],j++;(f<O||m)&&j--;f++)T=m*on+(B[f]||0),A[f]=T/L|0,m=T%L|0;else{for(m=on/(L[0]+1)|0,m>1&&(L=e(L,m),B=e(B,m),N=L.length,O=B.length),M=N,x=B.slice(0,N),w=x.length;w<N;)x[w++]=0;P=L.slice(),P.unshift(0),_=L[0],L[1]>=on/2&&++_;do m=0,c=t(L,x,N,w),c<0?(C=x[0],N!=w&&(C=C*on+(x[1]||0)),m=C/_|0,m>1?(m>=on&&(m=on-1),g=e(L,m),v=g.length,w=x.length,c=t(g,x,v,w),c==1&&(m--,n(g,N<v?P:L,v))):(m==0&&(c=m=1),g=L.slice()),v=g.length,v<w&&g.unshift(0),n(x,g,w),c==-1&&(w=x.length,c=t(L,x,N,w),c<1&&(m++,n(x,N<w?P:L,w))),w=x.length):c===0&&(m++,x=[0]),A[f++]=m,c&&x[0]?x[w++]=B[M]||0:(x=[B[M]],w=1);while((M++<O||x[0]!==void 0)&&j--)}return A[0]||A.shift(),b.e=d,bt(b,l?o+Gt(b)+1:o)}})();function f$(e,t){var n,r,a,o,l,c,d=0,f=0,m=e.constructor,g=m.precision;if(Gt(e)>16)throw Error(zC+Gt(e));if(!e.s)return new m(cr);for(Nt=!1,c=g,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),f+=5;for(r=Math.log(Yo(2,f))/Math.LN10*2+5|0,c+=r,n=a=o=new m(cr),m.precision=c;;){if(a=bt(a.times(e),c),n=n.times(++d),l=o.plus(ii(a,n,c)),ga(l.d).slice(0,c)===ga(o.d).slice(0,c)){for(;f--;)o=bt(o.times(o),c);return m.precision=g,t==null?(Nt=!0,bt(o,g)):o}o=l}}function Gt(e){for(var t=e.e*Et,n=e.d[0];n>=10;n/=10)t++;return t}function cw(e,t,n){if(t>e.LN10.sd())throw Nt=!0,n&&(e.precision=n),Error(kr+"LN10 precision limit exceeded");return bt(new e(e.LN10),t)}function Yi(e){for(var t="";e--;)t+="0";return t}function Md(e,t){var n,r,a,o,l,c,d,f,m,g=1,v=10,b=e,A=b.d,x=b.constructor,w=x.precision;if(b.s<1)throw Error(kr+(b.s?"NaN":"-Infinity"));if(b.eq(cr))return new x(0);if(t==null?(Nt=!1,f=w):f=t,b.eq(10))return t==null&&(Nt=!0),cw(x,f);if(f+=v,x.precision=f,n=ga(A),r=n.charAt(0),o=Gt(b),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)b=b.times(e),n=ga(b.d),r=n.charAt(0),g++;o=Gt(b),r>1?(b=new x("0."+n),o++):b=new x(r+"."+n.slice(1))}else return d=cw(x,f+2,w).times(o+""),b=Md(new x(r+"."+n.slice(1)),f-v).plus(d),x.precision=w,t==null?(Nt=!0,bt(b,w)):b;for(c=l=b=ii(b.minus(cr),b.plus(cr),f),m=bt(b.times(b),f),a=3;;){if(l=bt(l.times(m),f),d=c.plus(ii(l,new x(a),f)),ga(d.d).slice(0,f)===ga(c.d).slice(0,f))return c=c.times(2),o!==0&&(c=c.plus(cw(x,f+2,w).times(o+""))),c=ii(c,new x(g),f),x.precision=w,t==null?(Nt=!0,bt(c,w)):c;c=d,a+=2}}function pk(e,t){var n,r,a;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(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Lc(n/Et),e.d=[],r=(n+1)%Et,n<0&&(r+=Et),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Et;r<a;)e.d.push(+t.slice(r,r+=Et));t=t.slice(r),r=Et-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),Nt&&(e.e>ig||e.e<-ig))throw Error(zC+n)}else e.s=0,e.e=0,e.d=[0];return e}function bt(e,t,n){var r,a,o,l,c,d,f,m,g=e.d;for(l=1,o=g[0];o>=10;o/=10)l++;if(r=t-l,r<0)r+=Et,a=t,f=g[m=0];else{if(m=Math.ceil((r+1)/Et),o=g.length,m>=o)return e;for(f=o=g[m],l=1;o>=10;o/=10)l++;r%=Et,a=r-Et+l}if(n!==void 0&&(o=Yo(10,l-a-1),c=f/o%10|0,d=t<0||g[m+1]!==void 0||f%o,d=n<4?(c||d)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||d||n==6&&(r>0?a>0?f/Yo(10,l-a):0:g[m-1])%10&1||n==(e.s<0?8:7))),t<1||!g[0])return d?(o=Gt(e),g.length=1,t=t-o-1,g[0]=Yo(10,(Et-t%Et)%Et),e.e=Lc(-t/Et)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(r==0?(g.length=m,o=1,m--):(g.length=m+1,o=Yo(10,Et-r),g[m]=a>0?(f/Yo(10,l-a)%Yo(10,a)|0)*o:0),d)for(;;)if(m==0){(g[0]+=o)==on&&(g[0]=1,++e.e);break}else{if(g[m]+=o,g[m]!=on)break;g[m--]=0,o=1}for(r=g.length;g[--r]===0;)g.pop();if(Nt&&(e.e>ig||e.e<-ig))throw Error(zC+Gt(e));return e}function p$(e,t){var n,r,a,o,l,c,d,f,m,g,v=e.constructor,b=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),Nt?bt(t,b):t;if(d=e.d,g=t.d,r=t.e,f=e.e,d=d.slice(),l=f-r,l){for(m=l<0,m?(n=d,l=-l,c=g.length):(n=g,r=f,c=d.length),a=Math.max(Math.ceil(b/Et),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=d.length,c=g.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(d[a]!=g[a]){m=d[a]<g[a];break}l=0}for(m&&(n=d,d=g,g=n,t.s=-t.s),c=d.length,a=g.length-c;a>0;--a)d[c++]=0;for(a=g.length;a>l;){if(d[--a]<g[a]){for(o=a;o&&d[--o]===0;)d[o]=on-1;--d[o],d[a]+=on}d[a]-=g[a]}for(;d[--c]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,Nt?bt(t,b):t):new v(0)}function ys(e,t,n){var r,a=Gt(e),o=ga(e.d),l=o.length;return t?(n&&(r=n-l)>0?o=o.charAt(0)+"."+o.slice(1)+Yi(r):l>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(a<0?"e":"e+")+a):a<0?(o="0."+Yi(-a-1)+o,n&&(r=n-l)>0&&(o+=Yi(r))):a>=l?(o+=Yi(a+1-l),n&&(r=n-a-1)>0&&(o=o+"."+Yi(r))):((r=a+1)<l&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(o+="."),o+=Yi(r))),e.s<0?"-"+o:o}function hk(e,t){if(e.length>t)return e.length=t,!0}function h$(e){var t,n,r;function a(o){var l=this;if(!(l instanceof a))return new a(o);if(l.constructor=a,o instanceof a){l.s=o.s,l.e=o.e,l.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(is+o);if(o>0)l.s=1;else if(o<0)o=-o,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(o===~~o&&o<1e7){l.e=0,l.d=[o];return}return pk(l,o.toString())}else if(typeof o!="string")throw Error(is+o);if(o.charCodeAt(0)===45?(o=o.slice(1),l.s=-1):l.s=1,uoe.test(o))pk(l,o);else throw Error(is+o)}if(a.prototype=xe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=h$,a.config=a.set=doe,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 a.config(e),a}function doe(e){if(!e||typeof e!="object")throw Error(kr+"Object expected");var t,n,r,a=["precision",1,Ic,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Lc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(is+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(is+n+": "+r);return this}var UC=h$(coe);cr=new UC(1);const yt=UC;function foe(e){return moe(e)||goe(e)||hoe(e)||poe()}function poe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hoe(e,t){if(e){if(typeof e=="string")return sA(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 sA(e,t)}}function goe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function moe(e){if(Array.isArray(e))return sA(e)}function sA(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 voe=function(t){return t},g$={},m$=function(t){return t===g$},gk=function(t){return function n(){return arguments.length===0||arguments.length===1&&m$(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},yoe=function e(t,n){return t===1?n:gk(function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var l=a.filter(function(c){return c!==g$}).length;return l>=t?n.apply(void 0,a):e(t-l,gk(function(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];var m=a.map(function(g){return m$(g)?d.shift():g});return n.apply(void 0,foe(m).concat(d))}))})},Rm=function(t){return yoe(t.length,t)},lA=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},xoe=Rm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),boe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return voe;var a=n.reverse(),o=a[0],l=a.slice(1);return function(){return l.reduce(function(c,d){return d(c)},o.apply(void 0,arguments))}},cA=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},v$=function(t){var n=null,r=null;return function(){for(var a=arguments.length,o=new Array(a),l=0;l<a;l++)o[l]=arguments[l];return n&&o.every(function(c,d){return c===n[d]})||(n=o,r=t.apply(void 0,o)),r}};function woe(e){var t;return e===0?t=1:t=Math.floor(new yt(e).abs().log(10).toNumber())+1,t}function Soe(e,t,n){for(var r=new yt(e),a=0,o=[];r.lt(t)&&a<1e5;)o.push(r.toNumber()),r=r.add(n),a++;return o}var Aoe=Rm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),Ooe=Rm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Coe=Rm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Mm={rangeStep:Soe,getDigitCount:woe,interpolateNumber:Aoe,uninterpolateNumber:Ooe,uninterpolateTruncation:Coe};function uA(e){return _oe(e)||Eoe(e)||y$(e)||joe()}function joe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eoe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _oe(e){if(Array.isArray(e))return dA(e)}function Pd(e,t){return Roe(e)||Noe(e,t)||y$(e,t)||Toe()}function Toe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y$(e,t){if(e){if(typeof e=="string")return dA(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 dA(e,t)}}function dA(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 Noe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,o=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(d){a=!0,o=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function Roe(e){if(Array.isArray(e))return e}function x$(e){var t=Pd(e,2),n=t[0],r=t[1],a=n,o=r;return n>r&&(a=r,o=n),[a,o]}function b$(e,t,n){if(e.lte(0))return new yt(0);var r=Mm.getDigitCount(e.toNumber()),a=new yt(10).pow(r),o=e.div(a),l=r!==1?.05:.1,c=new yt(Math.ceil(o.div(l).toNumber())).add(n).mul(l),d=c.mul(a);return t?d:new yt(Math.ceil(d))}function Moe(e,t,n){var r=1,a=new yt(e);if(!a.isint()&&n){var o=Math.abs(e);o<1?(r=new yt(10).pow(Mm.getDigitCount(e)-1),a=new yt(Math.floor(a.div(r).toNumber())).mul(r)):o>1&&(a=new yt(Math.floor(e)))}else e===0?a=new yt(Math.floor((t-1)/2)):n||(a=new yt(Math.floor(e)));var l=Math.floor((t-1)/2),c=boe(xoe(function(d){return a.add(new yt(d-l).mul(r)).toNumber()}),lA);return c(0,t)}function w$(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new yt(0),tickMin:new yt(0),tickMax:new yt(0)};var o=b$(new yt(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new yt(0):(l=new yt(e).add(t).div(2),l=l.sub(new yt(l).mod(o)));var c=Math.ceil(l.sub(e).div(o).toNumber()),d=Math.ceil(new yt(t).sub(l).div(o).toNumber()),f=c+d+1;return f>n?w$(e,t,n,r,a+1):(f<n&&(d=t>0?d+(n-f):d,c=t>0?c:c+(n-f)),{step:o,tickMin:l.sub(new yt(c).mul(o)),tickMax:l.add(new yt(d).mul(o))})}function Poe(e){var t=Pd(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=x$([n,r]),d=Pd(c,2),f=d[0],m=d[1];if(f===-1/0||m===1/0){var g=m===1/0?[f].concat(uA(lA(0,a-1).map(function(){return 1/0}))):[].concat(uA(lA(0,a-1).map(function(){return-1/0})),[m]);return n>r?cA(g):g}if(f===m)return Moe(f,a,o);var v=w$(f,m,l,o),b=v.step,A=v.tickMin,x=v.tickMax,w=Mm.rangeStep(A,x.add(new yt(.1).mul(b)),b);return n>r?cA(w):w}function Doe(e,t){var n=Pd(e,2),r=n[0],a=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=x$([r,a]),c=Pd(l,2),d=c[0],f=c[1];if(d===-1/0||f===1/0)return[r,a];if(d===f)return[d];var m=Math.max(t,2),g=b$(new yt(f).sub(d).div(m-1),o,0),v=[].concat(uA(Mm.rangeStep(new yt(d),new yt(f).sub(new yt(.99).mul(g)),g)),[f]);return r>a?cA(v):v}var koe=v$(Poe),Ioe=v$(Doe),Loe="Invariant failed";function xs(e,t){throw new Error(Loe)}var Boe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 og(){return og=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},og.apply(this,arguments)}function $oe(e,t){return Foe(e)||Uoe(e,t)||zoe(e,t)||qoe()}function qoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zoe(e,t){if(e){if(typeof e=="string")return mk(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 mk(e,t)}}function mk(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 Uoe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function Foe(e){if(Array.isArray(e))return e}function Koe(e,t){if(e==null)return{};var n=Hoe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hoe(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 Goe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Voe(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,O$(r.key),r)}}function Yoe(e,t,n){return t&&Voe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qoe(e,t,n){return t=sg(t),Xoe(e,S$()?Reflect.construct(t,n||[],sg(e).constructor):t.apply(e,n))}function Xoe(e,t){if(t&&(ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Woe(e)}function Woe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S$=function(){return!!e})()}function sg(e){return sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sg(e)}function Zoe(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&&fA(e,t)}function fA(e,t){return fA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fA(e,t)}function A$(e,t,n){return t=O$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O$(e){var t=Joe(e,"string");return ic(t)=="symbol"?t:t+""}function Joe(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 String(e)}var Pm=(function(e){function t(){return Goe(this,t),Qoe(this,t,arguments)}return Zoe(t,e),Yoe(t,[{key:"render",value:function(){var r=this.props,a=r.offset,o=r.layout,l=r.width,c=r.dataKey,d=r.data,f=r.dataPointFormatter,m=r.xAxis,g=r.yAxis,v=Koe(r,Boe),b=_e(v,!1);this.props.direction==="x"&&m.type!=="number"&&xs();var A=d.map(function(x){var w=f(x,c),C=w.x,j=w.y,T=w.value,M=w.errorVal;if(!M)return null;var O=[],_,N;if(Array.isArray(M)){var P=$oe(M,2);_=P[0],N=P[1]}else _=N=M;if(o==="vertical"){var k=m.scale,z=j+a,B=z+l,L=z-l,U=k(T-_),H=k(T+N);O.push({x1:H,y1:B,x2:H,y2:L}),O.push({x1:U,y1:z,x2:H,y2:z}),O.push({x1:U,y1:B,x2:U,y2:L})}else if(o==="horizontal"){var Q=g.scale,D=C+a,K=D-l,F=D+l,X=Q(T-_),oe=Q(T+N);O.push({x1:K,y1:oe,x2:F,y2:oe}),O.push({x1:D,y1:X,x2:D,y2:oe}),O.push({x1:K,y1:X,x2:F,y2:X})}return $.createElement(et,og({className:"recharts-errorBar",key:"bar-".concat(O.map(function(q){return"".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))},b),O.map(function(q){return $.createElement("line",og({},q,{key:"line-".concat(q.x1,"-").concat(q.x2,"-").concat(q.y1,"-").concat(q.y2)}))}))});return $.createElement(et,{className:"recharts-errorBars"},A)}}])})($.Component);A$(Pm,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});A$(Pm,"displayName","ErrorBar");function Dd(e){"@babel/helpers - typeof";return Dd=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},Dd(e)}function vk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vk(Object(n),!0).forEach(function(r){ese(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ese(e,t,n){return t=tse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tse(e){var t=nse(e,"string");return Dd(t)=="symbol"?t:t+""}function nse(e,t){if(Dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var C$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,l=or(n,rs);if(!l)return null;var c=rs.defaultProps,d=c!==void 0?Uo(Uo({},c),l.props):{},f;return l.props&&l.props.payload?f=l.props&&l.props.payload:o==="children"?f=(r||[]).reduce(function(m,g){var v=g.item,b=g.props,A=b.sectors||b.data||[];return m.concat(A.map(function(x){return{type:l.props.iconType||v.props.legendType,value:x.name,color:x.fill,payload:x}}))},[]):f=(r||[]).map(function(m){var g=m.item,v=g.type.defaultProps,b=v!==void 0?Uo(Uo({},v),g.props):{},A=b.dataKey,x=b.name,w=b.legendType,C=b.hide;return{inactive:C,dataKey:A,type:d.iconType||w||"square",color:FC(g),value:x||A,payload:b}}),Uo(Uo(Uo({},d),rs.getWithHeight(l,a)),{},{payload:f,item:l})};function kd(e){"@babel/helpers - typeof";return kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kd(e)}function yk(e){return ose(e)||ise(e)||ase(e)||rse()}function rse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ase(e,t){if(e){if(typeof e=="string")return pA(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 pA(e,t)}}function ise(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ose(e){if(Array.isArray(e))return pA(e)}function pA(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 xk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xk(Object(n),!0).forEach(function(r){Kl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kl(e,t,n){return t=sse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sse(e){var t=lse(e,"string");return kd(t)=="symbol"?t:t+""}function lse(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zt(e,t,n){return Be(e)||Be(t)?n:Jt(t)?pr(e,t,n):Re(t)?t(e):n}function rd(e,t,n,r){var a=ooe(e,function(c){return Zt(c,t)});if(n==="number"){var o=a.filter(function(c){return ge(c)||parseFloat(c)});return o.length?[Nm(o),Wi(o)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!Be(c)}):a;return l.map(function(c){return Jt(c)||c instanceof Date?c:""})}var cse=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r?.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var d=o.range,f=0;f<c;f++){var m=f>0?a[f-1].coordinate:a[c-1].coordinate,g=a[f].coordinate,v=f>=c-1?a[0].coordinate:a[f+1].coordinate,b=void 0;if(Rn(g-m)!==Rn(v-g)){var A=[];if(Rn(v-g)===Rn(d[1]-d[0])){b=v;var x=g+d[1]-d[0];A[0]=Math.min(x,(x+m)/2),A[1]=Math.max(x,(x+m)/2)}else{b=m;var w=v+d[1]-d[0];A[0]=Math.min(g,(w+g)/2),A[1]=Math.max(g,(w+g)/2)}var C=[Math.min(g,(b+g)/2),Math.max(g,(b+g)/2)];if(t>C[0]&&t<=C[1]||t>=A[0]&&t<=A[1]){l=a[f].index;break}}else{var j=Math.min(m,v),T=Math.max(m,v);if(t>(j+g)/2&&t<=(T+g)/2){l=a[f].index;break}}}else for(var M=0;M<c;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){l=r[M].index;break}return l},FC=function(t){var n,r=t,a=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?kt(kt({},t.type.defaultProps),t.props):t.props,l=o.stroke,c=o.fill,d;switch(a){case"Line":d=l;break;case"Area":case"Radar":d=l&&l!=="none"?l:c;break;default:d=c;break}return d},use=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var l={},c=Object.keys(o),d=0,f=c.length;d<f;d++)for(var m=o[c[d]].stackGroups,g=Object.keys(m),v=0,b=g.length;v<b;v++){var A=m[g[v]],x=A.items,w=A.cateAxisId,C=x.filter(function(N){return ai(N.type).indexOf("Bar")>=0});if(C&&C.length){var j=C[0].type.defaultProps,T=j!==void 0?kt(kt({},j),C[0].props):C[0].props,M=T.barSize,O=T[w];l[O]||(l[O]=[]);var _=Be(M)?n:M;l[O].push({item:C[0],stackList:C.slice(1),barSize:Be(_)?void 0:Mn(_,r,0)})}}return l},dse=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,o=t.sizeList,l=o===void 0?[]:o,c=t.maxBarSize,d=l.length;if(d<1)return null;var f=Mn(n,a,0,!0),m,g=[];if(l[0].barSize===+l[0].barSize){var v=!1,b=a/d,A=l.reduce(function(M,O){return M+O.barSize||0},0);A+=(d-1)*f,A>=a&&(A-=(d-1)*f,f=0),A>=a&&b>0&&(v=!0,b*=.9,A=d*b);var x=(a-A)/2>>0,w={offset:x-f,size:0};m=l.reduce(function(M,O){var _={item:O.item,position:{offset:w.offset+w.size+f,size:v?b:O.barSize}},N=[].concat(yk(M),[_]);return w=N[N.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(P){N.push({item:P,position:w})}),N},g)}else{var C=Mn(r,a,0,!0);a-2*C-(d-1)*f<=0&&(f=0);var j=(a-2*C-(d-1)*f)/d;j>1&&(j>>=0);var T=c===+c?Math.min(j,c):j;m=l.reduce(function(M,O,_){var N=[].concat(yk(M),[{item:O.item,position:{offset:C+(j+f)*_+(j-T)/2,size:T}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(P){N.push({item:P,position:N[N.length-1].position})}),N},g)}return m},fse=function(t,n,r,a){var o=r.children,l=r.width,c=r.margin,d=l-(c.left||0)-(c.right||0),f=C$({children:o,legendWidth:d});if(f){var m=a||{},g=m.width,v=m.height,b=f.align,A=f.verticalAlign,x=f.layout;if((x==="vertical"||x==="horizontal"&&A==="middle")&&b!=="center"&&ge(t[b]))return kt(kt({},t),{},Kl({},b,t[b]+(g||0)));if((x==="horizontal"||x==="vertical"&&b==="center")&&A!=="middle"&&ge(t[A]))return kt(kt({},t),{},Kl({},A,t[A]+(v||0)))}return t},pse=function(t,n,r){return Be(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},j$=function(t,n,r,a,o){var l=n.props.children,c=Pr(l,Pm).filter(function(f){return pse(a,o,f.props.direction)});if(c&&c.length){var d=c.map(function(f){return f.props.dataKey});return t.reduce(function(f,m){var g=Zt(m,r);if(Be(g))return f;var v=Array.isArray(g)?[Nm(g),Wi(g)]:[g,g],b=d.reduce(function(A,x){var w=Zt(m,x,0),C=v[0]-Math.abs(Array.isArray(w)?w[0]:w),j=v[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(C,A[0]),Math.max(j,A[1])]},[1/0,-1/0]);return[Math.min(b[0],f[0]),Math.max(b[1],f[1])]},[1/0,-1/0])}return null},hse=function(t,n,r,a,o){var l=n.map(function(c){return j$(t,c,r,o,a)}).filter(function(c){return!Be(c)});return l&&l.length?l.reduce(function(c,d){return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]):null},E$=function(t,n,r,a,o){var l=n.map(function(d){var f=d.props.dataKey;return r==="number"&&f&&j$(t,d,f,a)||rd(t,f,r,o)});if(r==="number")return l.reduce(function(d,f){return[Math.min(d[0],f[0]),Math.max(d[1],f[1])]},[1/0,-1/0]);var c={};return l.reduce(function(d,f){for(var m=0,g=f.length;m<g;m++)c[f[m]]||(c[f[m]]=!0,d.push(f[m]));return d},[])},_$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},T$=function(t,n,r,a){if(a)return t.map(function(d){return d.coordinate});var o,l,c=t.map(function(d){return d.coordinate===n&&(o=!0),d.coordinate===r&&(l=!0),d.coordinate});return o||c.push(n),l||c.push(r),c},ri=function(t,n,r){if(!t)return null;var a=t.scale,o=t.duplicateDomain,l=t.type,c=t.range,d=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,f=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/d:0;if(f=t.axisType==="angleAxis"&&c?.length>=2?Rn(c[0]-c[1])*2*f:f,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(g){var v=o?o.indexOf(g):g;return{coordinate:a(v)+f,value:g,offset:f}});return m.filter(function(g){return!Mc(g.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(g,v){return{coordinate:a(g)+f,value:g,index:v,offset:f}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(g){return{coordinate:a(g)+f,value:g,offset:f}}):a.domain().map(function(g,v){return{coordinate:a(g)+f,value:o?o[g]:g,index:v,offset:f}})},uw=new WeakMap,oh=function(t,n){if(typeof n!="function")return t;uw.has(t)||uw.set(t,new WeakMap);var r=uw.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},N$=function(t,n,r){var a=t.scale,o=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:Ed(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:tg(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:nd(),realScaleType:"point"}:o==="category"?{scale:Ed(),realScaleType:"band"}:{scale:tg(),realScaleType:"linear"};if(gs(a)){var d="scale".concat(gm(a));return{scale:(ak[d]||nd)(),realScaleType:ak[d]?d:"point"}}return Re(a)?{scale:a}:{scale:nd(),realScaleType:"point"}},bk=1e-4,R$=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),o=Math.min(a[0],a[1])-bk,l=Math.max(a[0],a[1])+bk,c=t(n[0]),d=t(n[r-1]);(c<o||c>l||d<o||d>l)&&t.domain([n[0],n[r-1]])}},gse=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},mse=function(t,n){if(!n||n.length!==2||!ge(n[0])||!ge(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=[t[0],t[1]];return(!ge(t[0])||t[0]<r)&&(o[0]=r),(!ge(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<r&&(o[1]=r),o},vse=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0,c=0;c<n;++c){var d=Mc(t[c][r][1])?t[c][r][0]:t[c][r][1];d>=0?(t[c][r][0]=o,t[c][r][1]=o+d,o=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+d,l=t[c][r][1])}},yse=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var o=0,l=0;l<n;++l){var c=Mc(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=o,t[l][r][1]=o+c,o=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},xse={sign:vse,expand:oee,none:Xl,silhouette:see,wiggle:lee,positive:yse},bse=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),o=xse[r],l=iee().keys(a).value(function(c,d){return+Zt(c,d,0)}).order(FS).offset(o);return l(t)},wse=function(t,n,r,a,o,l){if(!t)return null;var c=l?n.reverse():n,d={},f=c.reduce(function(g,v){var b,A=(b=v.type)!==null&&b!==void 0&&b.defaultProps?kt(kt({},v.type.defaultProps),v.props):v.props,x=A.stackId,w=A.hide;if(w)return g;var C=A[r],j=g[C]||{hasStack:!1,stackGroups:{}};if(Jt(x)){var T=j.stackGroups[x]||{numericAxisId:r,cateAxisId:a,items:[]};T.items.push(v),j.hasStack=!0,j.stackGroups[x]=T}else j.stackGroups[Pc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[v]};return kt(kt({},g),{},Kl({},C,j))},d),m={};return Object.keys(f).reduce(function(g,v){var b=f[v];if(b.hasStack){var A={};b.stackGroups=Object.keys(b.stackGroups).reduce(function(x,w){var C=b.stackGroups[w];return kt(kt({},x),{},Kl({},w,{numericAxisId:r,cateAxisId:a,items:C.items,stackedData:bse(t,C.items,o)}))},A)}return kt(kt({},g),{},Kl({},v,b))},m)},M$=function(t,n){var r=n.realScaleType,a=n.type,o=n.tickCount,l=n.originalDomain,c=n.allowDecimals,d=r||n.scale;if(d!=="auto"&&d!=="linear")return null;if(o&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var f=t.domain();if(!f.length)return null;var m=koe(f,o,c);return t.domain([Nm(m),Wi(m)]),{niceTicks:m}}if(o&&a==="number"){var g=t.domain(),v=Ioe(g,o,c);return{niceTicks:v}}return null};function wk(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,o=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Be(a[t.dataKey])){var c=Lh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var d=Zt(a,Be(l)?t.dataKey:l);return Be(d)?null:t.scale(d)}var Sk=function(t){var n=t.axis,r=t.ticks,a=t.offset,o=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var d=Zt(l,n.dataKey,n.domain[c]);return Be(d)?null:n.scale(d)-o/2+a},Sse=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return a<=0&&o>=0?0:o<0?o:a}return r[0]},Ase=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?kt(kt({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(Jt(o)){var l=n[o];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},Ose=function(t){return t.reduce(function(n,r){return[Nm(r.concat([n[0]]).filter(ge)),Wi(r.concat([n[1]]).filter(ge))]},[1/0,-1/0])},P$=function(t,n,r){return Object.keys(t).reduce(function(a,o){var l=t[o],c=l.stackedData,d=c.reduce(function(f,m){var g=Ose(m.slice(n,r+1));return[Math.min(f[0],g[0]),Math.max(f[1],g[1])]},[1/0,-1/0]);return[Math.min(d[0],a[0]),Math.max(d[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Ak=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ok=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hA=function(t,n,r){if(Re(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(ge(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Ak.test(t[0])){var o=+Ak.exec(t[0])[1];a[0]=n[0]-o}else Re(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(ge(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(Ok.test(t[1])){var l=+Ok.exec(t[1])[1];a[1]=n[1]+l}else Re(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},lg=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var o=vC(n,function(g){return g.coordinate}),l=1/0,c=1,d=o.length;c<d;c++){var f=o[c],m=o[c-1];l=Math.min((f.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},Ck=function(t,n,r){return!t||!t.length||ac(t,pr(r,"type.defaultProps.domain"))?n:t},D$=function(t,n){var r=t.type.defaultProps?kt(kt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,o=r.name,l=r.unit,c=r.formatter,d=r.tooltipType,f=r.chartType,m=r.hide;return kt(kt({},_e(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:o||a,color:FC(t),value:Zt(n,a),type:d,payload:n,chartType:f,hide:m})};function Id(e){"@babel/helpers - typeof";return Id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Id(e)}function jk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jk(Object(n),!0).forEach(function(r){k$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k$(e,t,n){return t=Cse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cse(e){var t=jse(e,"string");return Id(t)=="symbol"?t:t+""}function jse(e,t){if(Id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ese(e,t){return Rse(e)||Nse(e,t)||Tse(e,t)||_se()}function _se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tse(e,t){if(e){if(typeof e=="string")return Ek(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 Ek(e,t)}}function Ek(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 Nse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function Rse(e){if(Array.isArray(e))return e}var cg=Math.PI/180,Mse=function(t){return t*180/Math.PI},Ot=function(t,n,r,a){return{x:t+Math.cos(-cg*a)*r,y:n+Math.sin(-cg*a)*r}},I$=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Pse=function(t,n,r,a,o){var l=t.width,c=t.height,d=t.startAngle,f=t.endAngle,m=Mn(t.cx,l,l/2),g=Mn(t.cy,c,c/2),v=I$(l,c,r),b=Mn(t.innerRadius,v,0),A=Mn(t.outerRadius,v,v*.8),x=Object.keys(n);return x.reduce(function(w,C){var j=n[C],T=j.domain,M=j.reversed,O;if(Be(j.range))a==="angleAxis"?O=[d,f]:a==="radiusAxis"&&(O=[b,A]),M&&(O=[O[1],O[0]]);else{O=j.range;var _=O,N=Ese(_,2);d=N[0],f=N[1]}var P=N$(j,o),k=P.realScaleType,z=P.scale;z.domain(T).range(O),R$(z);var B=M$(z,Ja(Ja({},j),{},{realScaleType:k})),L=Ja(Ja(Ja({},j),B),{},{range:O,radius:A,realScaleType:k,scale:z,cx:m,cy:g,innerRadius:b,outerRadius:A,startAngle:d,endAngle:f});return Ja(Ja({},w),{},k$({},C,L))},{})},Dse=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(a-l,2))},kse=function(t,n){var r=t.x,a=t.y,o=n.cx,l=n.cy,c=Dse({x:r,y:a},{x:o,y:l});if(c<=0)return{radius:c};var d=(r-o)/c,f=Math.acos(d);return a>l&&(f=2*Math.PI-f),{radius:c,angle:Mse(f),angleInRadian:f}},Ise=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),o=Math.floor(r/360),l=Math.min(a,o);return{startAngle:n-l*360,endAngle:r-l*360}},Lse=function(t,n){var r=n.startAngle,a=n.endAngle,o=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(o,l);return t+c*360},_k=function(t,n){var r=t.x,a=t.y,o=kse({x:r,y:a},n),l=o.radius,c=o.angle,d=n.innerRadius,f=n.outerRadius;if(l<d||l>f)return!1;if(l===0)return!0;var m=Ise(n),g=m.startAngle,v=m.endAngle,b=c,A;if(g<=v){for(;b>v;)b-=360;for(;b<g;)b+=360;A=b>=g&&b<=v}else{for(;b>g;)b-=360;for(;b<v;)b+=360;A=b>=v&&b<=g}return A?Ja(Ja({},n),{},{radius:l,angle:Lse(b,n)}):null},L$=function(t){return!E.isValidElement(t)&&!Re(t)&&typeof t!="boolean"?t.className:""};function Ld(e){"@babel/helpers - typeof";return Ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ld(e)}var Bse=["offset"];function $se(e){return Fse(e)||Use(e)||zse(e)||qse()}function qse(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zse(e,t){if(e){if(typeof e=="string")return gA(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 gA(e,t)}}function Use(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fse(e){if(Array.isArray(e))return gA(e)}function gA(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 Kse(e,t){if(e==null)return{};var n=Hse(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hse(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 Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tk(Object(n),!0).forEach(function(r){Gse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gse(e,t,n){return t=Vse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vse(e){var t=Yse(e,"string");return Ld(t)=="symbol"?t:t+""}function Yse(e,t){if(Ld(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ld(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bd(){return Bd=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},Bd.apply(this,arguments)}var Qse=function(t){var n=t.value,r=t.formatter,a=Be(t.children)?n:t.children;return Re(r)?r(a):a},Xse=function(t,n){var r=Rn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Wse=function(t,n,r){var a=t.position,o=t.viewBox,l=t.offset,c=t.className,d=o,f=d.cx,m=d.cy,g=d.innerRadius,v=d.outerRadius,b=d.startAngle,A=d.endAngle,x=d.clockWise,w=(g+v)/2,C=Xse(b,A),j=C>=0?1:-1,T,M;a==="insideStart"?(T=b+j*l,M=x):a==="insideEnd"?(T=A-j*l,M=!x):a==="end"&&(T=A+j*l,M=x),M=C<=0?M:!M;var O=Ot(f,m,w,T),_=Ot(f,m,w,T+(M?1:-1)*359),N="M".concat(O.x,",").concat(O.y,`
|
||
A`).concat(w,",").concat(w,",0,1,").concat(M?0:1,`,
|
||
`).concat(_.x,",").concat(_.y),P=Be(t.id)?Pc("recharts-radial-line-"):t.id;return $.createElement("text",Bd({},r,{dominantBaseline:"central",className:Le("recharts-radial-bar-label",c)}),$.createElement("defs",null,$.createElement("path",{id:P,d:N})),$.createElement("textPath",{xlinkHref:"#".concat(P)},n))},Zse=function(t){var n=t.viewBox,r=t.offset,a=t.position,o=n,l=o.cx,c=o.cy,d=o.innerRadius,f=o.outerRadius,m=o.startAngle,g=o.endAngle,v=(m+g)/2;if(a==="outside"){var b=Ot(l,c,f+r,v),A=b.x,x=b.y;return{x:A,y:x,textAnchor:A>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var w=(d+f)/2,C=Ot(l,c,w,v),j=C.x,T=C.y;return{x:j,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Jse=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,o=t.position,l=n,c=l.x,d=l.y,f=l.width,m=l.height,g=m>=0?1:-1,v=g*a,b=g>0?"end":"start",A=g>0?"start":"end",x=f>=0?1:-1,w=x*a,C=x>0?"end":"start",j=x>0?"start":"end";if(o==="top"){var T={x:c+f/2,y:d-g*a,textAnchor:"middle",verticalAnchor:b};return Xt(Xt({},T),r?{height:Math.max(d-r.y,0),width:f}:{})}if(o==="bottom"){var M={x:c+f/2,y:d+m+v,textAnchor:"middle",verticalAnchor:A};return Xt(Xt({},M),r?{height:Math.max(r.y+r.height-(d+m),0),width:f}:{})}if(o==="left"){var O={x:c-w,y:d+m/2,textAnchor:C,verticalAnchor:"middle"};return Xt(Xt({},O),r?{width:Math.max(O.x-r.x,0),height:m}:{})}if(o==="right"){var _={x:c+f+w,y:d+m/2,textAnchor:j,verticalAnchor:"middle"};return Xt(Xt({},_),r?{width:Math.max(r.x+r.width-_.x,0),height:m}:{})}var N=r?{width:f,height:m}:{};return o==="insideLeft"?Xt({x:c+w,y:d+m/2,textAnchor:j,verticalAnchor:"middle"},N):o==="insideRight"?Xt({x:c+f-w,y:d+m/2,textAnchor:C,verticalAnchor:"middle"},N):o==="insideTop"?Xt({x:c+f/2,y:d+v,textAnchor:"middle",verticalAnchor:A},N):o==="insideBottom"?Xt({x:c+f/2,y:d+m-v,textAnchor:"middle",verticalAnchor:b},N):o==="insideTopLeft"?Xt({x:c+w,y:d+v,textAnchor:j,verticalAnchor:A},N):o==="insideTopRight"?Xt({x:c+f-w,y:d+v,textAnchor:C,verticalAnchor:A},N):o==="insideBottomLeft"?Xt({x:c+w,y:d+m-v,textAnchor:j,verticalAnchor:b},N):o==="insideBottomRight"?Xt({x:c+f-w,y:d+m-v,textAnchor:C,verticalAnchor:b},N):Rc(o)&&(ge(o.x)||Zo(o.x))&&(ge(o.y)||Zo(o.y))?Xt({x:c+Mn(o.x,f),y:d+Mn(o.y,m),textAnchor:"end",verticalAnchor:"end"},N):Xt({x:c+f/2,y:d+m/2,textAnchor:"middle",verticalAnchor:"middle"},N)},ele=function(t){return"cx"in t&&ge(t.cx)};function sn(e){var t=e.offset,n=t===void 0?5:t,r=Kse(e,Bse),a=Xt({offset:n},r),o=a.viewBox,l=a.position,c=a.value,d=a.children,f=a.content,m=a.className,g=m===void 0?"":m,v=a.textBreakAll;if(!o||Be(c)&&Be(d)&&!E.isValidElement(f)&&!Re(f))return null;if(E.isValidElement(f))return E.cloneElement(f,a);var b;if(Re(f)){if(b=E.createElement(f,a),E.isValidElement(b))return b}else b=Qse(a);var A=ele(o),x=_e(a,!0);if(A&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Wse(a,b,x);var w=A?Zse(a):Jse(a);return $.createElement(vs,Bd({className:Le("recharts-label",g)},x,w,{breakAll:v}),b)}sn.displayName="Label";var B$=function(t){var n=t.cx,r=t.cy,a=t.angle,o=t.startAngle,l=t.endAngle,c=t.r,d=t.radius,f=t.innerRadius,m=t.outerRadius,g=t.x,v=t.y,b=t.top,A=t.left,x=t.width,w=t.height,C=t.clockWise,j=t.labelViewBox;if(j)return j;if(ge(x)&&ge(w)){if(ge(g)&&ge(v))return{x:g,y:v,width:x,height:w};if(ge(b)&&ge(A))return{x:b,y:A,width:x,height:w}}return ge(g)&&ge(v)?{x:g,y:v,width:0,height:0}:ge(n)&&ge(r)?{cx:n,cy:r,startAngle:o||a||0,endAngle:l||a||0,innerRadius:f||0,outerRadius:m||d||c||0,clockWise:C}:t.viewBox?t.viewBox:{}},tle=function(t,n){return t?t===!0?$.createElement(sn,{key:"label-implicit",viewBox:n}):Jt(t)?$.createElement(sn,{key:"label-implicit",viewBox:n,value:t}):E.isValidElement(t)?t.type===sn?E.cloneElement(t,{key:"label-implicit",viewBox:n}):$.createElement(sn,{key:"label-implicit",content:t,viewBox:n}):Re(t)?$.createElement(sn,{key:"label-implicit",content:t,viewBox:n}):Rc(t)?$.createElement(sn,Bd({viewBox:n},t,{key:"label-implicit"})):null:null},nle=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 a=t.children,o=B$(t),l=Pr(a,sn).map(function(d,f){return E.cloneElement(d,{viewBox:n||o,key:"label-".concat(f)})});if(!r)return l;var c=tle(t.label,n||o);return[c].concat($se(l))};sn.parseViewBox=B$;sn.renderCallByParent=nle;var dw,Nk;function rle(){if(Nk)return dw;Nk=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return dw=e,dw}var ale=rle();const ile=ft(ale);function $d(e){"@babel/helpers - typeof";return $d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$d(e)}var ole=["valueAccessor"],sle=["data","dataKey","clockWise","id","textBreakAll"];function lle(e){return fle(e)||dle(e)||ule(e)||cle()}function cle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ule(e,t){if(e){if(typeof e=="string")return mA(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 mA(e,t)}}function dle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fle(e){if(Array.isArray(e))return mA(e)}function mA(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 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 Rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rk(Object(n),!0).forEach(function(r){ple(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ple(e,t,n){return t=hle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hle(e){var t=gle(e,"string");return $d(t)=="symbol"?t:t+""}function gle(e,t){if($d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pk(e,t){if(e==null)return{};var n=mle(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mle(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 vle=function(t){return Array.isArray(t.value)?ile(t.value):t.value};function oi(e){var t=e.valueAccessor,n=t===void 0?vle:t,r=Pk(e,ole),a=r.data,o=r.dataKey,l=r.clockWise,c=r.id,d=r.textBreakAll,f=Pk(r,sle);return!a||!a.length?null:$.createElement(et,{className:"recharts-label-list"},a.map(function(m,g){var v=Be(o)?n(m,g):Zt(m&&m.payload,o),b=Be(c)?{}:{id:"".concat(c,"-").concat(g)};return $.createElement(sn,ug({},_e(m,!0),f,b,{parentViewBox:m.parentViewBox,value:v,textBreakAll:d,viewBox:sn.parseViewBox(Be(l)?m:Mk(Mk({},m),{},{clockWise:l})),key:"label-".concat(g),index:g}))}))}oi.displayName="LabelList";function yle(e,t){return e?e===!0?$.createElement(oi,{key:"labelList-implicit",data:t}):$.isValidElement(e)||Re(e)?$.createElement(oi,{key:"labelList-implicit",data:t,content:e}):Rc(e)?$.createElement(oi,ug({data:t},e,{key:"labelList-implicit"})):null:null}function xle(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,a=Pr(r,oi).map(function(l,c){return E.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var o=yle(e.label,t);return[o].concat(lle(a))}oi.renderCallByParent=xle;function qd(e){"@babel/helpers - typeof";return qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qd(e)}function vA(){return vA=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},vA.apply(this,arguments)}function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function kk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dk(Object(n),!0).forEach(function(r){ble(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ble(e,t,n){return t=wle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wle(e){var t=Sle(e,"string");return qd(t)=="symbol"?t:t+""}function Sle(e,t){if(qd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ale=function(t,n){var r=Rn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},sh=function(t){var n=t.cx,r=t.cy,a=t.radius,o=t.angle,l=t.sign,c=t.isExternal,d=t.cornerRadius,f=t.cornerIsExternal,m=d*(c?1:-1)+a,g=Math.asin(d/m)/cg,v=f?o:o+l*g,b=Ot(n,r,m,v),A=Ot(n,r,a,v),x=f?o-l*g:o,w=Ot(n,r,m*Math.cos(g*cg),x);return{center:b,circleTangency:A,lineTangency:w,theta:g}},$$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.startAngle,c=t.endAngle,d=Ale(l,c),f=l+d,m=Ot(n,r,o,l),g=Ot(n,r,o,f),v="M ".concat(m.x,",").concat(m.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(d)>180),",").concat(+(l>f),`,
|
||
`).concat(g.x,",").concat(g.y,`
|
||
`);if(a>0){var b=Ot(n,r,a,l),A=Ot(n,r,a,f);v+="L ".concat(A.x,",").concat(A.y,`
|
||
A `).concat(a,",").concat(a,`,0,
|
||
`).concat(+(Math.abs(d)>180),",").concat(+(l<=f),`,
|
||
`).concat(b.x,",").concat(b.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},Ole=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,d=t.cornerIsExternal,f=t.startAngle,m=t.endAngle,g=Rn(m-f),v=sh({cx:n,cy:r,radius:o,angle:f,sign:g,cornerRadius:l,cornerIsExternal:d}),b=v.circleTangency,A=v.lineTangency,x=v.theta,w=sh({cx:n,cy:r,radius:o,angle:m,sign:-g,cornerRadius:l,cornerIsExternal:d}),C=w.circleTangency,j=w.lineTangency,T=w.theta,M=d?Math.abs(f-m):Math.abs(f-m)-x-T;if(M<0)return c?"M ".concat(A.x,",").concat(A.y,`
|
||
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
|
||
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
|
||
`):$$({cx:n,cy:r,innerRadius:a,outerRadius:o,startAngle:f,endAngle:m});var O="M ".concat(A.x,",").concat(A.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(b.x,",").concat(b.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(M>180),",").concat(+(g<0),",").concat(C.x,",").concat(C.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(j.x,",").concat(j.y,`
|
||
`);if(a>0){var _=sh({cx:n,cy:r,radius:a,angle:f,sign:g,isExternal:!0,cornerRadius:l,cornerIsExternal:d}),N=_.circleTangency,P=_.lineTangency,k=_.theta,z=sh({cx:n,cy:r,radius:a,angle:m,sign:-g,isExternal:!0,cornerRadius:l,cornerIsExternal:d}),B=z.circleTangency,L=z.lineTangency,U=z.theta,H=d?Math.abs(f-m):Math.abs(f-m)-k-U;if(H<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(L.x,",").concat(L.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(B.x,",").concat(B.y,`
|
||
A`).concat(a,",").concat(a,",0,").concat(+(H>180),",").concat(+(g>0),",").concat(N.x,",").concat(N.y,`
|
||
A`).concat(l,",").concat(l,",0,0,").concat(+(g<0),",").concat(P.x,",").concat(P.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},Cle={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},q$=function(t){var n=kk(kk({},Cle),t),r=n.cx,a=n.cy,o=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,d=n.forceCornerRadius,f=n.cornerIsExternal,m=n.startAngle,g=n.endAngle,v=n.className;if(l<o||m===g)return null;var b=Le("recharts-sector",v),A=l-o,x=Mn(c,A,0,!0),w;return x>0&&Math.abs(m-g)<360?w=Ole({cx:r,cy:a,innerRadius:o,outerRadius:l,cornerRadius:Math.min(x,A/2),forceCornerRadius:d,cornerIsExternal:f,startAngle:m,endAngle:g}):w=$$({cx:r,cy:a,innerRadius:o,outerRadius:l,startAngle:m,endAngle:g}),$.createElement("path",vA({},_e(n,!0),{className:b,d:w,role:"img"}))};function zd(e){"@babel/helpers - typeof";return zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zd(e)}function 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 Ik(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Lk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ik(Object(n),!0).forEach(function(r){jle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ik(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jle(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=_le(e,"string");return zd(t)=="symbol"?t:t+""}function _le(e,t){if(zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bk={curveBasisClosed:YJ,curveBasisOpen:QJ,curveBasis:VJ,curveBumpX:PJ,curveBumpY:DJ,curveLinearClosed:XJ,curveLinear:vm,curveMonotoneX:WJ,curveMonotoneY:ZJ,curveNatural:JJ,curveStep:eee,curveStepAfter:nee,curveStepBefore:tee},lh=function(t){return t.x===+t.x&&t.y===+t.y},zu=function(t){return t.x},Uu=function(t){return t.y},Tle=function(t,n){if(Re(t))return t;var r="curve".concat(gm(t));return(r==="curveMonotone"||r==="curveBump")&&n?Bk["".concat(r).concat(n==="vertical"?"Y":"X")]:Bk[r]||vm},Nle=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,o=a===void 0?[]:a,l=t.baseLine,c=t.layout,d=t.connectNulls,f=d===void 0?!1:d,m=Tle(r,c),g=f?o.filter(function(x){return lh(x)}):o,v;if(Array.isArray(l)){var b=f?l.filter(function(x){return lh(x)}):l,A=g.map(function(x,w){return Lk(Lk({},x),{},{base:b[w]})});return c==="vertical"?v=Jp().y(Uu).x1(zu).x0(function(x){return x.base.x}):v=Jp().x(zu).y1(Uu).y0(function(x){return x.base.y}),v.defined(lh).curve(m),v(A)}return c==="vertical"&&ge(l)?v=Jp().y(Uu).x1(zu).x0(l):ge(l)?v=Jp().x(zu).y1(Uu).y0(l):v=BB().x(zu).y(Uu),v.defined(lh).curve(m),v(g)},Hl=function(t){var n=t.className,r=t.points,a=t.path,o=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?Nle(t):a;return E.createElement("path",yA({},_e(t,!1),Bh(t),{className:Le("recharts-curve",n),d:l,ref:o}))},fw={exports:{}},pw,$k;function Rle(){if($k)return pw;$k=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pw=e,pw}var hw,qk;function Mle(){if(qk)return hw;qk=1;var e=Rle();function t(){}function n(){}return n.resetWarningCache=t,hw=function(){function r(l,c,d,f,m,g){if(g!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},hw}var zk;function Ple(){return zk||(zk=1,fw.exports=Mle()()),fw.exports}var Dle=Ple();const dt=ft(Dle);var kle=Object.getOwnPropertyNames,Ile=Object.getOwnPropertySymbols,Lle=Object.prototype.hasOwnProperty;function Uk(e,t){return function(r,a,o){return e(r,a,o)&&t(r,a,o)}}function ch(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);var o=a.cache,l=o.get(n),c=o.get(r);if(l&&c)return l===r&&c===n;o.set(n,r),o.set(r,n);var d=e(n,r,a);return o.delete(n),o.delete(r),d}}function Ble(e){return e?.[Symbol.toStringTag]}function Fk(e){return kle(e).concat(Ile(e))}var $le=Object.hasOwn||(function(e,t){return Lle.call(e,t)});function Ps(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var qle="__v",zle="__o",Ule="_owner",Kk=Object.getOwnPropertyDescriptor,Hk=Object.keys;function Fle(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Kle(e,t){return Ps(e.getTime(),t.getTime())}function Hle(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Gle(e,t){return e===t}function Gk(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),o=e.entries(),l,c,d=0;(l=o.next())&&!l.done;){for(var f=t.entries(),m=!1,g=0;(c=f.next())&&!c.done;){if(a[g]){g++;continue}var v=l.value,b=c.value;if(n.equals(v[0],b[0],d,g,e,t,n)&&n.equals(v[1],b[1],v[0],b[0],e,t,n)){m=a[g]=!0;break}g++}if(!m)return!1;d++}return!0}var Vle=Ps;function Yle(e,t,n){var r=Hk(e),a=r.length;if(Hk(t).length!==a)return!1;for(;a-- >0;)if(!z$(e,t,n,r[a]))return!1;return!0}function Fu(e,t,n){var r=Fk(e),a=r.length;if(Fk(t).length!==a)return!1;for(var o,l,c;a-- >0;)if(o=r[a],!z$(e,t,n,o)||(l=Kk(e,o),c=Kk(t,o),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Qle(e,t){return Ps(e.valueOf(),t.valueOf())}function Xle(e,t){return e.source===t.source&&e.flags===t.flags}function Vk(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),o=e.values(),l,c;(l=o.next())&&!l.done;){for(var d=t.values(),f=!1,m=0;(c=d.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){f=a[m]=!0;break}m++}if(!f)return!1}return!0}function Wle(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Zle(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 z$(e,t,n,r){return(r===Ule||r===zle||r===qle)&&(e.$$typeof||t.$$typeof)?!0:$le(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Jle="[object Arguments]",ece="[object Boolean]",tce="[object Date]",nce="[object Error]",rce="[object Map]",ace="[object Number]",ice="[object Object]",oce="[object RegExp]",sce="[object Set]",lce="[object String]",cce="[object URL]",uce=Array.isArray,Yk=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Qk=Object.assign,dce=Object.prototype.toString.call.bind(Object.prototype.toString);function fce(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,a=e.areFunctionsEqual,o=e.areMapsEqual,l=e.areNumbersEqual,c=e.areObjectsEqual,d=e.arePrimitiveWrappersEqual,f=e.areRegExpsEqual,m=e.areSetsEqual,g=e.areTypedArraysEqual,v=e.areUrlsEqual,b=e.unknownTagComparators;return function(x,w,C){if(x===w)return!0;if(x==null||w==null)return!1;var j=typeof x;if(j!==typeof w)return!1;if(j!=="object")return j==="number"?l(x,w,C):j==="function"?a(x,w,C):!1;var T=x.constructor;if(T!==w.constructor)return!1;if(T===Object)return c(x,w,C);if(uce(x))return t(x,w,C);if(Yk!=null&&Yk(x))return g(x,w,C);if(T===Date)return n(x,w,C);if(T===RegExp)return f(x,w,C);if(T===Map)return o(x,w,C);if(T===Set)return m(x,w,C);var M=dce(x);if(M===tce)return n(x,w,C);if(M===oce)return f(x,w,C);if(M===rce)return o(x,w,C);if(M===sce)return m(x,w,C);if(M===ice)return typeof x.then!="function"&&typeof w.then!="function"&&c(x,w,C);if(M===cce)return v(x,w,C);if(M===nce)return r(x,w,C);if(M===Jle)return c(x,w,C);if(M===ece||M===ace||M===lce)return d(x,w,C);if(b){var O=b[M];if(!O){var _=Ble(x);_&&(O=b[_])}if(O)return O(x,w,C)}return!1}}function pce(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?Fu:Fle,areDatesEqual:Kle,areErrorsEqual:Hle,areFunctionsEqual:Gle,areMapsEqual:r?Uk(Gk,Fu):Gk,areNumbersEqual:Vle,areObjectsEqual:r?Fu:Yle,arePrimitiveWrappersEqual:Qle,areRegExpsEqual:Xle,areSetsEqual:r?Uk(Vk,Fu):Vk,areTypedArraysEqual:r?Fu:Wle,areUrlsEqual:Zle,unknownTagComparators:void 0};if(n&&(a=Qk({},a,n(a))),t){var o=ch(a.areArraysEqual),l=ch(a.areMapsEqual),c=ch(a.areObjectsEqual),d=ch(a.areSetsEqual);a=Qk({},a,{areArraysEqual:o,areMapsEqual:l,areObjectsEqual:c,areSetsEqual:d})}return a}function hce(e){return function(t,n,r,a,o,l,c){return e(t,n,c)}}function gce(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,o=e.strict;if(r)return function(d,f){var m=r(),g=m.cache,v=g===void 0?t?new WeakMap:void 0:g,b=m.meta;return n(d,f,{cache:v,equals:a,meta:b,strict:o})};if(t)return function(d,f){return n(d,f,{cache:new WeakMap,equals:a,meta:void 0,strict:o})};var l={cache:void 0,equals:a,meta:void 0,strict:o};return function(d,f){return n(d,f,l)}}var mce=go();go({strict:!0});go({circular:!0});go({circular:!0,strict:!0});go({createInternalComparator:function(){return Ps}});go({strict:!0,createInternalComparator:function(){return Ps}});go({circular:!0,createInternalComparator:function(){return Ps}});go({circular:!0,createInternalComparator:function(){return Ps},strict:!0});function go(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,o=e.strict,l=o===void 0?!1:o,c=pce(e),d=fce(c),f=r?r(d):hce(d);return gce({circular:n,comparator:d,createState:a,equals:f,strict:l})}function vce(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Xk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(o){n<0&&(n=o),o-n>t?(e(o),n=-1):vce(a)};requestAnimationFrame(r)}function xA(e){"@babel/helpers - typeof";return xA=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},xA(e)}function yce(e){return Sce(e)||wce(e)||bce(e)||xce()}function xce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bce(e,t){if(e){if(typeof e=="string")return Wk(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 Wk(e,t)}}function Wk(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 wce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sce(e){if(Array.isArray(e))return e}function Ace(){var e={},t=function(){return null},n=!1,r=function a(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var l=o,c=yce(l),d=c[0],f=c.slice(1);if(typeof d=="number"){Xk(a.bind(null,f),d);return}a(d),Xk(a.bind(null,f));return}xA(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Ud(e){"@babel/helpers - typeof";return Ud=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},Ud(e)}function Zk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Jk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zk(Object(n),!0).forEach(function(r){U$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U$(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=Cce(e,"string");return Ud(t)==="symbol"?t:String(t)}function Cce(e,t){if(Ud(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ud(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jce=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(o){return a.includes(o)})})},Ece=function(t){return t},_ce=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},ad=function(t,n){return Object.keys(n).reduce(function(r,a){return Jk(Jk({},r),{},U$({},a,t(a,n[a])))},{})},eI=function(t,n,r){return t.map(function(a){return"".concat(_ce(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Tce(e,t){return Mce(e)||Rce(e,t)||F$(e,t)||Nce()}function Nce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function Mce(e){if(Array.isArray(e))return e}function Pce(e){return Ice(e)||kce(e)||F$(e)||Dce()}function Dce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F$(e,t){if(e){if(typeof e=="string")return bA(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 bA(e,t)}}function kce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ice(e){if(Array.isArray(e))return bA(e)}function bA(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 dg=1e-4,K$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},H$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},tI=function(t,n){return function(r){var a=K$(t,n);return H$(a,r)}},Lce=function(t,n){return function(r){var a=K$(t,n),o=[].concat(Pce(a.map(function(l,c){return l*c}).slice(1)),[0]);return H$(o,r)}},nI=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],o=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,o=0,l=1,c=1;break;case"ease":a=.25,o=.1,l=.25,c=1;break;case"ease-in":a=.42,o=0,l=1,c=1;break;case"ease-out":a=.42,o=0,l=.58,c=1;break;case"ease-in-out":a=0,o=0,l=.58,c=1;break;default:{var d=n[0].split("(");if(d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4){var f=d[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),m=Tce(f,4);a=m[0],o=m[1],l=m[2],c=m[3]}}}var g=tI(a,l),v=tI(o,c),b=Lce(a,l),A=function(C){return C>1?1:C<0?0:C},x=function(C){for(var j=C>1?1:C,T=j,M=0;M<8;++M){var O=g(T)-j,_=b(T);if(Math.abs(O-j)<dg||_<dg)return v(T);T=A(T-O/_)}return v(T)};return x.isStepper=!1,x},Bce=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,o=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,d=function(m,g,v){var b=-(m-g)*r,A=v*o,x=v+(b-A)*c/1e3,w=v*c/1e3+m;return Math.abs(w-g)<dg&&Math.abs(x)<dg?[g,0]:[w,x]};return d.isStepper=!0,d.dt=c,d},$ce=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return nI(a);case"spring":return Bce();default:if(a.split("(")[0]==="cubic-bezier")return nI(a)}return typeof a=="function"?a:null};function Fd(e){"@babel/helpers - typeof";return Fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fd(e)}function rI(e){return Uce(e)||zce(e)||G$(e)||qce()}function qce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uce(e){if(Array.isArray(e))return SA(e)}function aI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aI(Object(n),!0).forEach(function(r){wA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wA(e,t,n){return t=Fce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fce(e){var t=Kce(e,"string");return Fd(t)==="symbol"?t:String(t)}function Kce(e,t){if(Fd(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fd(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hce(e,t){return Yce(e)||Vce(e,t)||G$(e,t)||Gce()}function Gce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G$(e,t){if(e){if(typeof e=="string")return SA(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 SA(e,t)}}function SA(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 Vce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function Yce(e){if(Array.isArray(e))return e}var fg=function(t,n,r){return t+(n-t)*r},AA=function(t){var n=t.from,r=t.to;return n!==r},Qce=function e(t,n,r){var a=ad(function(o,l){if(AA(l)){var c=t(l.from,l.to,l.velocity),d=Hce(c,2),f=d[0],m=d[1];return hn(hn({},l),{},{from:f,velocity:m})}return l},n);return r<1?ad(function(o,l){return AA(l)?hn(hn({},l),{},{velocity:fg(l.velocity,a[o].velocity,r),from:fg(l.from,a[o].from,r)}):l},n):e(t,a,r-1)};const Xce=(function(e,t,n,r,a){var o=jce(e,t),l=o.reduce(function(w,C){return hn(hn({},w),{},wA({},C,[e[C],t[C]]))},{}),c=o.reduce(function(w,C){return hn(hn({},w),{},wA({},C,{from:e[C],velocity:0,to:t[C]}))},{}),d=-1,f,m,g=function(){return null},v=function(){return ad(function(C,j){return j.from},c)},b=function(){return!Object.values(c).filter(AA).length},A=function(C){f||(f=C);var j=C-f,T=j/n.dt;c=Qce(n,c,T),a(hn(hn(hn({},e),t),v())),f=C,b()||(d=requestAnimationFrame(g))},x=function(C){m||(m=C);var j=(C-m)/r,T=ad(function(O,_){return fg.apply(void 0,rI(_).concat([n(j)]))},l);if(a(hn(hn(hn({},e),t),T)),j<1)d=requestAnimationFrame(g);else{var M=ad(function(O,_){return fg.apply(void 0,rI(_).concat([n(1)]))},l);a(hn(hn(hn({},e),t),M))}};return g=n.isStepper?A:x,function(){return requestAnimationFrame(g),function(){cancelAnimationFrame(d)}}});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)}var Wce=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Zce(e,t){if(e==null)return{};var n=Jce(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jce(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function gw(e){return rue(e)||nue(e)||tue(e)||eue()}function eue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tue(e,t){if(e){if(typeof e=="string")return OA(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 OA(e,t)}}function nue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rue(e){if(Array.isArray(e))return OA(e)}function OA(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 iI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ur(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iI(Object(n),!0).forEach(function(r){Yu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yu(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 aue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V$(r.key),r)}}function oue(e,t,n){return t&&iue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V$(e){var t=sue(e,"string");return oc(t)==="symbol"?t:String(t)}function sue(e,t){if(oc(e)!=="object"||e===null)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)}function lue(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&&CA(e,t)}function CA(e,t){return CA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CA(e,t)}function cue(e){var t=uue();return function(){var r=pg(e),a;if(t){var o=pg(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return jA(this,a)}}function jA(e,t){if(t&&(oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return EA(e)}function EA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uue(){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 pg(e){return pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pg(e)}var Ca=(function(e){lue(n,e);var t=cue(n);function n(r,a){var o;aue(this,n),o=t.call(this,r,a);var l=o.props,c=l.isActive,d=l.attributeName,f=l.from,m=l.to,g=l.steps,v=l.children,b=l.duration;if(o.handleStyleChange=o.handleStyleChange.bind(EA(o)),o.changeStyle=o.changeStyle.bind(EA(o)),!c||b<=0)return o.state={style:{}},typeof v=="function"&&(o.state={style:m}),jA(o);if(g&&g.length)o.state={style:g[0].style};else if(f){if(typeof v=="function")return o.state={style:f},jA(o);o.state={style:d?Yu({},d,f):f}}else o.state={style:{}};return o}return oue(n,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,l=a.canBegin;this.mounted=!0,!(!o||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,l=o.isActive,c=o.canBegin,d=o.attributeName,f=o.shouldReAnimate,m=o.to,g=o.from,v=this.state.style;if(c){if(!l){var b={style:d?Yu({},d,m):m};this.state&&v&&(d&&v[d]!==m||!d&&v!==m)&&this.setState(b);return}if(!(mce(a.to,m)&&a.canBegin&&a.isActive)){var A=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var x=A||f?g:a.to;if(this.state&&v){var w={style:d?Yu({},d,x):x};(d&&v[d]!==x||!d&&v!==x)&&this.setState(w)}this.runAnimation(Ur(Ur({},this.props),{},{from:x,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,l=a.from,c=a.to,d=a.duration,f=a.easing,m=a.begin,g=a.onAnimationEnd,v=a.onAnimationStart,b=Xce(l,c,$ce(f),d,this.changeStyle),A=function(){o.stopJSAnimation=b()};this.manager.start([v,m,A,d,g])}},{key:"runStepAnimation",value:function(a){var o=this,l=a.steps,c=a.begin,d=a.onAnimationStart,f=l[0],m=f.style,g=f.duration,v=g===void 0?0:g,b=function(x,w,C){if(C===0)return x;var j=w.duration,T=w.easing,M=T===void 0?"ease":T,O=w.style,_=w.properties,N=w.onAnimationEnd,P=C>0?l[C-1]:w,k=_||Object.keys(O);if(typeof M=="function"||M==="spring")return[].concat(gw(x),[o.runJSAnimation.bind(o,{from:P.style,to:O,duration:j,easing:M}),j]);var z=eI(k,j,M),B=Ur(Ur(Ur({},P.style),O),{},{transition:z});return[].concat(gw(x),[B,j,N]).filter(Ece)};return this.manager.start([d].concat(gw(l.reduce(b,[m,Math.max(v,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Ace());var o=a.begin,l=a.duration,c=a.attributeName,d=a.to,f=a.easing,m=a.onAnimationStart,g=a.onAnimationEnd,v=a.steps,b=a.children,A=this.manager;if(this.unSubscribe=A.subscribe(this.handleStyleChange),typeof f=="function"||typeof b=="function"||f==="spring"){this.runJSAnimation(a);return}if(v.length>1){this.runStepAnimation(a);return}var x=c?Yu({},c,d):d,w=eI(Object.keys(x),l,f);A.start([m,o,Ur(Ur({},x),{},{transition:w}),l,g])}},{key:"render",value:function(){var a=this.props,o=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var d=Zce(a,Wce),f=E.Children.count(o),m=this.state.style;if(typeof o=="function")return o(m);if(!c||f===0||l<=0)return o;var g=function(b){var A=b.props,x=A.style,w=x===void 0?{}:x,C=A.className,j=E.cloneElement(b,Ur(Ur({},d),{},{style:Ur(Ur({},w),m),className:C}));return j};return f===1?g(E.Children.only(o)):$.createElement("div",null,E.Children.map(o,function(v){return g(v)}))}}]),n})(E.PureComponent);Ca.displayName="Animate";Ca.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ca.propTypes={from:dt.oneOfType([dt.object,dt.string]),to:dt.oneOfType([dt.object,dt.string]),attributeName:dt.string,duration:dt.number,begin:dt.number,easing:dt.oneOfType([dt.string,dt.func]),steps:dt.arrayOf(dt.shape({duration:dt.number.isRequired,style:dt.object.isRequired,easing:dt.oneOfType([dt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),dt.func]),properties:dt.arrayOf("string"),onAnimationEnd:dt.func})),children:dt.oneOfType([dt.node,dt.func]),isActive:dt.bool,canBegin:dt.bool,onAnimationEnd:dt.func,shouldReAnimate:dt.bool,onAnimationStart:dt.func,onAnimationReStart:dt.func};function Kd(e){"@babel/helpers - typeof";return Kd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kd(e)}function 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 due(e,t){return gue(e)||hue(e,t)||pue(e,t)||fue()}function fue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pue(e,t){if(e){if(typeof e=="string")return oI(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 oI(e,t)}}function oI(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 hue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function gue(e){if(Array.isArray(e))return e}function sI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sI(Object(n),!0).forEach(function(r){mue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mue(e,t,n){return t=vue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vue(e){var t=yue(e,"string");return Kd(t)=="symbol"?t:t+""}function yue(e,t){if(Kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cI=function(t,n,r,a,o){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,d=r>=0?1:-1,f=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&o instanceof Array){for(var g=[0,0,0,0],v=0,b=4;v<b;v++)g[v]=o[v]>l?l:o[v];m="M".concat(t,",").concat(n+c*g[0]),g[0]>0&&(m+="A ".concat(g[0],",").concat(g[0],",0,0,").concat(f,",").concat(t+d*g[0],",").concat(n)),m+="L ".concat(t+r-d*g[1],",").concat(n),g[1]>0&&(m+="A ".concat(g[1],",").concat(g[1],",0,0,").concat(f,`,
|
||
`).concat(t+r,",").concat(n+c*g[1])),m+="L ".concat(t+r,",").concat(n+a-c*g[2]),g[2]>0&&(m+="A ".concat(g[2],",").concat(g[2],",0,0,").concat(f,`,
|
||
`).concat(t+r-d*g[2],",").concat(n+a)),m+="L ".concat(t+d*g[3],",").concat(n+a),g[3]>0&&(m+="A ".concat(g[3],",").concat(g[3],",0,0,").concat(f,`,
|
||
`).concat(t,",").concat(n+a-c*g[3])),m+="Z"}else if(l>0&&o===+o&&o>0){var A=Math.min(l,o);m="M ".concat(t,",").concat(n+c*A,`
|
||
A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+d*A,",").concat(n,`
|
||
L `).concat(t+r-d*A,",").concat(n,`
|
||
A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+r,",").concat(n+c*A,`
|
||
L `).concat(t+r,",").concat(n+a-c*A,`
|
||
A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t+r-d*A,",").concat(n+a,`
|
||
L `).concat(t+d*A,",").concat(n+a,`
|
||
A `).concat(A,",").concat(A,",0,0,").concat(f,",").concat(t,",").concat(n+a-c*A," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},xue=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,o=n.x,l=n.y,c=n.width,d=n.height;if(Math.abs(c)>0&&Math.abs(d)>0){var f=Math.min(o,o+c),m=Math.max(o,o+c),g=Math.min(l,l+d),v=Math.max(l,l+d);return r>=f&&r<=m&&a>=g&&a<=v}return!1},bue={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KC=function(t){var n=lI(lI({},bue),t),r=E.useRef(),a=E.useState(-1),o=due(a,2),l=o[0],c=o[1];E.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&c(M)}catch{}},[]);var d=n.x,f=n.y,m=n.width,g=n.height,v=n.radius,b=n.className,A=n.animationEasing,x=n.animationDuration,w=n.animationBegin,C=n.isAnimationActive,j=n.isUpdateAnimationActive;if(d!==+d||f!==+f||m!==+m||g!==+g||m===0||g===0)return null;var T=Le("recharts-rectangle",b);return j?$.createElement(Ca,{canBegin:l>0,from:{width:m,height:g,x:d,y:f},to:{width:m,height:g,x:d,y:f},duration:x,animationEasing:A,isActive:j},function(M){var O=M.width,_=M.height,N=M.x,P=M.y;return $.createElement(Ca,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:x,isActive:C,easing:A},$.createElement("path",hg({},_e(n,!0),{className:T,d:cI(N,P,O,_,v),ref:r})))}):$.createElement("path",hg({},_e(n,!0),{className:T,d:cI(d,f,m,g,v)}))},wue=["points","className","baseLinePoints","connectNulls"];function Il(){return Il=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},Il.apply(this,arguments)}function Sue(e,t){if(e==null)return{};var n=Aue(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(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 uI(e){return Eue(e)||jue(e)||Cue(e)||Oue()}function Oue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cue(e,t){if(e){if(typeof e=="string")return _A(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 _A(e,t)}}function jue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eue(e){if(Array.isArray(e))return _A(e)}function _A(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 dI=function(t){return t&&t.x===+t.x&&t.y===+t.y},_ue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){dI(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),dI(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},id=function(t,n){var r=_ue(t);n&&(r=[r.reduce(function(o,l){return[].concat(uI(o),uI(l))},[])]);var a=r.map(function(o){return o.reduce(function(l,c,d){return"".concat(l).concat(d===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Tue=function(t,n,r){var a=id(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(id(n.reverse(),r).slice(1))},Nue=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,o=t.connectNulls,l=Sue(t,wue);if(!n||!n.length)return null;var c=Le("recharts-polygon",r);if(a&&a.length){var d=l.stroke&&l.stroke!=="none",f=Tue(n,a,o);return $.createElement("g",{className:c},$.createElement("path",Il({},_e(l,!0),{fill:f.slice(-1)==="Z"?l.fill:"none",stroke:"none",d:f})),d?$.createElement("path",Il({},_e(l,!0),{fill:"none",d:id(n,o)})):null,d?$.createElement("path",Il({},_e(l,!0),{fill:"none",d:id(a,o)})):null)}var m=id(n,o);return $.createElement("path",Il({},_e(l,!0),{fill:m.slice(-1)==="Z"?l.fill:"none",className:c,d:m}))};function TA(){return TA=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},TA.apply(this,arguments)}var Dm=function(t){var n=t.cx,r=t.cy,a=t.r,o=t.className,l=Le("recharts-dot",o);return n===+n&&r===+r&&a===+a?E.createElement("circle",TA({},_e(t,!1),Bh(t),{className:l,cx:n,cy:r,r:a})):null};function Hd(e){"@babel/helpers - typeof";return Hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hd(e)}var Rue=["x","y","top","left","width","height","className"];function NA(){return NA=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},NA.apply(this,arguments)}function fI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fI(Object(n),!0).forEach(function(r){Pue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pue(e,t,n){return t=Due(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Due(e){var t=kue(e,"string");return Hd(t)=="symbol"?t:t+""}function kue(e,t){if(Hd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iue(e,t){if(e==null)return{};var n=Lue(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lue(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 Bue=function(t,n,r,a,o,l){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},$ue=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,o=a===void 0?0:a,l=t.top,c=l===void 0?0:l,d=t.left,f=d===void 0?0:d,m=t.width,g=m===void 0?0:m,v=t.height,b=v===void 0?0:v,A=t.className,x=Iue(t,Rue),w=Mue({x:r,y:o,top:c,left:f,width:g,height:b},x);return!ge(r)||!ge(o)||!ge(g)||!ge(b)||!ge(c)||!ge(f)?null:$.createElement("path",NA({},_e(w,!0),{className:Le("recharts-cross",A),d:Bue(r,o,g,b,c,f)}))},mw,pI;function que(){if(pI)return mw;pI=1;var e=Tm(),t=l$(),n=Ra();function r(a,o){return a&&a.length?e(a,n(o,2),t):void 0}return mw=r,mw}var zue=que();const Uue=ft(zue);var vw,hI;function Fue(){if(hI)return vw;hI=1;var e=Tm(),t=Ra(),n=c$();function r(a,o){return a&&a.length?e(a,t(o,2),n):void 0}return vw=r,vw}var Kue=Fue();const Hue=ft(Kue);var Gue=["cx","cy","angle","ticks","axisLine"],Vue=["ticks","tick","angle","tickFormatter","stroke"];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 od(){return od=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},od.apply(this,arguments)}function gI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gI(Object(n),!0).forEach(function(r){km(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mI(e,t){if(e==null)return{};var n=Yue(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yue(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 Que(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vI(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,Q$(r.key),r)}}function Xue(e,t,n){return t&&vI(e.prototype,t),n&&vI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wue(e,t,n){return t=gg(t),Zue(e,Y$()?Reflect.construct(t,n||[],gg(e).constructor):t.apply(e,n))}function Zue(e,t){if(t&&(sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jue(e)}function Jue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y$=function(){return!!e})()}function gg(e){return gg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gg(e)}function ede(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&&RA(e,t)}function RA(e,t){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},RA(e,t)}function km(e,t,n){return t=Q$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q$(e){var t=tde(e,"string");return sc(t)=="symbol"?t:t+""}function tde(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 Im=(function(e){function t(){return Que(this,t),Wue(this,t,arguments)}return ede(t,e),Xue(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,o=this.props,l=o.angle,c=o.cx,d=o.cy;return Ot(c,d,a,l)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.angle,c=r.ticks,d=Uue(c,function(m){return m.coordinate||0}),f=Hue(c,function(m){return m.coordinate||0});return{cx:a,cy:o,startAngle:l,endAngle:l,innerRadius:f.coordinate||0,outerRadius:d.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.angle,c=r.ticks,d=r.axisLine,f=mI(r,Gue),m=c.reduce(function(A,x){return[Math.min(A[0],x.coordinate),Math.max(A[1],x.coordinate)]},[1/0,-1/0]),g=Ot(a,o,m[0],l),v=Ot(a,o,m[1],l),b=Fo(Fo(Fo({},_e(f,!1)),{},{fill:"none"},_e(d,!1)),{},{x1:g.x,y1:g.y,x2:v.x,y2:v.y});return $.createElement("line",od({className:"recharts-polar-radius-axis-line"},b))}},{key:"renderTicks",value:function(){var r=this,a=this.props,o=a.ticks,l=a.tick,c=a.angle,d=a.tickFormatter,f=a.stroke,m=mI(a,Vue),g=this.getTickTextAnchor(),v=_e(m,!1),b=_e(l,!1),A=o.map(function(x,w){var C=r.getTickValueCoord(x),j=Fo(Fo(Fo(Fo({textAnchor:g,transform:"rotate(".concat(90-c,", ").concat(C.x,", ").concat(C.y,")")},v),{},{stroke:"none",fill:f},b),{},{index:w},C),{},{payload:x});return $.createElement(et,od({className:Le("recharts-polar-radius-axis-tick",L$(l)),key:"tick-".concat(x.coordinate)},ms(r.props,x,w)),t.renderTickItem(l,j,d?d(x.value,w):x.value))});return $.createElement(et,{className:"recharts-polar-radius-axis-ticks"},A)}},{key:"render",value:function(){var r=this.props,a=r.ticks,o=r.axisLine,l=r.tick;return!a||!a.length?null:$.createElement(et,{className:Le("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),l&&this.renderTicks(),sn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,o){var l;return $.isValidElement(r)?l=$.cloneElement(r,a):Re(r)?l=r(a):l=$.createElement(vs,od({},a,{className:"recharts-polar-radius-axis-tick-value"}),o),l}}])})(E.PureComponent);km(Im,"displayName","PolarRadiusAxis");km(Im,"axisType","radiusAxis");km(Im,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function Xo(){return Xo=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},Xo.apply(this,arguments)}function yI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ko(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yI(Object(n),!0).forEach(function(r){Lm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xI(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,W$(r.key),r)}}function rde(e,t,n){return t&&xI(e.prototype,t),n&&xI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ade(e,t,n){return t=mg(t),ide(e,X$()?Reflect.construct(t,n||[],mg(e).constructor):t.apply(e,n))}function ide(e,t){if(t&&(lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ode(e)}function ode(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X$=function(){return!!e})()}function mg(e){return mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mg(e)}function sde(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&&MA(e,t)}function MA(e,t){return MA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},MA(e,t)}function Lm(e,t,n){return t=W$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$(e){var t=lde(e,"string");return lc(t)=="symbol"?t:t+""}function lde(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cde=Math.PI/180,bI=1e-5,Bm=(function(e){function t(){return nde(this,t),ade(this,t,arguments)}return sde(t,e),rde(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.cx,l=a.cy,c=a.radius,d=a.orientation,f=a.tickSize,m=f||8,g=Ot(o,l,c,r.coordinate),v=Ot(o,l,c+(d==="inner"?-1:1)*m,r.coordinate);return{x1:g.x,y1:g.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,o=Math.cos(-r.coordinate*cde),l;return o>bI?l=a==="outer"?"start":"end":o<-bI?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,o=r.cy,l=r.radius,c=r.axisLine,d=r.axisLineType,f=Ko(Ko({},_e(this.props,!1)),{},{fill:"none"},_e(c,!1));if(d==="circle")return $.createElement(Dm,Xo({className:"recharts-polar-angle-axis-line"},f,{cx:a,cy:o,r:l}));var m=this.props.ticks,g=m.map(function(v){return Ot(a,o,l,v.coordinate)});return $.createElement(Nue,Xo({className:"recharts-polar-angle-axis-line"},f,{points:g}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,o=a.ticks,l=a.tick,c=a.tickLine,d=a.tickFormatter,f=a.stroke,m=_e(this.props,!1),g=_e(l,!1),v=Ko(Ko({},m),{},{fill:"none"},_e(c,!1)),b=o.map(function(A,x){var w=r.getTickLineCoord(A),C=r.getTickTextAnchor(A),j=Ko(Ko(Ko({textAnchor:C},m),{},{stroke:"none",fill:f},g),{},{index:x,payload:A,x:w.x2,y:w.y2});return $.createElement(et,Xo({className:Le("recharts-polar-angle-axis-tick",L$(l)),key:"tick-".concat(A.coordinate)},ms(r.props,A,x)),c&&$.createElement("line",Xo({className:"recharts-polar-angle-axis-tick-line"},v,w)),l&&t.renderTickItem(l,j,d?d(A.value,x):A.value))});return $.createElement(et,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,a=r.ticks,o=r.radius,l=r.axisLine;return o<=0||!a||!a.length?null:$.createElement(et,{className:Le("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,o){var l;return $.isValidElement(r)?l=$.cloneElement(r,a):Re(r)?l=r(a):l=$.createElement(vs,Xo({},a,{className:"recharts-polar-angle-axis-tick-value"}),o),l}}])})(E.PureComponent);Lm(Bm,"displayName","PolarAngleAxis");Lm(Bm,"axisType","angleAxis");Lm(Bm,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var yw,wI;function ude(){if(wI)return yw;wI=1;var e=s8(),t=e(Object.getPrototypeOf,Object);return yw=t,yw}var xw,SI;function dde(){if(SI)return xw;SI=1;var e=pi(),t=ude(),n=hi(),r="[object Object]",a=Function.prototype,o=Object.prototype,l=a.toString,c=o.hasOwnProperty,d=l.call(Object);function f(m){if(!n(m)||e(m)!=r)return!1;var g=t(m);if(g===null)return!0;var v=c.call(g,"constructor")&&g.constructor;return typeof v=="function"&&v instanceof v&&l.call(v)==d}return xw=f,xw}var fde=dde();const pde=ft(fde);var bw,AI;function hde(){if(AI)return bw;AI=1;var e=pi(),t=hi(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return bw=r,bw}var gde=hde();const mde=ft(gde);function Gd(e){"@babel/helpers - typeof";return Gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gd(e)}function vg(){return vg=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},vg.apply(this,arguments)}function vde(e,t){return wde(e)||bde(e,t)||xde(e,t)||yde()}function yde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xde(e,t){if(e){if(typeof e=="string")return OI(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 OI(e,t)}}function OI(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 bde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function wde(e){if(Array.isArray(e))return e}function CI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CI(Object(n),!0).forEach(function(r){Sde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sde(e,t,n){return t=Ade(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ade(e){var t=Ode(e,"string");return Gd(t)=="symbol"?t:t+""}function Ode(e,t){if(Gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EI=function(t,n,r,a,o){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+o),c+="L ".concat(t+r-l/2-a,",").concat(n+o),c+="L ".concat(t,",").concat(n," Z"),c},Cde={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},jde=function(t){var n=jI(jI({},Cde),t),r=E.useRef(),a=E.useState(-1),o=vde(a,2),l=o[0],c=o[1];E.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&c(T)}catch{}},[]);var d=n.x,f=n.y,m=n.upperWidth,g=n.lowerWidth,v=n.height,b=n.className,A=n.animationEasing,x=n.animationDuration,w=n.animationBegin,C=n.isUpdateAnimationActive;if(d!==+d||f!==+f||m!==+m||g!==+g||v!==+v||m===0&&g===0||v===0)return null;var j=Le("recharts-trapezoid",b);return C?$.createElement(Ca,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:v,x:d,y:f},to:{upperWidth:m,lowerWidth:g,height:v,x:d,y:f},duration:x,animationEasing:A,isActive:C},function(T){var M=T.upperWidth,O=T.lowerWidth,_=T.height,N=T.x,P=T.y;return $.createElement(Ca,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:x,easing:A},$.createElement("path",vg({},_e(n,!0),{className:j,d:EI(N,P,M,O,_),ref:r})))}):$.createElement("g",null,$.createElement("path",vg({},_e(n,!0),{className:j,d:EI(d,f,m,g,v)})))},Ede=["option","shapeType","propTransformer","activeClassName","isActive"];function Vd(e){"@babel/helpers - typeof";return Vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vd(e)}function _de(e,t){if(e==null)return{};var n=Tde(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tde(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 _I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_I(Object(n),!0).forEach(function(r){Nde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nde(e,t,n){return t=Rde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rde(e){var t=Mde(e,"string");return Vd(t)=="symbol"?t:t+""}function Mde(e,t){if(Vd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pde(e,t){return yg(yg({},t),e)}function Dde(e,t){return e==="symbols"}function TI(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return $.createElement(KC,n);case"trapezoid":return $.createElement(jde,n);case"sector":return $.createElement(q$,n);case"symbols":if(Dde(t))return $.createElement(cC,n);break;default:return null}}function kde(e){return E.isValidElement(e)?e.props:e}function Z$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Pde:r,o=e.activeClassName,l=o===void 0?"recharts-active-shape":o,c=e.isActive,d=_de(e,Ede),f;if(E.isValidElement(t))f=E.cloneElement(t,yg(yg({},d),kde(t)));else if(Re(t))f=t(d);else if(pde(t)&&!mde(t)){var m=a(t,d);f=$.createElement(TI,{shapeType:n,elementProps:m})}else{var g=d;f=$.createElement(TI,{shapeType:n,elementProps:g})}return c?$.createElement(et,{className:l},f):f}function $m(e,t){return t!=null&&"trapezoids"in e.props}function qm(e,t){return t!=null&&"sectors"in e.props}function Yd(e,t){return t!=null&&"points"in e.props}function Ide(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&o}function Lde(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Bde(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function $de(e,t){var n;return $m(e,t)?n=Ide:qm(e,t)?n=Lde:Yd(e,t)&&(n=Bde),n}function qde(e,t){var n;return $m(e,t)?n="trapezoids":qm(e,t)?n="sectors":Yd(e,t)&&(n="points"),n}function zde(e,t){if($m(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(qm(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 Yd(e,t)?t.payload:{}}function Ude(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=qde(n,t),o=zde(n,t),l=r.filter(function(d,f){var m=ac(o,d),g=n.props[a].filter(function(A){var x=$de(n,t);return x(A,t)}),v=n.props[a].indexOf(g[g.length-1]),b=f===v;return m&&b}),c=r.indexOf(l[l.length-1]);return c}var bh;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 Ll(){return Ll=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},Ll.apply(this,arguments)}function NI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NI(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RI(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,e6(r.key),r)}}function Kde(e,t,n){return t&&RI(e.prototype,t),n&&RI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hde(e,t,n){return t=xg(t),Gde(e,J$()?Reflect.construct(t,n||[],xg(e).constructor):t.apply(e,n))}function Gde(e,t){if(t&&(cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vde(e)}function Vde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J$=function(){return!!e})()}function xg(e){return xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xg(e)}function Yde(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&&PA(e,t)}function PA(e,t){return PA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},PA(e,t)}function Tr(e,t,n){return t=e6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e6(e){var t=Qde(e,"string");return cc(t)=="symbol"?t:t+""}function Qde(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 String(e)}var mi=(function(e){function t(n){var r;return Fde(this,t),r=Hde(this,t,[n]),Tr(r,"pieRef",null),Tr(r,"sectorRefs",[]),Tr(r,"id",Pc("recharts-pie-")),Tr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Re(a)&&a()}),Tr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Re(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Yde(t,e),Kde(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.label,c=o.labelLine,d=o.dataKey,f=o.valueKey,m=_e(this.props,!1),g=_e(l,!1),v=_e(c,!1),b=l&&l.offsetRadius||20,A=r.map(function(x,w){var C=(x.startAngle+x.endAngle)/2,j=Ot(x.cx,x.cy,x.outerRadius+b,C),T=St(St(St(St({},m),x),{},{stroke:"none"},g),{},{index:w,textAnchor:t.getTextAnchor(j.x,x.cx)},j),M=St(St(St(St({},m),x),{},{fill:"none",stroke:x.fill},v),{},{index:w,points:[Ot(x.cx,x.cy,x.outerRadius,C),j]}),O=d;return Be(d)&&Be(f)?O="value":Be(d)&&(O=f),$.createElement(et,{key:"label-".concat(x.startAngle,"-").concat(x.endAngle,"-").concat(x.midAngle,"-").concat(w)},c&&t.renderLabelLineItem(c,M,"line"),t.renderLabelItem(l,T,Zt(x,O)))});return $.createElement(et,{className:"recharts-pie-labels"},A)}},{key:"renderSectorsStatically",value:function(r){var a=this,o=this.props,l=o.activeShape,c=o.blendStroke,d=o.inactiveShape;return r.map(function(f,m){if(f?.startAngle===0&&f?.endAngle===0&&r.length!==1)return null;var g=a.isActiveIndex(m),v=d&&a.hasActiveIndex()?d:null,b=g?l:v,A=St(St({},f),{},{stroke:c?f.fill:f.stroke,tabIndex:-1});return $.createElement(et,Ll({ref:function(w){w&&!a.sectorRefs.includes(w)&&a.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},ms(a.props,f,m),{key:"sector-".concat(f?.startAngle,"-").concat(f?.endAngle,"-").concat(f.midAngle,"-").concat(m)}),$.createElement(Z$,Ll({option:b,isActive:g,shapeType:"sector"},A)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,o=a.sectors,l=a.isAnimationActive,c=a.animationBegin,d=a.animationDuration,f=a.animationEasing,m=a.animationId,g=this.state,v=g.prevSectors,b=g.prevIsAnimationActive;return $.createElement(Ca,{begin:c,duration:d,isActive:l,easing:f,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(b),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(A){var x=A.t,w=[],C=o&&o[0],j=C.startAngle;return o.forEach(function(T,M){var O=v&&v[M],_=M>0?pr(T,"paddingAngle",0):0;if(O){var N=Vn(O.endAngle-O.startAngle,T.endAngle-T.startAngle),P=St(St({},T),{},{startAngle:j+_,endAngle:j+N(x)+_});w.push(P),j=P.endAngle}else{var k=T.endAngle,z=T.startAngle,B=Vn(0,k-z),L=B(x),U=St(St({},T),{},{startAngle:j+_,endAngle:j+L+_});w.push(U),j=U.endAngle}}),$.createElement(et,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,o=r.isAnimationActive,l=this.state.prevSectors;return o&&a&&a.length&&(!l||!ac(l,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,o=a.hide,l=a.sectors,c=a.className,d=a.label,f=a.cx,m=a.cy,g=a.innerRadius,v=a.outerRadius,b=a.isAnimationActive,A=this.state.isAnimationFinished;if(o||!l||!l.length||!ge(f)||!ge(m)||!ge(g)||!ge(v))return null;var x=Le("recharts-pie",c);return $.createElement(et,{tabIndex:this.props.rootTabIndex,className:x,ref:function(C){r.pieRef=C}},this.renderSectors(),d&&this.renderLabels(l),sn.renderCallByParent(this.props,null,!1),(!b||A)&&oi.renderCallByParent(this.props,l,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,o){if($.isValidElement(r))return $.cloneElement(r,a);if(Re(r))return r(a);var l=Le("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return $.createElement(Hl,Ll({},a,{key:o,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,o){if($.isValidElement(r))return $.cloneElement(r,a);var l=o;if(Re(r)&&(l=r(a),$.isValidElement(l)))return l;var c=Le("recharts-pie-label-text",typeof r!="boolean"&&!Re(r)?r.className:"");return $.createElement(vs,Ll({},a,{alignmentBaseline:"middle",className:c}),l)}}])})(E.PureComponent);bh=mi;Tr(mi,"displayName","Pie");Tr(mi,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ns.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Tr(mi,"parseDeltaAngle",function(e,t){var n=Rn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Tr(mi,"getRealPieData",function(e){var t=e.data,n=e.children,r=_e(e,!1),a=Pr(n,Sm);return t&&t.length?t.map(function(o,l){return St(St(St({payload:o},r),o),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(o){return St(St({},r),o.props)}):[]});Tr(mi,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,o=t.height,l=I$(a,o),c=r+Mn(e.cx,a,a/2),d=n+Mn(e.cy,o,o/2),f=Mn(e.innerRadius,l,0),m=Mn(e.outerRadius,l,l*.8),g=e.maxRadius||Math.sqrt(a*a+o*o)/2;return{cx:c,cy:d,innerRadius:f,outerRadius:m,maxRadius:g}});Tr(mi,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?St(St({},t.type.defaultProps),t.props):t.props,a=bh.getRealPieData(r);if(!a||!a.length)return null;var o=r.cornerRadius,l=r.startAngle,c=r.endAngle,d=r.paddingAngle,f=r.dataKey,m=r.nameKey,g=r.valueKey,v=r.tooltipType,b=Math.abs(r.minAngle),A=bh.parseCoordinateOfPie(r,n),x=bh.parseDeltaAngle(l,c),w=Math.abs(x),C=f;Be(f)&&Be(g)?(Qr(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),C="value"):Be(f)&&(Qr(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),C=g);var j=a.filter(function(P){return Zt(P,C,0)!==0}).length,T=(w>=360?j:j-1)*d,M=w-j*b-T,O=a.reduce(function(P,k){var z=Zt(k,C,0);return P+(ge(z)?z:0)},0),_;if(O>0){var N;_=a.map(function(P,k){var z=Zt(P,C,0),B=Zt(P,m,k),L=(ge(z)?z:0)/O,U;k?U=N.endAngle+Rn(x)*d*(z!==0?1:0):U=l;var H=U+Rn(x)*((z!==0?b:0)+L*M),Q=(U+H)/2,D=(A.innerRadius+A.outerRadius)/2,K=[{name:B,value:z,payload:P,dataKey:C,type:v}],F=Ot(A.cx,A.cy,D,Q);return N=St(St(St({percent:L,cornerRadius:o,name:B,tooltipPayload:K,midAngle:Q,middleRadius:D,tooltipPosition:F},P),A),{},{value:Zt(P,C),startAngle:U,endAngle:H,payload:P,paddingAngle:Rn(x)*d}),N})}return St(St({},A),{},{sectors:_,data:a})});var ww,MI;function Xde(){if(MI)return ww;MI=1;var e=Math.ceil,t=Math.max;function n(r,a,o,l){for(var c=-1,d=t(e((a-r)/(o||1)),0),f=Array(d);d--;)f[l?d:++c]=r,r+=o;return f}return ww=n,ww}var Sw,PI;function t6(){if(PI)return Sw;PI=1;var e=A8(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var o=a<0?-1:1;return o*n}return a===a?a:0}return Sw=r,Sw}var Aw,DI;function Wde(){if(DI)return Aw;DI=1;var e=Xde(),t=wm(),n=t6();function r(a){return function(o,l,c){return c&&typeof c!="number"&&t(o,l,c)&&(l=c=void 0),o=n(o),l===void 0?(l=o,o=0):l=n(l),c=c===void 0?o<l?1:-1:n(c),e(o,l,c,a)}}return Aw=r,Aw}var Ow,kI;function Zde(){if(kI)return Ow;kI=1;var e=Wde(),t=e();return Ow=t,Ow}var Jde=Zde();const bg=ft(Jde);function Qd(e){"@babel/helpers - typeof";return Qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qd(e)}function II(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?II(Object(n),!0).forEach(function(r){n6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):II(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n6(e,t,n){return t=efe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function efe(e){var t=tfe(e,"string");return Qd(t)=="symbol"?t:t+""}function tfe(e,t){if(Qd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nfe=["Webkit","Moz","O","ms"],rfe=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=nfe.reduce(function(o,l){return LI(LI({},o),{},n6({},l+r,n))},{});return a[t]=n,a};function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}function wg(){return wg=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},wg.apply(this,arguments)}function BI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BI(Object(n),!0).forEach(function(r){ir(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $I(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,a6(r.key),r)}}function ife(e,t,n){return t&&$I(e.prototype,t),n&&$I(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ofe(e,t,n){return t=Sg(t),sfe(e,r6()?Reflect.construct(t,n||[],Sg(e).constructor):t.apply(e,n))}function sfe(e,t){if(t&&(uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lfe(e)}function lfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r6=function(){return!!e})()}function Sg(e){return Sg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sg(e)}function cfe(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&&DA(e,t)}function DA(e,t){return DA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},DA(e,t)}function ir(e,t,n){return t=a6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a6(e){var t=ufe(e,"string");return uc(t)=="symbol"?t:t+""}function ufe(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dfe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,o=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var d=n.length,f=nd().domain(bg(0,d)).range([o,o+l-c]),m=f.domain().map(function(g){return f(g)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:f(r),endX:f(a),scale:f,scaleValues:m}},qI=function(t){return t.changedTouches&&!!t.changedTouches.length},dc=(function(e){function t(n){var r;return afe(this,t),r=ofe(this,t,[n]),ir(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),ir(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),ir(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,o=a.endIndex,l=a.onDragEnd,c=a.startIndex;l?.({endIndex:o,startIndex:c})}),r.detachDragEndListener()}),ir(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),ir(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),ir(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),ir(r,"handleSlideDragStart",function(a){var o=qI(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return cfe(t,e),ife(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,o=r.endX,l=this.state.scaleValues,c=this.props,d=c.gap,f=c.data,m=f.length-1,g=Math.min(a,o),v=Math.max(a,o),b=t.getIndexInRange(l,g),A=t.getIndexInRange(l,v);return{startIndex:b-b%d,endIndex:A===m?m:A-A%d}}},{key:"getTextOfTick",value:function(r){var a=this.props,o=a.data,l=a.tickFormatter,c=a.dataKey,d=Zt(o[r],c,r);return Re(l)?l(d,r):d}},{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 a=this.state,o=a.slideMoveStartX,l=a.startX,c=a.endX,d=this.props,f=d.x,m=d.width,g=d.travellerWidth,v=d.startIndex,b=d.endIndex,A=d.onChange,x=r.pageX-o;x>0?x=Math.min(x,f+m-g-c,f+m-g-l):x<0&&(x=Math.max(x,f-l,f-c));var w=this.getIndex({startX:l+x,endX:c+x});(w.startIndex!==v||w.endIndex!==b)&&A&&A(w),this.setState({startX:l+x,endX:c+x,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var o=qI(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,o=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,d=a.startX,f=this.state[l],m=this.props,g=m.x,v=m.width,b=m.travellerWidth,A=m.onChange,x=m.gap,w=m.data,C={startX:this.state.startX,endX:this.state.endX},j=r.pageX-o;j>0?j=Math.min(j,g+v-b-f):j<0&&(j=Math.max(j,g-f)),C[l]=f+j;var T=this.getIndex(C),M=T.startIndex,O=T.endIndex,_=function(){var P=w.length-1;return l==="startX"&&(c>d?M%x===0:O%x===0)||c<d&&O===P||l==="endX"&&(c>d?O%x===0:M%x===0)||c>d&&O===P};this.setState(ir(ir({},l,f+j),"brushMoveStartX",r.pageX),function(){A&&_()&&A(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var o=this,l=this.state,c=l.scaleValues,d=l.startX,f=l.endX,m=this.state[a],g=c.indexOf(m);if(g!==-1){var v=g+r;if(!(v===-1||v>=c.length)){var b=c[v];a==="startX"&&b>=f||a==="endX"&&b<=d||this.setState(ir({},a,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,d=r.fill,f=r.stroke;return $.createElement("rect",{stroke:f,fill:d,x:a,y:o,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,d=r.data,f=r.children,m=r.padding,g=E.Children.only(f);return g?$.cloneElement(g,{x:a,y:o,width:l,height:c,margin:m,compact:!0,data:d}):null}},{key:"renderTravellerLayer",value:function(r,a){var o,l,c=this,d=this.props,f=d.y,m=d.travellerWidth,g=d.height,v=d.traveller,b=d.ariaLabel,A=d.data,x=d.startIndex,w=d.endIndex,C=Math.max(r,this.props.x),j=Cw(Cw({},_e(this.props,!1)),{},{x:C,y:f,width:m,height:g}),T=b||"Min value: ".concat((o=A[x])===null||o===void 0?void 0:o.name,", Max value: ").concat((l=A[w])===null||l===void 0?void 0:l.name);return $.createElement(et,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),c.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,j))}},{key:"renderSlide",value:function(r,a){var o=this.props,l=o.y,c=o.height,d=o.stroke,f=o.travellerWidth,m=Math.min(r,a)+f,g=Math.max(Math.abs(a-r)-f,0);return $.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:d,fillOpacity:.2,x:m,y:l,width:g,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,o=r.endIndex,l=r.y,c=r.height,d=r.travellerWidth,f=r.stroke,m=this.state,g=m.startX,v=m.endX,b=5,A={pointerEvents:"none",fill:f};return $.createElement(et,{className:"recharts-brush-texts"},$.createElement(vs,wg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,v)-b,y:l+c/2},A),this.getTextOfTick(a)),$.createElement(vs,wg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,v)+d+b,y:l+c/2},A),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,a=r.data,o=r.className,l=r.children,c=r.x,d=r.y,f=r.width,m=r.height,g=r.alwaysShowText,v=this.state,b=v.startX,A=v.endX,x=v.isTextActive,w=v.isSlideMoving,C=v.isTravellerMoving,j=v.isTravellerFocused;if(!a||!a.length||!ge(c)||!ge(d)||!ge(f)||!ge(m)||f<=0||m<=0)return null;var T=Le("recharts-brush",o),M=$.Children.count(l)===1,O=rfe("userSelect","none");return $.createElement(et,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(b,A),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(A,"endX"),(x||w||C||j||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,o=r.y,l=r.width,c=r.height,d=r.stroke,f=Math.floor(o+c/2)-1;return $.createElement($.Fragment,null,$.createElement("rect",{x:a,y:o,width:l,height:c,fill:d,stroke:"none"}),$.createElement("line",{x1:a+1,y1:f,x2:a+l-1,y2:f,fill:"none",stroke:"#fff"}),$.createElement("line",{x1:a+1,y1:f+2,x2:a+l-1,y2:f+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var o;return $.isValidElement(r)?o=$.cloneElement(r,a):Re(r)?o=r(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(r,a){var o=r.data,l=r.width,c=r.x,d=r.travellerWidth,f=r.updateId,m=r.startIndex,g=r.endIndex;if(o!==a.prevData||f!==a.prevUpdateId)return Cw({prevData:o,prevTravellerWidth:d,prevUpdateId:f,prevX:c,prevWidth:l},o&&o.length?dfe({data:o,width:l,x:c,travellerWidth:d,startIndex:m,endIndex:g}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||d!==a.prevTravellerWidth)){a.scale.range([c,c+l-d]);var v=a.scale.domain().map(function(b){return a.scale(b)});return{prevData:o,prevTravellerWidth:d,prevUpdateId:f,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,a){for(var o=r.length,l=0,c=o-1;c-l>1;){var d=Math.floor((l+c)/2);r[d]>a?c=d:l=d}return a>=r[c]?c:l}}])})(E.PureComponent);ir(dc,"displayName","Brush");ir(dc,"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 jw,zI;function ffe(){if(zI)return jw;zI=1;var e=mC();function t(n,r){var a;return e(n,function(o,l,c){return a=r(o,l,c),!a}),!!a}return jw=t,jw}var Ew,UI;function pfe(){if(UI)return Ew;UI=1;var e=e8(),t=Ra(),n=ffe(),r=Qn(),a=wm();function o(l,c,d){var f=r(l)?e:n;return d&&a(l,c,d)&&(c=void 0),f(l,t(c,3))}return Ew=o,Ew}var hfe=pfe();const gfe=ft(hfe);var ba=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},_w,FI;function mfe(){if(FI)return _w;FI=1;var e=y8();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return _w=t,_w}var Tw,KI;function vfe(){if(KI)return Tw;KI=1;var e=mfe(),t=m8(),n=Ra();function r(a,o){var l={};return o=n(o,3),t(a,function(c,d,f){e(l,d,o(c,d,f))}),l}return Tw=r,Tw}var yfe=vfe();const xfe=ft(yfe);var Nw,HI;function bfe(){if(HI)return Nw;HI=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return Nw=e,Nw}var Rw,GI;function wfe(){if(GI)return Rw;GI=1;var e=mC();function t(n,r){var a=!0;return e(n,function(o,l,c){return a=!!r(o,l,c),a}),a}return Rw=t,Rw}var Mw,VI;function Sfe(){if(VI)return Mw;VI=1;var e=bfe(),t=wfe(),n=Ra(),r=Qn(),a=wm();function o(l,c,d){var f=r(l)?e:t;return d&&a(l,c,d)&&(c=void 0),f(l,n(c,3))}return Mw=o,Mw}var Afe=Sfe();const i6=ft(Afe);var Ofe=["x","y"];function Xd(e){"@babel/helpers - typeof";return Xd=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},Xd(e)}function kA(){return kA=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},kA.apply(this,arguments)}function YI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YI(Object(n),!0).forEach(function(r){Cfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cfe(e,t,n){return t=jfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jfe(e){var t=Efe(e,"string");return Xd(t)=="symbol"?t:t+""}function Efe(e,t){if(Xd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xd(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=Tfe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tfe(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 Nfe(e,t){var n=e.x,r=e.y,a=_fe(e,Ofe),o="".concat(n),l=parseInt(o,10),c="".concat(r),d=parseInt(c,10),f="".concat(t.height||a.height),m=parseInt(f,10),g="".concat(t.width||a.width),v=parseInt(g,10);return Ku(Ku(Ku(Ku(Ku({},t),a),l?{x:l}:{}),d?{y:d}:{}),{},{height:m,width:v,name:t.name,radius:t.radius})}function QI(e){return $.createElement(Z$,kA({shapeType:"rectangle",propTransformer:Nfe,activeClassName:"recharts-active-bar"},e))}var Rfe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var o=ge(r)||eJ(r);return o?t(r,a):(o||xs(),n)}},Mfe=["value","background"],o6;function fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}function Pfe(e,t){if(e==null)return{};var n=Dfe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dfe(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 Ag(){return Ag=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},Ag.apply(this,arguments)}function XI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XI(Object(n),!0).forEach(function(r){Zi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WI(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,l6(r.key),r)}}function Ife(e,t,n){return t&&WI(e.prototype,t),n&&WI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lfe(e,t,n){return t=Og(t),Bfe(e,s6()?Reflect.construct(t,n||[],Og(e).constructor):t.apply(e,n))}function Bfe(e,t){if(t&&(fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $fe(e)}function $fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s6=function(){return!!e})()}function Og(e){return Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Og(e)}function qfe(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&&IA(e,t)}function IA(e,t){return IA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},IA(e,t)}function Zi(e,t,n){return t=l6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l6(e){var t=zfe(e,"string");return fc(t)=="symbol"?t:t+""}function zfe(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wf=(function(e){function t(){var n;kfe(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Lfe(this,t,[].concat(a)),Zi(n,"state",{isAnimationFinished:!1}),Zi(n,"id",Pc("recharts-bar-")),Zi(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),Zi(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return qfe(t,e),Ife(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,o=this.props,l=o.shape,c=o.dataKey,d=o.activeIndex,f=o.activeBar,m=_e(this.props,!1);return r&&r.map(function(g,v){var b=v===d,A=b?f:l,x=Ht(Ht(Ht({},m),g),{},{isActive:b,option:A,index:v,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return $.createElement(et,Ag({className:"recharts-bar-rectangle"},ms(a.props,g,v),{key:"rectangle-".concat(g?.x,"-").concat(g?.y,"-").concat(g?.value,"-").concat(v)}),$.createElement(QI,x))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,o=a.data,l=a.layout,c=a.isAnimationActive,d=a.animationBegin,f=a.animationDuration,m=a.animationEasing,g=a.animationId,v=this.state.prevData;return $.createElement(Ca,{begin:d,duration:f,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(g),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var A=b.t,x=o.map(function(w,C){var j=v&&v[C];if(j){var T=Vn(j.x,w.x),M=Vn(j.y,w.y),O=Vn(j.width,w.width),_=Vn(j.height,w.height);return Ht(Ht({},w),{},{x:T(A),y:M(A),width:O(A),height:_(A)})}if(l==="horizontal"){var N=Vn(0,w.height),P=N(A);return Ht(Ht({},w),{},{y:w.y+w.height-P,height:P})}var k=Vn(0,w.width),z=k(A);return Ht(Ht({},w),{},{width:z})});return $.createElement(et,null,r.renderRectanglesStatically(x))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,o=r.isAnimationActive,l=this.state.prevData;return o&&a&&a.length&&(!l||!ac(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,o=a.data,l=a.dataKey,c=a.activeIndex,d=_e(this.props.background,!1);return o.map(function(f,m){f.value;var g=f.background,v=Pfe(f,Mfe);if(!g)return null;var b=Ht(Ht(Ht(Ht(Ht({},v),{},{fill:"#eee"},g),d),ms(r.props,f,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return $.createElement(QI,Ag({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},b))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.data,c=o.xAxis,d=o.yAxis,f=o.layout,m=o.children,g=Pr(m,Pm);if(!g)return null;var v=f==="vertical"?l[0].height/2:l[0].width/2,b=function(w,C){var j=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:j,errorVal:Zt(w,C)}},A={clipPath:r?"url(#clipPath-".concat(a,")"):null};return $.createElement(et,A,g.map(function(x){return $.cloneElement(x,{key:"error-bar-".concat(a,"-").concat(x.props.dataKey),data:l,xAxis:c,yAxis:d,layout:f,offset:v,dataPointFormatter:b})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,o=r.data,l=r.className,c=r.xAxis,d=r.yAxis,f=r.left,m=r.top,g=r.width,v=r.height,b=r.isAnimationActive,A=r.background,x=r.id;if(a||!o||!o.length)return null;var w=this.state.isAnimationFinished,C=Le("recharts-bar",l),j=c&&c.allowDataOverflow,T=d&&d.allowDataOverflow,M=j||T,O=Be(x)?this.id:x;return $.createElement(et,{className:C},j||T?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(O)},$.createElement("rect",{x:j?f:f-g/2,y:T?m:m-v/2,width:j?g:g*2,height:T?v:v*2}))):null,$.createElement(et,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(O,")"):null},A?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,O),(!b||w)&&oi.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])})(E.PureComponent);o6=wf;Zi(wf,"displayName","Bar");Zi(wf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ns.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Zi(wf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,o=e.xAxis,l=e.yAxis,c=e.xAxisTicks,d=e.yAxisTicks,f=e.stackedData,m=e.dataStartIndex,g=e.displayedData,v=e.offset,b=gse(r,n);if(!b)return null;var A=t.layout,x=n.type.defaultProps,w=x!==void 0?Ht(Ht({},x),n.props):n.props,C=w.dataKey,j=w.children,T=w.minPointSize,M=A==="horizontal"?l:o,O=f?M.scale.domain():null,_=Sse({numericAxis:M}),N=Pr(j,Sm),P=g.map(function(k,z){var B,L,U,H,Q,D;f?B=mse(f[m+z],O):(B=Zt(k,C),Array.isArray(B)||(B=[_,B]));var K=Rfe(T,o6.defaultProps.minPointSize)(B[1],z);if(A==="horizontal"){var F,X=[l.scale(B[0]),l.scale(B[1])],oe=X[0],q=X[1];L=Sk({axis:o,ticks:c,bandSize:a,offset:b.offset,entry:k,index:z}),U=(F=q??oe)!==null&&F!==void 0?F:void 0,H=b.size;var V=oe-q;if(Q=Number.isNaN(V)?0:V,D={x:L,y:l.y,width:H,height:l.height},Math.abs(K)>0&&Math.abs(Q)<Math.abs(K)){var Y=Rn(Q||K)*(Math.abs(K)-Math.abs(Q));U-=Y,Q+=Y}}else{var ee=[o.scale(B[0]),o.scale(B[1])],ue=ee[0],me=ee[1];if(L=ue,U=Sk({axis:l,ticks:d,bandSize:a,offset:b.offset,entry:k,index:z}),H=me-ue,Q=b.size,D={x:o.x,y:U,width:o.width,height:Q},Math.abs(K)>0&&Math.abs(H)<Math.abs(K)){var se=Rn(H||K)*(Math.abs(K)-Math.abs(H));H+=se}}return Ht(Ht(Ht({},k),{},{x:L,y:U,width:H,height:Q,value:f?B:B[1],payload:k,background:D},N&&N[z]&&N[z].props),{},{tooltipPayload:[D$(n,k)],tooltipPosition:{x:L+H/2,y:U+Q/2}})});return Ht({data:P,layout:A},v)});function Wd(e){"@babel/helpers - typeof";return Wd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wd(e)}function Ufe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZI(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,c6(r.key),r)}}function Ffe(e,t,n){return t&&ZI(e.prototype,t),n&&ZI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JI(Object(n),!0).forEach(function(r){zm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zm(e,t,n){return t=c6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c6(e){var t=Kfe(e,"string");return Wd(t)=="symbol"?t:t+""}function Kfe(e,t){if(Wd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hfe=function(t,n,r,a,o){var l=t.width,c=t.height,d=t.layout,f=t.children,m=Object.keys(n),g={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},v=!!or(f,wf);return m.reduce(function(b,A){var x=n[A],w=x.orientation,C=x.domain,j=x.padding,T=j===void 0?{}:j,M=x.mirror,O=x.reversed,_="".concat(w).concat(M?"Mirror":""),N,P,k,z,B;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var L=C[1]-C[0],U=1/0,H=x.categoricalDomain.sort(rJ);if(H.forEach(function(ee,ue){ue>0&&(U=Math.min((ee||0)-(H[ue-1]||0),U))}),Number.isFinite(U)){var Q=U/L,D=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(N=Q*D/2),x.padding==="no-gap"){var K=Mn(t.barCategoryGap,Q*D),F=Q*D/2;N=F-K-(F-K)/D*K}}}a==="xAxis"?P=[r.left+(T.left||0)+(N||0),r.left+r.width-(T.right||0)-(N||0)]:a==="yAxis"?P=d==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(N||0),r.top+r.height-(T.bottom||0)-(N||0)]:P=x.range,O&&(P=[P[1],P[0]]);var X=N$(x,o,v),oe=X.scale,q=X.realScaleType;oe.domain(C).range(P),R$(oe);var V=M$(oe,Vr(Vr({},x),{},{realScaleType:q}));a==="xAxis"?(B=w==="top"&&!M||w==="bottom"&&M,k=r.left,z=g[_]-B*x.height):a==="yAxis"&&(B=w==="left"&&!M||w==="right"&&M,k=g[_]-B*x.width,z=r.top);var Y=Vr(Vr(Vr({},x),V),{},{realScaleType:q,x:k,y:z,scale:oe,width:a==="xAxis"?r.width:x.width,height:a==="yAxis"?r.height:x.height});return Y.bandSize=lg(Y,V),!x.hide&&a==="xAxis"?g[_]+=(B?-1:1)*Y.height:x.hide||(g[_]+=(B?-1:1)*Y.width),Vr(Vr({},b),{},zm({},A,Y))},{})},u6=function(t,n){var r=t.x,a=t.y,o=n.x,l=n.y;return{x:Math.min(r,o),y:Math.min(a,l),width:Math.abs(o-r),height:Math.abs(l-a)}},Gfe=function(t){var n=t.x1,r=t.y1,a=t.x2,o=t.y2;return u6({x:n,y:r},{x:a,y:o})},d6=(function(){function e(t){Ufe(this,e),this.scale=t}return Ffe(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]:{},a=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){var d=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+d}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],o=r[r.length-1];return a<=o?n>=a&&n<=o:n>=o&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();zm(d6,"EPS",1e-4);var HC=function(t){var n=Object.keys(t).reduce(function(r,a){return Vr(Vr({},r),{},zm({},a,d6.create(t[a])))},{});return Vr(Vr({},n),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.bandAware,c=o.position;return xfe(a,function(d,f){return n[f].apply(d,{bandAware:l,position:c})})},isInRange:function(a){return i6(a,function(o,l){return n[l].isInRange(o)})}})};function Vfe(e){return(e%180+180)%180}var Yfe=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=Vfe(a),l=o*Math.PI/180,c=Math.atan(r/n),d=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(d)},Pw,eL;function Qfe(){if(eL)return Pw;eL=1;var e=Ra(),t=mf(),n=xm();function r(a){return function(o,l,c){var d=Object(o);if(!t(o)){var f=e(l,3);o=n(o),l=function(g){return f(d[g],g,d)}}var m=a(o,l,c);return m>-1?d[f?o[m]:m]:void 0}}return Pw=r,Pw}var Dw,tL;function Xfe(){if(tL)return Dw;tL=1;var e=t6();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return Dw=t,Dw}var kw,nL;function Wfe(){if(nL)return kw;nL=1;var e=d8(),t=Ra(),n=Xfe(),r=Math.max;function a(o,l,c){var d=o==null?0:o.length;if(!d)return-1;var f=c==null?0:n(c);return f<0&&(f=r(d+f,0)),e(o,t(l,3),f)}return kw=a,kw}var Iw,rL;function Zfe(){if(rL)return Iw;rL=1;var e=Qfe(),t=Wfe(),n=e(t);return Iw=n,Iw}var Jfe=Zfe();const epe=ft(Jfe);var tpe=EB();const npe=ft(tpe);var rpe=npe(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("")}),GC=E.createContext(void 0),VC=E.createContext(void 0),f6=E.createContext(void 0),p6=E.createContext({}),h6=E.createContext(void 0),g6=E.createContext(0),m6=E.createContext(0),aL=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,o=n.offset,l=t.clipPathId,c=t.children,d=t.width,f=t.height,m=rpe(o);return $.createElement(GC.Provider,{value:r},$.createElement(VC.Provider,{value:a},$.createElement(p6.Provider,{value:o},$.createElement(f6.Provider,{value:m},$.createElement(h6.Provider,{value:l},$.createElement(g6.Provider,{value:f},$.createElement(m6.Provider,{value:d},c)))))))},ape=function(){return E.useContext(h6)},v6=function(t){var n=E.useContext(GC);n==null&&xs();var r=n[t];return r==null&&xs(),r},ipe=function(){var t=E.useContext(GC);return Qi(t)},ope=function(){var t=E.useContext(VC),n=epe(t,function(r){return i6(r.domain,Number.isFinite)});return n||Qi(t)},y6=function(t){var n=E.useContext(VC);n==null&&xs();var r=n[t];return r==null&&xs(),r},spe=function(){var t=E.useContext(f6);return t},lpe=function(){return E.useContext(p6)},YC=function(){return E.useContext(m6)},QC=function(){return E.useContext(g6)};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 cpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function upe(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,b6(r.key),r)}}function dpe(e,t,n){return t&&upe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fpe(e,t,n){return t=Cg(t),ppe(e,x6()?Reflect.construct(t,n||[],Cg(e).constructor):t.apply(e,n))}function ppe(e,t){if(t&&(pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hpe(e)}function hpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x6=function(){return!!e})()}function Cg(e){return Cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cg(e)}function gpe(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&&LA(e,t)}function LA(e,t){return LA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},LA(e,t)}function iL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iL(Object(n),!0).forEach(function(r){XC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XC(e,t,n){return t=b6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b6(e){var t=mpe(e,"string");return pc(t)=="symbol"?t:t+""}function mpe(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 String(e)}function vpe(e,t){return wpe(e)||bpe(e,t)||xpe(e,t)||ype()}function ype(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xpe(e,t){if(e){if(typeof e=="string")return sL(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 sL(e,t)}}function sL(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 bpe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function wpe(e){if(Array.isArray(e))return e}function BA(){return BA=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},BA.apply(this,arguments)}var Spe=function(t,n){var r;return $.isValidElement(t)?r=$.cloneElement(t,n):Re(t)?r=t(n):r=$.createElement("line",BA({},n,{className:"recharts-reference-line-line"})),r},Ape=function(t,n,r,a,o,l,c,d,f){var m=o.x,g=o.y,v=o.width,b=o.height;if(r){var A=f.y,x=t.y.apply(A,{position:l});if(ba(f,"discard")&&!t.y.isInRange(x))return null;var w=[{x:m+v,y:x},{x:m,y:x}];return d==="left"?w.reverse():w}if(n){var C=f.x,j=t.x.apply(C,{position:l});if(ba(f,"discard")&&!t.x.isInRange(j))return null;var T=[{x:j,y:g+b},{x:j,y:g}];return c==="top"?T.reverse():T}if(a){var M=f.segment,O=M.map(function(_){return t.apply(_,{position:l})});return ba(f,"discard")&&gfe(O,function(_){return!t.isInRange(_)})?null:O}return null};function Ope(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,o=e.yAxisId,l=e.shape,c=e.className,d=e.alwaysShow,f=ape(),m=v6(a),g=y6(o),v=spe();if(!f||!v)return null;Qr(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=HC({x:m.scale,y:g.scale}),A=Jt(t),x=Jt(n),w=r&&r.length===2,C=Ape(b,A,x,w,v,e.position,m.orientation,g.orientation,e);if(!C)return null;var j=vpe(C,2),T=j[0],M=T.x,O=T.y,_=j[1],N=_.x,P=_.y,k=ba(e,"hidden")?"url(#".concat(f,")"):void 0,z=oL(oL({clipPath:k},_e(e,!0)),{},{x1:M,y1:O,x2:N,y2:P});return $.createElement(et,{className:Le("recharts-reference-line",c)},Spe(l,z),sn.renderCallByParent(e,Gfe({x1:M,y1:O,x2:N,y2:P})))}var WC=(function(e){function t(){return cpe(this,t),fpe(this,t,arguments)}return gpe(t,e),dpe(t,[{key:"render",value:function(){return $.createElement(Ope,this.props)}}])})($.Component);XC(WC,"displayName","ReferenceLine");XC(WC,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function $A(){return $A=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},$A.apply(this,arguments)}function hc(e){"@babel/helpers - typeof";return hc=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},hc(e)}function lL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(n),!0).forEach(function(r){Um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jpe(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,S6(r.key),r)}}function Epe(e,t,n){return t&&jpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _pe(e,t,n){return t=jg(t),Tpe(e,w6()?Reflect.construct(t,n||[],jg(e).constructor):t.apply(e,n))}function Tpe(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Npe(e)}function Npe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w6=function(){return!!e})()}function jg(e){return jg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jg(e)}function Rpe(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&&qA(e,t)}function qA(e,t){return qA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},qA(e,t)}function Um(e,t,n){return t=S6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S6(e){var t=Mpe(e,"string");return hc(t)=="symbol"?t:t+""}function Mpe(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ppe=function(t){var n=t.x,r=t.y,a=t.xAxis,o=t.yAxis,l=HC({x:a.scale,y:o.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return ba(t,"discard")&&!l.isInRange(c)?null:c},Fm=(function(e){function t(){return Cpe(this,t),_pe(this,t,arguments)}return Rpe(t,e),Epe(t,[{key:"render",value:function(){var r=this.props,a=r.x,o=r.y,l=r.r,c=r.alwaysShow,d=r.clipPathId,f=Jt(a),m=Jt(o);if(Qr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!f||!m)return null;var g=Ppe(this.props);if(!g)return null;var v=g.x,b=g.y,A=this.props,x=A.shape,w=A.className,C=ba(this.props,"hidden")?"url(#".concat(d,")"):void 0,j=cL(cL({clipPath:C},_e(this.props,!0)),{},{cx:v,cy:b});return $.createElement(et,{className:Le("recharts-reference-dot",w)},t.renderDot(x,j),sn.renderCallByParent(this.props,{x:v-l,y:b-l,width:2*l,height:2*l}))}}])})($.Component);Um(Fm,"displayName","ReferenceDot");Um(Fm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Um(Fm,"renderDot",function(e,t){var n;return $.isValidElement(e)?n=$.cloneElement(e,t):Re(e)?n=e(t):n=$.createElement(Dm,$A({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function zA(){return zA=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},zA.apply(this,arguments)}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)}function uL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function dL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uL(Object(n),!0).forEach(function(r){Km(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kpe(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,O6(r.key),r)}}function Ipe(e,t,n){return t&&kpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lpe(e,t,n){return t=Eg(t),Bpe(e,A6()?Reflect.construct(t,n||[],Eg(e).constructor):t.apply(e,n))}function Bpe(e,t){if(t&&(gc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $pe(e)}function $pe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A6=function(){return!!e})()}function Eg(e){return Eg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eg(e)}function qpe(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&&UA(e,t)}function UA(e,t){return UA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},UA(e,t)}function Km(e,t,n){return t=O6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O6(e){var t=zpe(e,"string");return gc(t)=="symbol"?t:t+""}function zpe(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 String(e)}var Upe=function(t,n,r,a,o){var l=o.x1,c=o.x2,d=o.y1,f=o.y2,m=o.xAxis,g=o.yAxis;if(!m||!g)return null;var v=HC({x:m.scale,y:g.scale}),b={x:t?v.x.apply(l,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(d,{position:"start"}):v.y.rangeMin},A={x:n?v.x.apply(c,{position:"end"}):v.x.rangeMax,y:a?v.y.apply(f,{position:"end"}):v.y.rangeMax};return ba(o,"discard")&&(!v.isInRange(b)||!v.isInRange(A))?null:u6(b,A)},Hm=(function(e){function t(){return Dpe(this,t),Lpe(this,t,arguments)}return qpe(t,e),Ipe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,o=r.x2,l=r.y1,c=r.y2,d=r.className,f=r.alwaysShow,m=r.clipPathId;Qr(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var g=Jt(a),v=Jt(o),b=Jt(l),A=Jt(c),x=this.props.shape;if(!g&&!v&&!b&&!A&&!x)return null;var w=Upe(g,v,b,A,this.props);if(!w&&!x)return null;var C=ba(this.props,"hidden")?"url(#".concat(m,")"):void 0;return $.createElement(et,{className:Le("recharts-reference-area",d)},t.renderRect(x,dL(dL({clipPath:C},_e(this.props,!0)),w)),sn.renderCallByParent(this.props,w))}}])})($.Component);Km(Hm,"displayName","ReferenceArea");Km(Hm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Km(Hm,"renderRect",function(e,t){var n;return $.isValidElement(e)?n=$.cloneElement(e,t):Re(e)?n=e(t):n=$.createElement(KC,zA({},t,{className:"recharts-reference-area-rect"})),n});function C6(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function Fpe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Yfe(r,n)}function Kpe(e,t,n){var r=n==="width",a=e.x,o=e.y,l=e.width,c=e.height;return t===1?{start:r?a:o,end:r?a+l:o+c}:{start:r?a+l:o+c,end:r?a:o}}function _g(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-a)<=0}function Hpe(e,t){return C6(e,t+1)}function Gpe(e,t,n,r,a){for(var o=(r||[]).slice(),l=t.start,c=t.end,d=0,f=1,m=l,g=function(){var A=r?.[d];if(A===void 0)return{v:C6(r,f)};var x=d,w,C=function(){return w===void 0&&(w=n(A,x)),w},j=A.coordinate,T=d===0||_g(e,j,C,m,c);T||(d=0,m=l,f+=1),T&&(m=j+e*(C()/2+a),d+=f)},v;f<=o.length;)if(v=g(),v)return v.v;return[]}function Zd(e){"@babel/helpers - typeof";return Zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zd(e)}function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fL(Object(n),!0).forEach(function(r){Vpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vpe(e,t,n){return t=Ype(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ype(e){var t=Qpe(e,"string");return Zd(t)=="symbol"?t:t+""}function Qpe(e,t){if(Zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xpe(e,t,n,r,a){for(var o=(r||[]).slice(),l=o.length,c=t.start,d=t.end,f=function(v){var b=o[v],A,x=function(){return A===void 0&&(A=n(b,v)),A};if(v===l-1){var w=e*(b.coordinate+e*x()/2-d);o[v]=b=yn(yn({},b),{},{tickCoord:w>0?b.coordinate-w*e:b.coordinate})}else o[v]=b=yn(yn({},b),{},{tickCoord:b.coordinate});var C=_g(e,b.tickCoord,x,c,d);C&&(d=b.tickCoord-e*(x()/2+a),o[v]=yn(yn({},b),{},{isShow:!0}))},m=l-1;m>=0;m--)f(m);return o}function Wpe(e,t,n,r,a,o){var l=(r||[]).slice(),c=l.length,d=t.start,f=t.end;if(o){var m=r[c-1],g=n(m,c-1),v=e*(m.coordinate+e*g/2-f);l[c-1]=m=yn(yn({},m),{},{tickCoord:v>0?m.coordinate-v*e:m.coordinate});var b=_g(e,m.tickCoord,function(){return g},d,f);b&&(f=m.tickCoord-e*(g/2+a),l[c-1]=yn(yn({},m),{},{isShow:!0}))}for(var A=o?c-1:c,x=function(j){var T=l[j],M,O=function(){return M===void 0&&(M=n(T,j)),M};if(j===0){var _=e*(T.coordinate-e*O()/2-d);l[j]=T=yn(yn({},T),{},{tickCoord:_<0?T.coordinate-_*e:T.coordinate})}else l[j]=T=yn(yn({},T),{},{tickCoord:T.coordinate});var N=_g(e,T.tickCoord,O,d,f);N&&(d=T.tickCoord+e*(O()/2+a),l[j]=yn(yn({},T),{},{isShow:!0}))},w=0;w<A;w++)x(w);return l}function ZC(e,t,n){var r=e.tick,a=e.ticks,o=e.viewBox,l=e.minTickGap,c=e.orientation,d=e.interval,f=e.tickFormatter,m=e.unit,g=e.angle;if(!a||!a.length||!r)return[];if(ge(d)||Ns.isSsr)return Hpe(a,typeof d=="number"&&ge(d)?d:0);var v=[],b=c==="top"||c==="bottom"?"width":"height",A=m&&b==="width"?td(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},x=function(T,M){var O=Re(f)?f(T.value,M):T.value;return b==="width"?Fpe(td(O,{fontSize:t,letterSpacing:n}),A,g):td(O,{fontSize:t,letterSpacing:n})[b]},w=a.length>=2?Rn(a[1].coordinate-a[0].coordinate):1,C=Kpe(o,w,b);return d==="equidistantPreserveStart"?Gpe(w,C,x,a,l):(d==="preserveStart"||d==="preserveStartEnd"?v=Wpe(w,C,x,a,l,d==="preserveStartEnd"):v=Xpe(w,C,x,a,l),v.filter(function(j){return j.isShow}))}var Zpe=["viewBox"],Jpe=["viewBox"],ehe=["ticks"];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 Bl(){return Bl=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},Bl.apply(this,arguments)}function pL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pL(Object(n),!0).forEach(function(r){JC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lw(e,t){if(e==null)return{};var n=the(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function the(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 nhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hL(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,E6(r.key),r)}}function rhe(e,t,n){return t&&hL(e.prototype,t),n&&hL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ahe(e,t,n){return t=Tg(t),ihe(e,j6()?Reflect.construct(t,n||[],Tg(e).constructor):t.apply(e,n))}function ihe(e,t){if(t&&(mc(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 j6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j6=function(){return!!e})()}function Tg(e){return Tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tg(e)}function she(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&&FA(e,t)}function FA(e,t){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},FA(e,t)}function JC(e,t,n){return t=E6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E6(e){var t=lhe(e,"string");return mc(t)=="symbol"?t:t+""}function lhe(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 String(e)}var Bc=(function(e){function t(n){var r;return nhe(this,t),r=ahe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return she(t,e),rhe(t,[{key:"shouldComponentUpdate",value:function(r,a){var o=r.viewBox,l=Lw(r,Zpe),c=this.props,d=c.viewBox,f=Lw(c,Jpe);return!Ul(o,d)||!Ul(l,f)||!Ul(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,o=a.x,l=a.y,c=a.width,d=a.height,f=a.orientation,m=a.tickSize,g=a.mirror,v=a.tickMargin,b,A,x,w,C,j,T=g?-1:1,M=r.tickSize||m,O=ge(r.tickCoord)?r.tickCoord:r.coordinate;switch(f){case"top":b=A=r.coordinate,w=l+ +!g*d,x=w-T*M,j=x-T*v,C=O;break;case"left":x=w=r.coordinate,A=o+ +!g*c,b=A-T*M,C=b-T*v,j=O;break;case"right":x=w=r.coordinate,A=o+ +g*c,b=A+T*M,C=b+T*v,j=O;break;default:b=A=r.coordinate,w=l+ +g*d,x=w+T*M,j=x+T*v,C=O;break}return{line:{x1:b,y1:x,x2:A,y2:w},tick:{x:C,y:j}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l;switch(a){case"left":l=o?"start":"end";break;case"right":l=o?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,o=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=o?"start":"end";break;default:l=o?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,o=r.y,l=r.width,c=r.height,d=r.orientation,f=r.mirror,m=r.axisLine,g=Qt(Qt(Qt({},_e(this.props,!1)),_e(m,!1)),{},{fill:"none"});if(d==="top"||d==="bottom"){var v=+(d==="top"&&!f||d==="bottom"&&f);g=Qt(Qt({},g),{},{x1:a,y1:o+v*c,x2:a+l,y2:o+v*c})}else{var b=+(d==="left"&&!f||d==="right"&&f);g=Qt(Qt({},g),{},{x1:a+b*l,y1:o,x2:a+b*l,y2:o+c})}return $.createElement("line",Bl({},g,{className:Le("recharts-cartesian-axis-line",pr(m,"className"))}))}},{key:"renderTicks",value:function(r,a,o){var l=this,c=this.props,d=c.tickLine,f=c.stroke,m=c.tick,g=c.tickFormatter,v=c.unit,b=ZC(Qt(Qt({},this.props),{},{ticks:r}),a,o),A=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),w=_e(this.props,!1),C=_e(m,!1),j=Qt(Qt({},w),{},{fill:"none"},_e(d,!1)),T=b.map(function(M,O){var _=l.getTickLineCoord(M),N=_.line,P=_.tick,k=Qt(Qt(Qt(Qt({textAnchor:A,verticalAnchor:x},w),{},{stroke:"none",fill:f},C),P),{},{index:O,payload:M,visibleTicksCount:b.length,tickFormatter:g});return $.createElement(et,Bl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},ms(l.props,M,O)),d&&$.createElement("line",Bl({},j,N,{className:Le("recharts-cartesian-axis-tick-line",pr(d,"className"))})),m&&t.renderTickItem(m,k,"".concat(Re(g)?g(M.value,O):M.value).concat(v||"")))});return $.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,a=this.props,o=a.axisLine,l=a.width,c=a.height,d=a.ticksGenerator,f=a.className,m=a.hide;if(m)return null;var g=this.props,v=g.ticks,b=Lw(g,ehe),A=v;return Re(d)&&(A=v&&v.length>0?d(this.props):d(b)),l<=0||c<=0||!A||!A.length?null:$.createElement(et,{className:Le("recharts-cartesian-axis",f),ref:function(w){r.layerReference=w}},o&&this.renderAxisLine(),this.renderTicks(A,this.state.fontSize,this.state.letterSpacing),sn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,o){var l,c=Le(a.className,"recharts-cartesian-axis-tick-value");return $.isValidElement(r)?l=$.cloneElement(r,Qt(Qt({},a),{},{className:c})):Re(r)?l=r(Qt(Qt({},a),{},{className:c})):l=$.createElement(vs,Bl({},a,{className:"recharts-cartesian-axis-tick-value"}),o),l}}])})(E.Component);JC(Bc,"displayName","CartesianAxis");JC(Bc,"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 che=["x1","y1","x2","y2","key"],uhe=["offset"];function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}function gL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gL(Object(n),!0).forEach(function(r){dhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dhe(e,t,n){return t=fhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fhe(e){var t=phe(e,"string");return bs(t)=="symbol"?t:t+""}function phe(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ts(){return ts=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},ts.apply(this,arguments)}function mL(e,t){if(e==null)return{};var n=hhe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hhe(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 ghe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,o=t.y,l=t.width,c=t.height,d=t.ry;return $.createElement("rect",{x:a,y:o,ry:d,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function _6(e,t){var n;if($.isValidElement(e))n=$.cloneElement(e,t);else if(Re(e))n=e(t);else{var r=t.x1,a=t.y1,o=t.x2,l=t.y2,c=t.key,d=mL(t,che),f=_e(d,!1);f.offset;var m=mL(f,uhe);n=$.createElement("line",ts({},m,{x1:r,y1:a,x2:o,y2:l,fill:"none",key:c}))}return n}function mhe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,d){var f=bn(bn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(d),index:d});return _6(a,f)});return $.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function vhe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,o=e.verticalPoints;if(!a||!o||!o.length)return null;var l=o.map(function(c,d){var f=bn(bn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(d),index:d});return _6(a,f)});return $.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function yhe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,o=e.width,l=e.height,c=e.horizontalPoints,d=e.horizontal,f=d===void 0?!0:d;if(!f||!t||!t.length)return null;var m=c.map(function(v){return Math.round(v+a-a)}).sort(function(v,b){return v-b});a!==m[0]&&m.unshift(0);var g=m.map(function(v,b){var A=!m[b+1],x=A?a+l-v:m[b+1]-v;if(x<=0)return null;var w=b%t.length;return $.createElement("rect",{key:"react-".concat(b),y:v,x:r,height:x,width:o,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},g)}function xhe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,o=e.x,l=e.y,c=e.width,d=e.height,f=e.verticalPoints;if(!n||!r||!r.length)return null;var m=f.map(function(v){return Math.round(v+o-o)}).sort(function(v,b){return v-b});o!==m[0]&&m.unshift(0);var g=m.map(function(v,b){var A=!m[b+1],x=A?o+c-v:m[b+1]-v;if(x<=0)return null;var w=b%r.length;return $.createElement("rect",{key:"react-".concat(b),x:v,y:l,width:x,height:d,stroke:"none",fill:r[w],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return $.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},g)}var bhe=function(t,n){var r=t.xAxis,a=t.width,o=t.height,l=t.offset;return T$(ZC(bn(bn(bn({},Bc.defaultProps),r),{},{ticks:ri(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.left,l.left+l.width,n)},whe=function(t,n){var r=t.yAxis,a=t.width,o=t.height,l=t.offset;return T$(ZC(bn(bn(bn({},Bc.defaultProps),r),{},{ticks:ri(r,!0),viewBox:{x:0,y:0,width:a,height:o}})),l.top,l.top+l.height,n)},Rl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function T6(e){var t,n,r,a,o,l,c=YC(),d=QC(),f=lpe(),m=bn(bn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Rl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Rl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Rl.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Rl.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Rl.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:Rl.verticalFill,x:ge(e.x)?e.x:f.left,y:ge(e.y)?e.y:f.top,width:ge(e.width)?e.width:f.width,height:ge(e.height)?e.height:f.height}),g=m.x,v=m.y,b=m.width,A=m.height,x=m.syncWithTicks,w=m.horizontalValues,C=m.verticalValues,j=ipe(),T=ope();if(!ge(b)||b<=0||!ge(A)||A<=0||!ge(g)||g!==+g||!ge(v)||v!==+v)return null;var M=m.verticalCoordinatesGenerator||bhe,O=m.horizontalCoordinatesGenerator||whe,_=m.horizontalPoints,N=m.verticalPoints;if((!_||!_.length)&&Re(O)){var P=w&&w.length,k=O({yAxis:T?bn(bn({},T),{},{ticks:P?w:T.ticks}):void 0,width:c,height:d,offset:f},P?!0:x);Qr(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(bs(k),"]")),Array.isArray(k)&&(_=k)}if((!N||!N.length)&&Re(M)){var z=C&&C.length,B=M({xAxis:j?bn(bn({},j),{},{ticks:z?C:j.ticks}):void 0,width:c,height:d,offset:f},z?!0:x);Qr(Array.isArray(B),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(bs(B),"]")),Array.isArray(B)&&(N=B)}return $.createElement("g",{className:"recharts-cartesian-grid"},$.createElement(ghe,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),$.createElement(mhe,ts({},m,{offset:f,horizontalPoints:_,xAxis:j,yAxis:T})),$.createElement(vhe,ts({},m,{offset:f,verticalPoints:N,xAxis:j,yAxis:T})),$.createElement(yhe,ts({},m,{horizontalPoints:_})),$.createElement(xhe,ts({},m,{verticalPoints:N})))}T6.displayName="CartesianGrid";var She=["layout","type","stroke","connectNulls","isRange","ref"],Ahe=["key"],N6;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 R6(e,t){if(e==null)return{};var n=Ohe(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ohe(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 ns(){return ns=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},ns.apply(this,arguments)}function vL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vL(Object(n),!0).forEach(function(r){ma(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Che(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yL(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,P6(r.key),r)}}function jhe(e,t,n){return t&&yL(e.prototype,t),n&&yL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ehe(e,t,n){return t=Ng(t),_he(e,M6()?Reflect.construct(t,n||[],Ng(e).constructor):t.apply(e,n))}function _he(e,t){if(t&&(vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return The(e)}function The(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M6=function(){return!!e})()}function Ng(e){return Ng=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ng(e)}function Nhe(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&&KA(e,t)}function KA(e,t){return KA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},KA(e,t)}function ma(e,t,n){return t=P6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P6(e){var t=Rhe(e,"string");return vc(t)=="symbol"?t:t+""}function Rhe(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 String(e)}var wa=(function(e){function t(){var n;Che(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=Ehe(this,t,[].concat(a)),ma(n,"state",{isAnimationFinished:!0}),ma(n,"id",Pc("recharts-area-")),ma(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Re(l)&&l()}),ma(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Re(l)&&l()}),n}return Nhe(t,e),jhe(t,[{key:"renderDots",value:function(r,a,o){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var d=this.props,f=d.dot,m=d.points,g=d.dataKey,v=_e(this.props,!1),b=_e(f,!0),A=m.map(function(w,C){var j=Gi(Gi(Gi({key:"dot-".concat(C),r:3},v),b),{},{index:C,cx:w.x,cy:w.y,dataKey:g,value:w.value,payload:w.payload,points:m});return t.renderDotItem(f,j)}),x={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(o,")"):null};return $.createElement(et,ns({className:"recharts-area-dots"},x),A)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,d=l[0].x,f=l[l.length-1].x,m=r*Math.abs(d-f),g=Wi(l.map(function(v){return v.y||0}));return ge(o)&&typeof o=="number"?g=Math.max(o,g):o&&Array.isArray(o)&&o.length&&(g=Math.max(Wi(o.map(function(v){return v.y||0})),g)),ge(g)?$.createElement("rect",{x:d<f?d:d-m,y:0,width:m,height:Math.floor(g+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,o=a.baseLine,l=a.points,c=a.strokeWidth,d=l[0].y,f=l[l.length-1].y,m=r*Math.abs(d-f),g=Wi(l.map(function(v){return v.x||0}));return ge(o)&&typeof o=="number"?g=Math.max(o,g):o&&Array.isArray(o)&&o.length&&(g=Math.max(Wi(o.map(function(v){return v.x||0})),g)),ge(g)?$.createElement("rect",{x:0,y:d<f?d:d-m,width:g+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,o,l){var c=this.props,d=c.layout,f=c.type,m=c.stroke,g=c.connectNulls,v=c.isRange;c.ref;var b=R6(c,She);return $.createElement(et,{clipPath:o?"url(#clipPath-".concat(l,")"):null},$.createElement(Hl,ns({},_e(b,!0),{points:r,connectNulls:g,type:f,baseLine:a,layout:d,stroke:"none",className:"recharts-area-area"})),m!=="none"&&$.createElement(Hl,ns({},_e(this.props,!1),{className:"recharts-area-curve",layout:d,type:f,connectNulls:g,fill:"none",points:r})),m!=="none"&&v&&$.createElement(Hl,ns({},_e(this.props,!1),{className:"recharts-area-curve",layout:d,type:f,connectNulls:g,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var o=this,l=this.props,c=l.points,d=l.baseLine,f=l.isAnimationActive,m=l.animationBegin,g=l.animationDuration,v=l.animationEasing,b=l.animationId,A=this.state,x=A.prevPoints,w=A.prevBaseLine;return $.createElement(Ca,{begin:m,duration:g,isActive:f,easing:v,from:{t:0},to:{t:1},key:"area-".concat(b),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var j=C.t;if(x){var T=x.length/c.length,M=c.map(function(P,k){var z=Math.floor(k*T);if(x[z]){var B=x[z],L=Vn(B.x,P.x),U=Vn(B.y,P.y);return Gi(Gi({},P),{},{x:L(j),y:U(j)})}return P}),O;if(ge(d)&&typeof d=="number"){var _=Vn(w,d);O=_(j)}else if(Be(d)||Mc(d)){var N=Vn(w,0);O=N(j)}else O=d.map(function(P,k){var z=Math.floor(k*T);if(w[z]){var B=w[z],L=Vn(B.x,P.x),U=Vn(B.y,P.y);return Gi(Gi({},P),{},{x:L(j),y:U(j)})}return P});return o.renderAreaStatically(M,O,r,a)}return $.createElement(et,null,$.createElement("defs",null,$.createElement("clipPath",{id:"animationClipPath-".concat(a)},o.renderClipRect(j))),$.createElement(et,{clipPath:"url(#animationClipPath-".concat(a,")")},o.renderAreaStatically(c,d,r,a)))})}},{key:"renderArea",value:function(r,a){var o=this.props,l=o.points,c=o.baseLine,d=o.isAnimationActive,f=this.state,m=f.prevPoints,g=f.prevBaseLine,v=f.totalLength;return d&&l&&l.length&&(!m&&v>0||!ac(m,l)||!ac(g,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,o=a.hide,l=a.dot,c=a.points,d=a.className,f=a.top,m=a.left,g=a.xAxis,v=a.yAxis,b=a.width,A=a.height,x=a.isAnimationActive,w=a.id;if(o||!c||!c.length)return null;var C=this.state.isAnimationFinished,j=c.length===1,T=Le("recharts-area",d),M=g&&g.allowDataOverflow,O=v&&v.allowDataOverflow,_=M||O,N=Be(w)?this.id:w,P=(r=_e(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},k=P.r,z=k===void 0?3:k,B=P.strokeWidth,L=B===void 0?2:B,U=fJ(l)?l:{},H=U.clipDot,Q=H===void 0?!0:H,D=z*2+L;return $.createElement(et,{className:T},M||O?$.createElement("defs",null,$.createElement("clipPath",{id:"clipPath-".concat(N)},$.createElement("rect",{x:M?m:m-b/2,y:O?f:f-A/2,width:M?b:b*2,height:O?A:A*2})),!Q&&$.createElement("clipPath",{id:"clipPath-dots-".concat(N)},$.createElement("rect",{x:m-D/2,y:f-D/2,width:b+D,height:A+D}))):null,j?null:this.renderArea(_,N),(l||j)&&this.renderDots(_,Q,N),(!x||C)&&oi.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])})(E.PureComponent);N6=wa;ma(wa,"displayName","Area");ma(wa,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ns.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});ma(wa,"getBaseValue",function(e,t,n,r){var a=e.layout,o=e.baseValue,l=t.props.baseValue,c=l??o;if(ge(c)&&typeof c=="number")return c;var d=a==="horizontal"?r:n,f=d.scale.domain();if(d.type==="number"){var m=Math.max(f[0],f[1]),g=Math.min(f[0],f[1]);return c==="dataMin"?g:c==="dataMax"||m<0?m:Math.max(Math.min(f[0],f[1]),0)}return c==="dataMin"?f[0]:c==="dataMax"?f[1]:f[0]});ma(wa,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,d=e.dataKey,f=e.stackedData,m=e.dataStartIndex,g=e.displayedData,v=e.offset,b=t.layout,A=f&&f.length,x=N6.getBaseValue(t,n,r,a),w=b==="horizontal",C=!1,j=g.map(function(M,O){var _;A?_=f[m+O]:(_=Zt(M,d),Array.isArray(_)?C=!0:_=[x,_]);var N=_[1]==null||A&&Zt(M,d)==null;return w?{x:wk({axis:r,ticks:o,bandSize:c,entry:M,index:O}),y:N?null:a.scale(_[1]),value:_,payload:M}:{x:N?null:r.scale(_[1]),y:wk({axis:a,ticks:l,bandSize:c,entry:M,index:O}),value:_,payload:M}}),T;return A||C?T=j.map(function(M){var O=Array.isArray(M.value)?M.value[0]:null;return w?{x:M.x,y:O!=null&&M.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:M.y}}):T=w?a.scale(x):r.scale(x),Gi({points:j,baseLine:T,layout:b,isRange:C},v)});ma(wa,"renderDotItem",function(e,t){var n;if($.isValidElement(e))n=$.cloneElement(e,t);else if(Re(e))n=e(t);else{var r=Le("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,o=R6(t,Ahe);n=$.createElement(Dm,ns({},o,{key:a,className:r}))}return n});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 Mhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Phe(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,I6(r.key),r)}}function Dhe(e,t,n){return t&&Phe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function khe(e,t,n){return t=Rg(t),Ihe(e,D6()?Reflect.construct(t,n||[],Rg(e).constructor):t.apply(e,n))}function Ihe(e,t){if(t&&(yc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lhe(e)}function Lhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D6=function(){return!!e})()}function Rg(e){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rg(e)}function Bhe(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&&HA(e,t)}function HA(e,t){return HA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},HA(e,t)}function k6(e,t,n){return t=I6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I6(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 String(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 qhe(e){var t=e.xAxisId,n=YC(),r=QC(),a=v6(t);return a==null?null:E.createElement(Bc,GA({},a,{className:Le("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return ri(l,!0)}}))}var Gm=(function(e){function t(){return Mhe(this,t),khe(this,t,arguments)}return Bhe(t,e),Dhe(t,[{key:"render",value:function(){return E.createElement(qhe,this.props)}}])})(E.Component);k6(Gm,"displayName","XAxis");k6(Gm,"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 xc(e){"@babel/helpers - typeof";return xc=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},xc(e)}function zhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uhe(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,$6(r.key),r)}}function Fhe(e,t,n){return t&&Uhe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Khe(e,t,n){return t=Mg(t),Hhe(e,L6()?Reflect.construct(t,n||[],Mg(e).constructor):t.apply(e,n))}function Hhe(e,t){if(t&&(xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ghe(e)}function Ghe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L6=function(){return!!e})()}function Mg(e){return Mg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mg(e)}function Vhe(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&&VA(e,t)}function VA(e,t){return VA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},VA(e,t)}function B6(e,t,n){return t=$6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $6(e){var t=Yhe(e,"string");return xc(t)=="symbol"?t:t+""}function Yhe(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(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)}var Qhe=function(t){var n=t.yAxisId,r=YC(),a=QC(),o=y6(n);return o==null?null:E.createElement(Bc,YA({},o,{className:Le("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return ri(c,!0)}}))},Vm=(function(e){function t(){return zhe(this,t),Khe(this,t,arguments)}return Vhe(t,e),Fhe(t,[{key:"render",value:function(){return E.createElement(Qhe,this.props)}}])})(E.Component);B6(Vm,"displayName","YAxis");B6(Vm,"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 xL(e){return Jhe(e)||Zhe(e)||Whe(e)||Xhe()}function Xhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Whe(e,t){if(e){if(typeof e=="string")return QA(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 QA(e,t)}}function Zhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jhe(e){if(Array.isArray(e))return QA(e)}function QA(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 XA=function(t,n,r,a,o){var l=Pr(t,WC),c=Pr(t,Fm),d=[].concat(xL(l),xL(c)),f=Pr(t,Hm),m="".concat(a,"Id"),g=a[0],v=n;if(d.length&&(v=d.reduce(function(x,w){if(w.props[m]===r&&ba(w.props,"extendDomain")&&ge(w.props[g])){var C=w.props[g];return[Math.min(x[0],C),Math.max(x[1],C)]}return x},v)),f.length){var b="".concat(g,"1"),A="".concat(g,"2");v=f.reduce(function(x,w){if(w.props[m]===r&&ba(w.props,"extendDomain")&&ge(w.props[b])&&ge(w.props[A])){var C=w.props[b],j=w.props[A];return[Math.min(x[0],C,j),Math.max(x[1],C,j)]}return x},v)}return o&&o.length&&(v=o.reduce(function(x,w){return ge(w)?[Math.min(x[0],w),Math.max(x[1],w)]:x},v)),v},Bw={exports:{}},bL;function ege(){return bL||(bL=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(d,f,m){this.fn=d,this.context=f,this.once=m||!1}function o(d,f,m,g,v){if(typeof m!="function")throw new TypeError("The listener must be a function");var b=new a(m,g||d,v),A=n?n+f:f;return d._events[A]?d._events[A].fn?d._events[A]=[d._events[A],b]:d._events[A].push(b):(d._events[A]=b,d._eventsCount++),d}function l(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],m,g;if(this._eventsCount===0)return f;for(g in m=this._events)t.call(m,g)&&f.push(n?g.slice(1):g);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},c.prototype.listeners=function(f){var m=n?n+f:f,g=this._events[m];if(!g)return[];if(g.fn)return[g.fn];for(var v=0,b=g.length,A=new Array(b);v<b;v++)A[v]=g[v].fn;return A},c.prototype.listenerCount=function(f){var m=n?n+f:f,g=this._events[m];return g?g.fn?1:g.length:0},c.prototype.emit=function(f,m,g,v,b,A){var x=n?n+f:f;if(!this._events[x])return!1;var w=this._events[x],C=arguments.length,j,T;if(w.fn){switch(w.once&&this.removeListener(f,w.fn,void 0,!0),C){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,m),!0;case 3:return w.fn.call(w.context,m,g),!0;case 4:return w.fn.call(w.context,m,g,v),!0;case 5:return w.fn.call(w.context,m,g,v,b),!0;case 6:return w.fn.call(w.context,m,g,v,b,A),!0}for(T=1,j=new Array(C-1);T<C;T++)j[T-1]=arguments[T];w.fn.apply(w.context,j)}else{var M=w.length,O;for(T=0;T<M;T++)switch(w[T].once&&this.removeListener(f,w[T].fn,void 0,!0),C){case 1:w[T].fn.call(w[T].context);break;case 2:w[T].fn.call(w[T].context,m);break;case 3:w[T].fn.call(w[T].context,m,g);break;case 4:w[T].fn.call(w[T].context,m,g,v);break;default:if(!j)for(O=1,j=new Array(C-1);O<C;O++)j[O-1]=arguments[O];w[T].fn.apply(w[T].context,j)}}return!0},c.prototype.on=function(f,m,g){return o(this,f,m,g,!1)},c.prototype.once=function(f,m,g){return o(this,f,m,g,!0)},c.prototype.removeListener=function(f,m,g,v){var b=n?n+f:f;if(!this._events[b])return this;if(!m)return l(this,b),this;var A=this._events[b];if(A.fn)A.fn===m&&(!v||A.once)&&(!g||A.context===g)&&l(this,b);else{for(var x=0,w=[],C=A.length;x<C;x++)(A[x].fn!==m||v&&!A[x].once||g&&A[x].context!==g)&&w.push(A[x]);w.length?this._events[b]=w.length===1?w[0]:w:l(this,b)}return this},c.prototype.removeAllListeners=function(f){var m;return f?(m=n?n+f:f,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Bw)),Bw.exports}var tge=ege();const nge=ft(tge);var $w=new nge,qw="recharts.syncMouseEvents";function Jd(e){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jd(e)}function rge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function age(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,q6(r.key),r)}}function ige(e,t,n){return t&&age(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zw(e,t,n){return t=q6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q6(e){var t=oge(e,"string");return Jd(t)=="symbol"?t:t+""}function oge(e,t){if(Jd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sge=(function(){function e(){rge(this,e),zw(this,"activeIndex",0),zw(this,"coordinateList",[]),zw(this,"layout","horizontal")}return ige(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,o=a===void 0?null:a,l=n.container,c=l===void 0?null:l,d=n.layout,f=d===void 0?null:d,m=n.offset,g=m===void 0?null:m,v=n.mouseHandlerCallback,b=v===void 0?null:v;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=f??this.layout,this.offset=g??this.offset,this.mouseHandlerCallback=b??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 a=this.container.getBoundingClientRect(),o=a.x,l=a.y,c=a.height,d=this.coordinateList[this.activeIndex].coordinate,f=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,g=o+d+f,v=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:g,pageY:v})}}}])})();function lge(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e?.[0],a=e?.[1];if(r&&a&&ge(r)&&ge(a))return!0}return!1}function cge(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function z6(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,o=e.endAngle,l=Ot(t,n,r,a),c=Ot(t,n,r,o);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:o}}function uge(e,t,n){var r,a,o,l;if(e==="horizontal")r=t.x,o=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,d=t.cy,f=t.innerRadius,m=t.outerRadius,g=t.angle,v=Ot(c,d,f,g),b=Ot(c,d,m,g);r=v.x,a=v.y,o=b.x,l=b.y}else return z6(t);return[{x:r,y:a},{x:o,y:l}]}function ef(e){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ef(e)}function wL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wL(Object(n),!0).forEach(function(r){dge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dge(e,t,n){return t=fge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fge(e){var t=pge(e,"string");return ef(t)=="symbol"?t:t+""}function pge(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hge(e){var t,n,r=e.element,a=e.tooltipEventType,o=e.isActive,l=e.activeCoordinate,c=e.activePayload,d=e.offset,f=e.activeTooltipIndex,m=e.tooltipAxisBandSize,g=e.layout,v=e.chartName,b=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!b||!o||!l||v!=="ScatterChart"&&a!=="axis")return null;var A,x=Hl;if(v==="ScatterChart")A=l,x=$ue;else if(v==="BarChart")A=cge(g,l,d,m),x=KC;else if(g==="radial"){var w=z6(l),C=w.cx,j=w.cy,T=w.radius,M=w.startAngle,O=w.endAngle;A={cx:C,cy:j,startAngle:M,endAngle:O,innerRadius:T,outerRadius:T},x=q$}else A={points:uge(g,l,d)},x=Hl;var _=uh(uh(uh(uh({stroke:"#ccc",pointerEvents:"none"},d),A),_e(b,!1)),{},{payload:c,payloadIndex:f,className:Le("recharts-tooltip-cursor",b.className)});return E.isValidElement(b)?E.cloneElement(b,_):E.createElement(x,_)}var gge=["item"],mge=["children","className","width","height","style","compact","title","desc"];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)}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 SL(e,t){return xge(e)||yge(e,t)||F6(e,t)||vge()}function vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function xge(e){if(Array.isArray(e))return e}function AL(e,t){if(e==null)return{};var n=bge(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bge(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 wge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sge(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,K6(r.key),r)}}function Age(e,t,n){return t&&Sge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oge(e,t,n){return t=Pg(t),Cge(e,U6()?Reflect.construct(t,n||[],Pg(e).constructor):t.apply(e,n))}function Cge(e,t){if(t&&(bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jge(e)}function jge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U6=function(){return!!e})()}function Pg(e){return Pg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pg(e)}function Ege(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&&WA(e,t)}function WA(e,t){return WA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},WA(e,t)}function wc(e){return Nge(e)||Tge(e)||F6(e)||_ge()}function _ge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F6(e,t){if(e){if(typeof e=="string")return ZA(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 ZA(e,t)}}function Tge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nge(e){if(Array.isArray(e))return ZA(e)}function ZA(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 OL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OL(Object(n),!0).forEach(function(r){Ne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ne(e,t,n){return t=K6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K6(e){var t=Rge(e,"string");return bc(t)=="symbol"?t:t+""}function Rge(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)}var Mge={xAxis:["bottom","top"],yAxis:["left","right"]},Pge={width:"100%",height:"100%"},H6={x:0,y:0};function dh(e){return e}var Dge=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},kge=function(t,n,r,a){var o=n.find(function(m){return m&&m.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var l=o.coordinate,c=a.radius;return ce(ce(ce({},a),Ot(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var d=o.coordinate,f=a.angle;return ce(ce(ce({},a),Ot(a.cx,a.cy,d,f)),{},{angle:f,radius:d})}return H6},Ym=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,o=n.dataEndIndex,l=(r??[]).reduce(function(c,d){var f=d.props.data;return f&&f.length?[].concat(wc(c),wc(f)):c},[]);return l.length>0?l:t&&t.length&&ge(a)&&ge(o)?t.slice(a,o+1):[]};function G6(e){return e==="number"?[0,"auto"]:void 0}var JA=function(t,n,r,a){var o=t.graphicalItems,l=t.tooltipAxis,c=Ym(n,t);return r<0||!o||!o.length||r>=c.length?null:o.reduce(function(d,f){var m,g=(m=f.props.data)!==null&&m!==void 0?m:n;g&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(l.dataKey&&!l.allowDuplicatedCategory){var b=g===void 0?c:g;v=Lh(b,l.dataKey,a)}else v=g&&g[r]||c[r];return v?[].concat(wc(d),[D$(f,v)]):d},[])},CL=function(t,n,r,a){var o=a||{x:t.chartX,y:t.chartY},l=Dge(o,r),c=t.orderedTooltipTicks,d=t.tooltipAxis,f=t.tooltipTicks,m=cse(l,c,f,d);if(m>=0&&f){var g=f[m]&&f[m].value,v=JA(t,n,m,g),b=kge(r,c,m,o);return{activeTooltipIndex:m,activeLabel:g,activePayload:v,activeCoordinate:b}}return null},Ige=function(t,n){var r=n.axes,a=n.graphicalItems,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,m=t.layout,g=t.children,v=t.stackOffset,b=_$(m,o);return r.reduce(function(A,x){var w,C=x.type.defaultProps!==void 0?ce(ce({},x.type.defaultProps),x.props):x.props,j=C.type,T=C.dataKey,M=C.allowDataOverflow,O=C.allowDuplicatedCategory,_=C.scale,N=C.ticks,P=C.includeHidden,k=C[l];if(A[k])return A;var z=Ym(t.data,{graphicalItems:a.filter(function(V){var Y,ee=l in V.props?V.props[l]:(Y=V.type.defaultProps)===null||Y===void 0?void 0:Y[l];return ee===k}),dataStartIndex:d,dataEndIndex:f}),B=z.length,L,U,H;lge(C.domain,M,j)&&(L=hA(C.domain,null,M),b&&(j==="number"||_!=="auto")&&(H=rd(z,T,"category")));var Q=G6(j);if(!L||L.length===0){var D,K=(D=C.domain)!==null&&D!==void 0?D:Q;if(T){if(L=rd(z,T,j),j==="category"&&b){var F=nJ(L);O&&F?(U=L,L=bg(0,B)):O||(L=Ck(K,L,x).reduce(function(V,Y){return V.indexOf(Y)>=0?V:[].concat(wc(V),[Y])},[]))}else if(j==="category")O?L=L.filter(function(V){return V!==""&&!Be(V)}):L=Ck(K,L,x).reduce(function(V,Y){return V.indexOf(Y)>=0||Y===""||Be(Y)?V:[].concat(wc(V),[Y])},[]);else if(j==="number"){var X=hse(z,a.filter(function(V){var Y,ee,ue=l in V.props?V.props[l]:(Y=V.type.defaultProps)===null||Y===void 0?void 0:Y[l],me="hide"in V.props?V.props.hide:(ee=V.type.defaultProps)===null||ee===void 0?void 0:ee.hide;return ue===k&&(P||!me)}),T,o,m);X&&(L=X)}b&&(j==="number"||_!=="auto")&&(H=rd(z,T,"category"))}else b?L=bg(0,B):c&&c[k]&&c[k].hasStack&&j==="number"?L=v==="expand"?[0,1]:P$(c[k].stackGroups,d,f):L=E$(z,a.filter(function(V){var Y=l in V.props?V.props[l]:V.type.defaultProps[l],ee="hide"in V.props?V.props.hide:V.type.defaultProps.hide;return Y===k&&(P||!ee)}),j,m,!0);if(j==="number")L=XA(g,L,k,o,N),K&&(L=hA(K,L,M));else if(j==="category"&&K){var oe=K,q=L.every(function(V){return oe.indexOf(V)>=0});q&&(L=oe)}}return ce(ce({},A),{},Ne({},k,ce(ce({},C),{},{axisType:o,domain:L,categoricalDomain:H,duplicateDomain:U,originalDomain:(w=C.domain)!==null&&w!==void 0?w:Q,isCategorical:b,layout:m})))},{})},Lge=function(t,n){var r=n.graphicalItems,a=n.Axis,o=n.axisType,l=n.axisIdKey,c=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,m=t.layout,g=t.children,v=Ym(t.data,{graphicalItems:r,dataStartIndex:d,dataEndIndex:f}),b=v.length,A=_$(m,o),x=-1;return r.reduce(function(w,C){var j=C.type.defaultProps!==void 0?ce(ce({},C.type.defaultProps),C.props):C.props,T=j[l],M=G6("number");if(!w[T]){x++;var O;return A?O=bg(0,b):c&&c[T]&&c[T].hasStack?(O=P$(c[T].stackGroups,d,f),O=XA(g,O,T,o)):(O=hA(M,E$(v,r.filter(function(_){var N,P,k=l in _.props?_.props[l]:(N=_.type.defaultProps)===null||N===void 0?void 0:N[l],z="hide"in _.props?_.props.hide:(P=_.type.defaultProps)===null||P===void 0?void 0:P.hide;return k===T&&!z}),"number",m),a.defaultProps.allowDataOverflow),O=XA(g,O,T,o)),ce(ce({},w),{},Ne({},T,ce(ce({axisType:o},a.defaultProps),{},{hide:!0,orientation:pr(Mge,"".concat(o,".").concat(x%2),null),domain:O,originalDomain:M,isCategorical:A,layout:m})))}return w},{})},Bge=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,o=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,d=n.dataStartIndex,f=n.dataEndIndex,m=t.children,g="".concat(a,"Id"),v=Pr(m,o),b={};return v&&v.length?b=Ige(t,{axes:v,graphicalItems:l,axisType:a,axisIdKey:g,stackGroups:c,dataStartIndex:d,dataEndIndex:f}):l&&l.length&&(b=Lge(t,{Axis:o,graphicalItems:l,axisType:a,axisIdKey:g,stackGroups:c,dataStartIndex:d,dataEndIndex:f})),b},$ge=function(t){var n=Qi(t),r=ri(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:vC(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:lg(n,r)}},jL=function(t){var n=t.children,r=t.defaultShowTooltip,a=or(n,dc),o=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},qge=function(t){return!t||!t.length?!1:t.some(function(n){var r=ai(n&&n.type);return r&&r.indexOf("Bar")>=0})},EL=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"}},zge=function(t,n){var r=t.props,a=t.graphicalItems,o=t.xAxisMap,l=o===void 0?{}:o,c=t.yAxisMap,d=c===void 0?{}:c,f=r.width,m=r.height,g=r.children,v=r.margin||{},b=or(g,dc),A=or(g,rs),x=Object.keys(d).reduce(function(O,_){var N=d[_],P=N.orientation;return!N.mirror&&!N.hide?ce(ce({},O),{},Ne({},P,O[P]+N.width)):O},{left:v.left||0,right:v.right||0}),w=Object.keys(l).reduce(function(O,_){var N=l[_],P=N.orientation;return!N.mirror&&!N.hide?ce(ce({},O),{},Ne({},P,pr(O,"".concat(P))+N.height)):O},{top:v.top||0,bottom:v.bottom||0}),C=ce(ce({},w),x),j=C.bottom;b&&(C.bottom+=b.props.height||dc.defaultProps.height),A&&n&&(C=fse(C,a,r,n));var T=f-C.left-C.right,M=m-C.top-C.bottom;return ce(ce({brushBottom:j},C),{},{width:Math.max(T,0),height:Math.max(M,0)})},Uge=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},V6=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,d=t.axisComponents,f=t.legendContent,m=t.formatAxisMap,g=t.defaultProps,v=function(C,j){var T=j.graphicalItems,M=j.stackGroups,O=j.offset,_=j.updateId,N=j.dataStartIndex,P=j.dataEndIndex,k=C.barSize,z=C.layout,B=C.barGap,L=C.barCategoryGap,U=C.maxBarSize,H=EL(z),Q=H.numericAxisName,D=H.cateAxisName,K=qge(T),F=[];return T.forEach(function(X,oe){var q=Ym(C.data,{graphicalItems:[X],dataStartIndex:N,dataEndIndex:P}),V=X.type.defaultProps!==void 0?ce(ce({},X.type.defaultProps),X.props):X.props,Y=V.dataKey,ee=V.maxBarSize,ue=V["".concat(Q,"Id")],me=V["".concat(D,"Id")],se={},ve=d.reduce(function(Xn,Rt){var hr=j["".concat(Rt.axisType,"Map")],tn=V["".concat(Rt.axisType,"Id")];hr&&hr[tn]||Rt.axisType==="zAxis"||xs();var Ds=hr[tn];return ce(ce({},Xn),{},Ne(Ne({},Rt.axisType,Ds),"".concat(Rt.axisType,"Ticks"),ri(Ds)))},se),de=ve[D],Z=ve["".concat(D,"Ticks")],he=M&&M[ue]&&M[ue].hasStack&&Ase(X,M[ue].stackGroups),ie=ai(X.type).indexOf("Bar")>=0,$e=lg(de,Z),Ce=[],Ye=K&&use({barSize:k,stackGroups:M,totalSize:Uge(ve,D)});if(ie){var nt,wt,kn=Be(ee)?U:ee,qt=(nt=(wt=lg(de,Z,!0))!==null&&wt!==void 0?wt:kn)!==null&&nt!==void 0?nt:0;Ce=dse({barGap:B,barCategoryGap:L,bandSize:qt!==$e?qt:$e,sizeList:Ye[me],maxBarSize:kn}),qt!==$e&&(Ce=Ce.map(function(Xn){return ce(ce({},Xn),{},{position:ce(ce({},Xn.position),{},{offset:Xn.position.offset-qt/2})})}))}var ta=X&&X.type&&X.type.getComposedData;ta&&F.push({props:ce(ce({},ta(ce(ce({},ve),{},{displayedData:q,props:C,dataKey:Y,item:X,bandSize:$e,barPosition:Ce,offset:O,stackedData:he,layout:z,dataStartIndex:N,dataEndIndex:P}))),{},Ne(Ne(Ne({key:X.key||"item-".concat(oe)},Q,ve[Q]),D,ve[D]),"animationId",_)),childIndex:gJ(X,C.children),item:X})}),F},b=function(C,j){var T=C.props,M=C.dataStartIndex,O=C.dataEndIndex,_=C.updateId;if(!BR({props:T}))return null;var N=T.children,P=T.layout,k=T.stackOffset,z=T.data,B=T.reverseStackOrder,L=EL(P),U=L.numericAxisName,H=L.cateAxisName,Q=Pr(N,r),D=wse(z,Q,"".concat(U,"Id"),"".concat(H,"Id"),k,B),K=d.reduce(function(V,Y){var ee="".concat(Y.axisType,"Map");return ce(ce({},V),{},Ne({},ee,Bge(T,ce(ce({},Y),{},{graphicalItems:Q,stackGroups:Y.axisType===U&&D,dataStartIndex:M,dataEndIndex:O}))))},{}),F=zge(ce(ce({},K),{},{props:T,graphicalItems:Q}),j?.legendBBox);Object.keys(K).forEach(function(V){K[V]=m(T,K[V],F,V.replace("Map",""),n)});var X=K["".concat(H,"Map")],oe=$ge(X),q=v(T,ce(ce({},K),{},{dataStartIndex:M,dataEndIndex:O,updateId:_,graphicalItems:Q,stackGroups:D,offset:F}));return ce(ce({formattedGraphicalItems:q,graphicalItems:Q,offset:F,stackGroups:D},oe),K)},A=(function(w){function C(j){var T,M,O;return wge(this,C),O=Oge(this,C,[j]),Ne(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ne(O,"accessibilityManager",new sge),Ne(O,"handleLegendBBoxUpdate",function(_){if(_){var N=O.state,P=N.dataStartIndex,k=N.dataEndIndex,z=N.updateId;O.setState(ce({legendBBox:_},b({props:O.props,dataStartIndex:P,dataEndIndex:k,updateId:z},ce(ce({},O.state),{},{legendBBox:_}))))}}),Ne(O,"handleReceiveSyncEvent",function(_,N,P){if(O.props.syncId===_){if(P===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(N)}}),Ne(O,"handleBrushChange",function(_){var N=_.startIndex,P=_.endIndex;if(N!==O.state.dataStartIndex||P!==O.state.dataEndIndex){var k=O.state.updateId;O.setState(function(){return ce({dataStartIndex:N,dataEndIndex:P},b({props:O.props,dataStartIndex:N,dataEndIndex:P,updateId:k},O.state))}),O.triggerSyncEvent({dataStartIndex:N,dataEndIndex:P})}}),Ne(O,"handleMouseEnter",function(_){var N=O.getMouseInfo(_);if(N){var P=ce(ce({},N),{},{isTooltipActive:!0});O.setState(P),O.triggerSyncEvent(P);var k=O.props.onMouseEnter;Re(k)&&k(P,_)}}),Ne(O,"triggeredAfterMouseMove",function(_){var N=O.getMouseInfo(_),P=N?ce(ce({},N),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(P),O.triggerSyncEvent(P);var k=O.props.onMouseMove;Re(k)&&k(P,_)}),Ne(O,"handleItemMouseEnter",function(_){O.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),Ne(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Ne(O,"handleMouseMove",function(_){_.persist(),O.throttleTriggeredAfterMouseMove(_)}),Ne(O,"handleMouseLeave",function(_){O.throttleTriggeredAfterMouseMove.cancel();var N={isTooltipActive:!1};O.setState(N),O.triggerSyncEvent(N);var P=O.props.onMouseLeave;Re(P)&&P(N,_)}),Ne(O,"handleOuterEvent",function(_){var N=hJ(_),P=pr(O.props,"".concat(N));if(N&&Re(P)){var k,z;/.*touch.*/i.test(N)?z=O.getMouseInfo(_.changedTouches[0]):z=O.getMouseInfo(_),P((k=z)!==null&&k!==void 0?k:{},_)}}),Ne(O,"handleClick",function(_){var N=O.getMouseInfo(_);if(N){var P=ce(ce({},N),{},{isTooltipActive:!0});O.setState(P),O.triggerSyncEvent(P);var k=O.props.onClick;Re(k)&&k(P,_)}}),Ne(O,"handleMouseDown",function(_){var N=O.props.onMouseDown;if(Re(N)){var P=O.getMouseInfo(_);N(P,_)}}),Ne(O,"handleMouseUp",function(_){var N=O.props.onMouseUp;if(Re(N)){var P=O.getMouseInfo(_);N(P,_)}}),Ne(O,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),Ne(O,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&O.handleMouseDown(_.changedTouches[0])}),Ne(O,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&O.handleMouseUp(_.changedTouches[0])}),Ne(O,"handleDoubleClick",function(_){var N=O.props.onDoubleClick;if(Re(N)){var P=O.getMouseInfo(_);N(P,_)}}),Ne(O,"handleContextMenu",function(_){var N=O.props.onContextMenu;if(Re(N)){var P=O.getMouseInfo(_);N(P,_)}}),Ne(O,"triggerSyncEvent",function(_){O.props.syncId!==void 0&&$w.emit(qw,O.props.syncId,_,O.eventEmitterSymbol)}),Ne(O,"applySyncEvent",function(_){var N=O.props,P=N.layout,k=N.syncMethod,z=O.state.updateId,B=_.dataStartIndex,L=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)O.setState(ce({dataStartIndex:B,dataEndIndex:L},b({props:O.props,dataStartIndex:B,dataEndIndex:L,updateId:z},O.state)));else if(_.activeTooltipIndex!==void 0){var U=_.chartX,H=_.chartY,Q=_.activeTooltipIndex,D=O.state,K=D.offset,F=D.tooltipTicks;if(!K)return;if(typeof k=="function")Q=k(F,_);else if(k==="value"){Q=-1;for(var X=0;X<F.length;X++)if(F[X].value===_.activeLabel){Q=X;break}}var oe=ce(ce({},K),{},{x:K.left,y:K.top}),q=Math.min(U,oe.x+oe.width),V=Math.min(H,oe.y+oe.height),Y=F[Q]&&F[Q].value,ee=JA(O.state,O.props.data,Q),ue=F[Q]?{x:P==="horizontal"?F[Q].coordinate:q,y:P==="horizontal"?V:F[Q].coordinate}:H6;O.setState(ce(ce({},_),{},{activeLabel:Y,activeCoordinate:ue,activePayload:ee,activeTooltipIndex:Q}))}else O.setState(_)}),Ne(O,"renderCursor",function(_){var N,P=O.state,k=P.isTooltipActive,z=P.activeCoordinate,B=P.activePayload,L=P.offset,U=P.activeTooltipIndex,H=P.tooltipAxisBandSize,Q=O.getTooltipEventType(),D=(N=_.props.active)!==null&&N!==void 0?N:k,K=O.props.layout,F=_.key||"_recharts-cursor";return $.createElement(hge,{key:F,activeCoordinate:z,activePayload:B,activeTooltipIndex:U,chartName:n,element:_,isActive:D,layout:K,offset:L,tooltipAxisBandSize:H,tooltipEventType:Q})}),Ne(O,"renderPolarAxis",function(_,N,P){var k=pr(_,"type.axisType"),z=pr(O.state,"".concat(k,"Map")),B=_.type.defaultProps,L=B!==void 0?ce(ce({},B),_.props):_.props,U=z&&z[L["".concat(k,"Id")]];return E.cloneElement(_,ce(ce({},U),{},{className:Le(k,U.className),key:_.key||"".concat(N,"-").concat(P),ticks:ri(U,!0)}))}),Ne(O,"renderPolarGrid",function(_){var N=_.props,P=N.radialLines,k=N.polarAngles,z=N.polarRadius,B=O.state,L=B.radiusAxisMap,U=B.angleAxisMap,H=Qi(L),Q=Qi(U),D=Q.cx,K=Q.cy,F=Q.innerRadius,X=Q.outerRadius;return E.cloneElement(_,{polarAngles:Array.isArray(k)?k:ri(Q,!0).map(function(oe){return oe.coordinate}),polarRadius:Array.isArray(z)?z:ri(H,!0).map(function(oe){return oe.coordinate}),cx:D,cy:K,innerRadius:F,outerRadius:X,key:_.key||"polar-grid",radialLines:P})}),Ne(O,"renderLegend",function(){var _=O.state.formattedGraphicalItems,N=O.props,P=N.children,k=N.width,z=N.height,B=O.props.margin||{},L=k-(B.left||0)-(B.right||0),U=C$({children:P,formattedGraphicalItems:_,legendWidth:L,legendContent:f});if(!U)return null;var H=U.item,Q=AL(U,gge);return E.cloneElement(H,ce(ce({},Q),{},{chartWidth:k,chartHeight:z,margin:B,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Ne(O,"renderTooltip",function(){var _,N=O.props,P=N.children,k=N.accessibilityLayer,z=or(P,Gr);if(!z)return null;var B=O.state,L=B.isTooltipActive,U=B.activeCoordinate,H=B.activePayload,Q=B.activeLabel,D=B.offset,K=(_=z.props.active)!==null&&_!==void 0?_:L;return E.cloneElement(z,{viewBox:ce(ce({},D),{},{x:D.left,y:D.top}),active:K,label:Q,payload:K?H:[],coordinate:U,accessibilityLayer:k})}),Ne(O,"renderBrush",function(_){var N=O.props,P=N.margin,k=N.data,z=O.state,B=z.offset,L=z.dataStartIndex,U=z.dataEndIndex,H=z.updateId;return E.cloneElement(_,{key:_.key||"_recharts-brush",onChange:oh(O.handleBrushChange,_.props.onChange),data:k,x:ge(_.props.x)?_.props.x:B.left,y:ge(_.props.y)?_.props.y:B.top+B.height+B.brushBottom-(P.bottom||0),width:ge(_.props.width)?_.props.width:B.width,startIndex:L,endIndex:U,updateId:"brush-".concat(H)})}),Ne(O,"renderReferenceElement",function(_,N,P){if(!_)return null;var k=O,z=k.clipPathId,B=O.state,L=B.xAxisMap,U=B.yAxisMap,H=B.offset,Q=_.type.defaultProps||{},D=_.props,K=D.xAxisId,F=K===void 0?Q.xAxisId:K,X=D.yAxisId,oe=X===void 0?Q.yAxisId:X;return E.cloneElement(_,{key:_.key||"".concat(N,"-").concat(P),xAxis:L[F],yAxis:U[oe],viewBox:{x:H.left,y:H.top,width:H.width,height:H.height},clipPathId:z})}),Ne(O,"renderActivePoints",function(_){var N=_.item,P=_.activePoint,k=_.basePoint,z=_.childIndex,B=_.isRange,L=[],U=N.props.key,H=N.item.type.defaultProps!==void 0?ce(ce({},N.item.type.defaultProps),N.item.props):N.item.props,Q=H.activeDot,D=H.dataKey,K=ce(ce({index:z,dataKey:D,cx:P.x,cy:P.y,r:4,fill:FC(N.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},_e(Q,!1)),Bh(Q));return L.push(C.renderActiveDot(Q,K,"".concat(U,"-activePoint-").concat(z))),k?L.push(C.renderActiveDot(Q,ce(ce({},K),{},{cx:k.x,cy:k.y}),"".concat(U,"-basePoint-").concat(z))):B&&L.push(null),L}),Ne(O,"renderGraphicChild",function(_,N,P){var k=O.filterFormatItem(_,N,P);if(!k)return null;var z=O.getTooltipEventType(),B=O.state,L=B.isTooltipActive,U=B.tooltipAxis,H=B.activeTooltipIndex,Q=B.activeLabel,D=O.props.children,K=or(D,Gr),F=k.props,X=F.points,oe=F.isRange,q=F.baseLine,V=k.item.type.defaultProps!==void 0?ce(ce({},k.item.type.defaultProps),k.item.props):k.item.props,Y=V.activeDot,ee=V.hide,ue=V.activeBar,me=V.activeShape,se=!!(!ee&&L&&K&&(Y||ue||me)),ve={};z!=="axis"&&K&&K.props.trigger==="click"?ve={onClick:oh(O.handleItemMouseEnter,_.props.onClick)}:z!=="axis"&&(ve={onMouseLeave:oh(O.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:oh(O.handleItemMouseEnter,_.props.onMouseEnter)});var de=E.cloneElement(_,ce(ce({},k.props),ve));function Z(Rt){return typeof U.dataKey=="function"?U.dataKey(Rt.payload):null}if(se)if(H>=0){var he,ie;if(U.dataKey&&!U.allowDuplicatedCategory){var $e=typeof U.dataKey=="function"?Z:"payload.".concat(U.dataKey.toString());he=Lh(X,$e,Q),ie=oe&&q&&Lh(q,$e,Q)}else he=X?.[H],ie=oe&&q&&q[H];if(me||ue){var Ce=_.props.activeIndex!==void 0?_.props.activeIndex:H;return[E.cloneElement(_,ce(ce(ce({},k.props),ve),{},{activeIndex:Ce})),null,null]}if(!Be(he))return[de].concat(wc(O.renderActivePoints({item:k,activePoint:he,basePoint:ie,childIndex:H,isRange:oe})))}else{var Ye,nt=(Ye=O.getItemByXY(O.state.activeCoordinate))!==null&&Ye!==void 0?Ye:{graphicalItem:de},wt=nt.graphicalItem,kn=wt.item,qt=kn===void 0?_:kn,ta=wt.childIndex,Xn=ce(ce(ce({},k.props),ve),{},{activeIndex:ta});return[E.cloneElement(qt,Xn),null,null]}return oe?[de,null,null]:[de,null]}),Ne(O,"renderCustomized",function(_,N,P){return E.cloneElement(_,ce(ce({key:"recharts-customized-".concat(P)},O.props),O.state))}),Ne(O,"renderMap",{CartesianGrid:{handler:dh,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:dh},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:dh},YAxis:{handler:dh},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((T=j.id)!==null&&T!==void 0?T:Pc("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=O8(O.triggeredAfterMouseMove,(M=j.throttleDelay)!==null&&M!==void 0?M:1e3/60),O.state={},O}return Ege(C,w),Age(C,[{key:"componentDidMount",value:function(){var T,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,M=T.children,O=T.data,_=T.height,N=T.layout,P=or(M,Gr);if(P){var k=P.props.defaultIndex;if(!(typeof k!="number"||k<0||k>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[k]&&this.state.tooltipTicks[k].value,B=JA(this.state,O,k,z),L=this.state.tooltipTicks[k].coordinate,U=(this.state.offset.top+_)/2,H=N==="horizontal",Q=H?{x:L,y:U}:{y:L,x:U},D=this.state.formattedGraphicalItems.find(function(F){var X=F.item;return X.type.name==="Scatter"});D&&(Q=ce(ce({},Q),D.props.points[k].tooltipPosition),B=D.props.points[k].tooltipPayload);var K={activeTooltipIndex:k,isTooltipActive:!0,activeLabel:z,activePayload:B,activeCoordinate:Q};this.setState(K),this.renderCursor(P),this.accessibilityManager.setIndex(k)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var O,_;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(T){IS([or(T.children,Gr)],[or(this.props.children,Gr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=or(this.props.children,Gr);if(T&&typeof T.props.shared=="boolean"){var M=T.props.shared?"axis":"item";return c.indexOf(M)>=0?M:o}return o}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var M=this.container,O=M.getBoundingClientRect(),_=tre(O),N={chartX:Math.round(T.pageX-_.left),chartY:Math.round(T.pageY-_.top)},P=O.width/M.offsetWidth||1,k=this.inRange(N.chartX,N.chartY,P);if(!k)return null;var z=this.state,B=z.xAxisMap,L=z.yAxisMap,U=this.getTooltipEventType(),H=CL(this.state,this.props.data,this.props.layout,k);if(U!=="axis"&&B&&L){var Q=Qi(B).scale,D=Qi(L).scale,K=Q&&Q.invert?Q.invert(N.chartX):null,F=D&&D.invert?D.invert(N.chartY):null;return ce(ce({},N),{},{xValue:K,yValue:F},H)}return H?ce(ce({},N),H):null}},{key:"inRange",value:function(T,M){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,N=T/O,P=M/O;if(_==="horizontal"||_==="vertical"){var k=this.state.offset,z=N>=k.left&&N<=k.left+k.width&&P>=k.top&&P<=k.top+k.height;return z?{x:N,y:P}:null}var B=this.state,L=B.angleAxisMap,U=B.radiusAxisMap;if(L&&U){var H=Qi(L);return _k({x:N,y:P},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,M=this.getTooltipEventType(),O=or(T,Gr),_={};O&&M==="axis"&&(O.props.trigger==="click"?_={onClick:this.handleClick}:_={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=Bh(this.props,this.handleOuterEvent);return ce(ce({},N),_)}},{key:"addListener",value:function(){$w.on(qw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){$w.removeListener(qw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,M,O){for(var _=this.state.formattedGraphicalItems,N=0,P=_.length;N<P;N++){var k=_[N];if(k.item===T||k.props.key===T.key||M===ai(k.item.type)&&O===k.childIndex)return k}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,M=this.state.offset,O=M.left,_=M.top,N=M.height,P=M.width;return $.createElement("defs",null,$.createElement("clipPath",{id:T},$.createElement("rect",{x:O,y:_,height:N,width:P})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(M,O){var _=SL(O,2),N=_[0],P=_[1];return ce(ce({},M),{},Ne({},N,P.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(M,O){var _=SL(O,2),N=_[0],P=_[1];return ce(ce({},M),{},Ne({},N,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[T])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(T){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[T])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(T){var M=this.state,O=M.formattedGraphicalItems,_=M.activeItem;if(O&&O.length)for(var N=0,P=O.length;N<P;N++){var k=O[N],z=k.props,B=k.item,L=B.type.defaultProps!==void 0?ce(ce({},B.type.defaultProps),B.props):B.props,U=ai(B.type);if(U==="Bar"){var H=(z.data||[]).find(function(F){return xue(T,F)});if(H)return{graphicalItem:k,payload:H}}else if(U==="RadialBar"){var Q=(z.data||[]).find(function(F){return _k(T,F)});if(Q)return{graphicalItem:k,payload:Q}}else if($m(k,_)||qm(k,_)||Yd(k,_)){var D=Ude({graphicalItem:k,activeTooltipItem:_,itemData:L.data}),K=L.activeIndex===void 0?D:L.activeIndex;return{graphicalItem:ce(ce({},k),{},{childIndex:K}),payload:Yd(k,_)?L.data[D]:k.props.data[D]}}}return null}},{key:"render",value:function(){var T=this;if(!BR(this))return null;var M=this.props,O=M.children,_=M.className,N=M.width,P=M.height,k=M.style,z=M.compact,B=M.title,L=M.desc,U=AL(M,mge),H=_e(U,!1);if(z)return $.createElement(aL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement(BS,$l({},H,{width:N,height:P,title:B,desc:L}),this.renderClipPath(),qR(O,this.renderMap)));if(this.props.accessibilityLayer){var Q,D;H.tabIndex=(Q=this.props.tabIndex)!==null&&Q!==void 0?Q:0,H.role=(D=this.props.role)!==null&&D!==void 0?D:"application",H.onKeyDown=function(F){T.accessibilityManager.keyboardEvent(F)},H.onFocus=function(){T.accessibilityManager.focus()}}var K=this.parseEventsOfWrapper();return $.createElement(aL,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},$.createElement("div",$l({className:Le("recharts-wrapper",_),style:ce({position:"relative",cursor:"default",width:N,height:P},k)},K,{ref:function(X){T.container=X}}),$.createElement(BS,$l({},H,{width:N,height:P,title:B,desc:L,style:Pge}),this.renderClipPath(),qR(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(E.Component);Ne(A,"displayName",n),Ne(A,"defaultProps",ce({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),Ne(A,"getDerivedStateFromProps",function(w,C){var j=w.dataKey,T=w.data,M=w.children,O=w.width,_=w.height,N=w.layout,P=w.stackOffset,k=w.margin,z=C.dataStartIndex,B=C.dataEndIndex;if(C.updateId===void 0){var L=jL(w);return ce(ce(ce({},L),{},{updateId:0},b(ce(ce({props:w},L),{},{updateId:0}),C)),{},{prevDataKey:j,prevData:T,prevWidth:O,prevHeight:_,prevLayout:N,prevStackOffset:P,prevMargin:k,prevChildren:M})}if(j!==C.prevDataKey||T!==C.prevData||O!==C.prevWidth||_!==C.prevHeight||N!==C.prevLayout||P!==C.prevStackOffset||!Ul(k,C.prevMargin)){var U=jL(w),H={chartX:C.chartX,chartY:C.chartY,isTooltipActive:C.isTooltipActive},Q=ce(ce({},CL(C,T,N)),{},{updateId:C.updateId+1}),D=ce(ce(ce({},U),H),Q);return ce(ce(ce({},D),b(ce({props:w},D),C)),{},{prevDataKey:j,prevData:T,prevWidth:O,prevHeight:_,prevLayout:N,prevStackOffset:P,prevMargin:k,prevChildren:M})}if(!IS(M,C.prevChildren)){var K,F,X,oe,q=or(M,dc),V=q&&(K=(F=q.props)===null||F===void 0?void 0:F.startIndex)!==null&&K!==void 0?K:z,Y=q&&(X=(oe=q.props)===null||oe===void 0?void 0:oe.endIndex)!==null&&X!==void 0?X:B,ee=V!==z||Y!==B,ue=!Be(T),me=ue&&!ee?C.updateId:C.updateId+1;return ce(ce({updateId:me},b(ce(ce({props:w},C),{},{updateId:me,dataStartIndex:V,dataEndIndex:Y}),C)),{},{prevChildren:M,dataStartIndex:V,dataEndIndex:Y})}return null}),Ne(A,"renderActiveDot",function(w,C,j){var T;return E.isValidElement(w)?T=E.cloneElement(w,C):Re(w)?T=w(C):T=$.createElement(Dm,C),$.createElement(et,{className:"recharts-active-dot",key:j},T)});var x=E.forwardRef(function(C,j){return $.createElement(A,$l({},C,{ref:j}))});return x.displayName=A.displayName,x},Fge=V6({chartName:"PieChart",GraphicalChild:mi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Bm},{axisType:"radiusAxis",AxisComp:Im}],formatAxisMap:Pse,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Kge=V6({chartName:"AreaChart",GraphicalChild:wa,axisComponents:[{axisType:"xAxis",AxisComp:Gm},{axisType:"yAxis",AxisComp:Vm}],formatAxisMap:Hfe});const Hge={CN:"#3b82f6",HK:"#10b981",US:"#f59e0b",EU:"#8b5cf6",SG:"#ec4899",AE:"#f97316",ALL:"#6b7280"},Gge=Array.from({length:7},(e,t)=>({day:`${t+1}日`,approved:Math.floor(Math.random()*20+5),rejected:Math.floor(Math.random()*5+1),pending:Math.floor(Math.random()*10+2)}));function Ki({title:e,value:t,icon:n,sub:r,color:a="primary",trend:o}){const l={primary:"text-primary",emerald:"text-emerald-400",amber:"text-amber-400",red:"text-red-400",purple:"text-purple-400"};return h.jsx(Ze,{"data-loc":"client/src/pages/Dashboard.tsx:33",className:"border-border/50 hover:border-primary/30 transition-colors",children:h.jsx(Je,{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"p-5",children:h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:35",className:"flex items-start justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:36",className:"flex-1",children:[h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:37",className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:e}),h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:38",className:`text-3xl font-bold mt-1 ${l[a]||l.primary}`,children:t}),r&&h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:39",className:"text-xs text-muted-foreground mt-1",children:r}),o&&h.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"text-xs text-emerald-400 mt-1 flex items-center gap-1",children:[h.jsx(n4,{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"w-3 h-3"}),o]})]}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:42",className:`p-2.5 rounded-xl bg-card border border-border/50 ${l[a]||l.primary}`,children:h.jsx(n,{"data-loc":"client/src/pages/Dashboard.tsx:43",className:"w-5 h-5"})})]})})})}function Vge(){const{data:e,isLoading:t}=Me.dashboard.stats.useQuery(),{data:n}=Me.dashboard.recentActivity.useQuery();if(t)return h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:57",className:"p-6 space-y-4",children:h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:58",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((o,l)=>h.jsx(Ze,{"data-loc":"client/src/pages/Dashboard.tsx:60",className:"border-border/50 animate-pulse",children:h.jsx(Je,{"data-loc":"client/src/pages/Dashboard.tsx:61",className:"p-5 h-24"})},l))})});const r=e,a=(r?.jurisdictionCoverage||[]).map(o=>({name:o._id,value:o.count,fill:Hge[o._id]||"#6b7280"}));return h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:75",className:"p-6 space-y-6",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:77",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:78",children:[h.jsx("h1",{"data-loc":"client/src/pages/Dashboard.tsx:79",className:"text-2xl font-bold nac-gradient-text",children:"全局态势感知"}),h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:80",className:"text-sm text-muted-foreground mt-0.5",children:"NAC 知识引擎实时监控中心"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:82",className:"flex items-center gap-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",className:"flex items-center gap-1.5 text-xs text-emerald-400",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:84",className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),"系统运行正常"]}),h.jsxs(Mr,{"data-loc":"client/src/pages/Dashboard.tsx:87",variant:"outline",className:"text-xs border-border/50",children:[h.jsx(_c,{"data-loc":"client/src/pages/Dashboard.tsx:88",className:"w-3 h-3 mr-1"}),new Date().toLocaleString("zh-CN")]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:95",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:96",title:"合规规则总数",value:r?.knowledgeBase?.totalRules??0,icon:MO,sub:"知识库规则条目",color:"primary"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:97",title:"活跃协议",value:r?.knowledgeBase?.activeProtocols??0,icon:ed,sub:`共 ${r?.knowledgeBase?.totalProtocols??0} 个协议`,color:"emerald"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:98",title:"采集器运行",value:r?.crawlers?.active??0,icon:Mh,sub:`共 ${r?.crawlers?.total??0} 个采集器`,color:"amber"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:99",title:"审批通过率",value:`${r?.approvals?.approvalRate??0}%`,icon:Dr,sub:`共 ${r?.approvals?.total??0} 个案例`,color:"emerald"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:100",title:"待人工审核",value:r?.approvals?.pending??0,icon:ps,sub:"中风险案例",color:"amber"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:101",title:"系统用户",value:r?.users?.total??0,icon:BY,sub:"NAC 注册用户",color:"purple"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:102",title:"审计日志",value:r?.audit?.total??0,icon:io,sub:"不可篡改记录",color:"primary"}),h.jsx(Ki,{"data-loc":"client/src/pages/Dashboard.tsx:103",title:"司法辖区覆盖",value:a.length,icon:fs,sub:"已覆盖辖区数量",color:"emerald"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:107",className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[h.jsxs(Ze,{"data-loc":"client/src/pages/Dashboard.tsx:109",className:"lg:col-span-2 border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/Dashboard.tsx:110",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/Dashboard.tsx:111",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(n4,{"data-loc":"client/src/pages/Dashboard.tsx:112",className:"w-4 h-4 text-primary"}),"审批趋势(近7天)"]})}),h.jsx(Je,{"data-loc":"client/src/pages/Dashboard.tsx:116",children:h.jsx(lD,{"data-loc":"client/src/pages/Dashboard.tsx:117",width:"100%",height:200,children:h.jsxs(Kge,{"data-loc":"client/src/pages/Dashboard.tsx:118",data:Gge,children:[h.jsx("defs",{"data-loc":"client/src/pages/Dashboard.tsx:119",children:h.jsxs("linearGradient",{"data-loc":"client/src/pages/Dashboard.tsx:120",id:"colorApproved",x1:"0",y1:"0",x2:"0",y2:"1",children:[h.jsx("stop",{"data-loc":"client/src/pages/Dashboard.tsx:121",offset:"5%",stopColor:"oklch(0.65 0.18 200)",stopOpacity:.3}),h.jsx("stop",{"data-loc":"client/src/pages/Dashboard.tsx:122",offset:"95%",stopColor:"oklch(0.65 0.18 200)",stopOpacity:0})]})}),h.jsx(T6,{"data-loc":"client/src/pages/Dashboard.tsx:125",strokeDasharray:"3 3",stroke:"oklch(0.22 0.020 250)"}),h.jsx(Gm,{"data-loc":"client/src/pages/Dashboard.tsx:126",dataKey:"day",tick:{fontSize:11,fill:"oklch(0.60 0.015 250)"}}),h.jsx(Vm,{"data-loc":"client/src/pages/Dashboard.tsx:127",tick:{fontSize:11,fill:"oklch(0.60 0.015 250)"}}),h.jsx(Gr,{"data-loc":"client/src/pages/Dashboard.tsx:128",contentStyle:{background:"oklch(0.14 0.018 250)",border:"1px solid oklch(0.22 0.020 250)",borderRadius:"8px",fontSize:"12px"}}),h.jsx(wa,{"data-loc":"client/src/pages/Dashboard.tsx:129",type:"monotone",dataKey:"approved",stroke:"oklch(0.65 0.18 200)",fill:"url(#colorApproved)",strokeWidth:2,name:"通过"}),h.jsx(wa,{"data-loc":"client/src/pages/Dashboard.tsx:130",type:"monotone",dataKey:"rejected",stroke:"oklch(0.60 0.22 25)",fill:"none",strokeWidth:2,strokeDasharray:"4 2",name:"拒绝"}),h.jsx(wa,{"data-loc":"client/src/pages/Dashboard.tsx:131",type:"monotone",dataKey:"pending",stroke:"oklch(0.65 0.20 50)",fill:"none",strokeWidth:2,strokeDasharray:"4 2",name:"待审"}),h.jsx(rs,{"data-loc":"client/src/pages/Dashboard.tsx:132",wrapperStyle:{fontSize:"11px"}})]})})})]}),h.jsxs(Ze,{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/Dashboard.tsx:140",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/Dashboard.tsx:141",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(fs,{"data-loc":"client/src/pages/Dashboard.tsx:142",className:"w-4 h-4 text-primary"}),"司法辖区覆盖"]})}),h.jsx(Je,{"data-loc":"client/src/pages/Dashboard.tsx:146",children:a.length>0?h.jsxs(h.Fragment,{children:[h.jsx(lD,{"data-loc":"client/src/pages/Dashboard.tsx:149",width:"100%",height:140,children:h.jsxs(Fge,{"data-loc":"client/src/pages/Dashboard.tsx:150",children:[h.jsx(mi,{"data-loc":"client/src/pages/Dashboard.tsx:151",data:a,cx:"50%",cy:"50%",innerRadius:40,outerRadius:65,paddingAngle:3,dataKey:"value",children:a.map((o,l)=>h.jsx(Sm,{"data-loc":"client/src/pages/Dashboard.tsx:153",fill:o.fill},l))}),h.jsx(Gr,{"data-loc":"client/src/pages/Dashboard.tsx:156",contentStyle:{background:"oklch(0.14 0.018 250)",border:"1px solid oklch(0.22 0.020 250)",borderRadius:"8px",fontSize:"11px"}})]})}),h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:159",className:"grid grid-cols-2 gap-1 mt-2",children:a.map(o=>h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"flex items-center gap-1.5 text-xs",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:162",className:"w-2 h-2 rounded-full shrink-0",style:{background:o.fill}}),h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"text-muted-foreground",children:o.name}),h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:164",className:"font-medium ml-auto",children:o.value})]},o.name))})]}):h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:170",className:"h-[180px] flex items-center justify-center text-muted-foreground text-sm",children:"暂无数据"})})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[h.jsxs(Ze,{"data-loc":"client/src/pages/Dashboard.tsx:179",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/Dashboard.tsx:180",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/Dashboard.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(LY,{"data-loc":"client/src/pages/Dashboard.tsx:182",className:"w-4 h-4 text-primary"}),"系统服务状态"]})}),h.jsx(Je,{"data-loc":"client/src/pages/Dashboard.tsx:186",className:"space-y-2",children:[{name:"MongoDB 知识引擎",status:r?.systemStatus?.mongodb==="connected"?"active":"error",desc:"nac_knowledge_engine"},{name:"MySQL 认证数据库",status:r?.systemStatus?.mysql==="connected"?"active":"error",desc:"nac_id"},{name:"Charter 编译服务",status:"active",desc:"charter.newassetchain.io"},{name:"CNNL 宪政服务",status:"active",desc:"cnnl.newassetchain.io"},{name:"ACC-20 审批引擎",status:"active",desc:"acc20.newassetchain.io"},{name:"GNACS 分类服务",status:"active",desc:"gnacs.newassetchain.io"}].map(o=>h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:195",className:"flex items-center justify-between py-1.5 border-b border-border/20 last:border-0",children:[h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:196",children:[h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:197",className:"text-sm font-medium",children:o.name}),h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:198",className:"text-xs text-muted-foreground",children:o.desc})]}),h.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:200",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${o.status}`,children:o.status==="active"?"运行中":"异常"})]},o.name))})]}),h.jsxs(Ze,{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/Dashboard.tsx:210",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/Dashboard.tsx:211",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(Mh,{"data-loc":"client/src/pages/Dashboard.tsx:212",className:"w-4 h-4 text-primary"}),"最近操作记录"]})}),h.jsx(Je,{"data-loc":"client/src/pages/Dashboard.tsx:216",children:n&&n.length>0?h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:218",className:"space-y-2 max-h-[280px] overflow-y-auto",children:n.slice(0,10).map((o,l)=>h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"flex items-start gap-2 py-1.5 border-b border-border/20 last:border-0",children:[h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:221",className:"w-1.5 h-1.5 rounded-full bg-primary mt-1.5 shrink-0"}),h.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:222",className:"flex-1 min-w-0",children:[h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:223",className:"text-xs font-medium truncate",children:o.action}),h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:224",className:"text-xs text-muted-foreground truncate",children:o.email})]}),h.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:226",className:"text-xs text-muted-foreground shrink-0",children:new Date(o.timestamp).toLocaleTimeString("zh-CN",{hour:"2-digit",minute:"2-digit"})})]},l))}):h.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:233",className:"h-[280px] flex items-center justify-center text-muted-foreground text-sm",children:"暂无操作记录"})})]})]})]})}function _L(e,[t,n]){return Math.min(n,Math.max(t,e))}function Y6(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Yge=[" ","Enter","ArrowUp","ArrowDown"],Qge=[" ","Enter"],ws="Select",[Qm,Xm,Xge]=UO(ws),[$c]=Ea(ws,[Xge,Cc]),Wm=Cc(),[Wge,mo]=$c(ws),[Zge,Jge]=$c(ws),Q6=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:c,onValueChange:d,dir:f,name:m,autoComplete:g,disabled:v,required:b,form:A}=e,x=Wm(t),[w,C]=E.useState(null),[j,T]=E.useState(null),[M,O]=E.useState(!1),_=FO(f),[N,P]=ds({prop:r,defaultProp:a??!1,onChange:o,caller:ws}),[k,z]=ds({prop:l,defaultProp:c,onChange:d,caller:ws}),B=E.useRef(null),L=w?A||!!w.closest("form"):!0,[U,H]=E.useState(new Set),Q=Array.from(U).map(D=>D.props.value).join(";");return h.jsx(wO,{...x,children:h.jsxs(Wge,{required:b,scope:t,trigger:w,onTriggerChange:C,valueNode:j,onValueNodeChange:T,valueNodeHasChildren:M,onValueNodeHasChildrenChange:O,contentId:va(),value:k,onValueChange:z,open:N,onOpenChange:P,dir:_,triggerPointerDownPosRef:B,disabled:v,children:[h.jsx(Qm.Provider,{scope:t,children:h.jsx(Zge,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(D=>{H(K=>new Set(K).add(D))},[]),onNativeOptionRemove:E.useCallback(D=>{H(K=>{const F=new Set(K);return F.delete(D),F})},[]),children:n})}),L?h.jsxs(vq,{"aria-hidden":!0,required:b,tabIndex:-1,name:m,autoComplete:g,value:k,onChange:D=>z(D.target.value),disabled:v,form:A,children:[k===void 0?h.jsx("option",{value:""}):null,Array.from(U)]},Q):null]})})};Q6.displayName=ws;var X6="SelectTrigger",W6=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=Wm(n),l=mo(X6,n),c=l.disabled||r,d=ct(t,l.onTriggerChange),f=Xm(n),m=E.useRef("touch"),[g,v,b]=xq(x=>{const w=f().filter(T=>!T.disabled),C=w.find(T=>T.value===l.value),j=bq(w,x,C);j!==void 0&&l.onValueChange(j.value)}),A=x=>{c||(l.onOpenChange(!0),b()),x&&(l.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return h.jsx(SO,{asChild:!0,...o,children:h.jsx(Fe.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":yq(l.value)?"":void 0,...a,ref:d,onClick:Ae(a.onClick,x=>{x.currentTarget.focus(),m.current!=="mouse"&&A(x)}),onPointerDown:Ae(a.onPointerDown,x=>{m.current=x.pointerType;const w=x.target;w.hasPointerCapture(x.pointerId)&&w.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(A(x),x.preventDefault())}),onKeyDown:Ae(a.onKeyDown,x=>{const w=g.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&v(x.key),!(w&&x.key===" ")&&Yge.includes(x.key)&&(A(),x.preventDefault())})})})});W6.displayName=X6;var Z6="SelectValue",J6=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...c}=e,d=mo(Z6,n),{onValueNodeHasChildrenChange:f}=d,m=o!==void 0,g=ct(t,d.onValueNodeChange);return jn(()=>{f(m)},[f,m]),h.jsx(Fe.span,{...c,ref:g,style:{pointerEvents:"none"},children:yq(d.value)?h.jsx(h.Fragment,{children:l}):o})});J6.displayName=Z6;var eme="SelectIcon",eq=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return h.jsx(Fe.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});eq.displayName=eme;var tme="SelectPortal",tq=e=>h.jsx(cf,{asChild:!0,...e});tq.displayName=tme;var Ss="SelectContent",nq=E.forwardRef((e,t)=>{const n=mo(Ss,e.__scopeSelect),[r,a]=E.useState();if(jn(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?of.createPortal(h.jsx(rq,{scope:e.__scopeSelect,children:h.jsx(Qm.Slot,{scope:e.__scopeSelect,children:h.jsx("div",{children:e.children})})}),o):null}return h.jsx(aq,{...e,ref:t})});nq.displayName=Ss;var Hr=10,[rq,vo]=$c(Ss),nme="SelectContentImpl",rme=cs("SelectContent.RemoveScroll"),aq=E.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:c,sideOffset:d,align:f,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:b,sticky:A,hideWhenDetached:x,avoidCollisions:w,...C}=e,j=mo(Ss,n),[T,M]=E.useState(null),[O,_]=E.useState(null),N=ct(t,se=>M(se)),[P,k]=E.useState(null),[z,B]=E.useState(null),L=Xm(n),[U,H]=E.useState(!1),Q=E.useRef(!1);E.useEffect(()=>{if(T)return LO(T)},[T]),IO();const D=E.useCallback(se=>{const[ve,...de]=L().map(ie=>ie.ref.current),[Z]=de.slice(-1),he=document.activeElement;for(const ie of se)if(ie===he||(ie?.scrollIntoView({block:"nearest"}),ie===ve&&O&&(O.scrollTop=0),ie===Z&&O&&(O.scrollTop=O.scrollHeight),ie?.focus(),document.activeElement!==he))return},[L,O]),K=E.useCallback(()=>D([P,T]),[D,P,T]);E.useEffect(()=>{U&&K()},[U,K]);const{onOpenChange:F,triggerPointerDownPosRef:X}=j;E.useEffect(()=>{if(T){let se={x:0,y:0};const ve=Z=>{se={x:Math.abs(Math.round(Z.pageX)-(X.current?.x??0)),y:Math.abs(Math.round(Z.pageY)-(X.current?.y??0))}},de=Z=>{se.x<=10&&se.y<=10?Z.preventDefault():T.contains(Z.target)||F(!1),document.removeEventListener("pointermove",ve),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",de,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",de,{capture:!0})}}},[T,F,X]),E.useEffect(()=>{const se=()=>F(!1);return window.addEventListener("blur",se),window.addEventListener("resize",se),()=>{window.removeEventListener("blur",se),window.removeEventListener("resize",se)}},[F]);const[oe,q]=xq(se=>{const ve=L().filter(he=>!he.disabled),de=ve.find(he=>he.ref.current===document.activeElement),Z=bq(ve,se,de);Z&&setTimeout(()=>Z.ref.current.focus())}),V=E.useCallback((se,ve,de)=>{const Z=!Q.current&&!de;(j.value!==void 0&&j.value===ve||Z)&&(k(se),Z&&(Q.current=!0))},[j.value]),Y=E.useCallback(()=>T?.focus(),[T]),ee=E.useCallback((se,ve,de)=>{const Z=!Q.current&&!de;(j.value!==void 0&&j.value===ve||Z)&&B(se)},[j.value]),ue=r==="popper"?eO:iq,me=ue===eO?{side:c,sideOffset:d,align:f,alignOffset:m,arrowPadding:g,collisionBoundary:v,collisionPadding:b,sticky:A,hideWhenDetached:x,avoidCollisions:w}:{};return h.jsx(rq,{scope:n,content:T,viewport:O,onViewportChange:_,itemRefCallback:V,selectedItem:P,onItemLeave:Y,itemTextRefCallback:ee,focusSelectedItem:K,selectedItemText:z,position:r,isPositioned:U,searchRef:oe,children:h.jsx(im,{as:rme,allowPinchZoom:!0,children:h.jsx(rm,{asChild:!0,trapped:j.open,onMountAutoFocus:se=>{se.preventDefault()},onUnmountAutoFocus:Ae(a,se=>{j.trigger?.focus({preventScroll:!0}),se.preventDefault()}),children:h.jsx(sf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:se=>se.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:h.jsx(ue,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:se=>se.preventDefault(),...C,...me,onPlaced:()=>H(!0),ref:N,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:Ae(C.onKeyDown,se=>{const ve=se.ctrlKey||se.altKey||se.metaKey;if(se.key==="Tab"&&se.preventDefault(),!ve&&se.key.length===1&&q(se.key),["ArrowUp","ArrowDown","Home","End"].includes(se.key)){let Z=L().filter(he=>!he.disabled).map(he=>he.ref.current);if(["ArrowUp","End"].includes(se.key)&&(Z=Z.slice().reverse()),["ArrowUp","ArrowDown"].includes(se.key)){const he=se.target,ie=Z.indexOf(he);Z=Z.slice(ie+1)}setTimeout(()=>D(Z)),se.preventDefault()}})})})})})})});aq.displayName=nme;var ame="SelectItemAlignedPosition",iq=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=mo(Ss,n),l=vo(Ss,n),[c,d]=E.useState(null),[f,m]=E.useState(null),g=ct(t,N=>m(N)),v=Xm(n),b=E.useRef(!1),A=E.useRef(!0),{viewport:x,selectedItem:w,selectedItemText:C,focusSelectedItem:j}=l,T=E.useCallback(()=>{if(o.trigger&&o.valueNode&&c&&f&&x&&w&&C){const N=o.trigger.getBoundingClientRect(),P=f.getBoundingClientRect(),k=o.valueNode.getBoundingClientRect(),z=C.getBoundingClientRect();if(o.dir!=="rtl"){const he=z.left-P.left,ie=k.left-he,$e=N.left-ie,Ce=N.width+$e,Ye=Math.max(Ce,P.width),nt=window.innerWidth-Hr,wt=_L(ie,[Hr,Math.max(Hr,nt-Ye)]);c.style.minWidth=Ce+"px",c.style.left=wt+"px"}else{const he=P.right-z.right,ie=window.innerWidth-k.right-he,$e=window.innerWidth-N.right-ie,Ce=N.width+$e,Ye=Math.max(Ce,P.width),nt=window.innerWidth-Hr,wt=_L(ie,[Hr,Math.max(Hr,nt-Ye)]);c.style.minWidth=Ce+"px",c.style.right=wt+"px"}const B=v(),L=window.innerHeight-Hr*2,U=x.scrollHeight,H=window.getComputedStyle(f),Q=parseInt(H.borderTopWidth,10),D=parseInt(H.paddingTop,10),K=parseInt(H.borderBottomWidth,10),F=parseInt(H.paddingBottom,10),X=Q+D+U+F+K,oe=Math.min(w.offsetHeight*5,X),q=window.getComputedStyle(x),V=parseInt(q.paddingTop,10),Y=parseInt(q.paddingBottom,10),ee=N.top+N.height/2-Hr,ue=L-ee,me=w.offsetHeight/2,se=w.offsetTop+me,ve=Q+D+se,de=X-ve;if(ve<=ee){const he=B.length>0&&w===B[B.length-1].ref.current;c.style.bottom="0px";const ie=f.clientHeight-x.offsetTop-x.offsetHeight,$e=Math.max(ue,me+(he?Y:0)+ie+K),Ce=ve+$e;c.style.height=Ce+"px"}else{const he=B.length>0&&w===B[0].ref.current;c.style.top="0px";const $e=Math.max(ee,Q+x.offsetTop+(he?V:0)+me)+de;c.style.height=$e+"px",x.scrollTop=ve-ee+x.offsetTop}c.style.margin=`${Hr}px 0`,c.style.minHeight=oe+"px",c.style.maxHeight=L+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[v,o.trigger,o.valueNode,c,f,x,w,C,o.dir,r]);jn(()=>T(),[T]);const[M,O]=E.useState();jn(()=>{f&&O(window.getComputedStyle(f).zIndex)},[f]);const _=E.useCallback(N=>{N&&A.current===!0&&(T(),j?.(),A.current=!1)},[T,j]);return h.jsx(ome,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:b,onScrollButtonChange:_,children:h.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:h.jsx(Fe.div,{...a,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});iq.displayName=ame;var ime="SelectPopperPosition",eO=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Hr,...o}=e,l=Wm(n);return h.jsx(AO,{...l,...o,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...o.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)"}})});eO.displayName=ime;var[ome,ej]=$c(Ss,{}),tO="SelectViewport",oq=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=vo(tO,n),l=ej(tO,n),c=ct(t,o.onViewportChange),d=E.useRef(0);return h.jsxs(h.Fragment,{children:[h.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}),h.jsx(Qm.Slot,{scope:n,children:h.jsx(Fe.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Ae(a.onScroll,f=>{const m=f.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:v}=l;if(v?.current&&g){const b=Math.abs(d.current-m.scrollTop);if(b>0){const A=window.innerHeight-Hr*2,x=parseFloat(g.style.minHeight),w=parseFloat(g.style.height),C=Math.max(x,w);if(C<A){const j=C+b,T=Math.min(A,j),M=j-T;g.style.height=T+"px",g.style.bottom==="0px"&&(m.scrollTop=M>0?M:0,g.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});oq.displayName=tO;var sq="SelectGroup",[sme,lme]=$c(sq),cme=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=va();return h.jsx(sme,{scope:n,id:a,children:h.jsx(Fe.div,{role:"group","aria-labelledby":a,...r,ref:t})})});cme.displayName=sq;var lq="SelectLabel",ume=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=lme(lq,n);return h.jsx(Fe.div,{id:a.id,...r,ref:t})});ume.displayName=lq;var Dg="SelectItem",[dme,cq]=$c(Dg),uq=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,c=mo(Dg,n),d=vo(Dg,n),f=c.value===r,[m,g]=E.useState(o??""),[v,b]=E.useState(!1),A=ct(t,j=>d.itemRefCallback?.(j,r,a)),x=va(),w=E.useRef("touch"),C=()=>{a||(c.onValueChange(r),c.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 h.jsx(dme,{scope:n,value:r,disabled:a,textId:x,isSelected:f,onItemTextChange:E.useCallback(j=>{g(T=>T||(j?.textContent??"").trim())},[]),children:h.jsx(Qm.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:h.jsx(Fe.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:A,onFocus:Ae(l.onFocus,()=>b(!0)),onBlur:Ae(l.onBlur,()=>b(!1)),onClick:Ae(l.onClick,()=>{w.current!=="mouse"&&C()}),onPointerUp:Ae(l.onPointerUp,()=>{w.current==="mouse"&&C()}),onPointerDown:Ae(l.onPointerDown,j=>{w.current=j.pointerType}),onPointerMove:Ae(l.onPointerMove,j=>{w.current=j.pointerType,a?d.onItemLeave?.():w.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ae(l.onPointerLeave,j=>{j.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:Ae(l.onKeyDown,j=>{d.searchRef?.current!==""&&j.key===" "||(Qge.includes(j.key)&&C(),j.key===" "&&j.preventDefault())})})})})});uq.displayName=Dg;var Qu="SelectItemText",dq=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=mo(Qu,n),c=vo(Qu,n),d=cq(Qu,n),f=Jge(Qu,n),[m,g]=E.useState(null),v=ct(t,C=>g(C),d.onItemTextChange,C=>c.itemTextRefCallback?.(C,d.value,d.disabled)),b=m?.textContent,A=E.useMemo(()=>h.jsx("option",{value:d.value,disabled:d.disabled,children:b},d.value),[d.disabled,d.value,b]),{onNativeOptionAdd:x,onNativeOptionRemove:w}=f;return jn(()=>(x(A),()=>w(A)),[x,w,A]),h.jsxs(h.Fragment,{children:[h.jsx(Fe.span,{id:d.textId,...o,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?of.createPortal(o.children,l.valueNode):null]})});dq.displayName=Qu;var fq="SelectItemIndicator",pq=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return cq(fq,n).isSelected?h.jsx(Fe.span,{"aria-hidden":!0,...r,ref:t}):null});pq.displayName=fq;var nO="SelectScrollUpButton",hq=E.forwardRef((e,t)=>{const n=vo(nO,e.__scopeSelect),r=ej(nO,e.__scopeSelect),[a,o]=E.useState(!1),l=ct(t,r.onScrollButtonChange);return jn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const f=d.scrollTop>0;o(f)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?h.jsx(mq,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop-d.offsetHeight)}}):null});hq.displayName=nO;var rO="SelectScrollDownButton",gq=E.forwardRef((e,t)=>{const n=vo(rO,e.__scopeSelect),r=ej(rO,e.__scopeSelect),[a,o]=E.useState(!1),l=ct(t,r.onScrollButtonChange);return jn(()=>{if(n.viewport&&n.isPositioned){let c=function(){const f=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<f;o(m)};const d=n.viewport;return c(),d.addEventListener("scroll",c),()=>d.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),a?h.jsx(mq,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:d}=n;c&&d&&(c.scrollTop=c.scrollTop+d.offsetHeight)}}):null});gq.displayName=rO;var mq=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=vo("SelectScrollButton",n),l=E.useRef(null),c=Xm(n),d=E.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return E.useEffect(()=>()=>d(),[d]),jn(()=>{c().find(m=>m.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),h.jsx(Fe.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Ae(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:Ae(a.onPointerMove,()=>{o.onItemLeave?.(),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:Ae(a.onPointerLeave,()=>{d()})})}),fme="SelectSeparator",pme=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return h.jsx(Fe.div,{"aria-hidden":!0,...r,ref:t})});pme.displayName=fme;var aO="SelectArrow",hme=E.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Wm(n),o=mo(aO,n),l=vo(aO,n);return o.open&&l.position==="popper"?h.jsx(OO,{...a,...r,ref:t}):null});hme.displayName=aO;var gme="SelectBubbleInput",vq=E.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=E.useRef(null),o=ct(r,a),l=Y6(t);return E.useEffect(()=>{const c=a.current;if(!c)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&m){const g=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(g)}},[l,t]),h.jsx(Fe.select,{...n,style:{...O3,...n.style},ref:o,defaultValue:t})});vq.displayName=gme;function yq(e){return e===""||e===void 0}function xq(e){const t=Sa(e),n=E.useRef(""),r=E.useRef(0),a=E.useCallback(l=>{const c=n.current+l;t(c),(function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))})(c)},[t]),o=E.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,o]}function bq(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=mme(e,Math.max(o,0));a.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function mme(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vme=Q6,yme=W6,xme=J6,bme=eq,wme=tq,Sme=nq,Ame=oq,Ome=uq,Cme=dq,jme=pq,Eme=hq,_me=gq;function wn({...e}){return h.jsx(vme,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function Sn({...e}){return h.jsx(xme,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function An({className:e,size:t="default",children:n,...r}){return h.jsxs(yme,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:Ve("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n,h.jsx(bme,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:h.jsx(em,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function On({className:e,children:t,position:n="popper",align:r="center",...a}){return h.jsx(wme,{"data-loc":"client/src/components/ui/select.tsx:59",children:h.jsxs(Sme,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:Ve("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:r,...a,children:[h.jsx(Tme,{"data-loc":"client/src/components/ui/select.tsx:72"}),h.jsx(Ame,{"data-loc":"client/src/components/ui/select.tsx:73",className:Ve("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),h.jsx(Nme,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function ot({className:e,children:t,...n}){return h.jsxs(Ome,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:Ve("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[h.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:h.jsx(jme,{"data-loc":"client/src/components/ui/select.tsx:116",children:h.jsx(wY,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),h.jsx(Cme,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function Tme({className:e,...t}){return h.jsx(Eme,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:Ve("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(RO,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function Nme({className:e,...t}){return h.jsx(_me,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:Ve("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(em,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}function Sc({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...a}){const o=zO(),{onCompositionStart:l,onCompositionEnd:c,onKeyDown:d}=L4({onKeyDown:f=>{const m=f.nativeEvent.isComposing||o.justEndedComposing();f.key==="Enter"&&!f.shiftKey&&m||t?.(f)},onCompositionStart:f=>{o.setComposing(!0),n?.(f)},onCompositionEnd:f=>{o.markCompositionEnd(),setTimeout(()=>{o.setComposing(!1)},100),r?.(f)}});return h.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:Ve("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),onCompositionStart:l,onCompositionEnd:c,onKeyDown:d,...a})}var Zm="Switch",[Rme]=Ea(Zm),[Mme,Pme]=Rme(Zm),wq=E.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:a,defaultChecked:o,required:l,disabled:c,value:d="on",onCheckedChange:f,form:m,...g}=e,[v,b]=E.useState(null),A=ct(t,T=>b(T)),x=E.useRef(!1),w=v?m||!!v.closest("form"):!0,[C,j]=ds({prop:a,defaultProp:o??!1,onChange:f,caller:Zm});return h.jsxs(Mme,{scope:n,checked:C,disabled:c,children:[h.jsx(Fe.button,{type:"button",role:"switch","aria-checked":C,"aria-required":l,"data-state":Cq(C),"data-disabled":c?"":void 0,disabled:c,value:d,...g,ref:A,onClick:Ae(e.onClick,T=>{j(M=>!M),w&&(x.current=T.isPropagationStopped(),x.current||T.stopPropagation())})}),w&&h.jsx(Oq,{control:v,bubbles:!x.current,name:r,value:d,checked:C,required:l,disabled:c,form:m,style:{transform:"translateX(-100%)"}})]})});wq.displayName=Zm;var Sq="SwitchThumb",Aq=E.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,a=Pme(Sq,n);return h.jsx(Fe.span,{"data-state":Cq(a.checked),"data-disabled":a.disabled?"":void 0,...r,ref:t})});Aq.displayName=Sq;var Dme="SwitchBubbleInput",Oq=E.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...a},o)=>{const l=E.useRef(null),c=ct(l,o),d=Y6(n),f=h3(t);return E.useEffect(()=>{const m=l.current;if(!m)return;const g=window.HTMLInputElement.prototype,b=Object.getOwnPropertyDescriptor(g,"checked").set;if(d!==n&&b){const A=new Event("click",{bubbles:r});b.call(m,n),m.dispatchEvent(A)}},[d,n,r]),h.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:c,style:{...a.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Oq.displayName=Dme;function Cq(e){return e?"checked":"unchecked"}var kme=wq,Ime=Aq;function Uw({className:e,...t}){return h.jsx(kme,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:Ve("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:h.jsx(Ime,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:Ve("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var tj="Progress",nj=100,[Lme]=Ea(tj),[Bme,$me]=Lme(tj),jq=E.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:a,getValueLabel:o=qme,...l}=e;(a||a===0)&&!TL(a)&&console.error(zme(`${a}`,"Progress"));const c=TL(a)?a:nj;r!==null&&!NL(r,c)&&console.error(Ume(`${r}`,"Progress"));const d=NL(r,c)?r:null,f=kg(d)?o(d,c):void 0;return h.jsx(Bme,{scope:n,value:d,max:c,children:h.jsx(Fe.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":kg(d)?d:void 0,"aria-valuetext":f,role:"progressbar","data-state":Tq(d,c),"data-value":d??void 0,"data-max":c,...l,ref:t})})});jq.displayName=tj;var Eq="ProgressIndicator",_q=E.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,a=$me(Eq,n);return h.jsx(Fe.div,{"data-state":Tq(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...r,ref:t})});_q.displayName=Eq;function qme(e,t){return`${Math.round(e/t*100)}%`}function Tq(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function kg(e){return typeof e=="number"}function TL(e){return kg(e)&&!isNaN(e)&&e>0}function NL(e,t){return kg(e)&&!isNaN(e)&&e<=t&&e>=0}function zme(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${nj}\`.`}function Ume(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
||
- a positive number
|
||
- less than the value passed to \`max\` (or ${nj} if no \`max\` prop is set)
|
||
- \`null\` or \`undefined\` if the progress is indeterminate.
|
||
|
||
Defaulting to \`null\`.`}var Fme=jq,Kme=_q;function RL({className:e,value:t,...n}){return h.jsx(Fme,{"data-loc":"client/src/components/ui/progress.tsx:12","data-slot":"progress",className:Ve("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:h.jsx(Kme,{"data-loc":"client/src/components/ui/progress.tsx:20","data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}const Vi=[{jurisdiction:"CN",assetType:"RealEstate",ruleName:"不动产登记证要求",description:"中国境内房地产资产上链须提供由自然资源部门颁发的不动产权证书(不动产登记证),证书须在有效期内且无抵押冻结记录。",required:!0,tags:["CN","RealEstate","Document","Required","MNRLR"],ruleNameI18n:{zh:"不动产登记证要求",en:"Real Estate Registration Certificate Requirement",ar:"متطلبات شهادة تسجيل العقارات",ja:"不動産登記証要件",ko:"부동산 등기증 요건",fr:"Exigence de certificat d'enregistrement immobilier",ru:"Требование к свидетельству о регистрации недвижимости"},descriptionI18n:{zh:"中国境内房地产资产上链须提供由自然资源部门颁发的不动产权证书(不动产登记证),证书须在有效期内且无抵押冻结记录。",en:"Real estate assets on-chain in China must provide a real estate certificate issued by the natural resources authority. The certificate must be valid and free from mortgage or freeze records.",ar:"يجب على الأصول العقارية المسجلة على السلسلة في الصين تقديم شهادة عقارية صادرة عن سلطة الموارد الطبيعية. يجب أن تكون الشهادة سارية المفعول وخالية من سجلات الرهن أو التجميد.",ja:"中国国内の不動産資産をチェーンに登録するには、自然資源当局が発行した不動産証明書を提出する必要があります。証明書は有効期限内であり、抵当権や差押えの記録がないことが必要です。",ko:"중국 내 부동산 자산을 온체인 등록하려면 자연자원 당국이 발급한 부동산 증서를 제출해야 합니다. 증서는 유효 기간 내에 있어야 하며 저당 또는 동결 기록이 없어야 합니다.",fr:"Les actifs immobiliers enregistrés sur la chaîne en Chine doivent fournir un certificat immobilier délivré par l'autorité des ressources naturelles. Le certificat doit être valide et exempt de tout enregistrement d'hypothèque ou de gel.",ru:"Недвижимость, регистрируемая в блокчейне в Китае, должна предоставить свидетельство о праве на недвижимость, выданное органом природных ресурсов."}},{jurisdiction:"CN",assetType:"Securities",ruleName:"证监会备案要求",description:"中国境内证券类资产(股权、债权)上链须经中国证监会备案或核准,发行主体须为依法注册的境内法人,且不得面向非合格投资者公开募集。",required:!0,tags:["CN","Securities","CSRC","Registration","QualifiedInvestor"],ruleNameI18n:{zh:"证监会备案要求",en:"CSRC Registration Requirement",ar:"متطلبات تسجيل لجنة تنظيم الأوراق المالية الصينية",ja:"中国証券監督管理委員会登録要件",ko:"CSRC 등록 요건",fr:"Exigence d'enregistrement auprès de la CSRC",ru:"Требование регистрации в CSRC"},descriptionI18n:{zh:"中国境内证券类资产(股权、债权)上链须经中国证监会备案或核准,发行主体须为依法注册的境内法人,且不得面向非合格投资者公开募集。",en:"Securities assets (equity, debt) on-chain in China must be registered or approved by the CSRC. The issuing entity must be a legally registered domestic legal person and may not publicly solicit non-qualified investors.",ar:"يجب تسجيل أصول الأوراق المالية المسجلة على السلسلة في الصين أو الموافقة عليها من قبل CSRC.",ja:"中国国内の証券資産のチェーン登録には、CSRCへの登録または承認が必要です。",ko:"중국 내 증권 자산의 온체인 등록은 CSRC의 등록 또는 승인이 필요합니다.",fr:"Les actifs en valeurs mobilières enregistrés sur la chaîne en Chine doivent être enregistrés ou approuvés par la CSRC.",ru:"Ценные бумаги, регистрируемые в блокчейне в Китае, должны быть зарегистрированы или одобрены CSRC."}},{jurisdiction:"CN",assetType:"Fund",ruleName:"私募基金管理人登记要求",description:"中国境内私募基金类资产上链,基金管理人须在中国证券投资基金业协会(AMAC)完成登记,基金产品须完成备案,且须满足合格投资者认定标准。",required:!0,tags:["CN","Fund","AMAC","PrivateFund","QualifiedInvestor"],ruleNameI18n:{zh:"私募基金管理人登记要求",en:"Private Fund Manager Registration Requirement",ar:"متطلبات تسجيل مدير الصندوق الخاص",ja:"プライベートファンドマネージャー登録要件",ko:"사모펀드 운용사 등록 요건",fr:"Exigence d'enregistrement du gestionnaire de fonds privés",ru:"Требование регистрации управляющего частным фондом"},descriptionI18n:{zh:"中国境内私募基金类资产上链,基金管理人须在中国证券投资基金业协会(AMAC)完成登记,基金产品须完成备案,且须满足合格投资者认定标准。",en:"For private fund assets on-chain in China, the fund manager must be registered with AMAC, the fund product must be filed, and qualified investor standards must be met.",ar:"بالنسبة لأصول الصناديق الخاصة المسجلة على السلسلة في الصين، يجب أن يكون مدير الصندوق مسجلاً لدى AMAC.",ja:"中国国内のプライベートファンド資産のチェーン登録には、AMAcへの登録が必要です。",ko:"중국 내 사모펀드 자산의 온체인 등록 시 펀드 운용사는 AMAC에 등록되어야 합니다.",fr:"Pour les actifs de fonds privés enregistrés sur la chaîne en Chine, le gestionnaire de fonds doit être enregistré auprès de l'AMAC.",ru:"Для частных фондов в блокчейне в Китае управляющий фондом должен быть зарегистрирован в AMAC."}},{jurisdiction:"CN",assetType:"Bond",ruleName:"债券发行主体信用评级要求",description:"中国境内债券类资产上链,发行主体须经国内认可的信用评级机构评级,且评级结果不低于AA-,并须在上交所或深交所完成挂牌披露。",required:!0,tags:["CN","Bond","CreditRating","SSE","SZSE"],ruleNameI18n:{zh:"债券发行主体信用评级要求",en:"Bond Issuer Credit Rating Requirement",ar:"متطلبات التصنيف الائتماني لمصدر السندات",ja:"債券発行体信用格付け要件",ko:"채권 발행사 신용등급 요건",fr:"Exigence de notation de crédit de l'émetteur d'obligations",ru:"Требование к кредитному рейтингу эмитента облигаций"},descriptionI18n:{zh:"中国境内债券类资产上链,发行主体须经国内认可的信用评级机构评级,且评级结果不低于AA-,并须在上交所或深交所完成挂牌披露。",en:"Bond assets on-chain in China require the issuing entity to be rated by a domestically recognized credit rating agency with a rating of no less than AA-, and must complete listing disclosure on the Shanghai or Shenzhen Stock Exchange.",ar:"تتطلب أصول السندات المسجلة على السلسلة في الصين أن تحصل الجهة المصدرة على تصنيف لا يقل عن AA-.",ja:"中国国内の債券資産のチェーン登録には、AA-以上の格付けが必要です。",ko:"중국 내 채권 자산의 온체인 등록 시 AA- 이상의 신용등급이 필요합니다.",fr:"Les actifs obligataires en Chine exigent une notation d'au moins AA-.",ru:"Облигации в блокчейне в Китае требуют рейтинга не ниже AA-."}},{jurisdiction:"CN",assetType:"Commodity",ruleName:"大宗商品仓单核验要求",description:"中国境内大宗商品资产上链,须提供经交易所认可仓库出具的标准仓单,仓单须经第三方质检机构核验,且商品须存放于交易所指定监管仓库。",required:!0,tags:["CN","Commodity","WarehouseReceipt","SHFE","DCE"],ruleNameI18n:{zh:"大宗商品仓单核验要求",en:"Commodity Warehouse Receipt Verification Requirement",ar:"متطلبات التحقق من إيصال مستودع السلع",ja:"商品倉庫証券確認要件",ko:"원자재 창고 영수증 검증 요건",fr:"Exigence de vérification du récépissé d'entrepôt de marchandises",ru:"Требование к верификации складской расписки на товар"},descriptionI18n:{zh:"中国境内大宗商品资产上链,须提供经交易所认可仓库出具的标准仓单,仓单须经第三方质检机构核验。",en:"Commodity assets on-chain in China must provide standard warehouse receipts issued by exchange-approved warehouses, verified by a third-party quality inspection agency.",ar:"يجب على أصول السلع المسجلة على السلسلة في الصين تقديم إيصالات مستودع قياسية.",ja:"中国国内の商品資産のチェーン登録には、取引所認定倉庫の標準倉庫証券が必要です。",ko:"중국 내 원자재 자산의 온체인 등록 시 거래소 승인 창고의 표준 창고 영수증이 필요합니다.",fr:"Les actifs de marchandises en Chine doivent fournir des récépissés d'entrepôt standard.",ru:"Товарные активы в блокчейне в Китае должны предоставить стандартные складские расписки."}},{jurisdiction:"CN",assetType:"ALL",ruleName:"反洗钱KYC要求",description:"所有在中国境内上链的资产,发行方及持有人须完成实名认证(KYC),须满足《反洗钱法》及人民银行相关规定。",required:!0,tags:["CN","ALL","AML","KYC","PBOC"],ruleNameI18n:{zh:"反洗钱KYC要求",en:"Anti-Money Laundering KYC Requirement",ar:"متطلبات مكافحة غسيل الأموال KYC",ja:"マネーロンダリング防止KYC要件",ko:"자금세탁방지 KYC 요건",fr:"Exigence KYC anti-blanchiment d'argent",ru:"Требование KYC по противодействию отмыванию денег"},descriptionI18n:{zh:"所有在中国境内上链的资产,发行方及持有人须完成实名认证(KYC),须满足《反洗钱法》及人民银行相关规定。",en:"For all assets on-chain in China, issuers and holders must complete real-name authentication (KYC) in compliance with the Anti-Money Laundering Law and PBOC regulations.",ar:"يجب على المصدرين والحاملين إكمال مصادقة الاسم الحقيقي (KYC) وفقاً لقانون مكافحة غسيل الأموال.",ja:"中国国内でチェーンに登録されるすべての資産について、実名認証(KYC)を完了する必要があります。",ko:"중국 내 모든 온체인 자산에 대해 실명 인증(KYC)을 완료해야 합니다.",fr:"Pour tous les actifs enregistrés sur la chaîne en Chine, les émetteurs et détenteurs doivent compléter le KYC.",ru:"Для всех активов в блокчейне в Китае эмитенты и держатели должны пройти KYC."}},{jurisdiction:"HK",assetType:"Securities",ruleName:"SFC持牌机构审核要求",description:"香港证券类资产上链须经SFC持牌的第1类或第6类持牌机构进行尽职调查和审核,并须在SFC的认可交易所或平台进行交易。",required:!0,tags:["HK","Securities","SFC","License","DueDiligence"],ruleNameI18n:{zh:"SFC持牌机构审核要求",en:"SFC Licensed Institution Review Requirement",ar:"متطلبات مراجعة المؤسسة المرخصة من SFC",ja:"SFCライセンス機関審査要件",ko:"SFC 인가 기관 심사 요건",fr:"Exigence de révision par une institution agréée SFC",ru:"Требование проверки лицензированным учреждением SFC"},descriptionI18n:{zh:"香港证券类资产上链须经SFC持牌的第1类或第6类持牌机构进行尽职调查和审核,并须在SFC的认可交易所或平台进行交易。",en:"Securities assets on-chain in Hong Kong must undergo due diligence and review by SFC-licensed institutions (Type 1 or Type 6), and must be traded on SFC-recognized exchanges or platforms.",ar:"يجب أن تخضع أصول الأوراق المالية في هونغ كونغ للعناية الواجبة من قبل مؤسسات مرخصة من SFC.",ja:"香港の証券資産のチェーン登録には、SFCライセンス機関によるデューデリジェンスが必要です。",ko:"홍콩 증권 자산의 온체인 등록 시 SFC 인가 기관의 실사가 필요합니다.",fr:"Les actifs en valeurs mobilières à Hong Kong doivent faire l'objet d'une diligence raisonnable par des institutions agréées SFC.",ru:"Ценные бумаги в блокчейне в Гонконге должны пройти проверку учреждениями с лицензией SFC."}},{jurisdiction:"HK",assetType:"DigitalToken",ruleName:"VASP虚拟资产服务商牌照要求",description:"香港虚拟资产服务商(VASP)须向证监会申请牌照,须遵守《2022年打击洗钱及恐怖分子资金筹集(修订)条例》,仅可向专业投资者提供服务(除非获豁免)。",required:!0,tags:["HK","VirtualAsset","VASP","SFC","License"],ruleNameI18n:{zh:"VASP虚拟资产服务商牌照要求",en:"VASP Virtual Asset Service Provider License Requirement",ar:"متطلبات ترخيص مزود خدمة الأصول الافتراضية VASP",ja:"VASP仮想資産サービスプロバイダーライセンス要件",ko:"VASP 가상자산 서비스 제공자 라이선스 요건",fr:"Exigence de licence VASP pour les prestataires de services d'actifs virtuels",ru:"Требование лицензии VASP для поставщиков услуг виртуальных активов"},descriptionI18n:{zh:"香港虚拟资产服务商(VASP)须向证监会申请牌照,须遵守《2022年打击洗钱及恐怖分子资金筹集(修订)条例》。",en:"Virtual Asset Service Providers (VASPs) in Hong Kong must apply for a license from the SFC and comply with the Anti-Money Laundering and Counter-Terrorist Financing (Amendment) Ordinance 2022.",ar:"يجب على مزودي خدمات الأصول الافتراضية في هونغ كونغ التقدم بطلب للحصول على ترخيص من SFC.",ja:"香港の仮想資産サービスプロバイダーはSFCへのライセンス申請が必要です。",ko:"홍콩의 가상자산 서비스 제공자는 SFC에 라이선스를 신청해야 합니다.",fr:"Les prestataires de services d'actifs virtuels à Hong Kong doivent demander une licence auprès de la SFC.",ru:"Поставщики услуг виртуальных активов в Гонконге должны получить лицензию SFC."}},{jurisdiction:"HK",assetType:"RealEstate",ruleName:"香港土地注册处产权核验要求",description:"香港房地产资产上链须提供由土地注册处(Land Registry)出具的产权证明文件,须核验物业是否存在抵押、押记或法律纠纷,并须由持牌测量师出具物业估值报告。",required:!0,tags:["HK","RealEstate","LandRegistry","Valuation","Mortgage"],ruleNameI18n:{zh:"香港土地注册处产权核验要求",en:"Hong Kong Land Registry Title Verification Requirement",ar:"متطلبات التحقق من الملكية في سجل الأراضي في هونغ كونغ",ja:"香港土地登記処所有権確認要件",ko:"홍콩 토지등기소 소유권 검증 요건",fr:"Exigence de vérification du titre au registre foncier de Hong Kong",ru:"Требование к верификации права собственности в Земельном реестре Гонконга"},descriptionI18n:{zh:"香港房地产资产上链须提供由土地注册处出具的产权证明文件,须核验物业是否存在抵押、押记或法律纠纷,并须由持牌测量师出具物业估值报告。",en:"Hong Kong real estate assets on-chain must provide title documents from the Land Registry, verify whether the property has mortgages, charges, or legal disputes, and obtain a valuation report from a licensed surveyor.",ar:"يجب على الأصول العقارية في هونغ كونغ تقديم وثائق الملكية من سجل الأراضي.",ja:"香港の不動産資産のチェーン登録には、土地登記処の所有権文書の提出が必要です。",ko:"홍콩 부동산 자산의 온체인 등록 시 토지등기소의 소유권 문서를 제출해야 합니다.",fr:"Les actifs immobiliers à Hong Kong doivent fournir des documents de titre du Registre foncier.",ru:"Недвижимость в блокчейне в Гонконге должна предоставить документы о праве собственности из Земельного реестра."}},{jurisdiction:"HK",assetType:"Fund",ruleName:"SFC认可基金产品要求",description:"香港公募基金类资产上链须经SFC认可,基金须在香港注册或获SFC认可在香港销售,须满足《证券及期货条例》第104条的授权要求,并须委任SFC认可的受托人或保管人。",required:!0,tags:["HK","Fund","SFC","Authorization","Trustee"],ruleNameI18n:{zh:"SFC认可基金产品要求",en:"SFC Authorized Fund Product Requirement",ar:"متطلبات منتج الصندوق المعتمد من SFC",ja:"SFC認可ファンド商品要件",ko:"SFC 인가 펀드 상품 요건",fr:"Exigence de produit de fonds autorisé par la SFC",ru:"Требование к продукту фонда, авторизованному SFC"},descriptionI18n:{zh:"香港公募基金类资产上链须经SFC认可,须满足《证券及期货条例》第104条的授权要求,并须委任SFC认可的受托人或保管人。",en:"Public fund assets on-chain in Hong Kong must be authorized by the SFC, meet the authorization requirements under Section 104 of the Securities and Futures Ordinance, and appoint an SFC-approved trustee or custodian.",ar:"يجب أن تكون أصول الصناديق العامة المسجلة على السلسلة في هونغ كونغ معتمدة من SFC.",ja:"香港の公募ファンド資産のチェーン登録にはSFC認可が必要です。",ko:"홍콩 공모펀드 자산의 온체인 등록 시 SFC 인가가 필요합니다.",fr:"Les actifs de fonds publics à Hong Kong doivent être autorisés par la SFC.",ru:"Публичные фонды в блокчейне в Гонконге должны быть авторизованы SFC."}},{jurisdiction:"HK",assetType:"ALL",ruleName:"HKMA金管局AML/CFT合规要求",description:"香港所有金融机构和虚拟资产服务商须遵守香港金融管理局(HKMA)的AML/CFT指引,须实施客户尽职调查(CDD)、持续监控和可疑交易报告(STR)机制,须在发现可疑交易后尽快向联合财富情报组(JFIU)提交报告。",required:!0,tags:["HK","ALL","HKMA","AML","CFT","STR"],ruleNameI18n:{zh:"HKMA金管局AML/CFT合规要求",en:"HKMA AML/CFT Compliance Requirement",ar:"متطلبات الامتثال لمكافحة غسيل الأموال HKMA",ja:"HKMA AML/CFTコンプライアンス要件",ko:"HKMA AML/CFT 준수 요건",fr:"Exigence de conformité AML/CFT de la HKMA",ru:"Требование соответствия AML/CFT HKMA"},descriptionI18n:{zh:"香港所有金融机构须遵守HKMA的AML/CFT指引,须实施客户尽职调查(CDD)、持续监控和可疑交易报告(STR)机制。",en:"All financial institutions in Hong Kong must comply with HKMA's AML/CFT guidelines, implement CDD, ongoing monitoring, and STR mechanisms.",ar:"يجب على جميع المؤسسات المالية في هونغ كونغ الامتثال لإرشادات HKMA لمكافحة غسيل الأموال.",ja:"香港のすべての金融機関はHKMAのAML/CFTガイドラインを遵守する必要があります。",ko:"홍콩의 모든 금융 기관은 HKMA의 AML/CFT 지침을 준수해야 합니다.",fr:"Toutes les institutions financières à Hong Kong doivent se conformer aux directives AML/CFT de la HKMA.",ru:"Все финансовые учреждения в Гонконге должны соответствовать руководящим принципам AML/CFT HKMA."}},{jurisdiction:"SG",assetType:"Securities",ruleName:"MAS资本市场服务许可证要求",description:"新加坡证券类资产上链须由持有MAS颁发的资本市场服务(CMS)许可证的机构进行发行或交易,CMS许可证涵盖证券交易、基金管理、提供财务建议等活动,须满足MAS的财务要求和行为准则。",required:!0,tags:["SG","Securities","MAS","CMS","License"],ruleNameI18n:{zh:"MAS资本市场服务许可证要求",en:"MAS Capital Markets Services License Requirement",ar:"متطلبات ترخيص خدمات أسواق رأس المال MAS",ja:"MAS資本市場サービスライセンス要件",ko:"MAS 자본시장 서비스 라이선스 요건",fr:"Exigence de licence de services des marchés de capitaux MAS",ru:"Требование лицензии на услуги рынка капитала MAS"},descriptionI18n:{zh:"新加坡证券类资产上链须由持有MAS颁发的CMS许可证的机构进行发行或交易,须满足MAS的财务要求和行为准则。",en:"Securities assets on-chain in Singapore must be issued or traded by institutions holding a Capital Markets Services (CMS) license issued by MAS, meeting MAS financial requirements and codes of conduct.",ar:"يجب أن تُصدر أصول الأوراق المالية المسجلة على السلسلة في سنغافورة أو تُتداول من قبل مؤسسات تحمل ترخيص CMS الصادر عن MAS.",ja:"シンガポールの証券資産のチェーン登録には、MASが発行するCMSライセンスを保有する機関による発行または取引が必要です。",ko:"싱가포르 증권 자산의 온체인 등록 시 MAS가 발급한 CMS 라이선스를 보유한 기관이 발행 또는 거래해야 합니다.",fr:"Les actifs en valeurs mobilières à Singapour doivent être émis ou négociés par des institutions détenant une licence CMS délivrée par la MAS.",ru:"Ценные бумаги в блокчейне в Сингапуре должны выпускаться или торговаться учреждениями с лицензией CMS от MAS."}},{jurisdiction:"SG",assetType:"DigitalToken",ruleName:"MAS支付服务法数字代币许可要求",description:"新加坡数字代币服务商须根据《支付服务法》(PSA)向MAS申请主要支付机构(MPI)或标准支付机构(SPI)牌照,涵盖数字支付代币(DPT)服务,须满足AML/CFT要求和技术风险管理指引。",required:!0,tags:["SG","DigitalToken","MAS","PSA","DPT","MPI"],ruleNameI18n:{zh:"MAS支付服务法数字代币许可要求",en:"MAS Payment Services Act Digital Token License Requirement",ar:"متطلبات ترخيص الرمز الرقمي لقانون خدمات الدفع MAS",ja:"MAS決済サービス法デジタルトークンライセンス要件",ko:"MAS 지급서비스법 디지털 토큰 라이선스 요건",fr:"Exigence de licence de jeton numérique de la loi sur les services de paiement MAS",ru:"Требование лицензии на цифровые токены по Закону о платежных услугах MAS"},descriptionI18n:{zh:"新加坡数字代币服务商须根据《支付服务法》(PSA)向MAS申请主要支付机构(MPI)或标准支付机构(SPI)牌照,须满足AML/CFT要求和技术风险管理指引。",en:"Digital token service providers in Singapore must apply to MAS for a Major Payment Institution (MPI) or Standard Payment Institution (SPI) license under the Payment Services Act (PSA), meeting AML/CFT requirements and technology risk management guidelines.",ar:"يجب على مزودي خدمات الرمز الرقمي في سنغافورة التقدم بطلب للحصول على ترخيص MPI أو SPI من MAS بموجب قانون خدمات الدفع.",ja:"シンガポールのデジタルトークンサービスプロバイダーは、PSAに基づきMASにMPIまたはSPIライセンスを申請する必要があります。",ko:"싱가포르의 디지털 토큰 서비스 제공자는 지급서비스법(PSA)에 따라 MAS에 MPI 또는 SPI 라이선스를 신청해야 합니다.",fr:"Les prestataires de services de jetons numériques à Singapour doivent demander une licence MPI ou SPI à la MAS en vertu de la loi sur les services de paiement.",ru:"Поставщики услуг цифровых токенов в Сингапуре должны получить лицензию MPI или SPI от MAS в соответствии с Законом о платежных услугах."}},{jurisdiction:"SG",assetType:"RealEstate",ruleName:"新加坡IRAS印花税及产权登记要求",description:"新加坡房地产资产上链须提供由新加坡土地管理局(SLA)出具的产权证明,须完成印花税(Stamp Duty)缴纳并取得IRAS收据,外国人购置住宅须缴纳额外买方印花税(ABSD)。",required:!0,tags:["SG","RealEstate","SLA","IRAS","StampDuty","ABSD"],ruleNameI18n:{zh:"新加坡IRAS印花税及产权登记要求",en:"Singapore IRAS Stamp Duty and Title Registration Requirement",ar:"متطلبات ضريبة الدمغة IRAS وتسجيل الملكية في سنغافورة",ja:"シンガポールIRAS印紙税および所有権登録要件",ko:"싱가포르 IRAS 인지세 및 소유권 등록 요건",fr:"Exigence de droit de timbre IRAS et d'enregistrement de titre à Singapour",ru:"Требование к гербовому сбору IRAS и регистрации права собственности в Сингапуре"},descriptionI18n:{zh:"新加坡房地产资产上链须提供由SLA出具的产权证明,须完成印花税缴纳并取得IRAS收据,外国人购置住宅须缴纳额外买方印花税(ABSD)。",en:"Singapore real estate assets on-chain must provide title documents from SLA, complete stamp duty payment with IRAS receipt, and foreign buyers of residential properties must pay Additional Buyer's Stamp Duty (ABSD).",ar:"يجب على الأصول العقارية في سنغافورة تقديم وثائق الملكية من SLA وإتمام دفع ضريبة الدمغة.",ja:"シンガポールの不動産資産のチェーン登録には、SLAの所有権文書の提出と印紙税の支払いが必要です。",ko:"싱가포르 부동산 자산의 온체인 등록 시 SLA의 소유권 문서 제출과 인지세 납부가 필요합니다.",fr:"Les actifs immobiliers à Singapour doivent fournir des documents de titre de la SLA et compléter le paiement du droit de timbre.",ru:"Недвижимость в блокчейне в Сингапуре должна предоставить документы о праве собственности от SLA и оплатить гербовый сбор."}},{jurisdiction:"SG",assetType:"Fund",ruleName:"新加坡可变资本公司(VCC)基金结构要求",description:"新加坡基金类资产上链可采用可变资本公司(VCC)架构,须向ACRA注册并获MAS授权,VCC须委任持有CMS牌照的基金管理公司,须满足MAS的反洗钱指引和基金治理要求。",required:!0,tags:["SG","Fund","VCC","MAS","ACRA","FundManagement"],ruleNameI18n:{zh:"新加坡可变资本公司(VCC)基金结构要求",en:"Singapore Variable Capital Company (VCC) Fund Structure Requirement",ar:"متطلبات هيكل صندوق شركة رأس المال المتغير (VCC) في سنغافورة",ja:"シンガポール変動資本会社(VCC)ファンド構造要件",ko:"싱가포르 가변자본회사(VCC) 펀드 구조 요건",fr:"Exigence de structure de fonds VCC à Singapour",ru:"Требование к структуре фонда VCC в Сингапуре"},descriptionI18n:{zh:"新加坡基金类资产上链可采用VCC架构,须向ACRA注册并获MAS授权,须委任持有CMS牌照的基金管理公司,须满足MAS的反洗钱指引和基金治理要求。",en:"Fund assets on-chain in Singapore may adopt the VCC structure, requiring ACRA registration and MAS authorization, appointment of a CMS-licensed fund management company, and compliance with MAS AML guidelines and fund governance requirements.",ar:"يمكن لأصول الصناديق في سنغافورة اعتماد هيكل VCC مع تسجيل ACRA والحصول على تفويض MAS.",ja:"シンガポールのファンド資産のチェーン登録にはVCC構造の採用が可能で、ACRAへの登録とMAS認可が必要です。",ko:"싱가포르 펀드 자산의 온체인 등록 시 VCC 구조를 채택할 수 있으며 ACRA 등록과 MAS 승인이 필요합니다.",fr:"Les actifs de fonds à Singapour peuvent adopter la structure VCC, nécessitant l'enregistrement ACRA et l'autorisation MAS.",ru:"Фонды в блокчейне в Сингапуре могут использовать структуру VCC с регистрацией в ACRA и авторизацией MAS."}},{jurisdiction:"SG",assetType:"ALL",ruleName:"新加坡MAS AML/CFT通知要求",description:"新加坡所有持牌金融机构须遵守MAS的AML/CFT通知(MAS Notice 626/1014等),须实施客户尽职调查(CDD)、增强尽职调查(EDD)、持续监控和可疑交易报告(STR)机制,须向新加坡警察部队(SPF)辖下的可疑交易报告办公室(STRO)提交STR。",required:!0,tags:["SG","ALL","MAS","AML","CFT","STRO","STR"],ruleNameI18n:{zh:"新加坡MAS AML/CFT通知要求",en:"Singapore MAS AML/CFT Notice Requirement",ar:"متطلبات إشعار MAS لمكافحة غسيل الأموال في سنغافورة",ja:"シンガポールMAS AML/CFT通知要件",ko:"싱가포르 MAS AML/CFT 통지 요건",fr:"Exigence de notification AML/CFT de la MAS à Singapour",ru:"Требование уведомления MAS по AML/CFT в Сингапуре"},descriptionI18n:{zh:"新加坡所有持牌金融机构须遵守MAS的AML/CFT通知,须实施CDD、EDD、持续监控和STR机制,须向STRO提交可疑交易报告。",en:"All licensed financial institutions in Singapore must comply with MAS AML/CFT notices, implement CDD, EDD, ongoing monitoring, and STR mechanisms, and submit STRs to STRO.",ar:"يجب على جميع المؤسسات المالية المرخصة في سنغافورة الامتثال لإشعارات MAS لمكافحة غسيل الأموال.",ja:"シンガポールのすべての持牌金融機関はMASのAML/CFT通知を遵守する必要があります。",ko:"싱가포르의 모든 인가 금융 기관은 MAS의 AML/CFT 통지를 준수해야 합니다.",fr:"Toutes les institutions financières agréées à Singapour doivent se conformer aux avis AML/CFT de la MAS.",ru:"Все лицензированные финансовые учреждения в Сингапуре должны соответствовать уведомлениям MAS по AML/CFT."}},{jurisdiction:"US",assetType:"Securities",ruleName:"SEC证券注册或豁免要求",description:"美国证券类资产上链须向SEC注册(Form S-1/S-11等)或符合豁免条件(Reg D Rule 506(b)/506(c)、Reg A+、Reg CF等),发行人须满足SEC的披露要求,向合格投资者(Accredited Investor)或非合格投资者(须满足众筹限额)发行。",required:!0,tags:["US","Securities","SEC","RegD","AccreditedInvestor"],ruleNameI18n:{zh:"SEC证券注册或豁免要求",en:"SEC Securities Registration or Exemption Requirement",ar:"متطلبات تسجيل الأوراق المالية أو الإعفاء من SEC",ja:"SEC証券登録または免除要件",ko:"SEC 증권 등록 또는 면제 요건",fr:"Exigence d'enregistrement ou d'exemption de valeurs mobilières SEC",ru:"Требование регистрации ценных бумаг или освобождения от регистрации SEC"},descriptionI18n:{zh:"美国证券类资产上链须向SEC注册或符合豁免条件(Reg D/Reg A+/Reg CF等),发行人须满足SEC的披露要求,向合格投资者或非合格投资者发行。",en:"Securities assets on-chain in the US must be registered with the SEC (Form S-1/S-11, etc.) or qualify for exemptions (Reg D Rule 506(b)/506(c), Reg A+, Reg CF, etc.), with issuers meeting SEC disclosure requirements.",ar:"يجب تسجيل أصول الأوراق المالية المسجلة على السلسلة في الولايات المتحدة لدى SEC أو استيفاء شروط الإعفاء.",ja:"米国の証券資産のチェーン登録には、SECへの登録または免除条件(Reg D/Reg A+/Reg CFなど)の充足が必要です。",ko:"미국 증권 자산의 온체인 등록 시 SEC 등록 또는 면제 조건(Reg D/Reg A+/Reg CF 등) 충족이 필요합니다.",fr:"Les actifs en valeurs mobilières aux États-Unis doivent être enregistrés auprès de la SEC ou bénéficier d'exemptions (Reg D/Reg A+/Reg CF, etc.).",ru:"Ценные бумаги в блокчейне в США должны быть зарегистрированы в SEC или соответствовать условиям освобождения от регистрации."}},{jurisdiction:"US",assetType:"RealEstate",ruleName:"美国房地产REIT合规及产权保险要求",description:"美国房地产资产上链须提供由产权保险公司(Title Insurance Company)出具的产权保险单,须完成县/市级产权登记,若采用REIT结构须满足IRS的REIT资格测试(75%资产测试、75%收入测试、100股东规则等)。",required:!0,tags:["US","RealEstate","TitleInsurance","REIT","IRS"],ruleNameI18n:{zh:"美国房地产REIT合规及产权保险要求",en:"US Real Estate REIT Compliance and Title Insurance Requirement",ar:"متطلبات امتثال REIT العقاري الأمريكي وتأمين الملكية",ja:"米国不動産REIT準拠および所有権保険要件",ko:"미국 부동산 REIT 준수 및 소유권 보험 요건",fr:"Exigence de conformité REIT immobilier américain et d'assurance titre",ru:"Требование соответствия REIT и страхования права собственности в США"},descriptionI18n:{zh:"美国房地产资产上链须提供产权保险单,须完成县/市级产权登记,若采用REIT结构须满足IRS的REIT资格测试。",en:"US real estate assets on-chain must provide title insurance policies, complete county/city-level title registration, and if using REIT structure, must meet IRS REIT qualification tests.",ar:"يجب على الأصول العقارية في الولايات المتحدة تقديم وثائق تأمين الملكية وإتمام تسجيل الملكية على مستوى المقاطعة.",ja:"米国の不動産資産のチェーン登録には、所有権保険証書の提出と郡/市レベルの所有権登録が必要です。",ko:"미국 부동산 자산의 온체인 등록 시 소유권 보험 증서 제출과 군/시 수준의 소유권 등록이 필요합니다.",fr:"Les actifs immobiliers aux États-Unis doivent fournir des polices d'assurance titre et compléter l'enregistrement du titre au niveau du comté.",ru:"Недвижимость в блокчейне в США должна предоставить полисы страхования права собственности и завершить регистрацию права собственности на уровне округа."}},{jurisdiction:"US",assetType:"ALL",ruleName:"FinCEN反洗钱BSA合规要求",description:"美国所有金融机构须遵守《银行保密法》(BSA)及FinCEN的AML合规要求,须建立AML合规计划(包括书面政策、内部控制、独立测试、指定合规官员和持续培训),须向FinCEN提交可疑活动报告(SAR)和货币交易报告(CTR)。",required:!0,tags:["US","ALL","FinCEN","BSA","AML","SAR","CTR"],ruleNameI18n:{zh:"FinCEN反洗钱BSA合规要求",en:"FinCEN Anti-Money Laundering BSA Compliance Requirement",ar:"متطلبات الامتثال لمكافحة غسيل الأموال BSA من FinCEN",ja:"FinCEN マネーロンダリング防止BSAコンプライアンス要件",ko:"FinCEN 자금세탁방지 BSA 준수 요건",fr:"Exigence de conformité AML BSA de FinCEN",ru:"Требование соответствия AML BSA FinCEN"},descriptionI18n:{zh:"美国所有金融机构须遵守BSA及FinCEN的AML合规要求,须建立AML合规计划,须向FinCEN提交SAR和CTR。",en:"All US financial institutions must comply with the Bank Secrecy Act (BSA) and FinCEN AML requirements, establish AML compliance programs, and submit SARs and CTRs to FinCEN.",ar:"يجب على جميع المؤسسات المالية الأمريكية الامتثال لقانون السرية المصرفية (BSA) ومتطلبات AML من FinCEN.",ja:"米国のすべての金融機関はBSAおよびFinCENのAML要件を遵守し、AMLコンプライアンスプログラムを確立する必要があります。",ko:"미국의 모든 금융 기관은 BSA 및 FinCEN의 AML 요건을 준수하고 AML 준수 프로그램을 수립해야 합니다.",fr:"Toutes les institutions financières américaines doivent se conformer au BSA et aux exigences AML de FinCEN.",ru:"Все финансовые учреждения США должны соответствовать BSA и требованиям AML FinCEN."}},{jurisdiction:"US",assetType:"DigitalToken",ruleName:"CFTC/SEC数字资产监管分类要求",description:"美国数字资产须明确监管分类:若被认定为证券(Howey Test),须遵守SEC监管;若被认定为商品(如比特币、以太坊),须遵守CFTC监管。发行人须进行法律分析并取得合规意见书,须遵守各州货币传输许可证(Money Transmitter License)要求。",required:!0,tags:["US","DigitalToken","SEC","CFTC","HoweyTest","MTL"],ruleNameI18n:{zh:"CFTC/SEC数字资产监管分类要求",en:"CFTC/SEC Digital Asset Regulatory Classification Requirement",ar:"متطلبات التصنيف التنظيمي للأصول الرقمية CFTC/SEC",ja:"CFTC/SECデジタル資産規制分類要件",ko:"CFTC/SEC 디지털 자산 규제 분류 요건",fr:"Exigence de classification réglementaire des actifs numériques CFTC/SEC",ru:"Требование к регуляторной классификации цифровых активов CFTC/SEC"},descriptionI18n:{zh:"美国数字资产须明确监管分类:若被认定为证券(Howey Test),须遵守SEC监管;若被认定为商品,须遵守CFTC监管。发行人须进行法律分析并取得合规意见书。",en:"US digital assets must have clear regulatory classification: if deemed securities (Howey Test), must comply with SEC regulation; if deemed commodities, must comply with CFTC regulation. Issuers must conduct legal analysis and obtain compliance opinions.",ar:"يجب أن يكون للأصول الرقمية الأمريكية تصنيف تنظيمي واضح: إذا اعتُبرت أوراقاً مالية، فيجب الامتثال لرقابة SEC.",ja:"米国のデジタル資産は明確な規制分類が必要で、証券と判断された場合はSEC規制、商品と判断された場合はCFTC規制に従う必要があります。",ko:"미국 디지털 자산은 명확한 규제 분류가 필요하며 증권으로 판단되면 SEC 규제를, 상품으로 판단되면 CFTC 규제를 따라야 합니다.",fr:"Les actifs numériques américains doivent avoir une classification réglementaire claire: si considérés comme des valeurs mobilières, doivent se conformer à la réglementation SEC.",ru:"Цифровые активы в США должны иметь четкую регуляторную классификацию: если признаны ценными бумагами, должны соответствовать регулированию SEC."}},{jurisdiction:"US",assetType:"Fund",ruleName:"美国SEC投资顾问法注册要求",description:"管理资产超过1.1亿美元的美国基金管理人须向SEC注册为投资顾问(RIA),须遵守《投资顾问法》的信义义务、披露要求(Form ADV)和反欺诈条款,须建立合规计划并委任首席合规官(CCO)。",required:!0,tags:["US","Fund","SEC","RIA","InvestmentAdvisers","FormADV"],ruleNameI18n:{zh:"美国SEC投资顾问法注册要求",en:"US SEC Investment Advisers Act Registration Requirement",ar:"متطلبات تسجيل قانون مستشاري الاستثمار SEC الأمريكي",ja:"米国SEC投資顧問法登録要件",ko:"미국 SEC 투자자문법 등록 요건",fr:"Exigence d'enregistrement de la loi sur les conseillers en investissement SEC américaine",ru:"Требование регистрации по Закону об инвестиционных консультантах SEC США"},descriptionI18n:{zh:"管理资产超过1.1亿美元的美国基金管理人须向SEC注册为投资顾问(RIA),须遵守《投资顾问法》的信义义务、披露要求和反欺诈条款。",en:"US fund managers with AUM exceeding USD 110 million must register with the SEC as Registered Investment Advisers (RIA), comply with fiduciary duties, disclosure requirements (Form ADV), and anti-fraud provisions of the Investment Advisers Act.",ar:"يجب على مديري الصناديق الأمريكيين الذين تتجاوز أصولهم المُدارة 110 مليون دولار التسجيل لدى SEC كمستشارين استثماريين مسجلين.",ja:"運用資産が1.1億ドルを超える米国ファンドマネージャーはSECに登録投資顧問(RIA)として登録する必要があります。",ko:"운용자산이 1억 1천만 달러를 초과하는 미국 펀드 운용사는 SEC에 등록 투자자문사(RIA)로 등록해야 합니다.",fr:"Les gestionnaires de fonds américains avec des actifs sous gestion dépassant 110 millions USD doivent s'enregistrer auprès de la SEC en tant que conseillers en investissement enregistrés.",ru:"Управляющие фондами США с AUM более 110 млн долларов должны зарегистрироваться в SEC в качестве зарегистрированных инвестиционных консультантов."}},{jurisdiction:"EU",assetType:"DigitalToken",ruleName:"MiCA加密资产市场法规合规要求",description:"欧盟数字资产须遵守《加密资产市场法规》(MiCA,EU 2023/1114),加密资产服务提供商(CASP)须向成员国主管机构申请授权,资产参考代币(ART)和电子货币代币(EMT)发行人须满足额外资本和储备要求,须提供白皮书披露文件。",required:!0,tags:["EU","DigitalToken","MiCA","CASP","ART","EMT"],ruleNameI18n:{zh:"MiCA加密资产市场法规合规要求",en:"MiCA Markets in Crypto-Assets Regulation Compliance Requirement",ar:"متطلبات الامتثال للائحة أسواق الأصول المشفرة MiCA",ja:"MiCA暗号資産市場規制コンプライアンス要件",ko:"MiCA 암호자산 시장 규정 준수 요건",fr:"Exigence de conformité au règlement MiCA sur les marchés de crypto-actifs",ru:"Требование соответствия регламенту MiCA о рынках криптоактивов"},descriptionI18n:{zh:"欧盟数字资产须遵守MiCA法规,CASP须向成员国主管机构申请授权,ART和EMT发行人须满足额外资本和储备要求,须提供白皮书披露文件。",en:"EU digital assets must comply with MiCA (EU 2023/1114). CASPs must obtain authorization from national competent authorities. ART and EMT issuers must meet additional capital and reserve requirements and provide white paper disclosure documents.",ar:"يجب على الأصول الرقمية في الاتحاد الأوروبي الامتثال للائحة MiCA. يجب على مزودي خدمات الأصول المشفرة الحصول على تفويض من السلطات الوطنية المختصة.",ja:"EU のデジタル資産はMiCA規制を遵守する必要があります。CASPは各国主管当局から認可を取得する必要があります。",ko:"EU 디지털 자산은 MiCA 규정을 준수해야 합니다. CASP는 국가 관할 당국으로부터 승인을 받아야 합니다.",fr:"Les actifs numériques de l'UE doivent se conformer au règlement MiCA. Les CASP doivent obtenir une autorisation des autorités nationales compétentes.",ru:"Цифровые активы ЕС должны соответствовать регламенту MiCA. CASP должны получить авторизацию от национальных компетентных органов."}},{jurisdiction:"EU",assetType:"Securities",ruleName:"欧盟MiFID II金融工具市场指令合规",description:"欧盟证券类资产上链须遵守《金融工具市场指令II》(MiFID II),投资公司须向成员国主管机构申请授权,须满足最佳执行义务、客户分类(零售/专业/合格对手方)和产品治理要求,须遵守ESMA的技术标准。",required:!0,tags:["EU","Securities","MiFID2","ESMA","BestExecution"],ruleNameI18n:{zh:"欧盟MiFID II金融工具市场指令合规",en:"EU MiFID II Markets in Financial Instruments Directive Compliance",ar:"الامتثال لتوجيه أسواق الأدوات المالية MiFID II في الاتحاد الأوروبي",ja:"EU MiFID II金融商品市場指令準拠",ko:"EU MiFID II 금융상품 시장 지침 준수",fr:"Conformité à la directive MiFID II sur les marchés d'instruments financiers de l'UE",ru:"Соответствие директиве MiFID II о рынках финансовых инструментов ЕС"},descriptionI18n:{zh:"欧盟证券类资产上链须遵守MiFID II,投资公司须向成员国主管机构申请授权,须满足最佳执行义务、客户分类和产品治理要求。",en:"EU securities assets on-chain must comply with MiFID II. Investment firms must obtain authorization from national competent authorities, meet best execution obligations, client categorization, and product governance requirements.",ar:"يجب على أصول الأوراق المالية في الاتحاد الأوروبي الامتثال لـ MiFID II. يجب على شركات الاستثمار الحصول على تفويض من السلطات الوطنية المختصة.",ja:"EUの証券資産のチェーン登録にはMiFID IIの遵守が必要で、投資会社は各国主管当局から認可を取得する必要があります。",ko:"EU 증권 자산의 온체인 등록 시 MiFID II를 준수해야 하며 투자회사는 국가 관할 당국으로부터 승인을 받아야 합니다.",fr:"Les actifs en valeurs mobilières de l'UE doivent se conformer à MiFID II. Les entreprises d'investissement doivent obtenir une autorisation des autorités nationales compétentes.",ru:"Ценные бумаги в блокчейне в ЕС должны соответствовать MiFID II. Инвестиционные компании должны получить авторизацию от национальных компетентных органов."}},{jurisdiction:"EU",assetType:"ALL",ruleName:"欧盟GDPR数据保护合规要求",description:"在欧盟运营的区块链资产平台须遵守《通用数据保护条例》(GDPR),须明确数据处理的法律依据,须保障数据主体的访问权、更正权、删除权(被遗忘权),须在72小时内向监管机构报告数据泄露事件,须委任数据保护官(DPO)(如适用)。",required:!0,tags:["EU","ALL","GDPR","DataProtection","DPO","DataBreach"],ruleNameI18n:{zh:"欧盟GDPR数据保护合规要求",en:"EU GDPR Data Protection Compliance Requirement",ar:"متطلبات الامتثال لحماية البيانات GDPR في الاتحاد الأوروبي",ja:"EU GDPR データ保護コンプライアンス要件",ko:"EU GDPR 데이터 보호 준수 요건",fr:"Exigence de conformité à la protection des données GDPR de l'UE",ru:"Требование соответствия GDPR ЕС по защите данных"},descriptionI18n:{zh:"在欧盟运营的区块链资产平台须遵守GDPR,须明确数据处理的法律依据,须保障数据主体权利,须在72小时内报告数据泄露,须委任DPO(如适用)。",en:"Blockchain asset platforms operating in the EU must comply with GDPR, establish legal bases for data processing, guarantee data subject rights, report data breaches within 72 hours, and appoint a DPO where applicable.",ar:"يجب على منصات الأصول على السلسلة العاملة في الاتحاد الأوروبي الامتثال للائحة GDPR.",ja:"EUで運営するブロックチェーン資産プラットフォームはGDPRを遵守する必要があります。",ko:"EU에서 운영되는 블록체인 자산 플랫폼은 GDPR을 준수해야 합니다.",fr:"Les plateformes d'actifs blockchain opérant dans l'UE doivent se conformer au RGPD.",ru:"Платформы блокчейн-активов, работающие в ЕС, должны соответствовать GDPR."}},{jurisdiction:"EU",assetType:"Fund",ruleName:"欧盟AIFMD另类投资基金管理人指令合规",description:"欧盟另类投资基金管理人(AIFM)须向成员国主管机构申请授权,须满足《另类投资基金管理人指令》(AIFMD)的资本要求(不低于12.5万欧元固定资本加管理资产的0.02%),须委任存管人,须遵守杠杆限制和报告要求。",required:!0,tags:["EU","Fund","AIFMD","AIFM","Depositary","Leverage"],ruleNameI18n:{zh:"欧盟AIFMD另类投资基金管理人指令合规",en:"EU AIFMD Alternative Investment Fund Managers Directive Compliance",ar:"الامتثال لتوجيه مديري صناديق الاستثمار البديلة AIFMD في الاتحاد الأوروبي",ja:"EU AIFMD オルタナティブ投資ファンドマネージャー指令準拠",ko:"EU AIFMD 대안 투자 펀드 관리자 지침 준수",fr:"Conformité à la directive AIFMD sur les gestionnaires de fonds d'investissement alternatifs de l'UE",ru:"Соответствие директиве AIFMD ЕС об управляющих альтернативными инвестиционными фондами"},descriptionI18n:{zh:"欧盟AIFM须向成员国主管机构申请授权,须满足AIFMD的资本要求,须委任存管人,须遵守杠杆限制和报告要求。",en:"EU Alternative Investment Fund Managers (AIFMs) must obtain authorization from national competent authorities, meet AIFMD capital requirements, appoint a depositary, and comply with leverage restrictions and reporting requirements.",ar:"يجب على مديري صناديق الاستثمار البديلة في الاتحاد الأوروبي الحصول على تفويض من السلطات الوطنية المختصة.",ja:"EUのAIFMは各国主管当局から認可を取得し、AIFMDの資本要件を満たし、保管人を委任する必要があります。",ko:"EU의 AIFM은 국가 관할 당국으로부터 승인을 받고 AIFMD 자본 요건을 충족하며 보관인을 임명해야 합니다.",fr:"Les gestionnaires de fonds d'investissement alternatifs (AIFM) de l'UE doivent obtenir une autorisation des autorités nationales compétentes.",ru:"Управляющие альтернативными инвестиционными фондами (AIFM) в ЕС должны получить авторизацию от национальных компетентных органов."}},{jurisdiction:"AE",assetType:"RealEstate",ruleName:"迪拜DLD产权证书及RERA注册要求",description:"迪拜房地产资产上链须提供迪拜土地局(DLD)颁发的产权证书(Title Deed),并须经RERA注册的持牌房地产经纪人进行物业评估。外国投资者购置房产须满足指定区域(Freehold Areas)限制,并须完成DLD的外国所有权登记。",required:!0,tags:["AE","RealEstate","DLD","RERA","Dubai","ForeignOwnership"],ruleNameI18n:{zh:"迪拜DLD产权证书及RERA注册要求",en:"Dubai DLD Title Deed and RERA Registration Requirement",ar:"متطلبات سند الملكية DLD وتسجيل RERA في دبي",ja:"ドバイDLD所有権証書およびRERA登録要件",ko:"두바이 DLD 소유권 증서 및 RERA 등록 요건",fr:"Exigence de titre de propriété DLD et d'enregistrement RERA à Dubaï",ru:"Требование к свидетельству о праве собственности DLD и регистрации RERA в Дубае"},descriptionI18n:{zh:"迪拜房地产资产上链须提供DLD颁发的产权证书,并须经RERA注册的持牌房地产经纪人进行物业评估。外国投资者须满足Freehold Areas限制并完成DLD外国所有权登记。",en:"Dubai real estate assets on-chain must provide a Title Deed issued by the Dubai Land Department (DLD), and must be assessed by a RERA-licensed real estate broker. Foreign investors must comply with Freehold Area restrictions and complete DLD's foreign ownership registration.",ar:"يجب على الأصول العقارية في دبي تقديم سند ملكية صادر عن دائرة الأراضي والأملاك في دبي (DLD).",ja:"ドバイの不動産資産のチェーン登録には、DLDが発行した所有権証書の提出とRERA登録ブローカーによる物件評価が必要です。",ko:"두바이 부동산 자산의 온체인 등록 시 DLD가 발급한 소유권 증서 제출과 RERA 등록 중개인의 물건 평가가 필요합니다.",fr:"Les actifs immobiliers de Dubaï doivent fournir un titre de propriété délivré par le DLD et être évalués par un courtier immobilier agréé RERA.",ru:"Недвижимость Дубая в блокчейне должна предоставить свидетельство о праве собственности от DLD и пройти оценку брокером, лицензированным RERA."}},{jurisdiction:"AE",assetType:"DigitalToken",ruleName:"迪拜VARA虚拟资产监管局合规",description:"在迪拜(DIFC以外)从事虚拟资产业务须向VARA申请牌照,涵盖虚拟资产交易所、经纪商、托管服务商等。VARA牌照分为MVP阶段和全面运营阶段,须满足资本充足率、网络安全和AML/CFT要求。",required:!0,tags:["AE","VirtualAsset","VARA","Dubai","License","AML"],ruleNameI18n:{zh:"迪拜VARA虚拟资产监管局合规",en:"Dubai VARA Virtual Assets Regulatory Authority Compliance",ar:"الامتثال لهيئة تنظيم الأصول الافتراضية VARA في دبي",ja:"ドバイVARA仮想資産規制当局準拠",ko:"두바이 VARA 가상자산 규제 기관 준수",fr:"Conformité à l'autorité de réglementation des actifs virtuels VARA de Dubaï",ru:"Соответствие требованиям Управления по регулированию виртуальных активов VARA Дубая"},descriptionI18n:{zh:"在迪拜(DIFC以外)从事虚拟资产业务须向VARA申请牌照,涵盖虚拟资产交易所、经纪商、托管服务商等。须满足资本充足率、网络安全和AML/CFT要求。",en:"Conducting virtual asset business in Dubai (outside DIFC) requires a VARA license, covering virtual asset exchanges, brokers, custodians, and more. Requirements include capital adequacy, cybersecurity, and AML/CFT compliance.",ar:"يتطلب ممارسة أعمال الأصول الافتراضية في دبي (خارج DIFC) الحصول على ترخيص VARA.",ja:"ドバイ(DIFC以外)での仮想資産業務にはVARAライセンスが必要です。",ko:"두바이(DIFC 외)에서 가상자산 사업을 수행하려면 VARA 라이선스가 필요합니다.",fr:"L'exercice d'activités d'actifs virtuels à Dubaï (hors DIFC) nécessite une licence VARA.",ru:"Ведение бизнеса с виртуальными активами в Дубае (за пределами DIFC) требует лицензии VARA."}},{jurisdiction:"AE",assetType:"Securities",ruleName:"ADGM/FSRA金融服务监管局合规",description:"在阿布扎比全球市场(ADGM)从事证券类资产上链须向FSRA申请相应类别的金融服务许可证(FSP),须满足FSRA的资本充足率、适当人员(Fit and Proper)及披露要求。",required:!0,tags:["AE","Securities","ADGM","FSRA","FSP","AbuDhabi"],ruleNameI18n:{zh:"ADGM/FSRA金融服务监管局合规",en:"ADGM/FSRA Financial Services Regulatory Authority Compliance",ar:"الامتثال لهيئة الخدمات المالية التنظيمية ADGM/FSRA",ja:"ADGM/FSRA金融サービス規制当局準拠",ko:"ADGM/FSRA 금융서비스 규제 기관 준수",fr:"Conformité à l'autorité de réglementation des services financiers ADGM/FSRA",ru:"Соответствие требованиям Управления по регулированию финансовых услуг ADGM/FSRA"},descriptionI18n:{zh:"在ADGM从事证券类资产上链须向FSRA申请相应类别的FSP,须满足FSRA的资本充足率、适当人员及披露要求。",en:"Securities asset on-chain activities in ADGM require the appropriate Financial Services Permission (FSP) from FSRA, meeting capital adequacy, Fit and Proper, and disclosure requirements.",ar:"يتطلب الانخراط في أنشطة الأصول الأمنية على السلسلة في ADGM الحصول على FSP المناسب من FSRA.",ja:"ADGMでの証券資産のチェーン登録活動にはFSRAからのFSPが必要です。",ko:"ADGM에서 증권 자산 온체인 활동에 참여하려면 FSRA로부터 FSP를 신청해야 합니다.",fr:"Les activités d'actifs en valeurs mobilières sur la chaîne dans l'ADGM nécessitent une FSP appropriée de la FSRA.",ru:"Деятельность по регистрации ценных бумаг в блокчейне в ADGM требует соответствующего разрешения FSP от FSRA."}},{jurisdiction:"AE",assetType:"ALL",ruleName:"阿联酋AML/CFT反洗钱合规要求",description:"在阿联酋运营的区块链资产平台须遵守《联邦第20号法令》(2018年反洗钱法)及FIU的相关规定,须向中央银行或相关监管机构注册,实施CDD和EDD程序,并须在发现可疑交易后24小时内向FIU提交STR。",required:!0,tags:["AE","ALL","AML","CFT","FIU","CDD","STR"],ruleNameI18n:{zh:"阿联酋AML/CFT反洗钱合规要求",en:"UAE AML/CFT Anti-Money Laundering Compliance Requirement",ar:"متطلبات الامتثال لمكافحة غسيل الأموال وتمويل الإرهاب في الإمارات",ja:"アラブ首長国連邦AML/CFTマネーロンダリング防止コンプライアンス要件",ko:"UAE AML/CFT 자금세탁방지 준수 요건",fr:"Exigence de conformité AML/CFT anti-blanchiment des Émirats arabes unis",ru:"Требование соответствия ОАЭ по противодействию отмыванию денег AML/CFT"},descriptionI18n:{zh:"在阿联酋运营的区块链资产平台须遵守《联邦第20号法令》(2018年反洗钱法)及FIU规定,须实施CDD和EDD程序,并须在24小时内向FIU提交STR。",en:"Blockchain asset platforms in the UAE must comply with Federal Decree-Law No. 20 of 2018 (AML Law) and FIU regulations, implement CDD and EDD procedures, and submit STRs to the FIU within 24 hours.",ar:"يجب على منصات الأصول على السلسلة في الإمارات الامتثال للمرسوم الاتحادي بقانون رقم 20 لعام 2018 ولوائح FIU.",ja:"アラブ首長国連邦で運営するブロックチェーン資産プラットフォームは2018年連邦法令第20号とFIU規制を遵守する必要があります。",ko:"UAE에서 운영되는 블록체인 자산 플랫폼은 2018년 연방 법령 제20호와 FIU 규정을 준수해야 합니다.",fr:"Les plateformes d'actifs blockchain aux Émirats arabes unis doivent se conformer au Décret-loi fédéral n° 20 de 2018 et aux réglementations FIU.",ru:"Платформы блокчейн-активов в ОАЭ должны соответствовать Федеральному декрету-закону № 20 от 2018 года и нормативным актам FIU."}},{jurisdiction:"AE",assetType:"Fund",ruleName:"DIFC/DFSA基金管理合规要求",description:"在迪拜国际金融中心(DIFC)从事基金管理须向DFSA申请基金管理(FM)类别的授权,须满足最低资本要求(不低于50万美元),须委任合规官和风险管理官,并须定期向DFSA提交财务报告和合规报告。",required:!0,tags:["AE","Fund","DIFC","DFSA","FundManagement","Dubai"],ruleNameI18n:{zh:"DIFC/DFSA基金管理合规要求",en:"DIFC/DFSA Fund Management Compliance Requirement",ar:"متطلبات الامتثال لإدارة الصناديق DIFC/DFSA",ja:"DIFC/DFSAファンド管理コンプライアンス要件",ko:"DIFC/DFSA 펀드 관리 준수 요건",fr:"Exigence de conformité DIFC/DFSA pour la gestion de fonds",ru:"Требование соответствия DIFC/DFSA по управлению фондами"},descriptionI18n:{zh:"在DIFC从事基金管理须向DFSA申请FM类别的授权,须满足最低资本要求(不低于50万美元),须委任合规官和风险管理官,并须定期向DFSA提交报告。",en:"Fund management activities in DIFC require DFSA authorization under the Fund Management (FM) category, meeting minimum capital requirements (no less than USD 500,000), appointing compliance and risk management officers, and regularly submitting reports to DFSA.",ar:"تتطلب أنشطة إدارة الصناديق في DIFC الحصول على تفويض DFSA ضمن فئة FM.",ja:"DIFCでのファンド管理活動にはDFSAからFMカテゴリの認可が必要です。",ko:"DIFC에서의 펀드 관리 활동은 DFSA로부터 FM 범주의 승인이 필요합니다.",fr:"Les activités de gestion de fonds dans le DIFC nécessitent une autorisation DFSA dans la catégorie FM.",ru:"Деятельность по управлению фондами в DIFC требует авторизации DFSA по категории FM."}}],Ho={total:Vi.length,byJurisdiction:{CN:Vi.filter(e=>e.jurisdiction==="CN").length,HK:Vi.filter(e=>e.jurisdiction==="HK").length,SG:Vi.filter(e=>e.jurisdiction==="SG").length,US:Vi.filter(e=>e.jurisdiction==="US").length,EU:Vi.filter(e=>e.jurisdiction==="EU").length,AE:Vi.filter(e=>e.jurisdiction==="AE").length}},ML=["CN","HK","US","EU","SG","AE","ALL"],PL=["RealEstate","Securities","DigitalToken","Commodity","IntellectualProperty","Equipment","ALL"],Fw={zh:"🇨🇳",en:"🇺🇸",ar:"🇸🇦",ja:"🇯🇵",ko:"🇰🇷",fr:"🇫🇷",ru:"🇷🇺"},Kw={zh:"中文",en:"English",ar:"العربية",ja:"日本語",ko:"한국어",fr:"Français",ru:"Русский"};function Hme(){const{t:e,i18n:t}=Hg(),n=t.language.split("-")[0],r=["zh","en","ar","ja","ko","fr","ru"].includes(n)?n:"zh",a=oQ(),l=new URLSearchParams(a).get("search")||"",[c,d]=E.useState(""),[f,m]=E.useState(""),[g,v]=E.useState(""),[b,A]=E.useState(1),[x,w]=E.useState(l);E.useEffect(()=>{l&&(w(l),A(1))},[l]);const[C,j]=E.useState(!1),[T,M]=E.useState(null),[O,_]=E.useState(null),[N,P]=E.useState({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0}),k=Me.useUtils(),{data:z,isLoading:B,refetch:L}=Me.knowledgeBase.list.useQuery({jurisdiction:c||void 0,assetType:f||void 0,status:g||void 0,search:x||void 0,page:b,pageSize:15,lang:r}),U=Me.knowledgeBase.create.useMutation({onSuccess:()=>{Ue.success(e("knowledgeBase.ruleCreated","规则创建成功,AI翻译已自动生成")),j(!1),k.knowledgeBase.list.invalidate(),P({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0})},onError:Z=>Ue.error(Z.message)}),H=Me.knowledgeBase.toggleStatus.useMutation({onSuccess:()=>{Ue.success(e("common.statusUpdated","状态已更新")),k.knowledgeBase.list.invalidate()},onError:Z=>Ue.error(Z.message)}),Q=Me.knowledgeBase.delete.useMutation({onSuccess:()=>{Ue.success(e("common.deleted","规则已删除")),k.knowledgeBase.list.invalidate()},onError:Z=>Ue.error(Z.message)}),D=Me.knowledgeBase.translateRule.useMutation({onSuccess:Z=>{Ue.success(e("knowledgeBase.translateSuccess","AI翻译完成,已更新七种语言")),k.knowledgeBase.list.invalidate(),_(null)},onError:Z=>{Ue.error(Z.message),_(null)}}),[K,F]=E.useState(!1),[X,oe]=E.useState(null),[q,V]=E.useState(!1),{data:Y}=Me.knowledgeBase.stats.useQuery(void 0,{enabled:q}),ee=Me.knowledgeBase.batchImport.useMutation({onSuccess:Z=>{oe({...Z,total:Z.imported+Z.skipped+Z.failed}),Ue.success(`批量导入完成:成功 ${Z.imported} 条,跳过 ${Z.skipped} 条,失败 ${Z.failed} 条`),k.knowledgeBase.list.invalidate()},onError:Z=>Ue.error(`导入失败: ${Z.message}`)}),ue=Me.knowledgeBase.migrateAllToMultiLang.useMutation({onSuccess:Z=>{Ue.success(`批量翻译完成,已迁移 ${Z.migratedCount} 条规则`),k.knowledgeBase.list.invalidate()},onError:Z=>Ue.error(Z.message)}),me=z?.items||[],se=z?.total||0,ve=Math.ceil(se/15),de=Z=>{_(Z),D.mutate({id:Z})};return h.jsx(_O,{"data-loc":"client/src/pages/KnowledgeBase.tsx:134",children:h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:135",className:"p-6 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:136",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:137",children:[h.jsx("h1",{"data-loc":"client/src/pages/KnowledgeBase.tsx:138",className:"text-2xl font-bold nac-gradient-text",children:e("nav.knowledgeBase","知识库管理")}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:139",className:"text-sm text-muted-foreground mt-0.5",children:e("knowledgeBase.subtitle","管理合规规则、法规条文与交易细则 — 支持七种语言")})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:141",className:"flex items-center gap-2",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:143",variant:"outline",size:"sm",onClick:()=>V(Z=>!Z),className:"border-border/50",children:[h.jsx(CS,{"data-loc":"client/src/pages/KnowledgeBase.tsx:148",className:"w-4 h-4 mr-1.5"}),"统计"]}),h.jsxs(oo,{"data-loc":"client/src/pages/KnowledgeBase.tsx:151",open:K,onOpenChange:Z=>{F(Z),Z||oe(null)},children:[h.jsx(Ql,{"data-loc":"client/src/pages/KnowledgeBase.tsx:152",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:153",variant:"outline",size:"sm",className:"border-border/50",children:[h.jsx(p2,{"data-loc":"client/src/pages/KnowledgeBase.tsx:154",className:"w-4 h-4 mr-1.5"}),"批量导入"]})}),h.jsxs(so,{"data-loc":"client/src/pages/KnowledgeBase.tsx:157",className:"bg-card border-border/50 max-w-2xl",children:[h.jsx(lo,{"data-loc":"client/src/pages/KnowledgeBase.tsx:158",children:h.jsx(co,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159",children:"批量导入六辖区合规规则"})}),h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:161",className:"space-y-4 mt-2",children:X?h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:163",className:"space-y-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:164",className:"flex items-center gap-2 text-sm font-medium",children:[h.jsx(Dr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:165",className:"w-5 h-5 text-emerald-400"}),"导入完成"]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:168",className:"grid grid-cols-3 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:169",className:"bg-emerald-500/10 border border-emerald-500/30 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:170",className:"text-2xl font-bold text-emerald-400",children:X.imported}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:171",className:"text-xs text-muted-foreground mt-1",children:"成功导入"})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:173",className:"bg-amber-500/10 border border-amber-500/30 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:174",className:"text-2xl font-bold text-amber-400",children:X.skipped}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:175",className:"text-xs text-muted-foreground mt-1",children:"已跳过(重复)"})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:177",className:"bg-red-500/10 border border-red-500/30 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:178",className:"text-2xl font-bold text-red-400",children:X.failed}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:179",className:"text-xs text-muted-foreground mt-1",children:"导入失败"})]})]}),X.errors.length>0&&h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:183",className:"bg-red-500/5 border border-red-500/20 rounded p-3",children:[h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:184",className:"text-xs font-medium text-red-400 mb-1 flex items-center gap-1",children:[h.jsx(Ph,{"data-loc":"client/src/pages/KnowledgeBase.tsx:185",className:"w-3.5 h-3.5"}),"错误详情"]}),h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:187",className:"space-y-1 max-h-32 overflow-y-auto",children:X.errors.map((Z,he)=>h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:189",className:"text-xs text-muted-foreground",children:Z},he))})]}),h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:194",className:"w-full",variant:"outline",onClick:()=>oe(null),children:"重新导入"})]}):h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:197",className:"space-y-3",children:[h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:198",className:"text-sm text-muted-foreground",children:["将自动导入六辖区(CN/HK/SG/US/EU/AE)预置合规规则,共 ",h.jsxs("strong",{"data-loc":"client/src/pages/KnowledgeBase.tsx:198",children:[Ho.total,"条"]})," 规则,涵盖房地产、证券、数字代币、基金、债券等主要资产类型。"]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:199",className:"bg-accent/30 rounded-lg p-3 text-xs space-y-1",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:200",className:"font-medium",children:"导入规则:"}),h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:201",children:["• CN(中国大陆):",Ho.byJurisdiction.CN,"条 — 不动产登记、证券发行、反洗钱KYC等"]}),h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:202",children:["• HK(香港):",Ho.byJurisdiction.HK,"条 — SFC持牌、HKMA监管、VASP注册等"]}),h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:203",children:["• SG(新加坡):",Ho.byJurisdiction.SG,"条 — MAS许可、CMS牌照、数字代币等"]}),h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:204",children:["• US(美国):",Ho.byJurisdiction.US,"条 — SEC注册、FinCEN/BSA、Reg D豁免等"]}),h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:205",children:["• EU(欧盟):",Ho.byJurisdiction.EU,"条 — MiCA合规、GDPR、AIFMD等"]}),h.jsxs("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:206",children:["• AE(阿联酋):",Ho.byJurisdiction.AE,"条 — ADGM框架、DFSA许可、VARA等"]})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:208",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[h.jsx(Uw,{"data-loc":"client/src/pages/KnowledgeBase.tsx:209",checked:!0,onCheckedChange:()=>{},disabled:!0}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:214",children:"跳过重复规则(相同辖区+规则名)"})]}),h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:216",className:"w-full nac-gradient text-white",onClick:()=>ee.mutate({rules:Vi,skipDuplicates:!0}),disabled:ee.isPending,children:ee.isPending?h.jsxs(h.Fragment,{children:[h.jsx(Cn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:222",className:"w-4 h-4 mr-1.5 animate-spin"}),"正在导入并AI翻译..."]}):h.jsxs(h.Fragment,{children:[h.jsx(p2,{"data-loc":"client/src/pages/KnowledgeBase.tsx:224",className:"w-4 h-4 mr-1.5"}),"开始批量导入"]})})]})})]})]}),h.jsxs(Nx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:232",children:[h.jsx(Rx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:233",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:234",variant:"outline",size:"sm",onClick:()=>ue.mutate(),disabled:ue.isPending,className:"border-border/50",children:[ue.isPending?h.jsx(Cn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:240",className:"w-4 h-4 mr-1.5 animate-spin"}):h.jsx(fs,{"data-loc":"client/src/pages/KnowledgeBase.tsx:240",className:"w-4 h-4 mr-1.5"}),e("knowledgeBase.batchTranslate","批量AI翻译")]})}),h.jsx(Mx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:244",children:"为所有缺少多语言翻译的规则自动生成七语言版本"})]}),h.jsxs(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:246",variant:"outline",size:"sm",onClick:()=>L(),className:"border-border/50",children:[h.jsx(js,{"data-loc":"client/src/pages/KnowledgeBase.tsx:247",className:"w-4 h-4 mr-1.5"}),e("common.refresh","刷新")]}),h.jsxs(oo,{"data-loc":"client/src/pages/KnowledgeBase.tsx:249",open:C,onOpenChange:j,children:[h.jsx(Ql,{"data-loc":"client/src/pages/KnowledgeBase.tsx:250",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:251",size:"sm",className:"nac-gradient text-white",children:[h.jsx(df,{"data-loc":"client/src/pages/KnowledgeBase.tsx:252",className:"w-4 h-4 mr-1.5"}),e("knowledgeBase.addRule","新增规则")]})}),h.jsxs(so,{"data-loc":"client/src/pages/KnowledgeBase.tsx:255",className:"bg-card border-border/50 max-w-lg",children:[h.jsx(lo,{"data-loc":"client/src/pages/KnowledgeBase.tsx:256",children:h.jsx(co,{"data-loc":"client/src/pages/KnowledgeBase.tsx:257",children:e("knowledgeBase.createRule","新增合规规则")})}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:259",className:"space-y-4 mt-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:260",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:261",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:262",className:"text-xs",children:e("knowledgeBase.jurisdiction","司法辖区")}),h.jsxs(wn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:263",value:N.jurisdiction,onValueChange:Z=>P(he=>({...he,jurisdiction:Z})),children:[h.jsx(An,{"data-loc":"client/src/pages/KnowledgeBase.tsx:264",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:264",placeholder:"选择辖区"})}),h.jsx(On,{"data-loc":"client/src/pages/KnowledgeBase.tsx:265",className:"bg-card border-border/50",children:ML.map(Z=>h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:266",value:Z,children:Z},Z))})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:270",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:271",className:"text-xs",children:e("knowledgeBase.assetType","资产类型")}),h.jsxs(wn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:272",value:N.assetType,onValueChange:Z=>P(he=>({...he,assetType:Z})),children:[h.jsx(An,{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",placeholder:"选择类型"})}),h.jsx(On,{"data-loc":"client/src/pages/KnowledgeBase.tsx:274",className:"bg-card border-border/50",children:PL.map(Z=>h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:275",value:Z,children:Z},Z))})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:280",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:281",className:"text-xs",children:e("knowledgeBase.sourceLang","输入语言")}),h.jsxs(wn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:282",value:N.sourceLang,onValueChange:Z=>P(he=>({...he,sourceLang:Z})),children:[h.jsx(An,{"data-loc":"client/src/pages/KnowledgeBase.tsx:283",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:283"})}),h.jsx(On,{"data-loc":"client/src/pages/KnowledgeBase.tsx:284",className:"bg-card border-border/50",children:Object.entries(Kw).map(([Z,he])=>h.jsxs(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:286",value:Z,children:[Fw[Z]," ",he]},Z))})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:291",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:292",className:"text-xs",children:e("knowledgeBase.ruleName","规则名称")}),h.jsx(Wt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:293",value:N.ruleName,onChange:Z=>P(he=>({...he,ruleName:Z.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:不动产登记证要求"})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:295",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:296",className:"text-xs",children:e("knowledgeBase.description","规则描述")}),h.jsx(Sc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:297",value:N.description,onChange:Z=>P(he=>({...he,description:Z.target.value})),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"详细描述合规要求..."})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:299",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:300",className:"text-xs",children:e("knowledgeBase.tags","标签(逗号分隔)")}),h.jsx(Wt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:301",value:N.tags,onChange:Z=>P(he=>({...he,tags:Z.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, Document"})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:303",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:304",className:"flex items-center gap-2",children:[h.jsx(Uw,{"data-loc":"client/src/pages/KnowledgeBase.tsx:305",checked:N.required,onCheckedChange:Z=>P(he=>({...he,required:Z}))}),h.jsx(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:306",className:"text-xs",children:e("knowledgeBase.required","强制要求")})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"flex items-center gap-2",children:[h.jsx(Uw,{"data-loc":"client/src/pages/KnowledgeBase.tsx:309",checked:N.autoTranslate,onCheckedChange:Z=>P(he=>({...he,autoTranslate:Z}))}),h.jsxs(tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:310",className:"text-xs flex items-center gap-1",children:[h.jsx(vh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:311",className:"w-3 h-3"}),e("knowledgeBase.autoTranslate","AI自动翻译七语言")]})]})]}),N.autoTranslate&&h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:316",className:"text-xs text-muted-foreground bg-accent/30 rounded p-2",children:"🤖 创建后将自动调用AI生成:中文、英文、阿拉伯文、日文、韩文、法文、俄文七种语言版本"}),h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:320",className:"w-full nac-gradient text-white",onClick:()=>U.mutate({...N,tags:N.tags.split(",").map(Z=>Z.trim()).filter(Boolean),sourceLang:N.sourceLang,autoTranslate:N.autoTranslate}),disabled:U.isPending||!N.jurisdiction||!N.assetType||!N.ruleName,children:U.isPending?h.jsxs(h.Fragment,{children:[h.jsx(Cn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:331",className:"w-4 h-4 mr-1.5 animate-spin"}),"AI翻译生成中..."]}):e("knowledgeBase.createRule","创建规则")})]})]})]})]})]}),q&&Y&&h.jsx(Ze,{"data-loc":"client/src/pages/KnowledgeBase.tsx:342",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/KnowledgeBase.tsx:343",className:"p-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:344",className:"flex items-center gap-2 mb-3",children:[h.jsx(CS,{"data-loc":"client/src/pages/KnowledgeBase.tsx:345",className:"w-4 h-4 text-primary"}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:346",className:"text-sm font-medium",children:"知识库统计"}),h.jsxs("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:347",className:"text-xs text-muted-foreground ml-auto",children:["共 ",Y.total," 条规则"]})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:349",className:"grid grid-cols-2 gap-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:350",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:351",className:"text-xs text-muted-foreground mb-2",children:"按辖区分布"}),h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:352",className:"space-y-1.5",children:(Y.byJurisdiction||[]).map(Z=>h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:354",className:"flex items-center gap-2",children:[h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:355",className:"text-xs w-8 font-medium",children:Z._id}),h.jsx(RL,{"data-loc":"client/src/pages/KnowledgeBase.tsx:356",value:Y.total>0?Z.count/Y.total*100:0,className:"h-1.5 flex-1"}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:357",className:"text-xs text-muted-foreground w-6 text-right",children:Z.count})]},Z._id))})]}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:362",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:363",className:"text-xs text-muted-foreground mb-2",children:"按资产类型分布"}),h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:364",className:"space-y-1.5",children:(Y.byAssetType||[]).slice(0,6).map(Z=>h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:366",className:"flex items-center gap-2",children:[h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:367",className:"text-xs w-24 truncate font-medium",children:Z._id}),h.jsx(RL,{"data-loc":"client/src/pages/KnowledgeBase.tsx:368",value:Y.total>0?Z.count/Y.total*100:0,className:"h-1.5 flex-1"}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:369",className:"text-xs text-muted-foreground w-6 text-right",children:Z.count})]},Z._id))})]})]})]})}),h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:380",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[h.jsx(vh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:381",className:"w-3.5 h-3.5"}),h.jsxs("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:382",children:["当前显示语言:",Fw[r]," ",Kw[r]," — 切换界面语言可同步切换规则显示语言"]})]}),x&&h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:387",className:"flex items-center gap-2 px-3 py-2 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-800 rounded-lg text-sm",children:[h.jsx(NO,{"data-loc":"client/src/pages/KnowledgeBase.tsx:388",className:"w-4 h-4 text-blue-500 shrink-0"}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:389",className:"text-blue-700 dark:text-blue-300",children:"来自AI智能体引用跳转,正在搜索:"}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:390",className:"font-semibold text-blue-900 dark:text-blue-100",children:x}),h.jsx("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:391",onClick:()=>w(""),className:"ml-auto text-blue-500 hover:text-blue-700 text-xs underline",children:"清除搜索"})]}),h.jsx(Ze,{"data-loc":"client/src/pages/KnowledgeBase.tsx:401",className:"border-border/50",children:h.jsx(Je,{"data-loc":"client/src/pages/KnowledgeBase.tsx:402",className:"p-4",children:h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:403",className:"flex flex-wrap items-center gap-3",children:[h.jsx(jY,{"data-loc":"client/src/pages/KnowledgeBase.tsx:404",className:"w-4 h-4 text-muted-foreground"}),h.jsx(Wt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:406",placeholder:"搜索规则名称、描述内容...",value:x,onChange:Z=>{w(Z.target.value),A(1)},className:"w-52 bg-input border-border/50 h-8 text-sm"}),h.jsxs(wn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:412",value:c,onValueChange:Z=>{d(Z==="ALL_FILTER"?"":Z),A(1)},children:[h.jsx(An,{"data-loc":"client/src/pages/KnowledgeBase.tsx:413",className:"w-36 bg-input border-border/50 h-8 text-sm",children:h.jsx(Sn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:413",placeholder:e("knowledgeBase.jurisdiction","司法辖区")})}),h.jsxs(On,{"data-loc":"client/src/pages/KnowledgeBase.tsx:414",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:415",value:"ALL_FILTER",children:e("common.all","全部辖区")}),ML.map(Z=>h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:416",value:Z,children:Z},Z))]})]}),h.jsxs(wn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:419",value:f,onValueChange:Z=>{m(Z==="ALL_FILTER"?"":Z),A(1)},children:[h.jsx(An,{"data-loc":"client/src/pages/KnowledgeBase.tsx:420",className:"w-40 bg-input border-border/50 h-8 text-sm",children:h.jsx(Sn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:420",placeholder:e("knowledgeBase.assetType","资产类型")})}),h.jsxs(On,{"data-loc":"client/src/pages/KnowledgeBase.tsx:421",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:422",value:"ALL_FILTER",children:e("common.all","全部类型")}),PL.map(Z=>h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:423",value:Z,children:Z},Z))]})]}),h.jsxs(wn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:426",value:g,onValueChange:Z=>{v(Z==="ALL_FILTER"?"":Z),A(1)},children:[h.jsx(An,{"data-loc":"client/src/pages/KnowledgeBase.tsx:427",className:"w-28 bg-input border-border/50 h-8 text-sm",children:h.jsx(Sn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:427",placeholder:e("common.status","状态")})}),h.jsxs(On,{"data-loc":"client/src/pages/KnowledgeBase.tsx:428",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:429",value:"ALL_FILTER",children:e("common.all","全部状态")}),h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:430",value:"active",children:e("common.active","已激活")}),h.jsx(ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:431",value:"disabled",children:e("common.disabled","已禁用")})]})]}),h.jsxs("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:434",className:"text-xs text-muted-foreground ml-auto",children:["共 ",se," 条规则",x?`(搜索“${x}”)`:""]})]})})}),h.jsx(Ze,{"data-loc":"client/src/pages/KnowledgeBase.tsx:440",className:"border-border/50",children:h.jsx(Je,{"data-loc":"client/src/pages/KnowledgeBase.tsx:441",className:"p-0",children:B?h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:443",className:"p-8 text-center text-muted-foreground text-sm",children:[h.jsx(Cn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:444",className:"w-6 h-6 animate-spin mx-auto mb-2"}),"加载中..."]}):me.length===0?h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:447",className:"p-8 text-center",children:[h.jsx(MO,{"data-loc":"client/src/pages/KnowledgeBase.tsx:448",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:449",className:"text-muted-foreground text-sm",children:e("knowledgeBase.noRules","暂无合规规则")})]}):h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:452",className:"overflow-x-auto",children:h.jsxs("table",{"data-loc":"client/src/pages/KnowledgeBase.tsx:453",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/KnowledgeBase.tsx:454",children:h.jsxs("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:455",className:"border-b border-border/30",children:[h.jsx("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:456",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.ruleName","规则名称")}),h.jsx("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:457",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.jurisdiction","辖区")}),h.jsx("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:458",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.assetType","资产类型")}),h.jsx("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:459",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.i18nStatus","多语言")}),h.jsx("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:460",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("common.status","状态")}),h.jsx("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:461",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:e("common.actions","操作")})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/KnowledgeBase.tsx:464",children:me.map(Z=>{const he=Z._id?.toString(),ie=T===he,$e=Z.ruleNameI18n&&Object.keys(Z.ruleNameI18n).length>=3,Ce=Z.ruleNameI18n?Object.keys(Z.ruleNameI18n).length:0;return h.jsxs(h.Fragment,{children:[h.jsxs("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:473",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[h.jsxs("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:474",className:"p-3",children:[h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:475",className:"font-medium",children:Z.displayName||Z.ruleName}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:476",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:Z.displayDescription||Z.description})]}),h.jsx("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:478",className:"p-3",children:h.jsx(Mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:479",variant:"outline",className:"text-xs border-primary/30 text-primary",children:Z.jurisdiction})}),h.jsx("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:481",className:"p-3 text-xs text-muted-foreground",children:Z.assetType}),h.jsx("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:482",className:"p-3",children:h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:483",className:"flex items-center gap-1",children:$e?h.jsxs(Nx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:485",children:[h.jsx(Rx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:486",asChild:!0,children:h.jsxs("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:487",className:"flex items-center gap-1 text-xs text-emerald-400 hover:text-emerald-300",onClick:()=>M(ie?null:he),children:[h.jsx(fs,{"data-loc":"client/src/pages/KnowledgeBase.tsx:491",className:"w-3 h-3"}),Ce,"/7",ie?h.jsx(RO,{"data-loc":"client/src/pages/KnowledgeBase.tsx:493",className:"w-3 h-3"}):h.jsx(em,{"data-loc":"client/src/pages/KnowledgeBase.tsx:493",className:"w-3 h-3"})]})}),h.jsx(Mx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:496",children:"点击展开查看所有语言版本"})]}):h.jsxs("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:499",className:"text-xs text-amber-400/70",children:["仅",Ce,"种"]})})}),h.jsx("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:503",className:"p-3",children:h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:504",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${Z.status}`,children:Z.status==="active"?e("common.active","已激活"):e("common.disabled","已禁用")})}),h.jsx("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:508",className:"p-3",children:h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:509",className:"flex items-center justify-end gap-1",children:[h.jsxs(Nx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:510",children:[h.jsx(Rx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:511",asChild:!0,children:h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:512",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-blue-400 hover:text-blue-300",onClick:()=>de(he),disabled:O===he,children:O===he?h.jsx(Cn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:519",className:"w-3.5 h-3.5 animate-spin"}):h.jsx(vh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:521",className:"w-3.5 h-3.5"})})}),h.jsx(Mx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:525",children:"AI生成/补全七语言翻译"})]}),h.jsxs(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:527",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>H.mutate({id:he,status:Z.status==="active"?"disabled":"active"}),children:[h.jsx(e4,{"data-loc":"client/src/pages/KnowledgeBase.tsx:532",className:"w-3.5 h-3.5 mr-1"}),Z.status==="active"?e("common.disable","禁用"):e("common.enable","激活")]}),h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:535",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-destructive hover:text-destructive",onClick:()=>{confirm(e("common.confirmDelete","确认删除此规则?"))&&Q.mutate({id:he})},children:h.jsx(t4,{"data-loc":"client/src/pages/KnowledgeBase.tsx:540",className:"w-3.5 h-3.5"})})]})})]},he),ie&&Z.ruleNameI18n&&h.jsx("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:547",className:"border-b border-border/20 bg-accent/10",children:h.jsx("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:548",colSpan:6,className:"px-4 py-3",children:h.jsx("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:549",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-2",children:Object.entries(Z.ruleNameI18n).map(([Ye,nt])=>h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:551",className:"bg-card/50 rounded p-2 border border-border/30",children:[h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:552",className:"flex items-center gap-1 mb-1",children:[h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:553",className:"text-sm",children:Fw[Ye]||"🌐"}),h.jsx("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:554",className:"text-xs font-medium text-muted-foreground",children:Kw[Ye]||Ye})]}),h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:556",className:"text-xs font-medium",children:nt}),Z.descriptionI18n?.[Ye]&&h.jsx("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:558",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:Z.descriptionI18n[Ye]})]},Ye))})})},`${he}-i18n`)]})})})]})})})}),ve>1&&h.jsxs("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:578",className:"flex items-center justify-center gap-2",children:[h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:579",variant:"outline",size:"sm",onClick:()=>A(Z=>Math.max(1,Z-1)),disabled:b===1,className:"border-border/50 h-8",children:e("common.prevPage","上一页")}),h.jsxs("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:580",className:"text-xs text-muted-foreground",children:[b," / ",ve]}),h.jsx(Pe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:581",variant:"outline",size:"sm",onClick:()=>A(Z=>Math.min(ve,Z+1)),disabled:b===ve,className:"border-border/50 h-8",children:e("common.nextPage","下一页")})]})]})})}const Gme=["CN","HK","US","EU","SG","AE","ALL"],Vme=["regulation","trade_rule","credit","asset_document","court_judgment","tax_rule"],Yme=["realtime","hourly","daily","weekly","monthly"];function Qme(){const[e,t]=E.useState(!1),[n,r]=E.useState({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"}),[a,o]=E.useState(null),l=Me.useUtils(),{data:c,isLoading:d,refetch:f}=Me.crawler.list.useQuery(),{data:m}=Me.crawler.logs.useQuery({crawlerId:a||void 0,limit:30}),g=Me.crawler.trigger.useMutation({onSuccess:x=>{Ue.success(x.message),l.crawler.list.invalidate(),l.crawler.logs.invalidate()},onError:x=>Ue.error(x.message)}),v=Me.crawler.create.useMutation({onSuccess:()=>{Ue.success("采集器创建成功"),t(!1),l.crawler.list.invalidate(),r({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"})},onError:x=>Ue.error(x.message)}),b=c||[],A=m||[];return h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:40",className:"p-6 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:41",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:42",children:[h.jsx("h1",{"data-loc":"client/src/pages/Crawlers.tsx:43",className:"text-2xl font-bold nac-gradient-text",children:"采集器监控"}),h.jsx("p",{"data-loc":"client/src/pages/Crawlers.tsx:44",className:"text-sm text-muted-foreground mt-0.5",children:"管理内部/外部数据采集通道"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:46",className:"flex items-center gap-2",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/Crawlers.tsx:47",variant:"outline",size:"sm",onClick:()=>f(),className:"border-border/50",children:[h.jsx(js,{"data-loc":"client/src/pages/Crawlers.tsx:48",className:"w-4 h-4 mr-1.5"}),"刷新"]}),h.jsxs(oo,{"data-loc":"client/src/pages/Crawlers.tsx:50",open:e,onOpenChange:t,children:[h.jsx(Ql,{"data-loc":"client/src/pages/Crawlers.tsx:51",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/Crawlers.tsx:52",size:"sm",className:"nac-gradient text-white",children:[h.jsx(df,{"data-loc":"client/src/pages/Crawlers.tsx:52",className:"w-4 h-4 mr-1.5"}),"新增采集器"]})}),h.jsxs(so,{"data-loc":"client/src/pages/Crawlers.tsx:54",className:"bg-card border-border/50 max-w-lg",children:[h.jsx(lo,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:h.jsx(co,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:"新增采集器"})}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:56",className:"space-y-4 mt-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:57",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/Crawlers.tsx:58",className:"text-xs",children:"采集器名称"}),h.jsx(Wt,{"data-loc":"client/src/pages/Crawlers.tsx:59",value:n.name,onChange:x=>r(w=>({...w,name:x.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:JP-FSA法规采集器"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:61",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:62",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/Crawlers.tsx:63",className:"text-xs",children:"司法辖区"}),h.jsxs(wn,{"data-loc":"client/src/pages/Crawlers.tsx:64",value:n.jurisdiction,onValueChange:x=>r(w=>({...w,jurisdiction:x})),children:[h.jsx(An,{"data-loc":"client/src/pages/Crawlers.tsx:65",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/Crawlers.tsx:65",placeholder:"选择辖区"})}),h.jsx(On,{"data-loc":"client/src/pages/Crawlers.tsx:66",className:"bg-card border-border/50",children:Gme.map(x=>h.jsx(ot,{"data-loc":"client/src/pages/Crawlers.tsx:67",value:x,children:x},x))})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:71",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/Crawlers.tsx:72",className:"text-xs",children:"采集类型"}),h.jsxs(wn,{"data-loc":"client/src/pages/Crawlers.tsx:73",value:n.type,onValueChange:x=>r(w=>({...w,type:x})),children:[h.jsx(An,{"data-loc":"client/src/pages/Crawlers.tsx:74",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/Crawlers.tsx:74"})}),h.jsxs(On,{"data-loc":"client/src/pages/Crawlers.tsx:75",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/Crawlers.tsx:76",value:"external",children:"外部采集"}),h.jsx(ot,{"data-loc":"client/src/pages/Crawlers.tsx:77",value:"internal",children:"内部监听"})]})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:82",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/Crawlers.tsx:83",className:"text-xs",children:"数据源 URL"}),h.jsx(Wt,{"data-loc":"client/src/pages/Crawlers.tsx:84",value:n.source,onChange:x=>r(w=>({...w,source:x.target.value})),className:"bg-input border-border/50 h-9",placeholder:"https://www.fsa.go.jp"})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:86",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:87",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/Crawlers.tsx:88",className:"text-xs",children:"数据分类"}),h.jsxs(wn,{"data-loc":"client/src/pages/Crawlers.tsx:89",value:n.category,onValueChange:x=>r(w=>({...w,category:x})),children:[h.jsx(An,{"data-loc":"client/src/pages/Crawlers.tsx:90",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/Crawlers.tsx:90",placeholder:"选择分类"})}),h.jsx(On,{"data-loc":"client/src/pages/Crawlers.tsx:91",className:"bg-card border-border/50",children:Vme.map(x=>h.jsx(ot,{"data-loc":"client/src/pages/Crawlers.tsx:92",value:x,children:x},x))})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:96",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/Crawlers.tsx:97",className:"text-xs",children:"采集频率"}),h.jsxs(wn,{"data-loc":"client/src/pages/Crawlers.tsx:98",value:n.frequency,onValueChange:x=>r(w=>({...w,frequency:x})),children:[h.jsx(An,{"data-loc":"client/src/pages/Crawlers.tsx:99",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/Crawlers.tsx:99"})}),h.jsx(On,{"data-loc":"client/src/pages/Crawlers.tsx:100",className:"bg-card border-border/50",children:Yme.map(x=>h.jsx(ot,{"data-loc":"client/src/pages/Crawlers.tsx:101",value:x,children:x},x))})]})]})]}),h.jsx(Pe,{"data-loc":"client/src/pages/Crawlers.tsx:106",className:"w-full nac-gradient text-white",onClick:()=>v.mutate(n),disabled:v.isPending||!n.name||!n.jurisdiction||!n.source||!n.category,children:v.isPending?"创建中...":"创建采集器"})]})]})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:115",className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[h.jsx("div",{"data-loc":"client/src/pages/Crawlers.tsx:117",className:"lg:col-span-2 space-y-3",children:d?h.jsx("div",{"data-loc":"client/src/pages/Crawlers.tsx:119",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."}):b.map(x=>h.jsx(Ze,{"data-loc":"client/src/pages/Crawlers.tsx:121",className:`border-border/50 cursor-pointer transition-all hover:border-primary/30 ${a===x._id?.toString()?"border-primary/50 bg-primary/5":""}`,onClick:()=>o(x._id?.toString()),children:h.jsx(Je,{"data-loc":"client/src/pages/Crawlers.tsx:126",className:"p-4",children:h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:127",className:"flex items-start justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:128",className:"flex-1 min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:129",className:"flex items-center gap-2 mb-1",children:[x.type==="internal"?h.jsx($Y,{"data-loc":"client/src/pages/Crawlers.tsx:130",className:"w-3.5 h-3.5 text-primary"}):h.jsx(Mh,{"data-loc":"client/src/pages/Crawlers.tsx:130",className:"w-3.5 h-3.5 text-amber-400"}),h.jsx("p",{"data-loc":"client/src/pages/Crawlers.tsx:131",className:"font-medium text-sm truncate",children:x.name}),h.jsx(Mr,{"data-loc":"client/src/pages/Crawlers.tsx:132",variant:"outline",className:"text-xs border-border/50 shrink-0",children:x.jurisdiction})]}),h.jsx("p",{"data-loc":"client/src/pages/Crawlers.tsx:134",className:"text-xs text-muted-foreground truncate",children:x.source}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:135",className:"flex items-center gap-3 mt-2 text-xs text-muted-foreground",children:[h.jsxs("span",{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"flex items-center gap-1",children:[h.jsx(_c,{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"w-3 h-3"}),x.frequency]}),h.jsxs("span",{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"flex items-center gap-1",children:[h.jsx(Dr,{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"w-3 h-3 text-emerald-400"}),x.successRate,"%"]}),h.jsxs("span",{"data-loc":"client/src/pages/Crawlers.tsx:138",children:["采集 ",x.totalCollected," 条"]}),x.lastRun&&h.jsxs("span",{"data-loc":"client/src/pages/Crawlers.tsx:139",children:["最后运行: ",new Date(x.lastRun).toLocaleDateString("zh-CN")]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:142",className:"flex items-center gap-2 ml-3 shrink-0",children:[h.jsx("span",{"data-loc":"client/src/pages/Crawlers.tsx:143",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${x.status}`,children:x.status==="active"?"运行中":"已停止"}),h.jsxs(Pe,{"data-loc":"client/src/pages/Crawlers.tsx:146",size:"sm",variant:"outline",className:"h-7 px-2 border-border/50 hover:border-primary/50",onClick:w=>{w.stopPropagation(),g.mutate({crawlerId:x._id.toString()})},disabled:g.isPending,children:[h.jsx(jS,{"data-loc":"client/src/pages/Crawlers.tsx:152",className:"w-3 h-3 mr-1"}),"触发"]})]})]})})},x._id?.toString()))}),h.jsxs(Ze,{"data-loc":"client/src/pages/Crawlers.tsx:162",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/Crawlers.tsx:163",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/Crawlers.tsx:164",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(Mh,{"data-loc":"client/src/pages/Crawlers.tsx:165",className:"w-4 h-4 text-primary"}),a?"采集日志":"选择采集器查看日志"]})}),h.jsx(Je,{"data-loc":"client/src/pages/Crawlers.tsx:169",children:A.length===0?h.jsx("div",{"data-loc":"client/src/pages/Crawlers.tsx:171",className:"h-60 flex items-center justify-center text-muted-foreground text-sm",children:a?"暂无日志记录":"点击左侧采集器查看日志"}):h.jsx("div",{"data-loc":"client/src/pages/Crawlers.tsx:175",className:"space-y-2 max-h-[500px] overflow-y-auto",children:A.map((x,w)=>h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:177",className:"border-b border-border/20 pb-2 last:border-0",children:[h.jsxs("div",{"data-loc":"client/src/pages/Crawlers.tsx:178",className:"flex items-center gap-1.5 mb-0.5",children:[x.status==="triggered"?h.jsx(jS,{"data-loc":"client/src/pages/Crawlers.tsx:179",className:"w-3 h-3 text-primary"}):x.status==="success"?h.jsx(Dr,{"data-loc":"client/src/pages/Crawlers.tsx:180",className:"w-3 h-3 text-emerald-400"}):h.jsx(vd,{"data-loc":"client/src/pages/Crawlers.tsx:181",className:"w-3 h-3 text-red-400"}),h.jsx("span",{"data-loc":"client/src/pages/Crawlers.tsx:182",className:"text-xs font-medium",children:x.action})]}),h.jsx("p",{"data-loc":"client/src/pages/Crawlers.tsx:184",className:"text-xs text-muted-foreground",children:x.message}),h.jsx("p",{"data-loc":"client/src/pages/Crawlers.tsx:185",className:"text-xs text-muted-foreground/50 mt-0.5",children:new Date(x.timestamp).toLocaleString("zh-CN")})]},w))})})]})]})]})}function Xme(){const[e,t]=E.useState(""),[n,r]=E.useState(""),[a,o]=E.useState(1),[l,c]=E.useState(!1),[d,f]=E.useState(null),[m,g]=E.useState(""),v=Me.useUtils(),{data:b,isLoading:A,refetch:x}=Me.approvalCase.list.useQuery({riskLevel:e||void 0,status:n||void 0,page:a,pageSize:15}),w=Me.approvalCase.review.useMutation({onSuccess:()=>{Ue.success("审核意见已提交"),c(!1),g(""),f(null),v.approvalCase.list.invalidate()},onError:_=>Ue.error(_.message)}),C=b?.items||[],j=b?.total||0,T=Math.ceil(j/15),M=_=>{const P={low:{label:"低风险",cls:"risk-low"},medium:{label:"中风险",cls:"risk-medium"},high:{label:"高风险",cls:"risk-high"}}[_]||{label:_,cls:"status-inactive"};return h.jsx("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:50",className:`text-xs px-2 py-0.5 rounded-full font-medium ${P.cls}`,children:P.label})},O=_=>{const P={approved:{label:"已通过",cls:"status-active"},rejected:{label:"已拒绝",cls:"status-error"},pending_human:{label:"待人工审核",cls:"status-pending"},auto_approved:{label:"自动通过",cls:"status-active"}}[_]||{label:_,cls:"status-inactive"};return h.jsx("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:61",className:`text-xs px-2 py-0.5 rounded-full font-medium ${P.cls}`,children:P.label})};return h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:65",className:"p-6 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:66",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:67",children:[h.jsx("h1",{"data-loc":"client/src/pages/ApprovalCases.tsx:68",className:"text-2xl font-bold nac-gradient-text",children:"AI 审批案例"}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:69",className:"text-sm text-muted-foreground mt-0.5",children:"审查AI自动审批结果,对中风险案例进行人工复核"})]}),h.jsxs(Pe,{"data-loc":"client/src/pages/ApprovalCases.tsx:71",variant:"outline",size:"sm",onClick:()=>x(),className:"border-border/50",children:[h.jsx(js,{"data-loc":"client/src/pages/ApprovalCases.tsx:72",className:"w-4 h-4 mr-1.5"}),"刷新"]})]}),h.jsx("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:77",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[{label:"待人工审核",value:b?.pendingCount??0,icon:_c,color:"text-amber-400"},{label:"今日通过",value:b?.todayApproved??0,icon:Dr,color:"text-emerald-400"},{label:"今日拒绝",value:b?.todayRejected??0,icon:vd,color:"text-red-400"},{label:"高风险案例",value:b?.highRiskCount??0,icon:ps,color:"text-red-400"}].map(_=>h.jsx(Ze,{"data-loc":"client/src/pages/ApprovalCases.tsx:84",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/ApprovalCases.tsx:85",className:"p-4 flex items-center gap-3",children:[h.jsx(_.icon,{"data-loc":"client/src/pages/ApprovalCases.tsx:86",className:`w-8 h-8 ${_.color} shrink-0`}),h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:87",children:[h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:88",className:`text-2xl font-bold ${_.color}`,children:_.value}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:89",className:"text-xs text-muted-foreground",children:_.label})]})]})},_.label))}),h.jsx(Ze,{"data-loc":"client/src/pages/ApprovalCases.tsx:97",className:"border-border/50",children:h.jsx(Je,{"data-loc":"client/src/pages/ApprovalCases.tsx:98",className:"p-4",children:h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:99",className:"flex flex-wrap items-center gap-3",children:[h.jsxs(wn,{"data-loc":"client/src/pages/ApprovalCases.tsx:100",value:e,onValueChange:_=>{t(_==="ALL_FILTER"?"":_),o(1)},children:[h.jsx(An,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",className:"w-32 bg-input border-border/50 h-8 text-sm",children:h.jsx(Sn,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",placeholder:"风险等级"})}),h.jsxs(On,{"data-loc":"client/src/pages/ApprovalCases.tsx:102",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:103",value:"ALL_FILTER",children:"全部风险"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:104",value:"low",children:"低风险"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:105",value:"medium",children:"中风险"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:106",value:"high",children:"高风险"})]})]}),h.jsxs(wn,{"data-loc":"client/src/pages/ApprovalCases.tsx:109",value:n,onValueChange:_=>{r(_==="ALL_FILTER"?"":_),o(1)},children:[h.jsx(An,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",className:"w-36 bg-input border-border/50 h-8 text-sm",children:h.jsx(Sn,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",placeholder:"审批状态"})}),h.jsxs(On,{"data-loc":"client/src/pages/ApprovalCases.tsx:111",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:112",value:"ALL_FILTER",children:"全部状态"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:113",value:"pending_human",children:"待人工审核"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:114",value:"approved",children:"已通过"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:115",value:"rejected",children:"已拒绝"}),h.jsx(ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:116",value:"auto_approved",children:"自动通过"})]})]}),h.jsxs("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:119",className:"text-xs text-muted-foreground ml-auto",children:["共 ",j," 个案例"]})]})})}),h.jsx(Ze,{"data-loc":"client/src/pages/ApprovalCases.tsx:125",className:"border-border/50",children:h.jsx(Je,{"data-loc":"client/src/pages/ApprovalCases.tsx:126",className:"p-0",children:A?h.jsx("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:128",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."}):C.length===0?h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:130",className:"p-8 text-center",children:[h.jsx(X3,{"data-loc":"client/src/pages/ApprovalCases.tsx:131",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:132",className:"text-muted-foreground text-sm",children:"暂无审批案例"})]}):h.jsx("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:135",className:"overflow-x-auto",children:h.jsxs("table",{"data-loc":"client/src/pages/ApprovalCases.tsx:136",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/ApprovalCases.tsx:137",children:h.jsxs("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:138",className:"border-b border-border/30",children:[h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:139",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"资产信息"}),h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:140",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"辖区/类型"}),h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:141",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"风险等级"}),h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:142",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"AI 评分"}),h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:143",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"状态"}),h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:144",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"时间"}),h.jsx("th",{"data-loc":"client/src/pages/ApprovalCases.tsx:145",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:"操作"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/ApprovalCases.tsx:148",children:C.map(_=>h.jsxs("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:150",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[h.jsxs("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:151",className:"p-3",children:[h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:152",className:"font-medium text-sm",children:_.assetName||_.assetId}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:153",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:_.aiDecision?.summary||"AI分析中..."})]}),h.jsx("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:155",className:"p-3",children:h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:156",className:"flex flex-col gap-1",children:[h.jsx(Mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:157",variant:"outline",className:"text-xs border-primary/30 text-primary w-fit",children:_.jurisdiction}),h.jsx("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:158",className:"text-xs text-muted-foreground",children:_.assetType})]})}),h.jsx("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:161",className:"p-3",children:M(_.riskLevel)}),h.jsx("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:162",className:"p-3",children:h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:163",className:"flex items-center gap-1.5",children:[h.jsx("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:164",className:"w-16 h-1.5 rounded-full bg-muted overflow-hidden",children:h.jsx("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:165",className:"h-full rounded-full bg-primary",style:{width:`${_.aiScore||0}%`}})}),h.jsx("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:167",className:"text-xs font-medium",children:_.aiScore||0})]})}),h.jsx("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:170",className:"p-3",children:O(_.status)}),h.jsx("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:171",className:"p-3 text-xs text-muted-foreground",children:_.createdAt?new Date(_.createdAt).toLocaleDateString("zh-CN"):"-"}),h.jsx("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:174",className:"p-3",children:h.jsx("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:175",className:"flex items-center justify-end gap-1",children:h.jsxs(Pe,{"data-loc":"client/src/pages/ApprovalCases.tsx:176",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{f(_),c(!0)},children:[h.jsx(OY,{"data-loc":"client/src/pages/ApprovalCases.tsx:181",className:"w-3.5 h-3.5 mr-1"}),"审查"]})})})]},_._id?.toString()))})]})})})}),T>1&&h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:196",className:"flex items-center justify-center gap-2",children:[h.jsx(Pe,{"data-loc":"client/src/pages/ApprovalCases.tsx:197",variant:"outline",size:"sm",onClick:()=>o(_=>Math.max(1,_-1)),disabled:a===1,className:"border-border/50 h-8",children:"上一页"}),h.jsxs("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:198",className:"text-xs text-muted-foreground",children:[a," / ",T]}),h.jsx(Pe,{"data-loc":"client/src/pages/ApprovalCases.tsx:199",variant:"outline",size:"sm",onClick:()=>o(_=>Math.min(T,_+1)),disabled:a===T,className:"border-border/50 h-8",children:"下一页"})]}),h.jsx(oo,{"data-loc":"client/src/pages/ApprovalCases.tsx:204",open:l,onOpenChange:c,children:h.jsxs(so,{"data-loc":"client/src/pages/ApprovalCases.tsx:205",className:"bg-card border-border/50 max-w-2xl",children:[h.jsx(lo,{"data-loc":"client/src/pages/ApprovalCases.tsx:206",children:h.jsxs(co,{"data-loc":"client/src/pages/ApprovalCases.tsx:207",className:"flex items-center gap-2",children:[h.jsx(io,{"data-loc":"client/src/pages/ApprovalCases.tsx:208",className:"w-5 h-5 text-primary"}),"人工审核 — ",d?.assetName||d?.assetId]})}),d&&h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:213",className:"space-y-4 mt-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:214",className:"grid grid-cols-2 gap-3 text-sm",children:[h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:215",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:216",className:"text-xs text-muted-foreground",children:"资产信息"}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:217",className:"font-medium",children:d.assetName}),h.jsxs("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:218",className:"text-xs text-muted-foreground",children:[d.jurisdiction," · ",d.assetType]})]}),h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:220",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:221",className:"text-xs text-muted-foreground",children:"AI 评估"}),h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:222",className:"flex items-center gap-2",children:[M(d.riskLevel),h.jsxs("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:224",className:"text-sm font-medium",children:["评分: ",d.aiScore]})]}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:226",className:"text-xs text-muted-foreground",children:O(d.status)})]})]}),d.aiDecision&&h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:230",className:"bg-muted/20 rounded-lg p-3",children:[h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:231",className:"text-xs font-medium text-muted-foreground mb-1.5",children:"AI 分析摘要"}),h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:232",className:"text-sm",children:d.aiDecision.summary}),d.aiDecision.issues?.length>0&&h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:234",className:"mt-2",children:[h.jsx("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:235",className:"text-xs font-medium text-amber-400 mb-1",children:"发现问题:"}),d.aiDecision.issues.map((_,N)=>h.jsxs("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:237",className:"text-xs text-muted-foreground",children:["• ",_]},N))]})]}),h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:243",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ApprovalCases.tsx:244",className:"text-xs",children:"审核意见"}),h.jsx(Sc,{"data-loc":"client/src/pages/ApprovalCases.tsx:245",value:m,onChange:_=>g(_.target.value),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"请填写人工审核意见..."})]}),h.jsxs("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:253",className:"flex gap-3",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/ApprovalCases.tsx:254",className:"flex-1 bg-emerald-600 hover:bg-emerald-700 text-white",onClick:()=>w.mutate({id:d._id.toString(),decision:"approved",comment:m}),disabled:w.isPending,children:[h.jsx(Dr,{"data-loc":"client/src/pages/ApprovalCases.tsx:259",className:"w-4 h-4 mr-1.5"}),"确认通过"]}),h.jsxs(Pe,{"data-loc":"client/src/pages/ApprovalCases.tsx:261",className:"flex-1 bg-red-600 hover:bg-red-700 text-white",onClick:()=>w.mutate({id:d._id.toString(),decision:"rejected",comment:m}),disabled:w.isPending,children:[h.jsx(vd,{"data-loc":"client/src/pages/ApprovalCases.tsx:266",className:"w-4 h-4 mr-1.5"}),"否决拒绝"]})]})]})]})})]})}const Hw=["jurisdiction","asset_type","compliance_requirement","risk_indicator"],Gw={jurisdiction:"司法辖区",asset_type:"资产类型",compliance_requirement:"合规要求",risk_indicator:"风险指标"};function Wme(){const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[a,o]=E.useState({keyword:"",tags:"",dimension:"",description:""}),[l,c]=E.useState({documentId:"",originalTags:"",correctedTags:"",reason:""}),d=Me.useUtils(),{data:f,isLoading:m,refetch:g}=Me.tagEngine.listRules.useQuery(),v=Me.tagEngine.createRule.useMutation({onSuccess:()=>{Ue.success("标签规则创建成功"),t(!1),d.tagEngine.listRules.invalidate(),o({keyword:"",tags:"",dimension:"",description:""})},onError:j=>Ue.error(j.message)}),b=Me.tagEngine.correctTag.useMutation({onSuccess:()=>{Ue.success("标签修正已提交,将作为训练数据"),r(!1),d.tagEngine.listRules.invalidate(),c({documentId:"",originalTags:"",correctedTags:"",reason:""})},onError:j=>Ue.error(j.message)}),A=f||[],x=A.filter(j=>j.type==="rule"),w=A.filter(j=>j.type==="correction"),C={};return Hw.forEach(j=>{C[j]=x.filter(T=>T.dimension===j).length}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:58",className:"p-6 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:59",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:60",children:[h.jsx("h1",{"data-loc":"client/src/pages/TagEngine.tsx:61",className:"text-2xl font-bold nac-gradient-text",children:"标签引擎治理"}),h.jsx("p",{"data-loc":"client/src/pages/TagEngine.tsx:62",className:"text-sm text-muted-foreground mt-0.5",children:"管理自动化标签序列生成规则,优化AI打标模型"})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:64",className:"flex items-center gap-2",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/TagEngine.tsx:65",variant:"outline",size:"sm",onClick:()=>g(),className:"border-border/50",children:[h.jsx(js,{"data-loc":"client/src/pages/TagEngine.tsx:66",className:"w-4 h-4 mr-1.5"}),"刷新"]}),h.jsxs(oo,{"data-loc":"client/src/pages/TagEngine.tsx:69",open:n,onOpenChange:r,children:[h.jsx(Ql,{"data-loc":"client/src/pages/TagEngine.tsx:70",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/TagEngine.tsx:71",variant:"outline",size:"sm",className:"border-amber-500/30 text-amber-400 hover:bg-amber-500/10",children:[h.jsx(W3,{"data-loc":"client/src/pages/TagEngine.tsx:72",className:"w-4 h-4 mr-1.5"}),"提交修正"]})}),h.jsxs(so,{"data-loc":"client/src/pages/TagEngine.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[h.jsx(lo,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:h.jsx(co,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:"AI打标修正"})}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:77",className:"space-y-4 mt-2",children:[h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:78",className:"bg-amber-500/10 border border-amber-500/20 rounded-lg p-3 text-xs text-amber-400",children:"修正后的标签将作为高质量训练数据,用于持续优化AI打标模型的准确率。"}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:81",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:82",className:"text-xs",children:"文档/资产 ID"}),h.jsx(Wt,{"data-loc":"client/src/pages/TagEngine.tsx:83",value:l.documentId,onChange:j=>c(T=>({...T,documentId:j.target.value})),className:"bg-input border-border/50 h-9",placeholder:"文档或资产的唯一标识符"})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:85",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:86",className:"text-xs",children:"AI原始标签(逗号分隔)"}),h.jsx(Wt,{"data-loc":"client/src/pages/TagEngine.tsx:87",value:l.originalTags,onChange:j=>c(T=>({...T,originalTags:j.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, ..."})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:89",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:90",className:"text-xs",children:"修正后标签(逗号分隔)"}),h.jsx(Wt,{"data-loc":"client/src/pages/TagEngine.tsx:91",value:l.correctedTags,onChange:j=>c(T=>({...T,correctedTags:j.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN.Shanghai, RealEstate.Commercial, ..."})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:93",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:94",className:"text-xs",children:"修正原因"}),h.jsx(Sc,{"data-loc":"client/src/pages/TagEngine.tsx:95",value:l.reason,onChange:j=>c(T=>({...T,reason:j.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"说明为什么AI打标有误..."})]}),h.jsx(Pe,{"data-loc":"client/src/pages/TagEngine.tsx:97",className:"w-full bg-amber-600 hover:bg-amber-700 text-white",onClick:()=>b.mutate({documentId:l.documentId,originalTags:l.originalTags.split(",").map(j=>j.trim()).filter(Boolean),correctedTags:l.correctedTags.split(",").map(j=>j.trim()).filter(Boolean),reason:l.reason}),disabled:b.isPending||!l.documentId||!l.correctedTags,children:b.isPending?"提交中...":"提交修正"})]})]})]}),h.jsxs(oo,{"data-loc":"client/src/pages/TagEngine.tsx:113",open:e,onOpenChange:t,children:[h.jsx(Ql,{"data-loc":"client/src/pages/TagEngine.tsx:114",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/TagEngine.tsx:115",size:"sm",className:"nac-gradient text-white",children:[h.jsx(df,{"data-loc":"client/src/pages/TagEngine.tsx:115",className:"w-4 h-4 mr-1.5"}),"新增规则"]})}),h.jsxs(so,{"data-loc":"client/src/pages/TagEngine.tsx:117",className:"bg-card border-border/50 max-w-lg",children:[h.jsx(lo,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:h.jsx(co,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:"新增标签匹配规则"})}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:119",className:"space-y-4 mt-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:120",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:121",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:122",className:"text-xs",children:"关键词"}),h.jsx(Wt,{"data-loc":"client/src/pages/TagEngine.tsx:123",value:a.keyword,onChange:j=>o(T=>({...T,keyword:j.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:上海市"})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:125",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:126",className:"text-xs",children:"标签维度"}),h.jsxs(wn,{"data-loc":"client/src/pages/TagEngine.tsx:127",value:a.dimension,onValueChange:j=>o(T=>({...T,dimension:j})),children:[h.jsx(An,{"data-loc":"client/src/pages/TagEngine.tsx:128",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/TagEngine.tsx:128",placeholder:"选择维度"})}),h.jsx(On,{"data-loc":"client/src/pages/TagEngine.tsx:129",className:"bg-card border-border/50",children:Hw.map(j=>h.jsx(ot,{"data-loc":"client/src/pages/TagEngine.tsx:130",value:j,children:Gw[j]},j))})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:135",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:136",className:"text-xs",children:"匹配后打标(逗号分隔)"}),h.jsx(Wt,{"data-loc":"client/src/pages/TagEngine.tsx:137",value:a.tags,onChange:j=>o(T=>({...T,tags:j.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, CN.Shanghai"})]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:139",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/TagEngine.tsx:140",className:"text-xs",children:"规则描述"}),h.jsx(Sc,{"data-loc":"client/src/pages/TagEngine.tsx:141",value:a.description,onChange:j=>o(T=>({...T,description:j.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"规则用途说明..."})]}),h.jsx(Pe,{"data-loc":"client/src/pages/TagEngine.tsx:143",className:"w-full nac-gradient text-white",onClick:()=>v.mutate({keyword:a.keyword,tags:a.tags.split(",").map(j=>j.trim()).filter(Boolean),dimension:a.dimension,description:a.description}),disabled:v.isPending||!a.keyword||!a.dimension||!a.tags,children:v.isPending?"创建中...":"创建规则"})]})]})]})]})]}),h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:162",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:Hw.map(j=>h.jsx(Ze,{"data-loc":"client/src/pages/TagEngine.tsx:164",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/TagEngine.tsx:165",className:"p-4 flex items-center gap-3",children:[h.jsx(_Y,{"data-loc":"client/src/pages/TagEngine.tsx:166",className:"w-7 h-7 text-primary shrink-0"}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:167",children:[h.jsx("p",{"data-loc":"client/src/pages/TagEngine.tsx:168",className:"text-xl font-bold text-primary",children:C[j]??0}),h.jsx("p",{"data-loc":"client/src/pages/TagEngine.tsx:169",className:"text-xs text-muted-foreground",children:Gw[j]})]})]})},j))}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[h.jsxs(Ze,{"data-loc":"client/src/pages/TagEngine.tsx:179",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/TagEngine.tsx:180",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/TagEngine.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(J3,{"data-loc":"client/src/pages/TagEngine.tsx:182",className:"w-4 h-4 text-primary"}),"标签匹配规则 (",x.length,")"]})}),h.jsx(Je,{"data-loc":"client/src/pages/TagEngine.tsx:186",children:m?h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:188",className:"p-4 text-center text-muted-foreground text-sm",children:"加载中..."}):x.length===0?h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:190",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无规则"}):h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:192",className:"space-y-2 max-h-[400px] overflow-y-auto",children:x.map(j=>h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:194",className:"border border-border/30 rounded-lg p-3 hover:border-primary/30 transition-colors",children:h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:195",className:"flex items-start justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:196",children:[h.jsxs("p",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-sm font-medium",children:["关键词: ",h.jsx("span",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-primary",children:j.keyword})]}),h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:198",className:"flex flex-wrap gap-1 mt-1",children:(j.tags||[]).map(T=>h.jsx("span",{"data-loc":"client/src/pages/TagEngine.tsx:200",className:"text-xs px-1.5 py-0.5 rounded bg-primary/15 text-primary",children:T},T))}),h.jsx("p",{"data-loc":"client/src/pages/TagEngine.tsx:203",className:"text-xs text-muted-foreground mt-1",children:Gw[j.dimension]||j.dimension})]}),h.jsx(Mr,{"data-loc":"client/src/pages/TagEngine.tsx:205",variant:"outline",className:"text-xs border-emerald-500/30 text-emerald-400 shrink-0",children:"活跃"})]})},j._id?.toString()))})})]}),h.jsxs(Ze,{"data-loc":"client/src/pages/TagEngine.tsx:215",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/TagEngine.tsx:216",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/TagEngine.tsx:217",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(bY,{"data-loc":"client/src/pages/TagEngine.tsx:218",className:"w-4 h-4 text-amber-400"}),"AI打标修正记录 (",w.length,")"]})}),h.jsx(Je,{"data-loc":"client/src/pages/TagEngine.tsx:222",children:w.length===0?h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:224",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无修正记录"}):h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:226",className:"space-y-2 max-h-[400px] overflow-y-auto",children:w.map(j=>h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:228",className:"border border-amber-500/20 rounded-lg p-3",children:[h.jsxs("p",{"data-loc":"client/src/pages/TagEngine.tsx:229",className:"text-xs font-medium text-muted-foreground mb-1",children:["文档: ",j.documentId]}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:230",className:"flex items-center gap-2 text-xs",children:[h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:231",children:[h.jsx("p",{"data-loc":"client/src/pages/TagEngine.tsx:232",className:"text-muted-foreground mb-0.5",children:"原始:"}),h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:233",className:"flex flex-wrap gap-1",children:(j.originalTags||[]).map(T=>h.jsx("span",{"data-loc":"client/src/pages/TagEngine.tsx:235",className:"px-1.5 py-0.5 rounded bg-red-500/15 text-red-400",children:T},T))})]}),h.jsx("span",{"data-loc":"client/src/pages/TagEngine.tsx:239",className:"text-muted-foreground",children:"→"}),h.jsxs("div",{"data-loc":"client/src/pages/TagEngine.tsx:240",children:[h.jsx("p",{"data-loc":"client/src/pages/TagEngine.tsx:241",className:"text-muted-foreground mb-0.5",children:"修正:"}),h.jsx("div",{"data-loc":"client/src/pages/TagEngine.tsx:242",className:"flex flex-wrap gap-1",children:(j.correctedTags||[]).map(T=>h.jsx("span",{"data-loc":"client/src/pages/TagEngine.tsx:244",className:"px-1.5 py-0.5 rounded bg-emerald-500/15 text-emerald-400",children:T},T))})]})]}),h.jsxs("p",{"data-loc":"client/src/pages/TagEngine.tsx:249",className:"text-xs text-muted-foreground mt-1.5",children:["修正者: ",j.correctedBy]})]},j._id?.toString()))})})]})]})]})}const Zme=["compliance","asset","identity","governance","settlement","oracle"];function Jme(){const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[a,o]=E.useState(null),[l,c]=E.useState({name:"",type:"",version:"",endpoint:"",trigger:"",description:""}),[d,f]=E.useState({version:"",trigger:""}),m=Me.useUtils(),{data:g,isLoading:v,refetch:b}=Me.protocolRegistry.list.useQuery(),A=Me.protocolRegistry.register.useMutation({onSuccess:()=>{Ue.success("协议注册成功"),t(!1),m.protocolRegistry.list.invalidate(),c({name:"",type:"",version:"",endpoint:"",trigger:"",description:""})},onError:O=>Ue.error(O.message)}),x=Me.protocolRegistry.toggleStatus.useMutation({onSuccess:()=>{Ue.success("协议状态已更新"),m.protocolRegistry.list.invalidate()},onError:O=>Ue.error(O.message)}),w=Me.protocolRegistry.updateVersion.useMutation({onSuccess:()=>{Ue.success("协议版本已更新"),r(!1),m.protocolRegistry.list.invalidate()},onError:O=>Ue.error(O.message)}),C=g||[],j=C.filter(O=>O.status==="active").length,T=C.filter(O=>O.status==="deprecated").length,M=O=>{const _={active:"status-active",disabled:"status-inactive",deprecated:"status-deprecated"},N={active:"运行中",disabled:"已停用",deprecated:"已废弃"};return h.jsx("span",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:57",className:`text-xs px-2 py-0.5 rounded-full font-medium ${_[O]||"status-inactive"}`,children:N[O]||O})};return h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:61",className:"p-6 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:62",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:63",children:[h.jsx("h1",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:64",className:"text-2xl font-bold nac-gradient-text",children:"协议族注册表"}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:65",className:"text-sm text-muted-foreground mt-0.5",children:"管理接入AI审批系统的所有NAC原生协议"})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:67",className:"flex items-center gap-2",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:68",variant:"outline",size:"sm",onClick:()=>b(),className:"border-border/50",children:[h.jsx(js,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:69",className:"w-4 h-4 mr-1.5"}),"刷新"]}),h.jsxs(oo,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:71",open:e,onOpenChange:t,children:[h.jsx(Ql,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:72",asChild:!0,children:h.jsxs(Pe,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",size:"sm",className:"nac-gradient text-white",children:[h.jsx(df,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",className:"w-4 h-4 mr-1.5"}),"注册协议"]})}),h.jsxs(so,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[h.jsx(lo,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:h.jsx(co,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:"注册新协议"})}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:77",className:"space-y-4 mt-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:78",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:79",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:80",className:"text-xs",children:"协议名称"}),h.jsx(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:81",value:l.name,onChange:O=>c(_=>({..._,name:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:ACC-21"})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:83",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:84",className:"text-xs",children:"协议类型"}),h.jsxs(wn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:85",value:l.type,onValueChange:O=>c(_=>({..._,type:O})),children:[h.jsx(An,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",className:"bg-input border-border/50 h-9",children:h.jsx(Sn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",placeholder:"选择类型"})}),h.jsx(On,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:87",className:"bg-card border-border/50",children:Zme.map(O=>h.jsx(ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:88",value:O,children:O},O))})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:93",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:94",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:95",className:"text-xs",children:"版本号"}),h.jsx(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:96",value:l.version,onChange:O=>c(_=>({..._,version:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"1.0.0"})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:98",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:99",className:"text-xs",children:"服务端点"}),h.jsx(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:100",value:l.endpoint,onChange:O=>c(_=>({..._,endpoint:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"https://acc21.newassetchain.io"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:103",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:104",className:"text-xs",children:"触发条件"}),h.jsx(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:105",value:l.trigger,onChange:O=>c(_=>({..._,trigger:O.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:asset.type == 'DigitalToken'"})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:107",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:108",className:"text-xs",children:"协议描述"}),h.jsx(Sc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:109",value:l.description,onChange:O=>c(_=>({..._,description:O.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"协议功能说明..."})]}),h.jsx(Pe,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:111",className:"w-full nac-gradient text-white",onClick:()=>A.mutate(l),disabled:A.isPending||!l.name||!l.type||!l.version||!l.endpoint||!l.trigger,children:A.isPending?"注册中...":"注册协议"})]})]})]})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:125",className:"grid grid-cols-3 gap-3",children:[h.jsx(Ze,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:126",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:127",className:"p-4 flex items-center gap-3",children:[h.jsx(ed,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:128",className:"w-7 h-7 text-primary shrink-0"}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",children:[h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-2xl font-bold text-primary",children:C.length}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-xs text-muted-foreground",children:"总协议数"})]})]})}),h.jsx(Ze,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:132",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:133",className:"p-4 flex items-center gap-3",children:[h.jsx(fs,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:134",className:"w-7 h-7 text-emerald-400 shrink-0"}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",children:[h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-2xl font-bold text-emerald-400",children:j}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-xs text-muted-foreground",children:"运行中"})]})]})}),h.jsx(Ze,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:138",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:139",className:"p-4 flex items-center gap-3",children:[h.jsx(ps,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:140",className:"w-7 h-7 text-orange-400 shrink-0"}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",children:[h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-2xl font-bold text-orange-400",children:T}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-xs text-muted-foreground",children:"已废弃"})]})]})})]}),v?h.jsx("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:148",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."}):C.length===0?h.jsx(Ze,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:150",className:"border-border/50",children:h.jsxs(Je,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:151",className:"p-8 text-center",children:[h.jsx(ed,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:152",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:153",className:"text-muted-foreground text-sm",children:"暂无注册协议"})]})}):h.jsx("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:157",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:C.map(O=>h.jsx(Ze,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:159",className:"border-border/50 hover:border-primary/30 transition-colors",children:h.jsxs(Je,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:160",className:"p-4",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:161",className:"flex items-start justify-between mb-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:162",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:163",className:"flex items-center gap-2",children:[h.jsx(ed,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:164",className:"w-4 h-4 text-primary"}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:165",className:"font-semibold",children:O.name}),h.jsxs(Mr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:166",variant:"outline",className:"text-xs border-border/50",children:["v",O.version]})]}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:168",className:"text-xs text-muted-foreground mt-0.5",children:O.type})]}),M(O.status)]}),O.description&&h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:174",className:"text-xs text-muted-foreground mb-2",children:O.description}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:177",className:"bg-muted/20 rounded p-2 mb-3",children:[h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:178",className:"text-xs text-muted-foreground mb-0.5",children:"服务端点"}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:179",className:"text-xs font-mono text-primary truncate",children:O.endpoint})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:182",className:"bg-muted/20 rounded p-2 mb-3",children:[h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:183",className:"text-xs text-muted-foreground mb-0.5",children:"触发条件"}),h.jsx("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:184",className:"text-xs font-mono",children:O.trigger})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:187",className:"flex items-center gap-2",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:188",variant:"outline",size:"sm",className:"h-7 px-2 text-xs border-border/50 flex-1",onClick:()=>{o(O),f({version:O.version,trigger:O.trigger}),r(!0)},children:[h.jsx(W3,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:197",className:"w-3 h-3 mr-1"}),"更新版本"]}),h.jsxs(Pe,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:199",variant:"outline",size:"sm",className:"h-7 px-2 text-xs border-border/50 flex-1",onClick:()=>{const _=O.status==="active"?"disabled":O.status==="disabled"?"deprecated":"active";x.mutate({id:O._id.toString(),status:_})},disabled:x.isPending,children:[h.jsx(e4,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:208",className:"w-3 h-3 mr-1"}),O.status==="active"?"停用":O.status==="disabled"?"废弃":"激活"]})]})]})},O._id?.toString()))}),h.jsx(oo,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:219",open:n,onOpenChange:r,children:h.jsxs(so,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:220",className:"bg-card border-border/50 max-w-md",children:[h.jsx(lo,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:h.jsxs(co,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:["更新协议版本 — ",a?.name]})}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:222",className:"space-y-4 mt-2",children:[h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:223",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:224",className:"text-xs",children:"新版本号"}),h.jsx(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:225",value:d.version,onChange:O=>f(_=>({..._,version:O.target.value})),className:"bg-input border-border/50 h-9"})]}),h.jsxs("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:227",className:"space-y-1.5",children:[h.jsx(tt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:228",className:"text-xs",children:"新触发条件(可选)"}),h.jsx(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:229",value:d.trigger,onChange:O=>f(_=>({..._,trigger:O.target.value})),className:"bg-input border-border/50 h-9"})]}),h.jsx(Pe,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:231",className:"w-full nac-gradient text-white",onClick:()=>a&&w.mutate({id:a._id.toString(),version:d.version,trigger:d.trigger||void 0}),disabled:w.isPending||!d.version,children:w.isPending?"更新中...":"确认更新"})]})]})})]})}const Vw={LOGIN:"用户登录",LOGOUT:"用户登出",CREATE_RULE:"创建规则",UPDATE_RULE:"更新规则",DELETE_RULE:"删除规则",REVIEW_CASE:"审核案例",CORRECT_TAG:"修正标签",CREATE_TAG_RULE:"创建标签规则",REGISTER_PROTOCOL:"注册协议",TOGGLE_PROTOCOL:"切换协议状态",UPDATE_PROTOCOL_VERSION:"更新协议版本",TRIGGER_CRAWLER:"触发采集器",UPDATE_CRAWLER_CONFIG:"更新采集器配置",MANAGE_USER:"管理用户"};function eve(){const[e,t]=E.useState(""),[n,r]=E.useState(""),[a,o]=E.useState(1),{data:l,isLoading:c,refetch:d}=Me.rbac.auditLogs.useQuery({action:e||void 0,page:a,pageSize:20}),{data:f,isLoading:m}=Me.rbac.listUsers.useQuery({page:1,pageSize:100}),g=l?.items||[],v=l?.total||0,b=Math.ceil(v/20),A=f?.users||[],x=w=>Vw[w]||w;return h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:38",className:"p-6 space-y-5",children:[h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:39",className:"flex items-center justify-between",children:[h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:40",children:[h.jsx("h1",{"data-loc":"client/src/pages/AuditLog.tsx:41",className:"text-2xl font-bold nac-gradient-text",children:"权限与审计"}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:42",className:"text-sm text-muted-foreground mt-0.5",children:"基于角色的访问控制与不可篡改的操作审计日志"})]}),h.jsxs(Pe,{"data-loc":"client/src/pages/AuditLog.tsx:44",variant:"outline",size:"sm",onClick:()=>d(),className:"border-border/50",children:[h.jsx(js,{"data-loc":"client/src/pages/AuditLog.tsx:45",className:"w-4 h-4 mr-1.5"}),"刷新"]})]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:49",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[h.jsxs(Ze,{"data-loc":"client/src/pages/AuditLog.tsx:51",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/AuditLog.tsx:52",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/AuditLog.tsx:53",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(_S,{"data-loc":"client/src/pages/AuditLog.tsx:54",className:"w-4 h-4 text-primary"}),"用户角色管理"]})}),h.jsx(Je,{"data-loc":"client/src/pages/AuditLog.tsx:57",children:m?h.jsx("div",{"data-loc":"client/src/pages/AuditLog.tsx:59",className:"p-4 text-center text-muted-foreground text-sm",children:"加载中..."}):A.length===0?h.jsx("div",{"data-loc":"client/src/pages/AuditLog.tsx:61",className:"p-4 text-center text-muted-foreground text-sm",children:"暂无用户"}):h.jsx("div",{"data-loc":"client/src/pages/AuditLog.tsx:63",className:"space-y-2 max-h-[400px] overflow-y-auto",children:A.map(w=>h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:65",className:"flex items-center justify-between p-3 border border-border/30 rounded-lg hover:border-primary/30 transition-colors",children:[h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:66",children:[h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:67",className:"text-sm font-medium",children:w.email}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:68",className:"text-xs text-muted-foreground",children:w.name||"未设置姓名"})]}),h.jsxs(wn,{"data-loc":"client/src/pages/AuditLog.tsx:70",value:w.role,onValueChange:C=>{},children:[h.jsx(An,{"data-loc":"client/src/pages/AuditLog.tsx:74",className:"w-28 bg-input border-border/50 h-7 text-xs",children:h.jsx(Sn,{"data-loc":"client/src/pages/AuditLog.tsx:75"})}),h.jsxs(On,{"data-loc":"client/src/pages/AuditLog.tsx:77",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/AuditLog.tsx:78",value:"admin",children:"管理员"}),h.jsx(ot,{"data-loc":"client/src/pages/AuditLog.tsx:79",value:"reviewer",children:"审核员"}),h.jsx(ot,{"data-loc":"client/src/pages/AuditLog.tsx:80",value:"legal",children:"法务"}),h.jsx(ot,{"data-loc":"client/src/pages/AuditLog.tsx:81",value:"viewer",children:"只读"})]})]})]},w._id?.toString()))})})]}),h.jsxs(Ze,{"data-loc":"client/src/pages/AuditLog.tsx:92",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/AuditLog.tsx:93",className:"pb-2",children:h.jsxs(dr,{"data-loc":"client/src/pages/AuditLog.tsx:94",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(io,{"data-loc":"client/src/pages/AuditLog.tsx:95",className:"w-4 h-4 text-primary"}),"审计统计"]})}),h.jsxs(Je,{"data-loc":"client/src/pages/AuditLog.tsx:98",children:[h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:99",className:"grid grid-cols-2 gap-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:100",className:"bg-muted/20 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:101",className:"text-2xl font-bold text-primary",children:v}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:102",className:"text-xs text-muted-foreground",children:"总操作记录"})]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:104",className:"bg-muted/20 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:105",className:"text-2xl font-bold text-emerald-400",children:A.length}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:106",className:"text-xs text-muted-foreground",children:"系统用户"})]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:108",className:"bg-muted/20 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:109",className:"text-2xl font-bold text-amber-400",children:A.filter(w=>w.role==="admin").length}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:110",className:"text-xs text-muted-foreground",children:"管理员"})]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:112",className:"bg-muted/20 rounded-lg p-3 text-center",children:[h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:113",className:"text-2xl font-bold text-blue-400",children:A.filter(w=>w.role==="reviewer").length}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:114",className:"text-xs text-muted-foreground",children:"审核员"})]})]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:117",className:"mt-3 bg-amber-500/10 border border-amber-500/20 rounded-lg p-3",children:[h.jsxs("p",{"data-loc":"client/src/pages/AuditLog.tsx:118",className:"text-xs text-amber-400 font-medium flex items-center gap-1.5",children:[h.jsx(io,{"data-loc":"client/src/pages/AuditLog.tsx:119",className:"w-3.5 h-3.5"}),"审计日志不可篡改"]}),h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:121",className:"text-xs text-muted-foreground mt-1",children:"所有关键操作均被记录,包含操作者、时间、详情,无法删除或修改。"})]})]})]})]}),h.jsxs(Ze,{"data-loc":"client/src/pages/AuditLog.tsx:128",className:"border-border/50",children:[h.jsx(ur,{"data-loc":"client/src/pages/AuditLog.tsx:129",className:"pb-2",children:h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:130",className:"flex items-center justify-between",children:[h.jsxs(dr,{"data-loc":"client/src/pages/AuditLog.tsx:131",className:"text-sm font-semibold flex items-center gap-2",children:[h.jsx(X3,{"data-loc":"client/src/pages/AuditLog.tsx:132",className:"w-4 h-4 text-primary"}),"操作审计日志"]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:134",className:"flex items-center gap-2",children:[h.jsxs(wn,{"data-loc":"client/src/pages/AuditLog.tsx:135",value:e,onValueChange:w=>{t(w==="ALL_FILTER"?"":w),o(1)},children:[h.jsx(An,{"data-loc":"client/src/pages/AuditLog.tsx:136",className:"w-36 bg-input border-border/50 h-7 text-xs",children:h.jsx(Sn,{"data-loc":"client/src/pages/AuditLog.tsx:136",placeholder:"全部操作"})}),h.jsxs(On,{"data-loc":"client/src/pages/AuditLog.tsx:137",className:"bg-card border-border/50",children:[h.jsx(ot,{"data-loc":"client/src/pages/AuditLog.tsx:138",value:"ALL_FILTER",children:"全部操作"}),Object.keys(Vw).map(w=>h.jsx(ot,{"data-loc":"client/src/pages/AuditLog.tsx:139",value:w,children:Vw[w]},w))]})]}),h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:142",className:"relative",children:[h.jsx(IY,{"data-loc":"client/src/pages/AuditLog.tsx:143",className:"w-3.5 h-3.5 absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),h.jsx(Wt,{"data-loc":"client/src/pages/AuditLog.tsx:144",value:n,onChange:w=>{r(w.target.value),o(1)},className:"bg-input border-border/50 h-7 text-xs pl-7 w-40",placeholder:"搜索用户邮箱..."})]})]})]})}),h.jsxs(Je,{"data-loc":"client/src/pages/AuditLog.tsx:154",className:"p-0",children:[c?h.jsx("div",{"data-loc":"client/src/pages/AuditLog.tsx:156",className:"p-6 text-center text-muted-foreground text-sm",children:"加载中..."}):g.length===0?h.jsx("div",{"data-loc":"client/src/pages/AuditLog.tsx:158",className:"p-6 text-center text-muted-foreground text-sm",children:"暂无审计记录"}):h.jsx("div",{"data-loc":"client/src/pages/AuditLog.tsx:160",className:"overflow-x-auto",children:h.jsxs("table",{"data-loc":"client/src/pages/AuditLog.tsx:161",className:"w-full text-sm",children:[h.jsx("thead",{"data-loc":"client/src/pages/AuditLog.tsx:162",children:h.jsxs("tr",{"data-loc":"client/src/pages/AuditLog.tsx:163",className:"border-b border-border/30",children:[h.jsx("th",{"data-loc":"client/src/pages/AuditLog.tsx:164",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"操作类型"}),h.jsx("th",{"data-loc":"client/src/pages/AuditLog.tsx:165",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"操作者"}),h.jsx("th",{"data-loc":"client/src/pages/AuditLog.tsx:166",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"详情"}),h.jsx("th",{"data-loc":"client/src/pages/AuditLog.tsx:167",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"时间"})]})}),h.jsx("tbody",{"data-loc":"client/src/pages/AuditLog.tsx:170",children:g.map(w=>h.jsxs("tr",{"data-loc":"client/src/pages/AuditLog.tsx:172",className:"border-b border-border/20 hover:bg-accent/20 transition-colors",children:[h.jsx("td",{"data-loc":"client/src/pages/AuditLog.tsx:173",className:"p-3",children:h.jsx("span",{"data-loc":"client/src/pages/AuditLog.tsx:174",className:"text-xs px-2 py-0.5 rounded-full bg-primary/15 text-primary font-medium",children:x(w.action)})}),h.jsx("td",{"data-loc":"client/src/pages/AuditLog.tsx:178",className:"p-3",children:h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:179",className:"flex items-center gap-1.5",children:[h.jsx(_S,{"data-loc":"client/src/pages/AuditLog.tsx:180",className:"w-3 h-3 text-muted-foreground"}),h.jsx("span",{"data-loc":"client/src/pages/AuditLog.tsx:181",className:"text-xs",children:w.userEmail})]})}),h.jsx("td",{"data-loc":"client/src/pages/AuditLog.tsx:184",className:"p-3",children:h.jsx("p",{"data-loc":"client/src/pages/AuditLog.tsx:185",className:"text-xs text-muted-foreground line-clamp-1",children:w.details?JSON.stringify(w.details):"-"})}),h.jsx("td",{"data-loc":"client/src/pages/AuditLog.tsx:189",className:"p-3",children:h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:190",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[h.jsx(_c,{"data-loc":"client/src/pages/AuditLog.tsx:191",className:"w-3 h-3"}),w.createdAt?new Date(w.createdAt).toLocaleString("zh-CN"):"-"]})})]},w._id?.toString()))})]})}),b>1&&h.jsxs("div",{"data-loc":"client/src/pages/AuditLog.tsx:202",className:"flex items-center justify-center gap-2 p-3 border-t border-border/20",children:[h.jsx(Pe,{"data-loc":"client/src/pages/AuditLog.tsx:203",variant:"outline",size:"sm",onClick:()=>o(w=>Math.max(1,w-1)),disabled:a===1,className:"border-border/50 h-7 text-xs",children:"上一页"}),h.jsxs("span",{"data-loc":"client/src/pages/AuditLog.tsx:204",className:"text-xs text-muted-foreground",children:[a," / ",b]}),h.jsx(Pe,{"data-loc":"client/src/pages/AuditLog.tsx:205",variant:"outline",size:"sm",onClick:()=>o(w=>Math.min(b,w+1)),disabled:a===b,className:"border-border/50 h-7 text-xs",children:"下一页"})]})]})]})]})}const wh={BookOpen:NO,Shield:io,Languages:vh,ClipboardCheck:SY},tve={knowledge_qa:"text-blue-500",compliance:"text-red-500",translation:"text-green-500",approval_assist:"text-purple-500"};function nve({confidence:e}){const t=Math.round(e*100),n=t>=80?"text-green-600":t>=60?"text-yellow-600":"text-red-500";return h.jsxs("span",{"data-loc":"client/src/pages/AIAgents.tsx:55",className:`text-xs ${n} flex items-center gap-1`,children:[h.jsx(Dr,{"data-loc":"client/src/pages/AIAgents.tsx:56",className:"w-3 h-3"}),"置信度 ",t,"%"]})}function rve({source:e,onClick:t}){return h.jsxs("button",{"data-loc":"client/src/pages/AIAgents.tsx:65",onClick:t,className:"inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-200 hover:underline transition-colors cursor-pointer bg-blue-50 dark:bg-blue-950/30 rounded px-1.5 py-0.5 border border-blue-200 dark:border-blue-800",title:`点击跳转到知识库:${e}`,children:[h.jsx(NO,{"data-loc":"client/src/pages/AIAgents.tsx:70",className:"w-2.5 h-2.5 shrink-0"}),h.jsx("span",{"data-loc":"client/src/pages/AIAgents.tsx:71",className:"max-w-[120px] truncate",children:e}),h.jsx(AY,{"data-loc":"client/src/pages/AIAgents.tsx:72",className:"w-2.5 h-2.5 shrink-0"})]})}function ave({msg:e,onSourceClick:t}){const n=e.role==="user";return h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:81",className:`flex gap-3 ${n?"flex-row-reverse":"flex-row"}`,children:[h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:82",className:`w-8 h-8 rounded-full flex items-center justify-center shrink-0 ${n?"bg-primary text-primary-foreground":"bg-muted"}`,children:n?h.jsx(_S,{"data-loc":"client/src/pages/AIAgents.tsx:83",className:"w-4 h-4"}):h.jsx(Dl,{"data-loc":"client/src/pages/AIAgents.tsx:83",className:"w-4 h-4"})}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:85",className:`max-w-[75%] space-y-1 ${n?"items-end":"items-start"} flex flex-col`,children:[h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:86",className:`rounded-2xl px-4 py-3 text-sm leading-relaxed whitespace-pre-wrap break-words ${n?"bg-primary text-primary-foreground rounded-tr-sm":"bg-muted text-foreground rounded-tl-sm"}`,dir:e.isRTL?"rtl":"ltr",children:e.content}),!n&&h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:97",className:"flex flex-wrap gap-2 px-1",children:[e.confidence!==void 0&&h.jsx(nve,{"data-loc":"client/src/pages/AIAgents.tsx:98",confidence:e.confidence}),e.sources&&e.sources.length>0&&h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:100",className:"flex flex-wrap items-center gap-1",children:[h.jsxs("span",{"data-loc":"client/src/pages/AIAgents.tsx:101",className:"text-xs text-muted-foreground flex items-center gap-1",children:[h.jsx(PO,{"data-loc":"client/src/pages/AIAgents.tsx:102",className:"w-3 h-3"}),"引用来源:"]}),e.sources.slice(0,3).map((r,a)=>h.jsx(rve,{"data-loc":"client/src/pages/AIAgents.tsx:106",source:r,onClick:()=>t?.(r)},a)),e.sources.length>3&&h.jsxs("span",{"data-loc":"client/src/pages/AIAgents.tsx:113",className:"text-xs text-muted-foreground",children:["+",e.sources.length-3,"条"]})]})]}),!n&&e.suggestions&&e.suggestions.length>0&&h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:120",className:"flex flex-wrap gap-1 px-1",children:e.suggestions.map((r,a)=>h.jsx(Mr,{"data-loc":"client/src/pages/AIAgents.tsx:122",variant:"outline",className:"text-xs cursor-default",children:r},a))})]})]})}function ive({conv:e,isActive:t,onClick:n,onDelete:r}){const a=wh[e.agentType==="knowledge_qa"?"BookOpen":e.agentType==="compliance"?"Shield":e.agentType==="translation"?"Languages":"ClipboardCheck"]||Dl,o=tve[e.agentType]||"text-muted-foreground",c=new Date(e.updatedAt).toLocaleDateString("zh-CN",{month:"short",day:"numeric"});return h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:149",className:`group flex items-start gap-2 rounded-lg p-2.5 cursor-pointer transition-all ${t?"bg-primary/10 border border-primary/20":"hover:bg-muted"}`,onClick:n,children:[h.jsx(a,{"data-loc":"client/src/pages/AIAgents.tsx:155",className:`w-3.5 h-3.5 mt-0.5 shrink-0 ${o}`}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:156",className:"flex-1 min-w-0",children:[h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:157",className:"text-xs font-medium truncate leading-snug",children:e.title}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:158",className:"flex items-center gap-1.5 mt-0.5",children:[h.jsx(_c,{"data-loc":"client/src/pages/AIAgents.tsx:159",className:"w-2.5 h-2.5 text-muted-foreground"}),h.jsx("span",{"data-loc":"client/src/pages/AIAgents.tsx:160",className:"text-[10px] text-muted-foreground",children:c}),h.jsxs("span",{"data-loc":"client/src/pages/AIAgents.tsx:161",className:"text-[10px] text-muted-foreground",children:["· ",e.messageCount,"条"]})]})]}),h.jsx("button",{"data-loc":"client/src/pages/AIAgents.tsx:164",className:"opacity-0 group-hover:opacity-100 p-0.5 rounded hover:text-red-500 transition-all shrink-0",onClick:d=>{d.stopPropagation(),r()},children:h.jsx(t4,{"data-loc":"client/src/pages/AIAgents.tsx:168",className:"w-3 h-3"})})]})}function ove(){const[e,t]=E.useState(null),[n,r]=E.useState(null),[a,o]=E.useState([]),[l,c]=E.useState(""),[d,f]=E.useState(!0),m=E.useRef(null);Me.useUtils();const[,g]=nm(),v=L=>{const U=L.split("·").pop()||L;g(`/knowledge-base?search=${encodeURIComponent(U)}`)},{data:b,isLoading:A}=Me.aiAgent.list.useQuery(),{data:x}=Me.aiAgent.status.useQuery(),{data:w,refetch:C}=Me.aiAgent.listConversations.useQuery({agentType:e||void 0,limit:30},{enabled:!0}),j=Me.aiAgent.loadHistory.useQuery({conversationId:n,limit:50},{enabled:!!n});E.useEffect(()=>{if(j.data?.messages&&n){const L=j.data.messages.map(U=>({role:U.role,content:U.content,confidence:U.confidence,sources:U.sources,suggestions:U.suggestions}));o(L)}},[j.data,n]);const T=Me.aiAgent.deleteConversation.useMutation({onSuccess:()=>{Ue.success("会话已删除"),C()},onError:L=>Ue.error(`删除失败: ${L.message}`)}),M=Me.aiAgent.chat.useMutation({onSuccess:L=>{o(U=>[...U,{role:"assistant",content:L.message,confidence:L.confidence,sources:L.sources,suggestions:L.suggestions,isRTL:L.metadata?.isRTL}]),!n&&L.conversationId&&r(L.conversationId),C()},onError:L=>{Ue.error(`Agent响应失败: ${L.message}`)}});E.useEffect(()=>{m.current?.scrollIntoView({behavior:"smooth"})},[a]);const O=L=>{t(L),r(null),o([]),c("")},_=L=>{t(L.agentType),r(L.conversationId),o([])},N=()=>{r(null),o([]),c("")},P=()=>{const L=l.trim();if(!L||M.isPending||!e)return;const U={role:"user",content:L};o(H=>[...H,U]),c(""),M.mutate({agentType:e,userMessage:L,conversationId:n||void 0,persistHistory:!0})},k=L=>{L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),P())},z=b?.agents.find(L=>L.type===e),B=w?.conversations||[];return h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:310",className:"flex h-full gap-0 overflow-hidden",children:[h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:312",className:"w-72 shrink-0 border-r flex flex-col bg-muted/20",children:[h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:314",className:"p-4 border-b",children:[h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:315",className:"flex items-center gap-2 mb-1",children:[h.jsx(ES,{"data-loc":"client/src/pages/AIAgents.tsx:316",className:"w-5 h-5 text-primary"}),h.jsx("h2",{"data-loc":"client/src/pages/AIAgents.tsx:317",className:"font-semibold text-sm",children:"AI智能体"})]}),x&&h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:320",className:`mt-2 flex items-center gap-1.5 text-xs px-2 py-1 rounded-md ${x.configured?"bg-green-500/10 text-green-600":"bg-yellow-500/10 text-yellow-600"}`,children:x.configured?h.jsxs(h.Fragment,{children:[h.jsx(Dr,{"data-loc":"client/src/pages/AIAgents.tsx:322",className:"w-3 h-3"}),"AI服务已就绪 · ",x.model]}):h.jsxs(h.Fragment,{children:[h.jsx(Ph,{"data-loc":"client/src/pages/AIAgents.tsx:323",className:"w-3 h-3"}),"AI服务未配置"]})})]}),h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:330",className:"p-2 space-y-1 border-b",children:A?h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:332",className:"flex items-center justify-center py-4",children:h.jsx(Cn,{"data-loc":"client/src/pages/AIAgents.tsx:333",className:"w-4 h-4 animate-spin text-muted-foreground"})}):b?.agents.map(L=>{const U=wh[L.icon]||Dl,H=e===L.type&&!n;return h.jsx("button",{"data-loc":"client/src/pages/AIAgents.tsx:340",onClick:()=>O(L.type),className:`w-full text-left rounded-lg p-2.5 transition-all ${H?"bg-primary text-primary-foreground":"hover:bg-muted"}`,children:h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:347",className:"flex items-center gap-2",children:[h.jsx(U,{"data-loc":"client/src/pages/AIAgents.tsx:348",className:"w-4 h-4 shrink-0"}),h.jsx("span",{"data-loc":"client/src/pages/AIAgents.tsx:349",className:"text-sm font-medium truncate",children:L.name}),H&&h.jsx(Q3,{"data-loc":"client/src/pages/AIAgents.tsx:350",className:"w-3 h-3 ml-auto shrink-0"})]})},L.type)})}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:359",className:"flex-1 overflow-y-auto flex flex-col",children:[h.jsxs("button",{"data-loc":"client/src/pages/AIAgents.tsx:360",className:"flex items-center justify-between px-3 py-2 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>f(L=>!L),children:[h.jsxs("span",{"data-loc":"client/src/pages/AIAgents.tsx:364",className:"flex items-center gap-1.5",children:[h.jsx(PY,{"data-loc":"client/src/pages/AIAgents.tsx:365",className:"w-3.5 h-3.5"}),"历史会话 ",B.length>0&&`(${B.length})`]}),d?h.jsx(RO,{"data-loc":"client/src/pages/AIAgents.tsx:368",className:"w-3 h-3"}):h.jsx(em,{"data-loc":"client/src/pages/AIAgents.tsx:368",className:"w-3 h-3"})]}),d&&h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:372",className:"px-2 pb-2 space-y-0.5",children:B.length===0?h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:374",className:"text-xs text-muted-foreground text-center py-4",children:"暂无历史会话"}):B.map(L=>h.jsx(ive,{"data-loc":"client/src/pages/AIAgents.tsx:377",conv:L,isActive:n===L.conversationId,onClick:()=>_(L),onDelete:()=>T.mutate({conversationId:L.conversationId})},L.conversationId))})]}),b&&!b.configured&&h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:392",className:"p-3 border-t",children:h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:393",className:"bg-yellow-500/10 text-yellow-700 text-xs rounded-lg p-2.5 leading-relaxed",children:[h.jsx(Ph,{"data-loc":"client/src/pages/AIAgents.tsx:394",className:"w-3 h-3 inline mr-1"}),b.configHint]})})]}),h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:402",className:"flex-1 flex flex-col overflow-hidden",children:e?h.jsxs(h.Fragment,{children:[h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:435",className:"border-b px-4 py-3 flex items-center gap-3 bg-background",children:[z&&(()=>{const L=wh[z.icon]||Dl;return h.jsxs(h.Fragment,{children:[h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:440",className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:h.jsx(L,{"data-loc":"client/src/pages/AIAgents.tsx:441",className:"w-4 h-4 text-primary"})}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:443",children:[h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:444",className:"text-sm font-semibold",children:z.name}),h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:445",className:"text-xs text-muted-foreground",children:n?`续接历史会话 · ${a.length}条消息`:"新对话 · 历史将自动保存"})]})]})})(),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:455",className:"ml-auto flex items-center gap-2",children:[n&&h.jsxs(Pe,{"data-loc":"client/src/pages/AIAgents.tsx:457",variant:"ghost",size:"sm",className:"text-xs text-muted-foreground gap-1",onClick:N,children:[h.jsx(df,{"data-loc":"client/src/pages/AIAgents.tsx:463",className:"w-3 h-3"}),"新对话"]}),h.jsx(Pe,{"data-loc":"client/src/pages/AIAgents.tsx:467",variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>{o([]),r(null)},children:"清空"})]})]}),j.isLoading&&n&&h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:480",className:"flex items-center justify-center py-4 text-xs text-muted-foreground gap-2",children:[h.jsx(Cn,{"data-loc":"client/src/pages/AIAgents.tsx:481",className:"w-3.5 h-3.5 animate-spin"}),"正在加载历史消息..."]}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:487",className:"flex-1 overflow-y-auto p-4 space-y-4",children:[a.length===0&&!j.isLoading&&z&&h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:489",className:"text-center py-8",children:[h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:490",className:"text-sm text-muted-foreground mb-4",children:"建议提问:"}),h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:491",className:"flex flex-wrap gap-2 justify-center",children:z.suggestedQuestions.map((L,U)=>h.jsx("button",{"data-loc":"client/src/pages/AIAgents.tsx:493",onClick:()=>c(L),className:"text-xs border rounded-full px-3 py-1.5 hover:bg-muted transition-colors text-left",children:L},U))})]}),a.map((L,U)=>h.jsx(ave,{"data-loc":"client/src/pages/AIAgents.tsx:506",msg:L,onSourceClick:v},U)),M.isPending&&h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:510",className:"flex gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:511",className:"w-8 h-8 rounded-full bg-muted flex items-center justify-center shrink-0",children:h.jsx(Dl,{"data-loc":"client/src/pages/AIAgents.tsx:512",className:"w-4 h-4"})}),h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:514",className:"bg-muted rounded-2xl rounded-tl-sm px-4 py-3",children:h.jsx(Cn,{"data-loc":"client/src/pages/AIAgents.tsx:515",className:"w-4 h-4 animate-spin text-muted-foreground"})})]}),h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:519",ref:m})]}),h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:523",className:"border-t p-4 bg-background",children:[h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:524",className:"flex gap-2 items-end",children:[h.jsx(Sc,{"data-loc":"client/src/pages/AIAgents.tsx:525",value:l,onChange:L=>c(L.target.value),onKeyDown:k,placeholder:`向${z?.name||"AI助手"}提问... (Enter发送,Shift+Enter换行)`,className:"flex-1 min-h-[60px] max-h-[120px] resize-none text-sm",disabled:M.isPending}),h.jsx(Pe,{"data-loc":"client/src/pages/AIAgents.tsx:533",onClick:P,disabled:!l.trim()||M.isPending,size:"icon",className:"h-10 w-10 shrink-0",children:M.isPending?h.jsx(Cn,{"data-loc":"client/src/pages/AIAgents.tsx:540",className:"w-4 h-4 animate-spin"}):h.jsx(Z3,{"data-loc":"client/src/pages/AIAgents.tsx:541",className:"w-4 h-4"})})]}),h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:545",className:"text-xs text-muted-foreground mt-1.5",children:"AI回答仅供参考,重要合规决策请咨询专业法律顾问 · 对话历史已自动保存"})]})]}):h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:405",className:"flex-1 flex items-center justify-center p-8",children:h.jsxs("div",{"data-loc":"client/src/pages/AIAgents.tsx:406",className:"text-center max-w-md",children:[h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:407",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:h.jsx(ES,{"data-loc":"client/src/pages/AIAgents.tsx:408",className:"w-8 h-8 text-primary"})}),h.jsx("h3",{"data-loc":"client/src/pages/AIAgents.tsx:410",className:"text-lg font-semibold mb-2",children:"NAC AI智能体系统"}),h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:411",className:"text-sm text-muted-foreground mb-6",children:"选择左侧的智能体开始对话。对话历史将自动保存到数据库,支持跨会话续接。"}),h.jsx("div",{"data-loc":"client/src/pages/AIAgents.tsx:414",className:"grid grid-cols-2 gap-3",children:b?.agents.map(L=>{const U=wh[L.icon]||Dl;return h.jsxs("button",{"data-loc":"client/src/pages/AIAgents.tsx:418",onClick:()=>O(L.type),className:"border rounded-xl p-3 text-left hover:border-primary hover:bg-primary/5 transition-all",children:[h.jsx(U,{"data-loc":"client/src/pages/AIAgents.tsx:423",className:"w-5 h-5 text-primary mb-2"}),h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:424",className:"text-sm font-medium",children:L.name}),h.jsx("p",{"data-loc":"client/src/pages/AIAgents.tsx:425",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:L.description})]},L.type)})})]})})})]})}function sve({name:e,envKey:t,configured:n,description:r,docUrl:a,onTest:o,isTesting:l}){return h.jsxs(Ze,{"data-loc":"client/src/pages/NotificationSettings.tsx:25",className:`border ${n?"border-green-500/30 bg-green-500/5":"border-border"}`,children:[h.jsxs(ur,{"data-loc":"client/src/pages/NotificationSettings.tsx:26",className:"pb-3",children:[h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:27",className:"flex items-center justify-between",children:[h.jsx(dr,{"data-loc":"client/src/pages/NotificationSettings.tsx:28",className:"text-sm font-semibold",children:e}),h.jsx(Mr,{"data-loc":"client/src/pages/NotificationSettings.tsx:29",variant:n?"default":"secondary",className:"text-xs",children:n?h.jsxs(h.Fragment,{children:[h.jsx(Dr,{"data-loc":"client/src/pages/NotificationSettings.tsx:30",className:"w-3 h-3 mr-1"}),"已配置"]}):h.jsxs(h.Fragment,{children:[h.jsx(vd,{"data-loc":"client/src/pages/NotificationSettings.tsx:30",className:"w-3 h-3 mr-1"}),"未配置"]})})]}),h.jsx(G3,{"data-loc":"client/src/pages/NotificationSettings.tsx:33",className:"text-xs",children:r})]}),h.jsxs(Je,{"data-loc":"client/src/pages/NotificationSettings.tsx:35",className:"space-y-3",children:[h.jsx("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:36",className:"bg-muted rounded-md p-2.5",children:h.jsx("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:37",className:"text-xs font-mono text-muted-foreground",children:t})}),h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:39",className:"flex items-center gap-2",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/NotificationSettings.tsx:40",variant:"outline",size:"sm",className:"text-xs",onClick:o,disabled:!n||l,children:[l?h.jsx(Cn,{"data-loc":"client/src/pages/NotificationSettings.tsx:47",className:"w-3 h-3 mr-1 animate-spin"}):h.jsx(Z3,{"data-loc":"client/src/pages/NotificationSettings.tsx:47",className:"w-3 h-3 mr-1"}),"发送测试通知"]}),h.jsx("a",{"data-loc":"client/src/pages/NotificationSettings.tsx:50",href:a,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:"配置文档 →"})]}),!n&&h.jsxs("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:60",className:"text-xs text-muted-foreground bg-muted/50 rounded p-2",children:["在生产服务器 ",h.jsx("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:61",className:"font-mono",children:"/opt/nac/nac-admin/.env"})," 中添加:",h.jsx("br",{"data-loc":"client/src/pages/NotificationSettings.tsx:61"}),h.jsxs("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:62",className:"font-mono text-primary",children:[t,"=https://..."]})]})]})]})}function lve(){const[e,t]=E.useState(null),{data:n,isLoading:r,refetch:a}=Me.notification.webhookStatus.useQuery(),o=Me.notification.test.useMutation({onSuccess:(m,g)=>{m.success?Ue.success(`${g.channel} 测试通知发送成功`):Ue.error(`${g.channel} 测试通知发送失败`),t(null)},onError:m=>{Ue.error(`发送失败: ${m.message}`),t(null)}}),l=Me.notification.testCrawlerAlert.useMutation({onSuccess:()=>{Ue.success("采集器告警测试已发送到所有已配置的渠道")},onError:m=>{Ue.error(`发送失败: ${m.message}`)}}),c=m=>{t(m),o.mutate({channel:m})},d=[{name:"企业微信(WeCom)",key:"NAC_NOTIFY_WECOM_URL",configured:n?.wecom||!1,description:"通过企业微信机器人发送Markdown格式告警消息,支持@全体成员(critical级别)",docUrl:"https://developer.work.weixin.qq.com/document/path/91770",channel:"wecom"},{name:"钉钉(DingTalk)",key:"NAC_NOTIFY_DINGTALK_URL",configured:n?.dingtalk||!1,description:"通过钉钉自定义机器人发送Markdown消息,critical级别自动@所有人",docUrl:"https://open.dingtalk.com/document/robots/custom-robot-access",channel:"dingtalk"},{name:"飞书(Feishu/Lark)",key:"NAC_NOTIFY_FEISHU_URL",configured:n?.feishu||!1,description:"通过飞书自定义机器人发送卡片消息,支持彩色标题(绿/黄/红)",docUrl:"https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot",channel:"feishu"},{name:"通用Webhook",key:"NAC_NOTIFY_WEBHOOK_URL",configured:n?.generic||!1,description:"发送JSON格式通知到任意Webhook端点,适用于自定义告警系统",docUrl:"#",channel:"generic"}],f=d.filter(m=>m.configured).length;return h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:146",className:"p-6 space-y-6 max-w-4xl",children:[h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:148",children:[h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:149",className:"flex items-center gap-2 mb-1",children:[h.jsx(Y3,{"data-loc":"client/src/pages/NotificationSettings.tsx:150",className:"w-5 h-5 text-primary"}),h.jsx("h1",{"data-loc":"client/src/pages/NotificationSettings.tsx:151",className:"text-xl font-bold",children:"告警通知配置"})]}),h.jsx("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:153",className:"text-sm text-muted-foreground",children:"配置企业微信、钉钉、飞书等国内Webhook渠道,接收采集器异常、备份失败等系统告警"})]}),h.jsx(Ze,{"data-loc":"client/src/pages/NotificationSettings.tsx:159",children:h.jsx(Je,{"data-loc":"client/src/pages/NotificationSettings.tsx:160",className:"pt-4",children:h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:161",className:"flex items-center gap-4",children:[h.jsx("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:162",className:`w-10 h-10 rounded-full flex items-center justify-center ${f>0?"bg-green-500/10":"bg-yellow-500/10"}`,children:f>0?h.jsx(Dr,{"data-loc":"client/src/pages/NotificationSettings.tsx:164",className:"w-5 h-5 text-green-600"}):h.jsx(ps,{"data-loc":"client/src/pages/NotificationSettings.tsx:165",className:"w-5 h-5 text-yellow-600"})}),h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:168",children:[h.jsx("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:169",className:"text-sm font-medium",children:f>0?`已配置 ${f} 个通知渠道`:"尚未配置任何通知渠道"}),h.jsx("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:175",className:"text-xs text-muted-foreground",children:f>0?"所有已配置的渠道都会收到告警通知(不是只发一个)":"配置至少一个渠道以接收系统告警"})]}),f>0&&h.jsxs(Pe,{"data-loc":"client/src/pages/NotificationSettings.tsx:183",variant:"outline",size:"sm",className:"ml-auto text-xs",onClick:()=>l.mutate(),disabled:l.isPending,children:[l.isPending?h.jsx(Cn,{"data-loc":"client/src/pages/NotificationSettings.tsx:191",className:"w-3 h-3 mr-1 animate-spin"}):h.jsx(ps,{"data-loc":"client/src/pages/NotificationSettings.tsx:192",className:"w-3 h-3 mr-1"}),"模拟采集器告警"]})]})})}),h.jsxs(Ze,{"data-loc":"client/src/pages/NotificationSettings.tsx:202",children:[h.jsx(ur,{"data-loc":"client/src/pages/NotificationSettings.tsx:203",className:"pb-3",children:h.jsxs(dr,{"data-loc":"client/src/pages/NotificationSettings.tsx:204",className:"text-sm flex items-center gap-2",children:[h.jsx(PO,{"data-loc":"client/src/pages/NotificationSettings.tsx:205",className:"w-4 h-4 text-primary"}),"告警触发场景"]})}),h.jsx(Je,{"data-loc":"client/src/pages/NotificationSettings.tsx:209",children:h.jsx("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:210",className:"grid grid-cols-2 gap-3 text-xs",children:[{level:"error",label:"采集器异常",desc:"任意采集器连接失败或抓取错误"},{level:"critical",label:"MongoDB备份失败",desc:"每日凌晨3点备份任务失败"},{level:"warning",label:"审批案例告警",desc:"高风险案例或超期未处理"},{level:"info",label:"归档任务完成",desc:"每月1日案例库归档完成通知"}].map(m=>h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:217",className:"flex items-start gap-2 p-2 bg-muted/50 rounded-lg",children:[h.jsx(Mr,{"data-loc":"client/src/pages/NotificationSettings.tsx:218",variant:"outline",className:`text-xs shrink-0 ${m.level==="critical"?"border-red-500 text-red-500":m.level==="error"?"border-orange-500 text-orange-500":m.level==="warning"?"border-yellow-500 text-yellow-500":"border-green-500 text-green-500"}`,children:m.level}),h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:229",children:[h.jsx("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:230",className:"font-medium",children:m.label}),h.jsx("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:231",className:"text-muted-foreground",children:m.desc})]})]},m.label))})})]}),h.jsxs("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:240",children:[h.jsx("h2",{"data-loc":"client/src/pages/NotificationSettings.tsx:241",className:"text-sm font-semibold mb-3",children:"通知渠道配置"}),r?h.jsx("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:243",className:"flex items-center justify-center py-8",children:h.jsx(Cn,{"data-loc":"client/src/pages/NotificationSettings.tsx:244",className:"w-5 h-5 animate-spin text-muted-foreground"})}):h.jsx("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:247",className:"grid grid-cols-2 gap-4",children:d.map(m=>h.jsx(sve,{"data-loc":"client/src/pages/NotificationSettings.tsx:249",name:m.name,envKey:m.key,configured:m.configured,description:m.description,docUrl:m.docUrl,onTest:()=>c(m.channel),isTesting:e===m.channel},m.key))})]}),h.jsx(Ze,{"data-loc":"client/src/pages/NotificationSettings.tsx:265",className:"border-dashed",children:h.jsx(Je,{"data-loc":"client/src/pages/NotificationSettings.tsx:266",className:"pt-4",children:h.jsxs("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:267",className:"text-xs text-muted-foreground leading-relaxed",children:[h.jsx("strong",{"data-loc":"client/src/pages/NotificationSettings.tsx:268",children:"配置方式:"}),"在生产服务器上编辑 ",h.jsx("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:268",className:"font-mono bg-muted px-1 rounded",children:"/opt/nac/nac-admin/.env"}),", 添加对应的Webhook URL后重启服务(",h.jsx("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:269",className:"font-mono bg-muted px-1 rounded",children:"systemctl restart nac-admin"}),")。 所有已配置的渠道都会同时收到通知,无需选择。"]})})})]})}function DL({className:e,...t}){return h.jsx("div",{"data-loc":"client/src/components/ui/table.tsx:7","data-slot":"table-container",className:"relative w-full overflow-x-auto",children:h.jsx("table",{"data-loc":"client/src/components/ui/table.tsx:11","data-slot":"table",className:Ve("w-full caption-bottom text-sm",e),...t})})}function kL({className:e,...t}){return h.jsx("thead",{"data-loc":"client/src/components/ui/table.tsx:22","data-slot":"table-header",className:Ve("[&_tr]:border-b",e),...t})}function IL({className:e,...t}){return h.jsx("tbody",{"data-loc":"client/src/components/ui/table.tsx:32","data-slot":"table-body",className:Ve("[&_tr:last-child]:border-0",e),...t})}function fh({className:e,...t}){return h.jsx("tr",{"data-loc":"client/src/components/ui/table.tsx:55","data-slot":"table-row",className:Ve("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t})}function Fr({className:e,...t}){return h.jsx("th",{"data-loc":"client/src/components/ui/table.tsx:68","data-slot":"table-head",className:Ve("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function Kr({className:e,...t}){return h.jsx("td",{"data-loc":"client/src/components/ui/table.tsx:81","data-slot":"table-cell",className:Ve("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t})}function cve(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function LL(e){return e?new Date(e).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai"}):"-"}function uve(){const[e,t]=E.useState("overview"),{data:n,isLoading:r,refetch:a}=Me.archive.dryRun.useQuery(),{data:o,isLoading:l,refetch:c}=Me.archive.logs.useQuery({limit:20}),{data:d,isLoading:f}=Me.archive.listArchived.useQuery({page:1,pageSize:20}),m=Me.archive.run.useMutation({onSuccess:v=>{v.success?Ue.success(`归档完成:共归档 ${v.archivedCount} 个案例`):Ue.warning(`归档部分失败:成功 ${v.archivedCount},失败 ${v.failedCount}`),a(),c()},onError:v=>{Ue.error(`归档失败: ${v.message}`)}}),g=()=>{confirm(`确认执行归档?将把超过1年的已完结案例(共 ${n?.totalEligible||0} 个)迁移到归档集合。此操作不可撤销。`)&&m.mutate()};return h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:62",className:"p-6 space-y-6 max-w-5xl",children:[h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:64",children:[h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:65",className:"flex items-center gap-2 mb-1",children:[h.jsx(Ml,{"data-loc":"client/src/pages/ArchiveManagement.tsx:66",className:"w-5 h-5 text-primary"}),h.jsx("h1",{"data-loc":"client/src/pages/ArchiveManagement.tsx:67",className:"text-xl font-bold",children:"案例库归档管理"})]}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:69",className:"text-sm text-muted-foreground",children:"将超过1年的已完结审批案例迁移到归档集合,防止主集合数据量持续增长影响查询性能"})]}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:75",className:"grid grid-cols-3 gap-4",children:[h.jsx(Ze,{"data-loc":"client/src/pages/ArchiveManagement.tsx:76",children:h.jsx(Je,{"data-loc":"client/src/pages/ArchiveManagement.tsx:77",className:"pt-4",children:h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:78",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:79",className:"w-10 h-10 rounded-lg bg-yellow-500/10 flex items-center justify-center",children:h.jsx(ps,{"data-loc":"client/src/pages/ArchiveManagement.tsx:80",className:"w-5 h-5 text-yellow-600"})}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:82",children:[h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:83",className:"text-2xl font-bold",children:r?"...":n?.totalEligible||0}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:84",className:"text-xs text-muted-foreground",children:"待归档案例"})]})]})})}),h.jsx(Ze,{"data-loc":"client/src/pages/ArchiveManagement.tsx:90",children:h.jsx(Je,{"data-loc":"client/src/pages/ArchiveManagement.tsx:91",className:"pt-4",children:h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:92",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:93",className:"w-10 h-10 rounded-lg bg-blue-500/10 flex items-center justify-center",children:h.jsx(Ml,{"data-loc":"client/src/pages/ArchiveManagement.tsx:94",className:"w-5 h-5 text-blue-600"})}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:96",children:[h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:97",className:"text-2xl font-bold",children:f?"...":d?.total||0}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:98",className:"text-xs text-muted-foreground",children:"已归档案例"})]})]})})}),h.jsx(Ze,{"data-loc":"client/src/pages/ArchiveManagement.tsx:104",children:h.jsx(Je,{"data-loc":"client/src/pages/ArchiveManagement.tsx:105",className:"pt-4",children:h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:106",className:"flex items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:107",className:"w-10 h-10 rounded-lg bg-green-500/10 flex items-center justify-center",children:h.jsx(CS,{"data-loc":"client/src/pages/ArchiveManagement.tsx:108",className:"w-5 h-5 text-green-600"})}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:110",children:[h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:111",className:"text-2xl font-bold",children:l?"...":o?.length||0}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:112",className:"text-xs text-muted-foreground",children:"历史归档次数"})]})]})})})]}),h.jsx(Ze,{"data-loc":"client/src/pages/ArchiveManagement.tsx:120",className:"border-blue-500/20 bg-blue-500/5",children:h.jsx(Je,{"data-loc":"client/src/pages/ArchiveManagement.tsx:121",className:"pt-4",children:h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:122",className:"flex gap-3",children:[h.jsx(PO,{"data-loc":"client/src/pages/ArchiveManagement.tsx:123",className:"w-4 h-4 text-blue-600 shrink-0 mt-0.5"}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:124",className:"text-xs text-blue-700 space-y-1",children:[h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:125",className:"font-medium",children:"归档策略"}),h.jsxs("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",children:["• 归档条件:状态为 ",h.jsx("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",className:"bg-blue-100 px-1 rounded",children:"approved"})," 或 ",h.jsx("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",className:"bg-blue-100 px-1 rounded",children:"rejected"}),",且最后更新时间超过 365 天"]}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:127",children:"• 自动执行:每月 1 日凌晨 2:00 由 cron 任务自动触发"}),h.jsxs("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:128",children:["• 法律保留:归档集合(",h.jsx("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:128",className:"bg-blue-100 px-1 rounded",children:"approval_cases_archive"}),")永久保留,不自动删除"]}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:129",children:"• 告警通知:归档完成后自动推送到已配置的 Webhook 渠道"})]})]})})}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:136",className:"flex items-center gap-3",children:[h.jsxs(Pe,{"data-loc":"client/src/pages/ArchiveManagement.tsx:137",onClick:g,disabled:m.isPending||n?.totalEligible===0,className:"gap-2",children:[m.isPending?h.jsx(Cn,{"data-loc":"client/src/pages/ArchiveManagement.tsx:143",className:"w-4 h-4 animate-spin"}):h.jsx(jS,{"data-loc":"client/src/pages/ArchiveManagement.tsx:144",className:"w-4 h-4"}),m.isPending?"归档中...":`立即执行归档(${n?.totalEligible||0} 个案例)`]}),h.jsxs(Pe,{"data-loc":"client/src/pages/ArchiveManagement.tsx:148",variant:"outline",size:"sm",onClick:()=>{a(),c()},className:"gap-1",children:[h.jsx(js,{"data-loc":"client/src/pages/ArchiveManagement.tsx:154",className:"w-3 h-3"}),"刷新"]}),n?.totalEligible===0&&h.jsxs("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:158",className:"text-xs text-muted-foreground flex items-center gap-1",children:[h.jsx(Dr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:159",className:"w-3 h-3 text-green-500"}),"当前无需归档的案例"]})]}),h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:166",children:[h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:167",className:"flex gap-1 border-b mb-4",children:[{key:"logs",label:"归档历史",icon:_c},{key:"archived",label:"归档案例",icon:Ml}].map(v=>{const b=v.icon;return h.jsxs("button",{"data-loc":"client/src/pages/ArchiveManagement.tsx:174",onClick:()=>t(v.key),className:`flex items-center gap-1.5 px-4 py-2 text-sm border-b-2 transition-colors ${e===v.key?"border-primary text-primary font-medium":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[h.jsx(b,{"data-loc":"client/src/pages/ArchiveManagement.tsx:183",className:"w-3.5 h-3.5"}),v.label]},v.key)})}),e==="logs"&&h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:192",children:l?h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:194",className:"flex items-center justify-center py-8",children:h.jsx(Cn,{"data-loc":"client/src/pages/ArchiveManagement.tsx:195",className:"w-5 h-5 animate-spin text-muted-foreground"})}):!o||o.length===0?h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:198",className:"text-center py-12 text-muted-foreground",children:[h.jsx(Ml,{"data-loc":"client/src/pages/ArchiveManagement.tsx:199",className:"w-8 h-8 mx-auto mb-2 opacity-30"}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:200",className:"text-sm",children:"暂无归档历史记录"})]}):h.jsxs(DL,{"data-loc":"client/src/pages/ArchiveManagement.tsx:203",children:[h.jsx(kL,{"data-loc":"client/src/pages/ArchiveManagement.tsx:204",children:h.jsxs(fh,{"data-loc":"client/src/pages/ArchiveManagement.tsx:205",children:[h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:206",children:"执行时间"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:207",children:"状态"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:208",children:"符合条件"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:209",children:"已归档"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:210",children:"失败"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:211",children:"耗时"})]})}),h.jsx(IL,{"data-loc":"client/src/pages/ArchiveManagement.tsx:214",children:o.map((v,b)=>h.jsxs(fh,{"data-loc":"client/src/pages/ArchiveManagement.tsx:216",children:[h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:217",className:"text-xs",children:LL(v.executedAt)}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:218",children:h.jsx(Mr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:219",variant:v.success?"default":"destructive",className:"text-xs",children:v.success?h.jsxs(h.Fragment,{children:[h.jsx(Dr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:220",className:"w-3 h-3 mr-1"}),"成功"]}):h.jsxs(h.Fragment,{children:[h.jsx(vd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:220",className:"w-3 h-3 mr-1"}),"失败"]})})}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:223",className:"text-sm",children:v.totalEligible}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:224",className:"text-sm text-green-600 font-medium",children:v.archivedCount}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:225",className:"text-sm text-red-500",children:v.failedCount||"-"}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:226",className:"text-xs text-muted-foreground",children:cve(v.durationMs)})]},b))})]})}),e==="archived"&&h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:237",children:f?h.jsx("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:239",className:"flex items-center justify-center py-8",children:h.jsx(Cn,{"data-loc":"client/src/pages/ArchiveManagement.tsx:240",className:"w-5 h-5 animate-spin text-muted-foreground"})}):!d||d.total===0?h.jsxs("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:243",className:"text-center py-12 text-muted-foreground",children:[h.jsx(Ml,{"data-loc":"client/src/pages/ArchiveManagement.tsx:244",className:"w-8 h-8 mx-auto mb-2 opacity-30"}),h.jsx("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:245",className:"text-sm",children:"归档集合为空"})]}):h.jsxs(h.Fragment,{children:[h.jsxs("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:249",className:"text-xs text-muted-foreground mb-3",children:["共 ",d.total," 个归档案例(显示最新20条)"]}),h.jsxs(DL,{"data-loc":"client/src/pages/ArchiveManagement.tsx:250",children:[h.jsx(kL,{"data-loc":"client/src/pages/ArchiveManagement.tsx:251",children:h.jsxs(fh,{"data-loc":"client/src/pages/ArchiveManagement.tsx:252",children:[h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:253",children:"案例编号"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:254",children:"司法管辖区"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:255",children:"状态"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:256",children:"归档时间"}),h.jsx(Fr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:257",children:"归档原因"})]})}),h.jsx(IL,{"data-loc":"client/src/pages/ArchiveManagement.tsx:260",children:d.items.map((v,b)=>h.jsxs(fh,{"data-loc":"client/src/pages/ArchiveManagement.tsx:262",children:[h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:263",className:"text-xs font-mono",children:v.caseNumber||v._id?.toString().slice(-8)}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:264",children:h.jsx(Mr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:265",variant:"outline",className:"text-xs",children:v.jurisdiction||"-"})}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:267",children:h.jsx(Mr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:268",variant:v.status==="approved"?"default":"secondary",className:"text-xs",children:v.status==="approved"?"已批准":"已拒绝"})}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:275",className:"text-xs",children:v.archivedAt?LL(new Date(v.archivedAt).toISOString()):"-"}),h.jsx(Kr,{"data-loc":"client/src/pages/ArchiveManagement.tsx:276",className:"text-xs text-muted-foreground",children:v.archiveReason||"-"})]},b))})]})]})})]})]})}function ua({children:e}){const[t,n]=nm(),{t:r}=Hg(),a=[{path:"/",icon:TY,label:r("nav.dashboard"),desc:r("dashboard.subtitle").slice(0,8)+"..."},{path:"/knowledge",icon:MO,label:r("nav.knowledgeBase"),desc:r("knowledgeBase.subtitle").slice(0,6)+"..."},{path:"/crawlers",icon:DY,label:r("nav.crawlers"),desc:r("crawlers.subtitle").slice(0,6)+"..."},{path:"/approvals",icon:CY,label:r("nav.approvalCases"),desc:r("approvals.subtitle").slice(0,6)+"..."},{path:"/tags",icon:J3,label:r("nav.tagEngine"),desc:r("tagEngine.subtitle").slice(0,6)+"..."},{path:"/protocols",icon:ed,label:r("nav.protocolRegistry"),desc:r("protocols.subtitle").slice(0,6)+"..."},{path:"/audit",icon:io,label:r("nav.auditLog"),desc:r("audit.subtitle").slice(0,6)+"..."},{path:"/ai-agents",icon:ES,label:"AI智能体",desc:"合规问答·分析"},{path:"/notifications",icon:Y3,label:"告警通知",desc:"企微·钉钉·飞书"},{path:"/archive",icon:Ml,label:"案例归档",desc:"历史案例管理"}],{data:o,isLoading:l}=Me.nacAuth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),c=Me.nacAuth.logout.useMutation({onSuccess:()=>{n("/login"),Ue.success(r("auth.logoutSuccess"))}});if(E.useEffect(()=>{!l&&!o&&n("/login")},[l,o,n]),l)return h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:55",className:"min-h-screen bg-background flex items-center justify-center",children:h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:56",className:"flex flex-col items-center gap-3",children:[h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:57",className:"w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin"}),h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:58",className:"text-sm text-muted-foreground",children:r("auth.verifying")})]})});if(!o)return null;const d=o;return h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:69",className:"min-h-screen bg-background flex",children:[h.jsxs("aside",{"data-loc":"client/src/components/AdminLayout.tsx:71",className:"w-60 shrink-0 bg-card border-r border-border/50 flex flex-col",children:[h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:73",className:"h-14 flex items-center px-4 border-b border-border/50 gap-3",children:[h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:74",className:"w-8 h-8 rounded-lg nac-gradient flex items-center justify-center shrink-0",children:h.jsx(fs,{"data-loc":"client/src/components/AdminLayout.tsx:75",className:"w-4 h-4 text-white"})}),h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:77",className:"overflow-hidden",children:[h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:78",className:"text-sm font-bold nac-gradient-text leading-tight",children:r("nav.systemTitle")}),h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:79",className:"text-xs text-muted-foreground",children:r("nav.systemSubtitle")})]})]}),h.jsx("nav",{"data-loc":"client/src/components/AdminLayout.tsx:84",className:"flex-1 p-2 space-y-0.5 overflow-y-auto",children:a.map(f=>{const m=t===f.path;return h.jsx(cQ,{"data-loc":"client/src/components/AdminLayout.tsx:88",href:f.path,children:h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:89",className:`flex items-center gap-3 px-3 py-2.5 rounded-lg cursor-pointer transition-all
|
||
${m?"bg-primary/15 text-primary border border-primary/20":"text-muted-foreground hover:text-foreground hover:bg-accent/50"}`,children:[h.jsx(f.icon,{"data-loc":"client/src/components/AdminLayout.tsx:95",className:`w-4 h-4 shrink-0 ${m?"text-primary":""}`}),h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:96",className:"flex-1 overflow-hidden",children:h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:97",className:"text-sm font-medium leading-tight truncate",children:f.label})}),m&&h.jsx(Q3,{"data-loc":"client/src/components/AdminLayout.tsx:99",className:"w-3.5 h-3.5 text-primary shrink-0"})]})},f.path)})}),h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:107",className:"p-3 border-t border-border/50",children:h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:108",className:"flex items-center gap-2",children:[h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:109",className:"w-7 h-7 rounded-full nac-gradient flex items-center justify-center shrink-0",children:h.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:110",className:"text-xs font-bold text-white",children:(d.email||"U")[0].toUpperCase()})}),h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:114",className:"flex-1 overflow-hidden",children:[h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:115",className:"text-xs font-medium truncate",children:d.email}),h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:116",className:"text-xs text-muted-foreground capitalize",children:d.role||"admin"})]}),h.jsx(Pe,{"data-loc":"client/src/components/AdminLayout.tsx:118",variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-muted-foreground hover:text-destructive shrink-0",onClick:()=>c.mutate(),title:r("auth.logout"),children:h.jsx(RY,{"data-loc":"client/src/components/AdminLayout.tsx:124",className:"w-3.5 h-3.5"})})]})})]}),h.jsxs("main",{"data-loc":"client/src/components/AdminLayout.tsx:131",className:"flex-1 overflow-auto min-w-0",children:[h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:133",className:"h-14 border-b border-border/50 flex items-center px-6 gap-3 bg-card/50 backdrop-blur-sm sticky top-0 z-10",children:[h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:134",className:"flex-1",children:a.find(f=>f.path===t)&&h.jsx("p",{"data-loc":"client/src/components/AdminLayout.tsx:136",className:"text-sm font-semibold",children:a.find(f=>f.path===t)?.label})}),h.jsxs("div",{"data-loc":"client/src/components/AdminLayout.tsx:141",className:"flex items-center gap-3",children:[h.jsx(OB,{"data-loc":"client/src/components/AdminLayout.tsx:143",variant:"icon"}),h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:144",className:"w-px h-4 bg-border/50"}),h.jsx("div",{"data-loc":"client/src/components/AdminLayout.tsx:145",className:"w-2 h-2 rounded-full bg-emerald-400 animate-pulse"}),h.jsx("span",{"data-loc":"client/src/components/AdminLayout.tsx:146",className:"text-xs text-muted-foreground",children:r("dashboard.allSystemsNormal")})]})]}),e]})]})}function dve(){return h.jsxs(uQ,{"data-loc":"client/src/App.tsx:22",children:[h.jsx(ar,{"data-loc":"client/src/App.tsx:23",path:"/login",component:fZ}),h.jsx(ar,{"data-loc":"client/src/App.tsx:24",path:"/",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:24",children:h.jsx(Vge,{"data-loc":"client/src/App.tsx:24"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:25",path:"/knowledge",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:25",children:h.jsx(Hme,{"data-loc":"client/src/App.tsx:25"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:26",path:"/crawlers",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:26",children:h.jsx(Qme,{"data-loc":"client/src/App.tsx:26"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:27",path:"/approvals",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:27",children:h.jsx(Xme,{"data-loc":"client/src/App.tsx:27"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:28",path:"/tags",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:28",children:h.jsx(Wme,{"data-loc":"client/src/App.tsx:28"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:29",path:"/protocols",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:29",children:h.jsx(Jme,{"data-loc":"client/src/App.tsx:29"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:30",path:"/audit",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:30",children:h.jsx(eve,{"data-loc":"client/src/App.tsx:30"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:31",path:"/ai-agents",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:31",children:h.jsx(ove,{"data-loc":"client/src/App.tsx:31"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:32",path:"/notifications",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:32",children:h.jsx(lve,{"data-loc":"client/src/App.tsx:32"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:33",path:"/archive",component:()=>h.jsx(ua,{"data-loc":"client/src/App.tsx:33",children:h.jsx(uve,{"data-loc":"client/src/App.tsx:33"})})}),h.jsx(ar,{"data-loc":"client/src/App.tsx:34",path:"/404",component:y2}),h.jsx(ar,{"data-loc":"client/src/App.tsx:35",component:y2})]})}function fve(){return h.jsx(dQ,{"data-loc":"client/src/App.tsx:42",children:h.jsx(pQ,{"data-loc":"client/src/App.tsx:43",defaultTheme:"dark",children:h.jsxs(_O,{"data-loc":"client/src/App.tsx:44",children:[h.jsx(AH,{"data-loc":"client/src/App.tsx:45"}),h.jsx(dve,{"data-loc":"client/src/App.tsx:46"})]})})})}const pve=()=>"/login",Ig=new gF,Nq=e=>{!(e instanceof cd)||typeof window>"u"||!(e.message===oK)||window.location.pathname!=="/login"&&(window.location.href=pve())};Ig.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;Nq(t),console.error("[API Query Error]",t)}});Ig.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;Nq(t),console.error("[API Mutation Error]",t)}});const hve=Me.createClient({links:[A9({url:"/api/trpc",transformer:fi,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});fK.createRoot(document.getElementById("root")).render(h.jsx(Me.Provider,{"data-loc":"client/src/main.tsx:59",client:hve,queryClient:Ig,children:h.jsx(vF,{"data-loc":"client/src/main.tsx:60",client:Ig,children:h.jsx(fve,{"data-loc":"client/src/main.tsx:61"})})}));
|